<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Codex on Armstrong Yan</title><link>https://yanqian.github.io/topics/codex/</link><description>Recent content in Codex on Armstrong Yan</description><generator>Hugo</generator><language>en</language><lastBuildDate>Thu, 04 Jun 2026 10:46:50 +0800</lastBuildDate><atom:link href="https://yanqian.github.io/topics/codex/index.xml" rel="self" type="application/rss+xml"/><item><title>I Built a Small Harness to Stop AI Coding Projects From Forgetting State</title><link>https://yanqian.github.io/posts/publish/i-built-a-small-harness-to-stop-ai-coding-projects-from-forgetting-state/</link><pubDate>Thu, 04 Jun 2026 10:46:50 +0800</pubDate><guid>https://yanqian.github.io/posts/publish/i-built-a-small-harness-to-stop-ai-coding-projects-from-forgetting-state/</guid><description>&lt;p>AI coding agents are powerful.&lt;/p>
&lt;p>But long-running AI coding projects break in a very specific way:&lt;/p>
&lt;ul>
&lt;li>the session is interrupted&lt;/li>
&lt;li>the context becomes too long&lt;/li>
&lt;li>the weekly quota runs out&lt;/li>
&lt;li>tomorrow&amp;rsquo;s agent forgets yesterday&amp;rsquo;s decisions&lt;/li>
&lt;li>the agent changes unrelated files&lt;/li>
&lt;li>the agent marks work done too early&lt;/li>
&lt;/ul>
&lt;p>The problem is not that AI cannot write code.&lt;/p>
&lt;p>The problem is that AI coding projects often do not have durable project state.&lt;/p></description></item><item><title>Remote Agent Workflow</title><link>https://yanqian.github.io/posts/publish/remote-agent-workflow/</link><pubDate>Mon, 01 Jun 2026 16:34:46 +0800</pubDate><guid>https://yanqian.github.io/posts/publish/remote-agent-workflow/</guid><description>&lt;p>This series is about moving from mobile SSH to a durable, repository-backed AI agent workflow.&lt;/p>
&lt;p>The starting point was simple: I wanted to keep local Codex work moving when I was away from my Mac.&lt;/p>
&lt;p>The deeper question became:&lt;/p>
&lt;div class="highlight">&lt;pre tabindex="0" class="chroma">&lt;code class="language-text" data-lang="text">&lt;span class="line">&lt;span class="cl">How do I turn remote access into a recoverable, verifiable, long-running agent workflow?
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;h2 id="articles">
 Articles
 &lt;a class="heading-link" href="#articles">
 &lt;i class="fa-solid fa-link" aria-hidden="true" title="Link to heading">&lt;/i>
 &lt;span class="sr-only">Link to heading&lt;/span>
 &lt;/a>
