Repository navigation
feat: agent skill and octopi agents install for Claude Code, Codex, and other agents - #81
Merged
Merged
Conversation
… and other agents Ship an Agent Skills (agentskills.io) skill with octopi so coding agents can drive the octopi CLI without relying on the MCP server, and add one command that sets up both. - add `octopi/skills/octopi/` (SKILL.md + reference.md): workflow order, URI shorthand, run-vs-suggest rules for GPU jobs, per-step examples, flag reference, and how to train on an existing segmentation (wrap it with create-targets, or hand-write the `targets-<user>_<session>_<name>.yaml` label map) - add `octopi agents install|status|uninstall`: installs the skill to `.claude/skills` and `.agents/skills`, and registers the MCP server with Claude Code and (via `codex mcp add`) Codex; `--no-mcp`, `--desktop`, `--target`, `--agent`, `--force` - hide the legacy `octopi mcp install|status|uninstall` (still functional) and factor their config handling into shared helpers - skill and MCP instructions suggest `--model-type segresnet` for model-explore (CLI defaults unchanged) - symlink the skill into `.claude/skills` and `.agents/skills` for contributors - restructure the agent docs page: what agents can do, single setup command, example workflow; fix `--submitit True`, `model_config.yaml`/`best_model.pth`, and target URI format in the examples Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
ESmi99
approved these changes
Nov 25, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Ships an Agent Skills skill with octopi, so coding agents (Claude Code, Codex, and other open-source agents) can drive the octopi CLI directly. Adds one command,
octopi agents install, that sets up both the skill and the existing MCP server.Skill (
octopi/skills/octopi/)SKILL.mdcovers:--submitit True, and leaving out--model-configfor Hugging Face checkpoint aliasestargets-<user>_<session>_<name>.yamllabel map thattrainandmodel-explorerequire, and gives two ways to provide it (wrap the mask withcreate-targets, or hand-write the YAML with a template).reference.md: a short flag reference for every command, loaded only when needed.--model-type segresnetformodel-explore. The CLI defaults are unchanged.octopi agents install | status | uninstall.claude/skills/octopi(Claude Code) and.agents/skills/octopi(Codex and other Agent Skills clients).~/.claude.jsonor./.mcp.json) and, if thecodexCLI is installed, with Codex viacodex mcp add.--target global|project,--agent claude|agents|all,--no-mcp,--desktop,--force. Help output is grouped into Scope, MCP Server and Options.statusreports skill copies that are outdated after an octopi upgrade.octopi mcp install|status|uninstallcommands still work but are hidden. Their config handling is now shared helpers inoctopi/mcp/cli.py.Docs (
docs/user-guide/claude-code-mcp.md, now "AI Agent Integration")--submititneeds a value (--submitit True)model-explorewritesmodel_config.yamlandbest_model.pthname:user/sessionformatRepo
.claude/skills/octopiand.agents/skills/octopiare symlinks to the bundled skill, so contributors working in this repo get it automatically.Test plan
octopi agents install / status / uninstallagainst a temporaryHOME/CODEX_HOME: global, project,--no-mcp, a second install that changes nothing, outdated detection and--force. Verified the generated.claude.json,.mcp.jsonand Codexconfig.tomlentries.octopi/agents/*andoctopi/skills/octopi/*.md.zensical build); the in-page anchors and the setup section render.octopi.utils.io.get_configwith the expected labels and class count.Known issue (not fixed here)
io.get_configwithout a session ID searches fortargets_*<name>.yaml, but the files are written astargets-..., so the short--target-uri nameform fails to find the config. The skill tells agents to use the fullname:user/sessionURI for now.🤖 Generated with Claude Code