Skip to main content

Aegon

Observability for Claude Code agentic runs.

Watches the JSONL session files Claude Code writes during a run, parses them into typed Rust structs, tracks live session state, and displays everything in a split terminal UI — a raw event feed on the left and an aggregated dashboard on the right.


Demo

https://github.com/user-attachments/assets/a34fd65b-3872-40b2-a0a4-ef012dcf0c0a


What it looks like

┌─ Aegon   1 session   247 events ──────────────────────────────────────────────────────────┐
│                                                                                             │
│  Events (newest first)          │  Session                                                 │
│  ─────────────────────          │  Live session  ● LIVE   247 events                      │
│  14:22:01 TOOL▶ Bash cargo…     │  ─────────────────────────────────────────────────────  │
│  14:22:00 THINK I should…       │  Tokens  ████████████░░░░░░░░░░  42k / 200k             │
│  14:21:59 ASST  Let me run…     │  in=38420  out=3801  cache_r=71204                      │
│  14:21:55 TOOL◀ Finished `d…    │  est. cost: $0.0321                                     │
│  14:21:54 TOOL▶ Read src/…      │  ─────────────────────────────────────────────────────  │
│  14:21:54 TOOL▶ Bash ls -la…    │  Steps                                                  │
│  14:21:53 ASST  I'll check…     │  ⠋ Bash          [1.2s]                                 │
│  14:21:52 USER  lets start…     │  ✓ Read          312ms                                  │
│                                 │  ✓ Write         89ms                                   │
│                                 │  ─────────────────────────────────────────────────────  │
│                                 │  Flow                                                    │
│                                 │  USER → THINK → [Bash ‖ Read] → ASST → Write → ASST    │
│ q quit                          │                                                          │
└─────────────────────────────────────────────────────────────────────────────────────────────┘

Left panel — raw event feed: every tool call, result, thinking block, and assistant message in arrival order, coloured by type, newest first.

Right panel — live dashboard:

  • Session header: title, live/idle status, event count
  • Token gauge: progress bar auto-filling as the context window fills; estimated cost
  • Steps: spinner on active tool calls, ✓/✗ for completed/failed, with timing
  • Flow: one-line causal chain showing order, parallel branches ([Bash ‖ Read]), and human turns

Architecture

~/.claude/projects/**/*.jsonl
         │
         │  notify (OS file events: FSEvents / inotify)
         ▼
  aegon-cli / watcher.rs
  ┌─ background thread ──────────────────────────────────┐
  │  seek to last-read byte → read new lines              │
  │  ClaudeAdapter::parse_line() → Vec<LogEvent>          │
  │  tx.send(event)                                       │
  └──────────────────────────────────────────────────────┘
         │  mpsc channel
         ▼
  aegon-cli / main.rs  (main thread)
  App::push(event)
    ├─► events: Vec<LogEvent>        raw feed buffer (500 events)
    └─► SessionRegistry::ingest()
          └─► SessionState::ingest()
                ├─ pending: HashMap<id, Step>   running tool calls
                ├─ steps: Vec<Step>             completed with timing
                ├─ flow: Vec<FlowNode>          causal chain
                └─ token_totals: TokenTotals    cumulative usage

  aegon-ui / tui.rs  draws every 50ms:
    left  → raw event list
    right → dashboard::draw(SessionState)
              ├─ gauge::draw()   token progress bar + cost
              ├─ steps::draw()   spinners + completed steps
              └─ flow::draw()    USER → THINK → [T1 ‖ T2] → ASST

Crate map

Crate Role
aegon-types All domain types — LogEvent, EventKind, ToolCall, ToolResult, TokenUsage, Session, StreamId
aegon-adapters Claude JSONL → Vec<LogEvent>; lenient on unknown fields
aegon-core Pure session logic — SessionState, SessionRegistry, Step, FlowNode, TokenTotals
aegon-ui ratatui TUI — split event feed + dashboard
aegon-cli Binary entry point — file watcher + channel wiring

Install

Via pip (no Rust toolchain needed):

pip install aegon-rs

Via Cargo (Rust toolchain required):

cargo install aegon-cli

Running

aegon run              # TUI in the current terminal
aegon run --detached   # open TUI in a new terminal window
aegon                  # same as aegon run

Press q or Esc to quit.

The watcher automatically picks up ~/.claude/projects/**/*.jsonl and ~/.claude/sessions/**/*.jsonl. Start a Claude Code session in another terminal — events appear in real time.

From source (contributors):

just run          # build + launch in one step
just demo         # opens in a new Terminal window
just setup        # first-time: installs system deps and Cargo tools

Development

just --list          # all available recipes
just ci              # mirrors what CI runs (fmt + clippy + check + test + docs)
just build           # cargo build --workspace
just test            # cargo test --workspace
just audit-jsonl     # scan ~/.claude/projects for JSONL structure insights
just demo            # run the tool in a separate terminal for live demo

See CLAUDE.md for full design constraints, crate responsibilities, and the development workflow.

See CHANGELOG.md for release history and JOURNAL.md for design decisions and session notes.


Contributing

Workflow

All changes go through a branch → PR → squash-merge cycle. The full loop is documented in CLAUDE.md and enforced by skills in .claude/skills/. In short:

just branch feat/<name>     # cut a branch from latest main
# ... make changes ...
just ci                     # must pass locally before pushing
just push                   # push and set upstream
just pr                     # open PR (gh will prompt for title + body)
just merge                  # squash-merge once CI is green
just cleanup feat/<name>    # delete local branch + prune remote refs

Rules

  • Never commit to main directly. Every change goes through a PR.
  • just ci must pass before pushing. It runs fmt, clippy -D warnings, check, test, and cargo doc -D warnings — exactly what CI runs.
  • Every public item needs a doc comment. cargo doc -D warnings is an error, not a warning.
  • CHANGELOG.md and JOURNAL.md must be updated on every PR that changes behaviour. [Unreleased] in CHANGELOG for unreleased changes; add a dated JOURNAL entry with achievements, caveats, and next steps.
  • No unwrap() or expect() in library crates outside tests.
  • Adapters must not use #[serde(deny_unknown_fields)] on top-level event types — the Claude JSONL format evolves without notice.

Adding a new tool adapter

  1. Create crates/aegon-adapters/src/<tool>/mod.rs and raw.rs
  2. Implement the Adapter trait from crates/aegon-adapters/src/lib.rs
  3. Add fixture JSONL samples to aegon-tests/fixtures/<tool>/
  4. Wire into aegon-cli via config or format detection

Codeowners

@chinmaypandya is the default owner for all files. All PRs require approval before merge.

Metadata

Release files for aegon-rs 0.4.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distributions (wheels)

Table of built distributions (wheels) for aegon-rs 0.4.4
File Actions
aegon_rs-0.4.4-py3-none-win_amd64.whl Python 3 none Windows x86-64 Details for aegon_rs-0.4.4-py3-none-win_amd64.whl
aegon_rs-0.4.4-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl Python 3 none Linux glibc 2.17+ x86-64 Details for aegon_rs-0.4.4-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
aegon_rs-0.4.4-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl Python 3 none Linux glibc 2.17+ ARM64 Details for aegon_rs-0.4.4-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
aegon_rs-0.4.4-py3-none-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl Python 3 none macOS 11.0+ ARM64, macOS 10.12+ x86-64, macOS 10.12+ universal2 (ARM64, x86-64) Details for aegon_rs-0.4.4-py3-none-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl

Total release size: 4.5 MB

Release files / aegon_rs-0.4.4-py3-none-win_amd64.whl

Download URL aegon_rs-0.4.4-py3-none-win_amd64.whl
Size 809.2 kB
Tags Python 3 Windows x86-64
SHA-256 checksum
How to use checksums
1c007eacdc4ab0a90677153fafb86b3dc9a8dff4cc76bc3b7227a2328208406a
BLAKE2b-256 checksum
How to use checksums
7250ccf37c8dccf9f1de5f12a132a3b7e321d53155753067d1095d79ade28d56
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/1.13.3

Release files / aegon_rs-0.4.4-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL aegon_rs-0.4.4-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 979.2 kB
Tags Linux glibc 2.17+ x86-64 Python 3
SHA-256 checksum
How to use checksums
ca325cae6bb78a76f6c5b4c94f8e603122a4c85707c2947bc9433a34e0788b4a
BLAKE2b-256 checksum
How to use checksums
4acbe9f75242be72fbd799eae79e85aa5b43021b5e0921e05cb6424d777e1b74
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/1.13.3

Release files / aegon_rs-0.4.4-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl

Download URL aegon_rs-0.4.4-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Size 921.3 kB
Tags Linux glibc 2.17+ ARM64 Python 3
SHA-256 checksum
How to use checksums
1b9a13e3e2d5ebd035d31a78200993657afb29e0fdb1a7db913525b2015e1829
BLAKE2b-256 checksum
How to use checksums
6806179395962fb25cde645cdca3b67cd9d903b79888248af3dbc75627d483e8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/1.13.3

Release files / aegon_rs-0.4.4-py3-none-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl

Download URL aegon_rs-0.4.4-py3-none-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl
Size 1.7 MB
Tags Python 3 macOS 10.12+ universal2 (ARM64, x86-64) macOS 10.12+ x86-64 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
81060ed6f6ec7377e51945e419b8499ff34ea058e2351c4991f80bad0c197905
BLAKE2b-256 checksum
How to use checksums
38f55373b211324ab4eb81b59ddecfad5ac6f9970095a4e54a586b807a8ff0f9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/1.13.3

Security for aegon-rs 0.4.4

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.4.4 This release

4 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page