Repo-native runtime contract and context bootstrapper for coding agents
Project description
aictx
Most coding agents forget important repo context between sessions.
aictx turns a normal repository into one with a runtime contract for coding agents so repeated work is reduced and behavior is more consistent.
If you use coding agents (Codex, Claude Code, or similar), this is common:
- you explain the same thing over and over
- past decisions are not reused consistently
- context gets expensive fast
- many tasks feel like starting from zero
aictx addresses that by making the repository itself agent-aware.
Not by adding more prompt templates.
Not by replacing your agent.
By giving the repo a persistent runtime layer for execution and reuse.
After aictx install + aictx init, your repo gets:
- a runtime contract for agent execution
- structured repo-local memory reuse across tasks
- more consistent run-to-run behavior
- automatic prepare/finalize middleware with telemetry + learning write-back
You keep using your agent normally.
aictx adds structure and reuse; results still vary by runner behavior and task ambiguity.
This is not:
- a prompt template
- an agent framework
- a wrapper that replaces Codex or Claude
This is:
- a repo-level runtime for coding agents
Quick start
pip install aictx
aictx install
cd your-repo
aictx init
Then use your coding agent as usual.
Status
aictx is currently in beta (0.x).
It is designed to be:
- minimal on the surface
- structured internally
- explicit about limitations
It does not try to replace your agent.
It helps your agent operate with a repo-native runtime contract.
Product surface
The sellable user flow stays intentionally small:
aictx installaictx init- use Codex, Claude Code, or your normal automation
Everything else exists to support that runtime, not to expand the primary UX.
What it really does today
After install + init, aictx can provide:
- repo-local bootstrap memory under
.ai_context_engine/ - packet-oriented context for non-trivial work
- task memory, failure memory, and memory graph scaffolds
- repo-native instruction integration for Codex and Claude Code
- wrapped middleware for generic automation via
aictx internal run-execution - local/global telemetry and health artifacts
The strongest value today is:
- repo-native runtime contract
- runner-aware execution discipline
- structured local persistence
The contextual layer is real, but still mostly heuristic rather than deeply intelligent.
Honest limits
This is still a 0.x beta product.
- final behavior depends on each runner honoring its instruction and hook system
- telemetry quality is best-effort unless confidence is explicitly high
- advanced/internal commands are supported, but not the main thing being sold
- current task routing, ranking, graph expansion, and packet building are mostly deterministic heuristics
See docs/LIMITATIONS.md.
Install from PyPI
pip install aictx
Then:
aictx install
aictx init --repo .
Install once
aictx install
Non-interactive:
aictx install --yes --workspace-root ~/projects
This creates the global runtime under ~/.ai_context_engine/ and provisions:
- global configuration
- workspace registry
- adapters and wrappers
- global telemetry storage
- global Codex instructions
Initialize a repo
aictx init
Non-interactive:
aictx init --repo . --yes
init creates:
.ai_context_engine/memory/.ai_context_engine/cost/.ai_context_engine/task_memory/.ai_context_engine/failure_memory/.ai_context_engine/memory_graph/.ai_context_engine/library/.ai_context_engine/metrics/.ai_context_engine/adapters/.ai_context_engine/state.json.ai_context_engine/agent_runtime.md
And native repo integration files:
AGENTS.mdAGENTS.override.mdCLAUDE.md.claude/settings.json.claude/hooks/....gitignore
Runtime consistency
aictx boot --repo <path> and aictx execution prepare ... now expose:
- effective communication policy
- communication source precedence
- runtime consistency checks between repo preferences and repo state
Precedence is:
explicit user instruction > repo prefs > global defaults > hardcoded fallback
Benchmark A/B/C
aictx now includes a reproducible benchmark surface for comparative runs:
aictx benchmark run --suite benchmark_suite.json --arm A --out .ai_context_engine/metrics/benchmark_runs
aictx benchmark run --suite benchmark_suite.json --arm B --out .ai_context_engine/metrics/benchmark_runs
aictx benchmark run --suite benchmark_suite.json --arm C --out .ai_context_engine/metrics/benchmark_runs
aictx benchmark report --input .ai_context_engine/metrics/benchmark_runs --format json
This generates standardized JSON/Markdown report artifacts with:
- by-arm aggregates (mean/median/p95/variance)
- deltas (
C vs A,C vs B) - confidence and publication gating labels
See docs/BENCHMARK_QUICKSTART.md.
Evidence model and claim policy
Repo telemetry now tracks evidence state explicitly:
evidence_status:insufficient_data | estimated | measuredmeasurement_basis:fallback_defaults | task_logs | benchmark_runs
Default thresholds:
<20tasks sampled ->insufficient_data20-59tasks sampled ->estimated>=60tasks + completeA/B/Cbenchmark ->measured
Only use strong external claims when evidence is measured and publication gating is complete (claim_label=material_repeatable).
What to expect from the contextual core
Today aictx is better understood as:
- primary: runtime contract + execution discipline + repo bootstrap
- secondary: heuristic packet, memory, failure, and graph accelerators
That means the product already adds structure and reuse, but it does not yet claim deep repo understanding beyond deterministic retrieval and bounded heuristics.
Public beta posture
aictx is now distributed publicly as a beta 0.x package.
- installation is supported through PyPI and GitHub releases
- the core user flow is
pip install aictx->aictx install->aictx init - compatibility is still best-effort, not a long-term 1.0 stability promise
Development quickstart
python3 -m venv .venv
.venv/bin/pip install --upgrade pip
.venv/bin/pip install -e . pytest build
make test
make smoke
make package-check
You can also call the installed script directly:
.venv/bin/aictx --help
Public release validation also checks clean wheel installation, not just editable installs.
Read next
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 aictx-0.5.0.tar.gz.
File metadata
- Download URL: aictx-0.5.0.tar.gz
- Upload date:
- Size: 106.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cc81f9c52663d1a40add175b32a621982b846b9d13973f0a21f3e311f41d8dcf
|
|
| MD5 |
51aa94372a331f31eeb8661bca0e96d2
|
|
| BLAKE2b-256 |
88d350de146272124dfba1f959fa4160c86bf6922832e2be1ec55d91591cbdd3
|
Provenance
The following attestation bundles were made for aictx-0.5.0.tar.gz:
Publisher:
publish-pypi.yml on oldskultxo/aictx
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
aictx-0.5.0.tar.gz -
Subject digest:
cc81f9c52663d1a40add175b32a621982b846b9d13973f0a21f3e311f41d8dcf - Sigstore transparency entry: 1338627464
- Sigstore integration time:
-
Permalink:
oldskultxo/aictx@b8488052c7fa24fda7339d89d9a331adb1351cee -
Branch / Tag:
refs/tags/v0.5.0 - Owner: https://github.com/oldskultxo
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-pypi.yml@b8488052c7fa24fda7339d89d9a331adb1351cee -
Trigger Event:
push
-
Statement type:
File details
Details for the file aictx-0.5.0-py3-none-any.whl.
File metadata
- Download URL: aictx-0.5.0-py3-none-any.whl
- Upload date:
- Size: 108.1 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 |
9226a09910238f2326b153437a155c4efdacc7209ffb2ef3059aa9763fdd075c
|
|
| MD5 |
098ea1026b3338e477afc2f130e3ac6e
|
|
| BLAKE2b-256 |
9fd59f5d928bd3f4b3f7067b14bc175398bb4d1cf513bfacfeb6838281c01f99
|
Provenance
The following attestation bundles were made for aictx-0.5.0-py3-none-any.whl:
Publisher:
publish-pypi.yml on oldskultxo/aictx
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
aictx-0.5.0-py3-none-any.whl -
Subject digest:
9226a09910238f2326b153437a155c4efdacc7209ffb2ef3059aa9763fdd075c - Sigstore transparency entry: 1338627474
- Sigstore integration time:
-
Permalink:
oldskultxo/aictx@b8488052c7fa24fda7339d89d9a331adb1351cee -
Branch / Tag:
refs/tags/v0.5.0 - Owner: https://github.com/oldskultxo
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-pypi.yml@b8488052c7fa24fda7339d89d9a331adb1351cee -
Trigger Event:
push
-
Statement type: