feat(portal): browser terminal into 24/7 tmux Claude Code session#15
Merged
Merged
Conversation
Self-hosted portal that streams a persistent tmux Claude Code session to the browser over Socket.io + node-pty, designed to run on a small VPS behind Tailscale. - PortalServer (Express + Socket.io + node-pty) attaching to tmux new-session -A so the agent survives browser/portal restarts - Token auth (auto-generated, 0600) gating both page + WS handshake - Embedded xterm.js UI (no build step, ships in dist) - stackmemory portal start|status|stop|token CLI - Hetzner cloud-init, setup.sh, and systemd unit for 24/7 operation - docs/guides/PORTAL.md walkthrough https://claude.ai/code/session_01Gk8DiqCeG9uMaWT9RprwP1
A knowledge layer every agent (Claude, Codex, OpenCode, Hermes) reads from and writes to. Each experiment/decision/insight is recorded with a summary and conclusion, scoped to a repo (projectId) and org (workspaceId), so mutual thinking compounds across tools and machines. - BrainStore: local SQLite store (record/recall/supersede), repo+org scoped - BrainSync: isolated online push/pull (newest-wins, offline-safe) reusing the Provenant auth/endpoint — never touches the frame CloudSyncEngine - stackmemory brain record|recall|list|show|sync|status CLI - openBrain() resolves scope/db/auth like stackmemory sync - 14 tests (store scoping, supersede, upsert, sync cursor, conflict, offline) - docs/guides/BRAIN.md Agents connect by shelling out to the CLI, matching the existing Codex/OpenCode/Hermes wrapper integration model. https://claude.ai/code/session_01Gk8DiqCeG9uMaWT9RprwP1
A meta-orchestration layer one level above a single goal. A VISION.md (north-star mission + guardrails + ordered objectives + hard limits) drives a bounded loop that draws work from BOTH the objectives and a monitored signal inbox, delegates one item per tick to the conductor, and records the outcome to the shared brain so thinking compounds. - vision-file: parse/scaffold VISION.md, toggle objective checkboxes - signals: JSONL inbox for the monitored source (bugs, CI, issues) - vision-loop: select (signals outrank objectives) -> guardrail-gate -> brain-dedupe (no repeats) -> delegate (injected) -> record -> mark done - guardrails: maxIterations, maxIterationsPerDay, consecutive-failure circuit breaker, requireApproval, daily-resetting persisted state - stackmemory conductor vision init|status|signal|plan|run - run is plan-only unless --delegate-cmd is given (anti-haywire default) - 13 tests; docs/guides/VISION.md https://claude.ai/code/session_01Gk8DiqCeG9uMaWT9RprwP1
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Self-hosted portal that streams a persistent tmux Claude Code session to
the browser over Socket.io + node-pty, designed to run on a small VPS
behind Tailscale.
tmux new-session -A so the agent survives browser/portal restarts
https://claude.ai/code/session_01Gk8DiqCeG9uMaWT9RprwP1