Connect Codex to Alis Build.
Use this plugin to let Codex work with Alis Build organisations, products, neurons, builds, and deploys through the alis CLI, with workspace-aware context injected into every session.
- A standing Define → Build → Deploy primer loaded into every session, with CLI-first skill routing (
alis skills search|load) - Workspace-aware context injection through Codex hooks
- The
alisCLI runnable without per-command approval prompts (with destructive commands double-keyed)
You need:
- Codex CLI or the Codex IDE extension
- The
alisCLI installed, on yourPATH, and signed in (alis login) - An Alis Build account with access to the organisations and products you want to use
Install the Alis Build plugin:
codex plugin marketplace add https://github.com/alis-build/codex-plugin && codex plugin add tools@alis-build && codexAsk Codex to use Alis Build:
build it
fix it
Use Alis Build to list the organisations I can access.
Show recent builds for product os in organisation alis.
Review the latest deploy logs for this neuron and suggest the next action.
Codex runs these through the alis CLI without asking for approval on every command.
This plugin includes Alis Build workflow skills:
build it
fix it
Use the Alis Build - Getting Started skill to help me get started on Alis Build.
build it discovers the right Alis Build skill for the thing you want to build. fix it is an alias for the same discovery flow when the goal is framed as a fix.
This plugin ships Codex hooks that keep sessions grounded in the Alis Build workflow:
- Standing DBD primer + routing. A
SessionStarthook loads the Define → Build → Deploy primer into every session (so Codex frames help around the platform lifecycle), together with the routing contract: build/fix → discover the right skill viaalis skills searchfirst instead of editing code directly;define it/deploy it→ run thealisCLI. It is always present, so no trigger word is needed and follow-up requests stay grounded. Works in any directory, not just an Alis Build workspace. - Service context (workspace-aware). A
SessionStarthook detects when the session is opened inside an Alis Build service folder (~/alis.build/<org>/build|define/…) and injects the package id plus a pointer to the matching definitions ⇄ implementation counterpart. Silent outside a workspace. alisCLI access. ASessionStarthook ensures Codex can run thealisCLI without per-command approval prompts.alissubcommands need network access and your local session, which Codex's sandbox blocks; the only lever that runs a command unrestricted is an execpolicy allow rule, and a plugin manifest cannot declare one. So the hook writes a dedicated, version-stamped~/.codex/rules/alis-build.rules(v2) containing a broadprefix_rule(pattern=["alis"], decision="allow")(skipped if your own rules already grant it) plus aprefix_rule(pattern=["alis", ["blocks", "block"], "uninstall"], decision="prompt")— execpolicy's most-restrictive-wins keeps the destructiveblocks uninstallon a human prompt (double-keying) even though the broad allow matches. It takes effect from the next session if Codex loads rules before the hook runs. To remove it, delete that file (and the["alis"]entry from~/.codex/rules/default.rulesif you also approved it interactively). Prefix rules cannot match flags at arbitrary positions, so--confirm-productionand--approvecannot be carved out here; production stays safe regardless — the CLI itself refuses to deploy to a production environment (exit code 3) until re-run with--confirm-production, which the agent is instructed to add only after your explicit approval (alis docs safety). Codex also evaluates each segment of a chained command separately, soalis define && rm -rf /cannot ride on the allow.- Approval record for the alis CLI. A
PreToolUsehook on the shell tool records each clean, singlealis …invocation at~/.alis/agent-approval.json(harnesscodex, the session's permission mode, session id, and exact command). It is an observer only — execpolicy owns shell approval — and lets the alis CLI treat a fresh record from the sameCODEX_THREAD_IDinacceptEdits,dontAsk, orbypassPermissionsmode as a standing grant for non-production approvals.defaultandplando not grant approval. Production deploys always require--confirm-productionfrom a human.
Hooks are enabled by default in Codex. If you have disabled them globally, re-enable them by removing
[features].hooks = false from ~/.codex/config.toml.
plugins/tools/context/dbd-primer.md is synced from the canonical primer in the Alis Build
Claude Code plugin (claude-plugin/plugins/alis-build/context/dbd-primer.md). The only local
difference is the closing sentence of the Google documentation section (Codex has no
/connect-google command). Sync the body on each claude-plugin primer release.
If the primer or hooks do not take effect, confirm that the plugin install completed successfully:
codex plugin add tools@alis-buildIf alis commands fail with an auth error, run alis login (or alis authorise <org>.<product> for git/package credentials) and retry.