A cohesive Claude Code plugin — multi-agent orchestration, round-trip plan/spec/completion review, hybrid memory search, and an auto-refreshing project handbook.
v1.3.5 — interactive commands (/agent-plan, /agent-spec, /kiro, /design) now run in the main conversation so AskUserQuestion works natively instead of silently falling back to inline markdown Q&A.
- Interactive commands get real
AskUserQuestionpopups./agent-plan,/agent-spec,/kiro, and/designpreviously declaredAskUserQuestioninallowed-toolsbut ran undercontext: fork, which spawns a subagent where that tool isn't available — so Q&A silently degraded to inline markdown. Fix drops the fork on all four;/designgainsmodel: opusto preserve Opus pinning. Heavy work (Repo Scout, execution teams) still delegates via theTasktool.
This release is a cleanup pass that makes the toolkit act as one cohesive system instead of a bag of independent commands. Nothing useful was lost — duplicates and dead weight were consolidated.
- Single meta command —
/haiku,/opus,/sonnetcollapsed into one/haiku [--model haiku|sonnet|opus] <task>(haiku by default). Same behavior, one file to maintain. - Bundled installers —
agent-viewerandagent-memoryCLIs install automatically via/setup. No manual copy steps. - Self-bootstrapping
/setup— detects missing CLIs, indexes memory, seedsHANDBOOK.md, installs git hooks that auto-refresh the handbook on every commit/merge, writes aCLAUDE.mdwith the cohesion rules. - Round-trip review everywhere — plans, specs, completion reports, and diagrams all flow through the
agent-viewerskill. Canonical rich JSON payload shapes live inplugins/toolkit/templates/agent-viewer/. - Bundled skills —
codebase-to-coursenow ships with the toolkit (no separate install). - Pruned — retired commands/agents that duplicated functionality or required fragile external setup:
/review,/rlm,/gherkin,/just-bash,/plan, plus 4 overlapping agents (crush,groq,qwen,rlm-subcall).
See CHANGELOG for the full manifest.
# One-line install (recommended)
curl -fsSL https://raw.githubusercontent.com/ruizrica/toolkit/main/install.sh | bashThis clones to ~/.toolkit, registers the plugin, installs scripts and skills, and creates agent-memory directories under ~/.claude/agent-memory/.
git clone https://github.com/ruizrica/agent-toolkit.git
claude plugins add ./agent-toolkit/plugins/toolkitThen inside any project:
/setup/setup detects and installs the two external CLIs (agent-viewer, agent-memory), indexes the codebase, generates HANDBOOK.md, installs post-commit/post-merge git hooks that keep the handbook fresh, and writes a CLAUDE.md that encodes the cohesion rules. Idempotent — re-run anytime to refresh.
/haiku Implement user authentication with OAuth support
# Or escalate the tier for complex work:
/haiku --model opus Redesign the distributed event pipelineSpawns 10 tier-specific agents managed by Opus. Haiku is the default; --model sonnet|opus overrides.
/team Build a payment integration across the frontend and backendDispatches to specialized external-CLI agents (gemini, cursor, codex, droid, opencode) in parallel.
/compact # Save state + write daily log
/clear # Clear context
/restore # Resume with daily log contextWrites to ~/.claude/agent-memory/ with daily logs, session snapshots, and MEMORY.md. Compaction is driven by the memory-cycle hook — snapshots and state are captured automatically. Use /compact-min when you just need a fast state checkpoint.
/kiro Add user authentication with OAuthGenerates EARS-format requirements, design docs, and task breakdowns. Each phase is reviewed through agent-viewer spec (editable browser UI) before execution.
Any time you write a plan, generate a spec set, present a Mermaid diagram, or close out a task with a completion summary, the agent-viewer skill opens the content in an editable browser viewer and waits for approval. It replaces the old /plan command — now it's an automatic skill that triggers whenever plan mode is active or a plan file is on disk.
/setup # Bootstrap the project (once)
/worktree # Create isolated worktree (auto wip branch)
# ... develop ...
/save # Merge back to main + cleanup/handbook # Refresh HANDBOOK.md/setup seeds HANDBOOK.md on first run; git hooks keep it fresh automatically after every commit/merge. Use /handbook when you want an on-demand refresh or custom flags.
| Section | Description |
|---|---|
| Commands | All 15 commands with usage and examples |
| Agents | All 5 specialized external-CLI agents |
| Skills | Skill reference files (agent-viewer, agent-memory, autoresearch, codebase-to-course) |
| Command | Description | Docs |
|---|---|---|
/setup |
Bootstrap: install CLIs, index memory, seed handbook, install git hooks, write CLAUDE.md | → |
/haiku [--model …] |
10-agent team managed by Opus (haiku default; --model sonnet|opus to override) |
→ |
/team |
Multi-agent parallel implementation with external CLIs | → |
/agent-plan |
Interactive single-doc plan — Q&A → viewer gate → execute → completion report | → |
/agent-spec |
Interactive Kiro-pattern spec — requirements/design/tasks → viewer gate → execute | → |
/kiro |
Same workflow as /agent-spec (legacy name) |
→ |
/handbook |
Refresh AI-optimized project handbook | → |
/code2course |
Turn a codebase into an interactive HTML course | — |
/@implement |
Process @implement comments in code |
→ |
/design |
Interactive design-token pipeline | → |
/agent-memory |
Hybrid search + CRUD dispatcher for the memory CLI | → |
| Command | Description | Docs |
|---|---|---|
/compact |
Memory-aware session compact | → |
/compact-min |
Ultra-minimal session snapshot (fast, no memory writes) | → |
/restore |
Restore after /clear (loads daily logs + session state) |
→ |
/worktree |
Create isolated worktree (auto wip branch) | → |
/save |
Commit, merge, cleanup worktree | → |
/stable |
Create stable checkpoint tag + branch | → |
| Agent | Specialty | Docs |
|---|---|---|
| gemini-agent | Large codebase analysis (1M tokens), Google Search | → |
| cursor-agent | Code review, refactoring, sessions | → |
| codex-agent | Natural language → code, translation | → |
| droid-agent | Enterprise development, Jira/Notion | → |
| opencode-agent | 75+ AI models via OpenRouter | → |
Invoke any agent as a slash command: /toolkit:gemini-agent Analyze the auth module.
Skills are reference files installed to ~/.claude/skills/ that teach Claude when and how to use specific tools. Unlike commands (which you invoke) or agents (which you dispatch), skills activate automatically when their trigger conditions match.
| Skill | Description | Docs |
|---|---|---|
| agent-viewer | Round-trip review loop (plans, specs, completions, reports, diagrams) — auto-triggers in plan mode | → |
| agent-memory | Local hybrid search (vector + BM25) over all memory files | → |
| autoresearch | Autonomous goal-directed iteration (Karpathy's autoresearch pattern) | → |
| codebase-to-course | Generate interactive single-page HTML course from a codebase | → |
Two external CLIs back the skills that make this cohesive. /setup installs both; you can also run the installers directly.
| CLI | Purpose | Installer |
|---|---|---|
agent-viewer |
Editable browser review for plans, specs, completions, reports | scripts/install-agent-viewer.sh |
agent-memory |
Hybrid semantic + BM25 search over memory and daily logs | scripts/install-agent-memory.sh |
Source repos (both ship inside the plugin cache):
- agent-viewer — bundled at
plugins/toolkit/tools/agent-viewer/ - agent-memory — bundled at
plugins/toolkit/tools/agent-memory/
Canonical JSON payload shapes for agent-viewer live at plugins/toolkit/templates/agent-viewer/:
plan-payload.json— single-document plan reviewspec-payload.json— multi-document spec (Kiro)completion-payload.json— rich completion summary with Mermaid, diffs, task checklistreports-payload.json— historical reports index
The installer configures a Claude Code status line showing model, context usage, and working directory:
opus | 67% | Github-Work/commander
Context percentage is color-coded: gray (<40%), green (40–59%), yellow (60–79%), red (80–94%), bright red (95%+).
To install standalone: bash ~/.toolkit/plugins/toolkit/scripts/install-statusline.sh
The toolkit pairs project-local memory (.context/) with global memory (~/.claude/agent-memory/).
| Memory Type | Location | Written By |
|---|---|---|
| Semantic | .context/MEMORY.md |
Edited manually or via /compact (stable facts only) |
| Daily Logs | ~/.claude/agent-memory/daily-logs/YYYY-MM-DD.md |
memory-cycle hook + /compact |
| Session State | .context/session-state.json |
/compact, /compact-min |
| Session Snapshots | ~/.claude/agent-memory/sessions/{project}-{ts}.md |
memory-cycle hook (automatic) |
How it works:
- The memory-cycle hook writes daily logs and session snapshots automatically on every compaction.
/compactlets you append a richer daily log entry and optionally update MEMORY.md./restorereads today's and yesterday's logs plussession-state.jsonto bootstrap cross-session context.MEMORY.mdis auto-loaded every session — stable facts persist without explicit restore.
Searching memories:
agent-memory search "what embedding model?" # Hybrid (vector + BM25)
agent-memory search "TDD" --keyword # Exact keyword match
agent-memory index # Reindex all memory files
agent-memory add "always use bun" --source daily
agent-memory get <id-or-prefix>Code navigation (tree-sitter AST, 165+ languages):
agent-memory code-index ./src
agent-memory code-nav "authentication"
agent-memory code-tree
agent-memory code-summarize
agent-memory code-refs 42- Claude Code 2.1+
- Python 3.8+ (for
/handbookand/setupscripts) - Node.js 20+ (for the
agent-viewerCLI)
- agent-viewer — editable browser review CLI
- agent-memory — hybrid search CLI + embedding model (~67 MB)
Both can also be installed on demand via scripts/install-agent-viewer.sh and scripts/install-agent-memory.sh.
agent-toolkit/
├── plugins/toolkit/
│ ├── agents/ # 5 specialized external-CLI agents
│ ├── commands/ # 15 commands
│ ├── skills/ # 4 skills (1 directory-style: codebase-to-course)
│ ├── scripts/ # installers, handbook generator, doctor, statusline
│ ├── templates/agent-viewer/ # canonical rich JSON payload shapes
│ └── .claude-plugin/plugin.json # manifest (v1.3.5)
├── docs/ # Per-command / per-agent / per-skill documentation
├── tools/agent-memory/ # Hybrid search CLI (Python)
├── assets/ # Images
├── CLAUDE.md # Global instructions + orchestration manifest
└── LICENSE # MIT
MIT License — see LICENSE.