Agents In Use
What’s new todayLast update
108 use cases added today

How to use Claude to keep coding context clean

An author built separate-context research, Git, and Bash sub-agents that return condensed findings instead of full files, raw diffs, and logs, reporting a 90–95% token reduction on heavy operations.

Source published news.ycombinator.comAgent: Claude
FROM THE SOURCE

Original prompt

Shared by the source author. See source notes for context.

Clone https://github.com/houseworthe/house-agents . Detect my OS and copy the .claude directory to my current project. Verify all three agent files exist in .claude/agents/ directory. List available sub-agents to confirm they load. Test house-research by finding TODO comments.

Evidence at a glance

Sourced account
Source author
houseworth
Original account
Read the source ↗
Published
Source link checked
Reported result
The author reports a 90–95% token reduction on heavy operations and says the main instance remained focused on implementation.
Human involvement
The author tested the three implemented agents; the post does not describe detailed review criteria for their summaries.

A linked account supports attribution. It does not mean we independently reproduced its result.

Report an issue with this caseOpen correction email

Opens your email app with the case link included. Nothing is sent automatically.

How the agent did it

  1. Built a research sub-agent returning findings with file and line references.
  2. Built a Git sub-agent returning impact summaries grouped by severity.
  3. Built a Bash sub-agent extracting key command results and errors.

The author built three specialized Claude sub-agents to reduce the material entering the main coding conversation. Their problem was that codebase searches and large Git diffs filled the main context with thousands of tokens that the coordinating instance rarely needed. After several such operations, the author found there was little room left for implementation work.

The sub-agents ran in separate contexts and returned condensed summaries. The research agent searched codebases and documentation, reporting findings with file and line references rather than full file contents. The Git agent analyzed diffs and commits and grouped impact summaries by severity. The Bash agent ran commands and extracted useful information such as pass/fail counts and relevant errors from their output.

The author reported good testing results and a 90–95% token reduction on heavy operations, saying the main instance stayed focused on implementation. Three other agents, for MCP, screenshots, and data queries, remained unbuilt. The post also supplied an installation instruction covering cloning the repository, copying its Claude directory, verifying agent files, listing agents, and testing research with TODO comments. Who it's for: developers whose coding conversations repeatedly fill with search results, diffs, or command logs.

Prompt
Original prompt

Source: Hacker News · houseworth

Frequently asked questions

What did the three implemented sub-agents return?

The research agent returned condensed findings with file:line references; the Git agent returned impact summaries grouped by severity; the Bash agent extracted key command results and errors.

Were all six proposed sub-agents implemented?

No. The author had built research, Git, and Bash sub-agents. MCP, screenshot, and data-query agents were listed as ideas not yet implemented.

More details

Remaining steps

  1. Tested the sub-agents and reported token reductions on heavy operations.

About this account

The specialized sub-agents performed research, Git analysis and command processing in their own contexts and returned summaries.

Platform: Hacker News. Attribution: https://news.ycombinator.com/item?id=45587911. Prompt: Original (quoted from source). Sourced by the Agents In Use pipeline.

Credit: houseworth on Hacker News

Source published

Added to Agents In Use

Source checked

Tools and topics

Claude · house-research · house-git · house-bash

Context management · Subagents · Code research

Editorial completeness: 100/100. Measures documented fields, not agent performance or verified outcomes.