[{"url":"https://docs.phux.sh/agent-quickstart#detach-and-kill","markdown":"https://docs.phux.sh/agent-quickstart.md#detach-and-kill","page":"Using phux as an agent","heading":"Detach and kill","text":"detach disconnects clients attached to that session. The panes keep running. kill of a pane ends that pane. kill of a session name ends every pane in it and deletes the session. phux kill --server stops the server process and does not ask for confirmation. detach, kill, and rm ask on a terminal. When stdin is not a…"},{"url":"https://docs.phux.sh/reference/keys#session","markdown":"https://docs.phux.sh/reference/keys.md#session","page":"Default key bindings","heading":"Session","text":"Keys Does Action C New session… new-session s Go to session… session-picker N Next session next-session P Previous session previous-session ) Last session last-session $ Rename session… rename-session d Detach detach"},{"url":"https://docs.phux.sh/overview#use-an-agent","markdown":"https://docs.phux.sh/overview.md#use-an-agent","page":"Overview","heading":"Use an agent","text":"Coding agents · Driving terminals from scripts Search the docs as JSON: the ten best-matching sections, each with its url, markdown, page, heading, and text. Without q, every section. https\\://docs.phux.sh/search.json?q=detach+session"},{"url":"https://docs.phux.sh/compare#compared-with-zellij-and-wezterm","markdown":"https://docs.phux.sh/compare.md#compared-with-zellij-and-wezterm","page":"phux vs tmux, Herdr, and cmux","heading":"Compared with zellij and WezTerm","text":"…the server. Plugins Driving it from code zellij action, including zellij --session NAME action. Subscribe streams pane output. zellij watch is read-only. CLI wezterm cli talks to a running GUI or multiplexer. Subcommands include spawn, split-pane, send-text, and get-text. CLI Commands with JSON output, an MCP server,…"},{"url":"https://docs.phux.sh/reference/actions","markdown":"https://docs.phux.sh/reference/actions.md","page":"Actions","heading":"Actions","text":"…committed; omitted opens the confirm) Kill the active tab's terminals… kill-session Session id, name (optional pinned session; defaults to current) Confirm ending all session work, including resources added meanwhile, and delete it delete-empty-session Session id, name (optional pinned session; defaults to current)…"},{"url":"https://docs.phux.sh/reference/hooks","markdown":"https://docs.phux.sh/reference/hooks.md","page":"Hook events","heading":"Hook events","text":"…not match (except \"\"). Event Context key Environment Fires when after-new-pane session? PHUX_SESSION A pane's actor spawned: fires right after pane creation, before the inner process has produced output. terminal-id PHUX_TERMINAL_ID pane-exit exit-code? PHUX_EXIT_CODE A pane's inner process exited. exit-code is present…"},{"url":"https://docs.phux.sh/reference/kinds#command-classification","markdown":"https://docs.phux.sh/reference/kinds.md#command-classification","page":"Resource kinds","heading":"Command classification","text":"…SPAWN (unallocated) deny None ATTACH_RESOURCE OBSERVE+BIND NamedTerminal DETACH_RESOURCE exempt: cleanup CallingConnection KILL_RESOURCE SIGNAL NamedTerminal KILL_RESOURCE_IF SIGNAL NamedTerminal GET_SCREEN OBSERVE NamedTerminal ROUTE_INPUT, APPLY_INPUT INPUT NamedTerminal KILL_RESOURCES SIGNAL EveryNamedTerminal…"},{"url":"https://docs.phux.sh/hooks#events","markdown":"https://docs.phux.sh/hooks.md#events","page":"Hooks","heading":"Events","text":"…keys after-new-pane A pane is created, before its program prints anything session, terminal-id pane-exit A pane's program exits exit-code (absent when a signal killed it), terminal-id focus-changed A client focuses a pane client-id, terminal-id client-attached A client finishes attaching client-id, session…"},{"url":"https://docs.phux.sh/reference/kinds#server-methods","markdown":"https://docs.phux.sh/reference/kinds.md#server-methods","page":"Resource kinds","heading":"Server methods","text":"…no none shipped ATTACH frame 0x02 OBSERVE, CREATE, BIND yes none shipped DETACH frame 0x03 exempt: cleanup no none shipped VIEWPORT_RESIZE frame 0x20 BIND yes none shipped COMMAND frame 0x31 nested yes none shipped LIST_DIRECTORY frame 0x55 INVENTORY no list_directory shipped PATH_QUERY frame 0x56 INVENTORY no…"},{"url":"https://docs.phux.sh/reference/parity","markdown":"https://docs.phux.sh/reference/parity.md","page":"CLI and MCP parity","heading":"CLI and MCP parity","text":"…relaunch in-process no no phux_organize phux organize in-process no no phux_detach phux detach in-process no yes phux_watch phux watch in-process yes no phux_ask phux ask in-process no no phux_launch phux launch CLI no yes phux_spawn phux spawn in-process no yes phux_signal phux signal in-process no yes phux_tag phux…"}]