Investigate a production bug
Give Autohand Code logs, a stack trace, or user report and ask it to find the likely failing path before patching.
Investigate a production bug with Autohand Code is an incident workflow that starts from a production symptom, traces route, data, deploy, and state paths, then proposes a minimal fix and verification plan.
At a glance
| Question | Answer |
|---|---|
| Best for | route failures, bad data paths, regressions, logs, stack traces, and behavior that only appears in production |
| Primary inputs | Exact error, URL, account shape, timestamp, or stack trace; Recent deploys, feature flags, and environment differences; Hotfix scope, rollback options, and production-check constraints |
| Autohand Code returns | A root-cause summary, patch, and focused verification path. |
| Avoid when | there is no symptom, timestamp, affected account, log, or reproducible signal |
How Autohand Code handles this workflow
- Connects the report to route handlers, state, data stores, and recent changes.
- Separates confirmed evidence from hypotheses.
- Proposes the smallest fix that explains the observed symptom.
- Names focused verification plus production checks after deploy.
Best inputs
- Exact error, URL, account shape, timestamp, or stack trace
- Recent deploys, feature flags, and environment differences
- Hotfix scope, rollback options, and production-check constraints
Strong prompt
autohand -p "Trace this production bug from the report to the code path and propose a fix"
Autohand Code CLI options
- Run
autohand -p "Trace this production bug from report to code and propose a fix"with logs, URL, timestamp, and deploy context. - When
slash_goalis enabled, use/goal <incident objective>when the investigation needs trace, patch, verification, and post-deploy checks in one thread. - Use
--add-dirwhen the incident crosses web, API, worker, or infra repositories.
Review before accepting
A strong incident answer includes root cause, evidence, patch scope, verification command, and what to watch after release.
Source and validation signals
Autohand AI maintains this workflow as first-party product guidance for Autohand Code. Use the Autohand Code CLI Playbook, CLI reference, and configuration reference when choosing between interactive mode, command mode, auto-mode, feature-enabled /goal, /settings, skills, MCP, and permission settings. The related resources below link to product docs and tutorials for the workflow, and the final answer should name repository-specific files, commands, outputs, or docs that a reviewer can verify.
Frequently asked questions
What is Investigate a production bug with Autohand Code?
Investigate a production bug with Autohand Code is an incident workflow that starts from a production symptom, traces route, data, deploy, and state paths, then proposes a minimal fix and verification plan.
When should a team use Investigate a production bug?
Use it when fixing the wrong layer would create more risk than tracing first.
What evidence should reviewers check for Investigate a production bug?
A strong incident answer includes root cause, evidence, patch scope, verification command, and what to watch after release.