agentleFS
ITSaltITSalt/NaCl/docs/agents.md

NaCl

AGENTS.md27 starsChanged 5 months agoMITView on GitHub

Home > Agent Architecture NaCl assigns every skill a cognitive profile: which Claude model runs it, how deeply it reasons, and what tools it can access. Seven agent definitions in .claude/agents/ encode these profiles. Orchestrator skills delegate work to the right agent automatically. Claude models differ in reasoning depth and cost: Running all 59 skills on Opus wastes budget on tasks that Sonnet handles equally well. Running everything on Haiku loses quality where reasoning matters. The agent architecture routes each…

The file

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

8 rules. About 0 are common, 6 are distinctive, and 2 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈6

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 2

    Very specific

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

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

    Every SKILL.md declares its model and effort level:

    line 21
  2. Distinctive:

    Tools: Read, Grep, Glob, Bash (no Write or Edit)

    line 48
  3. Distinctive:

    Tools: Read, Write, Edit, Grep, Glob, Bash

    line 62
  4. Distinctive:

    Tools: Read, Grep, Glob, Write

    line 74
  5. Distinctive:

    Tools: Read, Grep, Glob, Bash

    line 98
  6. Distinctive:

    Tools: Read, Grep, Bash

    line 108
  7. Distinctive:

    Tools: Read, Grep, Glob

    line 118
  8. Very specific:

    Claude Code CLI: run scripts/install-claude-code-skills.sh, which symlinks both .claude/agents/*.md -> ~/.claude/agents/<name> and the …

    line 166

≈ “Common” is an estimate: at least 1 in 5 of the 16,597 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

Home > Agent Architecture

Agent Architecture

NaCl assigns every skill a cognitive profile: which Claude model runs it, how deeply it reasons, and what tools it can access. Seven agent definitions in .claude/agents/ encode these profiles. Orchestrator skills delegate work to the right agent automatically.

Why Model Selection Matters

Claude models differ in reasoning depth and cost:

ModelStrengthCost (per MTok out)Use for
OpusDeep reasoning, cross-system analysis$25Architecture, validation, review, planning
SonnetBalanced speed and quality$15Code generation, structured content, testing
HaikuFast, low-latency$5Status queries, quick lookups, sync

Running all 59 skills on Opus wastes budget on tasks that Sonnet handles equally well. Running everything on Haiku loses quality where reasoning matters. The agent architecture routes each skill to the right model.

Skill Frontmatter

Every SKILL.md declares its model and effort level:

---
name: nacl-tl-review
model: opus
effort: high
description: |
  Code review for completed tasks...
---
FieldValuesEffect
modelopus, sonnet, haikuWhich Claude model executes the skill
efforthigh, medium, lowReasoning depth (adaptive thinking budget)

The Seven Agents

Agents live in .claude/agents/ and are symlinked to ~/.claude/agents/ during installation (same pattern as skills). Each agent defines a model, effort level, tool restrictions, and a system prompt describing its cognitive profile.

Six agents are routed whole skills via the orchestrators. The seventh -- diagnostician -- is not routed a top-level skill; it is invoked as a sub-agent to run Phase A of nacl-tl-fix (the diagnose-and-spec half), the way nacl-tl-regression-test is invoked as a sub-agent to write a test.

strategist -- Opus, high effort (12 skills)

The thinking brain. Reads, analyzes, judges -- never writes code.

Tools: Read, Grep, Glob, Bash (no Write or Edit)

Skills:

  • SA architecture: nacl-sa-architect, nacl-sa-domain, nacl-sa-feature, nacl-sa-validate, nacl-sa-uc
  • BA validation: nacl-ba-validate
  • TL planning: nacl-tl-plan, nacl-tl-intake, nacl-tl-diagnose, nacl-tl-reconcile
  • TL quality: nacl-tl-review, nacl-tl-hotfix

Why Opus: These skills make decisions that cascade downstream. Wrong architecture wastes all development. Missed review findings become production bugs. Misclassified triage wastes entire cycles.

diagnostician -- Opus, high effort (Phase A of nacl-tl-fix)

The bug-fix reasoner. Diagnoses a bug and authors the specification that fixes it, then hands a structured fix-plan to the sonnet execution core.

Tools: Read, Write, Edit, Grep, Glob, Bash

Runs: nacl-tl-fix Steps 1–5 — TRIAGE (graph impact traversal), CONTEXT LOAD, GAP-CHECK + L0/L1/L2/L3 classification, DEFINE CORRECT BEHAVIOR, FIX DOCS. Returns the fix-plan artifact; never writes production code; never commits.

Why Opus: The bug-fix pipeline's diagnostic half is exactly the work that justifies Opus elsewhere — graph impact analysis and the L3-feature classification, the single most important guardrail in nacl-tl-fix (a misclassified feature shipped through the fix path becomes an UNVERIFIED feature factory). Before this split, that judgment ran on Sonnet because nacl-tl-fix ended in code generation and was routed wholesale to the developer agent.

Why it has Write (unlike the strategist): it authors specifications — docs, .tl/* artifacts, graph nodes — not production code, and it does not commit. The firewall the framework depends on is "the spec author ≠ the code author"; that holds, because the sonnet core (Phase B) writes and commits the code. See Design Principle 1 below.

analyst -- Sonnet, medium effort (11 skills)

The domain modeler. Creates structured BA/SA artifacts from domain knowledge.

Tools: Read, Grep, Glob, Write

Skills:

  • BA phase skills: nacl-ba-context, nacl-ba-process, nacl-ba-workflow, nacl-ba-entities, nacl-ba-roles, nacl-ba-glossary, nacl-ba-rules, nacl-ba-handoff
  • SA content: nacl-sa-roles, nacl-sa-ui, nacl-sa-finalize

Why Sonnet: These skills fill structured templates with domain knowledge provided by the user. The reasoning challenge is formalization, not invention.

developer -- Sonnet, medium effort (7 skills)

The code generator. Implements features via TDD from specifications.

Tools: Read, Write, Edit, Grep, Glob, Bash

Skills: nacl-tl-dev, nacl-tl-dev-be, nacl-tl-dev-fe, nacl-tl-fix, nacl-tl-regression-test, nacl-tl-docs, nacl-tl-reopened

Why Sonnet: Code generation from complete specifications is a translation task. Sonnet matches Opus quality here within 2-3% while running faster and cheaper.

Note on nacl-tl-fix: it is routed here because it ends in code generation and is the shared honest-execution core that nacl-tl-dev-be/fe --continue, nacl-tl-reopened, and nacl-tl-hotfix delegate into. But its diagnose-and-spec half (Steps 1–5) is delegated up to the diagnostician (Opus) sub-agent — so the seam premise holds: Sonnet's Phase B (Steps 6–8) receives a complete spec and only generates code. This mirrors how nacl-tl-regression-test is delegated as a sub-agent for the test.

verifier -- Sonnet, medium effort (5 skills)

The quality gate. Tests, verifies, and reports without modifying code.

Tools: Read, Grep, Glob, Bash

Skills: nacl-tl-verify, nacl-tl-verify-code, nacl-tl-qa, nacl-tl-sync, nacl-tl-stubs

Why Sonnet: Verification is systematic: trace data flows, match API contracts, run E2E scripts. Pattern matching, not creative reasoning.

operator -- Sonnet, low effort (7 skills)

The shipping arm. Git operations, CI/CD monitoring, publishing.

Tools: Read, Grep, Bash

Skills: nacl-tl-ship, nacl-tl-deploy, nacl-tl-deliver, nacl-tl-release, nacl-render, nacl-publish, nacl-ba-from-board

Why Sonnet + low effort: These skills follow rigid scripts defined in config.yaml. No judgment calls -- just execute and report.

scout -- Haiku, low effort (6 skills)

The fast lookup arm. Status queries and lightweight operations.

Tools: Read, Grep, Glob

Skills: nacl-tl-status, nacl-tl-next, nacl-ba-analyze, nacl-ba-sync, nacl-ba-import-doc, nacl-init

Why Haiku: These skills run simple Neo4j queries or parse structured data. Speed matters more than depth.

Orchestrators

The four orchestrators (nacl-ba-full, nacl-sa-full, nacl-tl-conductor, nacl-tl-full) run in the main session context with model: opus and effort: high. They are the brain that delegates -- they never get context: fork.

Orchestrators delegate work to agents via the Agent tool:

L0: Orchestrator (main session, Opus)
  |
  +-- Agent(strategist) -> /nacl-tl-review UC028
  +-- Agent(developer)  -> /nacl-tl-dev-be UC028
  +-- Agent(verifier)   -> /nacl-tl-verify UC028
  +-- Agent(operator)   -> /nacl-tl-ship

Skills are not preloaded into agents. The orchestrator passes the specific skill name in the prompt when delegating. This prevents context bloat from loading 200-400 lines per skill upfront.

Model Distribution Summary

                opus (18)             sonnet (34)           haiku (6)
              ┌─────────────┐    ┌──────────────────┐    ┌──────────┐
  effort:high │ strategist  │    │                  │    │          │
              │ (12 skills) │    │                  │    │          │
              │ orchestrator│    │                  │    │          │
              │ (4 skills)  │    │                  │    │          │
              ├─────────────┤    ├──────────────────┤    │          │
effort:medium │             │    │ analyst (11)     │    │          │
              │             │    │ developer (7)    │    │          │
              │             │    │ verifier (5)     │    │          │
              ├─────────────┤    ├──────────────────┤    ├──────────┤
  effort:low  │             │    │ operator (7)     │    │ scout(6) │
              └─────────────┘    └──────────────────┘    └──────────┘

The seventh agent, diagnostician (Opus, high effort), is not in the skill counts above: it runs no top-level skill. It is invoked as a sub-agent for Phase A of nacl-tl-fix (Steps 1–5), so its reasoning sits in the Opus/high-effort tier while the skill itself stays counted under developer (Sonnet) for its Phase B. This is the same pattern as nacl-tl-regression-test being delegated as a sub-agent.

Installation

Two channels ship agents, same as skills:

  • Claude Code Desktop (plugin): /plugin marketplace add ITSalt/NaCl then /plugin install nacl@nacl installs plugin/agents/ (all 7 agent files) alongside the plugin's skills -- no manual symlinking.
  • Claude Code CLI: run scripts/install-claude-code-skills.sh, which symlinks both .claude/agents/*.md -> ~/.claude/agents/<name> and the skills in one pass. The manual loops below do the same thing by hand, for environments where running the script isn't an option.
# Unix/macOS/Linux
mkdir -p ~/.claude/agents
for file in ~/NaCl/.claude/agents/*.md; do
  [ -f "$file" ] && ln -sf "$file" ~/.claude/agents/"$(basename "$file")"
done
# Windows (PowerShell, Administrator)
$agentsDir = "$env:USERPROFILE\.claude\agents"
New-Item -ItemType Directory -Force -Path $agentsDir | Out-Null
Get-ChildItem -Path "$HOME\NaCl\.claude\agents" -Filter "*.md" | ForEach-Object {
    $target = Join-Path $agentsDir $_.Name
    if (Test-Path $target) { Remove-Item $target -Force }
    New-Item -ItemType SymbolicLink -Path $target -Target $_.FullName | Out-Null
}

See platform-specific guides: macOS | Linux | Windows

Design Principles

  1. Thinkers don't write code. The strategist has no Write or Edit tools — it reads, analyzes, and returns verdicts, so a reviewer can't silently "fix" code during review. The refinement the diagnostician adds: an Opus agent may write specifications (docs, .tl/* artifacts, graph nodes) and still respect this principle, as long as it writes no production code and does not commit. The firewall that matters is spec author ≠ code author — the diagnostician authors the spec, the Sonnet core writes and commits the code. (The analyst agent is the same shape at Sonnet tier: it writes BA/SA specs, never code.)
  2. Skills load on demand. Agents don't preload skills via the skills: frontmatter field. 12 skills at 200-400 lines each would consume 2400-4800 lines of context before any work begins.
  3. Orchestrators never fork. Orchestrators run in the main session so they can interact with the user at decision gates. They delegate via the Agent tool, not context: fork.
  4. Assignments will go stale. As models improve, Sonnet may handle tasks currently assigned to Opus. Review assignments when new model versions release. The Anthropic Managed Agents article warns: "harnesses encode assumptions about what Claude can't do on its own. Those assumptions need to be frequently questioned."

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.