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
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
KEY="LIBERAS1-…" # from Start freeSTATE='{"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…]}]
Pricing
200 calls on us, once per account. Sign in with GitHub and your API key is ready: no card, no form.
- 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
Step 1
- Budget: all-or-nothing tool-call chargingagent-budgetLive
- Tool policy: allow, deny, askagent-policyLive
- Context window over messages with provider turnsagent-context-3Live
- Regular expressionsagent-regexLive
- Exactly one outcomeagent-outcomeLive
- Backoff with jitteragent-backoffLive
- Equal as JSONagent-json-equalLive
- Server-sent events, framedagent-sseLive
- Anthropic Messages API: streamingagent-anthropic-streamLive
- Anthropic Messages API: text as it streamsagent-anthropic-deltaLive
- OpenAI chat completions: streamingagent-openai-streamLive
- OpenAI chat completions: text as it streamsagent-openai-deltaLive
- Anthropic Messages API: replaying thinking blocksagent-anthropic-request-2Live
- Anthropic Messages API: keeping the turnagent-anthropic-response-2Live
- OpenAI chat completions: replaying the message objectagent-openai-request-2Live
- OpenAI chat completions: keeping the message objectagent-openai-response-2Live
- Memory: notes that outlive a runagent-memoryLive
- Scheduling: at, every, cronagent-scheduleLive
- Tool input validationagent-validateLive
- Sub-agents: a child loop carved from the parentagent-delegateLive
- Edits: exact, unique replacementsagent-editLive
Step 2