Getting it into your agent
It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.
git clone --depth 1 https://github.com/aretw0/agents-labnpx agentmods add skills/aretw0/agents-lab/session-triageWrote 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/skills/aretw0/agents-lab/session-triage)<a href="https://agentmods.dev/skills/aretw0/agents-lab/session-triage"><img src="https://agentmods.dev/badge/skills/aretw0/agents-lab/session-triage/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/skills/aretw0/agents-lab/session-triage"><img src="https://agentmods.dev/badge/skills/aretw0/agents-lab/session-triage.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.00035 | $0.00704 |
| Opus 5.5 | $0.00014 | $0.00282 |
| Sonnet 5.5 | $0.00007 | $0.00141 |
| Haiku 4.5 | $0.00003 | $0.00070 |
Grade A, and why
session-triage 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 3mo 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 — 96 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Session Triage (Recente)
Use este skill quando o usuário disser que “já falou tudo no histórico” e quiser transformar conversas recentes em backlog executável.
Objetivo
- Ler histórico recente em modo local-first (por padrão: último 1 dia)
- Extrair pendências explícitas (Next Steps / In Progress / Blocked)
- Reconciliar com
.project/tasks(board canônico) - Produzir split operacional:
- Unlock swarm now (destrava throughput)
- Later stabilization (pode esperar)
Nota de arquitetura: o modo padrão usa sessões locais do projeto isolado (
.sandbox/pi-agent/sessions/<workspaceKey>) com janela tail-batch. O desenho alvo continua provider-agnostic (múltiplas plataformas), preservando o mesmo contrato de governança.
Fluxo recomendado
1) Snapshot rápido do histórico recente
pnpm run session:triage
Opcional JSON para automação:
pnpm run session:triage:json
Por padrão, a leitura é tail-batch (cauda da sessão) para economizar contexto.
Expansão progressiva quando necessário (sem scan completo de primeira):
node scripts/session-triage.mjs --days 2 --limit 12 --tail-lines 200 --window 2
node scripts/session-triage.mjs --days 2 --limit 12 --tail-lines 200 --expand
Fallback global é opt-in (evitar por padrão):
node scripts/session-triage.mjs --allow-global-fallback
2) Validar board canônico
project-status
project-validate
3) Reconciliar lacunas
- Se a pendência já existe em
.project/tasks, não duplicar. - Se não existe, criar task com ID novo e critérios claros.
- Não fechar task estratégica sem verificação/evidência.
4) Aplicar split operacional
- Unlock swarm now: P0, promotions pendentes, bloqueios e gaps que impedem materialização.
- Later stabilization: P1/P2, melhorias de ergonomia, extensões futuras.
Regras de governança
- Manter
no-auto-close - Exigir evidência (arquivos, comandos, resultados)
- Preservar
operator-in-the-loop - Evitar retrabalho de decisões já
decidedsem evidência nova
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.
- 3mo ago First seen · 96 lines · 35 tokens per session scan A 8f14fffefcbb
session-triage is a skill published in the GitHub repository aretw0/agents-lab (11 stars, last pushed 5mo ago), licensed MIT. It adds 35 tokens to every session and 704 once invoked, about $0.0001 per session on Opus 5.5. 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.
session-triage compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| session-triagearetw0/agents-lab | Skill | 11 | 5mo ago | MIT | A | 35 | Claude Code, Codex |
| gpt-image-gencode-yeongyu/senpi | Skill | 531 | today | MIT | A | 66 | Claude Code, Codex |
| tmux-manual-qacode-yeongyu/senpi | Skill | 531 | today | MIT | A | 66 | Claude Code, Codex |
| agentbro-pr-mergeshirenchuang/agentbro | Skill | 167 | today | Apache-2.0 | A | 38 | Claude Code, Codex |
| auto-devgenai-io/san | Skill | 143 | today | Apache-2.0 | A | 28 | Claude Code |
| code-reviewgenai-io/san | Skill | 143 | today | Apache-2.0 | A | 83 | Claude Code |
| review-session-tracespences10/my-pi | Skill | 147 | today | MIT | A | 42 | Claude Code, Codex |