|
|
2 months ago | |
|---|---|---|
| .. | ||
| converter | 2 months ago | |
| README.md | 2 months ago | |
| install-claude.sh | 2 months ago | |
A bridge that allows Claude Code to use OpenAgents Control standards and context files.
This integration provides two-way compatibility between OpenAgents Control and Claude Code:
integrations/claude-code/
├── converter/ # Scripts to convert OpenAgents Control → Claude format
├── generated/ # Output of conversion (gitignored)
├── plugin/ # Final plugin files for distribution
├── bootstrap-install.sh # One-line installer (downloads bundle)
└── install-claude.sh # Install script for distribution
Just run Claude in this repository:
cd OpenAgentsControl
claude
Claude will automatically:
openagents-control-standards Skillcontext-scout to find relevant context in .opencode/context/⚠️ Claude CLI Workaround
If Claude doesn't auto-load the local adapter when run in this repository:
.claude/
"Load context from .claude/skills/openagents-control-standards/SKILL.md and .claude/agents/context-scout.md, then help me create a new agent"
[Use OpenAgents Control standards]
This will activate the context loading workflow.Known Issue: Skills auto-trigger based on Claude's heuristic. If it doesn't trigger:
context-scout subagent will still be availabletask(subagent_type="context-scout", ...).opencode/context/ files in your promptmacOS:
brew install claude
npm:
npm install -g @anthropic-ai/claude-code
Verify:
claude --version
curl -fsSL https://raw.githubusercontent.com/darrenhinde/OpenAgentsControl/main/integrations/claude-code/bootstrap-install.sh | bash
Prereqs: git, bash
Verify Claude Code:
claude --version
This downloads the Claude integration bundle and runs the plugin installer.
cd integrations/claude-code/converter
node src/convert-agents.js
This generates Claude-ready files in integrations/claude-code/generated/.
cd integrations/claude-code
./install-claude.sh
This copies the plugin to ~/.claude/plugins/openagents-control-bridge/.
With plugin (recommended for distributed use):
claude --plugin-dir ~/.claude/plugins/openagents-control-bridge
Without plugin (manual mode):
# Set environment variable to load context files
export OPENAGENTS_CONTROL_CONTEXT_PATH=.opencode/context
# Run Claude with context loaded from your prompt
claude
💡 CLI Tips
claude --print-pluginsclaude --debug (shows plugin loading)claude "your request" --print-only~/.claude/sessions/ for logsopenagents-control-standards Skill automatically activates when you ask Claude to do anything.context-scout to find relevant files in .opencode/context/.The converter maps OpenAgents Control frontmatter to Claude format:
| OpenAgents Control Field | Claude Field |
|---|---|
id |
name |
description |
description |
tools / permissions |
tools |
model |
model |
mode: subagent |
permissionMode: plan |
Add to .opencode/agent/{category}/{agent}.md. The local adapter in .claude/ will pick it up on restart.
.opencode/agent/{category}/{agent}.mdcd integrations/claude-code/converter && node src/convert-agents.jsintegrations/claude-code/generated/agents/.claude/ - Local adapter (committed)integrations/claude-code/converter/src/convert-agents.js - Converter script (committed)integrations/claude-code/install-claude.sh - Install script (committed)integrations/claude-code/generated/ - Generated files (ignored)integrations/claude-code/plugin/ - Build output (ignored)| Command | Description |
|---|---|
claude |
Start interactive session |
claude "request" |
One-shot request |
claude --plugin-dir ~/.claude/plugins/openagents-control-bridge |
Load with plugin |
claude --print-plugins |
Show loaded plugins |
claude --debug |
Debug mode |
claude --version |
Show version |