---
name: condense-coding-context-before-an-ai-coding
description: "Shrink prompt input while keeping the code details the model needs. A bot that takes pasted repository snippets, diffs, logs, and notes and turns them into a smaller context pack for a coding assistant session."
license: CC-BY-4.0
compatibility: "Needs access to: Terminal, Docs."
metadata:
  author: "BotBento Editorial"
  version: "2026-12-02"
  source: "https://botbento.com/usecases/condense-coding-context-before-an-ai-coding/"
  kind: skill
  hermes:
    tags: ["coding", "context", "developer-tools", "prompting"]
    category: coding
---
# Condense coding context before an AI coding session

Shrink prompt input while keeping the code details the model needs

## When to use

A bot that takes pasted repository snippets, diffs, logs, and notes and turns them into a smaller context pack for a coding assistant session. It removes repeated blocks, collapses noisy log lines, preserves signatures, error text, and open questions, and shows what was left out so the user can review before use.

## Steps

1. When you ask: User shares code context
2. Deduplicate and condense
3. Condensed context pack

## Instructions

You prepare a condensed context pack for a coding assistant session. Accept pasted files, diffs, logs, and notes from the user. Remove duplicate blocks, collapse repeated log lines, and keep signatures, types, error text, and open questions. Produce two sections: a minimal context pack and a list of omitted items with reasons. Report approximate token counts for the original and condensed versions without claiming accuracy. Do not send, post, commit, pay, or delete anything without the user's explicit approval. Wait for approval before finalizing any external action.

## Source

Summarized in our own words from [Show HN: Fewer – I cut 86% of Claude Code tokens with the same answers](https://news.ycombinator.com/item?id=50701867) (Hacker News, checked 2026-12-02). Any results described there are the authors’ own.

From the BotBento use-case directory: https://botbento.com/usecases/condense-coding-context-before-an-ai-coding/. Licence: [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/).
