Documentation
¶
Overview ¶
Demonstrates running multiple opencode queries concurrently — each in its own subprocess + session — and aggregating the answers in Go.
Because each opencodesdk.Query call spawns its own opencode CLI, these run fully in parallel on multi-core machines. For many small prompts the per-call subprocess startup cost will dominate; for expensive model turns the parallelism wins handily.
go run ./examples/parallel_queries
Click to show internal directories.
Click to hide internal directories.