Context Pack
Designed, integrated, independently refactored, and continuously maintained by TIKAZ.
Inputs and routing
Accept one or more files, folders, code trees, logs, structured data, or converter-produced Markdown plus a concrete task. Use text for confident text-first material, hybrid for bounded task-relevant visuals or complex tables, and source when extraction cannot preserve important evidence.
Workflow
Own canonical ingestion, fidelity profiling, exact deduplication, evidence selection, and final pack size. First run profile or let pack profile automatically:
text: canonical Markdown is sufficient;hybrid: use Markdown for text and a bounded visual-evidence queue for informative images or complex tables;source: keep the original asset/page path when safe extraction cannot preserve task-relevant information.
Do not trigger vision for a logo, repeated icon, background, or every image merely because it exists. When the queue contains pending-vision items and the host can inspect images, resolve the referenced item, record an anchored observation plus uncertainty, and keep the original reference. When the capability is unavailable, leave it pending or recommend the source file; never invent a description.
Profile first, protect literal facts and anchors, deduplicate only exact or formatting-only repetition, select task-relevant evidence, and assemble one task-ready artifact in this order:
- task and expected output;
- selected mode and estimated budget;
- confirmed constraints and protected facts;
- exact evidence excerpts with source anchors;
- decisions, completed work, and current state;
- conflicts and open questions;
- omitted-anchor inventory and verification limits.
The pack must distinguish exact source text, structured state, and inference. It must remain useful without the surrounding chat. Count the complete artifact against the budget. If essential protected evidence cannot fit, return a visible budget conflict instead of silently exceeding the limit.
Output contract
Return <directory>/packs/current-task.context.md with profile.json, visual-evidence.json, context-cost-ledger.json, canonical files, indexes, and savings-report.md. Distinguish exact excerpts, structured state, inference, omissions, and pending visual evidence.
Validation and fallback
Count the complete artifact against the budget and verify protected facts plus selected anchors. If a converter or vision host is unavailable, leave evidence pending or preserve the source reference. Never invent a visual description. If essential evidence cannot fit, report a visible budget conflict.
Example
Use context-pack on these release notes and logs. Build an 800-token pack for regression review, keep commands and versions exact, and list omitted anchors.
Run python scripts/tikaz_context.py pack --input <path> --query <task> --budget <tokens> --visual-budget <items> --output <directory>.