Repository navigation
Replies: 1 comment
|
One datapoint for the "repeat searches in the same workspace shouldn't re-scan the tree" half: the Pi ecosystem's fuzzy finder ( Boundaries, honestly: this is an agent-facing tool an install adds — it does not fix the native workspace-search timeout you hit, it has no progress feedback, and its index lives in the user home. Native optional indexing with budgets and progress, as you propose, is still the right platform-level answer; treat this as prior art that the index-backed shape works for agents today. |
Uh oh!
There was an error while loading. Please reload this page.
Large workspace search needs optional indexing, budgets, and progress feedback
Summary
I ran into another UX issue related to workspace search on large local workspaces. The current grep-style tool behavior appears to scan the selected workspace on demand. When the workspace is large, a broad query can time out after 30 seconds and leave the agent with little useful signal.
I understand why a tool timeout exists: the agent should not block the UI indefinitely. But for users who repeatedly work in the same workspace, a purely on-demand full-tree scan is not always the right tradeoff. Since Harness is already plugin/composition oriented, I think optional workspace indexing would be a natural optimization path.
Example
In one session, the agent called a grep-like tool with:
The selected workspace was large, and the tool failed with:
This made the agent experience feel brittle: a single broad search in a large workspace could fail before producing useful partial context.
Why this matters
When a user selects a workspace, that workspace usually becomes the repeated working context for many future agent turns. Paying some indexing cost once, or building an index quietly in the background, can be a reasonable tradeoff if it makes later agent operations faster and more predictable.
The comparison is not exactly "grep should be as fast as Everything", because Everything is fast mainly because it maintains indexes ahead of time. But that is precisely the design point: for repeated workspace use, Harness could optionally move part of the search cost from query time to workspace setup/background time.
Possible design directions
Some possible approaches:
.git,node_modules,dist,build, large binary/data directories, and user-configured ignore patterns.Expected UX
For a large workspace, the search flow could become:
This would make broad searches less surprising and make failures more actionable. Instead of:
the agent could receive something like:
Why a plugin seems appropriate
Harness already seems to be designed as a composition of plugins and seams. Workspace indexing could therefore be optional and deployment-specific:
This does not need to be mandatory. The key improvement is giving repeated local workspaces a path toward predictable, indexed search rather than only broad live scans with hard timeouts.
All reactions