Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

38 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Alis Build Codex Plugin

Codex connected to Alis Build

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.

What You Get

  • 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 alis CLI runnable without per-command approval prompts (with destructive commands double-keyed)

Before You Start

You need:

  • Codex CLI or the Codex IDE extension
  • The alis CLI installed, on your PATH, and signed in (alis login)
  • An Alis Build account with access to the organisations and products you want to use

Install

Install the Alis Build plugin:

codex plugin marketplace add https://github.com/alis-build/codex-plugin && codex plugin add tools@alis-build && codex

Use It

Ask 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.

Workflow Skills

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.

Workspace Context

This plugin ships Codex hooks that keep sessions grounded in the Alis Build workflow:

  • Standing DBD primer + routing. A SessionStart hook 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 via alis skills search first instead of editing code directly; define it / deploy it → run the alis CLI. 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 SessionStart hook 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.
  • alis CLI access. A SessionStart hook ensures Codex can run the alis CLI without per-command approval prompts. alis subcommands 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 broad prefix_rule(pattern=["alis"], decision="allow") (skipped if your own rules already grant it) plus a prefix_rule(pattern=["alis", ["blocks", "block"], "uninstall"], decision="prompt") — execpolicy's most-restrictive-wins keeps the destructive blocks uninstall on 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.rules if you also approved it interactively). Prefix rules cannot match flags at arbitrary positions, so --confirm-production and --approve cannot 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, so alis define && rm -rf / cannot ride on the allow.
  • Approval record for the alis CLI. A PreToolUse hook on the shell tool records each clean, single alis … invocation at ~/.alis/agent-approval.json (harness codex, 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 same CODEX_THREAD_ID in acceptEdits, dontAsk, or bypassPermissions mode as a standing grant for non-production approvals. default and plan do not grant approval. Production deploys always require --confirm-production from 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.

Primer sync

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.

Troubleshooting

If the primer or hooks do not take effect, confirm that the plugin install completed successfully:

codex plugin add tools@alis-build

If alis commands fail with an auth error, run alis login (or alis authorise <org>.<product> for git/package credentials) and retry.

About

Alis Build plugin for Codex, providing MCP-powered access to build, deploy, workspace, and ideas workflows.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages