Skip to content

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.

bash
# 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 off

During 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 delay

cm_natural (MCP) routes these to SQLite. Next session:

what did we learn about TypeScript?   β†’ retrieves all TS-related learnings

Result: 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.

bash
# 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 state

Agent 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.

bash
# 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:gate

Key: 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.

bash
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 response

This 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.

bash
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.

bash
# 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.json

Once connected, the agent can call:

  • cm_query("auth token") β€” FTS5 search across all learnings
  • cm_resolve("cm://pipeline/current") β€” read live chain state
  • cm_natural("remember that…") β€” persist learnings in plain English
  • cm_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.

bash
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:kit

8. 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.

bash
# Before every push
npm run gate:secrets              # scans for credential patterns

# Deploy only after dry run
npm run deploy:dry                # verify deploy config before applying

Skills for security-sensitive work:

  • cm-safe-deploy β€” credential detection, rotation workflows
  • cm-identity-guard β€” auth/authz review
  • cm-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, no shell=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 advances

Every session:

  1. cat .cm/CONTINUITY.md β€” see active goal + decisions
  2. cm chain status <id> β€” see which steps are done
  3. cm_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.

bash
# 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 columns

Results show: does TDD regression rate drop? Do token costs decrease? Does memory retrieval accuracy improve?

See CodyBench methodology for how suites are scored.


See also ​

CodyMaster β€” AI-assisted engineering toolkit