Conversation
…import Add a Claude Code `@context/INDEX.json` import to the runtime CLAUDE.md so the full context index is loaded into every work session automatically, instead of relying on the agent to read it (and instead of the old SessionStart hook that capped the index). The relative import resolves against the runtime CLAUDE.md's own directory, so it works from any nested worktree. Ships to a runtime on the next `mx sync`. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Replace the osascript terminal/editor `-o` layout with a tmux-native model: each active work maps to exactly one tmux session `mx/<work>`, built lazily and torn down on archive/destroy. Core (@mx/core): - new tmux.ts: mxSessionName (mx/<work>, tmux-safe), claudeSessionId (deterministic uuidv5 of the work name), zero-dep uuidv5 on node:crypto. - register the `work-session` hook event. CLI (@mx/cli): - `mx work attach` — build the session if missing (main window: claude + nvim; run window: 2x2 shells; seeded MX_* env incl. MX_PORT_*), then attach this terminal (switch-client inside tmux, else attach-session). Lazy + self-healing. - `mx work open` / `mx work new -o` / `mx repo new --quick -o` — same, in a new terminal window (macOS fullscreen Terminal; Linux $MX_TERMINAL / known emulators; graceful fallback to the attach line). - claude pane resumes by the pinned uuidv5 id, named after the work. - archive/destroy now kill the work's tmux session (archive warns on live panes). - `mx doctor [--install]` — check tmux/neovim/claude + recommended toolbelt, print/run the install command per package manager. Templates: - `work-session` hook (customize the layout after mx builds it). - `mx-tmux-resurrect-filter` bin (keep mx/* sessions out of tmux-resurrect). Docs: new public guides (tmux workflow, prerequisites), plus runtime CLAUDE.md, commands reference, README, landing, and repo CLAUDE.md updated. Bump to 4.1.0. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
…sion Reverse the earlier resurrect design: let tmux-resurrect save/restore mx sessions like any other (so a work's custom layout survives a reboot) instead of excluding them. Cleanup of stale sessions is handled by a prune command. - `mx work switch [<name>]` — jump between works: with a name it's `attach`; without, an fzf picker over this runtime's live mx/* sessions. - `mx work gc [--yes]` — prune orphaned sessions: live mx/<work> sessions whose work (in this runtime, matched by the session's MX_RUNTIME) is archived or gone — e.g. one resurrect restored after a reboot for an archived/destroyed work. Warns on live panes; never touches another runtime's sessions. - Remove the `mx-tmux-resurrect-filter` bin and the forget-on-archive wiring; `gc` supersedes them. Update doctor's resurrect note and all docs (tmux guide, CLI reference, commands.md, runtime + repo CLAUDE.md, README) accordingly. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
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.
Ships the tmux-native work workflow (one work = one tmux session, attach/open,
switch, gc, doctor, work-session hook), plus the context INDEX.json @import.
Full detail in the commit messages. Bumps @rousan/mx to 4.1.0.
🤖 Generated with Claude Code