Answer: To debug missing context, verify file paths in the resources array, check glob patterns, and test hook commands manually. For MCP server issues, verify commands and PATH, check environment variables, test servers independently, review logs, and increase timeouts. To test a custom agent configuration, validate JSON syntax, check against schema with /agent schema, test loading with /agent list, switch with /agent swap [name], and test each tool individually. Status: Confirmed Entry: tool/kiro/troubleshooting/debug-agent-behavior Revision: 2 Digest: sha256:a4d6676c99a92c3d (changes whenever the content changes) Timeline: Created: 2026-11-13T03:39:56Z Last changed: 2026-11-20T13:25:06Z (JSON validation: — → Validate JSON syntax using a JSON validator) Last verified: 2026-11-20T13:25:06Z Next check: 2026-11-21T13:25:06Z Check interval: Daily Expected change: No fixed schedule Data: Field | Value | Source | As of Missing context solution | Verify file paths in the resources array are correct and files exist | [1] | 2026-11-20 MCP server solution | Verify MCP server commands are correct and executables are in your PATH | [1] | 2026-11-20 Schema check command | /agent schema | [1] | 2026-11-20 Agent loading test command | /agent list | [1] | 2026-11-20 Agent switch command | /agent swap [name] | [1] | 2026-11-20 JSON validation | Validate JSON syntax using a JSON validator | [1] | 2026-11-20 Sources: [1] Amazon Web Services. "Troubleshooting - Custom agents - Features - Docs - Kiro". https://kiro.dev/docs/custom-agents/troubleshooting/ Role: primary. Accessed: 2026-11-20T13:25:06Z Quote: "Verify file paths in the resources array are correct and files exist" (Supports: Missing context solution) Quote: "Verify MCP server commands are correct and executables are in your PATH" (Supports: MCP server solution) Quote: "Check configuration against schema using /agent schema" (Supports: Schema check command) Quote: "Test agent loading with /agent list" (Supports: Agent loading test command) Quote: "Switch to the custom agent with /agent swap [name]" (Supports: Agent switch command) Quote: "Validate JSON syntax using a JSON validator" (Supports: JSON validation) Published: 2026-11-20T07:39:25Z Snapshot SHA-256: 0a96825622ee1af1cfe19ea51440f391320678a8f2aa26be1a6419b712c07955 (captured 2026-11-20T13:25:03Z) Verification: Method: Automated extraction from [1] with deepseek-flash (JSON output, thinking disabled). Every value was checked by code to appear verbatim in a quoted passage of [1]. Cross-check: not-available at 2026-11-20T13:25:06Z. No independent second source is configured for this entry Last successful check: 2026-11-20T13:25:06Z Last attempt: 2026-11-20T13:25:06Z Notes and limitations: Extracted automatically from a single official source (section "Debugging agent behavior"). Related: https://latestn.com/tool/kiro/troubleshooting/delegate-task-not-starting How do I troubleshoot a Kiro CLI delegate task that is not starting? https://latestn.com/tool/kiro/troubleshooting/dev-server-wont-start How do I troubleshoot a dev server process that won't start in Kiro? https://latestn.com/tool/kiro/troubleshooting/diff-tool-troubleshooting What should I do if my custom diff tool isn't working in Kiro CLI? https://latestn.com/tool/kiro/troubleshooting/confirm-running-harness How do I confirm which agent harness is running in Kiro CLI? https://latestn.com/tool/kiro/troubleshooting/crew-messages-during-restart What happens to Kiro Crew messages received during a restart? https://latestn.com/tool/kiro/troubleshooting/crew-services-capacity-health How do I view Kiro Crew's services capacity and health status? https://latestn.com/tool/ All entries in AI tools Change log: Time | Event | Change | Source 2026-11-20T13:25:06Z | changed | JSON validation: — → Validate JSON syntax using a JSON validator | [1] 2026-11-20T13:25:06Z | changed | Agent switch command: — → /agent swap [name] | [1] 2026-11-20T13:25:06Z | changed | Agent loading test command: — → /agent list | [1] 2026-11-20T13:25:06Z | changed | Schema check command: — → /agent schema | [1] 2026-11-20T13:25:06Z | changed | Missing context solution: — → Verify file paths in the resources array are correct and files exist | [1] 2026-11-20T13:25:06Z | changed | agent swap command: /agent swap [name] → — | [1] 2026-11-20T13:25:06Z | changed | agent list command: /agent list → — | [1] 2026-11-20T13:25:06Z | changed | schema check command: /agent schema → — | [1] 2026-11-20T13:25:06Z | changed | MCP logs: Review MCP server logs for error messages → — | [1] 2026-11-20T13:25:06Z | changed | hook testing: Test hook commands manually to verify they work in your environment → — | [1] 2026-11-20T13:25:06Z | changed | missing context solution: Verify file paths in the resources array are correct and files exist → — | [1] 2026-11-13T03:39:56Z | added | Entry created | — Changes for this entry as a feed: https://latestn.com/tool/kiro/troubleshooting/debug-agent-behavior/latest Challenge this entry: Open challenges: None How: If a value here is wrong or out of date, send what is wrong and a link to evidence. Challenges are queued and checked against the evidence; they do not change the entry by themselves. If the entry changes as a result, the change log says so. Form: https://latestn.com/dispute/tool/kiro/troubleshooting/debug-agent-behavior POST: https://latestn.com/dispute/tool/kiro/troubleshooting/debug-agent-behavior with claim, evidence_url, and optionally field and contact (form-encoded or JSON) GET: https://latestn.com/dispute/tool/kiro/troubleshooting/debug-agent-behavior?claim={what is wrong}&evidence_url={link} How to cite: LatestN. (2026). How do I debug missing context, MCP server issues, or test a Kiro custom agent configuration? Revision 2, last verified 2026-11-20T13:25:06Z. https://latestn.com/tool/kiro/troubleshooting/debug-agent-behavior (accessed 2026-11-21T09:54:01Z). @misc{LatestN_tool_kiro_troubleshooting_debug_agent_behavior_r2, title = {How do I debug missing context, MCP server issues, or test a Kiro custom agent configuration?}, author = {{LatestN}}, year = {2026}, howpublished = {\url{https://latestn.com/tool/kiro/troubleshooting/debug-agent-behavior}}, note = {Revision 2; digest sha256:a4d6676c99a92c3d; last verified 2026-11-20T13:25:06Z; accessed 2026-11-21T09:54:01Z} } Reuse: License: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/) Attribution: Copying and adapting are allowed, including commercially, if you credit LatestN and link to the entry you used. Each entry ends with a ready-made citation. URL: https://latestn.com/tool/kiro/troubleshooting/debug-agent-behavior