agentleFS
mboss37mboss37/claude-launchpad/AGENTS.md

claude-launchpad

AGENTS.md8 starsChanged 5 months agoMITView on GitHub

CLI toolkit that makes Claude Code and Cursor Agent setups measurably good — diagnose, scaffold, evaluate, remember. This checkout is opened in Cursor. Claude Code project files (CLAUDE.md, .claude/) stay in the repo for the product and for anyone still using Claude Code. Prefer the Cursor paths below when editing this tree. Unit tests for logic, regression tests for CLI end-to-end, benchmarks for memory algorithm quality. MANDATORY: Before releasing any memory feature, bugfix, or algorithm change, run pnpm bench:memory and…

  • Commits and pushes

The file

Show its rules and text

We split this AGENTS.md into the rules it gives an agent

27 rules. About 0 are common, 14 are distinctive, and 13 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈14

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 13

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    ALWAYS read @TASKS.md first — it tracks progress across sessions

    line 16
  2. Very specific:

    Update TASKS.md as you complete work.

    line 17
  3. Distinctive:

    Every WP uses the 7-field template (Priority, Proposed, Stories/Docs, Depends on, Estimate, Trigger to pull, Definition of done)

    line 22
  4. Very specific:

    MANDATORY: Before releasing any memory feature, bugfix, or algorithm change, run pnpm bench:memory and verify no regressions.

    line 56
  5. Very specific:

    Commit the pull + plan together: chore(sprint-N): pull WP-NNN into sprint + plan.

    line 81
  6. Very specific:

    Add one-line summary to ## Completed Sprints.

    line 86
  7. Very specific:

    Update ## Session Log (prune to 3 entries).

    line 88
  8. Very specific:

    Commit with feat/fix/refactor prefix.

    line 90
  9. Very specific:

    Every sprint-ending commit goes through superpowers:requesting-code-review:

    line 94
  10. Distinctive:

    All errors handled explicitly with user-friendly messages

    line 107
  11. Distinctive:

    NEVER bump version on every commit: Use the dev/release publish workflow:

    line 113
  12. Very specific:

    During dev: commit freely, no version bump.

    line 114
  13. Distinctive:

    Never add third-party dependencies without justification — self-contained

    line 121
  14. Very specific:

    Never require API keys for doctor — it must be free and offline

    line 122
  15. Distinctive:

    Never hardcode stack-specific logic — auto-detect or stay generic

    line 123
  16. Distinctive:

    Never add dependencies without justification — CLI must stay fast (<2s startup)

    line 124
  17. Distinctive:

    Never write implementation before the test when the change qualifies for TDD (see conventions.mdc)

    line 125
  18. Distinctive:

    Never claim Cursor Cloud memory support

    line 126
  19. Distinctive:

    Wait for all agents to return, synthesize their findings, then act.

    line 134
  20. Distinctive:

    Don't keep guessing in circles — rotate perspectives.

    line 135
  21. Very specific:

    Before spinning up agents, consider superpowers:systematic-debugging — it often resolves the loop without needing the swarm.

    line 137
  22. Distinctive:

    No ECC dependency: generates its own hooks and settings

    line 141
  23. Very specific:

    DO NOT: use the built-in Claude auto-memory system (~/.claude/projects/*/memory/) or Cursor Cloud memory

    line 152
  24. Very specific:

    Use memory_search before memory_store to check for duplicates

    line 154
  25. Very specific:

    Use memory_update to modify existing memories instead of creating new ones

    line 155
  26. Distinctive:

    STORE IMMEDIATELY: when: a dependency strategy changes, an architecture decision is made, a convention is established, a bug pattern is …

    line 156
  27. Distinctive:

    Use absolute dates (not "next week") so memories stay useful across sessions

    line 158

≈ “Common” is an estimate: at least 1 in 5 of the 45,344 AGENTS.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
AGENTS.md

Claude Launchpad

CLI toolkit that makes Claude Code and Cursor Agent setups measurably good — diagnose, scaffold, evaluate, remember.

This checkout is opened in Cursor. Claude Code project files (CLAUDE.md, .claude/) stay in the repo for the product and for anyone still using Claude Code. Prefer the Cursor paths below when editing this tree.

Stack

  • Language: TypeScript (strict mode)
  • Runtime: Node.js 22+
  • CLI: Commander.js + @inquirer/prompts
  • Testing: Vitest
  • Package Manager: pnpm
  • Build: tsup (two entry points: cli.ts + memory/server.ts)

Session Start

  • ALWAYS read @TASKS.md first — it tracks progress across sessions
  • Update TASKS.md as you complete work. Between sprints, ## Current Sprint must be empty
  • TASKS.md/BACKLOG.md record intent, not world state. Before acting on any external fact they mention (npm publish state, CI status, open vulns), verify at the source (npm view claude-launchpad dist-tags, gh, pnpm audit)

Backlog

  • See .cursor/rules/workflow.mdc (Cursor) or .claude/rules/workflow.md (Claude) for the BACKLOG/TASKS lifecycle
  • Every WP uses the 7-field template (Priority, Proposed, Stories/Docs, Depends on, Estimate, Trigger to pull, Definition of done)
  • WPs are moved between BACKLOG.md and TASKS.md, not copied — a WP lives in exactly one file at a time
  • BACKLOG.md keeps structural sections (P0/P1/P2/P3/Changelog); do not delete the sections, keep them active

Architecture

  • Four CLI commands: init (scaffold), doctor (diagnose), eval (test configs), memory (optional persistent memory)
  • Two skills: /lp-enhance (instruction-file improver), /lp-migrate-memory (legacy memory migration)
  • doctor is pure static analysis — no API calls, no cost, works offline; --fix auto-repairs issues
  • init defaults to Claude Code. --harness cursor writes AGENTS.md, .cursor/, and Cursor hooks. --harness both writes both surfaces and shares TASKS.md / BACKLOG.md
  • eval runs Claude via Agent SDK or Cursor Agent via --harness cursor
  • memory is optional — SQLite + FTS5 + decay model + 7 MCP tools + TUI dashboard. Same DB for both harnesses
  • Memory native dep (better-sqlite3) is NOT bundled — installed when setting up memory
  • Distributed as npm package (npx claude-launchpad) — users never clone this repo
  • Package name stays claude-launchpad. Cursor Cloud memory is not supported
  • See .cursor/rules/architecture.mdc for full project structure and command flow

Commands

  • Dev: pnpm dev
  • Build: pnpm build
  • Test: pnpm test / pnpm test:run
  • Benchmarks: pnpm bench:memory
  • Type check: pnpm typecheck
  • Run locally: npx tsx src/cli.ts <command>

Test Layers

  • Unit tests (pnpm test:run): Vitest covering generators, analyzers, fixers, repos, services, utils, dashboard interactions
  • Regression tests (pnpm test:regression and pnpm test:regression:cursor): real CLI against temp projects
  • Benchmarks (pnpm bench:memory): 59 tests measuring retrieval, injection, decay, and scale

Unit tests for logic, regression tests for CLI end-to-end, benchmarks for memory algorithm quality.

Memory Benchmarks

Benchmark suite in tests/memory/benchmarks/ — 59 tests across 5 files. Excluded from pnpm test; run separately via pnpm bench:memory.

MANDATORY: Before releasing any memory feature, bugfix, or algorithm change, run pnpm bench:memory and verify no regressions. Do NOT ship memory changes with failing benchmarks. If a change intentionally shifts metrics (e.g. tuning scoring weights), update the benchmark thresholds and document why in the commit message.

Development Workflow (Superpowers-first)

This project uses the superpowers skills for every non-trivial change. The sequence is not optional:

  1. Brainstorm — before any creative/design work, invoke superpowers:brainstorming. Clarify intent, requirements, tradeoffs BEFORE touching code.
  2. Plan — for multi-step work, invoke superpowers:writing-plans. The plan file is the source of truth during execution; revise it, don't abandon it.
  3. TDD — for any new feature, bug fix, or algorithm change, invoke superpowers:test-driven-development. Write the failing test FIRST, make it pass, refactor. Never write implementation before the test. See "Test-Driven Development" in .cursor/rules/conventions.mdc for when this is rigid vs flexible.
  4. Execute — drive implementation from the plan. Use superpowers:subagent-driven-development when tasks are independent; use superpowers:dispatching-parallel-agents only for genuinely independent research/lookups.
  5. Debug — when encountering a bug or unexpected behavior, invoke superpowers:systematic-debugging BEFORE guessing a fix.
  6. Verify — before claiming "done", invoke superpowers:verification-before-completion. Run the verification commands; confirm the output; don't assert success without evidence.
  7. Review — before sprint-ending commit, invoke superpowers:requesting-code-review (MANDATORY, see Sprint Reviews). Address Important findings in-sprint.
  8. Integrate — when work is complete, invoke superpowers:finishing-a-development-branch to decide merge/PR/cleanup.

Shortcut rule: if a skill's description plausibly applies, invoke it. Rationalizing "this is too simple" is the failure mode.

Sprint Lifecycle

Starting a sprint (one session, one commit):

  1. Pick top-priority WPs from BACKLOG.md (P0 first, then P1).
  2. Same edit: delete from BACKLOG.md, add to TASKS.md ## Current Sprint as - [ ] WP-NNN — short title.
  3. Update BACKLOG.md ## Changelog: YYYY-MM-DD: WP-NNN pulled into Sprint N.
  4. Invoke superpowers:writing-plans if the sprint is non-trivial (>1 WP or any new feature).
  5. For hard-TDD surfaces (see conventions.mdc), invoke superpowers:test-driven-development BEFORE implementation.
  6. Commit the pull + plan together: chore(sprint-N): pull WP-NNN into sprint + plan.

Closing a sprint (one session, one commit):

  1. All ## Current Sprint items checked off, or explicitly moved back with rationale.
  2. Invoke superpowers:requesting-code-review — address Important findings before commit.
  3. Add one-line summary to ## Completed Sprints.
  4. Empty ## Current Sprint back to its placeholder comment.
  5. Update ## Session Log (prune to 3 entries).
  6. BACKLOG.md ## Changelog: YYYY-MM-DD: Sprint N closed. WP-NNN done.
  7. Commit with feat/fix/refactor prefix; bump version + CHANGELOG per release checklist if shipping.

Sprint Reviews (MANDATORY before sprint-ending commit)

Every sprint-ending commit goes through superpowers:requesting-code-review:

  1. Invoke the skill; dispatch the superpowers:code-reviewer subagent with base/head SHAs and a description.
  2. Fix all Critical and Important findings before committing.
  3. Minor findings can be deferred to BACKLOG.md as WPs.
  4. Skip ONLY for trivial sprints (docs-only, config-only, no logic).

For an independent second pass without superpowers, dispatch .cursor/agents/code-reviewer.md with the base/head SHAs.

Conventions

  • Conventional commits (feat:, fix:, docs:, refactor:, test:, chore:)
  • Immutable data patterns — never mutate, always return new objects
  • Functions < 50 lines, files < 400 lines
  • Named exports only, no any types
  • All errors handled explicitly with user-friendly messages
  • Lookup tables over switch statements (see tryFix(), detectScripts())
  • Semver: patch (bugfix), minor (new command/flag), major (breaking)
  • See .cursor/rules/conventions.mdc for pre-commit checklist, TDD rules, parallel agent rules

Release Checklist

NEVER bump version on every commit. Use the dev/release publish workflow:

  • During dev: commit freely, no version bump. When ready to test: pnpm publish:dev (publishes under dev tag, not latest)
  • For release: bump version in package.json + src/cli.ts, update CHANGELOG.md, commit, push, pnpm publish:release, then git tag v<version> && git push origin v<version> && gh release create v<version>, then flip the TASKS.md Release Plan line to ✅ shipped YYYY-MM-DD and commit — a publish without that edit is unfinished
  • Non-src changes (docs, TASKS.md): commit normally, no publish
  • See .cursor/rules/conventions.mdc for full details

Off-Limits

  • Never hardcode secrets
  • Never add third-party dependencies without justification — self-contained
  • Never require API keys for doctor — it must be free and offline
  • Never hardcode stack-specific logic — auto-detect or stay generic
  • Never add dependencies without justification — CLI must stay fast (<2s startup)
  • Never write implementation before the test when the change qualifies for TDD (see conventions.mdc)
  • Never claim Cursor Cloud memory support

Stop-and-Swarm

Three failed iterations on the same problem = stop iterating alone. On the fourth attempt, dispatch at least 3 parallel subagents via the Task tool (in a single message so they run concurrently), each investigating from a different angle:

  1. Root-cause debug agent
  2. Upstream library/docs research agent
  3. Alternative architecture agent Wait for all agents to return, synthesize their findings, then act. Don't keep guessing in circles — rotate perspectives.

Before spinning up agents, consider superpowers:systematic-debugging — it often resolves the loop without needing the swarm.

Key Decisions

  • Stack-agnostic: auto-detects project type instead of offering a fixed menu
  • No ECC dependency: generates its own hooks and settings
  • npm distribution: npx claude-launchpad — not a template repo to clone
  • Doctor is the gateway (free, immediate), eval is the differentiator (costs money, measures quality)
  • YAML for eval scenarios: human-readable, community-contributable
  • Memory is optional: native deps deferred to user install, pure-JS deps in optionalDependencies
  • Plugin system killed: CLI is the product, no marketplace dependency
  • Workflow discipline is load-bearing (v1.10.0): BACKLOG/TASKS template + workflow rules + workflow-check hook shipped together
  • Cursor Agent is a second local harness via --harness. Init default stays claude. Scores are never averaged. Same memory DB + memory serve

Memory (agentic-memory)

This project uses agentic-memory for persistent memory across sessions. Claude Code and Cursor share the same local SQLite database and npx claude-launchpad memory serve.

  • DO NOT use the built-in Claude auto-memory system (~/.claude/projects/*/memory/) or Cursor Cloud memory
  • Cursor does not auto-inject memories at session start — call memory_search when you need prior context
  • Use memory_search before memory_store to check for duplicates
  • Use memory_update to modify existing memories instead of creating new ones
  • STORE IMMEDIATELY when: a dependency strategy changes, an architecture decision is made, a convention is established, a bug pattern is discovered, or a feature is killed/added
  • NEVER store credentials, API keys, tokens, passwords, or other secrets in memories
  • Use absolute dates (not "next week") so memories stay useful across sessions
  • Cross-device sync is explicit: memory sync, memory push, or memory pull

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.