Skip to content

Retarget Codex developer bridge for proxy tools - #527

Open
TheGreatAxios wants to merge 4 commits into
mainfrom
cl-6695-retarget-the-codex-developer-bridge-for-proxy-tools
Open

Retarget Codex developer bridge for proxy tools#527
TheGreatAxios wants to merge 4 commits into
mainfrom
cl-6695-retarget-the-codex-developer-bridge-for-proxy-tools

Conversation

@TheGreatAxios

Copy link
Copy Markdown
Collaborator

The developer bridge message told the model Codex CLI tools (apply_patch, update_plan, shell) do not exist and to ignore all tool references — false now that this branch proxies them onto Corbits tools. Rewrites the bridge to name Corbits as the harness, confirm the proxies are live with matching permissions, and defer to the current tool list and operating prompt where they differ.

Fixes CL-6695. Stacked on #505.
https://linear.app/abklabs/issue/CL-6695

Why: Codex-trained models call apply_patch from pinned instructions, but
Corbits only advertised write_file/edit_file/delete_file. That dialect
mismatch hurts Codex evals versus Codex-native harnesses.

What changed: Codex-only apply_patch proxy (parse envelope, forward through
posix write/edit/delete), shared product-mutation ownership, primary deny
unchanged, IMPLEMENT/DOCS allowlists, docs leaves refuse Delete/Move via
allowDelete. Bridge text left for the next stacked change.

Test plan: bun test on codex-apply-patch, codex-tool-proxies,
codex-tool-mount, product-mutation-tools, tool-sets; bun run typecheck.
@linear-code

linear-code Bot commented Aug 22, 2026

Copy link
Copy Markdown

CL-6695

createUpdatePlanProxy called runTool("manage_tasks", ...), but runTool
forwards only to posixTools, which has no manage_tasks handler — every
update_plan call errored with "unknown tool: manage_tasks". Give
createCodexToolProxies its own runManageTasks callback and wire each
mount site (tools.ts, subagent/run.ts) to the same manage_tasks logic
their stringTool handler already uses. Also fix requireOk's hardcoded
"apply_patch failed" label to use the actual label argument.

Tests: dropped the manage_tasks special case from the apply_patch mock
recorder (posixTools has no such handler, so it now falls through to
the accurate "unknown tool" branch), and added coverage that dispatches
through the real parseManageTasksArgs/applyManageTasks pair and through
the real createAgentToolset mount with unstubbed posixTools — both
would have caught the dead dispatch.
@TheGreatAxios
TheGreatAxios force-pushed the cl-6695-retarget-the-codex-developer-bridge-for-proxy-tools branch from 782cdec to e97732d Compare August 22, 2026 22:52
@TheGreatAxios
TheGreatAxios changed the base branch from cl-6696-proxy-codex-native-tool-names-onto-corbits-tools to main August 22, 2026 22:55
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