Control and audit plane CLI for AI coding agents.
Project description
Aegisure
Control & audit plane for AI coding agents — one constitution, every agent, safer commits.
Aegisure is a local-first CLI for teams and developers using coding agents such as Codex, Claude Code, Cursor, Copilot, Cline, and Roo. It gives every repo a shared Constitution, scans AI-generated diffs before they land, exports rule files that agents can read, and creates constrained repair prompts when a change is risky.
The static core is LLM-free. It runs locally, works without API keys, and does not send your code to a model.
What It Does
- Scans staged, working-tree, or PR diffs for secret values, destructive shell commands, permissive CORS, auth/session/permission changes, payment/billing changes, risky dependency scripts, deployment config changes, deleted tests, and large risky changes.
- Generates a canonical
Aegisure.mdConstitution for a repository. - Exports the Constitution into agent-readable files:
AGENTS.md,CLAUDE.md,.cursorrules,.clinerules, and.github/copilot-instructions.md. - Preserves existing user-authored agent files by writing only inside an Aegisure-managed block.
- Produces constrained repair prompts that tell an agent exactly what to fix and what not to touch.
- Captures declared provenance and attribution when you commit through
aegisure commit. - Supports a lightweight GitHub Actions path with
aegisure scan --changed --json.
Install
pip install aegisure
Requires Python 3.10 or newer.
Quickstart
Initialize Aegisure in a repo:
aegisure init
aegisure export
Stage a risky change:
echo 'OPENAI_API_KEY = "sk-proj-realfakekey1234567890abcdef"' >> app.py
git add app.py
Scan the staged diff:
aegisure scan --staged
Example output:
Aegisure verdict: block (100/100)
1 files changed, 1 additions, 0 deletions, 1 risk findings.
- CRITICAL secret_in_diff at app.py:1: This added line looks like a secret, token, password, private key, or credential.
Create a constrained repair prompt:
aegisure repair --staged --agent codex
CLI Commands
aegisure init Generate the canonical Aegisure.md Constitution.
aegisure export Export Aegisure.md into standard agent memory files.
aegisure scan Analyze a local or CI diff using the LLM-free static core.
aegisure repair Generate a constrained repair prompt for risky diffs.
aegisure commit Commit changes and capture declared agent provenance.
aegisure login Store local workspace metadata for CLI use.
aegisure doctor Run a read-only repository readiness check.
aegisure run Start or end a git snapshot-and-scan session.
aegisure rewind Prepare a safe git-based rollback for an Aegisure-tagged commit.
The public CLI is intentionally static-core and LLM-free.
GitHub Actions
Copy .github/workflows/aegisure.yml.example into your repository as .github/workflows/aegisure.yml:
name: Aegisure
on:
pull_request:
branches: ["**"]
jobs:
scan:
runs-on: ubuntu-latest
permissions:
contents: read
pull-requests: read
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-python@v5
with:
python-version: "3.12"
- run: python -m pip install aegisure
- run: aegisure scan --changed --base origin/${{ github.base_ref }} --json
aegisure scan --json exits non-zero when the verdict is block, so CI can fail safely on critical findings.
Hosted Dashboard Beta
A hosted dashboard beta exists for teams that want GitHub App PR comments, audit history, BYOK audit chat, and workspace views.
Learn more: https://aegisure.dev
License
MIT
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file aegisure-0.2.2.tar.gz.
File metadata
- Download URL: aegisure-0.2.2.tar.gz
- Upload date:
- Size: 44.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8191dec3d98fbd019c4dd01727897af8f9374dc935acbdaae61bb31bda68b3ef
|
|
| MD5 |
0e8fdc357db8745f8603e903c6abe148
|
|
| BLAKE2b-256 |
f32533e77c35423eef4724fe684d0df2a99bae2f1596e68b7dcd9a99473e96f5
|
File details
Details for the file aegisure-0.2.2-py3-none-any.whl.
File metadata
- Download URL: aegisure-0.2.2-py3-none-any.whl
- Upload date:
- Size: 47.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
54062df2062949f5624e441ba6d47e9d51be9ff022c9f835ff384a00dfe10d73
|
|
| MD5 |
29d8e2faf9eafd9e9c7036663645656f
|
|
| BLAKE2b-256 |
758ec6adac1e4c152557216f594cd6dde72980b5ea1867917e21ef5cebc43eeb
|