agentleFS
theinternetitheinterneti/TTA.dev/AGENTS.md

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

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
  1. Very specific:

    Always use primitives for retry/timeout/circuit-breaker — never write manual loops

    line 30
  2. Very specific:

    Never edit ~/Repos/TTA directly — clone to /tmp/TTA-copilot, push, then delete

    line 34
  3. Very specific:

    Before creating a new skill, search github/awesome-copilot first.

    line 68
  4. Very specific:

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

    line 139
  5. Distinctive:

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

    line 141
  6. Very specific:

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

    line 142
  7. Very specific:

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

    line 143
  8. Very specific:

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

    line 147
  9. Distinctive:

    NEVER ignore HIGH or CRITICAL risk warnings from impact analysis.

    line 148
  10. Very specific:

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

    line 149
  11. Very specific:

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

    line 150

≈ “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.

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

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 keys

Rules (non-negotiable)

  • uv only — never pip or poetry
  • Python 3.12+, str | None not Optional[str], dict[str, Any] not Dict
  • 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; MockPrimitive for mocking
  • Conventional Commits format (feat:, fix:, docs:, etc.)
  • Never edit ~/Repos/TTA directly — clone to /tmp/TTA-copilot, push, then delete

Routing: When working on…

TopicRead before touching code
Primitives / architecturedocs/agents/dev/architecture.md
Retry / timeout / circuit breakerdocs/agents/dev/reliability.md
OTel / Langfuse tracingdocs/agents/dev/observability.md
Tests / coverage / MockPrimitivedocs/agents/dev/testing.md
L0 task coordination / leasesdocs/agents/dev/l0-coordination.md
Agent roles / rosterdocs/agents/runtime/l0-roster.md
Composition model / catalogdocs/agents/dev/composition-model.md

Skills (on-demand HOW-TO workflows)

Skills live in .github/skills/. Invoke by name when relevant.

SkillPurpose
session-startOrient at session start — load context, warm up
build-test-verifyBuild, test, lint, type-check, verify quality
core-conventionsPython code conventions (uv, types, primitives, state)
git-commitConventional Commits format and pre-commit checks
create-pull-requestPR title, description, review checklist
self-review-checklistPre-merge quality audit
sdd-workflowSpec-Driven Development 4-phase workflow
ttadev-primitivesCompose workflows with >> operator and primitives
ttadev-llmCall LLMs via LiteLLMPrimitive / UniversalLLMPrimitive
feature-developmentFull-stack feature workflow (API → UI → tests)
package-releasePyPI release workflow with validation
incident-responseEmergency production response
create-atomic-noteSave 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:

GuideContent
testing-architecture.mdTesting standards, CI pipeline
primitives-patterns.mdComposition, all primitives
python-standards.mdTypes, naming, imports
sdd-constitution.mdFull SDD §1-§4
observability-guide.mdOpenTelemetry integration
todo-management.mdRepository TODO format
secrets-guide.mdAPI keys, .env, 1Password CLI
llm-provider-strategy.mdProvider routing and fallback
l0-workflow-runbook.mdL0 control plane walkthrough

Custom Agents (.github/agents/)

Copilot Chat agents with specialized roles:

AgentSpecialty
architectSystem design, patterns, trade-offs
backend-engineerPython primitives and workflows
frontend-engineerReact/TypeScript UI
testing-specialistQA, test automation, validation
code-reviewerPost-implementation quality audit
project-plannerSDD specs and task breakdowns
devops-engineerInfrastructure, CI/CD, deployment
data-scientistData analysis, ML workflows
observability-expertMonitoring, tracing, metrics

Copilot Instructions (.github/instructions/)

Auto-applied by file pattern — agents don't need to reference these directly:

FileApplies to
python.instructions.mdttadev/**/*.py
testing.instructions.md**/tests/**/*.py
scripts.instructions.mdscripts/**/*.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 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.