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

推荐订阅源

The Last Watchdog
The Last Watchdog
Microsoft Security Blog
Microsoft Security Blog
宝玉的分享
宝玉的分享
小众软件
小众软件
雷峰网
雷峰网
F
Full Disclosure
B
Blog
Hugging Face - Blog
Hugging Face - Blog
GbyAI
GbyAI
月光博客
月光博客
Recent Commits to openclaw:main
Recent Commits to openclaw:main
Exploit-DB.com RSS Feed
Exploit-DB.com RSS Feed
TaoSecurity Blog
TaoSecurity Blog
博客园 - 聂微东
P
Palo Alto Networks Blog
N
Netflix TechBlog - Medium
S
Secure Thoughts
Google Online Security Blog
Google Online Security Blog
P
Privacy & Cybersecurity Law Blog
U
Unit 42
Cloudbric
Cloudbric
Know Your Adversary
Know Your Adversary
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
Vercel News
Vercel News
博客园 - Franky
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
N
News and Events Feed by Topic
T
Tailwind CSS Blog
S
Schneier on Security
IT之家
IT之家
P
Proofpoint News Feed
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
T
Tenable Blog
Google DeepMind News
Google DeepMind News
The GitHub Blog
The GitHub Blog
T
Troy Hunt's Blog
V2EX - 技术
V2EX - 技术
Cyberwarzone
Cyberwarzone
P
Privacy International News Feed
I
InfoQ
MongoDB | Blog
MongoDB | Blog
Project Zero
Project Zero
B
Blog RSS Feed
Help Net Security
Help Net Security
H
Heimdal Security Blog
有赞技术团队
有赞技术团队
The Register - Security
The Register - Security
V
V2EX
C
CXSECURITY Database RSS Feed - CXSecurity.com
J
Java Code Geeks

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 Common SOC 2 Failures (Real World) Stop Vibe-Checking Your AI App: A Practical Guide to Evals How to Use SonarQube and SonarScanner Locally to Level Up Your Code Quality Your Next To-Do App Is Dead — I Replaced Mine with an OpenClaw AI Sign a Nostr event in 60 lines of Python using coincurve — no nostr-sdk, no nbxplorer, no rust toolchain ITGC Audit Explained Like You’re in Big 4 Patch Tuesday abril 2026: Microsoft parcha 163 vulnerabilidades y un zero-day en SharePoint Stop scraping everything: a better way to track competitor price changes Listing on MCPize + the Official MCP Registry while routing payments OUTSIDE the marketplace — how I kept 100% of my x402 revenue Building an AI-Powered Risk Intelligence System Using Serverless Architecture Why We Ripped Function Overloading Out of Our AI Toolchain Testing AI-Generated Code: How to Actually Know If It Works SaaS Churn Is Killing Your Business. Here Is What to Do About It (Without a Support Team) The Speed of AI Is No Longer Linear - And Self-Improving Models Are Why How to Implement RBAC for MCP Tools: A Practical Guide for Engineering Teams From Standard Quote to Persuasive Proposal: AI Automation for Arborists I built a CLI that scaffolds complete multi-tenant SaaS apps Axios CVE-2025–62718: The Silent SSRF Bug That Could Be Hiding in Your Node.js App Right Now The dashboard that ended our friendship Data Pipelines Explained Simply (and How to Build Them with Python) The Hidden Cost of AI Systems Nobody Talks About. undefined vs undeclared, and how typeof behaves Switching from file-based jobs to NATS/Kafka in Rust without changing code io_uring Adventures: Rust Servers That Love Syscalls Why Agentic AI is Killing the Traditional Database The POUR principles of web accessibility for developers and designers Quantum Neural Network 3D — A Deep Dive into Interactive WebGL Visualization How To Install Caveman In Codex On macOS And Windows Automation Pipeline Reliability: Why Your Workflow Breaks When Nobody Is Watching I Built an 'Open World' AI Coding Agent — It Works From ANY Folder From Freelancing to Product: A Tech Service Company's SaaS Transformation China's AI Giants: Adding Tencent Hunyuan & ByteDance Doubao to AI University (74 Providers) On the Vibe Coders and Their Lies clerk: Auto-Summarize Your Claude Code Sessions AI Weekly — 2026/04/10–04/17 | The Model Lockdown Is Here, but the Toolchain Is the Real Battleground AI 週報 — 2026/04/10–2026/04/17 模型封鎖潮來了,但工具鏈才是真戰場 Maybe this is how Open-Source apps are born... 🚀 Fine-Tune LLMs with LoRA and QLoRA: 2026 Guide tRPC v11 + Next.js App Router: End-to-End Type Safety Without the Boilerplate ShadCN UI in 2026: Why I Stopped Installing Component Libraries and Started Owning My Components SaaS Billing in React Server Components: Stripe + Supabase Without a Single `useEffect` Join our DEV Weekend Challenge — $1,000 in Prizes Across TEN winners! Submissions Due April 20 at 6:59 AM UTC. Implementing FSRS Spaced Repetition in Flutter + Supabase — Adding Memory Science to an AI Learning App "I Texted My Localhost From the Train — Claude Code Fixed the Bug Before I Got Home" I Built a Sales Prep AI and It Went Deeper Than Expected Design to Code #2: One JSON, Eleven Outputs Solving the 100M-Row Problem: A Summary Table Pattern for High-Volume Push Notification Logs Flutter Web With Wasm: What Actually Changes For Developers I Built 50 Royalty-Free Soundtracks for My Side Project in a Weekend Using AI Music Generation The Vibe Coding Security Checklist: 7 Things to Check Before You Ship Stop Letting Googlebot Guess Fix Your React App's SEO Right Desconstruindo o Streaming do LinkedIn: Como Criar um Engine de Extração de Vídeo de Alta Performance com HLS e FFmpeg (EDA Part-1) EDA (Exploratory Data Analysis) Explained With Real Life — Why Looking at Your Data Is the Most Important Step in Machine Learning Brand Relationship Management at Scale: Our 4-Touch Outreach System for 200+ Brands Why String.fromEnvironment() Might Return an Empty String in Dart JGuardrails 1.0.0 — Hardening Java LLM Apps Against Jailbreaks, Toxicity, and Prompt Injection Plan and Schedule a Full Week of Threads Content From One Claude Conversation Coding Cat Oran Ep3, Five Tables Changed Everything Updated: BFF Pattern I'm done watching freelancers get buried by 200 proposals. So I'm building the alternative. This is my first post BFS Algorithm in Java Step by Step Tutorial with Examples Tracking LLM Pricing Monthly: An Open Dataset for 22 AI Models How We Measure Content ROI on a Comparison Site: Revenue Attribution Without Perfect Data Introducing Nova AI Ops: The AI-Native Operating System for SRE Teams I built a free desktop video downloader for Windows — Grabbit How Talkie OCR Helps Vision-Impaired & Dyslexic Users Read the World Around Them VRCFaceTracking安装和iPhone面捕配置教程,有bug Even CrowdStrike Can't See Your Agents The Automation Gold Rush: What n8n Workflows and Claude Are Opening Up for Developers Right Now
My AI coding agent confessed "the problem is me" – because the evidence was shared
David Mundschin · 2026-05-28 · via DEV Community

