Skip to content

ougi-washi/tiny-agent

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Tiny Agent

Tiny Agent is a small single-header C99 library for running an agent in your program.

Use

#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.

Example CLI

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"

Dependency

  • libcurl

Inspirations

  • Slow software fatigue
  • Ideas: OpenCode
  • DAG: Ryan Fleury (raddebugger)

License

MIT

About

A tiny agent for your local LLM. Use as library or CLI.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages