Skip to main content
Back

KAIST's TIDE Framework Finds 5 Hidden Bugs Where Reactive Agents Find One

TIDE is a new agent framework from KAIST that proactively hunts down multiple hidden problems in your documents and code — without being asked

Pro

  • What it is: TIDE is a framework from KAIST that enables LLM agents to proactively discover multiple hidden problems in documents and code without any user prompt.
  • Core mechanism: Two components work together — iterative discovery (finding problems in rounds, conditioning on what was already found) and thought templates (reusable schemas distilled from past solved cases).
  • Key result: TIDE achieves up to 76% resolution coverage on workspace tasks with GPT-5 mini, vs. 49% for single-agent and 29% for parallel multi-agent baselines.
  • Surprising finding: Running 10 parallel independent agents still performs worse than TIDE with just 2 iterations — more agents just rediscover the same obvious problems.
  • Templates transfer: Templates built by one LLM (e.g., GPT) work comparably when used by a different one (e.g., Gemini), enabling cross-model reuse.
  • No code release: The paper does not release code, datasets, or model weights; evaluation splits and template pools are not publicly available.

Most AI agents are fundamentally reactive: you ask, they answer. They fix the bug you point to, summarize the document you share, and schedule the meeting you request. But what about the five other bugs lurking in the same codebase? Or the conflicting spreadsheets quietly heading into a board presentation? A new paper from KAIST introduces TIDE (Template-guided Iterative Discovery and rEsolution), a framework designed to make agents proactively surface multiple hidden problems from context , without any user prompt to get them started.

The problem with waiting to be asked

Agents are widely deployed as assistants over documents, tools, and code. However, they typically act only on explicit user requests, which surface only the problems the user has noticed, while many other important problems coexist, hidden in plain sight, within the broader user context. The paper frames this gap with a vivid example: a budget approval given verbally but not yet recorded in writing, two copies of the same report with conflicting numbers both heading into an upcoming review, a recurring meeting the team has tacitly stopped attending. All of these are discoverable from existing documents and calendar entries , but only if the agent actually looks.

The challenge is harder than it sounds. The hidden problems within a given context are typically multiple in unknown number, and the most salient ones systematically overshadow subtler ones, so single-shot prediction leaves most problems undiscovered. Generic prompting offers no reusable prior on how contextual signals become evidence for a particular class of problem, leading predictions to drift toward generic or speculative claims.

Conceptual diagram comparing reactive agents, proactive discovery, and TIDE's template-guided iterative approach

Two mechanisms, one framework

TIDE combines two complementary ideas that attack the problem from different angles: iterative discovery and thought templates.

Iterative discovery surfaces a small batch of candidates per round while conditioning on what has already been found, so subsequent rounds extend coverage. Think of it as a directed search: instead of asking the model to list all problems at once (where it fixates on the obvious ones), TIDE asks it to find a few new problems each round, explicitly telling it what it already found so it cannot repeat itself. The loop runs up to T rounds and terminates early if a round returns nothing new.

Thought templates are reusable schemas distilled from previously solved cases that specify what contextual signals to attend to and how to connect them, anchoring each prediction in a recognizable problem class. Each template is a structured tuple with three fields:

  • Name: a short label for the recurring problem class (e.g., "Conflicting Source-of-Truth Blocks Sign-off Under Deadline")
  • Pattern: a one-paragraph description of the structural form of that class
  • Evidence flow: an ordered checklist of what signals to look for and how to connect them

Templates are built once from training examples using an LLM that abstracts away domain-specific details, then held fixed at inference. At inference, the full template set is supplied to the agent as a library of discovery schemas, so that each prediction can be anchored in a recognizable problem class rather than inferred from scratch. Crucially, the paper shows that templates transfer across model backbones , templates built by GPT work just as well when used by Gemini, and vice versa.

Step by step: how TIDE runs

Here is the full pipeline in practice:

  1. Template construction (offline): For each solved training case, an LLM reads the documents, the known problem, and its resolution, then emits a domain-agnostic template in JSON format. These are collected into a template pool (40 templates for workspace tasks, 108 for code repositories).
  2. Round 1: The agent receives all documents, the template library, and an empty "already found" list. It returns up to k new problems, each as a triple: a natural-language description, a set of supporting document IDs, and a concrete action (e.g., a specific email to send, or a unified diff patch).
  3. Round 2...T: The agent receives the same documents and templates, plus the full list of problems found so far. It is explicitly instructed not to repeat them. Each round pushes the agent to look beyond the most obvious signals.
  4. Termination: The loop stops after T rounds or when a round returns an empty batch.