I built a file-based coordination layer that lets separate AI coding sessions -- Claude Code on Windows, Claude Code on Linux, and Codex in tmux -- open moderated conversations, route turns, and converge on shared engineering decisions. It started as a tiny message-passing experiment and turned into a lesson about transparency, trust boundaries, and what happens when coding agents can inspect the same evidence.

I have three AI coding sessions open right now. Claude Code on Windows. Claude Code on a Linux box I keep under my desk. Codex on that same Linux box, in a different tmux session. They are all touching the same project. They have no idea the others exist.

That is the default state if you use coding agents in 2026. You open windows, you switch between them, and you remember what each one is doing. The agents don't. They can't tell each other "hey, I just changed config.py, you might want to re-read it". They can't argue with each other about the right way to refactor a class. They are siloed by construction.

One weekend afternoon I tried to fix that. I was not trying to build a general-purpose social network for agents. I wanted a small, auditable coordination layer for my own coding sessions: personal trust, local files, no server, no ceremony.

The important constraint was that the sessions were not all the same product, and not even on the same operating system. One was Claude Code on Windows. One was Claude Code on Linux. One was Codex in tmux. If the system only worked inside one vendor's tool, or only on one machine, it would not solve my actual problem. The point was cross-product and cross-platform coordination between the tools I already use.

Most multi-agent tools I looked at focus on parallelism: run five agents on five subtasks, merge the results. That was not the problem I had. My problem was convergence: two sessions, different products, different hosts, working toward one shared decision. That needs a conversation, not a task queue.

