Node-based terminal manager for AI coding agents — tmux-backed terminals and parallel agent sessions as draggable nodes on an infinite pan/zoom canvas. macOS, Linux, and a browser Server Edition.
TypeScript adhdagent-orchestrationai-agentscanvasclaude-codecodexcoding-agentsdeveloper-toolselectrongeminilinuxmacosmultiplexeropencodeparallel-agentsterminalterminal-emulatorterminal-multiplexertmuxworkspace-manager
chore: scrub internal/proprietary references for public release
enesde87b55a9fa8
diff --git a/.gitignore b/.gitignoreindex b5c501603..ded6f8b31 100644--- a/.gitignore+++ b/.gitignore@@ -19,3 +19,8 @@ build/icon.png# local session handoff transcripts / app state.nodeterm/++# internal planning artifacts (SDD plans/specs) — not for the public repo+/docs/superpowers/+# release runbook (signing/notarization/Apple specifics) kept private+/docs/RELEASING.mddiff --git a/README.md b/README.mdindex 72cb3040b..fc9dff30d 100644--- a/README.md+++ b/README.md@@ -81,8 +81,7 @@ npm run typecheck # fastest correctness gate (no test runner yet)npm run dist # local UNSIGNED .dmg into dist/ (smoke test)```-`npm run dist` builds an unsigned `.dmg` for local testing. Signed, notarized releases-are produced by CI — see [`docs/RELEASING.md`](./docs/RELEASING.md).+`npm run dist` builds an unsigned `.dmg` for local testing.## ⌨️ Keyboard shortcuts@@ -111,12 +110,6 @@ are produced by CI — see [`docs/RELEASING.md`](./docs/RELEASING.md).See [`CLAUDE.md`](./CLAUDE.md) for the full design notes and gotchas.-## 🚀 Releasing--Versioned, signed, notarized releases are tag-driven and self-hosted on nodeterm.dev.-The full flow (Apple Developer ID setup, CI secrets, update feed, announcement schema)-is documented in [`docs/RELEASING.md`](./docs/RELEASING.md).-## 🤝 ContributingIssues and pull requests are welcome. Note that nodeterm is **source-available, not opendiff --git a/site/README.md b/site/README.mdindex f33d6a4ab..2de052455 100644--- a/site/README.md+++ b/site/README.md@@ -23,7 +23,7 @@ the download buttons update themselves — no edit needed.## Two feeds this site serves- **`/announcements.json`** — the in-app news banner reads this. Edit it to post news; see- the schema in [`../docs/RELEASING.md`](../docs/RELEASING.md).+ the schema in [`../docs/announcements.example.json`](../docs/announcements.example.json).- **`/updates/`** — the app's auto-updater reads `latest-mac.yml` here. Populated perrelease (see [`updates/README.md`](./updates/README.md)).diff --git a/site/index.html b/site/index.htmlindex e31bdd9ad..42d940c54 100644--- a/site/index.html+++ b/site/index.html@@ -26,7 +26,7 @@</a><nav class="nav-links"><a href="#features">Features</a>- <a href="https://github.com/eneskirca/nodeterm/blob/main/docs/RELEASING.md" target="_blank" rel="noopener">Docs</a>+ <a href="https://github.com/eneskirca/nodeterm/blob/main/README.md" target="_blank" rel="noopener">Docs</a><a class="star" href="https://github.com/eneskirca/nodeterm" target="_blank" rel="noopener" aria-label="Star on GitHub"><svg viewBox="0 0 16 16" width="15" height="15" fill="currentColor"><path d="M8 .25a.75.75 0 0 1 .673.418l1.882 3.815 4.21.612a.75.75 0 0 1 .416 1.279l-3.046 2.97.719 4.192a.75.75 0 0 1-1.088.791L8 12.347l-3.766 1.98a.75.75 0 0 1-1.088-.79l.72-4.194L.818 6.374a.75.75 0 0 1 .416-1.28l4.21-.611L7.327.668A.75.75 0 0 1 8 .25Z"/></svg><span>Star</span>@@ -125,7 +125,7 @@<div class="foot-links"><a href="https://github.com/eneskirca/nodeterm" target="_blank" rel="noopener">GitHub</a><a href="https://github.com/eneskirca/nodeterm/blob/main/LICENSE" target="_blank" rel="noopener">License</a>- <a href="https://github.com/eneskirca/nodeterm/blob/main/docs/RELEASING.md" target="_blank" rel="noopener">Docs</a>+ <a href="https://github.com/eneskirca/nodeterm/blob/main/README.md" target="_blank" rel="noopener">Docs</a></div><p class="legal">Source-available, proprietary. © <span id="year">2026</span> enes.diff --git a/site/updates/README.md b/site/updates/README.mdindex d0f37d380..ca86b9731 100644--- a/site/updates/README.md+++ b/site/updates/README.md@@ -13,6 +13,5 @@ nodeterm-<version>-arm64-mac.zip (+ .blockmap) # used by auto-updatenodeterm-<version>-mac.zip (+ .blockmap)```-See [`../../docs/RELEASING.md`](../../docs/RELEASING.md) for the full flow. These files are-intentionally **not** committed to git (they are large binaries); deploy them straight to-the host.+These files are intentionally **not** committed to git (they are large binaries); deploy+them straight to the host.diff --git a/src/main/agents/hooks/codex-trust.ts b/src/main/agents/hooks/codex-trust.tsindex 01c6f0fbb..bb705cdb8 100644--- a/src/main/agents/hooks/codex-trust.ts+++ b/src/main/agents/hooks/codex-trust.ts@@ -1,13 +1,12 @@-/* Codex hook trust core. Ported VERBATIM from REF's- * src/main/codex/config-toml-trust.ts — the hash serialization in- * computeTrustedHash() must stay byte-identical to codex-rs or Codex silently+/* Codex hook trust core. The hash serialization in computeTrustedHash() must+ * stay byte-identical to codex-rs or Codex silently* rejects the hook (it sits in the "review required" pile and never fires).** Self-contained: only node fs/path/crypto. We port just the functions our* installer needs (trust hashing/keys, byte-preserving config.toml edits) and- * deliberately drop REF's project-trust path (upsertProjectTrustLevel) — out+ * deliberately drop the project-trust path (upsertProjectTrustLevel) — out* of scope. `escapeRegex` and the tiny atomic-rename fs helpers are inlined- * (rather than pulling in unrelated REF modules).+ * (rather than pulling in unrelated modules).*/import {copyFileSync,@@ -197,7 +196,7 @@ function readTomlFile(configPath: string): string {}// Why: escape special regex characters so a path/key can be matched literally-// in a RegExp. Inlined from REF's shared/string-utils to keep this module+// in a RegExp. Inlined to keep this module// self-contained.function escapeRegex(value: string): string {return value.replace(/[.*+?^${}()|[\]\\]/g, '\\$&')@@ -519,7 +518,7 @@ function skipTomlLiteralString(line: string, startIndex: number): number {// Why: atomic-rename + .bak rotation — a half-written config.toml can brick a// user's Codex install, so write to tmp and rename. Random-suffix tmp name// avoids cross-process races on rapid reinstalls.-// NOTE: the Windows-retry copy/rename helpers from REF are inlined as plain+// NOTE: the Windows-retry copy/rename helpers are inlined as plain// copyFileSync/renameSync here — POSIX (macOS) is the target.export function writeConfigAtomically(configPath: string, contents: string): void {const dir = dirname(configPath)@@ -530,7 +529,7 @@ export function writeConfigAtomically(configPath: string, contents: string): voiwriteFileSync(tmpPath, contents, 'utf-8')if (existsSync(configPath)) {// Why: rotate a .bak before overwriting so a user can recover if our- // edit ever goes wrong. (REF uses a Windows-retry copy here; on macOS+ // edit ever goes wrong. (on macOS// a plain copyFileSync is sufficient.)copyFileSync(configPath, `${configPath}.bak`)}diff --git a/src/main/agents/hooks/codex.ts b/src/main/agents/hooks/codex.tsindex ad355a934..9de321307 100644--- a/src/main/agents/hooks/codex.ts+++ b/src/main/agents/hooks/codex.ts@@ -11,7 +11,7 @@// hooks.json merge instead of using install-helper. It writes into the user's// REAL ~/.codex (default CODEX_HOME) — no managed home, no auth/config mirror.//-// Adapted from REF's src/main/codex/hook-service.ts (local install path only):+// Adapted for the REAL ~/.codex (local install path only):// dropped the managed CODEX_HOME, system-hook mirroring, project-trust, legacy// cleanup, and Windows/remote paths. POSIX (macOS) is the target.import { homedir } from 'os'@@ -39,7 +39,7 @@ import {type CodexTrustEntry} from './codex-trust'-// Confirmed codex event set (verified against REF's agent-hook-listener).+// Confirmed codex event set.const CODEX_EVENTS = ['SessionStart','UserPromptSubmit',@@ -89,8 +89,8 @@ function scriptPath(): string {// Why: match managed entries by the `agent-hooks/codex.sh` path segment (not// the exact command string) so a fresh install also sweeps stale entries from-// an older build or a different userData path. Mirrors REF's-// createManagedCommandMatcher.+// an older build or a different userData path. The managed-command matcher+// keys off the path segment, not the exact command string.function isManagedCommand(command: string | undefined): boolean {if (!command) return falsereturn command.replaceAll('\\', '/').includes(`agent-hooks/${SCRIPT_FILE_NAME}`)@@ -118,7 +118,7 @@ function removeManagedFromDefinitions(defs: HookDefinition[]): HookDefinition[]// Why: form the POSIX command the SAME way for hooks.json AND the trust entry —// the trust hash is computed over this exact byte string, so any divergence-// makes Codex reject the hook. Ported from REF's wrapPosixHookCommand: the+// makes Codex reject the hook. The POSIX wrapper's// `[ -x ... ]` guard makes a missing/non-executable script a silent no-op so a// broken install never poisons the session with exit-127 noise.function buildManagedCommand(script: string): string {diff --git a/src/main/remote/e2ee.ts b/src/main/remote/e2ee.tsindex ddcde80dc..78687d05a 100644--- a/src/main/remote/e2ee.ts+++ b/src/main/remote/e2ee.ts@@ -1,8 +1,8 @@// End-to-end encryption primitives for the relay transport.//-// Ported from REF (src/shared/e2ee-crypto.ts). Pure functions over NaCl box-// (Curve25519 + XSalsa20-Poly1305): no sockets, no Electron. The box format is-// `nonce ‖ ciphertext ‖ mac` so a future REF-compatible peer interoperates.+// Pure functions over NaCl box (Curve25519 + XSalsa20-Poly1305): no sockets, no+// Electron. The box format is `nonce ‖ ciphertext ‖ mac` so an interoperable peer+// can be implemented against the same wire format.import nacl from 'tweetnacl'export type KeyPair = {diff --git a/src/main/remote/framing.ts b/src/main/remote/framing.tsindex 22ba4e1e5..b56d16512 100644--- a/src/main/remote/framing.ts+++ b/src/main/remote/framing.ts@@ -1,8 +1,8 @@// Terminal-stream binary framing for the relay transport.//-// Ported from REF (src/shared/terminal-stream-protocol.ts). The 16-byte header-// layout and opcode numbers are kept verbatim so a future REF-compatible peer-// interoperates. Pure functions: no sockets, no Electron.+// The 16-byte header layout and opcode numbers are stable wire constants so an+// interoperable peer can be implemented against them. Pure functions: no sockets,+// no Electron.//// Header (16 bytes, little-endian where multi-byte):// [0] kind = 0x74@@ -18,7 +18,7 @@ const STREAM_KIND = 0x74const STREAM_VERSION = 1const HEADER_BYTES = 16-// Opcode numbers MUST match REF's TerminalStreamOpcode for interop.+// Opcode numbers are part of the stable wire contract — do not renumber.export const OP = {Output: 1,SnapshotStart: 2,diff --git a/src/main/remote/pairing.ts b/src/main/remote/pairing.tsindex babc3cda8..1a9e171fc 100644--- a/src/main/remote/pairing.ts+++ b/src/main/remote/pairing.ts@@ -1,8 +1,8 @@// Pairing-offer codec for the relay transport.//-// Ported from REF (src/shared/pairing.ts), adapted to nodeterm's offer shape-// and `nodeterm://pair` scheme. Pure functions: no sockets, no Electron, and no-// zod — validation is hand-rolled so decode never throws (returns null instead).+// Encodes/decodes the `nodeterm://pair` offer. Pure functions: no sockets, no+// Electron, and no zod — validation is hand-rolled so decode never throws+// (returns null instead).export type PairingOffer = {// The relay WebSocket endpoint the client connects to.diff --git a/src/main/remote/relay-socket.ts b/src/main/remote/relay-socket.tsindex a97953927..553b9f8e8 100644--- a/src/main/remote/relay-socket.ts+++ b/src/main/remote/relay-socket.ts@@ -5,7 +5,7 @@// it never decrypts. So the end-to-end-encrypted handshake and all traffic run// HOST<->CLIENT *through* the relay — the relay is not a handshake participant.//-// Ported from REF's `web-runtime-client.ts` state machine, adapted:+// The handshake/RPC state machine, in brief:// - The token gates entry at the relay via a `?token=<token>` QUERY PARAM on// the wss URL (cross-task decision; matches the relay's index.ts). It is NOT// interleaved as a data frame — every frame on the wire is opaque peerdiff --git a/src/main/telemetry.ts b/src/main/telemetry.tsindex 5005c49b0..a77069beb 100644--- a/src/main/telemetry.ts+++ b/src/main/telemetry.ts@@ -11,7 +11,7 @@ const API_BASE = process.env.NODETERM_API_BASE || 'https://api.nodeterm.dev'const DAY_MS = 24 * 60 * 60 * 1000const MIN_INTERVAL_MS = 6 * 60 * 60 * 1000 // client-side burst cap: never ping more often-// Hardening (learned from REF's telemetry pipeline): never transmit unless it's an official+// Hardening: never transmit unless it's an official// build AND the user hasn't opted out AND no kill switch is set. A dev can target a local// server by setting NODETERM_API_BASE explicitly.function telemetryAllowed(getSettings: () => Settings): boolean {diff --git a/src/renderer/canvas/Canvas.tsx b/src/renderer/canvas/Canvas.tsxindex 890ec4773..f9096edf1 100644--- a/src/renderer/canvas/Canvas.tsx+++ b/src/renderer/canvas/Canvas.tsx@@ -2010,7 +2010,7 @@ export function Canvas() {// (with consent, throttled) notify.const notifyCooldownRef = useRef<Record<string, number>>({})useEffect(() => {- // Notification context = the node's folder name (or its title), like REF's worktree label.+ // Notification context = the node's folder name (or its title).const contextFor = (nodeId: string): string => {const node = nodesRef.current.find((n) => n.id === nodeId)const cwd = (node?.data.cwd as string) || ''@@ -2026,7 +2026,7 @@ export function Canvas() {const cs = useAgentStatus.getState()if (e.sessionId) cs.setSessionId(e.nodeId, e.sessionId)const agentLabel = agentConfig(e.agentId)?.label ?? 'Agent'- // REF-style: "<folder> — Claude finished" + last assistant message as the body.+ // "<folder> — Claude finished" + last assistant message as the body.const alert = (statusText: string, fallbackBody: string) => {// Unread unless the user is actively in this node's terminal (focused window +// this node is the active terminal). So a finish while you're in another terminal,diff --git a/src/renderer/components/UsageIndicator.tsx b/src/renderer/components/UsageIndicator.tsxindex cd3228299..5c9d1dde5 100644--- a/src/renderer/components/UsageIndicator.tsx+++ b/src/renderer/components/UsageIndicator.tsx@@ -24,7 +24,7 @@ function WindowRow({ title, w }: { title: string; w: ClaudeUsageWindow }) {/*** Bottom-left Claude usage pill + popover. Renders to the right of the React Flow Controls.- * Mirrors REF: hidden when 'unavailable'; '···' while first-fetching; '⚠' on error w/o data;+ * States: hidden when 'unavailable'; '···' while first-fetching; '⚠' on error w/o data;* last-known data shown on stale/error. Compact pill = mini-bar + "62% 5h · 76% wk".*/export function UsageIndicator(): JSX.Element | null {diff --git a/src/renderer/lib/quickOpenSearch.ts b/src/renderer/lib/quickOpenSearch.tsindex c89358f14..51b0629a9 100644--- a/src/renderer/lib/quickOpenSearch.ts+++ b/src/renderer/lib/quickOpenSearch.ts@@ -1,4 +1,4 @@-/** Pure fuzzy ranking for Quick Open (⌘K file search). Port of REF's quick-open-search.ts. */+/** Pure fuzzy ranking for Quick Open (⌘K file search). */export const QUICK_OPEN_RESULT_LIMIT = 50export type QuickOpenIndexedFile = {diff --git a/src/renderer/lib/usageFormat.ts b/src/renderer/lib/usageFormat.tsindex d29986149..375f9612f 100644--- a/src/renderer/lib/usageFormat.ts+++ b/src/renderer/lib/usageFormat.ts@@ -1,4 +1,4 @@-// Pure formatting helpers for the usage indicator (ported from REF's status bar).+// Pure formatting helpers for the usage indicator./** "just now" / "5m ago" / "2h ago". */export function formatTimeAgo(ts: number): string {diff --git a/src/shared/agents/config.ts b/src/shared/agents/config.tsindex 4a3bcf2cc..bbda06fb9 100644--- a/src/shared/agents/config.ts+++ b/src/shared/agents/config.ts@@ -1,5 +1,5 @@// Single source of truth for agent launch behavior and capabilities.-// REF-faithful: an open AgentId string, a declarative config record, and+// Design: an open AgentId string, a declarative config record, and// capabilities expressed as const membership lists (not a capability object).export type BuiltinAgentId = 'claude' | 'codex' | 'gemini'@@ -42,7 +42,7 @@ export const AGENT_CONFIG: Record<BuiltinAgentId, AgentConfig> = {}}-// Capabilities = REF-style membership lists. A custom agent is in no list, so it+// Capabilities = const membership lists. A custom agent is in no list, so it// automatically gets only spawn + terminal-title + process status.export const AGENT_HOOK_TARGETS = ['claude', 'codex', 'gemini'] as constexport const RESUMABLE_AGENTS = ['claude', 'codex', 'gemini'] as constdiff --git a/src/shared/agents/normalize.ts b/src/shared/agents/normalize.tsindex bcaff84a5..edabaef37 100644--- a/src/shared/agents/normalize.ts+++ b/src/shared/agents/normalize.ts@@ -134,7 +134,7 @@ export function normalizeClaude(env: RawHookEnvelope): NormalizedAgentEvent | nu}// Codex hook payload. Event name is read defensively; codex emits a session id under-// `session_id`. Mapping confirmed against REF's agent-hook-listener.+// `session_id`.interface CodexPayload {hook_event_name?: stringhookEventName?: string@@ -161,7 +161,7 @@ export function normalizeCodex(env: RawHookEnvelope): NormalizedAgentEvent | nulreturn null}-// Gemini hook payload. Event name is read defensively (REF reads+// Gemini hook payload. Event name is read defensively (some builds use// `hook_event_name`/`hookEventName`); a session id may be present under `session_id`.interface GeminiPayload {hook_event_name?: stringdiff --git a/src/shared/git-history-log-parser.ts b/src/shared/git-history-log-parser.tsindex 8744a70f1..38fba8558 100644--- a/src/shared/git-history-log-parser.ts+++ b/src/shared/git-history-log-parser.ts@@ -20,7 +20,7 @@ function parseGitDecorationRefs(raw: string, revision: string): GitHistoryItemRe}const refs: GitHistoryItemRef[] = []- // Why: Git permits commas in ref names, so REF's git log format uses a+ // Why: Git permits commas in ref names, so the git log format uses a// control-character separator that Git ref names cannot contain.const parts = raw.includes(GIT_HISTORY_DECORATION_SEPARATOR)? raw.split(GIT_HISTORY_DECORATION_SEPARATOR)diff --git a/src/shared/quick-open-filter.ts b/src/shared/quick-open-filter.tsindex 11d654144..dd845c77e 100644--- a/src/shared/quick-open-filter.ts+++ b/src/shared/quick-open-filter.ts@@ -1,6 +1,6 @@/**- * Pure Quick Open (⌘K file search) listing policy — no IO, no Electron. Trimmed port of- * REF's quick-open-filter.ts: a noise blocklist + rg/git arg builders + line normalization.+ * Pure Quick Open (⌘K file search) listing policy — no IO, no Electron. Provides+ * a noise blocklist + rg/git arg builders + line normalization.* The caller (main process) owns process execution. v1 is single local root (no* WSL/SSH/exclude-prefix logic).*/diff --git a/src/shared/types.ts b/src/shared/types.tsindex 35d8f7a31..9b3163dc1 100644--- a/src/shared/types.ts+++ b/src/shared/types.ts@@ -481,7 +481,7 @@ export interface ContextLinkApi {/** One usage window (5h session or 7d weekly) as shown in the indicator. */export interface ClaudeUsageWindow {- /** 0–100; remaining quota. Drives the bar fill (REF shows "remaining"). */+ /** 0–100; remaining quota. Drives the bar fill (shows "remaining"). */leftPercent: number/** Unix ms when this window resets, or null if unknown. */resetsAt: number | nulldiff --git a/test/remote/framing.test.ts b/test/remote/framing.test.tsindex 7e22fa173..bda6479dc 100644--- a/test/remote/framing.test.ts+++ b/test/remote/framing.test.ts@@ -29,7 +29,7 @@ describe('framing', () => {expect(f!.payload.length).toEqual(0)})- it('exposes REF-compatible opcode numbers', () => {+ it('exposes stable wire opcode numbers', () => {expect(OP.Output).toEqual(1)expect(OP.Input).toEqual(7)expect(OP.Resize).toEqual(8)