2862353530 core: a Hanzo turn that only announces its next step is asked to make the call (hanzo-inc/cloud#759) (#11)
enso-auto often answers a tool error with a message that only says what it
will do next, and no tool call: "Now I have the base hash. Applying all 5
config.toml edits." A sampling request without a call ends the turn, so
`dev exec` reported task_complete with nothing applied (session 01a1c049,
9 Nov), and the TUI said "Worked for 6s" on Fable, Opus and Argon (#764).
James worked around it with a Stop hook that refused a finish without a
tool call.

- hanzo::announce::announces reads the last message's last line and its
  last sentence: a closing colon, a first-person announcement ("Let me…",
  "Now I'll…", "I'm going to…"), or a short verbless step led by an action
  ("Applying all 5 config.toml edits.", "Running both doctors now."). It is
  narrow on purpose: "Let me know…", questions, lines that wait on the
  person ("…once you confirm"), list items and gerund-led reports ("Running
  the tests shows two failures.") are final answers.
- core/src/session/announce.rs: when a Hanzo turn ends on one, the loop
  records hanzo::announce::FINISH as a hook prompt (run id
  hanzo-finish-turn), the way a Stop hook's continuation is recorded, and
  samples again. One ask in a row: a tool call allows the next ask, and an
  announcement that answers the ask ends the turn. Plan mode, reviews,
  compaction and internal sessions are never asked; neither are turns off
  Hanzo (provider hanzo/hanzocode/local, api.hanzo.ai, or a catalog model),
  so upstream behavior and tests are unchanged.

Also pins hanzo-inc/cloud#758's native half: Hanzo models get the JSON
apply_patch tool even when their model info names no apply_patch type
(0.7.11's `unsupported call: apply_patch`); gpt-5.5 without a type still
gets none.

Tests:
- hanzo/src/announce_tests.rs: the reported messages, announcements, steps,
  final answers, summaries, questions and waiting lines.
- core/src/session/announce_tests.rs: against a mock Responses server, an
  enso-auto turn ending on the reported message sends a second request
  carrying the ask and completes with the second answer; an announcement
  answering the ask ends the turn after two requests; a final answer ends
  after one; gpt-5.5 off Hanzo ends after one, as upstream. Plus the
  one-ask-in-a-row rule, the hook-prompt shape and where it applies.
- core/src/tools/spec_plan_tests.rs:
  hanzo_models_get_a_json_apply_patch_without_a_patch_type.

Co-authored-by: Claude Opus 5.5 <[email protected]>
2026-11-19 15:29:43 -05:00
…
…
…
…
…
…
…
…
…
…

Codex CLI is a coding agent from OpenAI that runs locally on your computer.

Codex CLI splash


If you want Codex in your code editor (VS Code, Cursor, Windsurf), install in your IDE.
If you want the desktop app experience, run codex app or visit the Codex App page.
If you are looking for the cloud-based agent from OpenAI, Codex Web, go to chatgpt.com/codex.


Quickstart

Installing and running Codex CLI

Run the following on Mac or Linux to install Codex CLI:

curl -fsSL https://chatgpt.com/codex/install.sh | sh

Run the following on Windows to install Codex CLI:

powershell -ExecutionPolicy ByPass -c "irm https://chatgpt.com/codex/install.ps1 | iex"

The standalone installers download from https://releases.openai.com/codex by default and fall back to GitHub Releases if a metadata or asset download is unavailable. To force GitHub Releases, set CODEX_INSTALLER_USE_RELEASES_OPENAI_COM to false (0 and no are also accepted):

curl -fsSL https://chatgpt.com/codex/install.sh | CODEX_INSTALLER_USE_RELEASES_OPENAI_COM=false sh
$env:CODEX_INSTALLER_USE_RELEASES_OPENAI_COM='false'; irm https://chatgpt.com/codex/install.ps1 | iex

Codex CLI can also be installed via the following package managers:

# Install using npm
npm install -g @openai/codex
# Install using Homebrew
brew install --cask codex

Then simply run codex to get started.

You can also go to the latest GitHub Release and download the appropriate binary for your platform.

Each GitHub Release contains many executables, but in practice, you likely want one of these:

  • macOS
    • Apple Silicon/arm64: codex-aarch64-apple-darwin.tar.gz
    • x86_64 (older Mac hardware): codex-x86_64-apple-darwin.tar.gz
  • Linux
    • x86_64: codex-x86_64-unknown-linux-musl.tar.gz
    • arm64: codex-aarch64-unknown-linux-musl.tar.gz

Each archive contains a single entry with the platform baked into the name (e.g., codex-x86_64-unknown-linux-musl), so you likely want to rename it to codex after extracting it.

Using Codex with your ChatGPT plan

Run codex and select Sign in with ChatGPT. We recommend signing into your ChatGPT account to use Codex as part of your Plus, Pro, Business, Edu, or Enterprise plan. Learn more about what's included in your ChatGPT plan.

You can also use Codex with an API key, but this requires additional setup.

Docs

This repository is licensed under the Apache-2.0 License.

S
Description
Lightweight coding agent that runs in your terminal
Readme Apache-2.0
415 MiB
Languages
Rust 97%
Python 2.3%
Starlark 0.2%
Shell 0.1%
TypeScript 0.1%
Other 0.1%