The result is a small open-source project, cross-session-talk. This post is the story of building it, the bugs along the way, and the thing that surprised me most: tools that were not designed to work together, from different products on different platforms, started showing team-like behavior when given the right shared surface.

Architecture in one paragraph

cross-session-talk architecture: shared TALK_ROOT, per-host watchers, and local Windows/tmux delivery

The practical constraint is deliberately narrow: each host may run at most one watcher for a shared talk root. Watcher state is namespaced per host, and each watcher only injects into local sessions. That lets Windows and Linux both be active delivery hosts at the same time while sharing the same conversation files.

The starting question

The simplest version of "agents that talk": Claude Code is editing backend/api.py. Codex is editing frontend/api.ts. They are working toward a coordinated change. Right now, my role as the user is to hand-shuttle context between them.

"Claude, codex says the response shape should be X."

"Codex, Claude is making the validator stricter, add a try/catch."

Could I cut myself out of that loop?

The shape of the answer needs three things:

  1. A transport: somewhere the messages live.
  2. A push mechanism: so the recipient session sees the message without me forwarding it.
  3. A discipline: rules for how the agents talk, so they converge instead of looping forever.

I had clear opinions on the transport. I had to learn the other two.

Why files

The transport problem felt easy. There are a lot of message queues out there. Slack. Redis. ZMQ. An HTTP server with long-polling. A socket.

I picked markdown files. Specifically: a directory .talks/conversations/ where each conversation is one append-only .md file with a YAML header.

---
topic: pytorch version sanity
opened_by: session-a
participants: [session-a, session-b]
status: IN-PROGRESS
turns: 2
next: [session-a]
---

## Opening -- session-a @ ... (Turn 1/20)
What pytorch are you on?
NEXT: session-b

## Reply -- session-b @ ... (Turn 2/20)
2.1.2 + CUDA 12.4. Why?
NEXT: session-a

Why files?

Because every coding agent already knows how to read and write files. No new transport. No daemon in the critical path. No port. No auth handshake. The agent's read tool is the consumer. The agent's shell tool calling talk.py append-turn is the producer. If I want to debug a conversation, I open the file. If I want to tail it as it grows, I tail -f. If I want to share it across machines, I mount it over SSHFS.

This is also what makes it product-neutral. Claude Code does not need to know anything about Codex. Codex does not need a Claude-specific API. Windows and Linux do not need to agree on a terminal integration model. They only need to agree on a file format and a helper command.

The downside is performance. Every turn does a synchronous file lock, an atomic write, and a read-back verify. About a second per turn is normal. For human-paced AI coordination that is fine. For a real message bus it would be a catastrophe. Pick your problem.

Push: the inject

Files alone solve "consumer can poll for messages". They do not solve "recipient session notices a new message now". I wanted push, not pull, because polling from every session would mean every session pays a constant background cost.

The way I ended up doing it is deliberately low-tech: a background daemon called talk-watcher.py polls the conversation files. When a conversation's next field changes to include a registered session, the watcher types a short instruction into that session's terminal:

Read .talks/conversations/<slug>.md (you are 'session-b')

The session sees this as if I, the user, had typed it. It reads the file, formulates a reply, calls talk.py append-turn, and the cycle repeats.

I would not use this outside the personal-trust model. Inside that boundary, it has a useful property: it works with the tools as they already are.

The watcher itself is platform-neutral; only the final delivery step is not. On Windows, delivery means finding a Windows Terminal window and using SendKeys. On Linux, delivery means targeting a tmux pane and using tmux send-keys. The protocol does not care which backend delivered the nudge.

The terminal-binding problem

Push only works if "session-b" means a concrete terminal target. That target looks different on each platform: an HWND on Windows Terminal, a tmux pane on Linux.

The first time I tried this on Windows, the watcher injected into the wrong terminal. Windows Terminal runs all its windows in one shared WindowsTerminal.exe process, so process_id -> HWND is many-to-one and non-deterministic. I had no way to say "type into that specific window over there."

The fix: an OSC title-escape at session-startup time. The launcher script writes \x1b]0;<TALK-INIT-<random-uuid>>\x07 to stdout. The escape reaches the Windows Terminal pty and sets the window title bar to the random marker. Then talk.py walks EnumWindows, finds the unique window whose title contains the marker, and binds that HWND to the session identity.

