AION: The Self-Evolving Code Engine. Code Once, Live Forever.
Project description
AION
Code Once, Live Forever.
AION is an autonomous code-immunity control plane for Python services. It turns repository scanning into a staged remediation workflow: detect incidents, generate deterministic patches, verify them in isolated sandboxes, orchestrate events through queues and webhooks, and produce rollout plus runtime-defense decisions.
What Ships Today
- Context-aware Python scanning with repository profiling, Semgrep triage, and optional LLM explanation
- Deterministic remediation for
raw_sqlite_query,hardcoded_secret, andmissing_auth_decorator - Verification with syntax checks, Semgrep re-scan, built-in assertions, and staged project commands
- Event-driven control-plane primitives: inbox, webhook ingress, queue processing, sandbox orchestration
- Release candidate management with approval, phased rollout, rejection, and rollback
- Runtime containment planning covering gateway blocks, WAF rules, feature flags, dependency pins, and code-patch follow-up
Architecture
| Layer | Implemented capabilities |
|---|---|
| Sensor | Repository scan, JSON event ingestion, persistent inbox, webhook POST /events |
| Decision | Incident detection, remediation planning, policy gating, rollout recommendation |
| Execution | Patch artifact generation, file or repository sandbox staging, verification command execution |
| Assurance | Repair records, queue metrics, release candidates, rollback decisions, runtime defense plans |
Installation
Install from PyPI:
pip install aion-evolve
Or install as a uv tool:
uv tool install aion-evolve
For local development:
git clone https://github.com/shenxianpeng/aion.git
cd aion
uv sync --group dev --group docs
uv run aion --help
Quick Start
Choose at least one LLM provider for scan:
export OPENAI_API_KEY=your_key
# or
export ANTHROPIC_API_KEY=your_key
Scan a repository:
aion scan ./path/to/repo --output json
If you are running from the cloned repository instead of an installed package,
use uv run aion ....
Plan and verify a deterministic repair:
aion repair ./path/to/file.py \
--context-file ./context.json \
--artifact-path ./artifact.json \
--record-path ./repair-record.json
aion verify --artifact-path ./artifact.json
Process an orchestration event inside a sandbox:
aion process-event ./event.json \
--result-path ./orchestration.json \
--output json
Promote a verified result into staged rollout control:
aion create-release-candidate ./.aion/inbox/results/<event>.json
aion approve-release <candidate-id> --approver alice
aion advance-release <candidate-id>
Configuration
Place .aion.yaml in the target repository root:
provider: openai
model: gpt-4.1
ignore_paths:
- tests/*
- scripts/generated_*.py
auto_repair_issue_types:
- raw_sqlite_query
- hardcoded_secret
- missing_auth_decorator
auto_repair_min_confidence: 0.90
sandbox_mode: repository
sandbox_verification_commands:
- python -m pytest tests/unit
auto_approve_verified_fixes: false
rollback_on_verification_failure: true
CLI flags override equivalent settings from .aion.yaml.
Command Surface
Core analysis:
aion scanaion repairaion verifyaion run-incidentaion repair-eval
Control plane:
aion process-eventaion process-event-queueaion enqueue-eventaion list-inboxaion process-inboxaion serve-webhook
Release and defense:
aion create-release-candidateaion list-releasesaion approve-releaseaion reject-releaseaion advance-releaseaion rollback-releaseaion plan-defense
Drift and monitoring:
aion snapshotaion driftaion watchaion status
Documentation
Documentation is published at shenxianpeng.github.io/aion.
The docs site uses native Material for MkDocs language switching backed by the
mkdocs-static-i18n plugin, so the language selector and sidebar navigation are
generated per locale instead of being patched in with custom JavaScript.
Current Scope
- AION produces patch artifacts and staged decisions. It does not hot-patch live production code in place.
- External integrations for production queues, gateways, WAF providers, feature flags, and deployment systems remain adapter work on top of the shipped interfaces.
- The current implementation is Python-only by design.
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 aion_evolve-1.1.1.tar.gz.
File metadata
- Download URL: aion_evolve-1.1.1.tar.gz
- Upload date:
- Size: 239.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5bd079656ff6ebfeb86181876ae68a0ed73e690edfea75f9bbf7aca68601b3fc
|
|
| MD5 |
2d5c8090e0c7cc226c63fb22da9890ea
|
|
| BLAKE2b-256 |
ac2549a12d8109ab96c52c8cad5511e13b2a826c2108b77038ef20d0f1efefb0
|
Provenance
The following attestation bundles were made for aion_evolve-1.1.1.tar.gz:
Publisher:
publish.yml on shenxianpeng/aion
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
aion_evolve-1.1.1.tar.gz -
Subject digest:
5bd079656ff6ebfeb86181876ae68a0ed73e690edfea75f9bbf7aca68601b3fc - Sigstore transparency entry: 1248666518
- Sigstore integration time:
-
Permalink:
shenxianpeng/aion@fde004245ecb9d386d93237cfccd87aadccf4092 -
Branch / Tag:
refs/tags/v1.1.1 - Owner: https://github.com/shenxianpeng
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@fde004245ecb9d386d93237cfccd87aadccf4092 -
Trigger Event:
push
-
Statement type:
File details
Details for the file aion_evolve-1.1.1-py3-none-any.whl.
File metadata
- Download URL: aion_evolve-1.1.1-py3-none-any.whl
- Upload date:
- Size: 48.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1744e9c46adf7acb9ecf3901bda79055d5699efc3e973d9fecaea64f8c49f826
|
|
| MD5 |
69a5bfa259f2979b5c24a8fb1477786b
|
|
| BLAKE2b-256 |
42e0450decd8baa2ec4baf7e4e4d16af1265acb44157a73b7441bf196e2bf6d3
|
Provenance
The following attestation bundles were made for aion_evolve-1.1.1-py3-none-any.whl:
Publisher:
publish.yml on shenxianpeng/aion
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
aion_evolve-1.1.1-py3-none-any.whl -
Subject digest:
1744e9c46adf7acb9ecf3901bda79055d5699efc3e973d9fecaea64f8c49f826 - Sigstore transparency entry: 1248666528
- Sigstore integration time:
-
Permalink:
shenxianpeng/aion@fde004245ecb9d386d93237cfccd87aadccf4092 -
Branch / Tag:
refs/tags/v1.1.1 - Owner: https://github.com/shenxianpeng
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@fde004245ecb9d386d93237cfccd87aadccf4092 -
Trigger Event:
push
-
Statement type: