Reduce Claude Code and Codex Costs by up to 70%

Give both hosts a focused implementation sidekick. Activate Kay or Codex for bounded coding work while the host AI stays responsible for planning, review, verification, and communication.

Claude Code Host Codex Host Kay sidekick Codex sidekick Host verification active-sidekick

Host-Owned Verification for Delegated Implementation

Sidekick keeps the host AI in charge. The active sidekick writes files and runs commands; the host compares the result against the original prompt, checks integration points, runs verification, and relaunches the sidekick when a requirement is missed.

Host AI Agents Plan and VerifyKay and Codex Execute

You stay in Claude Code or Codex. The host AI agent shapes the task, Sidekick activates Kay or Codex, and the host reviews, corrects, verifies, and reports the final state.

01 · You
Human
Intent
  • Describe the task
  • Review the result
  • Give feedback
02 · Brain
Claude / Codex
Orchestrator
  • Architecture decisions
  • Delegation guidance
  • Review, mentor & report
03 · Hands
Kay / Codex
Agent
  • Write & edit files
  • Run tests
  • Git commits

Advisor-Style Delegation

The host AI stays in the advisor role: it breaks down work, delegates to Kay or Codex, then synthesizes and reviews the result.

Session-Gated Hooks

Kay and Codex enforcement stays dormant until delegation starts for the current session, then activates through the session marker and shared selector.

Traceable Progress

PostToolUse hooks emit compact Kay or Codex summaries, while `.kay` and `.codex` indexes keep durable task lookup metadata.

Verification Loop

Host review classifies missed requirements, wrong logic, integration errors, regressions, and external failures before any result is accepted.

Your Sidekicks

The current Sidekick surface ships two implementation sidekicks. Claude Code and Codex hosts can activate either one for the current session.

Available · v0.7.0
Kay sidekick
Kay runtime · Provider-selectable
Activate with /sidekick:kay-delegate

Kay is the Kay/OpenCode Go execution sidekick. It uses kay exec for child implementation work, supports the xiaomi and ocg selectors, and keeps SIDEKICK_KAY_PROVIDER as an environment override.

  • Activate with /sidekick:kay-delegate
  • Provider selectors: xiaomi or ocg
  • Child runtime: kay exec
  • Native Kay agents, skills, subagents, and AGENTS.md
  • Session-scoped .kay marker and audit index
  • Stop with /sidekick:kay-stop
kay OpenCode Go /sidekick:kay-delegate OpenCode Go
Learn More
Available · v0.7.0
Codex sidekick
OpenAI Codex CLI · gpt-5.4-mini
Activate with /sidekick:codex-delegate

Codex delegates implementation to the local OpenAI Codex CLI through codex exec. Sidekick pins the child runtime to gpt-5.4-mini with extra-high reasoning, workspace-write sandboxing, and no approval prompts.

  • Activate with /sidekick:codex-delegate
  • Child runtime: codex exec
  • Model pinned to gpt-5.4-mini
  • Reasoning effort set to xhigh
  • .codex marker and conversations index
  • Stop with /sidekick:codex-stop
codex gpt-5.4-mini codex exec
Command Reference
Host-owned
Verification contract
Host AI remains accountable

The sidekick can claim success, but the host must prove it. Every task ends with a host verification pass against the original prompt, surrounding repository behavior, and the required test evidence.

  • Detect missed requirements and regressions
  • Check syntax, integration, and touched files
  • Relaunch the active sidekick for focused fixes
  • Run strict and release verification before shipping
Host verification SIDEKICK_LIVE_CODEX=1
Recovery Guide

The Host Verifies Every Result

Sidekick's current contract is explicit: Kay and Codex perform implementation, but the host AI owns final correctness. A sidekick task is not accepted until the host checks the result against the prompt and surrounding repository behavior.

Gate Evidence Failure handled Recovery
Prompt match Diff and final state match the requested objective and success criteria. MISSED_REQUIREMENT, MISUNDERSTOOD_TASK Relaunch the active sidekick with focused correction context.
Integration check Imports, file paths, signatures, config, and touched behavior are inspected. INTEGRATION_ERROR, WRONG_FILE, WRONG_LOGIC Handhold the sidekick with exact files, APIs, and examples.
Verification command Run the smallest meaningful tests, linters, builds, or runtime checks. REGRESSION, SYNTAX_ERROR Retry after evidence identifies the failing boundary.
External failures Provider, API, CLI, or environment failures are treated as blockers. TRIAL_INCOMPLETE, API_FAILURE, EXECUTION_ERROR_EXTERNAL Retry only after the external condition is usable, or report the blocker.

Release gate: bash tests/run_unit.bash, bash tests/run_all.bash, and Kay-hosted live release checks with SIDEKICK_LIVE_CODEX=1.

Kay exec and Codex exec

Sidekick keeps runtime ownership explicit. Kay owns its provider routing; Codex sidekick mode owns the local OpenAI Codex CLI command and model flags.

Sidekick Runtime Routing Notes
Kay
Kay sidekick
kay exec default Starts with /sidekick:kay-delegate; Sidekick records Kay session state and progress metadata.
Kay
Provider selectors
kay exec xiaomi / ocg Use /sidekick:kay-delegate xiaomi, /sidekick:kay-delegate ocg, or SIDEKICK_KAY_PROVIDER.
Codex
OpenAI CLI sidekick
codex exec gpt-5.4-mini / xhigh Starts with /sidekick:codex-delegate; Sidekick injects model, reasoning, sandbox, and approval flags.

Only one sidekick is active per host session. The shared active-sidekick selector contains kay or codex.

Three Steps, Then Delegate

For the user, setup is API access, plugin install, then per-session delegation. Sidekick checks runtime readiness when delegation starts.

1

Get API Access

Prepare the runtime you want to use. Kay requires a working Kay runtime; Codex sidekick mode requires the real OpenAI Codex CLI, not a Kay compatibility alias.

Kay: kay exec --help
Codex: codex exec --help
2

Install Sidekick

Install the plugin through the host's plugin surface, then restart the host so Sidekick hooks load before a Kay or Codex session.

Claude: /plugin install alo-labs/sidekick
Codex: codex plugin marketplace add alo-labs/codex-plugins
3

Delegate Per Session

Start the sidekick workflow for the current session. The host stays in the planning and verification role while Kay or Codex performs implementation work.

Kay: /sidekick:kay-delegate
Codex: /sidekick:codex-delegate

Ready to Delegate?

Add Sidekick to your host plugin surface and keep implementation work with the right sidekick while the host owns correctness.