{"repo":"jhaizhou-ops/pinrule","free":true,"listed":false,"github":"https://github.com/jhaizhou-ops/pinrule","clone":"git clone https://github.com/jhaizhou-ops/pinrule.git","description":"Universal AI behavior rule framework — pin your 5-10 rules so AI doesn't drift in long tasks. Dev-scenario preset built in; switch to any scenario in one line. Claude / Codex / Cursor / Hermes. Zero LLM, zero network, zero deps.","language":"Python","stars":47,"topics":["agent-tooling","ai-agent","claude-code","codex-cli","coding-assistant","developer-tools","hooks","llm","prompt-engineering","agent-rules"],"license":"MIT","category":"ai-agents","readme_excerpt":"pinrule 🇬🇧 English (current) · 🇨🇳 中文 Pin the 5-10 rules your AI must not drift from during long tasks. Ships with a 7-rule dev preset; switch to any other scenario with one sentence: /pinrule I mainly do X, switch to this scenario . Runtime : pure engineering · zero LLM · zero network · zero runtime deps · 50-70ms hook · 2% token overhead. (Scenario rule pack generation runs in your Agent — see Path B below.) Andrej Karpathy's CLAUDE.md teaches your AI how to write good code. pinrule keeps your AI aligned with your personal preferences in long tasks — what to never do, what to always do, what to push back on — so you don't have to repeat yourself every 30 turns. --- Quick start Let your Agent install it (recommended — least friction) Since you're already using Claude Code / Codex / Cursor (otherwise you wouldn't need pinrule), paste this prompt to your Agent: The Agent figures out your OS, Python state, and which clients you have. After install, restart your client and rules take effect. Manual install pinrule init auto-installs hooks for any detected client (Claude / Codex / Cursor / Hermes) + writes default rules to /.pinrule/ . If you install a new client later, run pinrule install-hooks to wire it up. Restart Claude / Codex / Cursor / Hermes — default rules become active once hooks load. Uninstall — pinrule uninstall-hooks (auto-removes pinrule entries from every detected client surgically; doesn't touch hooks installed by other tools). Windows without Python : python","default_branch":null,"files":null,"tree":[],"storefront":"/r/jhaizhou-ops","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/jhaizhou-ops/pinrule/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}