Skip to content

feat: add Command Code agent detection and integration#1

Draft
hubaibmahmood wants to merge 3 commits into
mainfrom
add-commandcode-agent
Draft

feat: add Command Code agent detection and integration#1
hubaibmahmood wants to merge 3 commits into
mainfrom
add-commandcode-agent

Conversation

@hubaibmahmood

Copy link
Copy Markdown
Owner

Closes MinishLab#189

Adds Command Code (cmd) as a supported agent target in the Semble installer, following the same pattern as PR MinishLab#183 (Reasonix/Pi support).

Files changed

  • src/semble/installer/agents.py — Added AgentTarget for Command Code (binary: cmd, config_dir: ~/.commandcode/, mcp: ~/.commandcode/mcp.json → key mcpServers)
  • src/semble/agents/commandcode.md — New sub-agent definition file
  • docs/installation.md — Added Command Code to supported agents list, MCP manual setup, and sub-agent table
  • tests/test_installer.py — Added ("commandcode", "mcpServers") to parametrized test

Testing

  • All 53 tests pass (make test)
  • Lint and typecheck clean (make lint, make typecheck)
  • Manually verified semble install and semble uninstall work correctly with Command Code

Hubaib Mehmood added 3 commits June 10, 2026 18:49
- Add commandcode.md sub-agent definition in src/semble/agents/
- Add AgentTarget entry in src/semble/installer/agents.py with
  MCP config (~/.commandcode/mcp.json), instructions
  (~/.commandcode/AGENTS.md), and sub-agent
  (~/.commandcode/agents/semble-search.md)
- Update docs/installation.md with Command Code MCP, sub-agent,
  and supported agents sections
- Add commandcode to parametrized merge_mcp test
- Change binary='cmd' to binary=None to prevent false detection on
  Windows (shutil.which('cmd') resolves to cmd.exe on every Windows
  machine regardless of whether Command Code is installed)
- Fix indentation of pi and commandcode AgentTarget entries to match
  the 8-space style used by all other entries
- Fix indentation of parametrize block in test_installer.py to match
  the 4-space style used throughout the file
- Remove undocumented 'runAs: subagent' from commandcode.md
- Change 'allowed-tools' to 'tools' per Command Code docs
- Use 'Bash/Read' in description to match other agent files
- Fix grep wording to match existing convention
- Fix indentation in agents.py (ruff format)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add Command Code agent detection and integration

1 participant