TTA.dev
AGENTS.md0 starsChanged 7 months agoMITView on GitHub
Universal entry point. All AI coding agents read this first. OpenCode users: this is your primary instruction file. A Python library of composable workflow primitives, observability tooling, and multi-agent coordination infrastructure. The sole developer uses Claude Code, GitHub Copilot, and OpenCode. Skills live in .github/skills/. Invoke by name when relevant. Before creating a new skill, search github/awesome-copilot first. Deep-dive references for specific topics: Copilot Chat agents with specialized roles:
- Reads credentials
Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about code style.
Of the AGENTS.md files we read, the 31,700 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.
In this repository25 other files it gives its agents.
- CLAUDE.mdCLAUDE.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
We split this AGENTS.md into the rules it gives an agent
11 rules. About 0 are common, 2 are distinctive, and 9 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈2
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 30
Always use primitives for retry/timeout/circuit-breaker — never write manual loops
- Very specific: line 34
Never edit ~/Repos/TTA directly — clone to /tmp/TTA-copilot, push, then delete
- Very specific: line 68
Before creating a new skill, search github/awesome-copilot first.
- Very specific: line 139
MUST run impact analysis before editing any symbol: Before modifying a function, class, or method, run gitnexus_impact({target: …
- Distinctive: line 141
MUST warn the user: if impact analysis returns HIGH or CRITICAL risk before proceeding with edits.
- Very specific: line 142
When exploring unfamiliar code, use gitnexus_query({query: "concept"}) to find execution flows instead of grepping.
- Very specific: line 143
When you need full context on a specific symbol — callers, callees, which execution flows it participates in — use gitnexus_context({name: …
- Very specific: line 147
NEVER edit a function, class, or method without first running gitnexus_impact on it.
- Distinctive: line 148
NEVER ignore HIGH or CRITICAL risk warnings from impact analysis.
- Very specific: line 149
NEVER rename symbols with find-and-replace — use gitnexus_rename which understands the call graph.
- Very specific: line 150
NEVER commit changes without running gitnexus_detect_changes() to check affected scope.
≈ “Common” is an estimate: at least 1 in 5 of the 40,246 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.
Files
TTA.dev — Agent Instructions
Universal entry point. All AI coding agents read this first. OpenCode users: this is your primary instruction file.
What is TTA.dev?
A Python library of composable workflow primitives, observability tooling, and multi-agent coordination infrastructure. The sole developer uses Claude Code, GitHub Copilot, and OpenCode.
Commands
uv sync --all-extras # Install (uv only — never pip or poetry)
make watch # TDD loop (fast, fail-fast, use during development)
make test # Full run with coverage (use before committing)
uv run ruff format . && uv run ruff check . --fix # Format + lint
uvx pyright ttadev/ # Type check
.github/copilot-hooks/post-generation.sh # Full quality gate
# Running with 1Password secret injection:
op run --env-file=.env -- uv run python -m ttadev.observability
# First copy .env.template to .env and fill in your keysRules (non-negotiable)
uvonly — neverpiporpoetry- Python 3.12+,
str | NonenotOptional[str],dict[str, Any]notDict - Always use primitives for retry/timeout/circuit-breaker — never write manual loops
- Pass state via
WorkflowContext— no globals - 100% test coverage on new code; AAA pattern;
MockPrimitivefor mocking - Conventional Commits format (
feat:,fix:,docs:, etc.) - Never edit
~/Repos/TTAdirectly — clone to/tmp/TTA-copilot, push, then delete
Routing: When working on…
| Topic | Read before touching code |
| Primitives / architecture | docs/agents/dev/architecture.md |
| Retry / timeout / circuit breaker | docs/agents/dev/reliability.md |
| OTel / Langfuse tracing | docs/agents/dev/observability.md |
| Tests / coverage / MockPrimitive | docs/agents/dev/testing.md |
| L0 task coordination / leases | docs/agents/dev/l0-coordination.md |
| Agent roles / roster | docs/agents/runtime/l0-roster.md |
| Composition model / catalog | docs/agents/dev/composition-model.md |
Skills (on-demand HOW-TO workflows)
Skills live in .github/skills/. Invoke by name when relevant.
| Skill | Purpose |
session-start | Orient at session start — load context, warm up |
build-test-verify | Build, test, lint, type-check, verify quality |
core-conventions | Python code conventions (uv, types, primitives, state) |
git-commit | Conventional Commits format and pre-commit checks |
create-pull-request | PR title, description, review checklist |
self-review-checklist | Pre-merge quality audit |
sdd-workflow | Spec-Driven Development 4-phase workflow |
ttadev-primitives | Compose workflows with >> operator and primitives |
ttadev-llm | Call LLMs via LiteLLMPrimitive / UniversalLLMPrimitive |
feature-development | Full-stack feature workflow (API → UI → tests) |
package-release | PyPI release workflow with validation |
incident-response | Emergency production response |
create-atomic-note | Save a KB note to docs/kb-exports/ |
Before creating a new skill, search github/awesome-copilot first.
Agent-Specific Guides (docs/agent-guides/)
Deep-dive references for specific topics:
| Guide | Content |
testing-architecture.md | Testing standards, CI pipeline |
primitives-patterns.md | Composition, all primitives |
python-standards.md | Types, naming, imports |
sdd-constitution.md | Full SDD §1-§4 |
observability-guide.md | OpenTelemetry integration |
todo-management.md | Repository TODO format |
secrets-guide.md | API keys, .env, 1Password CLI |
llm-provider-strategy.md | Provider routing and fallback |
l0-workflow-runbook.md | L0 control plane walkthrough |
Custom Agents (.github/agents/)
Copilot Chat agents with specialized roles:
| Agent | Specialty |
architect | System design, patterns, trade-offs |
backend-engineer | Python primitives and workflows |
frontend-engineer | React/TypeScript UI |
testing-specialist | QA, test automation, validation |
code-reviewer | Post-implementation quality audit |
project-planner | SDD specs and task breakdowns |
devops-engineer | Infrastructure, CI/CD, deployment |
data-scientist | Data analysis, ML workflows |
observability-expert | Monitoring, tracing, metrics |
Copilot Instructions (.github/instructions/)
Auto-applied by file pattern — agents don't need to reference these directly:
| File | Applies to |
python.instructions.md | ttadev/**/*.py |
testing.instructions.md | **/tests/**/*.py |
scripts.instructions.md | scripts/**/*.py |
documentation.instructions.md | **/*.md |
agents.instructions.md | **/*.agent.md |
agent-skills.instructions.md | **/.github/skills/**/SKILL.md |
instructions.instructions.md | **/*.instructions.md |
agent-safety.instructions.md | ** (all files) |
context-engineering.instructions.md | ** (all files) |
ai-prompt-engineering-safety-best-practices.instructions.md | ** (all files) |
github-actions-ci-cd-best-practices.instructions.md | .github/workflows/*.yml |
L0 Directive
Agent coordination, task ownership, and leases live in ttadev/control_plane/ and
ttadev/cli/control.py. Extend there — do not build parallel systems.
Maintenance
See docs/agents/MAINTENANCE.md — budget enforcement, how to update this tree,
and cross-repo sync rules with the TTA repository.
<!-- 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.

