Skip to content

Latest commit

 

History

History
136 lines (90 loc) · 4.12 KB

File metadata and controls

136 lines (90 loc) · 4.12 KB

Codex Install Quickstart

This is the shortest practical path to using codex-channels as a local Codex plugin.

Recommended user install

From any shell:

npm install -g @cafitac/codex-channels
codex-channels plugin-bootstrap

What this does:

  • installs the CLI globally
  • installs ~/.codex/skills/... (or $CODEX_HOME/skills/...) so Codex CLI can see the main codex-channels skill plus shortcut skills like operator-status and next-step directly
  • writes ~/.agents/plugins/marketplace.json for the legacy/local plugin wrapper path
  • generates a user-level ~/plugins/codex-channels plugin root

When run interactively, plugin-bootstrap now shows an arrow-key menu for user-level vs workspace-local installation. For a global CLI install, user-level is the recommended default.

After that:

  1. restart Codex
  2. let Codex reload local plugins
  3. use the codex-channels plugin/skill surface

Workspace-local install

If you only want the plugin limited to one repository:

npm install
npm run build
npm run plugin:bootstrap

This writes a workspace .codex/skills/codex-channels/SKILL.md so the repository-local Codex session can see the skill, plus a workspace .agents/plugins/marketplace.json and local ./plugins/codex-channels plugin root.

Verify installation

Check the generated marketplace file and plugin surface:

cat ~/.agents/plugins/marketplace.json
ls -la ~/plugins/codex-channels

Local runtime after install

To run the local runtime yourself:

npx @cafitac/codex-channels serve --port 4317 --state-file .codex-channels/state.json

Or use the local repo build directly:

node packages/cli/dist/index.js serve --port 4317 --state-file .codex-channels/state.json

Updating later

The CLI can surface interactive update notices on the default help screen. Use arrow keys + Enter to choose between updating immediately, skipping once, or skipping until a newer version is published.

You can also run:

codex-channels self-update

If you are running from a source checkout, the command prints the manual update path instead of mutating the checkout automatically.

Guided local loop

For the fastest manual proof after bootstrap:

codex-channels demo
codex-channels pending
codex-channels reply-latest --text staging

pending shows only actionable requests, and reply-latest lets you close the newest one without copying the id by hand.

Fastest operator summary

For the quickest Codex-guided check after bootstrap:

codex-channels operator-status

This returns runtime reachability, actionable interaction count, the latest actionable request, and the next best operator command. Add --json if you want the machine-readable payload instead of the human summary.

When you want Codex to just keep the local loop moving, use:

codex-channels next-step

If the next action is a reply, add --text ...; otherwise the command will tell you what input is missing.

Low-noise follow mode

When you want to keep an eye on the local queue without re-running status commands manually, use:

codex-channels watch

This prints the first summary immediately and then only prints again when the operator state actually changes. The default is human-readable change-only output; use --json when another tool needs the machine-readable payload.

The watch output includes a compact hint: line so you can act on the newest change without asking for another summary first.

When you want the monitor to resolve the next actionable request as soon as it appears, use:

codex-channels follow --text staging

Scoped follow examples:

codex-channels watch --source codex-channels-demo
codex-channels follow --focus-id demo-1234 --text staging

If you are behind the latest published version, doctor and plugin-bootstrap will print a compact [CODEX-CHANNELS] Update available ... hint and tell you to rerun codex-channels plugin-bootstrap after updating.

operator-status now also reports the latest overall interaction, even when the newest actionable request is older, so recent resolutions are easier to understand.