← ~/blog
Blog禅LinuxYiziMarkdown

Zen Mode: New Thoughts on Continuing YiziMarkdown on Linux

AI takes over the Linux environment, packaging, and verification, leaving the grunt work behind; the developer keeps the creativity and trade-offs, and Zen Mode goes from idea to release.

Zen Mode: New Thoughts on Continuing YiziMarkdown on Linux

Developing YiziMarkdown on Linux this time around feels strangely wonderful in a way that's hard to put into words. It's not the novelty of "switching to a different system"—it's more like returning to an old room after several years and finding the furniture still there, but the way you work completely transformed.

A few years ago, using Linux meant that setting up an environment was manual labor. Hunting for sources, swapping mirrors, patching dependencies, resolving version conflicts—apt install would spit out a wall of red text, and you'd search for each error one by one. After installing the compiler you'd need the runtime libraries; after the runtime libraries you'd find headers missing; and finally you'd get stuck on some .pc file that pkg-config couldn't find. An entire afternoon would pass with zero lines of code written, and you'd have developed a deep affection for your desktop environment—because it could fail to start at any moment.

This time it was completely different. Once the system was installed, the first thing I did was get the agent running, and then I handed the rest over to it: installing Rust, Node, and the webkit2gtk, libsoup, patchelf, and GStreamer that Tauri needs—executing and verifying each one in turn. If compilation failed, it would read the errors itself, fix the dependencies, and try again. All I had to do was say "get the dev environment running" and glance over whenever it was about to execute a dangerous command.

"Dangerous command" isn't an exaggeration. I had a close call when installing the Sogou input method: a dependency conflict, and the AI "resolved" it all the way by uninstalling the entire set of desktop components that ship with elementary OS. The screen was still on, but I knew something was wrong. Fortunately I could reinstall everything—a false alarm. That incident taught me two things: a system-level package manager is not an ordinary script, so you need to see exactly what it's about to touch before running it; and any "automatic fix" needs a fallback—a snapshot, a backup, or at least a recovery command.

But overall, AI took over the most patience-draining parts: the environment, dependencies, the compilation chain, packaging, and log troubleshooting. The time I freed up went to what I actually wanted to do—like Zen Mode this time.

zen

Zen Mode was conceived entirely by hand. I don't like the "focus modes" on the market: keeping only the current line and dimming the rest, which looks like it's narrowing your attention but is really just a screen full of gradients. What I wanted was a feeling of "sitting in meditation": the world is still there, just temporarily out of sight. In product terms, that means every UI element retreats in place, leaving only the body text and whitespace.

This whole approach was built on Linux from start to finish. How to make the toolbar, tab bar, sidebar, AI panel, and status bar fold back toward the screen edges one by one; how to keep the body text from shifting by a single pixel; how to summon the corresponding region back in place when the mouse touches the screen edge; how the Zen Mode button stays put like an anchor, leaving only a faint ripple. The creativity and trade-offs were mine; the execution and verification were mostly handed to the agent: it extracted frames to check the animation sequence, used pixel bounding boxes to confirm the body text position was identical before and after, and even went back and forth with me over three or four revisions just to decide "which scrollbar should disappear first."

Packaging was done along the way too: both deb and AppImage, and it had to be built on Ubuntu 22.04, otherwise the glibc version would lock out older systems; the AppImage also had to bundle the GStreamer plugins, or audio and video would go completely silent. The CI runs on three legs, with tests, gating, and signing all handled by the pipeline—a human only needs to judge "whether this change is worth shipping." The ARM package isn't done yet—shipping amd64 first, and we'll deal with it when actual ARM users start asking.

I also hit quite a few Linux-specific pitfalls. WebKitGTK has compositing glitches with clip-path transitions, and at one point the entire UI was being drawn at the bottom of the screen; once the native scrollbar thumb is made transparent, reverting the style doesn't restore its rendering; and dragging a maximized window moves the whole thing. These problems simply don't occur on Windows or macOS—when a cross-platform product reaches 99% consistency, the remaining 1% is often exactly these platform differences: window icons, Dock matching by .desktop, file association MIME types, glibc versions, media components, overlay scrollbars.

There was also an unexpected gain: the way I debug changed. In the past, when I hit "the heading won't render," I'd stare at the source code and question my life choices. This time the agent dug into local storage and found that the document contained ##\u00A0Heading—the input method had committed a space as a non-breaking space while in candidate state. Invisible to the eye, and Markdown doesn't recognize it either. The problem wasn't in the renderer; it was that "invisible space."

Of course, AI isn't fully automatic. It misjudges, and it can overcomplicate things; sometimes I need one sentence and it gives me three alternative approaches. My experience is this: keep the direction, boundaries, and aesthetics for yourself, and hand off repetitive execution and verification. Give complex things to AI, and leave creative things to the developer—it sounds like a slogan, but that's genuinely how these past few weeks have gone.

The wonderful part is right here: one person, one ordinary Linux desktop, and one agent can take a cross-platform product feature from idea all the way to packaged release. Linux still has its temper, but it's no longer that old room that demands an afternoon of tending.

# comments

Comments

0 comments

No comments yet. Be the first!

Arithmetic captchaArithmetic captcha
老独 | Zen Mode: New Thoughts on Continuing YiziMarkdown on Linux