mirror of
https://github.com/hanzoai/dev.git
synced 2026-10-17 15:34:54 +00:00
Replaces the Rust tree. `code-rs/` was a fork of just-every/code carrying its own copy of everything; `vendor/` held 219 MB of upstream snapshots beside it. Both are gone. In their place: Hanzo writes the command surface, upstream keeps the engines. `crates/hanzo-dev/src/main.rs` is a real file that dispatches into libraries — codex_tui::run_main, codex_exec::run_main, and the rest — rather than an include! of upstream's 5156-line binary main. Owning the front door is what makes a single unified command surface expressible. Upstream arrives as submodules at upstream/codex and upstream/code, both at latest. The gitlink is the pin, so no lockfile of hashes sits beside it and a bump is a two-line diff instead of forty-five thousand. Crates are consumed by ordinary path dependency; nothing is copied. The whole Hanzo delta on upstream is sixteen anchored substitutions in patches/codex.json, applied in place by `make prepare` and visible in one `git -C upstream/codex status`. Each carries an exact match count, so upstream moving the ground under one stops preparation and names the file rather than branding the wrong line. Two are upstreamable: they publish mcp_cmd, plugin_cmd and doctor from upstream's library instead of burying them in its binary. `dev` covers exec, login, logout, serve, resume, fork, review, agents, queue, archive, unarchive, delete, cloud, mcp, plugin, doctor, features, sandbox and completion. Auto Drive and the browser bridge are not ported yet; migration/STATUS.md records that, and the defects the v1 patch was already carrying, so they are fixed as features are ported rather than copied across. Releases build from the root after `make prepare`, with submodules checked out. Scripts that existed only to manage a fork-diff — the upstream-merge set and the codex path-dep check — go with the fork.