Habr AI→ original

Two windows with an AI agent instead of one: architect, developer, and six types of errors

An underrated pattern: work with an AI agent in two windows. One is for architecture and planning, the other for development and execution. It removes carryover

Two windows with an AI agent instead of one: architect, developer, and six types of errors
Source: Habr AI. Collage: Hamidun News.
◐ Listen to article

Traditionally, we work with an AI agent in a single window — task, answer, next task. But there's a problem: inertia accumulates, context gets cluttered, roles blur.

The Problem with a Single Window

When you work with AI in only one session, the agent remembers everything. This seems like a plus, but it creates noise:

  • Inertia from the previous task affects the new one
  • Contradictory instructions accumulate and conflict
  • Context grows, tokens are spent wastefully
  • Roles get mixed — planner and executor in one agent
  • A long dialogue history distracts from the current goal
  • The model "gets tired" from long conversations, quality drops

The Two-Window Pattern

The solution is simple: divide the work. Open two windows — two sessions with an AI agent (same model or different — it doesn't matter).

First window — architect. Here you discuss strategy, design, requirements, plan. The architect thinks, suggests approaches, clarifies details. Context is clean, focus is on goals.

Second window — developer. After receiving the plan, you write specific code, queries, instructions. The developer doesn't remember your doubts — they remember only the task. No inertia, no noise. Each window has its own character, and that's what matters.

What Errors This Pattern Prevents

The habit of working in two windows eliminates an entire class of errors:

1. Inertia from the previous task — the new one won't be poisoned by fragments of the old 2. Context pollution — each window stays clean for its role 3. Contradictions — architect and developer don't argue in the head of one agent 4. Role confusion — architect only plans, developer only executes 5. History noise — dialogue in each window is focused on its own level 6. Quality degradation — the model doesn't get tired from a long conversation

"Paradox: two windows seem excessive, but in practice they work faster

and more accurately than one window with full context"

When the Pattern Is Overkill

The two-window pattern is unnecessary for simple, one-off tasks. If you're writing a one-time script or asking for advice for five minutes — one window is enough. The switching overhead won't pay off. But as soon as the project becomes more complex — multiple phases, iterative development, integration of different components — two roles kick in immediately.

What This Means

The two-window pattern is an acknowledgment that AI agents have inertia, just like humans do. We've long been accustomed to dividing roles in teams (architect, developer, tester). For AI, this becomes not just a convenience, but a way to reduce a whole class of errors.

ZK
Hamidun News
AI news without noise. Daily editorial selection from 400+ sources. A product by Zhemal Khamidun, Head of AI at Alpina Digital.
What do you think?
Loading comments…