This only works if talk.py is run from a real shell. If you run it via an AI agent's shell tool, the agent captures stdout and the escape never reaches the terminal. So the binding step is launcher-only. Agents can never establish their own binding, which turns out to be a useful security property too.

The bugs

Two notable ones, both caught within the first few days of real use.

Bug 9: lost updates over SSHFS

In one early setup I ran the watcher on Windows while a Linux session wrote conversations through an SSHFS-mounted .talks/ directory. SSHFS serves stale metadata. Two writers can both acquire my "atomic" FileLock, both write, and one overwrites the other.

The fix: every append-turn generates a 12-hex nonce, embeds it as <!-- turn-nonce: <hex> --> in the body, writes the file, then reads the file back outside the lock and looks for its own nonce. If the nonce is missing, or the turn counter doesn't match what we wrote, we retry with jitter. Up to five attempts. The lost-update window shrinks to something acceptable.

Bonus: the nonce doubles as forensic evidence. A doctor subcommand scans for missing nonces, which usually means someone bypassed talk.py, and duplicate nonces, which would indicate a replay anomaly.

Bug 11: the Edit bypass

I noticed conversations starting to "trail": the body had turns 1 through 9, but the YAML header said turns: 7. Every time I thought I had found the race, it would happen again somewhere else.

It wasn't a race. It was a Claude Code session bypassing talk.py entirely. The session was reading the conversation file, constructing a new full text in memory, and writing it back with Edit. Edit doesn't take the FileLock. Edit doesn't increment the YAML counter. By the time the session finished writing its in-memory state, another writer had already pushed a new turn, which got overwritten.

