release
Skill24k starsChanged 8 months agoMITView on GitHub
Release pipeline for CLI, mobile, web, and server. Guides through version bumping, building, testing, publishing, and deploying. Replaces the old interactive release-it flow with a Claude Code-native experience. Use when user types /release or asks to release, publish, deploy, or ship any component.
- Reads credentials
190 other projects use a version of this, 1 of them edited.
Trending
Less talk lately.about the whole repository
Most recently taken up by
- bonboncinnabon/gemini-plugin-cctheir own version, first seen Oct 5, 2026
- NahumLitvin/prismantistheir own version, first seen Oct 5, 2026
- Kangentic/kangentictheir own version, first seen Oct 5, 2026
- colonyops/hivetheir own version, first seen Oct 5, 2026
- vericontext/vibeframetheir own version, first seen Oct 4, 2026
- shaharia-lab/slackclitheir own version, first seen Oct 4, 2026
Who's talking about slopus/happy
- A Hacker News story“Show HN: Happy Coder – End-to-End Encrypted Mobile Client for Claude Code”Hacker News · Aug 14, 2025 · 30 points
- slopus/happy-cli“feat: add OpenCode integration support”GitHub · Jan 7, 2026 · 17 reactions
- @koki.me“これ面白そう GitHub - slopus/happy: Mobile and Web client for Codex and Claude Code, with realtime voice, …”Bluesky · Jan 5, 2026 · 9 likes
- slopus/happy-cli“Support for Claude Code 2.0 and Sonnet 4.5”GitHub · Sep 29, 2025 · 4 reactions
- @tako-yaki-man.bsky.social“外出先からのスマホからでもクロードコードいじりたい依存者へ github.com/slopus/happy”Bluesky · Feb 24, 2026 · 3 likes
The biggest 5 of 58 mentions linking to the repository that our crawl found. Each line is their own headline.
See all 58
Talked about on GitHub, Bluesky and Hacker News (58 times).
On GitHub · 50
- Jan 7, 2026feat: add OpenCode integration support — slopus/happy-cli17 reactions · 1 comment
- Sep 29, 2025Support for Claude Code 2.0 and Sonnet 4.5 — slopus/happy-cli4 reactions · 1 comment
- Jan 21, 2026docs: update self-hosting guide with Docker Compose and MinIO setup & enhance CLAUDE.md with project architecture — slopus/slopus.github.io3 reactions · 3 comments
- Aug 13, 2026Render agent-style TeX delimiters as math — happier-dev/happier1 reaction · 5 comments
- May 8, 2026feat: add happy to allowLargePackages — cnpm/unpkg-white-list1 reaction · 3 comments
45 more on GitHub
- Apr 29, 2026Proposal: surface tasks/todos as a first-class entity with cross-provider tracking — getpaseo/paseo1 reaction · 2 comments
- Feb 12, 2026Feature Request: Launching Without a Project / Supporting Multiple Projects — sijiaoh/pockode1 reaction · 3 comments
- Dec 17, 2025fix --resume --continue not working temporarily since 0.12.0 — slopus/happy-cli1 reaction · 1 comment
- Sep 1, 2025Add Happy Coder (open source native mobile app) to README.md — webfuse-com/awesome-claude1 reaction
- Aug 16, 2025Add support for happy to enable coding on mobile devices — RchGrav/claudebox1 reaction · 3 comments
- Nov 25, 2026agent-skills.github.slopus.happy: 1.1.6 → 0-unstable-2026-11-15 — sudosubin/agents.nix0 reactions
- Nov 3, 2026agent-skills.github.slopus.happy: 3 → 1.1.6 — sudosubin/agents.nix0 reactions
- Oct 21, 2026Open source alternatives to manage agents — pietroid/lunna0 reactions · 1 comment
- Oct 12, 2026RICE 5: See two or more sessions side by side — agentloops-dev/agent-loops0 reactions · 3 comments
- Oct 12, 2026Web page: install it as an app on a phone's home screen (Android included) — agentloops-dev/agent-loops0 reactions · 1 comment
- Oct 12, 2026Add Happy CLI harness detection — auron-labs/harness-detect0 reactions
- Oct 5, 2026chore(happy): drop the webapp mount once the app's server check is fixed — anthony-spruyt/spruyt-labs0 reactions · 1 comment
- Oct 4, 2026agent-skills.github.slopus.happy: init at 3 — sudosubin/agents.nix0 reactions
- Sep 28, 2026fix(cli): release stdin before handing terminal to local-mode child — tiann/hapi0 reactions · 1 comment
- Sep 14, 2026feat(happy): sync bot pictures as encrypted session avatars — slopus/happy-agent0 reactions · 1 comment
- Sep 9, 2026[upstream] Agy stream-JSON progress rendering — timmikk/happy0 reactions
- Sep 3, 2026[Bug] Responses→Chat 转换器将非 function 类型工具原样透传,导致 chat 上游必然 400 — QuantumNous/new-api0 reactions · 1 comment
- Aug 13, 2026Markdown: render agent-style TeX delimiters as math — happier-dev/happier0 reactions
- Aug 9, 2026The neighbors: tools that put a face on coding agents — alp82/curia0 reactions · 3 comments
- Aug 7, 2026Push notifications for agent events — tienan92it/kitterm0 reactions · 1 comment
- Jul 11, 2026happy-coder: deprecate as newer versions have non-FOSS dependency — Homebrew/homebrew-core0 reactions
- May 28, 2026[Link]: slopus/happy: Mobile and Web client for Codex and Claude Code, with realtime voice, encryption and fully featured — tinylabscom/this-week-in-microvms0 reactions
- May 21, 2026[P2] fix: Progress panel 多 list 切换形同虚设 (upstream #1305) — kmmao/happy0 reactions · 1 comment
- May 21, 2026[P3] question: Better than Dispatch/RC? (upstream #1236) — kmmao/happy0 reactions · 1 comment
- May 21, 2026[P3] fix: /btw 在当前环境不可用 (upstream #1226) — kmmao/happy0 reactions · 2 comments
- May 21, 2026[P3] feat: Android 前台 Service 保持语音模式运行 (upstream #1238) — kmmao/happy0 reactions · 1 comment
- May 21, 2026[P3] feat: 支持自定义回答提交方式 (upstream #1243) — kmmao/happy0 reactions · 1 comment
- May 21, 2026[P3] feat: 允许 Happy Codex 接入已有 Codex app-server (upstream #1253) — kmmao/happy0 reactions · 2 comments
- May 21, 2026[P3] feat: 支持 Google Antigravity (agy) CLI (upstream #1313) — kmmao/happy0 reactions · 2 comments
- May 21, 2026[P2] feat: 添加 PIN / 生物识别 App 锁 (upstream #1262) — kmmao/happy0 reactions · 3 comments
- May 21, 2026[P2] feat: 接入缺失的 Claude Code CLI 子命令 (upstream #1266) — kmmao/happy0 reactions · 2 comments
- May 21, 2026[P2] feat: 移动端支持文件/图片上传 (upstream #1270) — kmmao/happy0 reactions · 1 comment
- May 21, 2026[P2] fix: happy codex 未转发 sandbox 标志导致 bwrap 失败 (upstream #1246) — kmmao/happy0 reactions · 1 comment
- May 21, 2026[P2] fix: zod v3/v4 peer dependency 冲突 (upstream #1265) — kmmao/happy0 reactions · 1 comment
- May 21, 2026[P2] fix: Android alwaysShowContextSize 开关无效 (upstream #1274) — kmmao/happy0 reactions · 1 comment
- May 21, 2026[P2] fix: 远程切回本地模式报 FKH onSessionRestored 错误 (upstream #1231) — kmmao/happy0 reactions · 1 comment
- May 21, 2026[P2] fix: Web 浏览器缩放被强制设为 0.75 (upstream #1309) — kmmao/happy0 reactions · 1 comment
- May 21, 2026[P2] fix: happy codex 终端挂起 (upstream #1261) — kmmao/happy0 reactions · 1 comment
- May 21, 2026[P2] fix: chat title 不再自动创建 (upstream #1251) — kmmao/happy0 reactions · 1 comment
- May 21, 2026[P2] fix: Codex 内存泄漏到新 session (upstream #1277) — kmmao/happy0 reactions · 1 comment
- May 12, 2026upstream: watch slopus/happy#1262 — app-level PIN/biometric lock — thenemal/happy-server0 reactions
- May 11, 2026Mobile/web appears frozen after overnight inactivity (stale client connection) — thenemal/happy-server0 reactions
- May 9, 2026Self-hosting docs are outdated and point to legacy `happy-server` setup? — slopus/slopus.github.io0 reactions
- Apr 17, 2026Add Claude Code Docker image with happy tool — ilteoood/docker-harnesses0 reactions · 1 comment
- Apr 12, 2026byobu/tmux session support for terminal sessions (project → tmux session, task → tmux window), helps allow remote ssh access — debuglebowski/slayzone0 reactions · 1 comment
On Bluesky · 7
- Jan 5, 2026これ面白そう GitHub - slopus/happy: Mobile and Web client for Codex and Claude Code, with realtime voice, encryption and fully featured… — @koki.me9 likes and reposts · 1 reply
- Feb 24, 2026外出先からのスマホからでもクロードコードいじりたい依存者へ github.com/slopus/happy — @tako-yaki-man.bsky.social3 likes and reposts
- Oct 13, 2025📖 Happy — Editor markdown & catatan ringan, open-source & fokus kenyamanan pengguna ✍️ Real-time preview, tema, dukungan LaTeX & tabel 🔗… — @its-me-rhk.bsky.social3 likes and reposts
- Aug 8, 2026スマホやWebからClaude CodeなどのAIエージェントをリモート操作できるモバイルクライアントツールっぽい 移動中や外出先からもAIコーディングの続きができて便利そう yug1224 starred slopus/happy… — @yug1224.com2 likes and reposts
- Aug 8, 2026github.com/slopus/happy GitHub - slopus/happy: Mobile and Web client for Codex and Claude Code, with realtime voice, enc... — @technews4869.bsky.social1 likes and repost
2 more on Bluesky
- Aug 3, 2026📦 slopus / happy ⭐ 23,056 (+41) 🗒 TypeScript Mobile and Web client for Codex and Claude Code, with realtime voice, encryption and fully… — @github-trending-js.bsky.social1 likes and repost
- Jan 14, 2026monitor your agents remotely: simple + free + quick: github.com/slopus/happy complex + powerful + paid: HOST=0.0.0.0 npx vibe-kanban ngrok… — @mikestaub.social1 likes and repost · 1 reply
On Hacker News · 1
- Aug 14, 2025Show HN: Happy Coder – End-to-End Encrypted Mobile Client for Claude Code30 points · 8 comments
Used with
Projects with it also use watch-pr, marketplace and 10 more.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
Hugging FaceSkillwatch-pr
Monitor a PR's CI checks and Greptile code review after submission. Polls CI status, auto-fixes failures via ralph-loop, waits for Greptile review, addresses comments, and iterates until green.
Also in 3 projects that use this
OpenAISkillmarketplace
Vercel Marketplace expert guidance — discovering, installing, and managing third-party integrations via the `vercel integration` CLI. Use when building any app that needs an external capability without a dedicated skill — commerce (stores, storefronts, selling products), payments (checkout, subscriptions, billing), observability/monitoring, messaging/email, search, or CMS — or when discovering, installing, or managing integrations.
Also in 4 projects that use this
Microsoft AzureSkillengineering-principles
GPT-RAG Orchestrator architecture and implementation principles. Use for design, review, meaningful refactoring, runtime strategies, FastAPI, Azure integration, security, testing, or operations.
Also in 4 projects that use this
ZAidBinAsifSkillwrite-readme
Write README files as landing pages not API docs
Also in 3 projects that use this
polyant-aiSkillplugin-authoring
Use when creating, converting, or loading Polyant agent tools/plugins — authoring a *.tool.ts with defineTool, the serialized (JSON Schema) contract, converting a legacy registerTool tool, or wiring an external plugin via PLUGIN_DIRS / src/plugins. Also covers authoring a *.hook.ts with defineHook (conversation lifecycle hooks + control returns halt/injectContext/replaceResponse/regenerate). Covers the module-resolution rules that decide where a plugin can live.
Also in 3 projects that use this
eugenelimSkillnew-spec
Use this skill when the user wants to start a new feature with a spec, or wants to write a spec for something they're about to build. Triggers on "new spec", "write a spec for X", "let's spec this out", "start a feature for…". Spec-driven development; the spec drives implementation. Do NOT use for cross-cutting proposals (use `new-rfc`) or recording decisions (use `new-adr`).
Also in 3 projects that use this
Other versions190 projects use a version of this.
Word for word · 0
None found.
Edited · 1
- Altman-conquer/agentrejoin★ 9339% same
Wrote their own version · 189
- tw93/Pake★ 62ksame name
- Yeachan-Heo/oh-my-claudecode★ 40ksame name
- openai/symphony★ 28ksame name
- coleam00/Archon★ 24ksame name
- microsoft/agent-lightning★ 19ksame name
- EverMind-AI/EverOS★ 13ksame name
- 0xJacky/nginx-ui★ 12ksame name
- modelcontextprotocol/inspector★ 11ksame name
- max-sixty/worktrunk★ 8.8ksame name
- getsentry/sentry-javascript★ 8.8ksame name
179 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository11 other files it gives its agents.
- AGENTS.mdAGENTS.md
- agent-browserSkill
- control-flowSkill
- devSkill
- maintainSkill
- metrics-graphanaSkill
- office-hoursSkill
- sessionsSkill
- terminal-emulatorSkill
- agent-browserSkill
- terminal-emulatorSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
17 rules. 0 are common, 8 are distinctive, and 9 are very specific to this project.
0
Common
Most of the 172 edited versions we read keep these.
8
Distinctive
This author's own choices. Worth a look.
9
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 20
Not with uncommitted changes.
- Distinctive: line 34
Run this and read the output before any release command:
- Very specific: line 44
If HEAD is behind, git merge --ff-only origin/main.
- Distinctive: line 72
After publishing an OTA, verify the channel now serves what you meant:
- Distinctive: line 83
Ask which component to release:
- Very specific: line 114
Do not use a bare vX.Y.Z tag for Happy releases because multiple release streams coexist in this repo
- Distinctive: line 118
Run these in parallel:
- Very specific: line 212
Do NOT pipe it through tail -2 — that cuts the happy line off and makes it look like the command only reports Claude Code's version.
- Very specific: line 231
If the CLI release depends on self-host server changes, release happy-server-self-host separately.
- Very specific: line 244
Before handing a server publish to the user, pre-run the full prepublishOnly chain yourself to catch failures early — the bundle:webapp …
- Very specific: line 294
Use pnpm for workspace packaging.
- Distinctive: line 344
Verify that these gates passed.
- Very specific: line 382
Put the short commit hash in the message: it is what lets the next person answer "what is actually on this channel" from eas update:list …
- Very specific: line 424
IMPORTANT: Always pass --non-interactive to eas build commands.
- Very specific: line 428
IMPORTANT: Always pass --auto-submit to -store builds.
- Distinctive: line 513
Investigate before writing — use subagents (Opus): Don't infer from commit titles.
- Distinctive: line 516
Ask, don't assume: When announce-vs-silent-ship, default state, or scope is unclear, ask the owner and confirm the final include/exclude …
“Common” is measured: kept by at least 6 in 10 of the 172 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Release
You are the release operator for the Happy monorepo. When invoked, walk the user through releasing the component they choose.
Step 0: Where you release from (never skipped)
Every release runs from a local main that is exactly origin/main, checked
against a fetch made right then. Not from a worktree. Not from a branch. Not
from a main that is ahead by an unpushed commit or behind by anyone else's.
Not with uncommitted changes. This applies to every target below: preview OTA,
production OTA, native builds, store submissions, CLI dispatch.
Why this is rule zero. On 2026-09-20 a preview OTA was published from a
worktree commit (fe7de0a1) that had branched off main hours earlier. The
commit was fine on its own, and it was later rebased and pushed, so git looked
right afterwards. But expo-updates serves whatever was published last on a
branch, not whatever is on main. For the next several hours every phone on
the preview channel ran a bundle missing four fixes that main already had:
bot faces, the truncated "Auto" chip, paste-from-clipboard, and the send button
being pushed out of the composer. Nothing errored. The user saw "the same old
issue" and could not tell why. A release from a stale checkout is not a
release, it is a rollback that nobody asked for.
Run this and read the output before any release command:
git checkout main
git fetch origin main
git rev-parse --abbrev-ref HEAD # must print exactly: main
git rev-parse HEAD origin/main # the two hashes must be identical
git status --porcelain # must print nothingIf HEAD is behind, git merge --ff-only origin/main. If it is ahead, the
commits are not on main yet — push first (see AGENTS.md "Sync To Main"),
then release. If the tree is dirty, commit or stash; a release must be
reproducible from the commit EAS records.
The mobile release scripts enforce this mechanically:
packages/happy-app/sources/scripts/releasePreflight.mjs runs first in ota,
ota:production, release:build:appstore, and the other release:build:*
scripts. It fetches, compares HEAD to origin/main, checks the tree is
clean, regenerates changelog.json and insists it is committed, and refuses
with the list of main commits the release would have dropped. If you run
eas update or eas build by hand instead of through those scripts, run the
preflight by hand first:
cd packages/happy-app && node sources/scripts/releasePreflight.mjsThe only exception is one the user asks for by name, in the current
conversation — for example "publish this branch to preview so I can test
it on my phone". A standing instruction from an earlier session does not
count, and neither does your own judgement that it is probably fine. When the
user does ask: fetch and rebase anyway, show them git log --oneline
HEAD..origin/main (what the release will not contain), get a yes, run with
HAPPY_RELEASE_ALLOW_OFF_MAIN=1, and say in the final report that the release
was off-main and from which commit. Afterwards, once the work lands on main,
republish from main so the channel is back on the mainline.
After publishing an OTA, verify the channel now serves what you meant:
cd packages/happy-app && eas update:list --branch <branch> --limit 1 --non-interactiveThe newest group's commit must be your HEAD. If it is not, someone published
after you; find out from what.
Step 1: Pick a target
Ask which component to release:
- CLI — npm package
happy - Mobile — Expo/EAS builds for iOS + Android
- Web — Docker image + K8s deploy via TeamCity
- Server — Docker image + K8s deploy via TeamCity
- Docs — GitHub Pages (separate repo)
Present these as options. Wait for the user to pick.
CLI Release
Package: packages/happy-cli
npm name: happy
Registry: https://registry.npmjs.org
Git tags: cli-{version}CLI releases use .github/workflows/release-happy-cli.yml, following the
happy-agent manual-dispatch convention: one run builds/tests/packs, then
publishes that exact artifact through npm trusted publishing. Never publish
from local npm credentials or create a release tag by hand. The workflow creates
the tag and GitHub Release only after npm publication and a fresh-install smoke
check succeed. Steps 4–6 below describe the workflow's build gates, not a second
local release procedure.
Tag namespace note:
- CLI releases use
cli-X.Y.Z - Native releases use
native-<runtime-version> - OTA releases use
ota-<ota-version> - Do not use a bare
vX.Y.Ztag for Happy releases because multiple release streams coexist in this repo
Step 2: Gather state
Run these in parallel:
npm view happy dist-tags— see current latest + betacat packages/happy-cli/package.json | grep version— local versiongit status --short— check for dirty stategit branch --show-current— confirm branchgit log --oneline -10— recent commits for release notes context
Present a summary:
Local version: X.Y.Z
npm latest: X.Y.Z
npm beta: X.Y.Z-N
Branch: main
Working tree: clean / dirtyStep 3: Pick channel and version
Ask the user:
- Channel:
latestorbeta - Bump type: For latest:
patch,minor,major. For beta:prerelease(appends-N), or explicit version.
Suggest a sensible default based on the current state. For beta, the next prerelease of the current version. For latest, a patch bump.
Present as options. Wait for confirmation.
Step 4: Version bump
The workflow stamps its requested version into packages/happy-cli/package.json
before building. Do NOT use npm version (it chokes on pnpm workspace protocol).
Beta identities stay in the artifact; stable releases persist the version on main.
IMPORTANT: do this before build/test for the CLI. The build imports package.json and bakes the version into the generated bundle. If you build first and bump later, happy --version can still report the old prerelease version even though npm metadata shows the new one.
Step 4b: @slopus/happy-wire must stay bundled — do NOT move it back
packages/happy-cli/package.json keeps "@slopus/happy-wire": "workspace:*" in
devDependencies, deliberately. That is not a mistake to tidy up.
pkgroll has no --external flag — its entire externals policy is derived from
dependencies/peerDependencies. So the dependency section IS the bundling
switch:
- in
dependencies→ pkgroll emits a bareimport ... from '@slopus/happy-wire'and Node resolves it from the registry at runtime - in
devDependencies→ pkgroll inlines the code intodist/. The dev dependency may remain in the published manifest, but is not installed as a runtime dependency.
It must stay in devDependencies. After any build change, verify:
# must return nothing — no runtime import may survive
grep -rnE "(import|require).*@slopus/happy-wire" packages/happy-cli/dist/
# must return the definitions, not just import mentions
grep -rhoE "(function|const) (createEnvelope|stripLeadingTaskNotificationWrappers)" packages/happy-cli/dist/(A bare "@slopus/happy-wire": "workspace:*" string does still appear in dist —
that is the CLI's own package.json inlined as a JSON literal for the version
string. Inert. Only an actual import/require matters.)
Why this exists. 1.2.1-beta.0 shipped declaring "@slopus/happy-wire":
"0.1.0" — the only version on npm, published 2026-02-13. Local happy-wire was
also labeled 0.1.0 but had 18 commits of drift, including f85b20c3 which
added stripLeadingTaskNotificationWrappers and imported it from
happy-cli/src/codex/utils/sessionProtocolMapper.ts. February's tarball had no
such export, ESM failed at module load, and happy crashed on every
invocation — dead on arrival, not degraded. 1.2.0 had survived the identical
latent bug purely because none of its 15 import sites needed a post-February
symbol. workspace:* publishes the local version NUMBER, never the local CODE.
No in-repo test can catch that class of bug. Inside the monorepo
workspace:* resolves to local source, so prepublishOnly — build, typecheck,
all 792 unit tests — always sees the correct code. It only fails against the
registry. The isolated install smoke check is what catches that class of bug.
Still exposed — happy-agent and happy-server-self-host both keep
happy-wire in dependencies, so they carry the original trap. Before publishing
either, bundle it the same way or get happy-wire republished first.
Publish rights: @slopus/happy-wire is owned solely by steve.kite
<steve@korshakov.com>. bra1ndump is an owner of happy but NOT of the
@slopus scope, so publishing happy-wire 404s for them. Bundling exists partly
to route around that.
Note: happy --version prints BOTH happy's own version and the Claude Code
version it found:
happy version: 1.2.1-beta.1
Using Claude Code v2.1.224 from native installer
2.1.224 (Claude Code)Do NOT pipe it through tail -2 — that cuts the happy line off and makes it
look like the command only reports Claude Code's version. Read the first line.
Step 5: Build
cd packages/happy-cli
pnpm --filter happy run buildReport success/failure. Stop on failure.
Step 5b: Self-host server split
The happy npm package no longer bundles the self-host server binary or webapp.
Packaged installs resolve those from the separately installed
happy-server-self-host package. Do not rebuild or ship tools/server or
tools/webapp as part of a CLI release.
If the CLI release depends on self-host server changes, release
happy-server-self-host separately. It lives in packages/happy-server-self-host
and is the publishing shell around the private packages/happy-server:
pnpm --filter happy-server-self-host build bundles that package's standalone
entrypoint into dist/ and copies prisma/ in (this needs bun), then
pnpm --filter happy-server-self-host run bundle:webapp builds the bundled
webapp. Publish from packages/happy-server-self-host — packages/happy-server
is private and is never published. The server package is a JS/TS npm package;
npm handles platform
specific dependencies such as Prisma and sharp normally. Do not pass
--ignore-scripts when publishing it; its prepublishOnly script rebuilds the
runtime, rebuilds the webapp, and runs tests before npm receives the tarball.
Before handing a server publish to the user, pre-run the full prepublishOnly
chain yourself to catch failures early — the bundle:webapp step runs a multi-minute
expo export, and build needs bun:
pnpm --filter happy-server-self-host --fail-if-no-match run prepublishOnlyThe server typecheck, unit suite, and both Docker images are gated by
.github/workflows/server.yml.
(Observed: 1332 merged a standalone.spec.ts test that only passes on Windows
because the impl used POSIX path.basename; it was red on main and would have
aborted the publish at the prepublishOnly test step.)
Step 6: Test (unit only)
cd packages/happy-cli
pnpm --filter happy exec vitest run --project unitIntegration tests are slow and flaky — skip them for releases. Unit tests are the gate.
Expect the unit suite to take around a minute; src/utils/serverConnectionErrors.test.ts is particularly slow, so don't mistake a long run for a hang.
Report results. If failures, ask the user whether to proceed or abort.
Step 7: Publish
Fetch/rebase onto current main before dispatching. Build user-facing release notes
from the actual changes since the previous CLI release of that channel (for a
first beta of a new stable target, start from the latest stable). Keep notes under
.context/. Show the chosen version, channel, and notes and get confirmation.
gh workflow run release-happy-cli.yml --repo slopus/happy --ref main \
-f version=X.Y.Z-beta.N -F prerelease=true \
-F release_notes=@.context/release-notes.mdStable releases use version=X.Y.Z and prerelease=false. The workflow derives
the npm dist-tag (beta or latest) and rejects mismatched versions. Do not
introduce a separate prepare/publish dispatch. -F release_notes=@... reads file
contents; -f release_notes=... sends a literal path, which is wrong.
The workflow runs prepublishOnly explicitly after version stamping and before
pnpm pack. Packing or publishing an existing tarball does not invoke the source
workspace's prepublishOnly. Never omit this build/typecheck/unit-test gate.
1.1.10-beta.9 previously shipped a stale beta.8 bundle when scripts were skipped.
Use pnpm for workspace packaging. Uploading the already-tested pnpm tarball with
a pinned npm CLI is supported and matches Happy Terminal's CI. Do not run raw
npm publish against the source workspace. npm 11.5.1+ supports OIDC; the workflow
pins and directly invokes npm 11.18.0 so Node's bundled npm cannot shadow it.
One-time trust configuration on npm: GitHub owner slopus, repository happy,
workflow release-happy-cli.yml, environment npm, direct publishing allowed.
The GitHub environment permits only main. Never request npm passwords, tokens,
browser authentication links, or OTPs in chat, and never fall back to local npm
credentials if OIDC fails.
Step 8: Verify
npm view happy@{version} version # did the version actually publish?
npm view happy dist-tags # did the channel tag move?Watch the dispatched run to completion using the product's durable wait/monitor
mechanism and GitHub CLI status/logs. Check npm view happy@X.Y.Z version before
retrying any failed publication: npm versions are immutable. A failed publish
must leave the release tag and GitHub Release absent. If publication succeeded
but a later gate failed, investigate before retrying; do not overwrite the version
or move an existing tag.
⚠️ This metadata check is necessary but NOT sufficient. npm view ... version
only confirms the tarball was accepted — it says nothing about what's inside it.
A bundle stamped with the wrong version (the --ignore-scripts footgun above) passes
this check cleanly. The authoritative check is the workflow's fresh-install
smoke test (happy --version). Never report a release as done on the
metadata check alone.
Then confirm the new version appears under the correct dist-tag. The tag often lags the publish by 10–40s — poll a few times before concluding it failed; npm tag propagation is not instant.
Step 9: Read back the release and installed-package verification
gh release view cli-X.Y.Z --repo slopus/happy --json body,tagName,isDraft,isPrerelease,urlThe body must contain the actual notes, not a filename. Betas must be prereleases, must update only npm's beta tag, and must leave GitHub's latest release unchanged. The CLI shares its repository with native/OTA releases, so even stable CLI releases do not automatically replace GitHub's latest release.
The workflow checks the tarball SHA-256 after artifact download, compares the npm
integrity and provenance metadata, then installs the published version in a fresh
directory and checks happy --version, happy --help, and happy daemon status.
Verify that these gates passed. Do not replace the maintainer's global CLI or
restart their daemon as an implicit release step. After stable releases, fetch
and fast-forward/rebase the workflow's version commit while preserving local work.
Mobile Release
Package: packages/happy-app
Variants: development, preview, production
Platform: Expo SDK 55 / React Native 0.83.1Step 0 first, always. Every command in this section is wrapped by
sources/scripts/releasePreflight.mjs; if you bypass a pnpm script and call
eas directly, run the preflight yourself.
Build types
Always ask the user explicitly what they want to release. Present these options in order of popularity:
- OTA update (preview) — push JS bundle to preview channel. Most common release type.
- OTA update (production) — push JS bundle to production channel. Do this after preview OTA is validated.
- Native dev build — when native code changes. Points to dev server with bundled app.
- Full native release — build all profiles (dev + preview + production) to prep for a new native release.
OTA Updates
# Preview (most common). pnpm forwards the trailing flags to `eas update`.
cd packages/happy-app && pnpm ota --message "<what changed> (<short sha>)" --non-interactive
# Production
cd packages/happy-app && pnpm ota:productioneas update prompts for a message when none is given, and stdin is not
readable from an agent, so always pass --message and --non-interactive.
Put the short commit hash in the message: it is what lets the next person
answer "what is actually on this channel" from eas update:list alone.
The ota script is releasePreflight.mjs && pnpm typecheck && eas update
--branch preview. The preflight regenerates changelog.json from
CHANGELOG.md and refuses if the result is not committed, so edit the
changelog, regenerate, commit, push, then release. Do not reach around the
script to eas update directly just to skip a step it is failing on; the
failure is the point.
Production OTA (ota:production) dispatches the EAS workflow in
.eas/workflows/ota.yaml, which publishes the current commit to the
production channel. Same rule: main, matching origin/main, pushed. Never
run it without the user asking for a production OTA in the current
conversation.
Native Builds
- Dev build — development profile, used when native code changes (points to dev server)
cd packages/happy-app && eas build --profile development --platform all --non-interactive TestFlight / Play Store builds — use
-storeprofiles for distribution via TestFlight and Play Store. Always pass--auto-submitso the build goes straight to TestFlight after completion.# Production, both platforms, auto-submitted to App Store Connect and Play Console. # This is `release-production.sh`, and it runs the preflight first. cd packages/happy-app && pnpm release:build:appstore # Preview (TestFlight/internal testing) — run the preflight yourself, then: cd packages/happy-app && node sources/scripts/releasePreflight.mjs && eas build --profile preview-store --platform ios --non-interactive --auto-submit # Dev (TestFlight, points to dev server) cd packages/happy-app && node sources/scripts/releasePreflight.mjs && eas build --profile development-store --platform ios --non-interactive --auto-submitAfterwards,
eas build:list --limit 4 --non-interactive --jsonand check that each build'sgitCommitHashis yourHEADand itsruntimeVersionis the one inapp.config.js. A build from the wrong commit is the native version of the stale-OTA mistake, and it is far harder to undo.
IMPORTANT: Always pass --non-interactive to eas build commands. Without it,
EAS prompts for Apple account login interactively which breaks in non-TTY contexts
(Claude Code, CI). Remote credentials are already configured on EAS servers.
IMPORTANT: Always pass --auto-submit to -store builds. Without it, the build
finishes but never reaches TestFlight — you have to manually submit with eas submit.
EAS Build Profiles
Profile Distribution Channel Notes
development-store store development Dev build via TestFlight
preview-store store preview TestFlight / Play Store internal testing
production store production App Store / Play Store submissionInternal / ad-hoc profiles (rarely used)
These install via direct link, NOT TestFlight. Almost never needed — prefer
the -store profiles above.
Profile Distribution Channel
development internal development
preview internal previewVersion source is remote (EAS manages build numbers, auto-incremented).
Runtime version is runtimeVersion in app.config.js (currently "21") — bump
it when native code changes, so an OTA built against the new native layer can
never land on an old binary.
App Store Connect
Apple ID: steve@bulkovo.com
Team ID: 466DQWDR8C
App Store Connect App IDs:
Production: 6748571505 (com.ex3ndr.happy)
Preview: 6749025570 (com.slopus.happy.preview)
Development: 6748984254 (com.slopus.happy.dev)Web Release
Package: packages/happy-app (same Expo app, web export)
Dockerfile: Dockerfile.webapp
Image: docker.korshakov.com/happy-app:{version}
K8s: packages/happy-app/deploy/happy-app.yaml (3 replicas)Web releases go through TeamCity (Lab_HappyWeb). The config is in the TeamCity UI, not in the repo.
Flow: expo export --platform web -> nginx:alpine static serve -> Docker build -> push -> K8s deploy.
Build args: POSTHOG_API_KEY, REVENUE_CAT_STRIPE.
Guide the user to trigger the TeamCity build, or help with manual Docker builds if needed.
Server Release
Package: packages/happy-server
Dockerfile: Dockerfile.server (production), Dockerfile (standalone w/ PGlite)
Image: docker.korshakov.com/handy-server:{version}
K8s: packages/happy-server/deploy/handy.yaml (1 replica, port 3005)Server releases go through TeamCity (Lab_HappyServer). The config is in the TeamCity UI, not in the repo.
Build: node:20 + python3 + ffmpeg, builds happy-wire + happy-server. Secrets from Vault: handy-db, handy-master, handy-github, handy-files, handy-e2b, handy-revenuecat, handy-elevenlabs. Redis: happy-redis StatefulSet (redis:7-alpine, 1Gi persistent volume).
Guide the user to trigger the TeamCity build.
Docs Release
Site: happy.engineering (GitHub Pages)
Repo: github.com/slopus/slopus.github.ioSeparate repo, not part of this monorepo. Guide the user to push to that repo.
Writing release notes (the in-app changelog)
CHANGELOG.md is regenerated into changelog.json and shown inside the mobile app, on a phone, right after an OTA update. Write for that reader.
- Investigate before writing — use subagents (Opus). Don't infer from commit titles. Spawn parallel subagents to read the actual code + git history of each candidate change and classify it: user-visible UX vs impl detail, default-on vs gated, new vs polish/fix.
- Default-off ⇒ exclude. A change behind a setting/experimental flag that defaults to OFF (or whose UI entry point is hidden) is a silent ship — omit it until it's on by default. Same for impl / perf-internal / refactor / type-only changes.
- Audience is phone users. Most never touch the CLI or desktop. Be skeptical of CLI-only / desktop-only / web-only / beta-only items — a genuinely strong feature can still be wrong for this venue; announce those in CLI release notes / docs / GitHub instead.
- Ask, don't assume. When announce-vs-silent-ship, default state, or scope is unclear, ask the owner and confirm the final include/exclude list before writing. Never headline-announce on your own judgment.
- Voice: benefit-first, terse, em-dash, one line per item, grouped as a dated themed entry like existing ones. Edit
CHANGELOG.mdonly, then regenerate viatsx packages/happy-app/sources/scripts/parseChangelog.ts. - Community Credits bullet. End each entry with a single bullet crediting community contributors whose commits ship in it:
- Community Credits: [@user1](https://github.com/user1), [@user2](https://github.com/user2). Core team never appears there — Kirill (bra1ndump/ kirill2003de@gmail.com),Scoteezy, and Steve (ex3ndr). To find contributors: get the previous OTA's commit viaeas update:list --branch preview+eas update:view <group-id> --json(gitCommitHash), thengit log <hash>..HEADand keep non-core authors. GitHub handles come from the PR (gh pr view <n> --json author), not from the commit email. If an OTA shipped without a changelog entry, its uncredited community commits roll into the next entry's credits.
Rules
- Release only from local
mainthat isorigin/main, fetched right then, tree clean — see Step 0. Not a worktree, not a branch, not ahead, not behind. The mobile scripts refuse otherwise. The only exception is one the user asks for by name in the current conversation; then run withHAPPY_RELEASE_ALLOW_OFF_MAIN=1, show whatmaincommits the release lacks, and say it was off-main in the report. - Release notes: investigate with subagents, exclude default-off, ask when unsure — see "Writing release notes" above.
- Always present options — never assume which component, channel, or version.
- Always verify before publishing — show the user what will be published and get confirmation.
- CLI releases use the approved GitHub workflow — dispatch from main with the confirmed version and notes; never publish from local credentials or handle npm credentials/OTP.
- Do not bundle self-host server/webapp into
happy— self-host runtime and the bundled webapp ship throughhappy-server-self-host, not the main CLI package. - Unit tests are the gate, not integration tests — integration tests are slow and have flaky abort/interrupt tests.
- Use pnpm to pack the workspace — CI uploads that exact tested tarball with its pinned npm CLI; never use raw npm publishing on the source workspace.
- Run prepublishOnly after stamping and before packing — tarball upload does not run the workspace's lifecycle scripts. Never skip this gate.
- Never force-push tags — if a tag exists, stop and ask.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

