AWM-ADM for Codex
Maintain checked project knowledge through the local AWM-ADM service. Say “Use AWM-ADM for this project”, then work normally: Codex can teach adopted rules and decisions, recall accepted knowledge and check supported consequences. This plugin ships with AWM-ADM 0.4.0 and uses the same release version.
The console and API run at http://127.0.0.1:9527/ without login or a service API key. Enable the provider once in the service's Connections page for Ask/Teach. Provider credentials stay in the service. There is no plugin spending/session setup.
Install
Requires the local AWM-ADM service, Python 3.13, uv 0.13.7, and Codex with native plugin support. The connector is a separate locked Python package; it does not import service internals. From the AWM-ADM repository root:
python3 codex-plugin/setup.py marketplace
codex plugin marketplace add .
codex plugin add awm-adm@awm-adm-local --json
The setup helper creates only .agents/plugins/marketplace.json; it refuses a different existing catalog. The native installer reports the installed package directory. Prepare that copy's runtime, replacing the example path below with the returned path:
python3 codex-plugin/setup.py runtime --installed /absolute/installed/plugin/path
This uses the lock file and installs non-editably into the installed package's .venv, independent of any active project environment or UV_PROJECT_ENVIRONMENT setting. It refuses unrelated package directories and recreates a copied virtual environment whose Python prefix points elsewhere. Initial dependency installation needs internet or a warmed uv cache. Nothing installs during a tool invocation. Keep the source checkout until the local marketplace is removed.
Start a fresh project chat; restart Codex if it still has the previous tool registry. Ask “Check AWM-ADM for this project.” Native tool availability is separate from skill visibility. The first “Use AWM-ADM for this project” creates an empty backward-mode model named after the selected project. No project means a reminder to select one, with no service/model/provider work.
Work naturally
- “Remember that exports must retain the original identifiers.” Codex supplies useful scope and meaning through Teach, asking when something essential is unclear.
- “Would this proposed change fit our existing rule?” Ask interprets the question, executes supported reasoning locally and explains the result.
- “Switch to forward mode and replace that rule with this one.” This explicitly requests a mode change and a revision. All model checks still apply.
- “Return to backward mode.” Forward persists until you make this choice.
Backward mode learns compatible additions while preserving earlier conflicting content. Rejected replacement is not necessarily a logical contradiction. Unknown or unsupported answers remain gaps; an LLM explanation is never promoted to a checked answer. The plugin is best-effort assistance, not file monitoring or enforcement.
For a supported targeted correction, the service carries forward dependent definitions and checks the complete candidate again. A dependent declaration may receive a new stored identity even when its rule text is unchanged, because its dependency and evidence bindings changed. The checked change report distinguishes changed definitions, preserved dependents, evidence updates and removals, with before/after meanings and publication bindings. Saved portions and unfinished work remain separate; incomplete reports are explicit. Preserving a definition does not preserve every conclusion it previously produced.
The project skill distinguishes adopted from tentative decisions, prepares useful formalization, consults retained references across chats and follows work to completion or clarification. Codex manages identities and revisions; users need not write JSON or supply internal IDs. Direct attachment upload is not exposed; selected, relevant text can be taught through Codex, and the console supports attachments.
Recalling an accepted definition through adm_work needs no provider call. A new natural-language Ask uses the service's interpretation and explanation workflow. Starting another chat reuses the project binding; it does not create another model or relearn the saved knowledge.
Tools and state
| Tool | Purpose |
|---|---|
adm_status | Read readiness and the selected project's binding. |
adm_project | Create/reuse the project model, or explicitly bind a user-selected model. |
adm_ask | Submit a question or a known Ask continuation. |
adm_teach | Teach adopted knowledge or reply to a known Teach clarification. |
adm_work | Follow/cancel retained work, recall references or search accepted knowledge. |
adm_set_mode | Apply an explicit user-directed forward/backward change. |
Private bindings and work journals live under ~/.local/share/awm-adm-codex/, outside the repository, with private file permissions. They contain selected text, model references and results, never provider keys. Canonical project paths plus filesystem identity distinguish projects; names do not. Renames/recreated directories may require explicit rebinding. Preserve journals during recovery: deleting one can lose the identity of work whose acknowledgement was interrupted. A copied service backup can retain the same installation identity; this is local target checking, not remote authentication.
The journal holds up to 1,024 message intents and 8 MiB per project. On a capacity/corruption error, preserve it and resolve pending work before archiving completed records. Never discard uncertain intents to force a retry. Service history remains in the console/API. Uninstalling the plugin leaves models and these journals intact.
Only loopback HTTP is accepted; redirects, off-host resolution, proxy environment settings and cookies are not used. The default is fixed at port 9527. An intentional alternate loopback deployment must set AWM_ADM_URL for the plugin process and coordinate the service configuration. There is no fallback to port 8080. The plugin does not expose generic HTTP, provider configuration, deletion, snapshots, requirements or raw candidate admission. Local service access itself is trusted; tool scope is not a credential security boundary.
Verify and uninstall
From codex-plugin/:
uv sync --locked --no-editable
.venv/bin/python -I -m unittest discover -s tests -v
These checks use synthetic service responses and the real MCP stdio protocol; no provider key is used. The service's integration tests additionally run real Ask/Teach orchestration, local validation and admission with recorded providers. A successful offline test does not establish live acquisition reliability.
codex plugin remove awm-adm@awm-adm-local
codex plugin marketplace remove awm-adm-local
These commands target only this plugin and marketplace. Remove the generated .agents/plugins/marketplace.json only if it still matches this package's catalog. Do not remove other Codex configuration, shared caches or the service's data. Reinstallation can reuse the preserved private binding.