NewTelarch in ChatGPT and Codex, two-pass Harpe, Kibisis bundles

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.

  • Alpha
  • MIT License
  • No outbound network code in the libraries
  • Built for local and disconnected use
quickstart.rs at the release tagsexit 0
harpe: kept 2 of 3 items, 30 tokens
kibisis: fencing token 1
argus: 1 event verified, head 2b033634d162483f
Harpe
Fitted the agent's context into a 32-token budget. The pinned task and the runbook stayed; an unrelated old chat was dropped.
Kibisis
Took the lease on the staging keys before touching them, then released it.
Argus
Recorded the action and verified it against an anchor kept where the agent cannot write.
Real output of the quickstart program below, re-run on every build. The head hash changes each run because it covers event timestamps.
78.3%
fewer tokens sent to the model

Over 100,000 simulated agent turns with a 1,200-token budget per turn, compared with sending every item, with 0 turns over the budget.

How it was measured
0
times two holders had the same lease

In 64,000 contended attempts from 16 and 32 threads, and 0 across 2 to 32 separate processes sharing one database file.

How it was measured
196.9ms
to find one edited event among 1,000,000

We changed event 500,000. Verification walked from the first event, stopped at the edit and reported its position.

How it was measured

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

Per-benchmark table
What's new

Recent releases.

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.

Release notes
telarch-openai-plugin v0.2.2

Telarch is in the ChatGPT plugin directory

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.

Install it
harpe 0.1.0-alpha.12

Two-pass context selection

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.

Release notes
kibisis 0.1.0-alpha.13

Portable knowledge bundles

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.

Release notes
Three libraries

One job each. Use one, or all three.

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.

Median call, 10 items
1.77 µs
Median call, 200 items
30.90 µs
Dependencies
0

Kibisis

Memory

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.

Lease operations, 16 threads
1,290,854 ops/s
Two holders at once
0
Key derivation iterations
600,000

Argus

After each action

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.

Appends
1,070,319 events/s
Verification
2,506,211 events/s
Rewrite caught by an anchor
yes
Try it

The real libraries, running in your browser.

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.
ItemTokensPriorityResult
policy4200 (pinned)not run yet
meeting3,2005not run yet
email2,6004not run yet
contract1,1502not run yet
org3005not run yet
incident1,4003not run yet
style7004not run yet
spec9002not run yet
api1,0503not run yet
decisions3801not run yet

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.

Python
pip install "harpe==0.1.0a12"
pip install "kibisis==0.1.0a16"
pip install "argus-ledger==0.1.0a8"
Quickstart
ChatGPT

The Telarch app

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.

MCP server URL
https://telarch.ai/mcp
Install it
Codex

Codex plugin

Install from the GitHub repository. telarch-local runs on your machine and keeps the memory vault and the audit ledger there.

Both plugins
Terminal
codex plugin marketplace add Perseus-Computing-LLC/telarch-openai-plugin
codex plugin add telarch-local@perseus-telarch-plugins
Quickstart

Add one to a Rust or Python project.

Each library ships as a Rust crate and a Python package.

Rust: Cargo.toml
[dependencies]
harpe = "=0.1.0-alpha.12"
kibisis = "=0.1.0-alpha.16"
argus-ledger = "=0.1.0-alpha.8"
Python
pip install "harpe==0.1.0a12"
pip install "kibisis==0.1.0a16"
pip install "argus-ledger==0.1.0a8"

These versions are on crates.io and PyPI.

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.

contact@perseuscomputing.com