Nexus-Aethra/Nexus-Terminal--packages-dshell-commands ↗★ 0

@nexus-aethra/dshell-commands

dshell commands and tools: /new on ctx.commands, plus the model-facing dshell_get_agent_terminal tool that hands the agent its own shell, and dshell_terminal_read / dshell_terminal_output for reading the user's shell (read-only). 适合需要赋予智能体独立 Shell 执行能力,同时允许其安全读取用户终端输出的场景。

Package
@nexus-aethra/dshell-commands
Compatibility
Unverified
Harness peer range
0.1.5-rc.2 || 0.1.6-alpha.2 || 0.1.7-rc.2
Cordis peer range
^4.0.2
Version
0.1.7
License
MIT
Last updated
Sep 28, 2026

Install

This plugin has no verified bundle, or compatibility checks failed. Read the repository notes first. Read the full README ↗

Token usage

Settings → 用量 charts what the models have cost, from an index dshell keeps in its own data directory:

The usage page

  • 每日热力 — a fixed 26-week calendar of daily totals, filled top-to-bottom and left-to-right, so the newest day is always the bottom-right cell. It reads all time on purpose: the range chips move the charts, never the calendar.
  • 合计 / 未缓存输入 / 输出 / 缓存读 / 调用 / 缓存命中率 — the window's headline numbers. The hit rate is the one to watch: cache reads over all input.
  • 每日消耗(按模型) and 模型占比 — one line per model over the window, and each one's share.
  • 按模型明细 — input, output, cache read, cache write, calls and total per model.

The index is incremental: dsh attaches provider-reported usage to each assistant/message, and a scan reads only the sessions whose logs have grown since last time. It runs when you open the page, and on 重新聚合. A session whose log dsh cannot decode is reported as skipped — the page shows that the totals are partial, and why, instead of quietly counting less.