|
| 1 | +--- |
| 2 | +title: Claude Code Plugin |
| 3 | +description: Install the Agentuity Coder plugin for Claude Code to get specialized agents with persistent memory. |
| 4 | +--- |
| 5 | + |
| 6 | +The Agentuity Coder plugin adds a team of specialized AI agents, persistent memory, and cloud service access to [Claude Code](https://code.claude.com/docs/en/overview). It runs as a native [Claude Code plugin](https://code.claude.com/docs/en/plugins) with event hooks, slash commands, and auto-activated skills. |
| 7 | + |
| 8 | +## Installation |
| 9 | + |
| 10 | +```bash |
| 11 | +# Via Agentuity CLI (recommended) |
| 12 | +agentuity ai claude-code install |
| 13 | + |
| 14 | +# Via Claude Code marketplace |
| 15 | +/plugin marketplace add agentuity/sdk |
| 16 | +/plugin install agentuity-coder@agentuity |
| 17 | +``` |
| 18 | + |
| 19 | +<Callout type="info" title="Prerequisites"> |
| 20 | +Requires [Claude Code](https://code.claude.com/docs/en/quickstart), [Agentuity CLI](https://agentuity.dev) (`agentuity auth login`), and [Bun](https://bun.sh/). The plugin works without the CLI, but memory and cloud features will be unavailable. |
| 21 | +</Callout> |
| 22 | + |
| 23 | +## Slash Commands |
| 24 | + |
| 25 | +| Command | Description | |
| 26 | +|---------|-------------| |
| 27 | +| `/agentuity-coder` | Run a task with the full agent team | |
| 28 | +| `/agentuity-cadence` | Start autonomous long-running task execution | |
| 29 | +| `/agentuity-cadence-cancel` | Cancel an active Cadence session | |
| 30 | +| `/agentuity-memory-save` | Save session context to cloud memory | |
| 31 | +| `/agentuity-memory-share` | Share content via Agentuity Cloud Streams | |
| 32 | +| `/agentuity-sandbox` | Run code in an isolated sandbox | |
| 33 | + |
| 34 | +``` |
| 35 | +/agentuity-coder implement dark mode for the settings page |
| 36 | +``` |
| 37 | + |
| 38 | +Agents also activate automatically based on context. You don't always need a slash command. |
| 39 | + |
| 40 | +## Agents |
| 41 | + |
| 42 | +Seven agents with distinct roles, each running on a model tier suited to their task: |
| 43 | + |
| 44 | +| Agent | Role | Model | |
| 45 | +|-------|------|-------| |
| 46 | +| **Lead** | Orchestrator: plans, delegates, synthesizes | opus | |
| 47 | +| **Scout** | Explorer: codebase research, read-only | haiku | |
| 48 | +| **Builder** | Implementer: code changes, tests, builds | sonnet | |
| 49 | +| **Architect** | Autonomous implementer: complex multi-file work | opus | |
| 50 | +| **Reviewer** | Code reviewer: catches issues, verifies quality | sonnet | |
| 51 | +| **Memory** | Context manager: stores/recalls across sessions | haiku | |
| 52 | +| **Product** | Requirements owner: PRDs, feature planning | sonnet | |
| 53 | + |
| 54 | +Lead handles delegation automatically. For most tasks, describe what you want and the right agents are chosen for you. |
| 55 | + |
| 56 | +## Skills |
| 57 | + |
| 58 | +The plugin includes auto-activated skills that inject Agentuity SDK expertise when relevant: |
| 59 | + |
| 60 | +| Skill | Covers | |
| 61 | +|-------|--------| |
| 62 | +| **agentuity-backend** | `@agentuity/runtime`, `@agentuity/schema`, `@agentuity/drizzle`, `@agentuity/postgres`, `@agentuity/evals` | |
| 63 | +| **agentuity-frontend** | `@agentuity/react`, `@agentuity/auth`, `@agentuity/frontend`, `@agentuity/workbench` | |
| 64 | +| **agentuity-ops** | CLI commands, cloud services, deployments | |
| 65 | +| **agentuity-cloud** | Package routing, ecosystem overview | |
| 66 | +| **agentuity-command-runner** | Runtime detection, build/test/lint execution | |
| 67 | + |
| 68 | +## Memory |
| 69 | + |
| 70 | +Persistent context across sessions via Agentuity Cloud: |
| 71 | + |
| 72 | +- **KV Storage** for structured data (patterns, decisions, corrections) |
| 73 | +- **Vector Storage** for semantic search over session history |
| 74 | +- **Entity-centric**: tracks users, orgs, projects, repos |
| 75 | +- **Branch-aware**: scopes memories to git branch context |
| 76 | + |
| 77 | +Use `/agentuity-memory-save` after completing work to persist decisions and lessons learned. |
| 78 | + |
| 79 | +## Cadence Mode |
| 80 | + |
| 81 | +Cadence runs the agent team autonomously across multiple iterations until a task is complete: |
| 82 | + |
| 83 | +``` |
| 84 | +/agentuity-cadence build the auth system with OAuth, session management, and tests |
| 85 | +``` |
| 86 | + |
| 87 | +How it works: |
| 88 | + |
| 89 | +1. A Stop hook intercepts session end and re-injects the task prompt |
| 90 | +2. Memory checkpoints at each iteration for recovery |
| 91 | +3. The loop continues until the agent signals completion or max iterations is reached (default: 50) |
| 92 | + |
| 93 | +Use `--max-iterations N` to cap iterations (e.g., `/agentuity-cadence --max-iterations 10 build the auth system`). |
| 94 | + |
| 95 | +Cancel with `/agentuity-cadence-cancel` or `Ctrl+C`. |
| 96 | + |
| 97 | +## Hooks |
| 98 | + |
| 99 | +The plugin registers event hooks that run automatically: |
| 100 | + |
| 101 | +| Script | Event | What It Does | |
| 102 | +|--------|-------|--------------| |
| 103 | +| `session-start.sh` | SessionStart | Detects Agentuity project, org, user, and git context | |
| 104 | +| `session-end.sh` | SessionEnd | Saves session memory (immediate KV + async processing) | |
| 105 | +| `block-sensitive-commands.sh` | PreToolUse | Blocks access to secrets, API keys, auth tokens | |
| 106 | +| `pre-compact.sh` | PreCompact | Saves memory before context window compaction | |
| 107 | +| `cadence-stop.sh` | Stop | Keeps the Cadence loop running until task is done | |
| 108 | +| `stop-memory-save.sh` | Stop | Prompts memory save before session ends | |
| 109 | + |
| 110 | +## Permissions |
| 111 | + |
| 112 | +The install script configures Claude Code permissions in `~/.claude/settings.local.json`: |
| 113 | + |
| 114 | +- **Allowed**: `agentuity cloud *` and `agentuity auth whoami *` |
| 115 | +- **Blocked**: `agentuity cloud secrets *`, `agentuity cloud secret *`, `agentuity cloud apikey *`, `agentuity auth token *` |
| 116 | + |
| 117 | +Deny rules take precedence. The PreToolUse hook adds a second layer blocking sensitive commands before they reach the permission system. |
| 118 | + |
| 119 | +## Cloud Services |
| 120 | + |
| 121 | +Agents can use any `agentuity cloud` subcommand: |
| 122 | + |
| 123 | +| Service | Description | |
| 124 | +|---------|-------------| |
| 125 | +| **KV** | Key-value storage for structured data | |
| 126 | +| **Vector** | Semantic search over stored content | |
| 127 | +| **Storage** | File upload/download | |
| 128 | +| **Sandbox** | Isolated code execution environments | |
| 129 | +| **Database** | Postgres via `agentuity cloud db` | |
| 130 | +| **SSH** | Connect to deployments | |
| 131 | + |
| 132 | +## Next Steps |
| 133 | + |
| 134 | +- [OpenCode Plugin](/Reference/CLI/opencode-plugin): Alternative plugin for OpenCode with background agents and tmux |
| 135 | +- [AI Commands](/Reference/CLI/ai-commands): Other AI-related CLI commands |
| 136 | +- [Creating Agents](/Agents/creating-agents): Build your first agent |
0 commit comments