Skip to content

Qwen3.8-Flash-Next on any consumer hardware: one-click install for Windows / Linux. Strata inference engine, OpenAI/Anthropic API on localhost, optional image input.

C++

Allow bounded Pi task completion and record benchmark provenance

Jeremiah Ritchey717519d3451d
diff --git a/docs/plans/agent-cache-benchmark.md b/docs/plans/agent-cache-benchmark.md
index ffd40d753..747891364 100644
--- a/docs/plans/agent-cache-benchmark.md
+++ b/docs/plans/agent-cache-benchmark.md
@@ -18,7 +18,7 @@ quoted commas, file/stdin CLI behavior and missing-file status. These validators
run outside the agent workspace after the workflow finishes. A model's assertion
that the task succeeded is not accepted as validation.
-Each phase allows 12 executed tools, 16 model turns and 240 seconds. Bash calls
+Each phase allows 24 executed tools, 32 model turns and 240 seconds. Bash calls
are limited to 15 seconds and returned text to 16,000 characters per tool result.
Requests use greedy sampling, disabled thinking, and at most 2,048 output tokens.
No compaction, skills, discovered extensions, inherited context files or remote
diff --git a/tools/agent_cache_benchmark.py b/tools/agent_cache_benchmark.py
index 8f817a54e..a36dc8fab 100644
--- a/tools/agent_cache_benchmark.py
+++ b/tools/agent_cache_benchmark.py
@@ -122,7 +122,9 @@ def main():
config.write_text(json.dumps(run_cfg, indent=2))
config.with_name('config.shared-settings.json').write_text(json.dumps({
'reasoning_effort': 'none', 'temperature': 0, 'max_tokens': 2048}))
- record = {'mode': label, 'inputs_sha256': manifest}
+ record = {'mode': label, 'inputs_sha256': manifest,
+ 'task_script_sha256': hashlib.sha256((ROOT/'tools/agent_cache_task.mjs').read_bytes()).hexdigest(),
+ 'engine_sha256': hashlib.sha256(args.engine.read_bytes()).hexdigest()}
with (run/'server.log').open('w') as log:
server = subprocess.Popen([sys.executable, '-m', 'serve.server', '--engine', 'strata',
'--config', str(config), '--host', '127.0.0.1', '--port', str(args.port)],
diff --git a/tools/agent_cache_task.mjs b/tools/agent_cache_task.mjs
index e48c7a78d..93a6df3ed 100644
--- a/tools/agent_cache_task.mjs
+++ b/tools/agent_cache_task.mjs
@@ -15,7 +15,7 @@ const sessions = [];
const phases = [];
const budgets = new WeakMap();
const system = 'You are implementing a small Python standard-library project. Work only in the current directory. '
- + 'Do not access the network, install dependencies, or read parent directories. Use at most 12 tool calls per task. '
+ + 'Do not access the network, install dependencies, or read parent directories. Use at most 24 tool calls per task. '
+ 'Keep tool outputs below 16000 characters and shell commands below 15 seconds. Implement the requested files, '
+ 'run focused checks, then give a short result. Do not build unrelated features.';
async function makeSession() {
@@ -31,7 +31,7 @@ async function makeSession() {
return payload;
});
pi.on('tool_call', event => {
- if (++budget.calls > 12) {
+ if (++budget.calls > 24) {
budget.limited = true;
return {block: true, terminate: true, reason: 'Benchmark tool-call limit'};
}
@@ -74,7 +74,7 @@ async function phase(session, name, prompt) {
if (event.type === 'tool_execution_end') {
record.tool_ms += performance.now() - (activeTools.get(event.toolCallId) ?? performance.now());
}
- if (record.tool_calls > 12 || record.turns > 16) {
+ if (record.tool_calls > 24 || record.turns > 32) {
record.limited = true;
void session.abort();
}