context-optimizer

Parse Copilot debug logs to detect context inefficiencies and token waste.

Updated Mar 26, 2026
One-click install
npx skills add https://github.com/anevjes/agenticinfraops --skill context-optimizer-anevjes
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: context-optimizer
Source: https://github.com/anevjes/agenticinfraops/tree/main/.github/skills/context-optimizer
Command: npx skills add https://github.com/anevjes/agenticinfraops --skill context-optimizer-anevjes

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill identifies inefficiencies and redundancies in multi-agent system context usage, reducing token waste and improving performance.

Core Features & Use Cases

  • Log Parsing: Extracts detailed structured data from Copilot debug logs for analysis.
  • Token Profiling: Estimates token costs per turn to identify optimization opportunities.
  • Redundancy Detection: Finds duplicate file reads and overlapping instructions to streamline workflows.
  • Hand-Off Analysis: Pinpoints points where agents should delegate tasks to subagents, reducing context bloat.
  • Use Case: Use this Skill to analyze debug logs and improve your AI agent’s efficiency by minimizing unnecessary context load.

Quick Start

Run the log parser script with your Copilot debug logs to generate a detailed efficiency report and identify token waste.

Frequently Asked Questions about context-optimizer

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

FAQPage Schema
How do I reduce token waste in multi-agent AI systems?

To reduce token waste in multi-agent AI systems, parse Copilot debug logs to identify context window inefficiencies, overlapping instructions, and redundant file reads. This analysis streamlines workflows and lowers operational costs.

What is agent context window optimization and when do I need it?

Agent context window optimization is the process of identifying and removing redundant instructions and unnecessary context loads. You need it when multi-agent AI workflows experience high token costs, inefficiencies, or context bloat during hand-offs.

How do I parse Copilot debug logs to profile token usage?

You parse Copilot debug logs by running a Python 3.10+ script that extracts structured data from your VS Code logs. This generates a detailed efficiency report estimating token costs per turn and highlighting optimization opportunities.

Can I analyze agent hand-off points to reduce context bloat?

Yes, you can analyze agent hand-off points by parsing debug logs to pinpoint where tasks should delegate to subagents. This hand-off analysis actively reduces context bloat and streamlines multi-agent workflows.

Do I need Python to detect redundant file reads in Copilot logs?

Yes, you need Python 3.10+ to run the log parser script that detects redundant file reads. The script requires access to your VS Code Copilot debug logs to identify overlaps and streamline workflows.

What are the limitations of using debug log parsing for agent optimization?

The main limitation is the strict dependency on Python 3.10+ and access to VS Code Copilot debug logs. Optimization analysis is constrained to the data present in those logs, meaning unlogged interactions cannot be profiled.