Repo of the Day
mos-ks/behavior-map
Published: Nov 23, 2026
Open repository ↗Your working rules for AI assistants, written down once: one file per rule, compiled into CLAUDE.md, AGENTS.md and more, with a local page to explore and edit them
Summary
Behaviour Map is a local Python application for recording an engineer’s standing instructions to AI coding assistants. It turns those rules into CLAUDE.md, AGENTS.md, and other tool-specific instruction text, with a browser page to review, edit, install, and update them.
What it is useful for
It is useful when an engineer keeps repeating preferences such as “no AI byline on commits,” “answer first,” or “do not ask before every push.” Instead of copying those reminders into each project, the tool can make them shared rules with reasons, supporting quotes, scope, and strength.
It also identifies repeated jobs, such as releasing an app or reviewing a pull request, and suggests reusable skills. The Map and Rules views show active, fading, and broken rules; the Inbox holds corrections, while the Files tab shows what each assistant receives.
How engineers can use it
Use Python 3.9 or later; no packages are required. Clone the repository and launch the local page:
git clone https://github.com/mos-ks/behavior-map
cd behavior-map
python ui.py
Then select Build my map. The first build reads prompts you typed to Claude Code, asks the selected model to identify rules and repeated work, and generates the instruction files. Claude Code can be used without an API key if it is already installed and signed in. For another model, select A local or hosted model and enter an OpenAI-compatible address, such as one used with vLLM, Ollama, or llama.cpp. The command-line alternative is python bootstrap.py, optionally with --engine claude or --engine api.
Review the Rules tab, switch rules off, adjust wording, and choose what belongs in the always-on core. Install generated files with python build.py --install for Claude Code, or use --install codex, --install opencode, or --install all. For ChatGPT or a local model, copy the relevant text from the Files tab. If an existing instruction file contains your own writing, the tool preserves it and saves one backup; later updates rewrite only the marked generated section.
Use python build.py --check to validate rules. The page’s Update action reads new Claude Code chats and rebuilds changed output; python sync.py --update provides that flow for a shared private map repository.
The program runs on your machine, but model-assisted builds send prompts to the selected model, with private details blanked first. Limitations include Claude Code history being local to each computer, results depending on model quality, fixed categories and scopes, and a page intended for one person on one machine. The no-model correction matcher understands English and German, while generated rules are written in English.