Agent Engineering

Troubleshooting

Copy page

Fix common issues with sub agents.

If your sub agent gives weak or inconsistent results, you usually do not need a full prompt rewrite. Start by matching symptoms, apply one targeted prompt fix, and testing again.

Quick symptom picker

If you see thisStart with
Silent assumptions or over-questioningAmbiguity and assumptions
Conflicting sources handled poorlyEvidence and source quality
No escalation when blockedDecision boundaries and risk
Long, repetitive responses with buried findingsOutput clarity and structure
Only some list items processedDeterministic operations
Date filtering is inaccurateDeterministic operations

Copy-paste guardrails by category

Use these snippets as starting points.

Common issues and fixes

Ambiguity and assumptions

Evidence and source quality

Decision boundaries and risk

Output clarity and structure

Deterministic operations

Adding fixes to your prompt

You can add these guardrails in three ways. If you are new to prompt writing, start with Option A.

Option A: Dedicated troubleshooting section

## Prompt pitfalls to avoid

- If requirements are unclear on a high-impact decision, ask before proceeding.
- When sources conflict, acknowledge the conflict and separate evidence from inference.
- Lead with key findings and avoid repeated wording.

Option B: Weave fixes into operating principles

## Operating principles

- Clarify before action on high-impact ambiguity.
- Weigh evidence by source authority and relevance.
- Match confidence to certainty and provide options when needed.

Option C: Hybrid

Use operating principles for defaults, then add a short "watch-outs" block near the end of the prompt.