aptuni
AGENTS.md1 starsChanged 2 months agoApache-2.0View on GitHub
Aptuni is a local-first, modular, agent-native personal context layer ("Context, attuned to you"). Its open-format Profile Vault is the only source of truth. Databases, indexes, memory engines and graphs are rebuildable projections. License: Apache-2.0 (LICENSE, NOTICE, THIRD_PARTY_NOTICES.md). Python distribution and import name: aptuni. 1. Read docs/dev/STATE.md, docs/dev/HANDOFF.md, docs/dev/KNOWN_ISSUES.md, the relevant ADRs in docs/dev/DECISIONS/, and git status. 2. Read PROJECT_KNOWLEDGE.md. It routes to the thin, repo-native research memory in docs/research/. Consult it before re-researching anything. 3. Run the smallest relevant baseline…
- Installs packages
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 repository5 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- add-source-providerSkill
- audit-licensesSkill
- releaseSkill
- run-evalsSkill
The file
We split this AGENTS.md into the rules it gives an agent
8 rules. About 0 are common, 4 are distinctive, and 4 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.
4
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 10
Read docs/dev/STATE.md, docs/dev/HANDOFF.md, docs/dev/KNOWN_ISSUES.md, the relevant ADRs in docs/dev/DECISIONS/, and git status.
- Very specific: line 12
Read PROJECT_KNOWLEDGE.md.
- Distinctive: line 14
Run the smallest relevant baseline check before editing.
- Distinctive: line 33
No speculative refactors or future-proofing beyond the current milestone.
- Very specific: line 60
Before touching the README, docs, website, plugin UI or promotional assets, read docs/brand/BRAND_GUIDELINES.md.
- Distinctive: line 68
Add behavior tests before or with behavior changes.
- Distinctive: line 70
Use exact, sanitized fixtures.
- Very specific: line 71
Before handoff, run the checks and update STATE.md plus a concise HANDOFF.md.
≈ “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
Project Agent Contract — Aptuni
Aptuni is a local-first, modular, agent-native personal context layer ("Context, attuned to you").
Its open-format Profile Vault is the only source of truth. Databases, indexes, memory engines and
graphs are rebuildable projections. License: Apache-2.0 (LICENSE, NOTICE,
THIRD_PARTY_NOTICES.md). Python distribution and import name: aptuni.
Start every substantive task
- Read
docs/dev/STATE.md,docs/dev/HANDOFF.md,docs/dev/KNOWN_ISSUES.md, the relevant ADRs indocs/dev/DECISIONS/, andgit status. - Read
PROJECT_KNOWLEDGE.md. It routes to the thin, repo-native research memory indocs/research/. Consult it before re-researching anything. - Run the smallest relevant baseline check before editing.
Execution policy — steady, fast progress
- Gate 0 is closed. Do not start new architecture research or proof spikes unless a concrete implementation blocker requires one. Record the blocker first.
- Work in vertical slices that each end in a runnable, user-visible capability (a command, a tool, a flow). A slice made only of documentation or scaffolding is not done.
Independent review is required only for high-risk changes:
- canonical schema or contracts;
- privacy, security or deletion;
- MCP or host confinement;
- migrations or backward compatibility;
- public plugin interfaces.
Other work needs tests, lint and type checks, a self-review, and STATE/HANDOFF updates.
- Reviewers BLOCK only for correctness, security, contract, or milestone-exit failures.
Non-blocking notes go to
docs/dev/BACKLOG.mdand never trigger another review round. - Accepted ADRs and settled decisions stay closed unless new evidence shows a concrete defect.
- No speculative refactors or future-proofing beyond the current milestone.
- Parallelize low-coupling work where it is safe. Canonical contracts and shared architecture have a single owner.
- Milestone 1 order: Core → Vault/init → Folder Source → SQLite/FTS → Context API → CLI → MCP → Claude/Codex adapters → MarginNote/GitHub → Recipes/i18n.
- Continue autonomously until a genuine blocker or a maintainer decision is required. Keep work local; commit in small checkpoints and never push.
- A successful slice boundary is a checkpoint, not a stopping point. After verification, update
STATE.mdandHANDOFF.mdwith the checkpoint hash, limitations and exact next slice; commit, restore a clean tree, and immediately continue. Stop only for a genuine blocker, required user decision, conflicting accepted contracts, irreversible unapproved architecture, unavailable credentials/data, or an unsafe security/privacy issue.
Invariants
- Preserve Fact history, evidence, temporal fields, provenance, review state and stable IDs.
- Enforce
ingest_enabledandexpose_enabledindependently. Deletion is explicit. - Raw conversations and telemetry are off by default. Never commit secrets or private source data.
- Host-assisted inference is separate from canonical storage and provider contracts.
- Generated indexes and optional providers are never canonical.
- Public schemas, plugin contracts and heavy dependencies never change silently: write or revise an ADR.
- Reuse order: dependency > adapter > clean-room implementation > direct copy. A direct copy needs a
license review and an entry in
THIRD_PARTY_NOTICES.md.
Brand
Before touching the README, docs, website, plugin UI or promotional assets, read
docs/brand/BRAND_GUIDELINES.md; the assets are in assets/brand/. Position Aptuni as a personal
context layer, never as a memory database. Keep the Tuning Companion icon and the palette unchanged
without maintainer review.
Working rules
- Investigate before editing. Keep changes scoped and preserve unrelated user work.
- Add behavior tests before or with behavior changes. Test failure, privacy, migration and rebuild paths, not only happy paths.
- Use exact, sanitized fixtures. Never infer expertise from a document mention alone.
- Before handoff, run the checks and update
STATE.mdplus a conciseHANDOFF.md. - Research memory stays thin: Markdown under
docs/research/, no database. Add upstream findings, pitfalls and rejected approaches there as they are learned. - Review reports go in
docs/dev/reviews/(registered inSTATUS.json) or next to their spike or slice. Each ends with one anchored**Verdict:** **…**line.
Commands
.tools/bin/uv sync # create .venv with runtime + dev dependencies
.tools/bin/uv run pytest # tests
.tools/bin/uv run ruff check . && .tools/bin/uv run mypy src # lint + types
.tools/bin/uv run aptuni --help # the CLI
python3.13 tools/check_relay.py # relay/doc checksBootstrap uv once with /opt/homebrew/bin/python3.13 -m venv .tools && .tools/bin/pip install uv.
Bare python3 may resolve to another installation.
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.

