rigmode-0.1.1 is not a library.
rigmode
Attach work modes to AI coding agent prompts.
A mode declares decision principles, stop conditions, and human gates. Every mode whose triggers match your prompt is injected automatically via an agent hook — modes are phases of one job, so their guardrails add up. Push back in your own words — configured intervention markers record the correction to gates.jsonl automatically.
Agent support
| Capability | Claude Code | Codex | Cursor |
|---|---|---|---|
| Per-prompt mode attach | ✅ | ❌ | ❌ |
hook install / uninstall |
✅ | ❌ | ❌ |
Quick Start
# Point at your modes directory (optional — default is ~/.config/rigmode/modes)
# Register the Claude Code UserPromptSubmit hook
# Validate modes and hook registration
# Dry-run attach against a prompt
|
# List recent attaches (newest first)
# List recorded interventions (newest first)
# Remove the hook
Restart Claude Code (or start a new session) after hook install so the hook is picked up.
Install
Homebrew (macOS):
mise:
Cargo
Documentation
- Usage — Commands, flags, gate recording, and debugging
- Configuration — Config file, modes dirs, and data files
- Modes — Mode file format and selection rules
License
MIT