All AI tools
Agent tools
Tool-Calling Agent Toolkit
A readable agent loop with real tools, a step budget and no framework.
A small, honest agent implementation: it asks the model, runs the tools the model requests, feeds the results back, and stops at a step budget. Three working tools ship with it — safe arithmetic, sandboxed file reading, and web fetch — plus the structure to add your own.
What you get
- A plain agent loop you can read in one sitting
- Safe arithmetic via AST walking, never eval()
- File reading confined to the working directory
- Web fetch with script and tag stripping
- A step budget that stops runaway spending
- Logging of every tool call, argument and result
The file
- File name
- agent-toolkit.py
- Format
- Python · v1.0
Downloaded as a plain file. Nothing in it calls this website, and it keeps working if the site ever goes away.