&lt;/h2>
&lt;ol>
&lt;li>
&lt;p>&lt;a href="https://yanqian.github.io/posts/publish/remote-mac-terminal-for-codex/" >Remote Agent Workflow, Part 1: Remote Mac Terminal for Codex&lt;/a>&lt;br>
Set up phone-to-Mac terminal access with Tailscale, SSH, Termius, tmux, and caffeinate.&lt;/p></description></item><item><title>Remote Agent Workflow, Part 1: Remote Mac Terminal for Codex</title><link>https://yanqian.github.io/posts/publish/remote-mac-terminal-for-codex/</link><pubDate>Sun, 24 May 2026 16:12:12 +0800</pubDate><guid>https://yanqian.github.io/posts/publish/remote-mac-terminal-for-codex/</guid><description>&lt;p>This is Part 1 of the Remote Agent Workflow series.&lt;/p>
&lt;p>This guide explains how to control a Mac terminal from a phone and keep long-running agent tasks alive, such as Codex, automation scripts, or local development agents.&lt;/p>
&lt;p>The goal is not remote desktop access. The goal is a reliable remote terminal workflow:&lt;/p>
&lt;div class="highlight">&lt;pre tabindex="0" class="chroma">&lt;code class="language-text" data-lang="text">&lt;span class="line">&lt;span class="cl">Phone -&amp;gt; SSH -&amp;gt; Mac -&amp;gt; tmux -&amp;gt; Codex / agent task
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;p>With this setup, your Mac becomes a lightweight remote execution node that you can access from anywhere.&lt;/p></description></item><item><title>Remote Agent Workflow, Part 2: From Remote Shell to Agent Control Plane</title><link>https://yanqian.github.io/posts/publish/from-remote-shell-to-agent-control-plane/</link><pubDate>Sun, 24 May 2026 16:12:12 +0800</pubDate><guid>https://yanqian.github.io/posts/publish/from-remote-shell-to-agent-control-plane/</guid><description>&lt;p>This is Part 2 of the Remote Agent Workflow series.&lt;/p>
&lt;p>In the previous article, I built a practical remote terminal workflow:&lt;/p>
&lt;div class="highlight">&lt;pre tabindex="0" class="chroma">&lt;code class="language-text" data-lang="text">&lt;span class="line">&lt;span class="cl">Phone -&amp;gt; Tailscale -&amp;gt; SSH -&amp;gt; Mac -&amp;gt; tmux -&amp;gt; Codex
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;p>That setup solved the first problem: how to reach my Mac when I am away from my desk, and how to keep long-running local agent tasks alive after my phone disconnects.&lt;/p>
&lt;p>It was useful immediately.&lt;/p>
&lt;p>But after using it in practice, I found a second problem.&lt;/p></description></item><item><title>Remote Agent Workflow, Part 3: Turning Telegram into a Local Codex Control Plane</title><link>https://yanqian.github.io/posts/publish/turning-telegram-into-a-local-codex-control-plane/</link><pubDate>Sun, 24 May 2026 16:12:12 +0800</pubDate><guid>https://yanqian.github.io/posts/publish/turning-telegram-into-a-local-codex-control-plane/</guid><description>&lt;p>This is Part 3 of the Remote Agent Workflow series.&lt;/p>
&lt;p>In the previous articles, I started with a practical remote terminal setup:&lt;/p>
&lt;div class="highlight">&lt;pre tabindex="0" class="chroma">&lt;code class="language-text" data-lang="text">&lt;span class="line">&lt;span class="cl">Phone -&amp;gt; Tailscale -&amp;gt; SSH -&amp;gt; Mac -&amp;gt; tmux -&amp;gt; Codex
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;p>That gave me a reliable way to reach my Mac from a phone.&lt;/p>
&lt;p>Then I hit the next limitation: a phone is not a good terminal.&lt;/p>
&lt;p>Mobile SSH is useful for emergencies, but it is not the interface I want for long-running AI development. I do not want to type shell commands, attach tmux sessions, scroll logs, and manually reconstruct state from a narrow phone screen.&lt;/p></description></item><item><title>Remote Agent Workflow, Part 4: In the Repository, Not in the Chat</title><link>https://yanqian.github.io/posts/publish/in-the-repository-not-in-the-chat/</link><pubDate>Sun, 24 May 2026 16:12:12 +0800</pubDate><guid>https://yanqian.github.io/posts/publish/in-the-repository-not-in-the-chat/</guid><description>&lt;p>This is Part 4 of the Remote Agent Workflow series.&lt;/p>
&lt;p>The first layer of my remote AI development setup was connectivity.&lt;/p>
&lt;div class="highlight">&lt;pre tabindex="0" class="chroma">&lt;code class="language-text" data-lang="text">&lt;span class="line">&lt;span class="cl">Phone -&amp;gt; Tailscale -&amp;gt; SSH -&amp;gt; Mac -&amp;gt; tmux -&amp;gt; Codex
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;p>That let me reach my Mac from a phone and keep long-running local tasks alive.&lt;/p>
&lt;p>The second layer was control.&lt;/p>
&lt;div class="highlight">&lt;pre tabindex="0" class="chroma">&lt;code class="language-text" data-lang="text">&lt;span class="line">&lt;span class="cl">Phone -&amp;gt; Telegram Bot -&amp;gt; local Codex runtime -&amp;gt; selected repository
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;p>That made the phone a control surface instead of a tiny terminal.&lt;/p></description></item><item><title>Remote Agent Workflow, Part 5: What Still Matters After Codex Mobile</title><link>https://yanqian.github.io/posts/publish/what-still-matters-after-codex-mobile/</link><pubDate>Sun, 24 May 2026 16:12:12 +0800</pubDate><guid>https://yanqian.github.io/posts/publish/what-still-matters-after-codex-mobile/</guid><description>&lt;p>This is Part 5 of the Remote Agent Workflow series.&lt;/p>
&lt;p>When I started this remote AI development setup, the problem was practical.&lt;/p>
&lt;p>I wanted to keep local Codex work moving when I was away from my Mac.&lt;/p>
&lt;p>That led to the first layer:&lt;/p>
&lt;div class="highlight">&lt;pre tabindex="0" class="chroma">&lt;code class="language-text" data-lang="text">&lt;span class="line">&lt;span class="cl">Phone -&amp;gt; Tailscale -&amp;gt; SSH -&amp;gt; Mac -&amp;gt; tmux -&amp;gt; Codex
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;p>Then I realized mobile SSH was not the right daily interface, so I built a Telegram control plane:&lt;/p></description></item></channel></rss>