# I let my coding agent mark up my handwritten maths on the iPad, on the same page

> Source: <https://dev.to/pdggk/i-let-my-coding-agent-mark-up-my-handwritten-maths-on-the-ipad-on-the-same-page-2b80>
> Published: 2026-11-16 04:19:20+00:00

I revise for exams by writing proofs and derivations by hand on an iPad. What I wanted was a tutor looking over my shoulder: circle the line where it goes wrong, tick the steps that are right, leave a short hint beside the mistake.

My coding agent can already read images. The missing piece was letting it answer *on the page* instead of in a chat window. So I built a small bridge and open-sourced it: **InkRoundtrip**.

`annotate.py` to draw circles, arrows, ticks and short notes at pixel coordinates.
Pasting a screenshot into a chat and reading a long answer back breaks the flow: you have to map the answer back onto your own working. A red circle on the exact line does that for you. It also keeps you doing the work: the agent marks, you fix.

```
git clone https://github.com/PDGGK/InkRoundtrip.git
cd InkRoundtrip
python3 server.py --lan
```

Open the printed link in Safari on your iPad, or on your Mac with `?mouse=1` to draw with the trackpad. Copy `skills/inkroundtrip` into your agent's skills folder and ask it to check your page.

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.

Repo: [https://github.com/PDGGK/InkRoundtrip](https://github.com/PDGGK/InkRoundtrip)

Feedback, issues and ideas are very welcome, especially on making setup easier.
