vaultwatch

作者 yvalenta已验证

The wiki that gets audited against reality: a Karpathy-style AI knowledge base plus two auditors that re-measure its claims against the running world before every session. Article + installable Claude Code skill.

0
Stars
0
Forks
2026/8/24
添加时间

⚠️ 第三方软件声明

本 Skill 为第三方开源软件,独立托管于 GitHub。SkillTip 仅为信息目录,不控制或维护底层仓库。所显示的安全检查为自动化且范围有限,安装前请自行审查源码。

阅读服务条款

安装

添加到你的 Claude Code skills 目录:

# Add to your Claude Code skills
git clone https://github.com/yvalenta/vaultwatch

快速入门

使用 vaultwatch 等 Skills 的指南。

安全报告

已验证

上次扫描:—

{
  "status": "PASSED",
  "issues": []
}

README.md

My AI Knowledge Base Lied To Me 37 Times. Every Test Was Green.

Everyone is building AI second brains right now.

Raw files in. AI-maintained wiki out. @karpathy's method — and it works.

I run one. I love it.

Then mine lied to me 37 times across six review rounds, and every single check was green while it happened.

The worst one wasn't a stale number.

A crypto wallet of ours got compromised. We rotated it. Updated the docs. Ran the audits. Green.

Meanwhile a forgotten file kept publicly serving the old wallet — for days.

Three auditors passed. The world had moved. The wiki hadn't noticed.

That failure built the system I actually use now.

The Blind Spot In The Wiki Method

Karpathy's model treats documents as source code:

RAW FILES
   ↓
AI COMPILES A WIKI
   ↓
INDEX + LINKS + SOURCES
   ↓
FUTURE QUESTIONS USE THE WIKI

For reading knowledge — papers, transcripts, notes — this is exactly right.

A note about a book cannot betray you. There is no world outside it that can silently make it false.

But the moment your knowledge base describes operated systems — servers, prices, published contracts, wallets, deployed APIs — every page has a world outside it.

And that world changes while nobody is looking.

Contradiction detection between notes doesn't save you.

Two notes can agree perfectly about a world that no longer exists.

Karpathy's wikiAudited vault
Source of truthraw filesthe running world
Contradiction checknote vs notenote vs reality
Failure it catchesduplicate / conflicting pagesa page that stayed "correct" while the world moved
When it runson ingestbefore every session + CI
Green meanspages are consistentwhat the scripts watch is still in place — and nothing more

The Fix: A Wiki That Gets Audited Against Reality

WIKI CLAIM: "endpoint X charges $2"
   ↓
AUDITOR SCRIPT (runs before every session)
   ↓
ACTUAL HTTP CALL TO ENDPOINT X
   ↓
MATCH?  → green, keep working
DRIFT?  → RED BUILD, fix the doc first

The vault is not something you read.

It is something you run.

Two instruments, and the second one is the difference:

1. Coherence audit (no network, ~1 second). Does the document contradict itself? Sweeps the entire tree: hand-copied constants, orphan notes, counts that don't match the disk, broken tables. Fails the build.

2. World audit (network, ~10 seconds). Does the document describe reality? Every claim in state/ gets re-measured: HTTP calls to what's actually served, on-chain reads, git ls-remote against real remotes.

If the doc says an endpoint charges and the endpoint stopped charging — red. Even though nobody touched the doc.

Especially because nobody touched the doc.

The Structure

vault/
│
├── state/       what is true TODAY — one file per fact,
│                every figure has exactly ONE assertion site
│
├── laws/        atomic method notes — each one born
│                from an error we actually paid for
│
├── history/     what happened, so we stop repeating it
│
└── HANDOFF.md   the cold-start door: what exists, what works,
                 what's broken, what's pending. Ruthlessly pruned.

Our first HANDOFF grew to 2,600 lines. 48% of it was correction blocks nobody re-read.

That file is where the lies incubated.

The first pruning cut half the lines without losing a word. Closed arcs move to history/, one line stays behind.

The Laws That Pay Rent

Each of these cost us something before it became a rule:

Never write the number a command WILL print. Write the one it printed. The auditor caught me three times writing test counts before running the tests.

