A customer-facing engagement for context management and token optimization
This repository contains source material for a practical developer workshop on context management, token optimization, agent customization, tool/MCP hygiene, model choice, AI evals, usage visibility, and sustainable team practices.
Start with labs/README.md for 1-hour, 2-hour, and 4-hour delivery outlines, then use the chapter files in order or as modular source material.
This repository also includes a static JavaScript sample app for GitHub Copilot Usage-Based Budgeting.
To run it locally:
python3 -m http.server 8080Then open http://localhost:8080 in a browser.
This repo now includes a minimal set of Copilot customization assets for building workshop-ready token optimization content:
.github/copilot-instructions.mdfor concise repository guidance.github/agents/workshop-content-builder.agent.mdfor GPT-5.5 content creation across labs, decks, and teaching materials.github/agents/cost-rubber-duck.agent.mdfor Claude Opus 4.7 second-opinion reviews.github/prompts/build-workshop-content.prompt.mdfor repeatable workshop-content generation.github/skills/source-material-ingestion/SKILL.mdfor.pptxand.csvingestion workflows.github/skills/workshop-authoring/SKILL.mdfor labs, decks, and facilitator material workflows.vscode/mcp.jsonfor Microsoft Learn and source-file ingestion via MarkItDown MCP
The repo uses small project skills for workflows that should only load when relevant. That keeps always-on instructions shorter and aligns with the token-optimization guidance taught by the workshop.
-
The explicit file-ingestion tool is
markitdownin.vscode/mcp.json. -
This is not a native built-in reader in the repo by itself.
.vscode/mcp.jsononly declares the MCP server the client should use. -
Use MarkItDown to open and convert both
.pptxand.csvfiles into markdown before reusing them in labs, prompts, or presentations. -
Install MarkItDown MCP with PPTX support before using the PowerPoint reader flow:
pip install "markitdown[pptx]" markitdown-mcp -
After the MCP server is installed and your Copilot client loads workspace MCP servers, pass in a
.pptxor.csvfile by attaching the file or by asking the agent to read that file path with themarkitdowntool. -
Use Microsoft Learn MCP for current Microsoft guidance.
-
CSV support is included in MarkItDown's core text-based format handling.
-
Treat PPTX conversion as full textual extraction for slides, tables, and reusable deck content, not full-fidelity inspection of animations, embedded media, or every binary object.
-
Use the agent's web tools for current GitHub documentation when the answer depends on latest behavior.
- Help customers reduce avoidable AI usage and improve answer quality.
- Build trust after billing and usage model changes by showing transparent, practical controls.
- Give attendees repeatable habits they can apply in other projects.
- Introduce eval-driven improvement so teams can measure whether changes help.
labs/README.md— overview, prerequisites, and timed agendaslabs/01-context-management-basics.mdlabs/02-instructions-and-agent-customizations.mdlabs/03-mcp-and-tool-optimization.mdlabs/04-chat-session-management.mdlabs/05-model-choice.mdlabs/06-chat-history-and-memory.mdlabs/07-usage-and-billing-visibility.mdlabs/08-ai-evals-and-observability.mdlabs/09-ideal-workshop-repo.mdlabs/10-next-steps-and-extra-topics.md