Repo-local execution memory for coding agents
Project description
aictx
Coding agents forget how they worked.
aictx makes their past executions reusable.
It records real execution, stores useful patterns, and reuses successful strategies in later executions inside the same repository.
Why this exists
Most agent workflows start from scratch every time.
aictx allows them to reuse what already worked.
What aictx is
A repo-local execution memory layer for coding agents that records real execution and reuses successful strategies.
- repo-local execution memory
- real execution logging
- reusable strategy memory
- lightweight runtime guidance for coding agents
Quick start
pip install aictx
aictx install
cd your-repo
aictx init
After aictx init, you can use your coding agent normally in that repo.
Manual aictx commands after initialization are optional:
- the intended flow is
install+init, then agent-driven usage suggest,reflect,reuse, andreport real-usageremain available for inspection, debugging, or manual control- Claude/Codex integration files and hooks added by
initare there to help the agent useaictxautomatically when the runner respects repo instructions
Public CLI
aictx install
aictx init
aictx suggest
aictx reflect
aictx reuse
aictx report real-usage
aictx clean
aictx uninstall
Only install and init are part of the normal setup path.
The rest of the public commands are optional operational commands:
suggest,reflect,reuse-> for manual inspection or explicit agent callsreport real-usage-> for reviewing stored execution dataclean,uninstall-> for removing AICTX-managed content
What aictx does
- records real execution in
.ai_context_engine/metrics/execution_logs.jsonl - writes operational feedback in
.ai_context_engine/metrics/execution_feedback.jsonl - stores successful and failed strategies in
.ai_context_engine/strategy_memory/strategies.jsonl - reuses only successful strategies during later executions
- exposes small JSON commands for runtime guidance
What aictx does NOT do
aictx does not optimize your agent. aictx does not guarantee better performance.
It makes past executions observable and reusable.
Who this is for
- engineers using coding agents repeatedly in the same repository
- teams that want repo-local execution history and reusable strategies
- users who prefer traceable artifacts over heuristic-heavy automation
Who this is not for
- users expecting guaranteed productivity gains
- teams looking for a full orchestration platform
- workflows that do not preserve repo-level instructions or execution discipline
Runtime loop
prepare_execution()loads prior successful strategies and may attachexecution_hint- the agent executes
finalize_execution()records logs, feedback, and strategy memory- the next execution can reuse successful strategies and ignore failed ones
Main runtime artifacts
.ai_context_engine/
metrics/
execution_logs.jsonl
execution_feedback.jsonl
strategy_memory/
strategies.jsonl
Additional properties
- repo-local artifacts are the source of truth; execution history and strategy memory stay inspectable inside the repository
- failed strategies are stored, but they are excluded from reuse by default
- public command outputs are deterministic and machine-readable JSON
- AICTX-managed changes can be removed cleanly with
aictx cleanandaictx uninstall
Notes
- file tracking depends on explicit input from the agent/runtime
- strategy reuse is intentionally simple: latest successful strategy by task type
- failed strategies are stored but never reused as hints
- no synthetic benchmarks or estimated improvements are reported
Cleanup
aictx cleanremoves only AICTX-managed content from the current repository: the.ai_context_engine/scaffold, AICTX blocks inAGENTS.md/AGENTS.override.md/CLAUDE.md, AICTX Claude hooks/settings, and the.gitignoreentry added by AICTXaictx uninstallremoves AICTX-managed content from all registered repositories and removes global AICTX state under~/.ai_context_engine, plus AICTX-managed Codex global instructions/config lines- both commands are conservative: they only remove content that AICTX created or marked as AICTX-managed
Possible evolution
The current v1 keeps strategy memory intentionally simple.
Possible future work, based on real usage:
- better file access capture from agent/runtime integrations
- more precise strategy matching beyond task type
- clearer comparison across repeated task categories
- stronger runner-native automation where supported
- richer repo-level reporting built only from real execution history
Not part of the current product contract:
- synthetic benchmarks
- heuristic scores
- guaranteed optimization claims
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-1.0.0.tar.gz.
File metadata
- Download URL: aictx-1.0.0.tar.gz
- Upload date:
- Size: 96.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ae1cf6fc847d54bc46f8ab231f347ccf047eeddeef857084cc52728b3b4f82bc
|
|
| MD5 |
046fb36846dfe92044a1c7e26d668dec
|
|
| BLAKE2b-256 |
828948f64930a83e910450cbf5eb2f76cf1f68df3d2873db96f9070a96284a41
|
Provenance
The following attestation bundles were made for aictx-1.0.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-1.0.0.tar.gz -
Subject digest:
ae1cf6fc847d54bc46f8ab231f347ccf047eeddeef857084cc52728b3b4f82bc - Sigstore transparency entry: 1340774680
- Sigstore integration time:
-
Permalink:
oldskultxo/aictx@6c9f5aa5e1492f2e0e6bf0b70cca228cd18aa558 -
Branch / Tag:
refs/tags/v1.0.0 - Owner: https://github.com/oldskultxo
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-pypi.yml@6c9f5aa5e1492f2e0e6bf0b70cca228cd18aa558 -
Trigger Event:
push
-
Statement type:
File details
Details for the file aictx-1.0.0-py3-none-any.whl.
File metadata
- Download URL: aictx-1.0.0-py3-none-any.whl
- Upload date:
- Size: 96.9 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 |
b40a827f21edcd095f79c578bf343681904a2ce61177747cd377776045f604c4
|
|
| MD5 |
485b76ea7124a3e3ccf468ba8971e70b
|
|
| BLAKE2b-256 |
779b262572de4759a4208c81c0aebf0526733f33bfbd8ba9b0dfdab848765b32
|
Provenance
The following attestation bundles were made for aictx-1.0.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-1.0.0-py3-none-any.whl -
Subject digest:
b40a827f21edcd095f79c578bf343681904a2ce61177747cd377776045f604c4 - Sigstore transparency entry: 1340774681
- Sigstore integration time:
-
Permalink:
oldskultxo/aictx@6c9f5aa5e1492f2e0e6bf0b70cca228cd18aa558 -
Branch / Tag:
refs/tags/v1.0.0 - Owner: https://github.com/oldskultxo
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-pypi.yml@6c9f5aa5e1492f2e0e6bf0b70cca228cd18aa558 -
Trigger Event:
push
-
Statement type: