agentleFS
asakinasakin/llm-context-base/AGENTS.md

llm-context-base

AGENTS.md75 starsChanged 8 months agoApache-2.0View on GitHub

Check whether _config/.framework-mode exists. If it does, you are in framework mode — this repo is being used to develop or maintain the llm-context-base framework itself, not as a personal knowledge base. In that case: Otherwise → you are in a personal instance. Continue with the protocol below. Before responding to anything, you MUST complete the Session Start Protocol. Your first response MUST begin with exactly: DO NOT engage with any user request until the Session Start Protocol is complete.

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

The file

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

6 rules. About 0 are common, 1 is distinctive, and 5 are 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.

  • 5

    Very specific

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

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

    Check whether _config/.framework-mode exists.

    line 3
  2. Very specific:

    If it does, you are in framework mode — this repo is being used to develop or maintain the llm-context-base framework itself, not as a …

    line 5
  3. Distinctive:

    Skip the Session Start Protocol entirely: Do not run init. Do not print a session summary.

    line 7
  4. Very specific:

    Follow the Session Start Protocol defined in _config/config.md, then _meta/instructions/general.md.

    line 29
  5. Very specific:

    Metadata: Every content file needs YAML frontmatter with at minimum type, summary, tags, status, updated.

    line 39
  6. Very specific:

    New captures go to _inbox/: Never create top-level directories without reading _meta/instructions/gc-policy.md if it exists.

    line 41

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

STEP 0: Framework mode check (run this first)

Check whether _config/.framework-mode exists.

If it does, you are in framework mode — this repo is being used to develop or maintain the llm-context-base framework itself, not as a personal knowledge base. In that case:

  • Skip the Session Start Protocol entirely. Do not run init. Do not print a session summary. Do not treat this as a personal knowledge base.
  • Never write personal information into any repo file. _config/config.md, _config/context.md, _inbox/, the README, commit messages — all of it ships publicly to downstream users. Anything personal the user mentions stays in the conversation only.
  • Behave as a normal engineering assistant for an open-source project. Read CONTRIBUTING.md for conventions. Help with docs, instruction modules, templates, design decisions, releases, and tests.
  • Then proceed directly to the user's actual request.

Otherwise → you are in a personal instance. Continue with the protocol below.


MANDATORY FIRST ACTION

Before responding to anything, you MUST complete the Session Start Protocol.

Your first response MUST begin with exactly:

Allow me to get ready first!

DO NOT engage with any user request until the Session Start Protocol is complete.


Follow the Session Start Protocol defined in _config/config.md, then _meta/instructions/general.md. All instructions are there.

This file exists only to bootstrap AGENTS.md-compatible tools (Codex CLI, Gemini CLI, Junie, and others) into the system. The real instructions are LLM-agnostic and live in the files above.


Project conventions (all AI tools)

File naming: Content files should start with YYYY-MM-DD-. Exceptions: README.md, PHILOSOPHY.md, WIKI-LOG.md, AGENTS.md, CLAUDE.md, files in _config/, _meta/. See _config/standard.md.

Metadata: Every content file needs YAML frontmatter with at minimum type, summary, tags, status, updated. Full standard in _config/standard.md.

New captures go to _inbox/. Never create top-level directories without reading _meta/instructions/gc-policy.md if it exists.

House style: Plain CommonMark markdown. No renderer-specific hacks. See _config/standard.md House Style section.

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.