Finding Sessions To Watch
PostHog/posthog
Guides a user from "I want to watch recordings but don't know which ones" to a short, high-signal list of sessions worth watching.
Nightly sweep of the last 24h of pi-go sessions — anomalous runs, loop aborts, tool error rates, token waste, real prompt-token spend, and whether the observation and palace pipelines are still…
$ npx skills add dimetron/pi-go --skill nightly-session-watch -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install dimetron/pi-go nightly-session-watch --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/dimetron/pi-go.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.pi-go/skills/nightly-session-watch .claude/skills/nightly-session-watch && rm -rf skills-srcUse ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.
Claude Code skills documentation · loads skills from .claude/skills/
Install the "nightly-session-watch" agent skill from https://github.com/dimetron/pi-go/tree/main/.pi-go/skills/nightly-session-watch into .claude/skills/nightly-session-watch/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "nightly-session-watch", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/dimetron/pi-go/tree/main/.pi-go/skills/nightly-session-watchType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add dimetron/pi-go --skill nightly-session-watch -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install dimetron/pi-go nightly-session-watch --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/dimetron/pi-go.git skills-src && mkdir -p .agents/skills && cp -r skills-src/.pi-go/skills/nightly-session-watch .agents/skills/nightly-session-watch && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "nightly-session-watch" agent skill from https://github.com/dimetron/pi-go/tree/main/.pi-go/skills/nightly-session-watch into .agents/skills/nightly-session-watch/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "nightly-session-watch", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add dimetron/pi-go --skill nightly-session-watch -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install dimetron/pi-go nightly-session-watch --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/dimetron/pi-go.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/.pi-go/skills/nightly-session-watch .cursor/skills/nightly-session-watch && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "nightly-session-watch" agent skill from https://github.com/dimetron/pi-go/tree/main/.pi-go/skills/nightly-session-watch into .cursor/skills/nightly-session-watch/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "nightly-session-watch", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/dimetron/pi-go.git --path .pi-go/skills/nightly-session-watch--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add dimetron/pi-go --skill nightly-session-watch -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install dimetron/pi-go nightly-session-watch --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/dimetron/pi-go.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/.pi-go/skills/nightly-session-watch .gemini/skills/nightly-session-watch && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "nightly-session-watch" agent skill from https://github.com/dimetron/pi-go/tree/main/.pi-go/skills/nightly-session-watch into .gemini/skills/nightly-session-watch/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "nightly-session-watch", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install dimetron/pi-go nightly-session-watchInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add dimetron/pi-go --skill nightly-session-watch -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/dimetron/pi-go.git skills-src && mkdir -p .github/skills && cp -r skills-src/.pi-go/skills/nightly-session-watch .github/skills/nightly-session-watch && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "nightly-session-watch" agent skill from https://github.com/dimetron/pi-go/tree/main/.pi-go/skills/nightly-session-watch into .github/skills/nightly-session-watch/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "nightly-session-watch", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add dimetron/pi-go --skill nightly-session-watch -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install dimetron/pi-go nightly-session-watch --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/dimetron/pi-go.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/.pi-go/skills/nightly-session-watch .opencode/skills/nightly-session-watch && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "nightly-session-watch" agent skill from https://github.com/dimetron/pi-go/tree/main/.pi-go/skills/nightly-session-watch into .opencode/skills/nightly-session-watch/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "nightly-session-watch", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
nightly-session-watchNightly sweep of the last 24h of pi-go sessions — anomalous runs, loop aborts, tool error rates, token waste, real prompt-token spend, and whether the observation and palace pipelines are still…
Nightly Session Watch is an agent skill from dimetron/pi-go. Nightly sweep of the last 24h of pi-go sessions — anomalous runs, loop aborts, tool error rates, token waste, real prompt-token spend, and whether the observation and palace pipelines are still recording. Triages each finding to the specialist skill that diagnoses it. Use for an unattended daily health check, or on demand after a bad night.
Its SKILL.md is about 1.5k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.
The repository describes itself as: Go implementation of AI coding agent. The licence is MIT.
5 steps, taken from the first numbered list in SKILL.md.
Read from SKILL.md and the folder at commit c4c83e6. It shows what the files ask for, not the result of running them.
Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.
From allowed-tools in the SKILL.md frontmatter.
No scripts in the folder and no shell commands in SKILL.md (its code samples are bash and json).
From the folder's file list and the shell code blocks in SKILL.md.
No URLs in SKILL.md.
From URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Nightly Session Watch loads about 1.5k tokens when it runs. Until then it costs about 91 tokens; SKILL.md has 782 words of instructions outside code blocks.
Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.
The automated check found no risky patterns in SKILL.md.
Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.
The full file from dimetron/pi-go at commit c4c83e6, republished under its MIT licence (© dimetron). 782 words, ~1,533 tokens.
.claude/skills/nightly-session-watch/SKILL.md (or your agent's skills folder).One sweep over everything that happened in the last 24 hours, in priority order: what broke, what it cost, and what to do about it.
Everything runs through pi session-stats — the same Go code path the
session-stats agent tool uses, so there is no second implementation to drift.
No LLM call, no network, reads only ~/.pi-go/sessions/*/events.jsonl.
This is the umbrella check. It is deliberately shallow — it finds and ranks, it does not diagnose. Every finding names the skill that goes deeper:
| Finding | Goes deeper with |
|---|---|
agent loop aborted: ... | pi-loop-forensics |
| Tool call errors | pi-check-session-logs |
| Which tools dominate | tools-stats |
| Slow turns / throughput | token-perf |
Do not re-implement those here. If the sweep surfaces three aborted runs, the answer is "run loop-forensics on these three", not a second loop analysis.
pi session-stats # last 24h
pi session-stats --hours 72 # wider window
pi session-stats --all # include sessions with no anomalies
pi session-stats --json # counters only, for a cron wrapperOther flags: --high-tool-calls and --high-turns move the anomaly
thresholds, --session-dir points at a different session root.
Run pi session-stats. Present its markdown as-is — it is already
ordered by severity.
Read the numbers before interpreting them. Three traps:
read failing 5 times in
253 calls is noise; a tool failing 8 of 8 is broken or misconfigured.Triage each finding to the table above and name the skill to run next. Do not run them automatically — they are slower and interactive.
Propose fixes, grouped into config, code, and prompt. Patterns worth recognising:
| Symptom | Likely fix |
|---|---|
| One tool at ~100% error rate | Missing credential or unavailable MCP server — check config before code |
edit error rate above ~20% | Editing without reading first, or on stale content — a prompt/ledger problem |
| Oversized results from a tool marked uncapped | Wire it into compactToolResult in internal/tools/compactor.go |
| Oversized results from a tool marked yes | The compactor is not running — check the after-tool callback chain |
| Duplicate results inside one session | Dedup is not running, same cause as above |
observations DEGRADED or STALLED | The recording pipeline is down; see specs/memory-fixes/ |
| Palace last write many days old | Nothing is filing drawers — the bridge is not wired, or the palace is gated off |
Say plainly when nothing is wrong. A quiet night is a valid result and belongs in one line, not padded into a report.
MaxChars, plus results
re-sent byte-identical inside one session. Each oversized tool is labelled
with whether compactToolResult covers it, which separates "a component is
broken" from "this tool was never wired up".promptTokenCount / candidatesTokenCount straight from
the provider's usageMetadata. Measured, not estimated.--json prints a stable object for a cron wrapper:
{
"hours": 24,
"total_sessions": 175,
"anomalous_sessions": 25,
"aborted_runs": 0,
"reclaimable_tokens": 232957,
"prompt_tokens": 127052076
}Alert on aborted_runs > 0, on reclaimable_tokens crossing a threshold you
pick, or on prompt_tokens / total_sessions drifting up. Keep the JSON as the
trigger and the markdown as what a human reads.
Nightly is the intended cadence: 24h is long enough for a pattern to show and short enough that the offending session is still fresh.
prompt_tokens and output tokens are provider-reported and exact.
reclaimable_tokens is chars / 4 — fine for ranking and trends, not a
billing figure.events.jsonl mtime, so a session that started
before the window but was still running inside it is included whole.© dimetron, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
Just SKILL.md in .pi-go/skills/nightly-session-watch of dimetron/pi-go.
Open the folder on GitHubat commit c4c83e6
Nightly Session Watch next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Nightly Session Watch this skilldimetron/pi-go | 208 | — | ~1.5k | Automated safety check: Pass | MIT | |
| Finding Sessions To WatchPostHog/posthog | 40k | — | ~2.6k | Automated safety check: Pass | Custom licence | |
| Session Handoffsickn33/agentic-awesome-skills | 47k | — | ~1.8k | Automated safety check: Notes | MIT | |
| Sessionanthropics/claude-for-legal | 9.6k | 3 repos | ~478 | Automated safety check: Pass | Apache-2.0 | |
| Session History Searchslopus/happy | 24k | — | ~3.1k | Automated safety check: Pass | MIT | |
| Session Handoffdavila7/claude-code-templates | 32k | 2 repos | ~1.6k | Automated safety check: Pass | MIT |
PostHog/posthog
Guides a user from "I want to watch recordings but don't know which ones" to a short, high-signal list of sessions worth watching.
sickn33/agentic-awesome-skills
A skill your agent uses when context approaches capacity, before /clear or /compact, when switching tasks, or when ending a coding session: produces a structured handoff artifact for the next session.
anthropics/claude-for-legal
Run a focused N-question study session on a subject — MBE, essay, or flashcards.
slopus/happy
Searches past Claude Code, Codex and Cursor sessions and summarizes what was worked on, tried or decided, using extraction scripts instead of reading raw logs.
davila7/claude-code-templates
Creates comprehensive handoff documents for seamless AI agent session transfers.
asgeirtj/system_prompts_leaks
Locate and read Muse Code's OWN session logs — the current session or a prior one.
dimetron/pi-go
Record a test run, a TUI session, or any terminal command as a GIF with VHS and attach it to a GitHub PR as a release-hosted asset, never a repo commit.
dimetron/pi-go
Generate AGENTS.md files for Go, Rust, TypeScript, and Java projects.
dimetron/pi-go
A skill your agent uses whenever writing tests for Bubble Tea (charmbracelet/bubbletea) TUI applications in Go.
dimetron/pi-go
Index a folder's contents into the MemPalace semantic memory for search and retrieval.
dimetron/pi-go
Tune macOS resource limits and sysctls for best performance with Go development, Docker/OrbStack, and Linux VMs.
dimetron/pi-go
Profile-guided optimization (PGO) for the pi binary. An agent skill from dimetron/pi-go.
Nightly sweep of the last 24h of pi-go sessions — anomalous runs, loop aborts, tool error rates, token waste, real prompt-token spend, and whether the observation and palace pipelines are still…. Nightly Session Watch is an agent skill from dimetron/pi-go. Nightly sweep of the last 24h of pi-go sessions — anomalous runs, loop aborts, tool error rates, token waste, real prompt-token spend, and whether the observation and palace pipelines are still recording.
Nightly Session Watch fits situations like: an unattended daily health check; on demand after a bad night.
Run `npx skills add dimetron/pi-go --skill nightly-session-watch -a claude-code`. Or copy the skill folder (.pi-go/skills/nightly-session-watch in dimetron/pi-go) into .claude/skills/nightly-session-watch in your project. Claude Code loads it when a task matches its description.
Run `npx skills add dimetron/pi-go --skill nightly-session-watch -a codex`. Or copy the skill folder (.pi-go/skills/nightly-session-watch in dimetron/pi-go) into .agents/skills/nightly-session-watch in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add dimetron/pi-go --skill nightly-session-watch -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/nightly-session-watch, .gemini/skills/nightly-session-watch, .github/skills/nightly-session-watch and .opencode/skills/nightly-session-watch in your project.
SKILL.md names no scripts, command-line tools or credentials: Nightly Session Watch is instructions for the agent only.
SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.
Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.
Nightly Session Watch is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 1.5k tokens (SKILL.md is roughly 6.1k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.
Skills that share tags, products or a category with Nightly Session Watch: Finding Sessions To Watch (PostHog/posthog, 40k stars), Session Handoff (sickn33/agentic-awesome-skills, 47k stars), Session (anthropics/claude-for-legal, 9.6k stars) and Session History Search (slopus/happy, 24k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
dimetron (a GitHub user) maintains it in dimetron/pi-go, which has 208 GitHub stars. The repository holds 21 skills in this directory. The repository was last updated on October 9, 2026.
Source: dimetron/pi-go on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.