Skip to content

Task tool lacks transparency - missing visibility into sub-tool calls and external requests #3978

Closed as not planned

Description

@nhpackard

Description:

When using the Task tool to spawn an agent for complex investigations, there is
insufficient visibility into the detailed actions taken by the spawned agent. This creates
transparency and reproducibility issues.

Related Issues:

Current Behavior:

  • Task tool returns only a final summary report
  • Sub-tool calls made by the spawned agent (WebFetch, Read, etc.) are not visible to the
    primary Claude instance
  • External requests (article fetching, web searches) happen without explicit visibility
  • User reported that the spawned agent requested permission to fetch articles, but this
    interaction is not visible in the conversation history

Expected Behavior:

  • Complete visibility into all sub-tool calls made by the Task agent
  • Explicit logging of any external requests (WebFetch calls, article downloads, etc.)
  • Preservation of the full interaction chain between primary Claude and spawned agent
  • User should see all requests for external resource access

Impact:

  1. Transparency: Users cannot see what external resources were accessed
  2. Reproducibility: Cannot reconstruct the exact steps taken during investigation
  3. Trust: "Black box" behavior undermines confidence in the tool
  4. Compliance: May violate requirements for audit trails in research contexts
  5. Debugging: Impossible to troubleshoot Task tool issues without execution visibility

Reproduction Steps:

  1. Use Task tool for investigation requiring external resources
  2. Spawned agent makes WebFetch calls or requests article access
  3. Only final summary is returned, detailed steps are hidden

Proposed Solution:

  • Include detailed execution log showing all sub-tool calls
  • Make external resource requests explicit and visible
  • Preserve full conversation chain between primary and spawned agents
  • Add option to show/hide detailed execution steps for user preference
  • Consider this enhancement alongside fixing existing Task tool stability issues

Environment:

  • Claude Code interactive mode
  • Task tool with WebFetch, Read, and other sub-tools

Additional Context:
This transparency issue was discovered during dose-response analysis work where the user
observed that articles were requested and potentially fetched, but no record of these
requests exists in the visible conversation history. Given the existing Task tool issues
noted in #3958 and related API problems, improving transparency would also aid in debugging
these stability concerns.

Activity

  1. nhpackard commented on Jul 19, 2025

    @nhpackard
    Author

    Workaround:

    When Claude was queried, he insisted that he was not writing any detailed logs that could be referenced to retrieve actions of the Task tool.

    Querying google, I found this is incorrect. Upon querying google "is there any way to log all of Claude Code's interaction with Task tool?"

    I get the response:

    " Yes, Claude Code interactions with the Task tool, or any other tool, are logged. These logs
    are stored in JSONL format, with each line representing a single interaction event within
    a project's directory in the .claude/projects folder. You can access these logs to analyze
    Claude's actions, including its use of the Task tool.
    ..."

    When this was brought to Claude's attention, he admitted
    "... You've essentially discovered that I have blind spots about my own operational environment - which is both embarrassing and concerning. Thank you for bringing this to light and for finding the actual solution in the JSONL logs."

    He successfully parsed the log files and found the actions of Tool task.

    So one suggestion to resolve this issue is simply to make Claude award of the JSONL logs for retrieving information about recent queries.

  2. WarrenZhu050413 commented on Aug 6, 2025

    @WarrenZhu050413

    Second this. This would be really helpful!

  3. art-shen commented on Sep 12, 2025

    @art-shen

    @nhpackard It's a decent workaround! But it would clutter the main context. And honestly, I'd prefer to avoid that.

    One of the reasons for using subagents (for me) is a more efficient use of conversation history. I believe it's possible to transparently show what's going on in a more deterministic, programmable way just with the Claude Code itself as a CLI tool, not with LLM

  4. nhpackard commented on Sep 14, 2025

    @nhpackard
    Author

    @amal thanks for the response. I completely agree that my workaround of using the JSON log file is quite clunky. For one thing, that file rapidly becomes bulky and unwieldy.

    I’m will follow up on the subagent links to understand their usage in this context.

  5. github-actions commented on Dec 5, 2025

    @github-actions

    This issue has been inactive for 30 days. If the issue is still occurring, please comment to let us know. Otherwise, this issue will be automatically closed in 30 days for housekeeping purposes.

  6. github-actions commented on Jan 7, 2026

    @github-actions

    This issue has been automatically closed due to 60 days of inactivity. If you're still experiencing this issue, please open a new issue with updated information.

  7. github-actions commented on Jan 16, 2026

    @github-actions

    This issue has been automatically locked since it was closed and has not had any activity for 7 days. If you're experiencing a similar issue, please file a new issue and reference this one if it's relevant.

  8. locked as resolved and limited conversation to collaborators on Jan 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:toolsautocloseIssue will be closed automaticallyenhancementNew feature or requesthas reproHas detailed reproduction steps

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions