New advertisers: 50% off your first month with code FIRSTMONTHSee slots

Bounded, redacted session summaries saved locally when asked, or from a supported host's session-end transcript event.

skills.sh installs
680
GitHub stars
89
last updated
Jul 14, 2026
View on GitHub

What it does

  • Covers recording a session on request and a manual summary fallback when the host supplies no transcript
  • Includes the agent-playbook session-log command, which stores message counts, the last prompt, detected commands, files, and questions
  • Enforces redaction of credentials, tokens, private keys, and emails, and blocks repository-local writes unless explicitly selected
  • Designed for users who want a compact recovery artifact without persisting raw conversation history

Install

$ npx -y skills add zhaono1/agent-playbook --skill session-logger -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

Session Logger

Create a compact recovery artifact without treating raw conversation history as durable memory.

Use This Skill When

  • The user explicitly asks to save or record the current session.
  • A supported host invokes the Agent Playbook SessionEnd hook with a transcript path.
  • A later task needs a concise handoff artifact and the user has authorized writing it.

Do not silently persist raw transcripts, credentials, private customer data, or unbounded agent output. Host support and write authority must be visible; skill metadata alone does not execute a hook.

CLI Runtime Contract

Claude Code installation can invoke:

agent-playbook session-log

The command reads the host-provided JSONL transcript and stores only bounded, redacted details:

  • message counts;
  • the last user prompt, truncated after redaction;
  • up to 12 detected commands and file references;
  • up to 8 detected questions;
  • a hashed session reference and project identity.

By default, files are private local artifacts:

~/.agent-playbook/sessions/<project-id>/YYYY-MM-DD-<topic>.md

Details

Repository
github.com/zhaono1/agent-playbook
Categories
Memory & Context, Agent Workflow & Planning
First seen
May 16, 2026

More from zhaono1/agent-playbook

All 24

Similar to Session Logger

More Memory & Context