Catalog PyPI
PACKAGE EXPLORERView in registry

agents-traces

PyPI

Append-only JSONL session traces, assemble, and MCP inspect tools

agentsantigravityclaudecoding-assistantcursorloggingmcpmetricsobservabilitytracetraces
Versions collected1
Direct dependencies1From release 0.1.0
Last observed20 Oct, 23:30 UTC

README

Version 0.1.0 documentation

.agents / traces

Version 0.1.0 MCP Python 3.10+ PyPI License

Append-only JSONL session traces.
One daily file. Assemble rebuilds the chat payload for one request.

Quickstart

pip install agents-traces && agents-traces init

Creates ~/.agents/traces/, copies skills, and merges MCP into host configs whose directories already exist.

[!TIP] 🤖 Agent-Driven Setup: Give your coding agent this repo (clone or URL), then tell it to "install and set up agents-traces."

Source checkouts can also be installed and managed with vand.


What it does

Each UTC day is one append-only file: ~/.agents/traces/YYYY-MM-DD.jsonl (override AGENTS_TRACES_DIR). No daemon, no database. Append is a file write.

Inspect. MCP reads the same files an agent just wrote: timeline, recent errors, token and cost totals, per-model failure rates.

Assemble. agents-traces assemble --session <id> rebuilds chat-completions messages for that session from the JSONL. Tool bodies can be dropped; user turns stay.

Session text. session_snap, session_grep, and session_tail search message text in this store. They do not read agents-memory.

Ingest. ingest copies IDE transcripts (Antigravity, Cursor, Claude, Cline) into the daily files. Live sessions already on disk are not duplicated.

Retention. cleanup deletes files older than --keep-days (default 30). --compress gzips them instead.

Bare agents-traces (no subcommand) prints today's stats. The MCP server is serve or mcp, not the default.


Where it runs

Floor: any MCP client or a terminal. python -m agents_traces serve is enough.

init autowires hosts it finds. It does not install an IDE.

LayerWhat you getWho
JSONL + MCP/CLIRecord, inspect, stats, assembleAny MCP host / any shell
Autowire on initMerge agents-traces into the host MCP file when that config directory already exists; copy trace-inspect and trace-statsCursor, Claude Desktop, Zed (context_servers), Antigravity / Gemini, Windsurf, Codex, Roo, Cline. Skills land in ~/.agents/skills, ~/.cursor/skills, ~/.gemini/config/skills

MCP without autowire: point the host at python -m agents_traces serve.


MCP tools

Primary surface. Agents diagnose a failed loop here.

ToolWhat it does
get_last_session_traceTimeline for one session, or the latest. Optional trace: prefix on the id
get_recent_errorsFailed tool calls with args and stack
get_session_statsTokens, estimated cost, tool success for the last N days
get_model_statsSame window, split by model, with failure rates
record_traceAppend one event
ingest_tracesPull IDE transcripts into the daily files
session_snapRecent user messages in the traces store
session_grepSearch those messages
session_tailLast lines for one session, or the latest
trace_sealCryptographically seal tool calls into a SHA-256 hash chain
trace_verifyVerify cryptographic integrity of a sealed hash chain
trace_auditAudit for non-determinism, redundant calls, and scope violations

Twelve tools. Full contract: abi/MCP.md.


CLI

Ops / install / batch. Machine-readable catalog: python -m agents_traces --help-json (do not scrape --help).

CommandPurpose
agents-traces initTraces dir, skills, MCP merge
agents-traces stats [--date YYYY-MM-DD | --days N] [--by-model] [--json]Tokens, cost, tool rates. No flags = today
agents-traces analyze-models [--days N]Stats split by model (default 7 days)
agents-traces inspect [session-id]Terminal timeline. No id = latest session
agents-traces sessions [--days N] [--limit N]Recent sessions with token and cost totals
agents-traces tail [-n N] [-f] [--raw]End of today's file. -f follows
agents-traces record …Append one event from a shell
agents-traces assemble --session ID [--limit N] [--days N] [--include-tools]Rebuild chat messages for that session
agents-traces ingestIDE transcripts → daily JSONL
agents-traces cleanup [--keep-days N] [--compress]Delete old files, or gzip them
agents-traces seal [session|file] [-o out]Seal tool calls into SHA-256 hash chain
agents-traces verify <file>Verify cryptographic hash chain integrity
agents-traces audit [session|file] [--scope file]Replay audit for non-determinism & redundancy
agents-traces serve / mcpstdio MCP. Not the default command
agents-traces skills / sync-mcpRe-copy skills, or re-merge MCP

ABI

Layout and contracts in abi/:


Tests

python tests/run_all_tests.py

License

MIT. See LICENSE.

Downloads & popularity

Awaiting observations

No metric observations yet

Download counts and popularity will appear here as the collector receives them.

Versions 1

Collected releases
VersionPublishedDirect dependenciesOpen version
0.1.06 Oct 20261

Package advisories

0
No matching advisories collected

This describes our collected data; it is not a security assessment.

Repository

PENDING
lolaplex/agents-traces

Shared repository data · GitHub

License detected in repository
Not collected

Metadata history

Meaningful changes
Current collected state Current

Observed since 20 Oct, 23:30 UTC

No superseded metadata states collected. Unchanged observations do not create new revisions.

Record identity

package:70076b9703d85f96197785356946e55cddb0e1fc20231407a1172e53875e0cdf