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.
git clone --depth 1 https://github.com/viitorohit/sitrepWrote 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.
[](https://agentmods.dev/commands/viitorohit/sitrep/session-end)<a href="https://agentmods.dev/commands/viitorohit/sitrep/session-end"><img src="https://agentmods.dev/badge/commands/viitorohit/sitrep/session-end/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/commands/viitorohit/sitrep/session-end"><img src="https://agentmods.dev/badge/commands/viitorohit/sitrep/session-end.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00000 | $0.00535 |
| Opus 5.5 | $0.00000 | $0.00214 |
| Sonnet 5.5 | $0.00000 | $0.00107 |
| Haiku 4.5 | $0.00000 | $0.00053 |
Grade A, and why
session-end scanned grade A with 0 findings 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 1mo ago.
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.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 39 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Session End Protocol
Automatic (hook-fired): runs unattended at session end. Must never block — file repair is /selfheal's job, not this command's.
Thin wrapper (GETSITREP-10) over getsitrep session-end — the CLI owns the Session Log entry, header updates, .sitrep-data.json, the history record, and the commit. This file's only remaining job is the one step no CLI can do on its own: building the session-summary JSON from this conversation, since a CLI has no way to know what happened in it.
Step 1: Build the session summary
From your own knowledge of this session, construct:
{
"focus": "one-line summary",
"tasksCompleted": ["3.1"], "tasksInProgress": [], "tasksBlocked": [],
"blockers": [], "decisions": [],
"tokens": {"input": N, "output": N, "cacheCreation": N, "cacheRead": N, "total": N},
"costUsd": N.NN, "costLabel": "actual"|"estimate", "costSource": "ccusage"|"manual_estimate",
"model": "...", "durationMinutes": N, "user": "...", "notes": "..."
}
Every field is optional — omit what you don't know rather than guessing a placeholder that looks precise but isn't.
Tokens/cost — always label actual or estimate, never write a bare number:
- If a configured meter (ccusage/CCUM) or the platform itself reports exact counts → use those, label
actual. - Otherwise, estimate from the work actually done this session, label
estimate:- Light (reading, planning, small edits): ~20,000 tokens
- Medium (1-2 features, some debugging): ~60,000 tokens
- Heavy (large refactor, many files, extensive debugging): ~150,000 tokens
- Calculate cost from
sitrep/MANIFEST.md's pricing table. - Subagent-cost awareness: if this session spawned subagents (Task tool calls), count their token usage too — don't undercount by tracking only the main thread.
- /compact hygiene: if auto-compact fired this session, note it in
notes— a post-compact estimate is a lower bound, not exact.
Step 2: Call the CLI
getsitrep session-end --data '<the JSON from Step 1>'
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.
- 1mo ago First seen · 39 lines · 0 tokens per session scan A f03bfd614c14
session-end is a command published in the GitHub repository viitorohit/sitrep (19 stars, last pushed 3mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 535 tokens. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
Other commands, from other repositories
project-status
Summarize the current state of this client project.
sync-todos-to-github
Convert TodoWrite task list to GitHub plan issue (triggers automation).
work
Start working on a GitHub issue — fetch context, create branch, plan solution, and optionally open a PR.
create-task
Create a GitHub issue with project board integration.
jira-create
Create a new Jira ticket using the Atlassian MCP server.
jira-comment
Add a comment to a Jira ticket using the Atlassian MCP server.