Skip to content

Conversation

@kunal70006
Copy link

@kunal70006 kunal70006 commented Jan 20, 2026

Summary

Port all compound-engineering agents, commands, and skills to OpenCode-compatible format.

Contents:

  • 27 agents (design, docs, research, review, workflow)
  • 23 commands (slash commands for various workflows)
  • 14 skills (specialized knowledge and tool integrations)

Problem

OpenCode uses a different schema for the tools field than Claude Code:

  • Claude Code: comma-separated string (tools: Read, Edit, Bash)
  • OpenCode: record/object format (tools:\n Bash: false)

This causes validation errors when using compound-engineering agents with OpenCode:

Configuration is invalid at workflow-every-style-editor.md
↳ Invalid input: expected record, received string tools

Solution

Add a new opencode/ directory with all configs ported to OpenCode-compatible format, leaving the original Claude Code configs untouched.

Structure:

opencode/
├── README.md           # Installation instructions
├── agents/             # 27 agent configs
├── commands/           # 23 command configs
└── skills/             # 14 skill packages

Installation for OpenCode users

# Copy agents
cp -r opencode/agents/* ~/.config/opencode/agent/compound-engineering/

# Copy commands
cp opencode/commands/* ~/.config/opencode/command/

# Copy skills
cp -r opencode/skills/* ~/.config/opencode/skill/

Test plan

  • Verify OpenCode no longer shows configuration errors
  • Verify agents, commands, and skills work correctly in OpenCode

🤖 Generated with Claude Code

@kunal70006 kunal70006 force-pushed the fix/opencode-tools-format branch from d02f2f6 to 7b09d24 Compare January 20, 2026 18:01
@kunal70006 kunal70006 changed the title Fix tools field format for OpenCode compatibility Add OpenCode-compatible agent configs Jan 20, 2026
@kunal70006 kunal70006 force-pushed the fix/opencode-tools-format branch from 7b09d24 to e302f88 Compare January 20, 2026 18:05
@kunal70006 kunal70006 changed the title Add OpenCode-compatible agent configs Add full OpenCode-compatible compound-engineering configs Jan 20, 2026
Port all compound-engineering agents, commands, and skills to OpenCode-compatible format.

Contents:
- 27 agents (design, docs, research, review, workflow)
- 23 commands (slash commands for various workflows)
- 14 skills (specialized knowledge and tool integrations)

OpenCode uses a different schema for the `tools` field:
- Claude Code: comma-separated string
- OpenCode: record/object format

This allows OpenCode users to use compound-engineering without manual conversion.

Installation:
  cp -r opencode/agents/* ~/.config/opencode/agent/compound-engineering/
  cp opencode/commands/* ~/.config/opencode/command/
  cp -r opencode/skills/* ~/.config/opencode/skill/

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@kunal70006 kunal70006 force-pushed the fix/opencode-tools-format branch from e302f88 to 83562f2 Compare January 20, 2026 18:08
@kunal70006 kunal70006 mentioned this pull request Jan 20, 2026
@kieranklaassen
Copy link
Collaborator

Thanks! I'll take a look if there is a more programmatic way maybe in the builds tep. IS this wokring well for you in opencode?

Copy link

@gregoryfm gregoryfm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just a small typo in the folder names.


```bash
# Copy agents
cp -r opencode/agents/* ~/.config/opencode/agent/compound-engineering/

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
cp -r opencode/agents/* ~/.config/opencode/agent/compound-engineering/
cp -r opencode/agents/* ~/.config/opencode/agents/compound-engineering/

cp -r opencode/agents/* ~/.config/opencode/agent/compound-engineering/

# Copy commands
cp opencode/commands/* ~/.config/opencode/command/

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
cp opencode/commands/* ~/.config/opencode/command/
cp opencode/commands/* ~/.config/opencode/commands/

cp opencode/commands/* ~/.config/opencode/command/

# Copy skills
cp -r opencode/skills/* ~/.config/opencode/skill/

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
cp -r opencode/skills/* ~/.config/opencode/skill/
cp -r opencode/skills/* ~/.config/opencode/skills/

cp opencode/commands/* ~/.config/opencode/command/

# Copy skills
cp -r opencode/skills/* ~/.config/opencode/skill/

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
cp -r opencode/skills/* ~/.config/opencode/skill/
cp -r opencode/skills/* ~/.config/opencode/skills/


```bash
# Copy agents
cp -r opencode/agents/* ~/.config/opencode/agent/compound-engineering/

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
cp -r opencode/agents/* ~/.config/opencode/agent/compound-engineering/
cp -r opencode/agents/* ~/.config/opencode/agents/compound-engineering/

cp -r opencode/agents/* ~/.config/opencode/agent/compound-engineering/

# Copy commands
cp opencode/commands/* ~/.config/opencode/command/

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
cp opencode/commands/* ~/.config/opencode/command/
cp opencode/commands/* ~/.config/opencode/commands/

Comment on lines +23 to +25
cp -r opencode/agents/* ~/.config/opencode/agent/compound-engineering/ && \
cp opencode/commands/* ~/.config/opencode/command/ && \
cp -r opencode/skills/* ~/.config/opencode/skill/

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
cp -r opencode/agents/* ~/.config/opencode/agent/compound-engineering/ && \
cp opencode/commands/* ~/.config/opencode/command/ && \
cp -r opencode/skills/* ~/.config/opencode/skill/
cp -r opencode/agents/* ~/.config/opencode/agents/compound-engineering/ && \
cp opencode/commands/* ~/.config/opencode/commands/ && \
cp -r opencode/skills/* ~/.config/opencode/skills/

@kunal70006
Copy link
Author

Thanks! I'll take a look if there is a more programmatic way maybe in the builds tep. IS this wokring well for you in opencode?

yes it's working remarkably well. something to note however is, since opencode let's u switch between agents (plan/build/etc); you'll end up with a long list of agents once you've installed this plugin since it comes with a bunch of agents that it calls internally for specific work modes. It's more of a DX issue since it doesnt really change the functionality much @kieranklaassen

@kunal70006
Copy link
Author

Hi @gregoryfm
i just checked the opencode docs and they do support plurals now. idk why i remember opencode folder names following the singular naming convention. I'll make the changes and see if something breaks, if not, i'll commit these suggestions. Thanks!

@georgkreimer
Copy link

@kunal70006 how do I use this in opencode? should i see /workflow:.... for example?

@kieranklaassen kieranklaassen self-assigned this Jan 21, 2026
@kieranklaassen kieranklaassen added the enhancement New feature or request label Jan 21, 2026
@kieranklaassen
Copy link
Collaborator

working on this one! I want to see if we can make it more programmatic

@kunal70006
Copy link
Author

@kunal70006 how do I use this in opencode? should i see /workflow:.... for example?

@georgkreimer what ive found to work the best is switching to plan mode, then /compound-engineering-workflows-plan and spec out a plan for whatever you wanna start working on, then u can take it from there.

@kunal70006
Copy link
Author

kunal70006 commented Jan 21, 2026

working on this one! I want to see if we can make it more programmatic

please feel free to ask for help, i'd be more than happy to collaborate on this project, thanks for all your work so far!

@georgkreimer
Copy link

@kunal70006 how do I use this in opencode? should i see /workflow:.... for example?

@georgkreimer what ive found to work the best is switching to plan mode, then /compound-engineering-workflows-plan and spec out a plan for whatever you wanna start working on, then u can take it from there.

yea, seems to work. just the slash commands turn out pretty long

@kieranklaassen
Copy link
Collaborator

Native opencode support now https://x.com/kieranklaassen/status/2014142952038343080?s=20

Let me know how it works for you. Appreciate your work here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants