sdd-orca
A Claude Code plugin for spending fewer tokens on agentic coding. It contains:
- The superpowers skills (6.4.1), forked.
subagent-driven-development now starts a single Workflow run in place of the manual implementer/reviewer loop in your main session.
- Four workflows:
sdd-run: execute an implementation plan;
review-gate: verified review of a commit range;
sweep: one task over many directories;
verify-facts: check claims against official sources.
- An optional Devin CLI implementer. Cheap tasks can run on Devin; reviews stay on Claude.
- Recommended settings, plus an installer that merges them into your user settings.
- Usage analysis scripts for your own
~/.claude/projects transcripts.
Vietnamese summary below. / Tóm tắt tiếng Việt ở cuối trang.
Why
The author measured their own Claude Code usage over seven weeks (API-equivalent cost, cache reads included):
- 80% of cost was the main session loop. Subagents were only 20%.
- About 60% of cost was cache reads. Every turn re-reads the whole context, and the median main-loop context was ~315k tokens.
- About 15% of main-loop cost was polling:
sleep, reading task output, and wake-ups on task notifications.
- Sessions that coordinated an external coding agent (Devin through an orchestrator) were about 37% of Claude usage. About a third of their calls were status checks made at 390–570k context.
The fix is structural: move the loop out of the long-lived session. A Workflow script runs the per-task agents. Each agent starts fresh with a small context and gets a model sized to the task. Your session starts the run once and reads one compact result.
Install
/plugin marketplace add vanlongme/sdd-orca
/plugin install sdd-orca@sdd-orca
If you also have upstream superpowers installed, disable it (/plugin → superpowers → disable). Otherwise both plugins inject their SessionStart context. While both are enabled, a bundled PreToolUse hook still redirects superpowers:subagent-driven-development to the sdd-orca skill.
Recommended settings (optional; this backs up your file first, and --dry-run previews the merge):
bash ~/.claude/plugins/marketplaces/sdd-orca/scripts/install-settings.sh --dry-run
bash ~/.claude/plugins/marketplaces/sdd-orca/scripts/install-settings.sh
The merge (settings/recommended.json) sets these values and keeps everything else. The installer also adds the context-hygiene rules to ~/.claude/CLAUDE.md (see below).
| Setting | Value | Why |
|---|
autoCompactWindow | 400000 | compact long sessions before cache reads dominate |
workflowSizeGuideline | medium | keep workflows under ~10 agents unless asked |
CLAUDE_CODE_SUBAGENT_MODEL | sonnet | default subagent model; workflows still pick per step |
ANTHROPIC_DEFAULT_SONNET_MODEL / ..._HAIKU_MODEL | claude-sonnet-5-5 / claude-haiku-5-5 | pin the aliases the workflows use |
CLAUDE_CODE_WORKFLOW_MAX_CONCURRENT_AGENTS | 4 | bound parallel agents (and rate-limit bursts) |
bashOutputMaxChars | 12000 | inline Bash output limit (default 30000). Longer output is saved to a file; Claude receives a preview and the path. |
promptCacheTtl | "1h" | keep the main conversation's cache warm across breaks. Already the automatic choice on a Claude subscription. On API-key billing, 1-hour cache writes cost 2× input. |
effortLevel | "high" | thinking is output tokens, the most expensive kind; switch to /effort xhigh only for a hard design or debugging session |
fallbackModel | ["sonnet"] | keep working on Sonnet when the primary model is overloaded or unavailable |
cleanupPeriodDays | 90 | keep transcripts long enough to re-measure with tools/usage (default 30) |
subagentPromptCacheTtl | "5m" | short-lived subagents and workflow agents rarely outlive 5 minutes, so pay only for 5-minute cache writes |
The recommended settings grant no permissions. The Devin allow rule is a separate opt-in: --with-devin (see below).
CLAUDE.md rules
settings/CLAUDE.md holds a short block of rules (~430 words, ~560 tokens per session). The installer puts it into ~/.claude/CLAUDE.md between <!-- sdd-orca:begin --> and <!-- sdd-orca:end --> markers:
- The first time, it appends the block.
- On reinstall, it replaces the block in place and keeps the rest of your file.
- Before changing the file, it makes a backup.
- With
--no-claude-md, it leaves the file alone.
The rules address the habits that cost the most in the measurements above: