Borrowing it
Nothing to install: this file belongs to P1-103n1x/bab-ilu. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/P1-103n1x/bab-ilu/v2.2-oss-public/CLAUDE.mdgit clone --depth 1 https://github.com/P1-103n1x/bab-iluWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/instructions/p1-103n1x/bab-ilu/claude-md)<a href="https://agentmods.dev/instructions/p1-103n1x/bab-ilu/claude-md"><img src="https://agentmods.dev/badge/instructions/p1-103n1x/bab-ilu/claude-md/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/instructions/p1-103n1x/bab-ilu/claude-md"><img src="https://agentmods.dev/badge/instructions/p1-103n1x/bab-ilu/claude-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.02094 | $0.02094 |
| Opus 5 | $0.01047 | $0.01047 |
| Sonnet 5 | $0.00419 | $0.00419 |
| Haiku 4.5 | $0.00209 | $0.00209 |
Grade A, and why
bab-ilu CLAUDE.md scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 10d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 127 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Bab-ilu — Agent Project Guide (v2.1)
This file is read by Claude Code and other AI agents at session start. It tells agents how the project is organized and what conventions are non-negotiable. Authority source:
PRD-v2.1-zh.md(especially §0.5 theoretical foundation, locked).
0. 理论基础(硬约束 · 每次会话前置词)
本节同步自
PRD-v2.1-zh.md §0.5.2 + §0.5.3。PRD 为权威源;若此处与 PRD 漂移,以 PRD 为准。修订本节需要重新对齐控制论与晚期维特根斯坦的理论基础。
核心价值命题(写死)
Bab-ilu 不是一个"知道规则"的系统,是一个"从实践中长出规则"的系统。
- 控制论(Wiener / Ashby / Beer)给"如何从实践中长"的工程实现——闭环、自适应、变异度匹配、晚绑定。
- 晚期维特根斯坦(《哲学研究》——语言游戏 / 家族相似性 / 生活形式 / 规则跟随悖论)给"为什么必须从实践中长"的哲学依据。
这两者不是并列的两个参考,是同一世界观的工程侧和哲学侧。 所有与此核心命题冲突的设计决策都被拒绝,不论它在局部是否"更方便"。原则之间若产生冲突,回溯此命题决裁。
五条可操作原则
| # | 原则 | 具体含义 |
|---|---|---|
| 1 | 晚绑定(late binding) | 任何能延迟的全局决策都延迟;优先收集 variety,再归纳 |
| 2 | 反本质 | Lens schema 松散,允许每个 lens 有独特字段;不强制共享结构(家族相似性) |
| 3 | 闭环优先 | 工程上先保证真实闭环(accept/reject 持久化 / 自适应阈值 / 反向提示词 / 跨会话学习),再考虑功能扩展 |
| 4 | Variety 匹配(Ashby) | Lens 必须能随用户 variety 成长。LENS EVOLUTION 是 Ashby 定律的工程实现 |
| 5 | 实践优于规则 | 不做"什么是好 lens"的教条;展示美学作为范例 + 邀请社区贡献,标准在实践中涌现 |
对 Karpathy 原教旨的必守点
这两处是 Karpathy 原文明示、但 Bab-ilu v2.1 尚未落地的核心机制。任何未来 PR 触碰 /ask 或 /lint 时,必须朝这两个方向推进而非偏离:
/ask回存——"good answers can be filed back into the wiki as new pages... your explorations compound in the knowledge base just like ingested sources do." 每次/ask应询问归档为wiki/syntheses/<slug>.md。/lint主动建议——"the LLM is good at suggesting new questions to investigate and new sources to look for."/lint不只做局部合规检查,还要给出矛盾检测、过时检测、素材请求。
会话启动顺序(加入此节后更新)
每次会话启动时,agent 必须按以下顺序加载上下文:
- 本节 §0(理论基础) —— 绝不跳过。所有后续决策都须回溯这五条原则。
PRD-v2.1-zh.md §0.5—— 本节的权威来源与扩展说明。schema.md—— 数据契约。- 下文项目特定约定(
## What Bab-ilu Is及之后)。
What Bab-ilu Is
Bab-ilu is a self-growing LLM-Wiki with pre-installed discipline-specific lenses. It extends Karpathy's LLM-Wiki with two structural additions: a pre-installed lens slot (currently occupied by the aesthetic-warburg lens as the stress-test reference implementation) and a user-space evolving lens layer (Zettelkasten fallback + LENS EVOLUTION that grows action-lenses from user behavior). See PRD-v2.1-zh.md §0.5 for the theoretical foundation locked as hard constraint.
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 10d ago First seen · 127 lines · 2,094 tokens per session scan A 0d9ee8042f94
bab-ilu CLAUDE.md is an instructions file published in the GitHub repository P1-103n1x/bab-ilu (11 stars, last pushed 4mo ago), licensed MIT. It adds 2,094 tokens to every session, about $0.0105 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
Other instructions, from other repositories
next.js AGENTS.md
AGENTS.md instructions for vercel/next.js, covering next.js development guide, codebase structure, monorepo overview, core package: packages/next and other important packages.
codex AGENTS.md
AGENTS.md instructions for openai/codex, covering rust/codex-rs, the codex-core crate, code review rules, crate api surface and model visible context.
vscode buildNext.instructions.md
Working notes and architecture documentation for the new esbuild-based build system in build/next. Use when making changes to the new build pipeline (transpile/bundle commands, NLS plugin, source-map handling, resource copying, or self-hosting watch tasks).
vscode oss-third-party-notices.instructions.md
Instructions for microsoft/vscode, covering vs code oss third-party-notices pipeline, architecture, pipeline flow in ci, applying the notice (cutover) and fallback chain (never fail the build).
langchain AGENTS.md
AGENTS.md instructions for langchain-ai/langchain, covering global development guidelines for the langchain monorepo, corridor security analysis, project architecture and context, monorepo structure and development tools & commands.
deepseek-harness AGENTS.md
AGENTS.md instructions for deepseek-ai/deepseek-harness, covering agents.md, pre-stable apis and released session data, repository layout, commands and host sandbox failures.