Append only sidechain transcripts

From ychampion/cskill-agents · View interactive version

Append only sidechain transcripts is an AI agent skill from the GitHub repository ychampion/cskill-agents. Persist every subagent transcript entry by appending with explicit parent UUIDs so transcripts become a linear, resumable sidechain.

How to use this skill

Skill file

SKILL: Append-Only Sidechain Transcripts

Domain: session-storage

Trigger: Subagent transcript persistence must stay append-only so forked history can be resumed and sidechain readers see messages in strict chronological order.

Source Pattern: Distilled from reviewed subagent orchestration, isolation, and lifecycle implementations.

Core Method

Model each subagent transcript as an append-only event log with explicit ordering links or sequence checkpoints. Persist the seed messages once at startup, then append only durable milestones as the run progresses, ignoring ephemeral stream fragments that are not worth replaying later. Advance the transcript cursor only after a durable record is safely written so resumes, forks, and sidechain readers can reconstruct history in strict order without duplication.

Key Rules

Example Application

When a workflow manager resumes a paused child agent, it can replay the append-only transcript to rebuild context exactly once and continue from the last durable checkpoint.

Anti-Patterns

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.