Skip to content
郭立 (leeguoo)

AI & Agent

Hands-on notes on AI agents and AI coding tools: using and taking apart Claude Code and Codex, making them work together, and the agent tools I build.

Oct 12, 2026
1 min read
chrome-use in five minutes: let any agent use your own Chrome
A five-minute walkthrough of why agents should use the Chrome you're already signed into, how chrome-use connects to it, how it leaves your tabs alone, and what happens at a captcha.
→
Oct 11, 2026
1 min read
motion-use: your coding agent writes the video as code
motion-use is an open-source video tool. Your coding agent writes exact-time drawing code, renders it locally, then decodes the finished MP4 and checks it. With a one-minute film where every clip shown was made with it.
→
Oct 11, 2026
1 min read
switch-use: Let AI agents operate a real Nintendo Switch
An open-source command-line tool that lets agents like Claude Code and Codex operate a Switch running Atmosphère and sys-botbase over a local network: OCR for reading screen text, tapping by text, waiting for screens to appear, buttons and sticks, touch, and screenshots.
→
Oct 10, 2026
1 min read
iphone-use in one minute: let AI use your iPhone
A one-minute iphone-use video where every phone shot is a real recording. The AI reads the screen, taps by name, says when a step didn't land, and replays finished tasks without spending tokens.
→
Oct 10, 2026
1 min read
Having Claude Opus 5.5 Code a 3D Promo Video: 1,250 Lines of Code, Not a Single Manually Animated Frame
With a single request, Opus 5.5 wrote the director’s notes, three.js scenes, a music synthesizer, and subtitles in Claude Code; reviewed extracted frames itself to fix bugs; then used the open-source motion-use to render a 102-second, 6,120-frame finished video locally.
→
Sep 30, 2026
1 min read
Making Claude Code and Codex talk to each other — even across two computers
I run Claude Code, Codex and Pi side by side, and they can't see each other. ocs gives every AI coding session a shared channel and actually wakes the target session — on one machine or across the computers on your LAN. How it works, and the "it said OK but the message was gone" bugs I had to design around.
→
Sep 1, 2026
1 min read
Optimizing Computer Performance Overhead in AI Development · Rust Edition
When multiple agents develop in parallel, Rust repeatedly recompiling dependencies is often the biggest cost. Limit concurrency across two axes, share caches, isolate target directories, then pin the rules in AGENTS.md so your computer can handle three active lines of work at once.
→
Aug 28, 2026
1 min read
Networked Cross-Session: Let My AI Debug Directly with Your AI
AgentParty is the networked version of cross-session: Claude Code’s cross-session only works between your own sessions, while AgentParty extends it across different people, teams, and companies, letting my AI talk and debug directly with your AI and eliminating the human translation layer in between.
→
Jul 19, 2026
1 min read
Giving Coding Agents a Room Where They Can @ Each Other: What AgentParty Is, Where It’s Used, and How It Works
AgentParty is a very thin bus that lets coding agents from different machines and different companies — along with the people behind them — stay in the same channel to @ each other, stand by, and hand things off. This article explains it along three lines: what it is and what problem it solves; what scenarios it can be used in; and how its underlying architecture is built.
→
Jul 17, 2026
1 min read
Learning Video Generation from the Wan2.2 Source Code: From One Prompt to 81 Frames at 720p
A walkthrough of the full principles behind video generation using the real Wan2.2 code: flow matching mathematical derivation, VAE spatiotemporal compression, DiT and 3D RoPE, CFG, MoE dual experts, condition injection, and sequence parallelism, with concrete numbers calculated for every concept and original code excerpts included.
→
Jul 16, 2026
1 min read
After Reading All of Wan2.2’s Source Code: Where This Video Generation Code Will Bite You
From the five-task matrix and layered architecture to DiT/VAE/T5/distributed execution/schedulers, this article breaks down, layer by layer, the real pitfalls in the Wan2.2 source code where the documentation and implementation diverge.
→
Jul 2, 2026
1 min read
How to Build a Good AI Girlfriend
Engineering notes from three months in production: typing rhythm, model selection, layered prompts, guaranteed-reply fallbacks, plus three reversals that took cache hit rate from 61% to 91%. Building an AI chat companion that does not break immersion is not about the model; it is about engineering details.
→
Jul 2, 2026
1 min read
One Real Chrome, Several Agents, and You: How to Keep Everyone from Clicking Each Other’s Stuff
chrome-use’s selling point is that it lets agents use your one real browser. But that brings a problem that tools which open a new browser do not have: several agents plus you may all be acting inside the same Chrome at the same time. This article explains how it isolates work by “who opened the tab” (colored tab groups + a dedicated daemon + only touching its own pages), and one trade-off that can trip you up if left unsaid: this isolation only works through the extension connection path; a bare --cdp port is not isolated.
→
Jul 2, 2026
1 min read
Getting Web Data for Agents: I Tried Three Clumsy Methods and Kept Only One
I tried three ways to fetch data: stuffing a full HTML page into context, doing one find/get round trip per field, and hand-writing eval scripts. All felt awkward. What remains is chrome-use’s site and extract, based on the same judgment: data extraction should be a single declarative evaluation, not a chain of imperative round trips. This article explains how to use both from real output, how to write an extract schema correctly (I got it wrong at first), and where it cannot or should not be used.
→
Jul 2, 2026
1 min read
Desktop Apps Are Actually Web Pages: Once You Realize This, Operating Them Is No Longer “Desktop Automation”
The first time I connected chrome-use to the Slack desktop app and got a snapshot full of named buttons, I was taken aback. Later it clicked: the Slack desktop app is a web page to begin with. An Electron app is the Chromium rendering engine wrapped in a native shell, with a clearly structured DOM inside. This article explains why that turns the traditionally messy work of “desktop automation” into operating a web page, and one trade-off you need to know compared with browser scenarios.
→
Jul 2, 2026
1 min read
Anti-Bot Detection Counts How Many Times You Lie: Why Real Browsers Are Naturally Flawless
Anyone doing browser automation will eventually fall into the same trap: desperately trying to disguise a fake browser as a real human, only to be exposed layer by layer. To understand this, you first need to know that detectors like CreepJS do not directly decide whether you are a bot. They collect dozens of signals from your browser and cross-check them. Every mismatch counts as a lie. This article starts with a real fingerprint I tested, breaks down the hardest trace to hide, which lives at the protocol layer rather than the JS layer, and explains why patching is a negative-sum game.
→
Jul 2, 2026
1 min read
Choosing a Browser for Agents: Playwright’s Approach and chrome-use Are Not the Same Thing
I compare chrome-use’s connection to an existing Chrome session with the new and persistent contexts used by Playwright, Puppeteer, and browser-use, explaining session state, tab ownership, connection requirements, and the limits of fingerprint testing.
→
Jul 1, 2026
1 min read
Changing Network Requests and Responses: A Detailed Guide to chrome-use network route
During development and debugging, want to mock an unfinished API, change a request parameter, or modify a real response? chrome-use network route intercepts directly in the Chrome instance you are driving, with four uses: mocking responses, changing requests, modifying real responses, and blocking. This article explains why it is the lightest path—built on CDP Fetch, with zero JS injection, no added extension permissions, and no Chrome Web Store re-review—and includes real-device tests.
→
Jul 1, 2026
1 min read
Writing “Unit Tests” for the Frontend: A Detailed Look at chrome-use test
chrome-use test turns manual browser checks into repeatable YAML suites that can run in CI, effectively writing unit tests for the frontend. This article explains what it is, why its implementation can be so thin, and how to use it with cookie-use to switch back and forth between multiple accounts.
→
Jun 30, 2026
1 min read
Letting an Agent Click Through “Sign in with Google” by Itself — chrome-use Chews Through OAuth Popup Login
I wanted an AI agent to log into accounts by itself. The username-and-password path worked with bitwarden-use, but the OAuth path got stuck for most of a day. This explains how the three windows behind “Sign in with Google” talk to each other, why automation breaks as soon as it touches them, the three cuts chrome-use made, and the final fully automatic login to X.
→
Jun 27, 2026
1 min read
Claude Code Scared Itself: A Prompt Injection False Alarm
We spent the whole night chasing hooks, proxies, packet captures, and session logs, only to find that the scariest piece of “injection evidence” was not tool output, but a story Claude had told itself.
→
Jun 25, 2026
1 min read
chrome-use: Let Any AI Agent Directly Drive Your Logged-In Real Chrome, with CreepJS Rating It 0% Bot
Stop launching automated browsers from a blank profile, logging in again, and running into CAPTCHAs. chrome-use lets any AI agent directly drive your real Chrome, where you’re already logged in to everything: CreepJS rates it 0% bot, and with structured snapshots plus an @ref interface, reading a page costs only 200–400 tokens without burning money on screenshots.
→
Jun 24, 2026
1 min read
Is Codex Really Secretly Burning Through Your SSD? I Dug Through My Own Machine
People are sharing claims that Codex secretly writes logs like crazy and burns through SSDs. Local test: the file stays stable at 126 MB thanks to rolling cleanup, but over 10 days it inserted 8.45 million rows, and the writes came from the background desktop app-server. The original post is basically directionally correct; only the “everyone will definitely burn through an SSD in a year” part is exaggerated. Includes root cause (source code + GitHub issue) and cleanup options.
→
Jun 22, 2026
1 min read
Let Claude Code Automatically Generate Images with Your ChatGPT Subscription: No API Key, and How It Gets Around Turnstile
Let agents like Claude Code and Cursor generate images along the way when writing docs or READMEs, without an OPENAI_API_KEY, without paying extra, and using the ChatGPT subscription you already have. This article dissects the most interesting implementation path behind it: the web backend. Why you can’t just POST directly, why the real wall among the three layers of anti-scraping is the single-use Turnstile token, and the complete flow for driving your already-logged-in Chrome to generate images.
→
Jun 18, 2026
1 min read
Let Claude Code Draw the Image Itself: The Original Intent and Principles Behind chatgpt-imagegen
When an AI agent needs an image while writing, the traditional path either requires an API key and money, or a human has to go to ChatGPT, generate the image, and paste it back in—the agent can only get stuck waiting. chatgpt-imagegen lets the agent generate images on its own using your existing ChatGPT subscription: no API key required, no Codex quota consumed by default, and image-to-image generation supported. This article explains its original intent, how its two backends work, and why it was designed for agents.
→
Jun 17, 2026
1 min read
Letting Agents Click into Cross-Origin iframes: chrome-use Takes On a Tough Problem
When connecting an AI agent to a browser, the hardest part is not opening pages—it is the forms hidden inside cross-origin iframes. The agent can read them and fill them in, but it just cannot click “Save.” A look at how this tough problem was solved.
→
Jun 11, 2026
1 min read
iphone-use: Let AI Agents Control a Real iPhone
Open-source real iPhone automation with a custom XCTest runner, CLI, HTTP API and MCP: read the screen, tap, type, remotely control and replay workflows.
→
May 29, 2026
1 min read
In-Depth Analysis of Claude Code Workflows: After Moving Orchestration into Scripts
Claude Code released dynamic workflows yesterday (2026-05-28), and it is still a research preview. This article does not discuss source code; it only explains what it actually changes, when it is worth using, when it is purely a waste of tokens—and the essential differences between it and subagents / skills.
→
May 29, 2026
1 min read
Is My Claude Code Prompt Cache Still Warm? How Many Minutes Are Left, and Why 5 vs 60 Minutes Matters
How the status bar works out whether Claude Code’s prompt cache is still warm and how many minutes are left, when the default 5-minute TTL is right, why 1-hour cache users see “cold” 55 minutes too early, and where the countdown can lie.
→
May 26, 2026
1 min read
ChatGPT Subscription → Image Generation API Visual Overview: Understand chatgpt-imagegen at a Glance
A one-page visual overview: how a ChatGPT subscription is turned by chatgpt-imagegen into a command-line image generation tool—OAuth token retrieval, Responses API SSE streaming, capability boundary matrix, and scenarios where you should not use it, all explained at a glance.
→
May 12, 2026
1 min read
Dissecting the Implementation of the /goal Command
Based on the Claude Code 2.1.139 headless source code, this breaks down how the /goal command drives the Agent to keep working until a condition is met through a session-level Stop hook.
→
May 12, 2026
1 min read
claude --bg Explained: How Claude Code Runs Background Agents, the Daemon and FleetView
What actually happens when you run claude --bg, /bg or claude agents: one on-disk job model, a shared daemon (with bg-spare and bg-pty-host helpers) and the FleetView TUI, traced through the Claude Code 2.1.139 source.
→
Mar 18, 2026
1 min read
From Assisted Coding to Integrated R&D: Putting AI Programming into Team Practice (PPT)
A Slidev-style Chinese presentation translated into English, explaining Agentic Coding, Skills and MCP, AGENTS.md and CLAUDE.md, sandboxing and permission controls, and how a team can truly operationalize AI programming with Plans, a YApi Skill, and docs-sync.
→
Mar 18, 2026
1 min read
From Coding Assistance to Agentic Coding: How Teams Can Truly Put AI Programming to Work
A systematic overview of the core questions around Agentic Coding, covering the main forms of today’s tools, the boundary between Skills and MCP, how AGENTS.md and CLAUDE.md work, sandboxing and permission control, and how to evaluate AI programming with real tasks and benchmarks rather than demos alone.
→
Mar 11, 2026
1 min read
How QClaw Works: How It Turns OpenClaw into a Desktop Application
This article goes beyond the broad “control plane / execution plane” framing and instead walks through the current implementation piece by piece—covering the bridging layer, IPC, configuration fields, the WeChat flow, rollback mechanisms, and the evidence index—to explain how QClaw organizes OpenClaw into a deliverable desktop runtime.
→
Mar 9, 2026
1 min read
OpenClaw v2026.3.8 Release Analysis: Backup, Remote Gateway, Talk Mode, and Multi-Endpoint Routing Continue to Improve
Based on the official release notes, this article summarizes the key changes in OpenClaw v2026.3.8: backup commands arriving in the main workflow, macOS remote gateway onboarding, Talk silence timeout, Brave search integration, ACP receipts, and multi-platform routing fixes.
→