The section-writing system prompt names the section being written on line 622, before about 3,000 tokens of instructions and the tool list that are the same for every section.
Each section therefore starts with a different prompt, and the provider cannot reuse the shared text from the previous section.
- What to change
- Remove the section title from the system prompt template. The user prompt template already names the section (line 780), so nothing is lost. Keep the report title, summary and scenario lines where they are.
- Why it matters
- The first call of every section after the first pays full price for about 3,000 tokens it paid for a minute earlier. The later calls inside one section already share the prompt.
- Who reaches this
- every report with 2 or more sections
- Estimate
- about 9,000 uncached prompt tokens per report (estimate)
What the estimate assumes
3 of 4 sections miss the cache, 3,000 tokens of static text after the title (about 3,150 characters of Chinese plus the tool list); qwen-plus implicit cache (1,024-token minimum per the Alibaba table) or OpenAI automatic caching; share is of the report path only (about 22 calls, 9,000 prompt tokens each), not the simulation calls made through camel-ai, which were not read.