context-optimizer

Audit agent context window usage by parsing debug logs and profiling token consumption.

50|32|Updated Dec 8, 2025
One-click install
npx skills add https://github.com/jonathan-vella/azure-agentic-infraops-accelerator --skill context-optimizer-jonathan-vella
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: context-optimizer
Source: https://github.com/jonathan-vella/azure-agentic-infraops-accelerator/tree/main/.github/skills/context-optimizer
Command: npx skills add https://github.com/jonathan-vella/azure-agentic-infraops-accelerator --skill context-optimizer-jonathan-vella

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

This Skill helps reduce unnecessary token consumption by AI agents, leading to faster responses and lower operational costs.

Core Features & Use Cases

  • Context Auditing: Analyzes agent debug logs to identify token waste and redundant operations.
  • Optimization Recommendations: Provides actionable insights to improve context window efficiency and reduce latency.
  • Use Case: An agent is consistently taking too long to respond. Use this Skill to analyze its debug logs, pinpoint which parts of its context are most expensive, and get recommendations on how to trim them down.

Quick Start

Analyze the Copilot Chat debug logs in the default VS Code directory to identify context optimization opportunities.

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 usage in AI agent debug logs?

To reduce token usage in AI agent debug logs, you can audit agent context windows by parsing debug logs to profile token consumption and detect redundancy. This pinpoints expensive operations and provides recommendations to trim context.

What causes high token waste in AI agent context windows?

High token waste in AI agent context windows is caused by redundant operations and hand-off gaps. Auditing debug logs detects this redundancy and identifies which parts of the context are most expensive to carry.

Do I need Python to parse debug logs for context optimization?

Yes, you need Python 3.10 or higher to run the log parsing scripts required for context optimization. These scripts parse debug logs to profile token consumption and detect context redundancy.

How do I analyze Copilot Chat debug logs for token optimization?

To analyze Copilot Chat debug logs for token optimization, parse the logs stored in the default VS Code directory using Python scripts. This profiles token consumption and identifies opportunities to reduce latency.

Why is my AI agent taking too long to respond?

Your AI agent may be taking too long to respond due to unnecessary token consumption and bloated context windows. Parsing debug logs profiles token usage and provides recommendations to trim expensive context.

Can this Skill optimize Azure infrastructure or Bicep deployments?

No, this Skill cannot optimize Azure infrastructure, Bicep or Terraform code, architecture design, or deployments. It strictly focuses on auditing AI agent context windows by parsing debug logs and profiling token consumption.