dev
Skill24k starsChanged 8 months agoMITView on GitHub
Local development guide for the Happy monorepo. How to build, install, test, and run the CLI, server, mobile app, and desktop (Tauri) locally. Use when the user types /dev, asks how to "build", "start dev", "install locally", or "run the ___ package".
- Deletes or force-pushes
- Installs packages
24 other projects use a version of this, 1 of them edited.
How people change it
All 1 edited versions we compared keep every one of its 11 rules.
Of the 1 edited version we compared: 1 keep every rule.
We split this file and each edited version into the rules they give an agent and match them by wording. A version that adds no rule of its own and has not changed since this file last did reads as an older text, so what it lacks is not counted as dropped. We keep no past texts of a file, so that is inferred, and an edited version that started from an older text still counts its gaps as drops.
Trending
More talk lately.about the whole repository
Most recently taken up by
- harshanandak/forgetheir own version, first seen Sep 28, 2026
- jmche/skills-hubtheir own version, first seen Sep 8, 2026
- raymassie/crucibletheir own version, first seen Sep 7, 2026
- IgorKonovalov/market-analyzertheir own version, first seen Sep 4, 2026
- brianonbased-dev/HoloScripttheir own version, first seen Aug 20, 2026
- sebastiandev/ateliertheir own version, first seen Aug 19, 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 test, memory and 3 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.
Microsoft AzureSkilltest
Also in 4 projects that use this
GoogleSkillmemory
Expertise in maintaining persistent bot memory, synchronizing with previous sessions via the Task Ledger, and preserving decision logs.
Also in 3 projects that use this
GitHubSkillrefactor
Surgical code refactoring to improve maintainability without changing behavior. Covers extracting functions, renaming variables, breaking down god functions, improving type safety, eliminating code smells, and applying design patterns. Less drastic than repo-rebuilder; use for gradual improvements.
Also in 3 projects that use this
SentrySkillreview
Fixture review skill.
Also in 5 projects that use this
VercelSkillsetup
Set up Vercel CLI and project configuration. Use when the user says "set up Vercel", "configure Vercel", "link to Vercel", or "vercel init".
Also in 3 projects that use this
Other versions24 projects use a version of this.
Word for word · 0
None found.
Edited · 1
- Altman-conquer/agentrejoin★ 9378% same
Wrote their own version · 23
- microsoft/playwright-cli★ 14ksame name
- stellarlinkco/myclaude★ 2.8ksame name
- heliohq/ship★ 93same name
- Aurealibe/claude-config★ 67same name
- yuanlang12/Kite★ 19same name
- vshrinath/virtual-product-factory★ 16same name
- brianonbased-dev/HoloScript★ 9same name
- Kapi-IDE/kapi-sprints★ 8same name
- sebastiandev/atelier★ 8same name
- harshanandak/forge★ 4same name
13 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
- maintainSkill
- metrics-graphanaSkill
- office-hoursSkill
- releaseSkill
- sessionsSkill
- terminal-emulatorSkill
- agent-browserSkill
- terminal-emulatorSkill
The file
We split this skill into the rules it gives an agent
11 rules. 0 are common, 2 are distinctive, and 9 are very specific to this project.
0
Common
Most of the 16 edited versions we read keep these.
2
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
- could be automatic: a setting could enforce it
- Distinctive: line 53
Run a single test file quickly:
- Distinctive: line 108
When the user asks to "rebuild the desktop app", "kill the running one and reinstall", or anything in that shape — do all four steps in …
- Very specific: line 120
If the variant is ambiguous, check what's running with ps aux | grep "/Applications/.*Happy" | grep -v grep and match.
- Very specific: line 140
Run the build in the background (run_in_background: true on Bash) and poll the output file.
- Very specific: line 142
Do NOT skip the rm -rf before cp — cp -R over an existing .app merges directories and leaves stale files.
- Very specific: line 143
If macOS Gatekeeper complains on relaunch, xattr -dr com.apple.quarantine "/Applications/$NAME.app" clears it.
- Very specific: line 169
Do not publish by hand. Use /release — it handles npm publish, git tags, GitHub releases, and the smoke check.
- Very specific: line 181
Never use npm install or yarn install — only pnpm.
- Very specific: line 182
Never add a dev / cli tsx-based script back to happy-cli.
- Very specific: line 183
Never bring back release-it.
- Very specific: line 184
Never introduce ~/.happy-dev as a default.
“Common” is measured: kept by at least 6 in 10 of the 16 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
/dev - Local Development
Happy is a pnpm monorepo. Everything uses pnpm workspaces — do not use npm or yarn directly.
First-time setup
pnpm install # installs deps for every package
pnpm --filter happy cli:install # builds happy-cli + links it as the global `happy` binarycli:install replaces whatever happy is on your PATH (npm-installed or not) with a symlink to packages/happy-cli/. Daemon is restarted as part of the script. Uses ~/.happy/ — same as production.
To undo: npm unlink -g happy && npm i -g happy@latest.
Packages
packages/happy-cli # the `happy` CLI and daemon, published to npm
packages/happy-server # Node + Prisma server, deployed via TeamCity
packages/happy-app # Expo app: iOS, Android, web, Tauri desktop
packages/happy-agent # agent runtime
packages/happy-wire # shared Zod schemas + wire typeshappy-cli
packages/happy-cli
scripts in package.json:
typecheck # tsc --noEmit
build # rm -rf dist && tsc --noEmit && pkgroll
test # build + vitest run
cli:install # build + stop daemon + npm link + start daemon
prepublishOnly # pnpm test (runs build inside test)
postinstall # unpacks difft + rg binaries into tools/unpacked/Work loop:
pnpm --filter happy cli:install # rebuild + relink + restart daemon
happy daemon status # confirm your build is running
happy doctor # list all happy processes
tail -f ~/.happy/logs/$(ls -t ~/.happy/logs/ | head -1)Run a single test file quickly:
pnpm --filter happy exec vitest run src/path/to/file.test.tsUnit-only (fast, ~1 min):
pnpm --filter happy exec vitest run --project unitIntegration tests hit real APIs and are flaky — run on demand, never in the release gate.
Dev data sandbox (optional)
happy reads HAPPY_HOME_DIR to override ~/.happy/. To run two versions side-by-side without touching your prod auth:
HAPPY_HOME_DIR=~/.happy-dev happy daemon start
HAPPY_HOME_DIR=~/.happy-dev happy authPoint at a local server the same way:
HAPPY_SERVER_URL=http://localhost:3005 happy daemon starthappy-server
pnpm --filter happy-server standalone:dev # localhost:3005, embedded PGlite, no DockerApp auto-reloads on source changes. Point the CLI or the Expo app at it with HAPPY_SERVER_URL=http://localhost:3005 / EXPO_PUBLIC_HAPPY_SERVER_URL=....
happy-app (Expo)
pnpm --filter happy-app start # expo start (Metro bundler)
pnpm --filter happy-app ios:dev # iOS simulator, development variant
pnpm --filter happy-app android:dev
pnpm --filter happy-app web # web build, served locally
pnpm --filter happy-app tauri:dev # macOS desktop appVariants:
development com.slopus.happy.dev # hot reload, internal
preview com.slopus.happy.preview # OTA / beta testing
production com.ex3ndr.happy # App StoreRebuild and reinstall the desktop .app
When the user asks to "rebuild the desktop app", "kill the running one and reinstall", or anything in that shape — do all four steps in order, do not stop after building.
Variants → product name → build script:
production Happy.app pnpm --filter happy-app tauri:build:production
preview Happy (preview).app pnpm --filter happy-app tauri:build:preview
dev Happy (dev).app pnpm --filter happy-app tauri:build:devBuild output for all variants:
packages/happy-app/src-tauri/target/release/bundle/macos/<ProductName>.appIf the variant is ambiguous, check what's running with ps aux | grep "/Applications/.*Happy" | grep -v grep and match. Production is the default.
Steps (substitute $NAME with the product name, e.g. Happy or Happy (dev)):
# 1. build (slow: ~3–10 min, expo web export then cargo release build)
pnpm --filter happy-app tauri:build:production
# 2. quit the running app gracefully (no-op if not running)
osascript -e 'tell application "$NAME" to quit' || true
# 3. replace the installed bundle
rm -rf "/Applications/$NAME.app"
cp -R "packages/happy-app/src-tauri/target/release/bundle/macos/$NAME.app" /Applications/
# 4. relaunch
open -a "$NAME"Notes:
- Run the build in the background (
run_in_background: trueon Bash) and poll the output file. It printsFinished \release` profile` near the end. osascript ... to quitis graceful — it gives the app a chance to flush state. Only fall back topkill -f "/Applications/$NAME.app/Contents/MacOS/app"if the quit hangs.- Do NOT skip the
rm -rfbeforecp—cp -Rover an existing.appmerges directories and leaves stale files. - If macOS Gatekeeper complains on relaunch,
xattr -dr com.apple.quarantine "/Applications/$NAME.app"clears it. Local builds are unsigned.
happy-app-logs (remote log receiver)
pnpm --filter happy-app-logs dev # starts on http://0.0.0.0:8787Receives POST requests to /logs from the mobile app's patched console (see consoleLogging.ts).
Logs to stdout and ~/.happy/app-logs/<timestamp>.log.
To connect: set the log server URL in the app's dev settings to http://<LAN_IP>:8787.
The app's consoleLogging.ts sends all console.log/warn/error to this endpoint when configured.
Console output must be enabled in the app (dev/preview variants default on, production defaults off, togglable from the dev settings screen).
Cross-cutting
- Hoisted deps: pnpm hoists node_modules to the repo root.
packages/*/node_modules/is mostly empty. Node's resolution walks up, so imports work transparently. - Workspace deps:
"@slopus/happy-wire": "workspace:*"resolves topackages/happy-wire/— edits are picked up live. $npm_execpath: legacy; happy-cli usespnpmliterally. Windows cmd.exe doesn't expand$VAR.- Build before tests: tests spawn the built CLI binary (for daemon integration), so
pnpm testrunsbuildfirst. Do not remove.
Releasing
Do not publish by hand. Use /release — it handles npm publish, git tags, GitHub releases, and the smoke check.
Troubleshooting
happy: command not found → pnpm --filter happy cli:install
daemon won't start → happy daemon stop; rm ~/.happy/daemon.state.json.lock; happy daemon start
wrong `happy` version → which happy && ls -la $(which happy) — confirms where it resolves to
tools/unpacked missing → pnpm install (postinstall re-extracts)
stale deps after branch swap → pnpm install (pnpm is picky about lockfile drift)Rules
- Never use
npm installoryarn install— only pnpm. - Never add a
dev/clitsx-based script back to happy-cli. The build step is not optional — daemon spawns the built binary and would desync. - Never bring back
release-it. Releases go through/release. - Never introduce
~/.happy-devas a default. It exists as an opt-in viaHAPPY_HOME_DIR, nothing more.
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.

