agentleFS
theinternetitheinterneti/TTA.dev/CLAUDE.md

TTA.dev

CLAUDE.md0 starsChanged 7 months agoMITView on GitHub

Claude Code is the primary agent for this repository. Other agents defer to Claude Code's decisions on architecture and standards. The owner is the sole developer. No implementation code before a signed-off spec. Follow the sdd-workflow skill for the 4-phase process (/specify → /plan → /tasks → /implement). Full constitution: docs/agent-guides/sdd-constitution.md. Every session begins with /session-start (or the session-start skill steps manually). Every significant task ends with mcp__hindsight__retain to the right bank: - retain cross-project preferences and reusable workflow patterns…

  • Reads credentials
  • Deletes or force-pushes

The file

Show its rules and text

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

17 rules. About 0 are common, 8 are distinctive, and 9 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈8

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 9

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    No implementation code before a signed-off spec: Follow the sdd-workflow skill for the 4-phase process (/specify → /plan → /tasks → …

    line 7
  2. Distinctive:

    Primitives: Always use for workflows (never manual retry/timeout loops)

    line 69
  3. Very specific:

    Orient before edit: Run CGC (find_code + analyze_code_relationships) on any non-trivial target before touching it — enforced by hook …

    line 72
  4. Distinctive:

    Prefer semantic tools over raw file reads for symbol-level work:

    line 78
  5. Distinctive:

    Use Serena for precise, symbol-level edits (you know the function, you want to read/replace it)

    line 90
  6. Distinctive:

    Use CGC for orientation (you need to understand relationships and impact before touching anything)

    line 91
  7. Distinctive:

    If a task is about coordinating coding agents, task ownership, approvals, leases, or developer work orchestration, continue from that L0 …

    line 118
  8. Distinctive:

    use the current L0 surface to prove one documented, repeatable multi-agent workflow

    line 124
  9. Very specific:

    When implementing these, keep the design additive, local-first, and compatible with the existing .tta session/project model.

    line 129
  10. Very specific:

    MUST run impact analysis before editing any symbol: Before modifying a function, class, or method, run gitnexus_impact({target: …

    line 141
  11. Distinctive:

    MUST warn the user: if impact analysis returns HIGH or CRITICAL risk before proceeding with edits.

    line 143
  12. Very specific:

    When exploring unfamiliar code, use gitnexus_query({query: "concept"}) to find execution flows instead of grepping.

    line 144
  13. Very specific:

    When you need full context on a specific symbol — callers, callees, which execution flows it participates in — use gitnexus_context({name: …

    line 145
  14. Very specific:

    NEVER edit a function, class, or method without first running gitnexus_impact on it.

    line 149
  15. Distinctive:

    NEVER ignore HIGH or CRITICAL risk warnings from impact analysis.

    line 150
  16. Very specific:

    NEVER rename symbols with find-and-replace — use gitnexus_rename which understands the call graph.

    line 151
  17. Very specific:

    NEVER commit changes without running gitnexus_detect_changes() to check affected scope.

    line 152

≈ “Common” is an estimate: at least 1 in 5 of the 26,980 CLAUDE.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
CLAUDE.md

TTA.dev — Claude Code (Main Agent)

Claude Code is the primary agent for this repository. Other agents defer to Claude Code's decisions on architecture and standards. The owner is the sole developer.

SDD Mandate

No implementation code before a signed-off spec. Follow the sdd-workflow skill for the 4-phase process (/specify → /plan → /tasks → /implement). Full constitution: docs/agent-guides/sdd-constitution.md.

Session Start Protocol

Every session begins with /session-start (or the session-start skill steps manually).

  1. mcp__hindsight__recall — query adam-global for durable directives/preferences, then query the current derived project-* or workspace-* bank for repository-specific mental models and context
  2. mcp__codegraphcontext__get_repository_stats — confirm graph is current
  3. Acknowledge what was loaded before any task work begins

Every significant task ends with mcp__hindsight__retain to the right bank:

  • retain cross-project preferences and reusable workflow patterns in adam-global
  • retain repository-specific decisions, commands, patterns, and failures in the current derived project-* or workspace-* bank

Repo Layout

ttadev/             # Main package
├── primitives/     # Core workflow primitives (retry, cache, timeout, etc.)
├── agents/         # Role-based agent system (specs, registry, router)
├── observability/  # OpenTelemetry integration
├── integrations/   # LLM integrations (Anthropic, OpenAI, Groq, etc.)
├── cli/            # `tta` CLI subcommands
├── skills/         # Agent skills
└── ui/             # UI components
docs/               # Architecture, guides, agent docs
tests/              # Test suite

Agent Skills (Tier 2)

SkillWhen to Use
session-startStart of every session — load directives, mental models, CGC orientation
build-test-verifyBuild, test, lint, verify
git-commitMaking commits
create-pull-requestCreating PRs
core-conventionsWriting/reviewing Python code
self-review-checklistPre-merge review
sdd-workflowNew feature development

Agent Guides (Tier 3)

GuideContent
testing-architectureTesting standards, CI pipeline
primitives-patternsComposition, all primitives
python-standardsTypes, naming, imports
sdd-constitutionFull SDD §1-§4
observability-guideOpenTelemetry integration
todo-managementRepository TODO format and session task tracking
secrets-guideAPI keys, .env, 1Password CLI
llm-provider-strategyLive Hindsight runtime defaults, Groq preference, and fallback provider guidance

Non-Negotiable Standards (Quick Reference)

  • Package manager: uv always (never pip/poetry)
  • Python: 3.12+ with str | None (not Optional[str])
  • Linting: Ruff — line length 88, strict mode (uv run ruff check . --fix)
  • Type checking: Pyright basic mode (uvx pyright ttadev/)
  • Testing: pytest AAA pattern, 100% coverage for new code — use make watch during development, make test for the full run
  • Commits: Conventional Commits (feat:, fix:, docs:, etc.)
  • Primitives: Always use for workflows (never manual retry/timeout loops)
  • State: Pass via WorkflowContext (never globals)
  • LLM providers: Groq openai/gpt-oss-20b for the live Hindsight runtime by default; keep Gemini 3.1 Flash Lite Preview and local Ollama as fallbacks — see llm-provider-strategy
  • Orient before edit: Run CGC (find_code + analyze_code_relationships) on any non-trivial target before touching it — enforced by hook (.claude/settings.json)
  • Retain after task: Store cross-project signal in adam-global and repo-specific signal in the current derived project-* or workspace-* Hindsight bank
  • TTA cross-repo edits: ~/Repos/TTA is owned by the local TTA agent — never edit it directly. Clone to /tmp/TTA-copilot, commit + push, then rm -rf /tmp/TTA-copilot.

Tool Selection: Symbol Lookup

Prefer semantic tools over raw file reads for symbol-level work:

GoalUseInstead of
Find where a function/class is definedmcp__plugin_serena_serena__find_symbolGrep + Read
Find all callers of a functionmcp__plugin_serena_serena__find_referencing_symbolsGrep pattern search
Scan all symbols in a filemcp__plugin_serena_serena__get_symbols_overviewRead whole file
Replace a function body preciselymcp__plugin_serena_serena__replace_symbol_bodyEdit with large context
Understand cross-file dependenciesmcp__codegraphcontext__analyze_code_relationshipsReading multiple files
Search for a symbol across the repomcp__codegraphcontext__find_codeGrep

When to use Serena vs CGC:

  • Use Serena for precise, symbol-level edits (you know the function, you want to read/replace it)
  • Use CGC for orientation (you need to understand relationships and impact before touching anything)

Key References

  • AGENTS.md — Universal agent guidance
  • PRIMITIVES_CATALOG.md — Full API reference
  • GETTING_STARTED.md — Quick start
  • MCP_TOOL_REGISTRY.md — Available MCP tools

Multi-Agent Context

AgentConfig
Claude CodeCLAUDE.md (this file)
GitHub Copilot.github/copilot-instructions.md
Copilot path rules.github/instructions/

Cross-agent memory: .hindsight/ — see Hindsight Memory.

L0 Continuation Directive

TTA.dev now contains the first implemented L0 developer control-plane slice:

  • ttadev/control_plane/
  • ttadev/cli/control.py
  • ttadev/primitives/mcp_server/server.py

If a task is about coordinating coding agents, task ownership, approvals, leases, or developer work orchestration, continue from that L0 surface rather than building a second orchestration system somewhere else.

Immediate L0 Priorities

  1. use the current L0 surface to prove one documented, repeatable multi-agent workflow
  2. deepen approval/policy/review workflows only where that workflow needs richer coordination
  3. strengthen ownership and telemetry attribution so active workflow steps can be explained clearly
  4. connect additional agent-facing surfaces to the existing L0 state instead of creating parallel coordination systems

When implementing these, keep the design additive, local-first, and compatible with the existing .tta session/project model.

<!-- gitnexus:start -->

GitNexus — Code Intelligence

This project is indexed by GitNexus as TTA.dev (0 symbols, 0 relationships, 0 execution flows). Use the GitNexus MCP tools to understand code, assess impact, and navigate safely.

If any GitNexus tool warns the index is stale, run npx gitnexus analyze in terminal first.

Always Do

  • MUST run impact analysis before editing any symbol. Before modifying a function, class, or method, run gitnexus_impact({target: "symbolName", direction: "upstream"}) and report the blast radius (direct callers, affected processes, risk level) to the user.
  • MUST run gitnexus_detect_changes() before committing to verify your changes only affect expected symbols and execution flows.
  • MUST warn the user if impact analysis returns HIGH or CRITICAL risk before proceeding with edits.
  • When exploring unfamiliar code, use gitnexus_query({query: "concept"}) to find execution flows instead of grepping. It returns process-grouped results ranked by relevance.
  • When you need full context on a specific symbol — callers, callees, which execution flows it participates in — use gitnexus_context({name: "symbolName"}).

Never Do

  • NEVER edit a function, class, or method without first running gitnexus_impact on it.
  • NEVER ignore HIGH or CRITICAL risk warnings from impact analysis.
  • NEVER rename symbols with find-and-replace — use gitnexus_rename which understands the call graph.
  • NEVER commit changes without running gitnexus_detect_changes() to check affected scope.

Resources

ResourceUse for
gitnexus://repo/TTA.dev/contextCodebase overview, check index freshness
gitnexus://repo/TTA.dev/clustersAll functional areas
gitnexus://repo/TTA.dev/processesAll execution flows
gitnexus://repo/TTA.dev/process/{name}Step-by-step execution trace

CLI

TaskRead this skill file
Understand architecture / "How does X work?".claude/skills/gitnexus/gitnexus-exploring/SKILL.md
Blast radius / "What breaks if I change X?".claude/skills/gitnexus/gitnexus-impact-analysis/SKILL.md
Trace bugs / "Why is X failing?".claude/skills/gitnexus/gitnexus-debugging/SKILL.md
Rename / extract / split / refactor.claude/skills/gitnexus/gitnexus-refactoring/SKILL.md
Tools, resources, schema reference.claude/skills/gitnexus/gitnexus-guide/SKILL.md
Index, status, clean, wiki CLI commands.claude/skills/gitnexus/gitnexus-cli/SKILL.md
<!-- gitnexus:end -->

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.