graphify icon indicating copy to clipboard operation
graphify copied to clipboard

Add Factory Droid (factory.ai) platform support

Open zyaiire opened this issue 7 months ago • 2 comments

Summary

Request to add support for Factory Droid (the AI coding assistant by Factory AI) as a first-class platform, alongside the existing Claude Code, Codex, OpenCode, and OpenClaw support.

Background

Factory Droid (droid) is a terminal-based AI coding agent with a skill system and MCP integration that is structurally similar to the already-supported platforms:

Feature Factory Droid Already supported platforms
Skill/Slash commands .factory/skills/ or ~/.factory/skills/ (Markdown) .claude/skills/, .agents/skills/, etc.
Project instructions AGENTS.md (already used by Codex/OpenCode/OpenClaw adapters) Same
Sub-agent dispatch Task tool with worker droid (parallel capable) Agent tool / spawn_agent
MCP server droid mcp add <name> "<cmd>" --type stdio MCP stdio protocol (already implemented in serve.py)
Hooks Droid hooks (pre_tool_use, post_tool_use) Claude PreToolUse, git hooks

What would need to change

  1. New skill file: graphify/skill-droid.md — adapted from skill-codex.md with Droid-specific sub-agent dispatch (Task tool instead of spawn_agent) and Droid skill directory paths.
  2. CLI registration: Add "droid" to _PLATFORM_CONFIG in __main__.py with skill destination .factory/skills/graphify/SKILL.md.
  3. Install command: graphify install --platform droid and graphify droid install / graphify droid uninstall.
  4. AGENTS.md: Same as existing Codex/OpenCode/OpenClaw adapter — no change needed.
  5. MCP integration: Already works via droid mcp add graphify "graphify --mcp" --type stdio — documentation only.

Why this is a good fit

  • The core Python library is platform-agnostic and requires zero changes.
  • The AGENTS.md adapter from the Codex integration works as-is.
  • The MCP stdio server in serve.py is protocol-standard and already compatible.
  • Only the skill description file and CLI registration need additions.

Proposed file structure

graphify/
├── skill-droid.md          # NEW - Droid-specific skill instructions
├── skill.md                # existing (Claude Code)
├── skill-codex.md          # existing (OpenAI Codex)
├── skill-opencode.md       # existing (OpenCode)
└── skill-claw.md           # existing (OpenClaw)

I am willing to submit a PR for this if the feature request is accepted.

zyaiire avatar Apr 07 '26 06:04 zyaiire

Shipped in b079c67.

graphify install --platform droid copies the skill to .factory/skills/graphify/SKILL.md. graphify droid install writes the always-on rules to AGENTS.md. The skill uses the Task tool for parallel subagent dispatch, same pattern as the other platforms.

MCP works as-is via droid mcp add graphify "graphify --mcp" --type stdio as you noted.

safishamsi avatar Apr 07 '26 08:04 safishamsi

Hello @safishamsi ,

Is there a way to use hooks to continuously keep it updated?

Thanks

ne0ark avatar May 02 '26 13:05 ne0ark