Agents as code

Sync agents, all from your codebase

Agent definitions, skills, and instructions stay in the repo. Teammates can start with their preferred provider, compare changes, and merge improvements back cleanly.

$ go install github.com/Shaik-Sirajuddin/graft/cmd/graft@latest
graft providers teammates graft sync · agents · commands .graft/agents .claude/agents .codex/agents .copilot/agents .cursor/agents …more Pragmatic Programmer Cool Guy

Canonical format, provider output

Keep the portable contract clear, then let provider files carry their own native shape. The canonical file remains readable, reviewable, and mergeable.

agent.yaml canonical
Two machines, one canonical source
machine A · authoring
$ graft sync agents $ git push
machine B · teammate
$ git pull $ graft sync agents

How the graft workflow fits together

Start with the repo, let teammates work in their preferred provider, and collaborate on agent management as changes move forward.

STEP 1

Sync from your codebase

Keep agent definitions in the repo so the source of truth stays with the work.

STEP 2

Start in your preferred provider

Teammates can work in the provider they already use while graft keeps the definition shared.

STEP 3

Experiment, then merge

Try different providers, compare behavior, and bring the best change back into one managed workflow.

Sync agents from your codebase Start from your teammates' preference Experiment with different providers Collaborate on agent management
Claude Code Codex Gemini CLI Cursor GitHub Copilot OpenCode Roo Code Goose Grok CLI

What graft gives your agent team

A small, versioned workflow for sharing agents from your codebase without forcing every teammate into the same provider.

01

Sync agents from your codebase

Keep agent definitions beside the work they support, then sync them into every provider surface your team uses.

02

Start from teammate preference

Let each teammate work in Codex, Claude Code, Cursor, GitHub Copilot, Goose, Gemini CLI, and more without splitting the source of truth.

Claude Code Codex Gemini CLI Cursor GitHub Copilot OpenCode Roo Code Goose Grok CLI

03

Collaborate on agent management

Experiment with different providers, review agent changes like code, and resolve updates through explicit merge surfaces.