From 0eb4b491b1bfd62e2112fd1ade3ce0b6022b3a3c Mon Sep 17 00:00:00 2001 From: Yevhen Mishchenko <92166133+Draganoider@users.noreply.github.com> Date: Sun, 18 Oct 2026 14:41:18 -0700 Subject: [PATCH 1/2] Redesign the README The page leads with the logo and a picture of the whole idea: an agent finishing in a terminal while the phone rings. The Mermaid sequence diagram is replaced by a drawing of what stays on the computer and the one small event that leaves. The copy now covers the Code Alarm app next to ntfy, a commands table and troubleshooting. npm can't resolve the README's relative paths, so prepack points the packed copy at GitHub. --- AGENTS.md | 2 +- CHANGELOG.md | 6 ++ README.md | 185 ++++++++++++++++++++++++----------- cli/package.json | 2 +- cli/prepack.mjs | 25 +++++ docs/assets/hero.svg | 127 ++++++++++++++++++++++++ docs/assets/how-it-works.svg | 115 ++++++++++++++++++++++ docs/assets/logo.svg | 23 +++++ 8 files changed, 424 insertions(+), 61 deletions(-) create mode 100644 cli/prepack.mjs create mode 100644 docs/assets/hero.svg create mode 100644 docs/assets/how-it-works.svg create mode 100644 docs/assets/logo.svg diff --git a/AGENTS.md b/AGENTS.md index 1af4032..425d386 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -42,7 +42,7 @@ Mishchenko. | `cli/dist/code-alarm.mjs` | The bundled CLI, **committed** and built by `cli/build.mjs`; also the npm package's entry | | `plugins/claude-code/` | The Claude Code plugin: manifest, hooks, the skill (generated) and `bin/` (the bundle plus PATH shims) | | `.claude-plugin/marketplace.json` | Makes this repository a Claude Code plugin marketplace | -| `docs/` | Protocol and agent notes | +| `docs/` | Protocol and agent notes; `assets/` holds the README's logo and pictures, hand-written SVG that animates on GitHub. `cli/prepack.mjs` points the npm copy of the README at them on GitHub | ## Working conventions diff --git a/CHANGELOG.md b/CHANGELOG.md index e384994..5cd899a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,12 @@ Notable changes to the `code-alarm` CLI and the Claude Code plugin. The format f ## [Unreleased] +### Changed + +- A new README: the logo, a picture of an agent finishing and the phone ringing, a diagram of + what stays on your computer, both phone apps side by side, a commands table and + troubleshooting. On npm its images and links now point at GitHub, so they show there too. + ## [0.2.1] — 2026-10-18 ### Changed diff --git a/README.md b/README.md index 68dd3e1..492ff20 100644 --- a/README.md +++ b/README.md @@ -1,59 +1,103 @@ +
+
+
- Start a long agent task, walk away, and get woken up when it's done.
- A real alarm on your phone when Claude Code or Codex finishes or needs you.
+ Your agent is done. Your phone rings.
+ A real alarm on your phone when Claude Code or Codex finishes, fails or needs you.
+ Quick start · + Use it · + How it works · + Commands · + Protocol
---- +
+
+
| Only armed work rings Sessions you didn't arm stay silent. Old and duplicate alerts never ring. |
+ Knows why it stopped Done, needs you (a question or a permission prompt), failed or stopped. |
+ Loud, or quiet A repeating alarm by default, or one ordinary notification when you arm it with quiet. |
+
| Private by design Only the event's kind, the folder's name and the agent leave your computer. No prompts, code or transcripts. |
+ Never slows your agent Hooks return at once and send in the background, so a bad network can't stall a session. |
+ Free and open source The CLI, the hooks and the Claude Code plugin are MIT, all in this repository. |
+
+
+
]` | Pair with the Code Alarm app, by QR or by the code the app shows |
+| `code-alarm init` | Create a private ntfy topic instead, and show how to subscribe |
+| `code-alarm test [--notify]` | Ring the phone now, or send a plain notification |
+| `code-alarm arm [--for 12h] [--notify]` | Ring when the agent in this folder next finishes, stops or needs you |
+| `code-alarm nap 2h [--notify]` | Ring for every session until the time is up |
+| `code-alarm disarm [--all]` | Cancel arming for this folder, or everything |
+| `code-alarm status [--last]` | What's set up, what's armed, and the last alerts |
+| `code-alarm use ntfy\|app` | Switch between ntfy and the app when both are set up |
+| `code-alarm unpair` | Remove this computer from the phone |
+| `code-alarm install codex` | Add the hooks and skill to Codex (`uninstall codex` removes them) |
+
+`code-alarm --help` lists every option.
+
+## Troubleshooting
+
+- **Nothing rings after you reinstalled the app or cleared its data.** The phone registered
+ afresh, so this computer's pairing points at the old install. `code-alarm status` and
+ `code-alarm test` say so. Pair again with `code-alarm pair`, and remove the old computer from the
+ app's list.
+- **Codex stopped alerting after an update.** Codex's hooks run their own copy of code-alarm.
+ `code-alarm status` says when it's out of date, and `init`, `pair`, `unpair` and `use` refresh
+ it for you.
+- **Anything else:** `code-alarm status` shows the last alerts and what happened to them. Bugs and
+ ideas are welcome in [issues](https://github.com/Draganoider/code-alarm/issues).
## Develop
@@ -124,7 +190,8 @@ npm run check
`npm run check` type-checks, runs the tests, and builds the bundle into `cli/dist/` and the Claude
Code plugin. The bundled files are committed, because plugins install straight from the repository.
-To try your working copy in Claude Code: `claude --plugin-dir plugins/claude-code`.
+To try your working copy in Claude Code: `claude --plugin-dir plugins/claude-code`. The rules for
+contributors, human or AI, are in [AGENTS.md](AGENTS.md).
## License
diff --git a/cli/package.json b/cli/package.json
index 1451204..77336f5 100644
--- a/cli/package.json
+++ b/cli/package.json
@@ -35,7 +35,7 @@
"build": "node build.mjs",
"test": "tsc -p tsconfig.test.json && node --test \"build/test/**/*.test.js\"",
"check": "npm run typecheck && npm test && npm run build",
- "prepack": "node -e \"for (const f of ['LICENSE', 'README.md']) require('node:fs').copyFileSync('../' + f, f)\""
+ "prepack": "node prepack.mjs"
},
"devDependencies": {
"@types/node": "^26.6.5",
diff --git a/cli/prepack.mjs b/cli/prepack.mjs
new file mode 100644
index 0000000..a89db4c
--- /dev/null
+++ b/cli/prepack.mjs
@@ -0,0 +1,25 @@
+// Copies the repository's LICENSE and README into the package before `npm pack` or `npm publish`.
+// The README's links and images are relative to the repository root, which npm can't resolve, so
+// they're pointed at GitHub: images at the raw files on main, links at the files' pages.
+import { copyFileSync, readFileSync, writeFileSync } from "node:fs";
+import { dirname, join } from "node:path";
+import { fileURLToPath } from "node:url";
+
+const here = dirname(fileURLToPath(import.meta.url));
+const root = join(here, "..");
+const RAW = "https://raw.githubusercontent.com/Draganoider/code-alarm/main/";
+const PAGE = "https://github.com/Draganoider/code-alarm/blob/main/";
+
+/** Rewrites src="…", href="…" and markdown (…) targets that are relative paths. */
+export function absoluteLinks(readme) {
+ const relative = (target) => !/^([a-z][a-z0-9+.-]*:|#|\/)/i.test(target);
+ return readme
+ .replace(/\bsrc="([^"]+)"/g, (all, target) => (relative(target) ? `src="${RAW}${target}"` : all))
+ .replace(/\bhref="([^"]+)"/g, (all, target) => (relative(target) ? `href="${PAGE}${target}"` : all))
+ .replace(/(!?)\]\(([^)\s]+)\)/g, (all, bang, target) => (relative(target) ? `${bang}](${bang ? RAW : PAGE}${target})` : all));
+}
+
+if (process.argv[1] === fileURLToPath(import.meta.url)) {
+ copyFileSync(join(root, "LICENSE"), join(here, "LICENSE"));
+ writeFileSync(join(here, "README.md"), absoluteLinks(readFileSync(join(root, "README.md"), "utf8")));
+}
diff --git a/docs/assets/hero.svg b/docs/assets/hero.svg
new file mode 100644
index 0000000..6fbae47
--- /dev/null
+++ b/docs/assets/hero.svg
@@ -0,0 +1,127 @@
+
diff --git a/docs/assets/how-it-works.svg b/docs/assets/how-it-works.svg
new file mode 100644
index 0000000..30b7269
--- /dev/null
+++ b/docs/assets/how-it-works.svg
@@ -0,0 +1,115 @@
+
diff --git a/docs/assets/logo.svg b/docs/assets/logo.svg
new file mode 100644
index 0000000..58cb39f
--- /dev/null
+++ b/docs/assets/logo.svg
@@ -0,0 +1,23 @@
+
From 995d04aaa26dad4b4466f7e13640f85666abafef Mon Sep 17 00:00:00 2001
From: Yevhen Mishchenko <92166133+Draganoider@users.noreply.github.com>
Date: Sun, 18 Oct 2026 14:42:37 -0700
Subject: [PATCH 2/2] Release 0.2.2
The redesigned README, on GitHub and, through prepack, on npm with its images and links.
---
CHANGELOG.md | 5 ++++-
cli/dist/code-alarm.mjs | 4 ++--
cli/package-lock.json | 4 ++--
cli/package.json | 2 +-
plugins/claude-code/.claude-plugin/plugin.json | 2 +-
plugins/claude-code/bin/code-alarm.mjs | 4 ++--
6 files changed, 12 insertions(+), 9 deletions(-)
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 5cd899a..f1d700e 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -6,6 +6,8 @@ Notable changes to the `code-alarm` CLI and the Claude Code plugin. The format f
## [Unreleased]
+## [0.2.2] — 2026-10-18
+
### Changed
- A new README: the logo, a picture of an agent finishing and the phone ringing, a diagram of
@@ -89,7 +91,8 @@ Notable changes to the `code-alarm` CLI and the Claude Code plugin. The format f
quote safely; `uninstall codex` removes only its own files. The npm package includes the
license and README. `status` never shows the topic.
-[Unreleased]: https://github.com/Draganoider/code-alarm/compare/v0.2.1...test
+[Unreleased]: https://github.com/Draganoider/code-alarm/compare/v0.2.2...test
+[0.2.2]: https://github.com/Draganoider/code-alarm/compare/v0.2.1...v0.2.2
[0.2.1]: https://github.com/Draganoider/code-alarm/compare/v0.2.0...v0.2.1
[0.2.0]: https://github.com/Draganoider/code-alarm/compare/v0.1.0...v0.2.0
[0.1.0]: https://github.com/Draganoider/code-alarm/releases/tag/v0.1.0
diff --git a/cli/dist/code-alarm.mjs b/cli/dist/code-alarm.mjs
index 2b39d2a..a38e7f1 100755
--- a/cli/dist/code-alarm.mjs
+++ b/cli/dist/code-alarm.mjs
@@ -1,5 +1,5 @@
#!/usr/bin/env node
-// code-alarm 0.2.1, MIT License, https://github.com/Draganoider/code-alarm. Generated by cli/build.mjs: do not edit.
+// code-alarm 0.2.2, MIT License, https://github.com/Draganoider/code-alarm. Generated by cli/build.mjs: do not edit.
// src/main.ts
import { homedir as homedir2 } from "node:os";
@@ -1904,7 +1904,7 @@ function qrForTerminal(text) {
}
// src/main.ts
-var VERSION = true ? "0.2.1" : "dev";
+var VERSION = true ? "0.2.2" : "dev";
var DEFAULT_ARM_MS = 12 * HOUR;
var HELP = `code-alarm ${VERSION}: a real alarm on your phone when Claude Code or Codex finishes or needs you.
diff --git a/cli/package-lock.json b/cli/package-lock.json
index 2914bfe..2b24811 100644
--- a/cli/package-lock.json
+++ b/cli/package-lock.json
@@ -1,12 +1,12 @@
{
"name": "code-alarm",
- "version": "0.2.1",
+ "version": "0.2.2",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "code-alarm",
- "version": "0.2.1",
+ "version": "0.2.2",
"license": "MIT",
"bin": {
"code-alarm": "dist/code-alarm.mjs"
diff --git a/cli/package.json b/cli/package.json
index 77336f5..aca7cb8 100644
--- a/cli/package.json
+++ b/cli/package.json
@@ -1,6 +1,6 @@
{
"name": "code-alarm",
- "version": "0.2.1",
+ "version": "0.2.2",
"description": "Wake up when Claude Code or Codex finishes or needs you: a real alarm on your phone, from agent hooks.",
"license": "MIT",
"author": "Yevhen Mishchenko",
diff --git a/plugins/claude-code/.claude-plugin/plugin.json b/plugins/claude-code/.claude-plugin/plugin.json
index 574f05a..96ee445 100644
--- a/plugins/claude-code/.claude-plugin/plugin.json
+++ b/plugins/claude-code/.claude-plugin/plugin.json
@@ -1,6 +1,6 @@
{
"name": "code-alarm",
- "version": "0.2.1",
+ "version": "0.2.2",
"description": "A real alarm on your phone when Claude Code finishes or needs you. Arm a task with /code-alarm:alarm; only armed work rings.",
"author": {
"name": "Yevhen Mishchenko",
diff --git a/plugins/claude-code/bin/code-alarm.mjs b/plugins/claude-code/bin/code-alarm.mjs
index 2b39d2a..a38e7f1 100755
--- a/plugins/claude-code/bin/code-alarm.mjs
+++ b/plugins/claude-code/bin/code-alarm.mjs
@@ -1,5 +1,5 @@
#!/usr/bin/env node
-// code-alarm 0.2.1, MIT License, https://github.com/Draganoider/code-alarm. Generated by cli/build.mjs: do not edit.
+// code-alarm 0.2.2, MIT License, https://github.com/Draganoider/code-alarm. Generated by cli/build.mjs: do not edit.
// src/main.ts
import { homedir as homedir2 } from "node:os";
@@ -1904,7 +1904,7 @@ function qrForTerminal(text) {
}
// src/main.ts
-var VERSION = true ? "0.2.1" : "dev";
+var VERSION = true ? "0.2.2" : "dev";
var DEFAULT_ARM_MS = 12 * HOUR;
var HELP = `code-alarm ${VERSION}: a real alarm on your phone when Claude Code or Codex finishes or needs you.