Skip to content

codex-local 1/9: codex-local binary, home setup, zero-config provider (H1) - #5

Merged
ehrvs merged 2 commits into
codex-local/mainfrom
pr/01-cli
Oct 16, 2026
Merged

ehrvs merged 2 commits into
codex-local/mainfrom
pr/01-cli

Conversation

@ehrvs

@ehrvs ehrvs commented Oct 14, 2026

Copy link
Copy Markdown
Collaborator

Adds the codex-local binary (codex-rs/local/cli). It works as follows:

  • Homes: it resolves its own home ($CODEX_LOCAL_HOME, default ~/.codex/local) separately from the stock home.
  • Links: sessions/, archived_sessions/ and AGENTS.md link to stock. Each user skill gets its own link.
  • Config: it seeds config.toml with a codex-local provider: Ollama Responses, requires_openai_auth=false, model qwen3.8:27b, update check off, features.plugins=false (stops the chatgpt.com warm-up).
  • Overrides: flags, env and config apply in that precedence. resolve_ollama_root() is the single place that normalizes the URL.
  • sync-config: copies MCP servers and project trust from stock.
  • Version: --version prints <upstream>+local.<sha7>.

Hook H1 (14 lines): cli/src/main.rs gates fn main behind cfg(not(codex_local)), and cli_main takes an argv. codex-local include!s upstream main.rs.

Tests:

  • 5 unit tests: URL normalization, precedence, home/link creation, seeding, sync-config.
  • Live smoke against Ollama: exit 0, no login.

Stack (merge bottom-up): 01-cli → 02-h8 → 03-models → 04-resume → 05-surface → 06-install → 07-ci → 08-sync → 09-docs. Plan: local/docs/plan-deltas.md; spike: local/docs/spike-responses.md.

🤖 Generated with Claude Code

https://claude.ai/code/session_01RPCzgwU247gMtjybR5v4iR

ehrvs and others added 2 commits October 14, 2026 14:47
…ync-config (Phase 2, H1)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Qp4Gg5UQcjWVPZz3y58bWs
…in seeded config

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Qp4Gg5UQcjWVPZz3y58bWs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant