惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

IT之家
IT之家
Y
Y Combinator Blog
月光博客
月光博客
Blog — PlanetScale
Blog — PlanetScale
GbyAI
GbyAI
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
博客园 - 三生石上(FineUI控件)
S
SegmentFault 最新的问题
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
美团技术团队
雷峰网
雷峰网
酷 壳 – CoolShell
酷 壳 – CoolShell
Last Week in AI
Last Week in AI
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
有赞技术团队
有赞技术团队
博客园 - 司徒正美
V
Visual Studio Blog
小众软件
小众软件
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
T
Tailwind CSS Blog
Apple Machine Learning Research
Apple Machine Learning Research
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
A
About on SuperTechFans
The Cloudflare Blog

DEV Community

Authentication Security Deep Dive: From Brute Force to Salted Hashing (With Java Examples) Why AI Systems Don’t Fail — They Drift Spilling beans for how i learn for exam😁"Reinforcement Learning Cheat Sheet" I Replaced Chrome with Safari for AI Browser Automation. Here's What Broke (and What Finally Worked) How Python Borrows Other People's Work The $40 Architecture: Processing 1 Billion API Requests with 99.99% Uptime Vibe Coding: A Workflow Guide (From Zero to SaaS) Most webhook security guides protect the wrong side. The scary part is delivery. Headless CMS for TanStack Start: Build a Blog with Cosmic EU Age Verification App "Hacked in 2 Minutes" — What Actually Happened Comfy Cloud’s delete function does not actually remove files Running AI Models on GPU Cloud Servers: A Beginner Guide Event-driven media intelligence with AWS Step Functions and Bedrock I scored 500 AI prompts across 8 quality dimensions — here's what broke How to Call Google Gemini API from Next.js (Free Tier, No Backend Needed) The Portal Protocol: Reclaiming Human Connection in the Age of AI How to Fix Your Team's Scattered Knowledge Problem With a Self-Hosted Forum Intro to tc Cloud Functors: A Graph-First Mental Model for the Modern Cloud Designing Multi-Tenant Backends With Both Ownership and Team Access I Built a Neumorphic CSS Library with 77+ Components — Here's What I Learned PostgreSQL Performance Optimization: Why Connection Pooling Is Critical at Scale Cómo construí un SaaS multi-rubro para gestionar expensas en Argentina con FastAPI + Vue 3 🚀 I Built an Ethical Hacking Scanner Tool – Open Source Project I Replaced /usage and /context in Claude Code With a Single Statusline A Pythonic Way to Handle Emails (IMAP/SMTP) with Auto-Discovery and AI-Ready Design I Collected 8.9 Million Polymarket Price Points — Here's What I Found About How Markets Really Move EcoTrack AI — Carbon Footprint Tracker & Dashboard Everyone's Using AI. No One Agrees How. 5 self-hosted ebook managers worth trying in 2026 Building Your First AI Agent with LangChain: From Chatbot to Autonomous Assistant
Two AI agents need one live memory file
Can Ceylan · 2026-04-29 · via DEV Community

Can Ceylan

Problem

Parallel AI coding feels magical until both agents start maintaining their own version of reality.

One agent remembers a rule from chat history. The other reads a repo note that is already stale. A workflow gets updated in one place but not the other. The user ends up repeating the same instruction twice, forwarding approvals manually, and cleaning up collisions that should never have happened.

In practice, the user becomes the synchronization layer.

Real cause

The root problem is not "bad memory." It is multiple writable memory surfaces.

If one agent treats a handoff file as live state, another agent treats a different file as live state, and both also rely on thread memory, the system has no clear authority. Drift is guaranteed.

The same thing happens with parallel edits:

  • no single place to check whether another lane is active
  • no explicit ownership boundary
  • no habit of writing what changed, why, and what not to touch

The agents are not just missing information. They are missing a shared contract about where truth lives.

Why this takes longer than it should

This failure mode is subtle because each individual step feels reasonable.

  • documenting in two places feels safer
  • asking the user to confirm again feels polite
  • starting work before checking for another active lane feels fast

But those local optimizations create a global tax:

  • duplicated instructions
  • overwritten edits
  • ambiguous approvals
  • no usable history when something breaks later

The system looks collaborative on the surface while quietly depending on the user to keep it coherent.

The operating model that fixes it

Use one mutable collaboration-memory file and make everything else point to it.

Then add four rules:

  1. Current truth has one home.
    One live file holds active rules, ownership, open lanes, and recent decisions.

  2. History is preserved, not silently deleted.
    Resolved rollout history moves to an archive file so future debugging can reconstruct what changed and why.

  3. Cross-agent review is direct.
    If one agent needs the other's approval, use a direct review/delegation mechanism instead of making the user relay the same context twice.

  4. Parallel work starts with a pre-flight check.
    Before meaningful edits, check for active lanes, declare ownership, and define a do-not-touch boundary if overlap is possible.

A simple template that works

Keep a tiny Active Work block in the live memory file:

- owner: Codex
- scope: admin workflow cleanup
- started: 2026-04-29 08:30 Vienna
- do-not-touch: app/admin/* until handoff

Enter fullscreen mode Exit fullscreen mode

That one block turns "I thought nobody was in there" into an avoidable mistake instead of an excuse.

Reusable rule

If multiple AI agents touch the same codebase, the collaboration system is part of the product.

Do not optimize only for generation quality or coding speed. Optimize for:

  • one live memory source
  • explicit temporary ownership
  • direct agent-to-agent review
  • traceable history

Otherwise the user will end up doing project management by hand while the agents appear autonomous.

That is not automation. It is outsourced coordination.