agentleFS
codejunkie99codejunkie99/agentic-stack/.agent/AGENTS.md

agentic-stack

AGENTS.md2.3k starsChanged 3 months agoApache-2.0View on GitHub

This folder is the portable brain. Any harness (Claude Code, Cursor, Windsurf, OpenCode, OpenClaw, Copilot CLI, Gemini, Hermes, Pi, Codex, standalone Python, Antigravity) can mount it and get the same memory, skills, and protocols. Candidate lessons are clustered + staged automatically by memory/auto_dream.py. The host agent — you — does the actual review using the CLI tools below. Check memory/working/REVIEW_QUEUE.md at session start. If pending > 10 or oldest staged > 7 days, review before substantive work. Workflow: 1. python…

Trending

Quiet since August.thin dataabout the whole repository

Dec 2025: 0 mentionsJan 2026: 0 mentionsFeb 2026: 0 mentionsMar 2026: 0 mentionsApr 2026: 5 mentionsMay 2026: 1 mentionJun 2026: 0 mentionsJul 2026: 1 mentionAug 2026: 1 mentionSep 2026: 0 mentionsOct 2026: 0 mentionsNov 2026: 0 mentions
Dec 2025Jun 2026Nov 2026
Mentions a month of the codejunkie99/agentic-stack repository that our weekly crawl found: only 8 in all, so this is a hint, not a trend. There is no adoption data for this file yet.

Who's talking about codejunkie99/agentic-stack

The biggest 5 of 8 mentions linking to the repository that our crawl found. Each line is their own headline.

See all 8

Talked about on GitHub and Bluesky (8 times).

On GitHub · 7

2 more on GitHub

On Bluesky · 1

  • Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about checking a change actually works.

    Of the AGENTS.md files we read, the 11,773 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 repository4 other files it gives its agents.

The file

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

12 rules. About 0 are common, 4 are distinctive, and 8 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈4

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 8

    Very specific

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

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

    Check memory/working/REVIEW_QUEUE.md at session start.

    line 20
  2. Distinctive:

    Every skill has a self-rewrite hook.

    line 42
  3. Very specific:

    If the project root contains DESIGN.md, treat it as the source of truth for visual design decisions and load skills/design-md/SKILL.md when …

    line 45
  4. Very specific:

    Prefer exact tokens, component rules, and design rationale from DESIGN.md over invented colors, typography, spacing, shadows, or motion.

    line 51
  5. Very specific:

    Do not modify DESIGN.md unless the user explicitly asks for a design system change.

    line 53
  6. Distinctive:

    Check memory before decisions you have been corrected on before.

    line 86
  7. Very specific:

    If REVIEW_QUEUE.md shows backlog past threshold, handle it before the new task.

    line 87
  8. Very specific:

    Update memory/working/WORKSPACE.md as you work.

    line 90
  9. Very specific:

    Never hand-edit memory/semantic/LESSONS.md — it's rendered from lessons.jsonl.

    line 91
  10. Very specific:

    Follow protocols/permissions.md.

    line 93
  11. Distinctive:

    When a self-rewrite hook fires, propose conservative edits only.

    line 94
  12. Distinctive:

    When running under Cursor (local or cloud), the Cursor adapter installs a model split on top of this brain.

    line 99

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

Agent Infrastructure

This folder is the portable brain. Any harness (Claude Code, Cursor, Windsurf, OpenCode, OpenClaw, Copilot CLI, Gemini, Hermes, Pi, Codex, standalone Python, Antigravity) can mount it and get the same memory, skills, and protocols.

Memory (read in this order)

  • memory/personal/PREFERENCES.md — stable user conventions
  • memory/working/WORKSPACE.md — current task state
  • memory/working/REVIEW_QUEUE.md — pending candidate lessons waiting for you
  • memory/semantic/DECISIONS.md — past architectural choices
  • memory/semantic/LESSONS.md — distilled patterns (rendered from lessons.jsonl)
  • memory/episodic/AGENT_LEARNINGS.jsonl — raw experience log (top-k by salience)

Review Queue (host-agent responsibility)

Candidate lessons are clustered + staged automatically by memory/auto_dream.py. The host agent — you — does the actual review using the CLI tools below.

Check memory/working/REVIEW_QUEUE.md at session start. If pending > 10 or oldest staged > 7 days, review before substantive work.

Workflow:

  1. python .agent/tools/list_candidates.py — pending candidates, sorted by priority
  2. For each: decide accept / reject / defer based on claim, evidence_ids, cluster_size, and any contradictions with existing LESSONS.md
  3. python .agent/tools/graduate.py <id> --rationale "..." to accept
  4. python .agent/tools/reject.py <id> --reason "..." to reject
  5. python .agent/tools/reopen.py <id> to requeue a previously-rejected item
  6. Review in a batch, not one-by-one — cross-candidate contradictions only surface when you see multiple at once.