Each prediction is a self-contained plan: it identifies the problem, cites the evidence, and proposes a resolution in one shot. There is no separate retrieval stage or downstream planner.

Why parallel agents fail where iteration succeeds

A natural alternative to iterative discovery is running multiple independent agents in parallel and merging their outputs. The paper tests this directly and finds it does not work. Both methods start from the same point at the first step, but from the second step onward, Multi-Agent's newly discovered items drop sharply and re-discovered items take over the majority of its predictions. Each agent in Multi-Agent runs without access to what others have surfaced, so it re-anchors on the same most-salient signal.

The gap is stark: Multi-Agent at k=10 still falls below TIDE at k=2. This suggests that scaling parallel agents is no substitute for iterative conditioning. More agents just means more agents finding the same obvious problem.

Bar chart showing newly discovered vs re-discovered problems per iteration step for TIDE vs Multi-Agent

What the benchmarks show

The team evaluated TIDE on two purpose-built datasets, tested across four LLM backbones: GPT-5 mini, Claude Sonnet 4.5, Gemini 3.5 Flash, and Qwen 3.6 Flash.

  • Personal Workspace: 150 hidden problems across 30 synthetic workspaces, each containing 4–6 problems embedded in 88–113 documents, emails, and calendar entries. Resolutions are drawn from a predefined action set (send email, schedule meeting, escalate to manager, etc.).
  • Software Repository: 146 real bugs across 20 multi-bug snapshots drawn from SWE-bench and TestExplora, spanning 11 open-source Python projects. Each bug's ground truth is the actual GitHub pull request that fixed it.

Evaluation scores each prediction on three axes , retrieval (did it cite the right documents?), identification (did it correctly describe the problem?), and resolution (did it propose the right fix?) , using both coverage over gold problems and F1 across all predictions.

Although recent LLMs can process the entire candidate pool in a single long-context pass, this access alone is insufficient for multi-problem discovery. The Single-Agent baseline commits to its first hypotheses without revisiting the context and leaves the majority of gold problems undiscovered. Surprisingly, running the same backbone as multiple independent agents in parallel does not close this gap.

With GPT-5 mini on the workspace task, TIDE achieves a resolution coverage of 76.08 vs. 49.67 for Single-Agent and 29.64 for Multi-Agent. With Gemini 3.5 Flash, retrieval coverage jumps to 83.84 vs. 50.01 for Single-Agent. The gains hold across all four backbones and both settings.

Bar charts showing TIDE vs baselines on coverage for multi-problem workspace instances

Templates vs. few-shot examples

One natural question: why not just give the agent a few solved examples instead of building abstract templates? The paper tests this directly. Demonstrations within the iterative loop fall well short of TIDE across retrieval, identification, and resolution. This indicates that the value of templates lies in abstracting past examples into reusable reasoning patterns rather than in merely exposing the agent to them. Raw examples carry too much domain-specific noise; the abstraction step is what makes patterns transferable.

The two mechanisms also play distinct roles: iteration mainly drives how much of the problem space is covered, while templates mainly drive how accurate each individual prediction is. They are complementary, not redundant.

Where it falls short

TIDE is not without limitations worth noting for practitioners:

  • Template pool is static: Templates are built once from training cases and fixed at inference. There is no online update mechanism as the agent encounters new problem types in deployment.
  • Compute cost scales with iterations: Each round is a full LLM call over the entire document context, so the cost is roughly T times a single-agent call. The paper caps T at 10 for workspaces and 3 for repositories.
  • Repository performance is lower overall: Even TIDE's best numbers on the software repository setting (e.g., 22.55 retrieval coverage with Gemini) are much lower than on the workspace setting, reflecting how hard it is to discover coexisting bugs without any issue description to anchor on.
  • No code or model release: The paper does not release code, datasets, or model weights. The datasets were constructed from existing sources (SWE-bench, a workspace pipeline from prior work), but the evaluation splits and template pools are not publicly available.

The real shift: from task execution to problem discovery

The deeper contribution here is conceptual. Prior work on proactive agents has focused on anticipating a single user need , when to intervene, how to ask a clarifying question, how to predict the next action. Proactivity remains anchored to a single localized need at a time, leaving open how an agent should jointly surface, ground, and resolve the many coexisting problems that real workflows typically contain. TIDE reframes the problem entirely: proactive assistance is a multi-step discovery process, not a single prediction.

The practical implications are significant. An agent running TIDE over a codebase before a release could surface five bugs instead of one. An agent running over a project manager's inbox could flag every blocked dependency, not just the most obvious one. These findings recast proactive assistance as a multi-step discovery process over context, offering a recipe for agents that surface what users would not have thought to ask. That is a meaningfully different kind of AI assistant than what most teams are building today.