Skip to main content

A context-loop codec for coding agents

Project description

Laconic – Compress what a coding agent carries, not what it says.

Status: early package release. laconic 0.2.0 ships the handle ledger and the file observation encoder — the largest single lever, replacing whole-file reads with a structural outline plus the requested span. Command, search, and action encoding are not yet implemented.

Most of what fills a coding agent's context window is never read by a human — file contents, command output, patches, search hits — and it is re-ingested on every turn of a session. Laconic is a codec for that traffic: it re-encodes observations and actions at the tool boundary, keeps every elision recoverable, and renders prose for a human only on demand.

Install

uv tool install laconic
laconic --help

Documentation

Document What's in it
docs/pitch.md The short version: the problem, the measurement, what is and isn't claimed
docs/overview.md What Laconic is, why, the evidence, prior work, and the pre-registered gates
docs/system-design.md Architecture, components, data model, and the evaluation harness

Measurement

One tool is runnable today. It decomposes real agent session transcripts into observations, actions, prose, and prompts, weighted by model pricing — the analysis the design is built on:

python3 scripts/measure_session_composition.py

Run it against your own sessions before taking any number in docs/ on faith.

License

Apache License 2.0 — see LICENSE.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

laconic-0.2.0.tar.gz (76.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

laconic-0.2.0-py3-none-any.whl (34.3 kB view details)

Uploaded Python 3

File details

Details for the file laconic-0.2.0.tar.gz.

File metadata

  • Download URL: laconic-0.2.0.tar.gz
  • Upload date:
  • Size: 76.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.6.14

File hashes

Hashes for laconic-0.2.0.tar.gz
Algorithm Hash digest
SHA256 765e095bb8e5d0fd69d77d651c2d9e3d8aea6fe03302ff51e239f4f0b5cbdfaa
MD5 5aab2371758b3bf6a1f1f244ef43b4f1
BLAKE2b-256 8e3d0b8173bfb8e24486fd9a167a79b035a2924438e2459b760bd6137f36150e

See more details on using hashes here.

File details

Details for the file laconic-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: laconic-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 34.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.6.14

File hashes

Hashes for laconic-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e65f0172885a842e2ffa614da18b0884db81ec4d262c8a735629d9d39f5b9de5
MD5 d4f2412b757a2592c438663dd61b0bfc
BLAKE2b-256 0d406e431e83d561affa2b3ea35b7f77560481241876630409bb7990bf459920

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page