session-steward

session-steward is a skill for Claude Code, Codex from agentproto/ts. It costs 69 tokens per session (943 once invoked), scanned A, original, Apache-2.0.

A tool for reviewing idle agentproto sessions, which are running or completed agent tasks. It classifies sessions, reports which may be closed, and can close only the ones judged safe when asked to apply changes.

In plain words
What is it for?
It is for listing idle sessions, identifying finished or stuck work, previewing cleanup, and closing high-confidence sessions.
Why use it?
It helps prevent forgotten sessions from continuing to use system resources, while leaving uncertain cases for review instead of closing them automatically.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is agentproto steward act latest --rules my-rules.yaml # custom rules (auto-loads ./.agentproto/steward-rules.yaml).

Good fit It is for listing idle sessions, identifying finished or stuck work, previewing cleanup, and closing high-confidence sessions.

Compare 6 skills from other repositories ↓
Install

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.

Clone the repo
git clone --depth 1 https://github.com/agentproto/ts
agentmods
npx agentmods add skills/agentproto/ts/skill

Made for: Claude Code, Codex.

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 session-steward

README.md
[![agentmods](https://agentmods.dev/badge/skills/agentproto/ts/skill/github.svg)](https://agentmods.dev/skills/agentproto/ts/skill)
Your own site
<a href="https://agentmods.dev/skills/agentproto/ts/skill"><img src="https://agentmods.dev/badge/skills/agentproto/ts/skill/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.

agentmods 80×15 button for session-steward

Your own site · 80×15
<a href="https://agentmods.dev/skills/agentproto/ts/skill"><img src="https://agentmods.dev/badge/skills/agentproto/ts/skill.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 69 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 943 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original 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.1 $0.00069 $0.00943
Opus 5.5 $0.00028 $0.00377
Sonnet 5.5 $0.00014 $0.00189
Haiku 4.5 $0.00007 $0.00094

Measured 5d ago against content hash 909a68202e25, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

session-steward 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 5d 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.

packages/apps/session-steward/skill/SKILL.md · 83 lines

How it starts

The opening of the file, as written. The whole thing — 83 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Session Steward

The steward wraps up idle agent sessions. It classifies them with session_wrapup_plan, closes the rule-certain ones, and sends the ambiguous ones through a cheap judge (Jev classifier, fallback: a one-shot LLM agent). Dry run by default — nothing is closed unless --apply.

Run it

Prefer the CLI (it installs/updates the app and runs the workflow). Three steps, each usable alone, all reading/writing one persisted snapshot:

agentproto steward                      # 1. classify: rules + Jev, ONE action per session
agentproto steward analyze              # 2. LLM reasons for the relevant rows only
agentproto steward act latest           # 3. dry run of the planned actions
agentproto steward act latest --apply   #    …perform them
agentproto steward --apply              # one-shot: classify + act

Variants:

agentproto steward classify --llm                       # classify, then analyze
agentproto steward act latest --rules my-rules.yaml     # custom rules (auto-loads ./.agentproto/steward-rules.yaml)
agentproto steward act latest --only mark-failed,needs-input --apply
agentproto steward act latest --session sess_a,sess_b
agentproto steward --legacy --apply --idle 60           # the original single-run steward

Actions: keep | mark-complete | mark-failed | relaunch | needs-input | close-abandoned | archive (relaunch / archive only when named in --only). act skips a session that changed since the snapshot and never closes a user-origin session (it flags it). Each command blocks until the report is printed; --no-wait returns the runId, --json prints the output.

Read the report

The final step output is a markdown table: class (close/stuck/judge), session label + id, idle time, RAM, verdict, confidence, reason, action. Key reading rules:

  • close rows are safe to auto-close; judge rows are what the judge saw.
  • Classify rows carry the typed verdict and its probabilities (p: active=0.84 blocked=0.08 …); analyze adds the free-text reason.
  • Verdicts: done|abandoned|blocked|needs-input|active. Only confident done/abandoned close (sessions stay resumable; transcripts preserved). blocked/needs-input only get flagged, never closed.
  • A judge error never closes anything. If many verdicts come back active confidence 0, the judge lane failed (check Jev key config jev.apiKey in ~/.agentproto/config.json, env JEV_API_KEY fallback).
  • RAM freed / still held is summarized at the end.

Read the full file on GitHub · 83 lines

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. 5d ago Changed · +8 lines 909a68202e25
  2. 13d ago First seen · 75 lines · 69 tokens per session scan A 94bd17aefff1

Subscribe to this mod's changes

session-steward is a skill published in the GitHub repository agentproto/ts (10 stars, last pushed yesterday), licensed Apache-2.0. It adds 69 tokens to every session and 943 once invoked, about $0.0003 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-10-03.