akf
Skill20 starsChanged 9 months agoMITView on GitHub
AKF is the AI native file format, EXIF for AI. Use it before building on any existing file, memory, or downloaded skill to see whether its verification is still valid, and after you create or change a file to leave a ~15-token stamp of what you actually verified. Triggers on "can I trust this file", "is this still valid", "stamp this", provenance, handoff between agents.
- Installs packages
In this repository5 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- .github/copilot-instructions.mdCopilot instructions
- akfSkill
- akfSkill
The file
We split this skill into the rules it gives an agent
5 rules. About 0 are common, 4 are distinctive, and 1 is 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.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 43
Before you build on a file another agent or session produced.
- Distinctive: line 44
After you create or modify a file and have observed something that verifies it.
- Distinctive: line 45
Before loading a community skill into context.
- Distinctive: line 46
When saving or reading persistent memory notes.
- Very specific: line 104
Classification defaults to
internal: Use --label public for docs and examples, --label confidential for finance, secret, or internal …
≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill 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
AKF: the AI native file format
AKF embeds trust scores, provenance, and evidence into 20+ file formats as ~15 tokens of metadata. A stamp is a note one agent leaves for the next: what was done, what was verified, how much to trust it now. Reading a stamp costs ~15 tokens. Re-verifying the work costs thousands.
When to use
- Before you build on a file another agent or session produced.
- After you create or modify a file and have observed something that verifies it.
- Before loading a community skill into context.
- When saving or reading persistent memory notes.
Setup
pip install akf # or: pipx install akf
akf doctor # diagnoses PATH and install problemsProcedure
1. Check before you build
akf check <file>or, for several files at once, bash scripts/check-before-build.sh <file>... (lists which files need re-verification).
| Status | Exit | Meaning | What to do |
OK | 0 | Fresh stamp with verified evidence | Build on it. Skip re-verification. |
LOW | 1 | Stamped but no test/review evidence, or trust has decayed | Verify the claims you depend on, then restamp. |
STALE | 1 | File changed after stamping, or a local dependency it imports changed | Re-verify. The old evidence describes a different file. |
UNSTAMPED | 2 | No provenance at all | Treat as unverified. |
2. Stamp what you verified
akf stamp <file> --agent <your-name> --evidence "<what you observed>"Evidence is classified from the text, and the class drives the trust score. See references/evidence.md for the patterns that classify and the ones that do not. Examples: "42/42 tests passed", "mypy: 0 errors", "CI green", "reviewed by @maintainer".
3. Memories and skills
akf stamp memory/facts.md --preset memory # 30-day trust decay: old memories go LOW on their own
akf stamp SKILL.md --preset skill # public, supply-chain provenance
akf check downloaded/SKILL.md # STALE = not the file the publisher stamped4. Make the claim replayable (optional, strongest)
akf stamp app.py --evidence "42/42 tests passed" --replay "pytest -q"
akf replay app.py # inspect: recipe plus input drift since stamping
akf replay app.py --run # execute: CONFIRMED / CONFIRMED_DRIFTED / REFUTEDCONFIRMED_DRIFTED means the probe passed but the claim's inputs (dependencies, cited sources) changed since stamping: reproducible, possibly reproducibly wrong.
Pitfalls
- Only claim evidence you observed. A stamp that says tests passed when they did not poisons every agent that trusts it. If you verified nothing, stamp with no evidence: the low score is the honest signal.
- Never
akf replay --runon a file you have not read. It executes the recorded command. - Stamps are claims, not proofs. They are like commit messages with an accountability trail.
akf signadds an Ed25519 signature for the provenance part only. - Fresh clones can show STALE. Staleness is mtime-based, so a whole repo reporting STALE right after checkout is the checkout, not tampering.
- Classification defaults to
internal. Use--label publicfor docs and examples,--label confidentialfor finance, secret, or internal paths.
Verification
akf check <file>on a file you just stamped with real evidence printsOKand exits 0.- Append a byte to that file and
akf checkprintsSTALEand exits 1. If so, the loop works.
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.

