All posts Next postCutting agent latency in half
Tutorial
Your first agent in ten minutes
Sara Alvarez · Feb 28, 2026 · 12 min read
1Write the prompt
2Attach tools
3Set a budget
Start with a prompt file. Describe the job in plain language and use {variables} for anything that changes between runs, like the repository or the Slack channel.
Attach the GitHub and sandbox tools, set a trigger on pull_request.opened, and cap the run at 20k tokens. That's the whole agent.
Open a pull request and watch the run log: the agent fetches the diff, runs the tests and leaves its comments, each step with its own timing.