Skip to content

About

Agent sessions as typed records: lift transcripts and gateway traffic into one IR, store it in SQLite, query, mine and view it.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

602 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

agenticspec

agenticspec is a model of agentic systems: the agents, models, tools, channels, sandboxes, runtimes and people they are made of, and how they connect. With it you architect a system from building blocks, simulate it, optimize it by its KPIs, evaluate real agent sessions, and deploy it. weft is the runtime that runs a deployed architecture.

  • Architect. The building blocks (blocks/) specify what an agentic system is made of, each a contract of commands, events and views. An architecture document composes blocks into one setup, and agenticspec sim check refuses one that breaks the specification. Packs and fields add the blocks, KPIs and behaviour profile of one kind of work; agenticstudio edits an architecture as a draft.
  • Simulate. The simulator runs an architecture under a field's behaviour profile and measures its KPIs (agenticspec sim score). A scenario checks the events an architecture records for given inputs. Every KPI is in the KPI catalogue.
  • Optimize. An experiment (agenticspec sim run) searches the values an architecture marks with vary, ranks the variants by the requirements they meet and then by a weighted sum of KPIs, and writes the best one. The catalog holds the optimized architectures and compares all of them by KPI. A search changes values only, not parts or links.
  • Evaluate. agenticspec sync lifts Claude Code transcripts into one typed record, redacts it and stores it in a local SQLite file; KPIs, queries, patterns and procedures and the dashboard read that store. An LLM gateway can append the same records through the records library.
  • Deploy. The contract lists the ports a runtime implements for an architecture. agenticspec deploy bundle admits the architecture with a binding for one target and writes one deployment bundle (deploying an architecture). A translator turns the bundle into its target's architecture, and weft runs it.

Documentation: https://beyond10x.github.io/agenticspec/, from the pages in docs/; start with getting started. Privacy says what stays on your machine. Design notes for contributors are in design/.

Field names and formats may still change between 0.x releases.

Install

Each release carries one archive per platform with the agenticspec binary, LICENSE and this file:

platform archive
Linux x86_64, static (any distribution) agenticspec-<version>-x86_64-unknown-linux-musl.tar.gz
Linux aarch64, static (any distribution) agenticspec-<version>-aarch64-unknown-linux-musl.tar.gz
Linux x86_64, glibc agenticspec-<version>-x86_64-unknown-linux-gnu.tar.gz
Linux aarch64, glibc agenticspec-<version>-aarch64-unknown-linux-gnu.tar.gz
macOS, Apple silicon agenticspec-<version>-aarch64-apple-darwin.tar.gz
macOS, Intel agenticspec-<version>-x86_64-apple-darwin.tar.gz
Windows x86_64 agenticspec-<version>-x86_64-pc-windows-msvc.zip (agenticspec.exe)

Download an archive and SHA256SUMS from the same release into one directory and check the archive before you unpack it (on macOS, shasum -a 256 -c --ignore-missing SHA256SUMS; on Windows, compare Get-FileHash <archive> with its line in SHA256SUMS):

sha256sum --check --ignore-missing SHA256SUMS
tar -xzf agenticspec-<version>-<target>.tar.gz

On Windows, set HOME (for example to %USERPROFILE%) or pass --root and --state-dir: the default paths below start at HOME.

Or build from source with the Rust toolchain pinned in rust-toolchain.toml:

cargo install --locked --path crates/agenticspec

Use

agenticspec sync                   # lift new and changed sessions of the last 72 hours into the store
agenticspec serve                  # the dashboard on http://127.0.0.1:7420/, synced every 5 seconds
agenticspec analyze                # write a self-contained dashboard file beside the store
agenticspec kpi --output json      # the KPIs over the window
agenticspec query --text '<sq>'    # an sq module over the sessions of the window
agenticspec mine                   # recurring runs of tool calls across sessions

The commands above read ~/.claude/projects unless --root names another directory, and covers the last 72 hours unless --since-hours says otherwise. The store is $XDG_DATA_HOME/agenticspec/sessions.db (~/.local/share/agenticspec/sessions.db), or the --state-dir you give. agenticspec serve needs the UI built once with task ui:build (Node.js 22). The UI has a light and a dark theme and pages for the overview, a session and embedding a session in another page: see the dashboard page of the documentation.

AGENTICSPEC_DELEGATES names, comma-separated, the sessions that act for you; a message from one of them counts as a delegate's prompt, not a peer's.

agenticspec sim is the simulator. It reads no session and no store: it checks an architecture document, runs an experiment (each entry of the catalog has the files to download), and writes a page of an architecture:

agenticspec sim check <architecture.yaml>          # refusals, or the KPIs of the architecture as a whole
agenticspec sim check --json <architecture.yaml>   # agenticspec-check/1 on stdout, also when refused
agenticspec sim digest <architecture.yaml>          # the pin of a nested architecture
agenticspec sim run <experiment.yaml> --out out/   # result.json, index.html, best.yaml
agenticspec sim render <architecture.yaml> --out page.html
agenticspec sim render <render-model.json> --out page.html   # a page of the render model

What stays on your machine

The store holds redacted records: secrets and personal data are replaced by aliases, and a finding names its class and count, never the value. It also holds the harness's session titles, which come from prompt text, so it stays local. Nothing is sent anywhere.

Develop

task check is the gate: the specification, the UI document and its tests, the app in ui/app (types, unit tests, and layout, accessibility, keyboard and screen-only-user tests in a browser, with a ratchet on their metrics), the generated crates, the script tests, format, lints and tests. task ux:round -- R-nn measures a round of UI review into ux/rounds/. task site builds the documentation site. AGENTS.md holds the rules for changes.

License

Apache-2.0. See LICENSE.

About

Agent sessions as typed records: lift transcripts and gateway traffic into one IR, store it in SQLite, query, mine and view it.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages