dashboard-session-diff

dashboard-session-diff is a command for coding agents from BlackBeltTechnology/pi-agent-dashboard. It costs 31 tokens per session (203 once invoked), scanned A, original, MIT.

Show file changes (git diff) for a session by id-prefix. Usage /dashboard:session-diff . Runs locally, no LLM.

Command

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add commands/blackbelttechnology/pi-agent-dashboard/dashboard-session-diff
Clone the repo
git clone --depth 1 https://github.com/BlackBeltTechnology/pi-agent-dashboard

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for dashboard-session-diff

README.md
[![agentmods](https://agentmods.dev/badge/commands/blackbelttechnology/pi-agent-dashboard/dashboard-session-diff.svg)](https://agentmods.dev/commands/blackbelttechnology/pi-agent-dashboard/dashboard-session-diff)
Your own site
<a href="https://agentmods.dev/commands/blackbelttechnology/pi-agent-dashboard/dashboard-session-diff"><img src="https://agentmods.dev/badge/commands/blackbelttechnology/pi-agent-dashboard/dashboard-session-diff.svg" alt="Measured on agentmods" height="20"></a>
Per session 31 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 203 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. Scan, not verified.
Origin unknown No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00031 $0.00203
Opus 5 $0.00015 $0.00102
Sonnet 5 $0.00006 $0.00041
Haiku 4.5 $0.00003 $0.00020

Measured today against content hash ba654b1a4141, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

dashboard-session-diff scanned grade A with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured today.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

FULL=$(curl -s "$PI_DASHBOARD_BASE/api/sessions" \
packages/extension/.pi/skills/pi-dashboard/commands/dashboard-session-diff.md · 12 lines

What it actually says

ID="$1" if [ -z "$ID" ]; then echo "usage: /dashboard:session-diff " >&2; exit 2; fi FULL=$(curl -s "$PI_DASHBOARD_BASE/api/sessions"
| jq -r --arg id "$ID" '.data[] | select(.id | startswith($id)) | .id' | head -1) if [ -z "$FULL" ]; then echo "no session matching $ID" >&2; exit 1; fi curl -s "$PI_DASHBOARD_BASE/api/session-diff?sessionId=$FULL"
| jq -r '.data.files[]? | "=== (.path) ===\n(.gitDiff // "(no git diff)")"'

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. today First seen · 12 lines · 31 tokens per session scan A ba654b1a4141

Subscribe to this mod's changes

dashboard-session-diff is a command published in the GitHub repository BlackBeltTechnology/pi-agent-dashboard (270 stars, last pushed today), licensed MIT. It adds 31 tokens to every session and 203 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.