Quecto
A minimal AI harness and the coding agent built on it. One endpoint, no async runtime, statically linked: a 1.3 MB core and a 5.5 MB agent.
A coding agent is a loop: prompt the model, run the tool call it asks for, feed the result back. Quecto keeps that loop small and puts an approval gate in front of every tool call, so its behavior can be inspected and evaluated.
Click the APPROVE? box to block the tool call
and watch the loop stop.
1.3 MB core, 5.5 MB agent
Both binaries are self-contained, with statically linked rustls TLS. The core has two direct dependencies (ureq and serde_json) and about 30 transitive crates, with no tokio and no reqwest. The agent adds the tool loop, sandbox, SQLite session store and manifest parsing, and still fits in 5.5 MB. The name comes from the SI prefix quecto (10⁻³⁰): break a task into its smallest composable piece, then compose back up.
One-shot and REPL
Captured live against a local qwen3.6:35b-mlx model on Ollama, with no API key.
Bring your own config
Nothing is hardcoded to a vendor, a model or a persona. Every layer is an environment variable or a file.
System prompt
QUECTO_SYSTEM replaces the default persona. Repo rules and seed context are still appended for quecto-agent.
Model and endpoint
QUECTO_BASE_URL and QUECTO_MODEL point at any OpenAI-compatible server, local (Ollama, LM Studio, vLLM) or cloud.
Behavior presets
.quecto/flavors/*.toml bundle a system prompt, tool policy and defaults into a named profile, trusted on first use by content hash.
Verification gate
QUECTO_VERIFY runs your own tests, linters or type checks after each edit, before the agent calls a step done.
Storage
QUECTO_STATE_DB and QUECTO_TRUST_FILE relocate session and trust state anywhere.
The coding agent
Built on the core's quecto_raw primitive, with the same design scaled up to a full agent loop.
Tool use
File read, write and patch, search, git and shell, in a single multi-step agent loop.
Approval gating
Edits and commands go through a configurable approval preset before anything touches disk.
Sandbox denylist
Blocks sudo, rm -rf /, git push and other destructive actions, even under --yes.
Session persistence
SQLite-backed sessions support resume, undo and diff across runs.
Build it, run it
$ git clone https://github.com/adityak74/quecto && cd quecto $ cargo build --release # -> target/release/quecto (~1.3 MB) $ cargo install --path . --force $ quecto "write me a haiku about small things" $ export QUECTO_BASE_URL="http://localhost:11434/v1" $ export QUECTO_MODEL="qwen2.5-coder" $ quecto "refactor this function" # local, no API key $ cargo build --release -p quecto-agent # -> target/release/quecto-agent (~5.5 MB) $ quecto-agent "add a test for the parse_args function" $ quecto-agent chat