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
In this repository25 other files it gives its agents.
- AGENTS.mdAGENTS.md
- .github/copilot-instructions.mdCopilot instructions
- .cursor/rules/tta-dev.mdcCursor rule
- build-test-verifySkill
- core-conventionsSkill
- create-atomic-noteSkill
- create-pull-requestSkill
- git-commitSkill
- sdd-workflowSkill
- self-review-checklistSkill
- session-startSkill
- build-test-verifySkill
- core-conventionsSkill
- create-agentSkill
- create-atomic-noteSkill
- create-pull-requestSkill
- Feature DevelopmentSkill
- git-commitSkill
- Incident ResponseSkill
- Package ReleaseSkill
- sdd-workflowSkill
- self-review-checklistSkill
- session-startSkill
- ttadev-llmSkill
- ttadev-primitivesSkill
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
- Very specific: line 7
No implementation code before a signed-off spec: Follow the sdd-workflow skill for the 4-phase process (/specify → /plan → /tasks → …
- Distinctive: line 69
Primitives: Always use for workflows (never manual retry/timeout loops)
- Very specific: line 72
Orient before edit: Run CGC (find_code + analyze_code_relationships) on any non-trivial target before touching it — enforced by hook …
- Distinctive: line 78
Prefer semantic tools over raw file reads for symbol-level work:
- Distinctive: line 90
Use Serena for precise, symbol-level edits (you know the function, you want to read/replace it)
- Distinctive: line 91
Use CGC for orientation (you need to understand relationships and impact before touching anything)
- Distinctive: line 118
If a task is about coordinating coding agents, task ownership, approvals, leases, or developer work orchestration, continue from that L0 …
- Distinctive: line 124
use the current L0 surface to prove one documented, repeatable multi-agent workflow
- Very specific: line 129
When implementing these, keep the design additive, local-first, and compatible with the existing .tta session/project model.
- Very specific: line 141
MUST run impact analysis before editing any symbol: Before modifying a function, class, or method, run gitnexus_impact({target: …
- Distinctive: line 143
MUST warn the user: if impact analysis returns HIGH or CRITICAL risk before proceeding with edits.
- Very specific: line 144
When exploring unfamiliar code, use gitnexus_query({query: "concept"}) to find execution flows instead of grepping.
- Very specific: line 145
When you need full context on a specific symbol — callers, callees, which execution flows it participates in — use gitnexus_context({name: …
- Very specific: line 149
NEVER edit a function, class, or method without first running gitnexus_impact on it.
- Distinctive: line 150
NEVER ignore HIGH or CRITICAL risk warnings from impact analysis.
- Very specific: line 151
NEVER rename symbols with find-and-replace — use gitnexus_rename which understands the call graph.
- Very specific: line 152
NEVER commit changes without running gitnexus_detect_changes() to check affected scope.
≈ “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.
Files
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).
mcp__hindsight__recall— queryadam-globalfor durable directives/preferences, then query the current derivedproject-*orworkspace-*bank for repository-specific mental models and contextmcp__codegraphcontext__get_repository_stats— confirm graph is current- 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-*orworkspace-*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 suiteAgent Skills (Tier 2)
| Skill | When to Use |
| session-start | Start of every session — load directives, mental models, CGC orientation |
| build-test-verify | Build, test, lint, verify |
| git-commit | Making commits |
| create-pull-request | Creating PRs |
| core-conventions | Writing/reviewing Python code |
| self-review-checklist | Pre-merge review |
| sdd-workflow | New feature development |
Agent Guides (Tier 3)
| Guide | Content |
| testing-architecture | Testing standards, CI pipeline |
| primitives-patterns | Composition, all primitives |
| python-standards | Types, naming, imports |
| sdd-constitution | Full SDD §1-§4 |
| observability-guide | OpenTelemetry integration |
| todo-management | Repository TODO format and session task tracking |
| secrets-guide | API keys, .env, 1Password CLI |
| llm-provider-strategy | Live Hindsight runtime defaults, Groq preference, and fallback provider guidance |
Non-Negotiable Standards (Quick Reference)
- Package manager:
uvalways (neverpip/poetry) - Python: 3.12+ with
str | None(notOptional[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 watchduring development,make testfor 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-20bfor 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-globaland repo-specific signal in the current derivedproject-*orworkspace-*Hindsight bank - TTA cross-repo edits:
~/Repos/TTAis owned by the local TTA agent — never edit it directly. Clone to/tmp/TTA-copilot, commit + push, thenrm -rf /tmp/TTA-copilot.
Tool Selection: Symbol Lookup
Prefer semantic tools over raw file reads for symbol-level work:
| Goal | Use | Instead of |
| Find where a function/class is defined | mcp__plugin_serena_serena__find_symbol | Grep + Read |
| Find all callers of a function | mcp__plugin_serena_serena__find_referencing_symbols | Grep pattern search |
| Scan all symbols in a file | mcp__plugin_serena_serena__get_symbols_overview | Read whole file |
| Replace a function body precisely | mcp__plugin_serena_serena__replace_symbol_body | Edit with large context |
| Understand cross-file dependencies | mcp__codegraphcontext__analyze_code_relationships | Reading multiple files |
| Search for a symbol across the repo | mcp__codegraphcontext__find_code | Grep |
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
| Agent | Config |
| Claude Code | CLAUDE.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.pyttadev/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
- use the current L0 surface to prove one documented, repeatable multi-agent workflow
- deepen approval/policy/review workflows only where that workflow needs richer coordination
- strengthen ownership and telemetry attribution so active workflow steps can be explained clearly
- 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 analyzein 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_impacton it. - NEVER ignore HIGH or CRITICAL risk warnings from impact analysis.
- NEVER rename symbols with find-and-replace — use
gitnexus_renamewhich understands the call graph. - NEVER commit changes without running
gitnexus_detect_changes()to check affected scope.
Resources
| Resource | Use for |
gitnexus://repo/TTA.dev/context | Codebase overview, check index freshness |
gitnexus://repo/TTA.dev/clusters | All functional areas |
gitnexus://repo/TTA.dev/processes | All execution flows |
gitnexus://repo/TTA.dev/process/{name} | Step-by-step execution trace |
CLI
| Task | Read 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 -->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
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.