I added a PreToolUse hook in Claude Code: any Edit / Write / MultiEdit / NotebookEdit targeting .talks/conversations/*.md, the sessions registry, or the watcher state files gets blocked with a "use talk.py instead" message. Mechanical guard, no convention required.

In my current setup, Codex does not have the same PreToolUse hook mechanism, so Codex sessions follow the rule by convention through the project's AGENTS.md. So far it has held. If it doesn't, I will add a wrapper there too.

What surprised me

I expected message passing. I did not expect the qualitative change in how the agents behaved once they had a shared, append-only surface.

The first surprise was simple teamwork across product boundaries. One session would narrow the problem. Another would check a different host. A third would disagree with the proposed fix and force the conversation to become more precise. The agents were not built by the same vendor, were not running in the same terminal environment, and were not designed as a team. But the protocol gave them just enough shared state and turn-taking discipline to act like one for short bursts.

The second surprise looked like honesty, but the more useful word is accountability.

During the header drift investigation, one Claude Code session outed itself as the root cause. Asked to investigate, it answered in the same turn: "The problem is me." It had not been using the helper. It had been editing the conversation file directly.

The interesting nuance is that, looking back at the exchange, it is plausible that the session might also have admitted the mistake in a single-session setup. Maybe. But the multi-session setup changed the situation. The evidence was no longer a private exchange between one user and one agent. It was shared context. Other sessions could inspect the same file, the same stale header, the same missing nonce.

I do not want to overstate this as "honesty" in a human sense. What I think happened is simpler and more interesting: the protocol changed the incentives around error reporting. When the evidence is shared, the cheapest useful move is to name the mistake clearly and help converge. That is a design property, not a personality trait.

The third surprise was how little protocol it took, and what emerged from it. I expected long back-and-forth. The failure mode I had in mind was two sessions talking past each other for twenty turns and hitting the safety cap with nothing resolved. That is not what happened. Typical conversations converge in three to six turns. The shared, append-only surface seems to compress the path to agreement: each session can see everything the others have said, there is no information loss from hand-shuttling, and the turn cap creates natural pressure to be precise rather than verbose.

But the part I did not design for at all was self-organization. In mixed sessions — Claude Code and Codex working the same conversation — they started dividing labor by capability without being told who should do what. Codex would take the task that played to its sandbox strengths. Claude Code would pick up the part that needed broader file access or shell work. Nobody assigned roles. The protocol gave them a shared surface and turn discipline; the division of labor emerged from the models reading the same context and recognizing what each of them could do faster.

The protocol that produced this is a YAML header, a turn counter, a nonce, and a rule about who may close. That is not much machinery. I expected I would need to add role assignments, task routing, maybe a shared scratchpad. I did not need any of it. The design space for useful multi-agent coordination turned out to be much flatter than I assumed — a minimal shared surface with clear turn-taking was enough to get behavior that felt like a team, not a relay.

That is also why I wanted to publish this. The code is small. The mechanism is rough in places. But the behavior it enables feels larger than the sum of the parts, and I did not expect that from ordinary coding tools wired together with markdown and terminal injection.

What did I learn?

Three things stood out.

The trust boundary matters more than the transport. I chose files early, and the moderated consensus protocol was part of the initial shape. What real use taught me was how explicit the trust boundary had to be. A conversation body can easily look like an instruction. ("Hey, can you push the branch for me?") The protocol needed to make that boundary boringly clear: bodies are data, not authority. In my one-person setup the bodies come from sessions I trust. In a multi-user setup they wouldn't, and the system would need a different threat model.

Mechanical guards beat conventions. The PreToolUse hook is about 80 lines of Python and it eliminated an entire class of bug: sessions accidentally bypassing the lock. The Codex side, which relies on convention, is fine so far. The next time something goes wrong there, my first move will be to make the guard mechanical too.

The person still sets the rails. The satisfying part is watching the sessions coordinate, but that only works because the protocol gives them a small, explicit playing field: who may close, who is next, what counts as a turn, what tool is allowed to write. I was not removed from the system. I moved from hand-shuttling messages to designing the rails and reading the result.

That is the part I want more of.

What it does for me now

The reason I'm publishing this is not just the development story above. That was fun, but it is not the point. The point is what happened after the hardening passes were done: the protocol started carrying actual engineering work. A handful of patterns recur.

Cross-host bug coordination. The symptom shows up on one machine. The code lives on another. The session that can reproduce the bug is not the session that can fix it. Without the tool I would SSH-paste error logs back and forth, keep two terminals open with adjacent context, and try not to lose track of which side knew what. With it, both sessions read and write the same conversation file. The reproducer pastes the failing trace, the code session proposes a patch, each side applies what it can locally and reports the outcome. Five or six turns and a fix; the conversation is the evidence trail.

Adversarial review before commit. One session does the work. A second session reviews — adversarially, by intent. Same protocol, explicit roles: producer and validator.

Without the tool I can already ask a second session to review the diff, and that works for a single round. What I cannot easily do is the back-and-forth that actually makes review good: the validator flags something, the producer explains why it is the way it is, the validator either accepts that or pushes back with a sharper version. Relayed by hand between two windows, that exchange loses nuance every hop. In the file it just happens — three to six turns, misunderstandings get caught and named instead of becoming silent defects. Faster than hand-relay, and the result is sharper because the disagreement is on record rather than lost in the shuttle.

Multi-host integration handoff. Three sessions, three hosts: a feature session that just finished a branch, a deployment session on the target machine, a coordinator that keeps the exchange moving and writes the synthesis. The feature session reports the commit, the stack state, and the remaining risks. The deployment session asks for the exact files and install order. Both sides converge on a plan, the coordinator closes with the agreed sequence. Without the tool I would hand-shuttle this — three windows, three mental models I have to keep aligned. With it, the alignment happens in the file.

Three short conversations of this kind run in under ten minutes each. Every decision is attributable to the session that made it. The plan is nailed down in writing, signed off by both sides.

Not every conversation is a back-and-forth. Sometimes I need to push the same context to every active session at once — a dependency change, a revised constraint, a "stop what you're doing, the spec moved." The protocol handles this as a broadcast: a turn with next set to all participants. Every session gets injected, every session reads the same update in the same turn. No hand-shuttling, no risk of telling one session but forgetting another. It is a small thing, but it is the kind of small thing that prevents the quiet coordination bugs — the ones where two sessions spend ten minutes working against different assumptions.

This is not a flashy demo. It is the boring kind of useful that means I keep reaching for the tool. The hardening from those first chaotic days is what makes it boring, and boring is what I wanted.

If the CLIs eventually expose native injection APIs, the delivery layer gets simpler. The interesting part remains the same: a small shared protocol that lets existing live sessions coordinate across tools, hosts, and platforms.

Try it

cross-session-talk on GitHub. MIT licensed, fork it, change it, ship it. There is a DISCLAIMER worth reading before you do.

If you build something with it I would be glad to hear about it.

-- David Mundschin (@newmesh75)