# AI agents and developer tooling guides

> Practical guides on designing CLIs and MCP servers for AI coding agents, multi-agent security, AST-backed migrations, local ONNX models, and Gemini integrations.

Canonical HTML guide: https://justin.poehnelt.com/ai-agents/ (21 articles).

## Start here

Core essays on CLI predictability, protocol fidelity, embedded MCP servers, and agent-run code migrations.

- [You Need to Rewrite Your CLI for AI Agents](https://justin.poehnelt.com/posts/rewrite-your-cli-for-ai-agents.md) (2026-03-04): Human DX optimizes for discoverability. Agent DX optimizes for predictability. What I learned building a CLI for agents first.
- [The MCP Abstraction Tax](https://justin.poehnelt.com/posts/mcp-abstraction-tax.md) (2026-03-06): Every layer from App to API to MCP loses fidelity. Here is what gets lost at each boundary and why it matters for enterprise APIs.
- [Your App Should Ship an MCP Server](https://justin.poehnelt.com/posts/ship-mcp-server-native-app.md) (2026-05-01): Why I embedded an MCP server in a native Rust prose editor so an AI agent can drive, inspect, rebuild, and verify the running app.
- [One Rule, One Throwaway Skill](https://justin.poehnelt.com/posts/one-rule-one-throwaway-skill.md) (2026-11-10): Slides from my AI Engineer Code Summit talk on using ast-grep rules and a temporary skill to migrate TypeScript to Effect.

## CLI and MCP interface design

Designing command-line tools, MCP servers, and native application interfaces that coding agents can inspect and verify.

- [You Need to Rewrite Your CLI for AI Agents](https://justin.poehnelt.com/posts/rewrite-your-cli-for-ai-agents.md) (2026-03-04): Human DX optimizes for discoverability. Agent DX optimizes for predictability. What I learned building a CLI for agents first.
- [The MCP Abstraction Tax](https://justin.poehnelt.com/posts/mcp-abstraction-tax.md) (2026-03-06): Every layer from App to API to MCP loses fidelity. Here is what gets lost at each boundary and why it matters for enterprise APIs.
- [Your App Should Ship an MCP Server](https://justin.poehnelt.com/posts/ship-mcp-server-native-app.md) (2026-05-01): Why I embedded an MCP server in a native Rust prose editor so an AI agent can drive, inspect, rebuild, and verify the running app.
- [Google Workspace Developer Tools MCP Server](https://justin.poehnelt.com/posts/google-workspace-developer-tools-mcp-server.md) (2025-12-17): An MCP server for Google Workspace Developer Tools that gives AI agents access to official documentation and API snippets.
- [Google Workspace Developer Tools VS Code Extension](https://justin.poehnelt.com/posts/google-workspace-developer-tools-vscode-extension.md) (2025-12-16): Announcing the new Google Workspace Developer Tools extension for VS Code, working with Antigravity and providing OAuth2 scope linting and MCP support.
- [Abandon Git LFS because AI Agents](https://justin.poehnelt.com/posts/abandon-git-lfs-because-agents.md) (2026-01-16): Git LFS causes fatal errors in AI agents like Jules due to proxy conflicts and hook limitations. Learn why I abandoned LFS and migrated back to standard Git.

## Workflows, guardrails, and verification

Structuring multi-agent loops, AST rules, permissions, commit identity, and prompt security in real repositories.

- [One Rule, One Throwaway Skill](https://justin.poehnelt.com/posts/one-rule-one-throwaway-skill.md) (2026-11-10): Slides from my AI Engineer Code Summit talk on using ast-grep rules and a temporary skill to migrate TypeScript to Effect.
- [Triaging Gmail with Claude Subagents](https://justin.poehnelt.com/posts/triage-gmail-with-subagents.md) (2026-06-08): A writeup of a small agentic system I built to triage my Gmail inbox, using Claude subagents to organize and assess messages.
- [Protect Gmail AI Agents with Model Armor](https://justin.poehnelt.com/posts/building-secure-ai-agents-mcp.md) (2025-12-18): Use Model Armor in an MCP tool handler to block prompt injection and redact sensitive Gmail content before it reaches an AI agent.
- [Agent Identity for Git Commits](https://justin.poehnelt.com/posts/agent-identity-git-commits.md) (2026-02-03): How to configure AI agents to push commits to GitHub using a separate bot identity without modifying local git configuration.
- [Extracting Gold from Antigravity's Brain](https://justin.poehnelt.com/posts/extracting-gold-from-antigravitys-brain.md) (2026-02-03): A workflow for extracting architectural patterns and implementation challenges from AI agent walkthroughs to inform later engineering work.
- [VS Code Git Remote Color](https://justin.poehnelt.com/posts/vscode-git-remote-color.md) (2026-02-09): An open-source VS Code extension that hashes each workspace Git remote and colors the status bar to distinguish open repositories.

## Applied ML, benchmarks, and Workspace integrations

Evaluating frontier models, running local ONNX transformers in Rust, and calling Gemini, Vertex AI, and MCP from Google Workspace.

- [Miko-bench: 65 AI Models Guess My Puppy's Breed Mix](https://justin.poehnelt.com/posts/miko-bench.md) (2026-08-25): I asked 65 vision models to rank Miko's likely breeds from the same evidence given to humans, then compared their guesses with her DNA results.
- [Fiction AST and GLiNER NER in Rust](https://justin.poehnelt.com/posts/building-a-fiction-ast-training-ner-gliner-onnx.md) (2026-02-16): How I built a fiction-specific AST and named-entity pipeline with LLM labeling, GLiNER fine-tuning, and ONNX inference in Rust.
- [Building an MCP Client in Google Apps Script](https://justin.poehnelt.com/posts/mcp-client-apps-script.md) (2026-01-15): Learn how to communicate with Model Context Protocol (MCP) servers using Apps Script and UrlFetchApp. Incorporate the MCP client into Vertex AI tool calling.
- [Using Gemini in Apps Script](https://justin.poehnelt.com/posts/using-gemini-in-apps-script.md) (2026-01-12): Use Apps Script's Vertex AI advanced service to call Gemini for text, images, structured output, search grounding, and multi-turn chat.
- [Generating Text with Gemini Pro in Apps Script](https://justin.poehnelt.com/posts/apps-script-gemini-pro-text.md) (2023-12-19): A short Apps Script example that calls the Gemini Pro REST API to generate text, then reads the response candidate text.
- [Using Vertex AI in Apps Script](https://justin.poehnelt.com/posts/apps-script-vertex-ai.md) (2023-12-11): How to use the Vertex AI API in Apps Script to make predictions on your data or use it in any of your other Google Workspace processes.

## More AI and agent posts

Other posts on AI agents, MCP, and LLMs, newest first.

- [10,538 PRs in 2026: jpoehnelt vs jpoehnelt-bot](https://justin.poehnelt.com/posts/2026-agent-pull-requests.md) (2026-11-26): Weekly 2026 pull requests and line churn across jpoehnelt and jpoehnelt-bot: 10,538 PRs, 8,917 merged, and 14.60M merged lines.
- [gws vs gwscli: Measuring Google's Workspace CLI](https://justin.poehnelt.com/posts/gws-vs-gwscli.md) (2026-11-25): Google mandates MCP for Workspace AI agents by February 1, 2027. Compare what gwscli and the 9 remote MCP servers can and cannot do against gws.
- [Finishing Agent Migrations with ast-grep](https://justin.poehnelt.com/posts/finishing-agent-migrations-ast-grep.md) (2026-11-18): What 212 benchmark runs taught me about migrating TypeScript to Effect with coding agents, ast-grep ignore lists, and throwaway skills.
