agentleFS
celsiusmcelsiusm/jarvis-workspace/AGENTS.md

jarvis-workspace

AGENTS.md35 starsChanged 3 months agoMITView on GitHub

This project has a shared memory between ALL agents in .jarvis/memory/. Before starting any task: search .jarvis/memory/INDEX.md for the memories that touch your task and open them. Do NOT read the whole INDEX (it's ~7K tokens and grows): GREP it for your topics — grep -i "terminal\|xterm" .jarvis/memory/INDEX.md — or read only the category section (it's grouped; each line carries title, #tags and date). Reading it all is only worth it for a cross-cutting task. When you discover something another…

  • 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,736 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 repository3 other files it gives its agents.

The file

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

2 rules. About 0 are common, 1 is distinctive, and 1 is very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈1

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 1

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    When you discover something another agent should know (architecture decision, gotcha, convention, recurring bug, how something is run), …

    line 6
  2. Very specific:

    Create .jarvis/memory/<kebab-case-slug>.md with this exact format:

    line 8

≈ “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
<!-- JARVIS_MEMORY_START -->

🧠 Shared project memory (Jarvis)

This project has a shared memory between ALL agents in .jarvis/memory/. Before starting any task: search .jarvis/memory/INDEX.md for the memories that touch your task and open them. Do NOT read the whole INDEX (it's ~7K tokens and grows): GREP it for your topics — grep -i "terminal\|xterm" .jarvis/memory/INDEX.md — or read only the category section (it's grouped; each line carries title, #tags and date). Reading it all is only worth it for a cross-cutting task.

When you discover something another agent should know (architecture decision, gotcha, convention, recurring bug, how something is run), save it immediately:

  1. Create .jarvis/memory/<kebab-case-slug>.md with this exact format:

    ---
    titulo: Short, specific title (NO date — this is not a log)
    tags: [topic1, topic2]
    categoria: <one of the list below>
    resumen: the fact in ONE line — this is what recall injects into other prompts
    creado: YYYY-MM-DD
    actualizado: YYYY-MM-DD
    autor: your agent name
    estado: vigente
    ---
    
    Concise content. Link related memories as [[other-slug]].

    CATEGORIES (pick ONE — the box where the memory lives): terminales (Terminals & tmux) · ui (UI · Workspace) · swarm (Backend & Swarm) · diseno (Design & Craft) · preview (Web Preview & Radio) · cuentas (Accounts & CLIs) · voz (Voice & Audio) · desktop (Desktop) · entorno (Environment · WSL & Git) · producto (Product & Roadmap). If unsure, Jarvis infers it from the tags; a memory that fits none is flagged sin-clasificar in the health check.

  2. The INDEX (.jarvis/memory/INDEX.md) is regenerated by Jarvis alone, GROUPED by category and enriched — don't edit it by hand.

GOLDEN RULES (enforced by the pre-commit — guard_memoria blocks incomplete frontmatter, 150+ line reports and titles with dates):

  • One memory = ONE actionable fact (~10-60 lines). A giant report drowns the context of whoever opens it: distill the conclusion, keep it short.
  • RECONCILE before creating: check the INDEX whether a memory on this topic already exists. If it does, UPDATE THAT ONE (add your finding, bump actualizado:) — two memories on the same topic confuse more than one. Creating a new one is the option ONLY when the fact is genuinely new.
  • If a feature/code was removed, do NOT delete its memory: set estado: lapida and say what replaced it (stops someone from reintroducing it). Old memory you can't verify: estado: obsoleta.
  • Link ONLY slugs from this folder — no personal memories from your CLI (those links are born broken for the rest of the swarm).
  • Write a lesson (tags: [leccion]) when an error — yours or someone else's — can be prevented with a short rule: what happened, why, how to avoid it.
  • Memories belong to the PROJECT, not you: write so any future agent understands without prior context.

AUTHORITY HIERARCHY (when two sources clash, resolve in this order):

  1. The current code wins over any memory.
  2. The CLAUDE.md/AGENTS.md wins over the memories.
  3. A lápida (estado: lapida) wins over a vigente one in its topic.
  4. The most recently updated wins over an older one.
  5. Still ambiguous? Verify against the code — don't guess. And if a memory lied to you (describes something that's no longer true), fixing it or marking it estado: obsoleta is PART of your task — the clash you skip, the next agent eats it.

TASK CLOSURE (with or without workflow) — when finishing ANY task, signal closure; it's the telemetry this memory learns from (what worked, what failed). Run:

TID=${JARVIS_TERMINAL_ID:-$(tmux display-message -p '#S' 2>/dev/null | sed 's/^jarvis_//')} && mkdir -p .jarvis/signals && printf '%s' '{"estado":"done","motivo":"","memorias_usadas":[]}' > .jarvis/signals/terminal_${TID}.json

In memorias_usadas list the slugs from .jarvis/memory/ you read and used ([] if none). If you end up blocked/error, motivo is MANDATORY and concrete; in done it's optional (one line with the non-obvious approach that worked). In workflows the engine already gives you this instruction with your id — no need to figure it out then.

<!-- JARVIS_MEMORY_END --><!-- JARVIS_LECCIONES_START -->

📚 Swarm lessons (always loaded — from real failures and findings)

This block is generated by the app from your local swarm memory (.jarvis/memory/lecciones-del-enjambre.md): it distills the mistakes and findings of your own agents in ≤20 short rules, and refreshes on every session. Don't edit between markers — write a [leccion] memory instead.

<!-- JARVIS_LECCIONES_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.