context-efficient-tools

Filter, aggregate, and summarize large tool outputs to reduce token usage.

1|Updated Mar 5, 2026
One-click install
npx skills add https://github.com/baphled/dotopencode --skill context-efficient-tools
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: context-efficient-tools
Source: https://github.com/baphled/dotopencode/tree/main/skills/context-efficient-tools
Command: npx skills add https://github.com/baphled/dotopencode --skill context-efficient-tools

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill prevents large tool outputs from consuming valuable context window space, significantly reducing token usage and improving model efficiency.

Core Features & Use Cases

  • Context Window Management: Filters, aggregates, and summarizes large tool results before they reach the model.
  • Token Reduction: Achieves substantial savings (up to 98.7%) by processing tool outputs in code.
  • Use Case: When a search tool returns thousands of results, this skill will summarize them, provide counts, and potentially store the full list to a file, passing only essential information to the model.

Quick Start

Use the context-efficient-tools skill to process the output of a command that might produce a large amount of text.

Frequently Asked Questions about context-efficient-tools

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

FAQPage Schema
How do I prevent large tool outputs from consuming the context window?

To prevent large tool outputs from consuming the context window, apply filtering, aggregation, and summarization in code before returning results to the model. This approach processes large datasets externally, passing only essential information to reduce token usage.

What is the best way to save tokens when chaining multiple tool calls with large intermediate results?

The best way to save tokens when chaining tool calls with large intermediate results is to summarize and store the full list externally, passing only essential counts and information to the model. This prevents context bloat during sequential operations.

How do I handle verbose bash command output to reduce token usage?

To handle verbose bash command output and reduce token usage, process the text in code to filter and aggregate the results before they reach the model. This ensures only relevant data enters the context window.

Can I filter search tool results that return thousands of entries?

Yes, you can filter search tool results that return thousands of entries by applying code-based processing. The system will summarize the results, provide counts, and store the full list to a file, passing only essential information to the model.

When should I use context filtering and summarization for tool outputs?

You should use context filtering and summarization for tool outputs when tools return large datasets, when chaining multiple tool calls with large intermediate results, or when bash commands produce verbose output that would otherwise cause context bloat.

Does processing tool outputs in code actually reduce token consumption?

Yes, processing tool outputs in code reduces token consumption by up to 98.7%. By adhering to principles of filtering before returning, summarizing, storing externally, and progressive disclosure, significant token savings are achieved.