Custom agents receive no tools in IDE 1.0.437: only `disclose_context` (agent mode) or protocol-only tools (sub-agent)
Before opening, please confirm:
- [x] I have searched for duplicate or closed issues
Operating System
windows 11
Kiro Version
1.0.437
Bug Description
Custom agents defined in .kiro/agents/.json receive no usable tools in Kiro IDE 1.0.437, despite being configured with "tools": [""]. The agent loads correctly (its system prompt is applied and workspace steering appears under "Included Steering"), but its tool set is reduced to context or protocol tools only.
WHAT ACTUALLY HAPPENS
Case A - agent selected in the agent picker: the agent has exactly one tool. Asked to enumerate them, it reports: "In this session my tool set contains a single tool: disclose_context. I have no file reading, no file writing, no workspace search, no shell execution, and none of the MCP tools." The session export confirms it: usage_summary reports "usedTools": ["disclose_context"] as the only tool used across the turn.
Case B - same agent invoked as a sub-agent: it has only protocol tools. From its reasoning: "The only tools actually available to me here are disclose_context, subagent_response, report_progress, and user_input." It also notes that a tool referenced in its own prompt is absent from the function list: "executePwsh (referenced in my prompt but not present in the available function list)".
The observed set roughly corresponds to the context tool category only, not to ["*"].
WHAT STILL WORKS
- The agent loads: its system prompt is applied (verified by asking it to quote a detail only the prompt contains).
- Workspace steering with inclusion: always is loaded and shown under "Included Steering".
- disclose_context works: the agent can pull in manual steering files.
- Built-in sub-agents (context-gatherer, introspect) invoked from the default agent work normally in the same session, reading files and running searches.
- The default agent has the full tool set and works normally.
So the failure is specific to agents loaded from .kiro/agents/, in both usage modes.
SCOPE
Reproduced by multiple users, on multiple IDE versions, including on an agent whose configuration has not been modified for months (verified via git log; the deployed file is byte-identical to the source). A full IDE restart with a version upgrade changed nothing.
CONFIGURATION (representative)
{ "name": "my-custom-agent", "description": "...", "prompt": "file://./my-custom-agent-prompt.md", "tools": [""], "allowedTools": ["read", "write", "shell", "knowledge", "subagent"], "resources": [ "file://.kiro/steering/**/.md", "file://docs/some-guide.md" ], "model": "claude-opus-5" }
No excludedTools, no toolsSettings, no hooks, no permissions block. JSON is valid, the prompt file exists and is applied, and all resources paths resolve to existing files.
Steps to Reproduce
Case A - agent selected in the agent picker
- Create a workspace agent in .kiro/agents/ with "tools": ["*"] and "allowedTools": ["read","write","shell","knowledge","subagent"]
- Open a NEW chat and select it in the agent picker
- Ask it anything requiring a tool, e.g. "read src/main.py and summarise it"
Case B - same agent invoked as a sub-agent
- In a new chat with the DEFAULT agent, ask it to delegate: "use the my-custom-agent agent to analyse TICKET-123"
- The default agent spawns the sub-agent
Notes:
- A full IDE restart does not help.
- "Restore" inside an existing session does NOT reload agent configuration, so configuration changes must be tested in a fresh chat. This initially masked our test results.
Expected Behavior
Per the Configuration reference, "tools": ["*"] includes all available tools (built-in and MCP). Per "Invoking as sub-agents", the sub-agent uses that agent's tools and permissions configuration. In both cases the agent should have the full tool set, with approval prompts for anything not listed in allowedTools.
Conversation ID
No response
Additional Context
RULED OUT
- Config regression - reproduced on an agent unmodified for months (verified via git log); the deployed file is byte-identical to the source.
- Invalid JSON / missing prompt - all agent files parse, all prompt targets exist.
- tools field form - tried ["*"] and an explicit list (["read","write","shell","subagent","@my-mcp-server"]): same result.
- allowedTools - tried a narrow list and the full list: same result. Per docs it should only affect auto-approval, not visibility.
- includeMcpJson - tried true and omitted: same result. Also relevant that the missing tools include executePwsh, unrelated to MCP.
- excludedTools / toolsSettings / hooks - none present in the affected agents.
- Permissions - no managed-settings.json under C:\ProgramData\Kiro; user and workspace permissions.yaml contain only allow rules; KIRO_HOME unset. Per docs, permissions control what tools may do, not their presence in the function list.
- Stale config - a full IDE restart (with a version upgrade) changed nothing.
- Resource loading - removing a resource with a non-standard file extension changed nothing.
IMPACT
Every workspace agent becomes unusable, in both agent-picker and sub-agent mode. Workflows that delegate to a specialised agent stop at the first tool call. The workaround is to have the default agent perform the work directly, without delegation, which loses the specialised agent's prompt and preloaded resources.
POSSIBLY RELATED / DUPLICATES CHECKED
#6714 - "custom agents with allowedTools specified in their configuration are not actually loading those tools" (open). Similar symptom, but not the same case, and I don't think this is a duplicate:
- #6714 is on kiro-cli 1.28.1; this report is on IDE 1.0.437 (and reproduced on an earlier IDE version).
- In #6714 the agent was created with --allowed-tools and tools appears not to be set. Since allowedTools governs auto-approval rather than visibility, that report may legitimately resolve as "incomplete configuration - set tools". Here tools: ["*"] is explicitly set, so that resolution would not apply.
- #6714 does not cover the sub-agent case (protocol-only tools). If the two turn out to share a root cause, happy to have this closed as a duplicate - the ruled-out list above should still be useful there.
#9512 - "execute_pwsh tool unavailable after Kiro update": terminal tool disappearing from the available tool set after an update, same workspace.
#7930 - "Sub-agents ignore allowedTools": the symmetric problem (sub-agent exposing more tools than configured), which suggests tool propagation to sub-agents has been fragile before.
#9490 - "unable to use a custom agent": custom agent configuration not picked up as documented.
SIDE NOTE ON DOCUMENTATION
Two pages contradict each other on the hooks field: "agent config changes" (IDE 1.0) states it is CLI-only and that "IDE ignores agents containing this field", while the configuration reference states both CLI and IDE accept it. Worth clarifying regardless of this bug.
🤖 Potential Duplicate Detected
This issue appears to be similar to:
- #11150: Custom agents invoked as sub-agents receive no operational tools (regression since ~mid-August 2026) (95% similar)
- #11142: [CLI v3] Custom agents only get semantic_reviewer as orchestrate_subagent role instead of full set (82% similar)
- #7930: kiro-cli 2.1.1: Sub-agents ignore allowedTools — execute_bash and use_aws exposed despite agent config restrictions (82% similar)
What happens next?
- ⏰ This issue will be automatically closed in 3 days
- 🏷️ If this is not a duplicate, you can prevent automatic closure by adding a comment or reacting with 👎 to this message.
- 💬 Comment on the original issue if you have additional information
Why is this marked as duplicate? Both issues report the same core bug: custom agents invoked as sub-agents receive no operational tools (only protocol/context tools like disclose_context, subagent_response, report_progress). Both cover the same two failure modes (agent picker and sub-agent invocation), both confirm the agent prompt loads correctly while tools are missing, and both explicitly rule out configuration errors as the cause. The new issue is on Windows/IDE 1.0.437 while #11150 is on macOS, but the symptoms, scope, and root cause are essentially identical.
This issue has been automatically closed as it appears to be a duplicate of #11150.
If you believe this is incorrect, please comment on this issue and a maintainer will review it.