Canonical: https://botbento.com/usecases/condense-coding-context-before-an-ai-coding/
Format: Markdown representation of the public HTML page.

# Condense coding context before an AI coding session

[Coding](https://botbento.com/usecases/coding/) · Intermediate · Skill

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. 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.

## Quick answers

**What does it do?** Shrink prompt input while keeping the code details the model needs. Result: Condensed context pack.

**What does it need?** Tools: Terminal, Docs. Intermediate: some setup. The prompt includes an approval step.

**How do I run it?** When you ask: User shares code context. Copy the prompt below into a bot in BotBento.

## How it works

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

## Prompt to start with

```text
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.
```

## Tools it uses

Terminal, Docs

## Works with

BotBento

## Tags

coding, context, developer-tools, prompting

## Source

[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

Summarized in our own words. Any results described there are the authors’ own, not measured by BotBento.

Verified 2026-12-02: passed every automated gate and a second-model review (gemini-4-argon). Automated, not human review. [How verification works](https://botbento.com/usecases/verification/)

By BotBento Editorial · Added 2026-12-02 · Updated 2026-12-02 · [Suggest a correction](https://botbento.com/contact/)

## Related use cases

- [Coding agent context retriever with code-aware memory](https://botbento.com/usecases/coding-agent-context-retriever-with-code-aware/) — Finds relevant code and past decisions for your coding agent.
- [Extract codebase rules from developer session logs](https://botbento.com/usecases/extract-codebase-rules-from-developer-session-logs/) — Turn recurring coding errors into path-scoped repository guidelines
- [Summarize project architecture before coding](https://botbento.com/usecases/initializing-coding-sessions-with-system-architecture-contex/) — Pull service boundaries and dependencies into a short context brief before you code
