Use Cases β
1. Solo developer β "I lose context every session" β
Problem: Every new session starts from scratch. You re-explain the codebase, re-discover decisions, redo work.
Solution: CodyMaster working memory restores context in ~200 tokens.
# Session start ritual (30 seconds)
cat .cm/CONTINUITY.md # active goal, last 3 decisions, next actions
cm chain status # see where any active pipeline left offDuring the session β save decisions in plain English:
remember that we use insertLearning() not raw SQL for all memory writes
remember that rootDir in tsconfig is ./src
important: exponential backoff on retry, not fixed delaycm_natural (MCP) routes these to SQLite. Next session:
what did we learn about TypeScript? β retrieves all TS-related learningsResult: Session startup drops from 5 min re-reading code β 30 sec CONTINUITY.md scan.
2. Team β "We need visibility without another SaaS tool" β
Problem: Shared context lives in Slack threads that disappear. No one knows what the agent did last week.
Solution: Local kanban + context bus + structured chain history.
# Shared board (no SaaS, runs locally or on a shared machine)
cm dashboard start # Mission Control at http://localhost:6969
# Chain history is logged β anyone can review
cm chain history # all past chain runs with summaries
# Context bus persists across sessions
cat .cm/context-bus.json # live pipeline stateAgent discipline: Every chain step writes to the bus on chain advance. Downstream agents read what upstream agents produced β no re-scanning the repo.
3. New feature β "Idea β ship without scope creep" β
Problem: Features grow in scope mid-implementation. Tests are skipped. Quality gate is "I think it works".
Solution: Double-diamond process enforced by skill chain.
# Step 1: Qualify the problem (30-60 min β saves 3-5 days of rework)
# β @cm-brainstorm-idea: 9 Windows analysis, 3 options, scoring matrix
# Step 2: Write the plan
# β @cm-planning: openspec/changes/[feature]/tasks.md + design.md
# Step 3: Execute with Intelligent Skill Selection
cm chain start feature-development "add payment retry flow"
# β auto-picks top 3 steps: execution + tdd + quality-gate
# Step 4: TDD for each task β failing test first
# Step 5: Quality gate must pass before chain advances
npm run test:gateKey: cm-brainstorm-idea forces you to compare options before coding. This is the most skipped step and the most valuable.
4. Bug fix β "Root cause, not symptoms" β
Problem: Fix applied β same class of bug reappears two weeks later in a different file.
Solution: bug-fix chain with learning capture.
cm chain start bug-fix "login timeout after 30s on slow connections"
# β Step 1: cm-debugging (5 Whys, root cause, not symptoms)
# β Step 2: cm-tdd (regression test first, then fix)
# β Step 3: cm-quality-gate (full suite must pass)After fix is confirmed:
remember that token refresh must reset the idle timer on every API responseThis learning is retrieved automatically next time someone works on auth β preventing the same class of bug.
5. Code review β "Consistent reviews, not mood-based" β
Problem: Review quality depends on reviewer energy. Security issues get missed. Spec drift goes unnoticed.
Solution: cm-code-review chain with spec compliance + security checks.
cm chain start code-review "review payment retry PR before merge"
# β Step 1: cm-code-review (spec compliance, logic, security)
# β Step 2: cm-quality-gate (tests, coverage)
# β Step 3: cm-safe-deploy (deployment safety checks)Reviewer subagent checks:
- Does implementation match
openspec/changes/[feature]/tasks.md? - Any OWASP top-10 patterns? (XSS, path traversal, injection)
- Token budget within budget?
- Test coverage adequate?
Red flag to watch: "Performative agreement" β agent says "good catch, fixed" without verifying. Always run the gate after review.
6. Goose / Claude Desktop integration (new in v5.1) β
Problem: Your agent host (Goose, Claude Desktop) doesn't know your project memory.
Solution: cm mcp-serve exposes all 15 memory + context tools over stdio.
# Get config snippet for your client
cm mcp-serve --print-config
# Goose: paste the YAML block into ~/.config/goose/config.yaml
# Claude Desktop: paste the JSON block into claude_desktop_config.jsonOnce connected, the agent can call:
cm_query("auth token")β FTS5 search across all learningscm_resolve("cm://pipeline/current")β read live chain statecm_natural("remember thatβ¦")β persist learnings in plain Englishcm_budget_check(category, tokens)β pre-flight before big tasks
See Goose Integration Guide for full setup.
7. Content / growth β "Ship assets without breaking the app" β
Problem: Marketing velocity is blocked waiting for devs to review landing page changes.
Solution: content-launch chain with quality gate.
cm chain start content-launch "Q2 product launch campaign"
# β Step 1: cm-content-factory (StoryBrand, copy, SEO)
# β Step 2: cm-ads-tracker (UTM, conversion tracking)
# β Step 3: cm-cro-methodology (CRO analysis)
# Still gate if changes touch code paths
npm run test:gate:kit8. Security-sensitive repo β "Agents + secrets = anxiety" β
Problem: AI agents sometimes hallucinate file paths, write hardcoded credentials, or suggest patterns that introduce vulnerabilities.
Solution: Guardian hooks + secret scanning + security skills.
# Before every push
npm run gate:secrets # scans for credential patterns
# Deploy only after dry run
npm run deploy:dry # verify deploy config before applyingSkills for security-sensitive work:
cm-safe-deployβ credential detection, rotation workflowscm-identity-guardβ auth/authz reviewcm-safe-deployβ pre-merge security audit
Execution security rules (enforced by cm-execution):
- Frontend: escape before innerHTML, no eval, use textContent
- Backend Python: always
safe_resolve()for paths, noshell=True - Express/Node: body size limits, prototype pollution guards
9. Long initiative across weeks β "Context doesn't survive sprints" β
Problem: A 3-week initiative loses coherence. Different sessions make conflicting decisions. Plans drift.
Solution: OpenSpec + context bus + CONTINUITY.md form a persistent spine.
Week 1: cm-brainstorm-idea β proposal.md
Week 2: cm-planning β tasks.md + design.md
Week 3+: cm-execution + daily chain advancesEvery session:
cat .cm/CONTINUITY.mdβ see active goal + decisionscm chain status <id>β see which steps are donecm_resolve("cm://pipeline/current")β read what upstream steps produced
Decisions accumulate in SQLite. By week 3, the agent has context that no human reviewer could manually reconstruct.
10. Measuring improvement β "Are skills actually helping?" β
Problem: You suspect CodyMaster is helping, but you have no data.
Solution: CodyBench β A/B eval with and without CodyMaster.
# Run all 3 suites: tdd-regression, token-efficiency, memory-retention
cm bench
# Save a baseline before a big change
cm bench --output reports/before-v5.json
# After changes
cm bench --output reports/after-v5.json
# Compare: with-codymaster vs baseline columnsResults show: does TDD regression rate drop? Do token costs decrease? Does memory retrieval accuracy improve?
See CodyBench methodology for how suites are scored.