agentleFS
joacodjoacod/self-context/AGENTS.md

self-context

AGENTS.md1 starsChanged 2 months agoMITView on GitHub

This repository exists to build, maintain, and use SelfContext: a portable personal-context format whose private source of truth is the local vault/ directory. - For any request that reads, creates, updates, ingests, queries, reviews, or validates vault content, load and follow the project-local SelfContext skill first. - For domain-specific advice based on personal context, use SelfContext for evidence retrieval first, then use the Advisor Pack for the owning vertical when one exists. Keep each pack within its documented scope. Current…

  • Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about code style.

    Of the AGENTS.md files we read, the 35,117 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 repository7 other files it gives its agents.

The file

Show its rules and text

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

14 rules. About 0 are common, 9 are distinctive, and 5 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈9

    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. Distinctive:

    Default context-loading paths must remain bounded as vault history and page count grow.

    line 33
  2. Distinctive:

    Do not pursue DRYness mechanically in Agent Skill instructions.

    line 66
  3. Very specific:

    Keep .github/workflows/ci.yml thin: it has one Ubuntu job running python scripts/validate_repo.py as the single repository gate under …

    line 73
  4. Distinctive:

    Do not add an operating-system or Python-version matrix unless the repository gains platform-specific behavior or an explicit compatibility …

    line 80
  5. Distinctive:

    Add another CI step only for an independent check that the canonical validator cannot cover, and update this policy when validation …

    line 82
  6. Distinctive:

    Treat the root README.md as the public front door: keep it focused on what SelfContext is, who it helps, how to install/use it, and where …

    line 88
  7. Very specific:

    Keep the normal user flow centered on the three everyday requests: ingest saves a specific known update, query retrieves or reasons without …

    line 91
  8. Very specific:

    Treat SKILL.md and the workflow references as the behavioral source of truth.

    line 95
  9. Distinctive:

    Update the README when installation, normal usage, or another user-facing claim changes.

    line 99
  10. Very specific:

    When changing the README, verify commands, links, and claims against the repository and run python3 scripts/validate_repo.py.

    line 103
  11. Distinctive:

    Never copy, quote, paraphrase, or derive real personal vault content into tracked skills, docs, evals, tests, scripts, ADRs, or other …

    line 107
  12. Very specific:

    Treat vault/ as private data.

    line 119
  13. Distinctive:

    Keep the vault independent of OpenCode, Claude Code, Codex, Hermes, Obsidian, or any other harness.

    line 120
  14. Distinctive:

    Keep ordinary Markdown, YAML frontmatter, and standard Markdown links as the portable contract.

    line 122

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

Repository Guidance

This repository exists to build, maintain, and use SelfContext: a portable personal-context format whose private source of truth is the local vault/ directory.

Skill Routing

  • For any request that reads, creates, updates, ingests, queries, reviews, or validates vault content, load and follow the project-local SelfContext skill first.
  • For domain-specific advice based on personal context, use SelfContext for evidence retrieval first, then use the Advisor Pack for the owning vertical when one exists. Keep each pack within its documented scope.

Current vertical routing:

VerticalOwnsAdvisor Pack
CareerCareer evidence and conceptsCareer Advisor
LearningEvidence-backed knowledge states and their evolutionLearning Advisor
WritingEvidence-backed communication and writing contextWriting Advisor
RelationshipsIntentional relationship context, shared history, commitments, and open loopsRelationships Advisor
Media / TasteEvidence-backed reactions to cultural works and evolving taste patternsMedia Advisor
Ventures / ProjectsInitiative lifecycle, project decisions, commitments, milestones, evidence, outcomes, and evolutionVentures Advisor
  • A future vertical must define its scope and storage area before its procedure or Advisor Pack is added. The canonical available-vertical catalog is .agents/skills/self-context/references/verticals.json; keep detailed rules in the vertical procedure. Do not make a vertical's rules part of the core schema, and do not assume every available vertical is enabled in every vault or that every vertical needs an Advisor Pack.
  • For creating or materially modifying a project skill, use the installed skill-creator workflow and place the canonical result under .agents/skills/.

Do not invent a competing vault schema or lifecycle ad hoc. Follow the SelfContext skill, the vault's SCHEMA.md, and the Deep Maintenance Protocol once they exist. SelfContext is latest-first: the current schema and applied contracts are the only normal runtime target; recognized historical schemas remain upgrade/migration sources, and schema 0.2 records selective vertical contracts and compiled catalogs. Prefer natural-language interaction; commands are optional conveniences, never the canonical interface.

