chunked_write
Generate large documents by parallelizing section creation across multiple agents to bypass content length limitations. Uses a planner to outline structure, workers to write sections simultaneously, and direct concatenation to assemble the final document.
Instructions
Generate large documents by having bugs write sections in parallel.
Bypasses the long-content limitation by chunking work.
HOW IT WORKS:
1. Planner bug creates outline (structured JSON)
2. Worker bugs generate sections in PARALLEL
3. Python concatenates directly (NO LLM involved)
4. heavy_write saves result
output_path: Where to save the document
spec: What the document should be about
num_sections: How many sections (default 5, max 10)
doc_type: 'markdown', 'text', or 'code'
EXAMPLE:
chunked_write("/tmp/report.md", "Analysis of Python best practices", 5)
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| output_path | Yes | ||
| spec | Yes | ||
| num_sections | No | ||
| doc_type | No | markdown |