estela (dsh-plugin)
perfectpan/estela/apps/dsh-plugin
在 Chat 和 Trajectory 旁增加 Estela 视图,从磁盘读取当前会话日志:事件列表、模型在某次请求看到的内容、上下文对比、上下文压缩移除的内容和按目录价计算的费用。
安装
dsh plugin --profile web add github:perfectpan/estela该插件位于仓库的 apps/dsh-plugin 子路径下。
README
English · 简体中文
Estela
A local viewer for agent sessions: every request, what the model saw, and what it cost.
npx @rivus/estela
Needs Node.js 24 or later, on macOS, Linux, or Windows. It lists the sessions of the agents on this machine and opens them in your browser. Nothing leaves your machine.
Why
Agents keep detailed logs, but the logs are hard to read. When an agent goes wrong, you want to know what it actually had in front of it. Estela answers three questions from the logs alone:
- Why did the agent do that? For any request, Estela rebuilds the context the model received: the system prompt, the tools, the earlier messages, and the current turn.
- What did a compaction remove? It shows which events a compaction took out of the model's view, and compares the context before and after.
- Where did the tokens and money go? It shows the recorded tokens per request, turn, subagent, and session, and their list price.
Anything a log does not record is shown as unavailable, never estimated.
Features
- Session browser. Every session on this machine in one list, newest first, with turns, requests, tokens, duration, and marks for compaction, subagents, and failed tool calls. Filter by agent, project, and flag; search titles and your own prompts.
- Timeline and ledger. One bar per request (height is the input tokens), one row per subagent, compactions marked with the tokens before and after; every event in order, by turn or by agent.
- Model saw. The context at any event, slot by slot, with the token counts the agent recorded and the events a compaction removed.
- Compare. The context of two requests side by side: what entered, what a compaction hid, and whether the system prompt or tools changed.
- Cost. The list price of the recorded tokens per request, turn, subagent, and session, with cache shares; partial sums say how many requests they leave out.
- Reports and exports. One redacted
index.htmlto share, an ATIF v1.8 trajectory for Harbor, and an OTLP/JSON trace for Langfuse, LangSmith, or Phoenix. - MCP tools.
estela mcplets an agent find an earlier session and read what its model saw at a failing request. - DeepSeek Harness plugin. Install
@rivus/dsh-estelaintodsh webto open the Estela workspace for the current session beside Chat and Trajectory; see DeepSeek Harness plugin.
Supported agents
| Agent | Sessions found in |
|---|---|
| Antigravity CLI | ~/.gemini/antigravity-cli/brain/ |
| Claude Code | ~/.claude/projects/ |
| Codex | ~/.codex/sessions/, ~/.codex/archived_sessions/ |
| DeepSeek Harness | ~/.dsh/sessions/ |
| DimCode | ~/.dimcode/v2/dimcode.sqlite |
| Gemini CLI | ~/.gemini/tmp/ |
| Grok | ~/.grok/sessions/ |
| Kimi Code | ~/.kimi-code/sessions/ |
| OpenCode | ~/.local/share/opencode/opencode.db |
| Pi | ~/.pi/agent/sessions/ |
| Qoder CLI | ~/.qoder/projects/ |
| ZCode | ~/.zcode/cli/db/db.sqlite |
Each agent's home override is honored. What each agent's log records (system prompt, tool definitions, usage, subagents, compaction) differs; see Supported agents.
Privacy
Estela runs locally and only reads session logs. The CLI dev server (@rivus/estela) binds localhost and keeps an unredacted cache of session titles, paths, numbers, and up to 200 of your prompts per session in ~/.cache/rivus-estela/, which you can delete at any time; the DeepSeek Harness plugin (@rivus/dsh-estela) reads logs inside dsh without opening a port or creating that index. Redaction replaces your home directory, some token shapes, and the values of labelled credentials such as PASSWORD=, but not every secret, and a report still contains session text and file contents: read a report before you share it. Details in Privacy and redaction.
Documentation
- User guide: getting started, concepts, the workspace, reports and exports, MCP tools, DeepSeek Harness plugin, troubleshooting.
- Public interface: commands, options, exit codes, environment variables, and what semver covers.
- Export formats: the ATIF and OTLP mappings.
- Architecture, development setup, visual design, contributing, and security.
Development
The repository is a pnpm workspace. Building from source needs Node.js ^26.13.1; the built CLI runs on Node.js 24 or later.
pnpm install
pnpm build
node apps/cli/dist/bin.mjs
CONTRIBUTING.md has the first-contribution steps and the checks.
Name
Estela is Spanish for a wake: the trail a ship leaves on the water. A session log is the trail an agent leaves behind, and Estela reads it. The package is published in the @rivus scope; rivus is Latin for a stream.
License
GPL-3.0-only. See LICENSE.