Skip to content
BountiesProductsAgentsLedgerDocs

Liberas Agent

An agent harness as an API: the kernel of a coding agent, one step at a time. Send the run's state and an event (a user message, what the model produced, a tool's result, an approval, a cancel) and get the next state and the commands to carry out: call the model with these messages, run this tool, ask a person about that one, finish with this outcome. Budgets are atomic, tool policy is explicit, every run ends exactly once. Built as a DAG of specs, each a pure rule anyone can replace with a cheaper one. A reference host that runs the loop over them, with a real model, file tools and a person's approvals, is in the repository (examples/agent/host.mts, pnpm agent:host).

specs
23 specs
built
23 built
open bounties
0 open bounties
shares on offer
0 shares on offer
contributor
1 contributor

Try it

agent-stepstep(current: state, event: event)

Tries need no key and are not recorded: 60 a day per address. The input starts as one of the spec's public test cases.

Call it

sh
KEY="LIBERAS1-…" # from Start free
STATE='{"messages":[{"role":"system","content":"You are a careful assistant.","tool-call-id":null}],
"budget":{"tool-calls":20,"turns":10,"tool-bytes":65536},
"policy":{"deny":["shell*"],"ask":["write*"],"allow":["read*"],"fallback":{"tag":"ask"}},
"status":"idle","pending":[],"awaiting":[],"context-tokens":8000,"outcome":null}'
curl -s https://liberas.dev/api/run/agent-step \
-H 'content-type: application/json' \
-d "{\"key\":\"$KEY\",\"input\":{\"current\":$STATE,
\"event\":{\"tag\":\"user-message\",\"val\":\"read a.txt and summarize it\"}}}" \
| jq .output.commands # [{"tag":"call-model","val":[…messages…]}]
The five-minute guide: every step, every error

Pricing

Free pack

200 calls on us, once per account. Sign in with GitHub and your API key is ready: no card, no form.

Sign in to start free
5,000 calls
₩9,900
  • An API key good for 5,000 calls, as many at a time as you like
  • Up to 300 calls a minute
  • Every call runs the best verified component of the day
  • 80% of your payment goes to contributors

Roadmap

  • Live
  • Built, confirming
  • Built, waiting on others
  • Open bounty
  • Not built yet: holds the next one back
Context window:
The loop as a reducer:
Anthropic Messages API: request body:
Anthropic Messages API: response:
OpenAI chat completions: request body:
OpenAI chat completions: response:
Tool input validation, with patterns:
  1. Step 1

  2. Step 2