Skip to content

feat: script-mode bench arm for context-economy measurement (#450) - #465

Merged
dahai80 merged 1 commit into
mainfrom
feat/issue-450-script-mode-bench
Dec 2, 2026
Merged

dahai80 merged 1 commit into
mainfrom
feat/issue-450-script-mode-bench

Conversation

@dahai80

@dahai80 dahai80 commented Dec 2, 2026

Copy link
Copy Markdown
Owner

Summary

  • The script runtime already exists: REPL mode (feat: REPL tool POC (Code Mode spike) #436/feat: FUSION_CODE_REPL=1 forces REPL mode on for any build #438) batches many tool ops through one JavaScript call, intermediate results stay in-script, only the final expression returns — the Code-Mode analog the issue asks for
  • Missing piece was the MEASUREMENT path: BENCH_REPL_MODE=1 on the external runner exports FUSION_CODE_REPL=1 into the agent env (REPL_ONLY_TOOLS hides Bash/Read/Write/Edit/Glob/Grep), enabling a script-mode arm on the A20 suite
  • README documents the two-arm protocol: baseline vs script-mode tok_in + reward on longest-horizon tasks; >=30% context reduction at equal/better pass rate = issue acceptance
  • Baseline arm byte-identical (default off)

Test plan

  • py_compile + bash -n clean
  • Live arm measurement runs in the next A20 window (tonight); issue stays open until the number is real

Refs #450

🤖 Generated with Claude Code

BENCH_REPL_MODE=1 exports FUSION_CODE_REPL=1 into the external agent
env — REPL mode hides the primitive tools and batches long tool chains
through one script call (intermediate results stay in-script, only the
final expression enters context). Baseline arm byte-identical; README
records the two-arm measurement protocol for the issue's >=30% /
equal-pass-rate acceptance on the A20 longest-horizon tasks.

Refs #450

Co-Authored-By: Claude Code <[email protected]>
@dahai80
dahai80 merged commit 7d0290a into main Dec 2, 2026
2 checks passed
@dahai80
dahai80 deleted the feat/issue-450-script-mode-bench branch December 2, 2026 04:59
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