choihyunsus/n2-clotho
AI agents ignore markdown rules. Clotho doesn't ask — it enforces. Compile .n2 rules into state machine contracts, SQL-queryable blacklists, and deterministic execution plans. Rust + WASM. npm install n2-clotho.
Platform-specific configuration:
{
"mcpServers": {
"n2-clotho": {
"command": "npx",
"args": [
"-y",
"n2-clotho"
]
}
}
}Add the config above to .claude/settings.json under the mcpServers key.
KR 한국어
[](https://www.npmjs.com/package/n2-clotho) [](https://opensource.org/licenses/Apache-2.0) [](https://www.rust-lang.org/) [](https://webassembly.org/) [](https://github.com/choihyunsus/n2-clotho)
> Markdown rules are dead. Long live `.n2`.
Clotho is a compiled instruction language for AI agents. It replaces fragile markdown-based rules (GEMINI.md, .cursorrules, CLAUDE.md) with enforceable, type-checked, deterministic specifications that agents cannot ignore.
Named after Clotho, the Greek goddess who spins the thread of fate — because once you define the rules, they become destiny.
# Before: GEMINI.md (a polite suggestion)
"Please don't run rm -rf. Thanks!"
→ AI: "Sure!" *runs rm -rf anyway*
# After: rules.n2 (compiled law)
@rule NoDestructive {
blacklist: [/rm -rf/, /DROP TABLE/i]
}
→ AI attempts rm -rf → ❌ BLOCKED. No exceptions.<p align="center"> </p>
> Panel 1: AI reads your markdown rules... Panel 2: ...then ignores them anyway. > Panel 3: Clotho arrives with .n2 compiled law. Panel 4: Rules enforced. No exceptions.
Every AI coding tool has its own markdown-based rule system:
| Tool | Rule File | Enforcement | |------|-----------|:-----------:| | Gemini | GEMINI.md | 🙏 Hope | | Cursor | .cursorrules | 🙏 Hope | | Claude | CLAUDE.md | 🙏 Hope | | Windsurf | .windsurfrules | 🙏 Hope | | System Prompt | system.txt | �
Loading reviews...