The heuristic prefilter in memory/validate.py has already dropped obvious junk (too-short claims, exact duplicates). Everything staged needs real judgment. Rationale is required for graduation — rubber-stamped promotions are the exact failure mode this layer prevents.

Skills

  • skills/_index.md — read first for discovery
  • skills/_manifest.jsonl — machine-readable skill metadata
  • Load a full SKILL.md only when its triggers match the current task
  • Every skill has a self-rewrite hook; invoke it after failures

Design Systems

  • If the project root contains DESIGN.md, treat it as the source of truth for visual design decisions and load skills/design-md/SKILL.md when a task mentions DESIGN.md, Google Stitch, design tokens, design system, or visual design. (The skill's preconditions field gates loading on DESIGN.md actually existing — keep this rule in lockstep with skills/_manifest.jsonl to avoid same-task / different-harness drift.)
  • Prefer exact tokens, component rules, and design rationale from DESIGN.md over invented colors, typography, spacing, shadows, or motion.
  • Do not modify DESIGN.md unless the user explicitly asks for a design system change; implementation work consumes the contract, it doesn't edit it.

Protocols

  • protocols/permissions.md — read before any tool call
  • protocols/tool_schemas/ — typed interfaces for external tools
  • protocols/delegation.md — rules for sub-agent handoff

Host-agent CLI tools (in tools/)

Daily driver, highest-leverage first:

  • recall.py "<intent>" — surface graduated lessons relevant to what you're about to do. Run before deploy / migration / timestamp / debug / refactor work. This is how lessons cross harnesses.
  • learn.py "<rule>" --rationale "<why>" — teach the agent a new lesson in one shot (stage + graduate + render). For rules you already know.
  • show.py — one-screen dashboard of brain state: episodes, candidates, lessons, failing skills, activity graph.
  • data_layer_export.py — local cross-harness activity/data-layer export: agent events, cron timelines, tokens/cost estimates, categories, harness mix, dashboard.html, and daily-report.md.
  • data_flywheel_export.py — local export of approved, redacted runs into trace records, context cards, eval cases, training-ready JSONL, and flywheel metrics. It does not train models or call APIs.
  • list_candidates.py / graduate.py / reject.py / reopen.py — review protocol for patterns the dream cycle has staged.
  • retract_lesson.py <lesson_id> --rationale "..." — stop an accepted lesson from being injected into future recall/context while preserving audit history.
  • brain_bridge.py ask|note|status — optional bridge to the external Brain CLI for git-backed long-term memory shared across harnesses.
  • memory_reflect.py <skill> <action> <outcome> — log a significant event.

Rules

  1. Check memory before decisions you have been corrected on before.
  2. If REVIEW_QUEUE.md shows backlog past threshold, handle it before the new task.
  3. Log every significant action to memory/episodic/AGENT_LEARNINGS.jsonl via .agent/tools/memory_reflect.py.
  4. Update memory/working/WORKSPACE.md as you work; archive on completion.
  5. Never hand-edit memory/semantic/LESSONS.md — it's rendered from lessons.jsonl. Use graduate.py / reject.py / retract_lesson.py.
  6. Follow protocols/permissions.md. Blocked means blocked.
  7. When a self-rewrite hook fires, propose conservative edits only.
  8. The harness is dumb on purpose. Reasoning lives in skills + the host agent.

Cursor model split (Fable parent, Grok subagents)

When running under Cursor (local or cloud), the Cursor adapter installs a model split on top of this brain. Before starting the session, select Claude Fable 5.1 for the parent in Cursor's model picker; project rules cannot pin the parent model:

  • Parent agent: Claude Fable 5.1 when selected at session start. Judgment, scoping, and synthesis only.
  • Subagents: Grok 4.6, pinned via model: grok-4.6 in .cursor/agents/cavecrew-{investigator,builder,reviewer}.md.
  • Rules: .cursor/rules/fable-grok-subagents.mdc, .cursor/rules/caveman.mdc (both alwaysApply).
  • Skills: .cursor/skills/caveman/SKILL.md, .cursor/skills/cavecrew/SKILL.md (adapted from JuliusBrussee/caveman under the adjacent MIT license notices). Locate, bulk grep, 1-2 file edits, and diff review go to the cavecrew subagents. This is the narrow Cursor exception defined by protocols/delegation.md; its general handoff rules still apply elsewhere.

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.