Render local Codex and OpenCode repo config from .ai-codex.json
Project description
augint-opencodex
augint-opencodex is a Python tool that renders local Codex and OpenCode project
configuration from a single tracked manifest, .ai-codex.json.
The first working slice is implemented here. It ships a real ai-codex CLI with:
ai-codex syncto read.ai-codex.jsonand render.ai-opencodex.md,.codex/config.toml,opencode.json, and shared skillsai-codex doctorto inspect manifest resolution, generated files, local ignore setup, and staged generated artifacts- a first-pass profile model with
augintandgov - local-only ignore handling through
.git/info/exclude
Installation
For local development:
uv sync --group dev
Once the package is published, the intended install flows are:
uvx --from augint-opencodex ai-codex sync
uv tool install augint-opencodex
ai-codex sync
Manifest
This tool expects a tracked .ai-codex.json file in the target repository.
{
"version": 1,
"profile": "augint",
"references": ["./ai-lls-lib"],
"blocked_paths": [
"**/secrets/**",
"**/*.pem",
"**/terraform.tfstate*"
],
"content_policy": {
"no_emojis": true,
"no_ai_mentions": true
},
"shell_guardrails": {
"ask": ["aws *", "terraform *", "kubectl *", "git push *"],
"deny": ["aws iam create*", "aws iam put*"]
},
"patterns": {
"org_python_library": true
},
"opencode": {
"enabled": true
}
}
The current schema lives in schemas/ai-codex.schema.json.
Commands
Render files into the current repository:
uv run ai-codex sync
Preview pending changes without writing:
uv run ai-codex sync --dry-run
Fail if the repo is out of sync:
uv run ai-codex sync --check
Inspect the current repo state:
uv run ai-codex doctor
Generated Files
The first slice writes:
.ai-opencodex.md.codex/config.tomlopencode.json.agents/skills/README.md.agents/skills/org-python-tooling/SKILL.mdwhenpatterns.org_python_libraryis enabled
Generated outputs are added to .git/info/exclude by default so target repositories do not need
to commit them.
Dogfooding This Repo
This repository is set up to dogfood the generated instructions flow without a root AGENTS.md.
- Keep
.ai-codex.jsontracked in the repo root. - Run
uv run ai-codex syncto generate.ai-opencodex.md,.codex/config.toml, and the other local-only artifacts. - Start Codex with
CODEX_HOME=$(pwd)/.codex codexso Codex uses the generated.codex/config.tomlas its home config and discovers.ai-opencodex.mdviaproject_doc_fallback_filenames.
Avoid creating a root AGENTS.md here. Codex checks AGENTS.md before fallback filenames in the
same directory, so a root AGENTS.md would shadow .ai-opencodex.md and split Codex from the
generated OpenCode instructions.
Organizational Python Standard
This project uses ai-lls-lib/ in the planning repo as the concrete reference for the
organization-wide Python package and tooling standard:
uv-first packaging and development workflowsrc/layout and console scripts from[project.scripts]ruff,mypy,pytest, andpre-commit- security and compliance checks in CI
- Conventional Commit and semantic-release-compatible versioning
- a stable Makefile task surface
Development
make install
make test
make format
make typecheck
make build
Project details
Release history Release notifications | RSS feed
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 augint_opencodex-0.0.0.tar.gz.
File metadata
- Download URL: augint_opencodex-0.0.0.tar.gz
- Upload date:
- Size: 10.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
48be8d180f64ae3451369343315923bd30e2406d6143053669a76670c1dd42de
|
|
| MD5 |
4f025d430996571d803114a3713f7c4e
|
|
| BLAKE2b-256 |
aecd9b4bc677cbbc8d236c4f23de51574895859a7e1482c61dafd64f5fdc2ac5
|
Provenance
The following attestation bundles were made for augint_opencodex-0.0.0.tar.gz:
Publisher:
pipeline.yaml on svange/augint-opencodex
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
augint_opencodex-0.0.0.tar.gz -
Subject digest:
48be8d180f64ae3451369343315923bd30e2406d6143053669a76670c1dd42de - Sigstore transparency entry: 1312970876
- Sigstore integration time:
-
Permalink:
svange/augint-opencodex@3ffea6219795ff3bdf16d3f47ccf2356fd66dfbf -
Branch / Tag:
refs/heads/main - Owner: https://github.com/svange
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
pipeline.yaml@3ffea6219795ff3bdf16d3f47ccf2356fd66dfbf -
Trigger Event:
push
-
Statement type:
File details
Details for the file augint_opencodex-0.0.0-py3-none-any.whl.
File metadata
- Download URL: augint_opencodex-0.0.0-py3-none-any.whl
- Upload date:
- Size: 15.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bba79fe79994927b5ba9ef04cf2d4c4e19f453fe820282a925c1b52f0a01ad79
|
|
| MD5 |
6763321bc38cc300e568575d5370b3d9
|
|
| BLAKE2b-256 |
76b820552e9727d05968eec9509d84dd907a08c0f1a518613ed19c72cb0193a2
|
Provenance
The following attestation bundles were made for augint_opencodex-0.0.0-py3-none-any.whl:
Publisher:
pipeline.yaml on svange/augint-opencodex
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
augint_opencodex-0.0.0-py3-none-any.whl -
Subject digest:
bba79fe79994927b5ba9ef04cf2d4c4e19f453fe820282a925c1b52f0a01ad79 - Sigstore transparency entry: 1312970984
- Sigstore integration time:
-
Permalink:
svange/augint-opencodex@3ffea6219795ff3bdf16d3f47ccf2356fd66dfbf -
Branch / Tag:
refs/heads/main - Owner: https://github.com/svange
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
pipeline.yaml@3ffea6219795ff3bdf16d3f47ccf2356fd66dfbf -
Trigger Event:
push
-
Statement type: