Control what AI agents read and remember. Prove what they did.
Telarch is three small open-source libraries for AI agents. Harpe chooses what goes into each model call under a token budget. Kibisis keeps the agent's memory on your own machine and lets one writer in at a time. Argus keeps a record of what the agent did that shows if anyone changed it.
Medians of 5 runs of telarch-benchmarks v0.1.0-alpha.12 on one EC2 m8azn.metal-12xl bare-metal server, with synthetic data; real workloads will differ. Every run, its range and the raw output.
+7.2pts
Above sending the full context, averaged over 6,111 questions from LongMemEval, LoCoMo, BEAM and MemoryAgentBench: 45.7% against 38.5%, with the encrypted vault as shipped and reader gpt-4o-mini. Not uniform: on LoCoMo it scores 4.7 points below full context (scored by a gpt-4o-mini judge, the same model family as the reader).
Telarch ships in small releases, each with notes, tests and a tag you can build from.
telarch-openai-plugin v0.3.0
The inspector shows your own data
The inspector tool now takes context items, memory records and sealed audit events and shows them, each run through the tool that owns that data. A refused call names the argument at fault and carries a code that does not change. ChatGPT picks up the new inputs when OpenAI next scans the server; until then its inspector shows demonstration data.
OpenAI approved the Telarch plugin for the directory that ChatGPT and Codex share. It adds seven tools served from telarch.ai/mcp: fit context into a token budget, decide which memories are current, check a writer's lease, and seal or verify an audit chain.
The model first sees a one-line description of every candidate, then asks for the bodies it needs; Harpe expands them inside the budget and refuses what does not fit. Each selection can write one receipt to an Argus ledger.
okf-export writes allowlisted vault rows to an Open Knowledge Format bundle, under an export profile that denies everything else. okf-import brings a bundle back in as unverified candidates. 0.1.0-alpha.14 adds the rule that matches a query to the rows it names.
An agent that runs for hours needs a limit on what it reads, a safe place for what it learns and a record of what it did. Each is a separate package with its own tests and releases.
Harpe
Before each call
Chooses what goes into each model call under your token budget. Pinned items always stay; the rest go in by priority or recency while they fit. The same input always gives the same result.
Keeps agent memory on your own machine. The Python package seals every entry with AES-256-GCM in one SQLite file and controls what comes back by scope, trust state and date. Writers take a lease first; every grant carries a fencing token that only goes up.
An append-only record of what the agent did. Each entry includes the hash of the one before it, so an edit is reported at its position, and an anchor kept elsewhere catches a history that was rewritten from start to finish.
Each demo runs a released crate compiled to WebAssembly, checked byte for byte against a native run. Nothing leaves this page.
Ten context items, one budget. Move the budget and change the policy; every decision below is made by the harpe crate itself, compiled to WebAssembly.
Running harpe 0.1.0-alpha.12 in your browser (WebAssembly). Loads 59 KB when you start it; nothing is sent anywhere.
Item
Tokens
Priority
Result
policy
420
0 (pinned)
not run yet
meeting
3,200
5
not run yet
email
2,600
4
not run yet
contract
1,150
2
not run yet
org
300
5
not run yet
incident
1,400
3
not run yet
style
700
4
not run yet
spec
900
2
not run yet
api
1,050
3
not run yet
decisions
380
1
not run yet
Acquire as A, then try B. Skip ahead past A's deadline and try B again: the token goes up, and A's renew with its old token is refused.
Running kibisis 0.1.0-alpha.16 in your browser (WebAssembly). Loads 72 KB when you start it; nothing is sent anywhere.
Three agents share one resource, repo:main. Each lease asks for 3 seconds; the crate rounds deadlines up to whole seconds. The demo supplies the crate's clock, so you can skip ahead instead of waiting. Demo clock: +0 s
Agent A · no lease
Agent B · no lease
Agent C · no lease
Six agent actions are appended by the crate. Edit one and the walk stops at it. Then edit it and re-hash everything after it: the plain check passes, and only the anchor catches it.
Running argus-ledger 0.1.0-alpha.8 in your browser (WebAssembly). Loads 199 KB when you start it; nothing is sent anywhere.
Use it
In your code, in ChatGPT or in Codex.
The libraries are the product. The Telarch app puts the same three ideas in front of a model as tools it can call.
Libraries
Rust and Python
Each library is a crate on crates.io and a package on PyPI. Use one, or all three.
Seven tools served from telarch.ai/mcp, one of which opens an inspector in the chat. It is in the ChatGPT plugin directory: open Plugins in ChatGPT, search for Telarch and install it.
All three together (Rust): the program whose output is at the top of this page
use argus_ledger::{AuditLedgerWriter, AuditVerifier, InMemoryLedger, VerificationPolicy};
use harpe::{ContextBudgetEngine, ContextItem, ContextSynthesizer, PrunePolicy, TokenBudget};
use kibisis::{InMemoryLeaseCoordinator, LeaseCoordinator};
use std::time::Duration;
fn main() -> Result<(), Box<dyn std::error::Error>> {
// Harpe: fit what the agent knows into the model budget. Priority 0 is pinned.
let items = [
ContextItem::new("task", "Rotate the staging keys, then run the smoke test.", 0),
ContextItem::new("runbook", "Rotation: list keys, rotate, restart the two services, smoke test.", 2),
ContextItem::new("old-chat", "Earlier conversation about an unrelated billing question.", 5),
];
let budget = TokenBudget::new(32);
let report = ContextBudgetEngine::default().synthesize(&items, &budget, PrunePolicy::LowestPriority)?;
println!("harpe: kept {} of {} items, {} tokens", report.included_items.len(), items.len(), report.consumed_tokens);
// Kibisis: take the lease before touching shared state.
let mut leases = InMemoryLeaseCoordinator::new();
let lease = leases.acquire("staging-keys", "agent-7", Duration::from_secs(30))?;
// Argus: record the action, release the lease, verify against the head kept elsewhere.
let ledger = InMemoryLedger::new();
let payload = format!(r#"{{"cmd":"rotate staging keys","token":{}}}"#, lease.fencing_token);
let event = ledger.append("tool.exec", "agent-7", &payload)?;
leases.release(&lease)?;
let anchor = event.anchor(); // store this where the agent cannot write
let check = ledger.verify_chain_with(&VerificationPolicy { anchor: Some(anchor), ..Default::default() })?.ensure_valid()?;
println!("kibisis: fencing token {}", lease.fencing_token);
println!("argus: {} event verified, head {}", check.total_events, &check.head_hash[..16]);
Ok(())
}
Plainly
What Telarch is, and is not, today.
What it does
Chooses what goes into each model call under a token budget, the same way every time; pinned items always stay.
Stores agent memory in an encrypted SQLite file on your own disk (Python package).
Grants one writer at a time, with fencing tokens that only go up: across threads in Rust, across processes in Python.
Records agent actions in a hash chain that names the first edited entry.
Publishes every benchmark run, raw, with the command that reproduces it.
What it does not do yet
It is alpha software; interfaces will change.
No independent security review has been completed.
The Rust vault keeps memory in RAM and does not encrypt it.
Leases coordinate one machine. It is not a network lock service.
Harpe estimates token counts unless you plug in your model's tokenizer.
Argus shows that history changed. It cannot stop the change.
Evaluating Telarch for a project?
Tell us what your agents do and where they run. We will tell you plainly whether Telarch fits, and what is missing.