Problem Statement
Stage: Context Engineering
The repository is larger than the context window.
Deliverable
A relevance-first context pack that stays within budget.
Input and output contract
First line is token budget; remaining lines are file|tokens|relevance. Greedily select by relevance descending then filename.
Acceptance criteria
- Never exceed the budget.
- Use deterministic ordering.
- Print selected files and TOTAL tokens.
Suggested vibe loop
Read AGENTS.md, connect your Ollama or OpenAI-compatible provider in the browser, and ask the agent to restate the contract and make one small verifiable change. Watch edits stream into app.py while the editor is locked, then review the result and run the visible example. Keep the checkpoint when the evidence is correct or use Undo to restore it. The browser-client agent does not require an administrator gateway or API key.