Workbench ships an embedded agent skill that lets AI coding tools manage your local dev environment through the bench CLI.
bench agent-skillThis prints the skill content to stdout and detects installed agent tools. If any are found, you're offered the option to save the skill to the correct location for each tool.
Supported tools and their skill paths:
| Tool | Config detected | Skill saved to |
|---|---|---|
| Claude Code | ~/.claude/ |
~/.claude/skills/workbench/SKILL.md |
| Codex | ~/.codex/ |
~/.agents/skills/workbench/SKILL.md |
| OpenCode | ~/.config/opencode/ |
~/.config/opencode/skills/workbench/SKILL.md |
To print the skill without the interactive menu (useful for piping):
bench agent-skill --print
bench agent-skill --print > custom-location.mdOnce installed, the agent can invoke bench commands (status, logs, start, stop, restart, validate) to diagnose and manage services in your running dev environment. See the skill source for the full prompt.
Each time bench agent-skill runs, the binary stamps its own version (from bench version) into the skill's frontmatter and body. The skill instructs the agent to compare the stamped version against the live bench version at the start of every session; if they differ, the agent prompts the user to re-run bench agent-skill to refresh the saved skill.
This keeps agent guidance from drifting behind shipped features when the binary upgrades but the saved skill file doesn't.