This repository has been archived on 2026-08-16. You can view files and clone it, but cannot push or open issues or pull requests.
ollie-core/pkg/tools/execute
Levi Neely bc59f6c40f core: loop-level parallel tool execution for read-safe tools
Tools annotated with "# ollie:parallel read" now run concurrently when
the LLM issues multiple such calls in a single round, without needing
an execute_code pipeline.

- tools.ParallelClassifier interface; execute.Server implements it via
  IsParallelRead, which reads the tool script and checks the annotation
- BuildAgentEnv wires IsParallelRead → AgentEnv.classifyTool →
  agentConfig.ClassifyTool (nil when execute server absent)
- loop.go: consecutive parallel-safe calls are fanned out with a
  WaitGroup; results are collected in submission order; cancellation
  fills remaining calls with interrupted results; serial tools and
  batches of one skip the goroutine overhead

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-28 13:05:15 +02:00
..
testdata/sandbox remove MCP support, add execute_code tests 2026-04-21 13:25:32 +02:00
code.go execute: parallel dispatch via flock; agent: preTool/postTool hooks, turn rollback, mid-turn compact 2026-04-26 09:00:29 +02:00
execute_test.go tests: add flock/locking coverage for execute package 2026-04-26 18:50:35 +02:00
flock.go core: loop-level parallel tool execution for read-safe tools 2026-04-28 13:05:15 +02:00
pipe.go execute: parallel dispatch via flock; agent: preTool/postTool hooks, turn rollback, mid-turn compact 2026-04-26 09:00:29 +02:00
server.go execute: parallel dispatch via flock; agent: preTool/postTool hooks, turn rollback, mid-turn compact 2026-04-26 09:00:29 +02:00
tool.go elevation: replace Elevator interface with x/elevate plugin script 2026-04-18 20:50:20 +02:00