Skip to content
On this page

maxims ​

maxims installs one-line rule memories from GitHub repos or local folders into the always-loaded instruction layer of every coding agent on a machine, and a small hook re-syncs them each time a session opens. These pages describe the behavior the code is built and tested against; each fact lives on one page.

bash
npx -y @vivswan/maxims add @Octocat/rules -g --rule --add-hook
flowchart LR
    repo["source repo<br/>memories/*.md"] -->|add, update, or a sync past the cooldown| store["store<br/>~/.agents/maxims/store/"]
    state["state.json<br/>what should be installed"] --> sync["sync"]
    store --> sync
    sync --> cc["Claude Code<br/>~/.claude/rules/maxims-*.md"]
    sync --> cx["Codex<br/>~/.codex/AGENTS.md block"]
    sync --> more["every other harness in the matrix"]
    hook["session-start hook<br/>npx -y @vivswan/maxims sync --quiet"] -.->|every session| sync

How it works walks the picture stage by stage. The pages below are grouped by what you are trying to do.

I want to...Read
install a source and see what lands on diskQuickstart
follow a rule from the source repo to the agent's contextHow it works
choose a scope, a selection, or a harness, or resolve a name collisionInstall a source
commit a source list a fresh clone replaysShare rules with your team
know what the session hook does, and when a source is refetchedKeep rules fresh
look at upstream changes before they reach an agentKeep rules fresh
write a memory file maxims accepts, scaffold one, lint a folderWrite your own memories
check what each harness loads, in a terminal or in CICheck an install
fix what a session start or a sync reportsWhen something breaks
remove a source, move to a new machine, or uninstallMove, back up, or uninstall
look up a verb, a flag, or an exit codeCLI reference
know which agents are supported and what each one getsHarnesses
know what lives in the maxims home and what config.json holdsFiles on disk
know what state records and how it migratesState
know what a failure keeps, and what two processes at once doWhat sync guarantees
declare a harness as data, built in or in harnesses.jsonAdding a harness
understand the problem, and what came beforeWhy maxims
know why a behavior is the way it isDesign decisions
read the threat modelSecurity
see how the code is arranged, file by file, and who writes whatArchitecture
Built from main at 5f6e985Source: docs/README.md