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

推荐订阅源

D
Docker
酷 壳 – CoolShell
酷 壳 – CoolShell
博客园 - Franky
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
A
About on SuperTechFans
博客园 - 【当耐特】
Microsoft Security Blog
Microsoft Security Blog
H
Hackread – Cybersecurity News, Data Breaches, AI and More
The GitHub Blog
The GitHub Blog
雷峰网
雷峰网
博客园_首页
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
IT之家
IT之家
博客园 - 叶小钗
Google DeepMind News
Google DeepMind News
aimingoo的专栏
aimingoo的专栏
博客园 - 聂微东
B
Blog RSS Feed
H
Help Net Security
Recent Announcements
Recent Announcements
阮一峰的网络日志
阮一峰的网络日志
D
DataBreaches.Net
L
LangChain Blog
Vercel News
Vercel News

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
Awk! Awk! Add a diagram!: Greptile-style PR diagrams, min...
Anton Yakutovich · 2026-05-31 · via DEV Community

I review a lot of pull requests with Claude Code and Codex these days. The /review command is genuinely good — it reads the diff, spots the sharp edges, writes it up. But the output is always a wall of prose. On a PR that touches a request path across three services, I'd find myself drawing the call flow on a napkin to convince myself the review was right.

Meanwhile, the hosted reviewers — Greptile, CodeRabbit — just draw it for you. Every PR gets a tidy Mermaid sequence or flow diagram at the top of the review. It's lovely. I wanted that.

So I looked at what it would take.

What's notable here?

The hosted tools render those diagrams server-side: your diff goes to a third party, runs through their LLM, on their subscription. That's a lot of machinery for "turn this diff into a picture" — especially when my /review is already being written by a perfectly capable LLM running on my machine. The model that just understood the change well enough to critique it can obviously draw it.

The diagram doesn't need a SaaS. It needs about thirty lines of glue.

The idea: let the agent draw, let gh post

That's the whole design of Iago 🦜 — a skill, not a service:

  1. The host agent draws the diagram. Iago's SKILL.md tells your agent which diagram type fits the diff and how to write valid Mermaid. No provider SDK, no API key — it uses the LLM you're already paying for.
  2. A tiny helper posts it. A single TypeScript file (post.ts, run by bun) finds your /review comment and appends the diagram via authenticated gh. That's the entire runtime: bun + gh.
  3. It's idempotent. Re-run it and it replaces its own block instead of stacking duplicates, using a pair of HTML markers.

No server. No key. No diff leaves your machine except through the same gh you already trust.

Iago installs into every agent in one command

What it actually posts

Iago auto-detects the diagram type from the diff — and you can always override it:

The diff looks like… You get
migrations / *.sql / ORM models an entity-relation diagram
new classes / interfaces across files a class diagram
a request hopping handler → client → worker a sequence diagram
branching / state-machine logic a flowchart
a docs or dependency bump nothing — it abstains

See an example:

GitHub renders that inline, right on top of the review. (dev.to may show the source above; paste it into a PR to see it drawn.)

Quick start

Runtime is just bun and an authenticated gh. Install the skill into whatever agent you use:

bunx @drakulavich/iago install --force

Enter fullscreen mode Exit fullscreen mode

On Claude Code you can grab the plugin instead:

/plugin marketplace add drakulavich/iago
/plugin install iago@iago-marketplace

Enter fullscreen mode Exit fullscreen mode

Then, on any PR:

/review        # your agent writes the review
/iago          # Iago perches on top of it and squawks a diagram

Enter fullscreen mode Exit fullscreen mode

/squawk is an alias, because of course it is.

A gotcha I'll save you from

Here's the kind of thing that only bites you in production. My sequence-diagram example stopped rendering on GitHub one day, with no useful error. The culprit:

participant Loop

Enter fullscreen mode Exit fullscreen mode

loop is a reserved keyword in Mermaid's sequence grammar — along with alt, opt, par, note, end, and activate. Name a participant Loop and GitHub's renderer silently chokes. Renaming it to Reader fixed it instantly.

So Iago's templates steer the agent away from those reserved ids, and the helper validates with mermaid.parse() before anything gets posted. You shouldn't ever hit it — but if you write Mermaid by hand, now you know where the body is buried. 💀

"Okay, but how do you know the diagrams are any good?"

Fair question, and I'll be honest: there's no benchmark. Diagram quality is the kind of thing a number doesn't capture well, so I validate it by dogfooding — running /iago on real PRs whenever I touch the selection rubric, and looking at what comes out. A formal eval harness felt like overkill for a tool whose whole pitch is "small and dependency-free." I'd rather keep it that way.

Try it on your next PR

If your /review workflow ends in a wall of text, this is a thirty-second add-on that puts a picture on top of it — without signing up for anything. It's MIT, it's on GitHub and npm.

What does your AI code-review setup look like these days — and what would you want drawn automatically on every PR? Would love to hear what you're running. 💎