Govern agent work from the terminal first.
The CLI is the fastest way to generate Aegisure.md, scan risky diffs, export cross-agent memory files, capture provenance, and create constrained repair prompts.
pip install aegisure
aegisure --helpinit
Scan the repository and generate the canonical Aegisure.md Constitution.
Usage
aegisure initExample
aegisure initexport
Export Aegisure.md into the standard rule files used by coding agents.
Usage
aegisure exportExample
aegisure exportscan
Analyze staged, changed, or committed diffs for critical risk and policy violations.
Usage
aegisure scan --staged [--json]Example
aegisure scan --stagedrepair
Create a constrained prompt that tells an agent exactly what to fix.
Usage
aegisure repair --staged --agent <agent>Example
aegisure repair --staged --agent codexcommit
Commit changes while recording declared agent provenance and the originating prompt.
Usage
aegisure commit -m "<message>" --agent <agent> --prompt "<prompt>"Example
aegisure commit -m "Fix auth redirect" --agent codex --prompt "Repair OAuth callback handling"doctor
Run a read-only readiness check for Constitution drift, ignored secrets, and CI setup.
Usage
aegisure doctorExample
aegisure doctorrun
Start or end a snapshot-and-scan session around normal agent work.
Usage
aegisure run [--end]Example
aegisure run
# work with your agent
aegisure run --endrewind
Safely prepare a git-based rollback for the last Aegisure-attributed change.
Usage
aegisure rewind lastExample
aegisure rewind lastlogin
Authenticate the CLI to a workspace, or keep using local mode with SQLite.
Usage
aegisure loginExample
aegisure login