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.
- career-advisorSkill
- learning-advisorSkill
- media-advisorSkill
- relationships-advisorSkill
- self-contextSkill
- ventures-advisorSkill
- writing-advisorSkill
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
- Distinctive: line 33
Default context-loading paths must remain bounded as vault history and page count grow.
- Distinctive: line 66
Do not pursue DRYness mechanically in Agent Skill instructions.
- Very specific: line 73
Keep .github/workflows/ci.yml thin: it has one Ubuntu job running python scripts/validate_repo.py as the single repository gate under …
- Distinctive: line 80
Do not add an operating-system or Python-version matrix unless the repository gains platform-specific behavior or an explicit compatibility …
- Distinctive: line 82
Add another CI step only for an independent check that the canonical validator cannot cover, and update this policy when validation …
- Distinctive: line 88
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 …
- Very specific: line 91
Keep the normal user flow centered on the three everyday requests: ingest saves a specific known update, query retrieves or reasons without …
- Very specific: line 95
Treat SKILL.md and the workflow references as the behavioral source of truth.
- Distinctive: line 99
Update the README when installation, normal usage, or another user-facing claim changes.
- Very specific: line 103
When changing the README, verify commands, links, and claims against the repository and run python3 scripts/validate_repo.py.
- Distinctive: line 107
Never copy, quote, paraphrase, or derive real personal vault content into tracked skills, docs, evals, tests, scripts, ADRs, or other …
- Very specific: line 119
Treat vault/ as private data.
- Distinctive: line 120
Keep the vault independent of OpenCode, Claude Code, Codex, Hermes, Obsidian, or any other harness.
- Distinctive: line 122
Keep ordinary Markdown, YAML frontmatter, and standard Markdown links as the portable contract.
≈ “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.
Files
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:
| Vertical | Owns | Advisor Pack |
| Career | Career evidence and concepts | Career Advisor |
| Learning | Evidence-backed knowledge states and their evolution | Learning Advisor |
| Writing | Evidence-backed communication and writing context | Writing Advisor |
| Relationships | Intentional relationship context, shared history, commitments, and open loops | Relationships Advisor |
| Media / Taste | Evidence-backed reactions to cultural works and evolving taste patterns | Media Advisor |
| Ventures / Projects | Initiative lifecycle, project decisions, commitments, milestones, evidence, outcomes, and evolution | Ventures 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-creatorworkflow 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.ymlthin: it has one Ubuntu job runningpython scripts/validate_repo.pyas the single repository gate under Python 3.12. scripts/validate_repo.pyowns 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.mdas 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:
ingestsaves a specific known update,queryretrieves or reasons without writing by default, andcheckpointinspects a meaningful conversation for durable outcomes without saving a transcript. - Treat
SKILL.mdand 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(orJohn) as the synthetic user andMyContext Systemswhenever 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.
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
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.

