[Kalamos Devlog] After Open-Sourcing: v0.2 to v0.7 Feature Evolution and Using Multi-Agents to Review External PRs
![[Kalamos Devlog] After Open-Sourcing: v0.2 to v0.7 Feature Evolution and Using Multi-Agents to Review External PRs](https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fvo6aurmkktm5betltn9v.png)
Recap
In the previous dev log, I used Herdr with Claude Code as PM and two worktree coder Panes on the right to build Kalamos, a Typora-style Markdown editor, from scratch in three days—completing milestones M1–M3, open-sourcing it under MIT, and shipping the first official release, v0.1.1.
I originally thought that after open-sourcing it, I would just slowly patch and polish things on my own. Unexpectedly, just one day after making the repo public, not only did I start using Kalamos for daily writing—filling in everyday essentials as I went (search, menus, tabs, quick open)—external contributors from the community showed up right away: @mingchuanhuang-xpc submitted a Windows port PR, and @narumiruna sent a rapid-fire series of PRs covering Biome, Changesets, Issue/PR templates, AGENTS.md, Ctrl+scroll zoom, YAML document info, a multilingual UI, and even a web version prototype.
In just a few days, the project moved from v0.1.1 all the way to v0.7.0. The development rhythm after open-sourcing is completely different from building behind closed doors: on one hand, you have to maintain your own product pace; on the other, you need a PR workflow that upholds quality and security while treating external contributors well.
This post focuses on three topics:
- The feature evolution timeline from v0.2 to v0.7, along with interesting bugs caught during review and hands-on testing for each major feature.
- The review and takeover workflow for external contributor PRs (the centerpiece of this post): how to use Claude Code for review, have the maintainer make the call, let a Gemini coder take over while fully preserving original author attribution, and why we decided not to build the web version for now (#114).
- Evolution of the release process and toolchain: adopting Biome (and hitting the Windows CRLF trap), Changesets automated version PRs, fixing
sync-versionbreaking JSON formatting (#110), and stripping redundant commit hashes fromCHANGELOG.md.
I'm splitting this update into three posts: this one covers feature evolution, external PR collaboration, and the release workflow; the next two will dive deep into Things to Watch Out for in the Windows Implementation (corresponding to
v0.4.0) and Things to Watch Out for with In-App Auto-Updates (corresponding tov0.8.x).
1. Post-Open-Source Feature Evolution: Timeline from v0.2 to v0.7
Let's start with a timeline showing how Kalamos grew step by step after v0.1.1 from "something I can write articles in" into "a desktop editor I can't live without every day":
| Version | Date (Taiwan Time) | Core Features & Related Issue / PR | Representative Issues Caught in Review / Testing |
|---|---|---|---|
| v0.2.0 | 2026-11-22 | Single-file find & replace (#73 / #76), folder search (#77), native macOS menu bar & preferences (#74 / #78) | #76 In-table search couldn't rely solely on CodeMirror native decorations; #78 Preferences display: flex overrode the hidden attribute |
| v0.3.0 | 2026-11-23 (UTC 11-22) | Multi-document tabs (#81, split into #82 A and #83 B) | #83 Cmd+Q interception: switched to a custom action + quit_app, but tao cannot intercept right-click Quit from the Dock |
| v0.4.0 | 2026-11-23 (UTC 11-22) | Windows 10/11 support (#94, #97, taking over @mingchuanhuang-xpc's #79) & cross-platform tag auto-release (#93) | See details in the next dedicated post on the Windows implementation |
| v0.5.0 | 2026-11-23 | Cmd+P quick open & recently opened list (#104 / #106), workflow hardening, Biome & Changesets (#99–#102) | Lightweight list_markdown_paths avoids reading file contents, keeping fuzzy search under 16ms across 10k files; Biome clashed with Windows CRLF |
| v0.6.0 | 2026-11-24 | Ctrl + scroll wheel zoom (took over @narumiruna's #112 → #116; not released separately, shipped together with v0.7.0) | Stepping one zoom level per wheel event caused trackpads and high-res mice to jump straight to 50% / 300% |
| v0.7.0 | 2026-11-24 | YAML document info preview (took over #123 → #126), Traditional Chinese & English UI (took over #125 → #128) | #126 Backspace eating a hidden newline; #128 supply chain risk of i18next released just one day prior; follow-up #131 error toast cleared by setTimeout |
Every release had fascinating engineering details. Here are a few of the most memorable moments from the review trenches.
v0.2.0: Find & Replace (#73) + Native Menus & Preferences (#74)
As soon as I started using Kalamos for daily writing after open-sourcing it, two glaring gaps stood out immediately: no Cmd+F search, and no native macOS top menu bar or Cmd+, preferences. As usual, we split #73 into two PRs—"single-file find & replace (#76)" and "sidebar folder search (#77)"—while #74 (#78) added the native menu bar, a dispatcher preventing duplicate shortcut triggers, and a four-tab preferences window with live updates all in one go.
- Interesting issue (#76 Search inside tables): Kalamos's visual tables are custom
contenteditablewidgets. Highlighting search matches in normal paragraphs works fine with@codemirror/search, but whenever a keyword falls inside a table cell, CodeMirror's native highlight cannot draw into the widget's internal DOM at all. The final solution combined the CSS Custom Highlight API to independently highlight matching ranges inside table cells, and extended the existingfocusTableCellto accept a selection range so jumping to that match moves focus right into the cell and selects the text. We also disabled search triggers during IME composition and grouped Replace All into a single transaction (so oneCmd+Zundoes everything). - Real-world gotcha caught along the way (#78 Preferences): Unit tests and E2E tests originally only checked the
hiddenattribute on tab panels. The moment I opened the real app and clicked between tabs, all four panels stacked on top of each other without switching at all! It turned out.k-pref-panelhaddisplay: flex, whose CSS specificity directly overrode the native HTMLhiddenattribute. After fixing it, we immediately updated the E2E tests to assert actual visibility instead of fooling ourselves by checking attributes.
v0.3.0: Multi-Document Tabs (#81)
Following Typora's convention, the tab bar stays hidden when only one document is open, and appears once you press Cmd+T / Cmd+N to open a second document. Each tab independently preserves its content, Undo history, cursor, scroll position, and search state, supporting drag-to-reorder, middle-click close, and unsaved indicator dots. This was likewise split into two merges: the core tab model (#82), and file-opening rules, menus, and window-close checks (#83).
- Interesting issue (#83
Cmd+Qinterception & framework boundary): Once multi-document tabs existed, hittingCmd+Qwhile background tabs still held unsaved drafts would silently lose data. We switchedCmd+Qfrom the system's predefined quit item to a custom menu action that first scans all tabs on the frontend, lists unsaved documents (offering "Save All / Don't Save / Cancel"), and only calls the new Rust commandquit_apponce confirmed. However, digging down during review revealed a framework boundary: Tauri's underlyingtaodoes not expose macOS'sapplicationShouldTerminateevent, meaning right-clicking "Quit" on the Dock icon or logging out/shutting down cannot be intercepted by the app itself. Instead of pretending it was solved, we documented this limitation honestly in the Release Notes and test checklist, and minimized data loss risk through "auto-save for named files + periodic recovery snapshots for untitled tabs."
v0.5.0: Cmd+P Quick Open (#104 / PR #106)
Once a blog or notes folder grows large, clicking through nested sidebar folders gets too slow, so we added a VS Code-style Cmd+P / Ctrl+P quick open palette: fuzzy search across Markdown files in the current folder, prioritizing filename matches with highlighted characters; when the input is empty, it immediately lists the 20 most recently opened files (valid across folders, synchronized with the "File > Open Recent" submenu).
The performance design also deliberately sidestepped a common pitfall: the sidebar's existing list_files reads every file's contents to generate snippets, which slows down on large directories. PR #106 added a lightweight Rust command, list_markdown_paths, that only returns relative paths without reading file contents (skipping hidden folders and node_modules, not following symlinks, capped at 20,000 entries). The frontend caches the list and only rescans when opening a new folder or receiving a filesystem watch event—keeping every fuzzy search across 10,000 files within ~16ms, and ensuring pressing Enter during Chinese Zhuyin IME composition won't accidentally open a file.
v0.6.0 / v0.7.0: Scroll-Wheel Zoom, YAML Document Info & Bilingual Chinese/English UI
All features across these two versions (v0.6.0 wasn't released standalone; its changes shipped together in v0.7.0) were originally proposed and implemented by external contributor @narumiruna, then reviewed, taken over, and refined by us before merging into main. Review caught some remarkable subtleties in every single one:
1. Ctrl + Scroll-Wheel Zoom (#112 → #116): Trackpads & High-Res Mice Shooting Straight to the Extremes
The original PR had a clean architecture, reusing the existing zoom state and ZOOM_LEVELS (50%–300%) while keeping the preventDefault() conditions tight. Yet as soon as the Reviewer looked at onZoomWheel, an issue jumped out: it stepped a full zoom level on every single wheel event.
That works fine on a traditional notched scroll wheel, but on macOS trackpads, Magic Mouse, high-resolution / free-spinning mice, and Windows Precision Touchpad pinch-to-zoom gestures (where Chromium / WebView2 synthesizes pinch gestures into dozens of tiny-deltaY ctrl+wheel events), a single gesture fires dozens of events and blasts the screen from 100% straight to 300% or 50%. After taking over, we normalized deltas by deltaMode (LINE ×40, PAGE ×800) and accumulated roughly 100px before stepping one level, resetting on direction reversal or a 300ms pause, plus adding a unit test verifying that "10 consecutive small deltas step only one level."
2. YAML Document Info Preview (#123 → #126): Backspace Eating an Invisible Newline
When writing Jekyll, Hugo, or Astro posts, there's always a YAML Front Matter block at the top of the file. This feature renders valid YAML in live preview as a crisp "Document Info" card supporting lists and nested fields; clicking it lets you edit the raw text inline, while saving leaves the original Markdown bytes untouched (including comments and CRLF).
- Interesting issue (#126 Backspace eating a hidden newline): While reviewing #123, the Claude Code Reviewer didn't just eyeball the diff—it wrote 6 temporary Playwright edge-case probe scripts and immediately uncovered an extraordinarily subtle interaction bug: when the first line of body text immediately follows the closing
---(e.g.,---\ntitle: a\n---\n# H), placing the cursor at the start of# Hand pressing Backspace once deletes the invisible newline\nbehind the card, fusing the source into---# H—breaking the closing fence and making the entire document info card suddenly vanish into plain text! The takeover PR #126 patched this boundary: when pressing Backspace atpreview.to + 1(or pressing Delete inside the hidden range), it intercepts the deletion, expands the block into edit mode, and places the cursor on the closing fence instead of eating the hidden newline. While we were at it, we also rendered YAMLnullvalues as—(distinguishing them from empty strings"") and switched theyamlpackage to a lazy import, trimming roughly 33 KB gzip off the main bundle.
3. Traditional Chinese & English UI (#125 → #128): Supply Chain Risk from a Day-Old i18next Release
Originally, Kalamos's UI and native menus were hardcoded in Traditional Chinese. With English, Japanese, and Korean READMEs already live, adding a multilingual interface was a natural next step so non-Chinese users could use the app comfortably. PR #125 had a very clean overall design: a single flat JSON dictionary shared by frontend and backend, locking the active locale at startup, and separate locking for config file reads/writes.
- Interesting issue (#128 Supply chain risk & over-dependency): Checking package publish dates in
package.json, the Reviewer immediately flagged a Blocker: the newly added dependencyi18next@^27.2.6had just been published yesterday (2026-11-23) and used a^range—a textbook supply chain risk. Moreover, reading through the diff showed that the entire project only neededt()to look up flat keys, `interpolation, and fallback—none ofi18next's massive plugin or pluralization machinery (the Rust side already did its own dictionary lookup). So when taking over in PR #128, we decisively **removedi18next** and replaced it with a tiny, custom, type-safet()guarded bykeyof typeof zhTW—zero external dependencies, dictionary key typos caught attsctime, plus a Rust unit test checking that everywith_message_keyexists in both dictionaries. We also took the chance to default the UI language to "follow system language when unset (sys-localecrate:zh*` uses Traditional Chinese, all others English)" while keeping backwards compatibility for existing users' saved configs.
4. Bonus Follow-Up (#131): Error Message Wiped Out in an Instant by setTimeout
After #128 merged into main, we noticed the E2E test interface-language.spec.ts occasionally turned red (failing roughly 3 out of 25 runs): the test mocked a "failed to save interface language" error and expected the screen to display "無法儲存介面語言,請再試一次。" ("Could not save interface language, please try again."), yet read back an empty string.
The worst thing you can do with a flaky test is bump the timeout or slap a retry on it to hide the symptom. We sent a coder to dig for the root cause and sure enough uncovered a real app race condition:
When the Preferences window opens, the app schedules a
setTimeout(..., 0)to sync menu state, which callspreferences.sync(). The syncer for the interface language row cleared the status message every time it ran. If thatsetTimeouthappened to fire right after "save failed and error message was displayed," the error notice got wiped out instantaneously!
PR #131 fixed the root cause: skipping the language row sync while a language write or restart is in progress, and preserving the error message until the user makes a new selection, the language changes externally, or the window closes and reopens. Running Playwright with --repeat-each=20 for 100 consecutive passes showed zero flakes ever since.
2. The Centerpiece: How to Review and Take Over External Contributor PRs
Receiving external contributions after open-sourcing is exciting, but you quickly run into a practical reality: early in a project, main moves very fast (sometimes merging four or five major PRs in a single day). Branches cut from an external contributor's fork rapidly fall behind main, develop conflicts, or diverge from freshly established cross-platform conventions and security principles.
If you follow the traditional route—leaving 10 review comments on the PR, asking the contributor to rebase through 27 conflicts and re-run dual-platform tests—both sides often burn out after two or three days of back-and-forth, and a great contribution ends up gathering dust as a stale PR.
To achieve both "never compromising on quality and security" and "never letting external contributors' effort go to waste," we evolved a standardized pipeline inside Herdr's multi-agent workflow (shown in the architecture diagram at the top):
- Isolated fetch in a dedicated worktree: Pull the external PR into a standalone
pr-<n>branch and separate git worktree, leaving the main directory completely untouched—and never runningnpm installdirectly (preventing unreviewed dependencies from executing install scripts on the dev machine). - Read-only Claude Code Reviewer writes a review report: Spin up a Claude Code reviewer that is only allowed to read files and run existing tests—never modify code—to output a structured
pr<n>-review.mdthat consistently checks five things:- Run
git merge-tree --write-tree origin/main pr-<n>to pinpoint exact conflicting files and conflict hunks without touching the working tree. - Compare against current
mainand the Roadmap to verify no regressions on existing platforms (e.g., Windows or Intel Mac) or features. - Security & supply chain review: inspect GitHub Actions SHA pinning, misuse of
pull_request_target, publish dates and dependency trees of new packages, and XSS / DoS / path traversal risks. - Strictly categorize findings into Blocker / Should-fix / Nit, listing hands-on verification results (including writing temporary probe scripts to test edge cases).
- Produce a concrete "takeover checklist" or "key response points for the author."
- Run
- Human maintainer makes the call: After reading the review report, I make the product and process decision—accept directly, split into multiple PRs, cherry-pick the good parts while dropping conflicting ones, or politely decline if it's out of PRD scope.
- Cherry-pick original commits + Gemini Coder takes over edits: Once we decide to take over, the PM cuts a fresh branch from the latest
main, pulls in the original author's commits viagit cherry-pickto preserve original commit authorship (or references the original PR on the new branch), and hands the checklist to a Gemini coder (agy) in a worktree to resolve blockers one by one and round out unit tests, E2E tests, and the four-language READMEs. - All green on dual-platform CI + add
Co-authored-byon squash: Once both macOS and Windows CI pass, squash merge intomainwith an explicitCo-authored-by:line for the original author in the commit message, ensuring both GitHub's Contributors list andgit logfully preserve attribution. - Leave a thank-you comment on the original PR and close it: Post a clear comment on the original PR listing the takeover PR number(s), exactly what changed and why those trade-offs were made, publicly thank the contributor, and close the original PR.
Over the past few days, this workflow was battle-tested across four classic cases (huge thanks to @narumiruna and @mingchuanhuang-xpc for their enthusiastic contributions!):
Case 1: #85 (Biome & prek) → Split into Three PRs (#100, #101, #102)
@narumiruna's #85 was massive (125 files, +7222 / −2242), covering Actions security hardening, biome, prek (a Rust pre-commit tool), and repo-wide formatting. Right away, the Claude Code Reviewer flagged several serious issues:
- The PR was based on
v0.3.0, whereasmainhad just merged the Windows port (#94, #97).git merge-treereported 13 files and 27 conflicts, making manual conflict resolution nearly impossible to review line by line. - Using an AST diff (ignoring whitespace, quotes, and import order), the Reviewer discovered that manual semantic edits across 19 files (like removing
!or switching tomatchAll) were mixed into the same commit as over a hundred pure-formatting changes. -
prek.tomlintroducedtsc-rs@0.8.0, an unofficial Rust port created roughly 7 weeks earlier—different from the official TypeScript compiler used by the project'sbuildscript, with low supply chain trust. - There was also an easily overlooked local dev trap: our local
.git/hooks/pre-commithad a privacy-scanning script installed, and all worktrees share the samehooks/directory. The README told users to runprek installwithout warning against--overwrite, which could silently wipe out the privacy scanner.
Rather than asking the author to redo the entire mega-PR, we took over and split it into three clean PRs landed sequentially:
- PR #100: Strictly SHA pinning for
ci.yml/pages.yml,permissions: contents: read,persist-credentials: false, pinning the exact@biomejs/biomeversion indevDependencies, switchingprek.tomlback to the repo's ownnpx tsc --noEmit, pinning zizmor by SHA, moving clippy topre-push, and documenting hook coexistence in the README—touching zero source files. - PR #101: Re-running a purely mechanical
npx biome check --writeon the latestmain(128 files), plus 5 equivalent manual fixes, and officially wiringnpx biome ciinto CI. - PR #102: Adding
.git-blame-ignore-revswith the formatting commit from #101 so it wouldn't pollutegit blameacross the entire repo.
Case 2: #92 (Changesets) → Keeping the Best Parts in #99
@narumiruna's #92 aimed to adopt Changesets for automated releases, but it arrived right after we had merged our cross-platform release workflow (#93) into main. The Reviewer's comparison table made the trade-offs crystal clear at a glance:
| Dimension | Existing #93 on main | External PR #92 |
|---|---|---|
| Build platforms | macOS (arm64 + x64) + Windows (NSIS + MSI) | macOS arm64 only |
| Verification gates | check-release-version.mjs, codesign --verify --deep --strict, DMG check, SHA256SUMS.txt | No signing/DMG verification, no checksums |
| Release method | Pushing a tag creates a Draft Release, published manually after on-device verification | Merging the version PR publishes publicly right away |
| Versioning & changelog | Manually editing 3–4 files and hand-writing release summaries | Changesets auto-generates CHANGELOG.md + sync-version.mjs syncs all 5 version files in one shot |
Adopting #92's release.yml directly would have dropped Windows and Intel Mac installers and bypassed the Draft review gate we deliberately instituted after the v0.1.1 ad-hoc signing incident.
So the maintainer made the call: drop #92's release.yml, and keep Changesets, changesets.yml (which only opens a version PR without auto-tagging/publishing), and scripts/sync-version.mjs intact. In PR #99, the Gemini coder cherry-picked #92's original commits (preserving main's release.yml), updated generate-release-notes.mjs to pull release summaries automatically from CHANGELOG.md, and added CRLF support plus unit tests to sync-version.mjs—combining the best of both designs.
Case 3: #111 / #112 and #123 / #125 (Plus #108)
Beyond major infrastructure, feature and documentation PRs flowed through the exact same pipeline:
- #111 (
AGENTS.md) → #115: The Reviewer specifically noted thatAGENTS.mdis a high-impact file automatically loaded by AI agents. The original PR stated "don't add changesets for docs or internal changes" without specifying a language, and sure enough we immediately saw an agent write an English changeset in #112. On takeover, we aligned it to the Traditional Chinese format (**標題** :說明(#PR)), added examples, and clarified that "external PRs without a changeset won't be blocked from merging" and "docs/internal changes are at the maintainer's discretion." - #112 (Ctrl+scroll zoom) → #116: Took over to add
deltaModenormalization and a 100px accumulation threshold, four-language README shortcut tables, and a note about macOS Accessibility zoom conflicts. - #108 (Traditional Chinese Issue / PR templates) → #119: Took over to fix `` placeholders that weren't wrapped in comments, switched to bilingual Chinese/English headings, and added a note welcoming submissions in English.
- #123 (YAML document info) → #126 and #125 (Bilingual Chinese/English UI) → #128: The former fixed Backspace eating the hidden newline and lazy-imported
yaml; the latter removed the day-oldi18nextpackage in favor of a custom type-safet(), plus defaulting to the system language.
Every takeover PR carried a clear Co-authored-by line and received an itemized thank-you comment on the original PR, keeping collaboration super smooth on both sides.
Why Not #114 (Web Version) for Now? Holding the Line on PRD "Out of Scope"
The hardest part of an open-source project isn't fixing bugs—it's deciding what not to build.
After a community member wished for Linux / Web / Mobile and cross-device sync in #103, @narumiruna amazingly submitted a massive PR #114: a local web-based Markdown workspace built with Docker Compose + PostgreSQL, complete with file import, conflict protection, a Mermaid lightbox, and YAML document info preview.
Honestly, I was genuinely impressed when I saw that PR. Still, turning back to Section 4 (Out of scope) of docs/PRD.md—written from day one—it explicitly listed:
- Mobile (iOS / Android) and Web versions
- Self-hosted cloud sync (left to third parties like Dropbox, iCloud, etc.)
- Real-time multiplayer collaboration and commenting
Kalamos has been positioned from start to finish as "a local, offline desktop editor (macOS / Windows) that reads and writes plain .md files directly." Taking on a web workspace tied to a backend server and PostgreSQL database would commit the maintainers long-term to two completely different runtimes, databases, and release testing matrices—well beyond our current maintenance capacity.
We therefore decided not to build a web version for now and kept that architecture out of mainline. Meanwhile, @narumiruna extracted the "YAML document info preview" from #114 into desktop Issue #122 and PR #123, which landed cleanly in v0.7.0, and later closed #114 themselves.
3. Evolution of the Release Process: From Manual Version Bumps to Biome + Changesets Automation
Earlier I mentioned bringing Biome and Changesets on board in #99–#102, but once the toolchain actually ran through two real release cycles (v0.5.0 → v0.7.0), it immediately uncovered three very real automation pitfalls. Fixing them one by one is what finally made this release pipeline smooth.
Pitfall 1: As Soon as Biome Entered CI, the Windows Runner Turned Completely Red (CRLF Issue)
After PR #101 added npx biome ci to GitHub Actions, the macOS job passed on the first try, while the windows-latest job reported formatting violations across almost the entire repo!
The cause was a classic: Git on Windows runners enables core.autocrlf by default, converting LF to CRLF on checkout for every file, while Biome checks for LF line endings by default—flagging every single file as non-compliant.
The fix was super clean: add a .gitattributes file at the repo root locking text files to LF (while marking binary images and font files as binary):
* text=auto eol=lf Since no file in the repo actually needed to be stored as CRLF (all CRLF round-trip tests build strings dynamically in memory), adding .gitattributes immediately turned biome ci green on Windows CI.
Pitfall 2: Changesets Auto-Version PRs & sync-version Breaking JSON Formatting (#110)
With Changesets in place, our release cadence became much less stressful:
- Every PR with user-facing changes includes a
.changeset/<name>.mdfile (written in Traditional Chinese**標題** :說明; external contributors aren't blocked if they omit it—maintainers add it). - Once merged into
main,.github/workflows/changesets.ymlautomatically runsnpm run version-packages(changeset version && node scripts/sync-version.mjs), updatingCHANGELOG.md, syncing five version files (package.json,package-lock.json,src-tauri/tauri.conf.json,src-tauri/Cargo.toml,src-tauri/Cargo.lock), and opening or updating thechore(release): bump versionPR. - After merging the version PR, the maintainer runs
git tag vX.Y.Z && git push origin vX.Y.Zlocally to trigger.github/workflows/release.yml, which builds both platforms and creates a Draft Release.
A common GitHub Actions gotcha: because
changesets.ymlopens the version PR using the defaultGITHUB_TOKEN, GitHub's anti-recursion rule means this auto-created version PR will not trigger CI automatically. Before merging, our practical routine is to check out the version PR branch locally and runnode scripts/check-release-version.mjs,npx biome ci, andnode --testto verify everything passes (or if you want GitHub Actions to run CI on it too, you can follow the alternative indocs/release.md—manually close and reopen the PR, or push an empty commit).
On the very first release using this pipeline—v0.5.0 (PR #109)—we immediately hit an awkward bug: running CI on the version PR caused npx biome ci to fail right away!
Opening the diff revealed the culprit instantly: scripts/sync-version.mjs read src-tauri/tauri.conf.json and rewrote the entire file using JSON.stringify(data, null, 2), expanding every Biome-compliant single-line short array into multiple lines, which immediately tripped the Biome check we had just installed. For #109 we had to tack on an emergency biome format --write commit to get unstuck, then immediately opened Issue #110 (PR #120) to fix the root cause:
- Updated
sync-version.mjsto locate the exact span of theversionfield in JSON and replace only the version string slice, instead of rewriting the whole file viaJSON.stringify(package.jsonis written by changeset itself, so it's read-only here). - Preserved indentation, short-array formatting, key order, trailing newlines, and CRLF / LF verbatim; if the
versionfield isn't found, throw immediately instead of silently skipping. - Wrote tests that copy the repo's five real manifest files into a temp directory, sync the version, verify the diff touches only the version lines, run
biometo verify zero formatting drift, and cover CRLF cases as well.
Pitfall 3: Stripping Commit Hashes from CHANGELOG.md (#129)
Changesets' default @changesets/cli/changelog generator prepends a short git commit hash to every bullet (e.g., - 79eec45: ...). That's fine for developers, but because our scripts/generate-release-notes.mjs copies the version's section from CHANGELOG.md straight into GitHub Release Notes for end users, leading every item with a hash looked cluttered.
PR #129 solved this in just 26 lines: a custom changelog generator in .changeset/changelog.cjs that simply outputs - ${firstLine} (dropping the commit hash completely), wired up in .changeset/config.json. Starting with v0.7.0, both the CHANGELOG.md produced by every version PR and the Draft Release notes come out as crisp, clean Traditional Chinese bullet lists with zero manual cleanup needed.
4. Open-Source Collaboration Checklist: Lessons Learned
Going from building v0.1.1 solo to shipping v0.7.0 through multi-agent workflows and community contributions gave us a practical set of takeaways:
- 1. Review external PRs read-only in an isolated worktree—never run
npm installdirectly: Usegit merge-treefor conflicts, AST diffs for semantic changes, and check publish dates and security risks for every new package (this exact step caught the day-oldi18nextrelease). - 2. Give the Reviewer permission to write temporary probe scripts for interactive edge cases: #123's "Backspace eating a hidden newline" is hard to spot by reading code alone, yet a quick Playwright keystroke script reproduced it on the spot.
- 3. Against a fast-moving
main, maintainer takeover beats endless rebase ping-pong: Usegit cherry-pickto preserve original commits, always includeCo-authored-bywhen squashing, and report changes transparently with gratitude on the original PR—keeping quality high without draining contributor enthusiasm. - 4. Always split formatting PRs and pair them with
.git-blame-ignore-revs: Keep config in config PRs, mechanical formatting in formatting PRs, and manual semantic refactoring in separate PRs so everything stays reviewable without washing out history. - 5. Add
.gitattributeslocking LF the moment you enable a formatter in cross-platform CI: Preventscore.autocrlfon Windows runners from turning the whole repo red. - 6. Defend the PRD's "Out of scope": State your project's positioning clearly, and when a direction exceeds maintenance capacity (such as adding a separate backend and database), make a clear call based on scope so the mainline stays focused.
- 7. Don't reflexively bump timeouts for flaky E2E tests—suspect a real app race condition first: #131's
setTimeoutsync wiping out an error message is living proof. - 8. Don't lazily rewrite JSON files with
JSON.stringifyin automation scripts: Replace only the target substring, preserve original formatting, and write integration tests against real repo files validated withbiome.
Summary
These five post-open-source releases (v0.2 → v0.7) actually resonated with me even more than the first three days of building from scratch.
Writing a working editor from zero is a blast, but what turns it into a truly living open-source project are these seemingly mundane details that determine long-term vitality: finding text inside tables, instant Cmd+P across 10,000 notes, Backspace not silently swallowing a YAML newline, keeping a day-old dependency out of the bundle, and landing every external contributor's hard work cleanly into main with full attribution.
Special thanks once again to @narumiruna and @mingchuanhuang-xpc for jumping in so strongly right after open-sourcing—whether it was Biome, Changesets, AGENTS.md, scroll-wheel zoom, YAML document info, bilingual UI, or Windows support, you made Kalamos move far faster and grow far sturdier than I ever could have working alone.
Two more deep-dive posts on pitfalls are coming up next in this series:
- Next post (2026-11-24): Things to Watch Out for in the Windows Implementation (single instance, path & menu differences, headless Edge / Chrome PDF export, dual-platform CI).
- Part 3 (2026-11-25): Things to Watch Out for with Auto-Updates (minisign key separation, real-time cryptographic verification, Draft Releases, and ad-hoc signing re-authorization).
Feel free to browse the repo, try out the latest version, or open an Issue / PR to chat:
- GitHub Repo: kkdai/Kalamos
- Four-Language Product Page: https://www.evanlin.com/Kalamos/
- Releases & Downloads: GitHub Releases
Previously in this series:
- [Herdr in Action] Building Kalamos, a Typora-Style macOS Markdown Editor in Three Days: Claude Code as PM, Dual Parallel Coder Panes, Seamless Handoffs When Quotas Run Out, All the Way to Open Source & v0.1.1
- [Herdr in Action] Writing My Own Herdr Mod: Building a "Ready for Review" Queue with Labels


