> ## Content Index
> Fetch the complete content index at: https://www.stirup.si/llms.txt
> Use this file to discover other available public pages before exploring further.

# Tadpole LLM Agent Development and Performance Improvements
- URL: https://www.stirup.si/tadpole-llm-agent-development-and-performance-improvements-f899af38/
- Published: 2026-10-31T13:00:58.000Z
- Updated: 2026-10-31T13:00:58.000Z
- Description: Tadpole, an LLM agent built from scratch in 3,500 lines of Python, achieved a significant performance lift after post-training on the Qwen3-4B model, increasing its pass@1 score from 0.419 to 0.774 on unseen tasks.
- Author: Satish Das
- Tags: Community, News, Stirup Research

## Development and Architecture of Tadpole

The development of Tadpole, an LLM agent built from scratch, follows a stage-by-stage approach that emphasizes transparency and incremental growth. As described in the project's documentation, Tadpole is implemented in approximately 3,500 lines of plain Python, without reliance on any agent framework. This design allows it to be run continuously from Telegram, offering a practical example of how an LLM agent can be deployed and monitored in real time. The system supports a range of functionalities, including file handling, shell commands, web search, and data fetching, and can operate on a local 4B model or any OpenAI-compatible API. Each stage of its development is documented, providing a detailed record of how the agent was built, measured, and post-trained. This approach enables users to understand the evolution of the model and the decisions made during its training and deployment.

## Training and Performance Improvements

The Tadpole LLM agent was initially built from scratch and then post-trained on the Qwen3-4B model, resulting in a significant performance lift. According to [Hacker News Show](https://github.com/shakewingo/Tadpole?ref=stirup.si), post-training increased the model's pass@1 score from 0.419 to 0.774 on task types it had never been trained on. This improvement was achieved while keeping the agent's code, prompts, and tools frozen, with planning functionality disabled. The training process required a 24 GB CUDA GPU, and the entire post-training process cost approximately $140 on RunPod, as noted in [Hacker News Show](https://github.com/shakewingo/Tadpole?ref=stirup.si). These results highlight the effectiveness of post-training strategies in enhancing model performance without altering the underlying architecture or planning mechanisms, as described in [Hacker News Show](https://github.com/shakewingo/Tadpole?ref=stirup.si).

## Evaluation and Testing Methodology

The evaluation and testing methodology for Tadpole involved a structured, incremental approach. Each stage of development introduced a single mechanism, followed by deliberate failures and focused tests, with 601 tests conducted, none of which required a model ([Hacker News Show](https://github.com/shakewingo/Tadpole?ref=stirup.si)). Real model runs provided evidence for each step. All design choices were validated on a validation set, and each final model was tested on two held-out sets that contained task types not present in the training data: 140 single-turn tasks (test) and 80 leveled tasks (hard test), with three samples each ([Hacker News Show](https://github.com/shakewingo/Tadpole?ref=stirup.si)). Training runs were conducted on a small local benchmark, emphasizing that these results do not claim general agent ability ([Hacker News Show](https://github.com/shakewingo/Tadpole?ref=stirup.si)). This approach ensures rigorous, targeted evaluation without overgeneralization.

## Implementation and Deployment

The implementation of Tadpole involves cloning the repository from [GitHub](https://github.com/shakewingo/Tadpole.git?ref=stirup.si) and setting up a Python virtual environment. Users are instructed to install dependencies using `pip install -e .` to enable editable mode for development. For deployment, environment variables must be configured, including the API root, model ID, and API key. These can be set directly in the terminal or stored in the bot's environment file. The system is designed to operate continuously, requiring an always-on machine such as a Mac that does not sleep, a home server, or a small cloud VM with at least 1 GB of RAM. This setup ensures the agent remains available for interaction without interruption.

## Results and Comparative Analysis

The results of the Tadpole LLM agent demonstrate significant improvements in performance following supervised fine-tuning (SFT) on verified demonstrations, with false 'done' claims decreasing from 31 to just 1 in 420 runs. Comparative analysis shows that the three post-trained models perform similarly on held-out tasks, achieving scores of 0.648, 0.648, and 0.645 across 220 tasks. Among these, the EI-3 model is noted as the most balanced and outperforms SFT-2 on the BFCL benchmark with a statistically significant result (p = 0.034). The project also maintains clear licensing for third-party components, including MIT and Apache-2.0 licenses for tools and data, as outlined in the Third-party notices section.

## Sources and reporting notes

- [Hacker News Show](https://github.com/shakewingo/Tadpole?ref=stirup.si)

Based on published source material. No independent hands-on testing is claimed.