<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Eliran Geffen</title>
    <description>The latest articles on DEV Community by Eliran Geffen (@eliran_geffen).</description>
    <link>https://dev.to/eliran_geffen</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3818697%2F74230507-b0f3-484d-a573-52063cba208c.jpg</url>
      <title>DEV Community: Eliran Geffen</title>
      <link>https://dev.to/eliran_geffen</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/eliran_geffen"/>
    <language>en</language>
    <item>
      <title>How I Built claude-duet: Real-Time Pair Programming with AI</title>
      <dc:creator>Eliran Geffen</dc:creator>
      <pubDate>Wed, 11 Mar 2026 15:55:23 +0000</pubDate>
      <link>https://dev.to/eliran_geffen/how-i-built-claude-duet-real-time-pair-programming-with-ai-2b5d</link>
      <guid>https://dev.to/eliran_geffen/how-i-built-claude-duet-real-time-pair-programming-with-ai-2b5d</guid>
      <description>&lt;p&gt;I use Claude Code daily — and I kept hitting the same wall: I couldn't share my AI coding session with a colleague.&lt;/p&gt;

&lt;p&gt;Claude Code runs locally. One developer, one session. If you want to pair program, the other person has to watch your screen over Zoom. That's not pair programming — that's watching someone else code.&lt;/p&gt;

&lt;p&gt;*&lt;em&gt;So I built claude-duet.&lt;br&gt;
*&lt;/em&gt;&lt;br&gt;
What It Does&lt;br&gt;
claude-duet is an open-source CLI that lets two developers share a Claude Code session in real-time:&lt;/p&gt;

&lt;p&gt;Host runs Claude Code locally via the Agent SDK&lt;br&gt;
Partner connects peer-to-peer from their terminal and sends prompts&lt;br&gt;
Both see Claude's responses streamed live&lt;br&gt;
All communication is end-to-end encrypted&lt;/p&gt;

&lt;h1&gt;
  
  
  Host
&lt;/h1&gt;

&lt;p&gt;npx claude-duet host&lt;/p&gt;

&lt;h1&gt;
  
  
  Partner (on any machine)
&lt;/h1&gt;

&lt;p&gt;npx claude-duet join cd-a1b2c3d4 --password mypassword --url ws://192.168.1.5:4567&lt;/p&gt;

&lt;p&gt;The host machine is the only one that talks to Claude. &lt;/p&gt;

&lt;p&gt;The partner connects peer-to-peer (WebRTC by default) and sends prompts through an encrypted channel.&lt;/p&gt;

&lt;p&gt;This means:&lt;/p&gt;

&lt;p&gt;Only one API key needed (the host's)&lt;br&gt;
The host maintains full control&lt;br&gt;
Approval mode lets the host review partner prompts before execution&lt;br&gt;
Security: E2E Encryption&lt;br&gt;
All messages are encrypted with NaCl secretbox (XSalsa20-Poly1305).&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Try It&lt;br&gt;
npx claude-duet host&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;What's Next&lt;br&gt;
Multi-guest sessions (more than two developers)&lt;br&gt;
Support for other AI coding tools (Codex CLI, Gemini CLI)&lt;br&gt;
Session recording and playback&lt;br&gt;
Claude Code skill integration&lt;br&gt;
The project is MIT licensed and contributions are welcome.&lt;/p&gt;

&lt;p&gt;GitHub: &lt;a href="https://github.com/EliranG/claude-duet" rel="noopener noreferrer"&gt;https://github.com/EliranG/claude-duet&lt;/a&gt; npm: &lt;a href="https://www.npmjs.com/package/claude-duet" rel="noopener noreferrer"&gt;https://www.npmjs.com/package/claude-duet&lt;/a&gt;&lt;/p&gt;

</description>
      <category>opensource</category>
      <category>ai</category>
      <category>typescript</category>
      <category>claude</category>
    </item>
  </channel>
</rss>
