Instruction file imported from prakashgarg91/Truck_Opti (
.github/instructions/tool-selection.instructions.md). Copyright stays with the author.
Tool Selection And Validation
- Use
AGENTS.mdfor always-on workspace rules. Do not create a second workspace-widecopilot-instructions.mdin this repo. - Use
.github/instructions/*.instructions.mdfor targeted guidance,.github/agents/*.agent.mdfor specialist subagents, and.github/hooks/*.jsononly for short deterministic automation. - Prefer dedicated workspace tools over shell shortcuts when they exist:
- use file, search, and symbol tools for codebase context and exact references
- use symbol-aware rename and usages tools for public API or export renames
- use diagnostics tools for compile or lint errors
- use patch-based file edits for manual changes
- use terminal commands for builds, tests, audits, and git operations
- When semantic workspace search is unavailable, unregistered, or clearly not returning usable workspace results, use the Roo code index / Roo bridge retrieval surface before falling back to grep, regex, or broad raw-file reads.
- Before changing architecture, launch flow, or governance behavior, read the relevant
0.dev-matrixdocs instead of inferring intent from filenames alone. - After edits that affect public APIs, module boundaries, repo workflow, or validation scripts, run the strongest relevant repo checks and record exact evidence.
- If the task mentions imports, exports, modules, hooks, plugins, skills, agents, or registration drift, also load the module reconciliation instruction or use the
System Reconcileragent.