Fetch the Data the Agent Always Needs Before the Loop Starts

A major contributor to GitHub's per-workflow token cuts (up to 62% Effective Tokens on their highest-saving agentic workflow) Intermediate 3 min read

When an agent will always need the same data, making it fetch that data through a tool call costs tokens for the decision, the tool schema, and the round-trip. Gather it with a plain script before the agent starts and hand it the file.

🔒 Pro tip · Intermediate

Unlock this tip — and 54 more

This is one of 55 advanced, fact-checked tactics reserved for Pro. Get the full 77-tip library, a searchable archive, and a new tip every morning. Free for 7 days, then $9/mo.

Prefer to browse? The 22 Beginner tips are free forever.