‘Can we replace our authentication provider?’ is a decision question. Give it to an editing agent and you may get an impressive diff before anyone agrees on migration risk. When the unknowns matter, research first.

Decide how much answer you need
‘Where is login handled?’ needs a quick answer. ‘What breaks if we replace this provider?’ needs a research job with cited files, tests, configuration, migration paths and open questions. Ask for code only once someone can state the outcome and constraints. Canopy offers all three: the Companion for quick cross-project answers, research jobs that don't change code, and background tasks that deliver a draft PR.
Ask for evidence, not a verdict
Name the decision, repository scope and output format. Ask the investigator to separate facts from inferences: file paths and symbols, test names, configuration or deployment assumptions, and external docs for provider behavior. Anything unconfirmed from the checkout or a primary source is labelled unknown.
Keep the work read-only while you decide
Write ‘do not edit files, install packages, rotate credentials or change remote state’ in the request, then check the changed-file view afterward. Research jobs don't change code, but a regular CLI session follows its own permissions, so give it an explicit read-only scope.
Write a decision record people can resume
In a note or ticket, summarize options, evidence, trade-offs, unknowns and the next experiment. Link the research and source files instead of pasting the conversation. SpotSearch can find past material, but the record should stand alone when someone returns or switches CLIs.
Turn the decision into a small implementation
If you go ahead, split the migration into reversible steps: add an adapter around current auth calls with tests, migrate one low-risk path, then plan data and rollback. Give the agent one step, an isolated checkout, acceptance checks and a PR.
Copyable resources
Use when a change needs a decision before code.
Decision: Can we replace [current system] with [candidate] safely?
Scope: [repository and affected flows]
Do not edit files, install packages, change credentials or modify remote state.
Find: entry points, data contracts, tests, deployment assumptions, migration and rollback risks.
For each finding: cite file/path or primary source; mark observation vs inference; give confidence and unknowns.
Output: one-page option comparison, smallest useful experiment, questions a human must decide.
Afterward: save the result linked to the ticket or project note.Frequently asked questions
When is a Companion answer enough?
For a quick orientation or status question. Use a source-backed research job when the answer will drive a costly or hard-to-reverse change.
Will research start editing my repository?
Canopy research jobs keep findings without changing code. If you investigate in a normal CLI session, give it an explicit read-only scope and check the changed-file view afterward.