Goal
CodeMode is a retained Maka capability. Harden its implementation and measure whether enabling it explains part of the existing Maka–Codex gap on Terminal-Bench 2.1.
Delivery
Ship independent, reviewable PRs:
CodeMode evaluator hardening
- Reject source that escapes the cell wrapper.
- Enforce result and tool-output limits during traversal, before materialization.
- Replace boundary tests that currently fail before reaching the behavior they claim to cover.
Runtime integration hardening
- Exclude provider-native tools from nested CodeMode execution.
- Exclude hidden nested events from provider-context token estimates.
- Remove ineffective tests.
TB2.1 Direct vs CodeMode evaluation
- Extend the existing frozen 89-task Harbor harness.
- Run paired, interleaved Maka Direct and Maka CodeMode arms.
- Hold model, prompt, editing tools, executor, task order, and limits constant.
- Report verifier pass rate, paired outcomes, provider steps, tool calls, actual tokens, wall time, and CodeMode failure categories.
- Compare the measured CodeMode delta with the existing Maka–Codex gap; do not add Codex as a third arm unless the prior result is not comparable.
PRs 1 and 2 can proceed in parallel. PR 3 should remain implementation-independent, with final results rerun after the hardening PRs land.
Follow-up decision
CodeMode will not be removed. The evaluation informs its rollout and whether a separate PR should replace only the evaluator with @ai-sdk/code-mode QuickJS.
Any replacement must preserve Maka ToolRuntime permissions, suspension, abort, durability, recovery, hidden replay, and Desktop/CLI/Headless packaging.
Goal
CodeMode is a retained Maka capability. Harden its implementation and measure whether enabling it explains part of the existing Maka–Codex gap on Terminal-Bench 2.1.
Delivery
Ship independent, reviewable PRs:
CodeMode evaluator hardening
Runtime integration hardening
TB2.1 Direct vs CodeMode evaluation
PRs 1 and 2 can proceed in parallel. PR 3 should remain implementation-independent, with final results rerun after the hardening PRs land.
Follow-up decision
CodeMode will not be removed. The evaluation informs its rollout and whether a separate PR should replace only the evaluator with
@ai-sdk/code-modeQuickJS.Any replacement must preserve Maka ToolRuntime permissions, suspension, abort, durability, recovery, hidden replay, and Desktop/CLI/Headless packaging.