_session-safety

Estimate output size and segment large session results into files.

2|Updated Nov 2, 2025
One-click install
npx skills add https://github.com/wxy/SilentFeed --skill session-safety
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: _session-safety
Source: https://github.com/wxy/SilentFeed/tree/main/.copilot/skills/_session-safety
Command: npx skills add https://github.com/wxy/SilentFeed --skill session-safety

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill prevents long session outputs from causing failures by proactively estimating size and segmenting results into files when needed.

Core Features & Use Cases

  • Preemptive size estimation to avoid session timeouts.
  • Segment writes to files using a file-output guard when output is large.
  • Clear progress and confirmation messages without duplicating full content.

Quick Start

Before starting a task that may generate long output, enable segmentation by estimating the size and writing segmented results to files when the threshold is exceeded.

Frequently Asked Questions about _session-safety

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I prevent long session outputs from causing failures?

To prevent long session outputs from failing, proactively estimate the output size and segment large texts into files. This method checks size before generation and writes chunks to files when a 5KB threshold is exceeded.

What is the best way to chunk large text outputs into files?

The best way to chunk large text outputs is to enforce pre-generation size checks and use segmented writes via create_file and apply_patch. This coordinates with a file-output guard to split content when it exceeds the 5KB threshold.

When do I need to segment session outputs into files?

You need to segment session outputs into files when a task may generate large texts, logs, or multi-file content that risks session timeouts. Segmentation is triggered when the estimated output size exceeds 5KB.

How do I write segmented files using apply_patch and create_file?

You write segmented files by estimating the total output size first, then using create_file and apply_patch to write chunks. A file-output guard coordinates these segmented writes once the 5KB threshold is reached.

Does output chunking affect progress messages during file writing?

Output chunking does not duplicate full content in progress messages. It provides clear progress and explicit confirmation messages while segmented writes to files are handled by the file-output guard.

What are the limitations of using a 5KB threshold for output segmentation?

A limitation of using a 5KB threshold for output segmentation is that content below this size will not be chunked into files. This threshold is a fixed trigger for the file-output guard, so smaller outputs remain in the session.