Budget-Aware Large-Context Research via Veda/AGY
Core Principle
Route large-context research through budget-aware Veda AGY Gemini tiers, the smallest tier that can answer the question, while direct AGY Claude is reserved for architecture planning and review.
When to Use / NOT
Large, multi-file, or project-wide analysis exceeds the local context window: codebase-wide searches, multi-file comparisons, pattern discovery, feature verification across many files, or research that benefits from a second model.
NOT, when the question fits the local window; when routing AGY Claude through Veda while the adapter still injects --effort (call direct AGY instead); when Veda is asked to edit files.
Host-adapted tiers
Use the smallest AGY Gemini tier that can answer the question:
gemini-lite→gemini-3.6-flash-low: repository maps and cheap discovery.gemini-mid→gemini-3.6-flash-medium: context curation and follow-ups.gemini-ui→gemini-3.6-flash-high: frontend audits and UI-specific review.gemini-pro-low→gemini-3.1-pro-low: cross-system synthesis.gemini-pro→gemini-3.1-pro-high: only when the lower tiers leave a named gap.
These are host-local aliases. Confirm them with veda models --json; do not assume they exist on another machine.
Workflow
- Select a bounded file set with
veda sel add; Veda does not automatically load.pi/skills. - Start with
gemini-liteandrepo-scout; escalate togemini-midorgemini-ui, thengemini-pro-lowonly on a named gap. - Use
context-curatorbefore any load-bearing architecture call andfrontend-auditorfor UI work. - Give the compact packet plus authoritative files to direct AGY Claude Opus for architecture planning when the decision is consequential; use direct AGY Sonnet for cheaper critique.
- Capture long Veda output with
-oto disposable/tmpstorage, or persist to.pi/work/only through a Schema transaction. - Keep source paths, exact calls, dates, and confidence levels in the final evidence ledger.
veda -S <session> sel clear
veda -S <session> sel add <bounded-files>
veda -S <session> -m gemini-lite -p repo-scout 'Map selected files and cite gaps.'
veda -S <session> -m gemini-mid -p context-curator 'Compress selected findings into a handoff packet.'
Red flags
Unscoped selections, jumping to gemini-pro without a named gap, asking Veda to edit files, treating synthesis as primary evidence, or routing AGY Claude through Veda while the adapter still injects --effort.
Verification
Capture long Veda output with -o to disposable /tmp storage, or persist to .pi/work/ only through a Schema transaction. Keep source paths, exact calls, dates, and confidence levels in the final evidence ledger.
References
Detailed reference material:
references/workflow.md