If a fact expires faster than it gets re-read, don't write it — measure it at runtime. Before writing any number, ask how long it lives.

What you serve matters more than what you wrote. The dangerous drift isn't in your notes. It's in what a third party receives from your systems while your notes say otherwise.

Every hand-copied constant is one more place to desynchronize. Scripts read constants from the assertion site. A repeated literal fails the build.

An exit 0 proves nothing is right. It proves the things the scripts know how to check are still in place. Ours stayed green through six rounds of lies. Every caught lie becomes a new auditor row — not a resolution to do better.

The Ritual (Rule #1)

Before working: run the auditors, then read.

After working: fix what your session made false. Re-run the auditors with the fixes in place. Commit.

No commit — didn't happen. The next session starts blind.

This is not a habit we recommend. It is the repo's rule #1, and the AI sessions execute it as part of the work.

Prompt 1: Create The Structure

Task: set up an audited knowledge vault.

Create:
/state       — one file per living fact. Each figure appears in
               EXACTLY one file (its "assertion site").
/laws        — atomic method notes. A law may only be written
               after an error was actually paid.
/history     — closed arcs, moved here whole; one line stays
               in HANDOFF.md
HANDOFF.md   — cold-start entry: what exists, works, is broken,
               is pending. No figures — link to /state instead.

Rules:
- prose may quote old numbers freely; changing a figure
  happens ONLY at its assertion site
- a correction block that isn't struck through reads as present
  tense; when superseded, strike it and say what superseded it
- every new note must be linked from the index, or the audit fails
- if a fact expires faster than it gets re-read, it does not get
  written: it gets measured by the auditor at runtime

Prompt 2: The Coherence Audit

Task: write a script that fails loudly when my vault
contradicts itself. No network access.

Check the ENTIRE tree (not a list of paths — that is how two
forgotten copies once served a compromised credential):

- any figure appearing outside its assertion site
- notes not linked from the index (orphans)
- counts in docs vs counts on disk (tests, files, entries)
- identity constants appearing as literals in code
- tables split by blockquotes between rows

Exit 1 on any hit, naming file and line.
This runs before every session and in CI on every push.

Prompt 3: The World Audit

Task: write a script that re-measures my vault against reality.
Network allowed. ~10 seconds budget.

For every claim in /state, derive a measurement:
- "endpoint X returns 402"     → make the HTTP call
- "the served key is K"        → fetch and compare bytes
- "repo is pushed"             → git ls-remote vs local HEAD
- "wallet W holds the NFT"     → on-chain read

Two row types:
- ASSERTION: doc said X, world said Y → RED on mismatch
- SNAPSHOT: volatile values (market counts, balances) are
  REPORTED but never fail the build — an auditor that cries
  hourly trains everyone to ignore it

Print what the doc claims next to what the world answered.
The diff IS the finding.

Prompt 4: The Session Close

Task: close this working session by Rule #1.

1. List everything this session changed in the world
   (deploys, published content, config, purchases).
2. For each change, find the vault claims it made false.
   Fix them at their assertion sites.
3. Re-run the coherence audit AND the world audit
   WITH the fixes in place.
4. If green: commit vault + code together, message says
   what changed in the world and what the audit measured.
5. If red: fix and repeat. Do not end the session red.

Never write what a run WILL say. Run it, then write what it said.

The Part Nobody Tells You

The wiki method's contradiction handling is good. Keep it.

But route contradictions by who can settle them:

A contradiction between two notes → flag it, like Karpathy says.

A contradiction between a note and the world → that is not a discussion. The world wins. The note was a lie with good intentions.

Our auditor caught a "spec is not published yet" claim that had been false for a full day — the spec was live on GitHub the whole time. The doc was asking us to do something already done.

That's the failure mode no note-vs-note check can see.

Install It As A Claude Code Skill — vaultwatch

This repo ships the whole method as a ready-to-use skill — the four prompts above, turned into an instrument Claude applies to your repo:

git clone https://github.com/yvalenta/vaultwatch
mkdir -p ~/.claude/skills
cp -r vaultwatch/skills/vaultwatch ~/.claude/skills/

Then, in any repo: "set up vaultwatch here" (or "set up an audited vault here"). Claude builds the structure, writes both auditors fitted to what your project actually serves, and runs them in front of you.

The Result

One brain per project, living next to the code it describes — because only there can an auditor compare it to its own reality.

A thin shared index across projects: one line and one entry point each. Pointers, never copies.

And the brains run: each active project has a persistent AI session that cold-starts by reading its vault and gets woken by its channel when something happens.

The vault stops being documentation about the system.

It becomes the system's working memory — with instruments whose only job is to contradict it.

Knowledge compounds.

Lies compound too.

The difference is who audits.


Built in public. The 37 lies, the six green rounds, and the wallet incident are documented in the vault's own history/ — that's the point.

This method — article and skill — is CC BY 4.0: take it, run it, adapt it, and let your auditors contradict you. Keep one line of credit pointing back here so the next person can find the source.

常见问题

What is vaultwatch?

vaultwatch is an open-source ai agents skill for AI coding assistants such as Claude Code, Codex CLI, and ChatGPT, built by yvalenta. The wiki that gets audited against reality: a Karpathy-style AI knowledge base plus two auditors that re-measure its claims against the running world before every session. Article + installable Claude Code skill. It has 0 GitHub stars.

Is vaultwatch safe to use?

Yes. vaultwatch passed SkillsLLM's automated security scan — a dependency vulnerability audit plus prompt-injection heuristics — with no high-severity issues. You can read the full report in the Security Report section on this page.

How do I install vaultwatch?

Clone the repository with "git clone https://github.com/yvalenta/vaultwatch" and add it to your Claude Code skills directory (see the Installation section above).

Are there alternatives to vaultwatch?

Yes. SkillsLLM lists many other AI Agents skills you can browse and compare side by side. Open the AI Agents category from the badge at the top of this page, or use the Related Skills and comparison links further down to weigh vaultwatch against similar tools.

评论 (0)

暂无评论,成为第一个分享想法的人!

ECC

by affaan-m

10

The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.

242,21936,702JavaScript
AI 智能体ai-agentsanthropicclaude-code
查看详情
15

An agentic skills framework & software development methodology that works.

234,96620,863Shell
AI 智能体ai-agentsbrainstorming
查看详情

hermes-agent

by NousResearch

10

The agent that grows with you

234,43747,175Python
AI 智能体ai-agentsagent-orchestration
查看详情

The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.

185,94028,768JavaScript
AI 智能体ai-agentsanthropicclaude-code
查看详情

cc-switch

by farion1231

3

A cross-platform desktop All-in-One assistant for Claude Code, Codex, OpenCode, OpenClaw, Grok Build & Hermes Agent. Only official website: ccswitch.io

128,8688,826Rust
AI 智能体claude-codeai-tools
查看详情

claude-code

by anthropics

Claude Code is an agentic coding tool that lives in your terminal, understands your codebase, and helps you code faster by executing routine tasks, explaining complex code, and handling git workflows - all through natural language commands.

120,03119,897Shell
AI 智能体
查看详情

开发者还喜欢

基于喜欢此 Skill 的开发者投票和收藏

ECC

by affaan-m

10

The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.

242,21936,702JavaScript
AI 智能体ai-agentsanthropicclaude-code
查看详情
15

An agentic skills framework & software development methodology that works.

234,96620,863Shell
AI 智能体ai-agentsbrainstorming
查看详情

hermes-agent

by NousResearch

10

The agent that grows with you

234,43747,175Python
AI 智能体ai-agentsagent-orchestration
查看详情

n8n

by n8n-io

12

Fair-code workflow automation platform with native AI capabilities. Combine visual building with custom code, self-host or cloud, 400+ integrations.

201,88160,308TypeScript
MCP 服务器apisai-tools
查看详情

The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.

185,94028,768JavaScript
AI 智能体ai-agentsanthropicclaude-code
查看详情

cc-switch

by farion1231

3

A cross-platform desktop All-in-One assistant for Claude Code, Codex, OpenCode, OpenClaw, Grok Build & Hermes Agent. Only official website: ccswitch.io

128,8688,826Rust
AI 智能体claude-codeai-tools
查看详情
vaultwatch — Claude Code AI Skill | SkillTip