Skip to content

feat: add native Codex harness support - #306

Merged
kengio merged 12 commits into
mainfrom
feat/codex-harness
Jul 23, 2026
Merged

feat: add native Codex harness support#306
kengio merged 12 commits into
mainfrom
feat/codex-harness

Conversation

@kengio

@kengio kengio commented Jul 23, 2026

Copy link
Copy Markdown
Contributor

Summary

  • add Codex as a first-class harness for skill run and harness run
  • add $onebrain:<skill> prompt construction, CODEX_BIN resolution, and safe codex exec argv
  • support per-schedule harness: claude|gemini|codex while preserving Claude as the default
  • add explicit managed Codex plugin install/update/uninstall with additive config merge and dry-run safety
  • bind Codex hook session_id to a full-ID-derived session token so concurrent chats keep checkpoint and wrapup state separate
  • bump the CLI to the next sequential patch, 3.4.18, and record ADR 0035

Why

OneBrain needs native Codex parity without changing existing Claude/Gemini behavior. Multiple Codex chats may share one vault, so terminal- or process-scoped checkpoint identity is insufficient.

User impact

onebrain skill run daily --harness codex
onebrain harness run --harness codex "prompt"
onebrain plugin install --harness codex

Scheduled skill entries may set harness: codex; entries without harness continue to use Claude.

Validation

  • cargo fmt --all -- --check
  • cargo clippy --workspace --all-targets -- -D warnings
  • cargo test --workspace
  • Codex argv/stub integration tests
  • managed install/update/uninstall/dry-run tests
  • two-chat SessionStart and Stop-state isolation tests
  • three local audit passes and rebase onto latest origin/main

@kengio
kengio marked this pull request as ready for review July 23, 2026 07:18
@kengio
kengio marked this pull request as draft July 23, 2026 07:34
@kengio
kengio marked this pull request as ready for review July 23, 2026 07:34
@kengio
kengio merged commit 7fdeb7f into main Jul 23, 2026
16 checks passed
@kengio
kengio deleted the feat/codex-harness branch July 23, 2026 07:54
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