Skip to content

Agent not good at paging to solve truncated results. #726

Description

@rxgrant

Agent is not very good at paging to solve truncated results, despite having seen current stock instructions on how to do so.

Calling tool git_diff(status: "staged", paths: ["src/app.rs"])

I'm noticing the diff is truncated and there are gaps between the hunks I've
already seen. I need to examine the full file region between lines 1356 and 1542
to catch any changes I might have missed, but I'll need to see both the old and
new versions to understand what's actually changed.

The diff tool truncates. Let me read the app.rs region between the hunks I
haven't seen (lines 1356–1542) to find any change unrelated to #64's grouping.

Calling tool fs_read_file(path: "src/app.rs", start_line: 1356, end_line: 1545)

There is some tension between workflows that want long results and those that can be solved with searches instead. Every tool-refusal (haha) generates round-trip delays and nondeterministic paging-protocol dropout, which is noticable in cases where searches were not the more desirable approach.

Three paths appear evident right now:

  • in the reference tooling, keep the existing nudge towards targeted searches, and if a workflow wants long results then configure another tool that does not truncate;
  • make paging a much more foundational concept in JP and its tool integration, so that it can really be drilled into the models with early foundational instructions; or
  • muddle on until models follow existing instructions.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions