Tiny Agent is a small single-header C99 library for running an agent in your program.
#define TA_IMPLEMENTATION
#include "ta.h"
int main(void) {
ta_run_desc desc;
ta_run_desc_default(&desc);
desc.task = "summarize this project";
ta_run_result result = ta_run(&desc);
return result.exit_code;
}Set desc.url, desc.model, and desc.on_step when you need a custom server, model, or approval callback.
gcc ta-cli.c -o ta-cli -lcurl
./ta-cli --allow=files --url=http://127.0.0.1:1234 --model=local-model "summarize this project"
./ta-cli --allow=files,shell --max-events=20 "edit main.c and run tests"libcurl
- Slow software fatigue
- Ideas: OpenCode
- DAG: Ryan Fleury (raddebugger)
MIT