Selected work / 03
Deckhand
A Claude Code mod: a deck of reusable agents beside the chat, with chips for model, effort, limits and repeat.
- Status
- Open source (MIT) · v0.6.0
- Role
- Independent developer
01 / Context
The problem and the people
A Deck panel beside the chat holds agent cards. Each agent is a Markdown file in .claude/agents/, so plain Claude Code can use it too. Version 0.6.0 ships 23 built-in agents in four groups: Core, Design, Security and Web.
Make an agent once and use it in any project, pick it by clicking instead of typing, and hold it to its limits on every tool call, not only at the start. When no agent is active, Claude Code works as it already does.
- Intended users
- Claude Code users in the desktop app, terminal or VS Code who want reusable agents with enforced limits.
02 / Contribution
My role in the work
- I own Deckhand. I set its goals and non-goals, released versions through 0.6.0, and published it as an installable plugin.
- Claude Code built the mod from my build plan, milestone by milestone, under the repository’s CLAUDE.md rules. I directed the project, tried changes live and merged them.
Interactive example
See how it works
Which calls does
the guard let through?
Illustrative model · no agent runs and no tool calls are made.
Blocked: reviewer tried to run npm install, but Run commands is off for this agent.
Built and documented
What the system does
A deck of reusable agents
Click Use on a card and the agent’s instructions, model and effort apply to the chat; None returns to plain Claude Code. New agents are saved to .claude/agents/<name>.md, and library agents show in every project.
Chips that apply at once
Chips show the active agent’s model, effort, what it can do (Edit files, Run commands, Internet) and Repeat. A new agent starts with all three limits off. Chip changes apply to the session at once, and Save to agent appears when they differ from the file.
Pipeline, swarms and a Runs view
The Swarm tab runs a task through Pipeline steps, each on its own agent, and stops for your OK; at Review, ticked findings go back to Build until clean or a Max rounds cap. Parallel mode runs several agents at once from a preset or a selection. The Runs tab lists every agent the session started, with model, effort, steps, tokens, estimated cost and time.
System map / 03
How the pieces connect
Agent files
.claude/agents/*.md · Markdown that plain Claude Code also reads
Mod hooks
hooks/register.tsx · prompt.compose, turn.step and the tool.call guard
Deck panel
Deck, Skills, Swarm and Runs tabs beside the chat
Implementation
Technology used
- Mod runtime
- TypeScript
- TSX
- Claude Code mod API
- Model routes
- Ollama
- Codex CLI
- Checks
- claude plugin validate
- tsc
- claude plugin test
Engineering judgment
Decisions and trade-offs
Limits on every tool call, failing closed
A tool.call hook maps each limit to tools (Edit files: Edit, Write, MultiEdit, NotebookEdit; Run commands: Bash, PowerShell; Internet: WebFetch, WebSearch) and denies blocked calls, subagents included. If the check itself fails, the call is denied.
Local and Codex answered inside the turn
Rewriting the model in turn.step still sends the request to Anthropic’s API, so the hook answers the turn itself: Local returns Ollama’s reply, and Codex runs codex exec in a read-only sandbox unless Edit files is on. Only main-loop turns are routed.
Parallel swarms go through the chat
Spawning agents straight from the Start button was refused by auto mode’s safety check, because nothing in the conversation asked for them. Deckhand now sends a visible prompt naming each agent and its part, so the spawns pass through its own hooks. Since 0.4.0, Pipeline steps go through the chat too.
Project settings only
A mod cannot install plugins. Set up merges a missing plugin into the project’s .claude/settings.json after the owner confirms, and Claude Code offers the install on restart. Global ~/.claude settings are never touched.
Documented results
Results
- 0.1.0 and 0.2.0 were released on 28 October 2026, and releases continued through 0.6.0 on 29 October 2026. Deckhand installs as a plugin from the EJhayGit/deckhand marketplace under the MIT license.
- The repository records passing plugin validation, typecheck and 159 tests at 0.6.0. These are historical project checks, not tests rerun by this portfolio.
- A first live Parallel swarm started from the chat prompt, and its Runs rows showed tokens, cost and a moving timer.
- A live Normal Pipeline run in a throwaway repository went through all five steps, waited for each agent and made two commits.
Project boundaries
Limitations
- Local models answer in text only, and Codex uses its own sandboxed tools, which Deckhand’s guard does not see. Neither route was tried live; their tests mock the HTTP and process calls.
- Cost in the Runs view is an estimate from list prices, and there is no budget cap. Nothing stops two parallel agents from editing the same file, and Stop cannot kill an agent that is already running.
- Some behavior is not yet confirmed live, including the 0.6.0 Review fix loop, a guard denial reaching a Pipeline step, running a plugin skill from a button, step progress in Runs, preloaded skill names and the Set up install prompt after a restart.
Evidence trail