Default context-loading paths must remain bounded as vault history and page count grow. Prefer disposable, targeted retrieval over adding always-loaded summaries, catalogs, or duplicate recent-page lists.

Operating Modes

Normal vault use is user mode. Ingest, query, targeted review, ordinary lint, career, learning, writing, relationships, media/taste, and ventures/project advice operate on the private vault and the user's response only. Deep review is explicitly read-only; deep update, vertical adoption, contract updates, and schema migration are explicitly authorized project operations. They must not modify skills, schemas, architecture, documentation, evals, scripts, .gitignore, or repository structure as a side effect. Do not create a learning log, improvement log, or automatic operations backlog.

Enter project-maintenance mode only when the user explicitly asks to diagnose, change, improve, evaluate, or redesign SelfContext's operational behavior. If the user specifically asks about an operational issue, explain it separately from their personal answer and use synthetic or abstract examples.

Future Architecture Tests

For future SelfContext changes, ask:

  • Markdown, skills, or instruction changes: Is this semantic policy the model genuinely needs, or are we repeating an invariant already owned somewhere else?
  • Deterministic code changes: Is this deterministic vault mechanics, or are we accidentally teaching Python to make semantic decisions the model/skill should own?
  • New concepts or abstractions: Does this improve continuity of context enough to justify another concept in the system?

Do not pursue DRYness mechanically in Agent Skill instructions. Repeating a critical behavioral guardrail where it materially improves correct agent behavior can be intentional. Remove duplication when it has no behavioral value; do not remove useful guardrails merely to reduce line count.

CI and repository validation

  • Keep .github/workflows/ci.yml thin: it has one Ubuntu job running python scripts/validate_repo.py as the single repository gate under Python 3.12.
  • scripts/validate_repo.py owns Agent Skill metadata validation, tracked JSON validation, full unittest discovery and execution, and the repository consistency checks included in that suite. Do not repeat those checks as separate CI steps.
  • Do not add an operating-system or Python-version matrix unless the repository gains platform-specific behavior or an explicit compatibility requirement. Add another CI step only for an independent check that the canonical validator cannot cover, and update this policy when validation ownership changes.

README stewardship

  • Treat the root README.md as the public front door: keep it focused on what SelfContext is, who it helps, how to install/use it, and where to find deeper documentation.
  • Keep the normal user flow centered on the three everyday requests: ingest saves a specific known update, query retrieves or reasons without writing by default, and checkpoint inspects a meaningful conversation for durable outcomes without saving a transcript.
  • Treat SKILL.md and the workflow references as the behavioral source of truth. The README should summarize them, not duplicate schema, backup, maintenance, or other implementation detail unless it is needed for a new user's first successful use.
  • Update the README when installation, normal usage, or another user-facing claim changes. Do not update it merely because internal implementation, schema, validation, or maintenance details change; do not make unrelated README or documentation changes while fixing a focused issue.
  • When changing the README, verify commands, links, and claims against the repository and run python3 scripts/validate_repo.py. Keep examples synthetic and never use private vault content.

Never copy, quote, paraphrase, or derive real personal vault content into tracked skills, docs, evals, tests, scripts, ADRs, or other operational files. Personal vault evidence may be used to answer the user's request, but any operational reproduction must use fictional data.

  • For tracked synthetic examples and evals, use John Doe (or John) as the synthetic user and MyContext Systems whenever a company name is needed. Other named people remain acceptable only when a scenario genuinely needs relationship participants; they are not alternate synthetic user identities.

Boundaries

  • Treat vault/ as private data. It is Git-ignored; never commit it or force-add files from it.
  • Keep the vault independent of OpenCode, Claude Code, Codex, Hermes, Obsidian, or any other harness.
  • Do not introduce MCP as SelfContext infrastructure, databases, embeddings, background services, dedicated runtime subagents, or another agent runtime without an explicit architectural decision. MCP tools or other retrieval capabilities already exposed by a user's harness may supply source material to normal ingest, but they are optional harness capabilities, not a required SelfContext runtime, synchronization layer, or memory store.
  • Keep ordinary Markdown, YAML frontmatter, and standard Markdown links as the portable contract.
  • Operate from the repository root and preserve the tracked operational/private-data separation.

Consult the build record only when historical bootstrap context is relevant. Current operational changes require an explicit project-maintenance request and are tracked through Git; do not treat the historical phases as a current release or versioning process.

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.