<?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: Zihan Dai</title>
    <description>The latest articles on DEV Community by Zihan Dai (@pdggk).</description>
    <link>https://dev.to/pdggk</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.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4246831%2Fd28eb53e-37cf-4082-a9b4-6268796ed46f.png</url>
      <title>DEV Community: Zihan Dai</title>
      <link>https://dev.to/pdggk</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/pdggk"/>
    <language>en</language>
    <item>
      <title>Talk to your coding agent by writing and drawing on an iPad</title>
      <dc:creator>Zihan Dai</dc:creator>
      <pubDate>Mon, 16 Nov 2026 04:19:20 +0000</pubDate>
      <link>https://dev.to/pdggk/i-let-my-coding-agent-mark-up-my-handwritten-maths-on-the-ipad-on-the-same-page-2b80</link>
      <guid>https://dev.to/pdggk/i-let-my-coding-agent-mark-up-my-handwritten-maths-on-the-ipad-on-the-same-page-2b80</guid>
      <description>&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fpj1bbb4wh16ija1xs3hp.gif" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fpj1bbb4wh16ija1xs3hp.gif" alt="InkRoundtrip demo: a handwritten page on the iPad, and the agent's ticks, circle and note appearing on it" width="800" height="475"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;We talk to coding agents in three ways today: typing, voice, or pasting a screenshot. Some things are easier with a pen, though. A quick sketch of a system. A derivation. An arrow that means "this one, not that one". Getting a handwritten page to an agent usually means screenshot, upload, copy, and then reading a reply in a chat window that has nothing to do with your page.&lt;/p&gt;

&lt;p&gt;So I built &lt;strong&gt;InkRoundtrip&lt;/strong&gt;, an open-source bridge that makes the iPad page itself the conversation.&lt;/p&gt;

&lt;h2&gt;
  
  
  How it works
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;You write or draw on the iPad with Apple Pencil, in a native PencilKit app or a web board in Safari.&lt;/li&gt;
&lt;li&gt;Each page is saved to a tiny Python server on your Mac (standard library only, protected by a pairing code).&lt;/li&gt;
&lt;li&gt;When you ask, your agent (I use Claude Code; Codex works the same way) reads the page straight from your Mac and replies with circles, arrows, ticks and short notes at the exact spot, using &lt;code&gt;annotate.py&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;The reply shows up on the iPad a few seconds later, on its own layer above your ink.&lt;/li&gt;
&lt;li&gt;Each reply remembers which version of the page it was about. Change the page and the app flags the old marks.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Where it came from
&lt;/h2&gt;

&lt;p&gt;I found the idea while revising for exams: I wrote proofs by hand and wanted the agent to mark them like a tutor, on the page instead of in a chat. Once that loop worked, it was clear it wasn't really about marking. It's a pen-and-ink channel to your agent: ask a question in handwriting, sketch an architecture and get arrows back, circle the part of a plot you mean.&lt;/p&gt;

&lt;h2&gt;
  
  
  Try it
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;git clone https://github.com/PDGGK/InkRoundtrip.git
&lt;span class="nb"&gt;cd&lt;/span&gt; InkRoundtrip
python3 server.py --lan
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Open the printed link in Safari on your iPad, or on your Mac with &lt;code&gt;?mouse=1&lt;/code&gt; to draw with the trackpad. Copy &lt;code&gt;skills/inkroundtrip&lt;/code&gt; into your agent's skills folder and ask it to look at your page and answer there.&lt;/p&gt;

&lt;p&gt;It's an early developer preview: Mac only, one writer per page, plain HTTP on your local network. The interface is in English and Chinese.&lt;/p&gt;

&lt;p&gt;Repo: &lt;a href="https://github.com/PDGGK/InkRoundtrip" rel="noopener noreferrer"&gt;https://github.com/PDGGK/InkRoundtrip&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;I'd love to hear what you would use a pen-to-agent channel for.&lt;/p&gt;

</description>
      <category>showdev</category>
      <category>opensource</category>
      <category>productivity</category>
      <category>python</category>
    </item>
  </channel>
</rss>
