No description
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
merge-queue 107774ed87
All checks were successful
Suite release / scope (push) Successful in 7s
Suite release / module (push) Has been skipped
Suite release / check-manifest (push) Has been skipped
Suite release / check-build (go, ubuntu-latest) (, go, false, ubuntu-latest, , go) (push) Has been skipped
Suite release / check-package (push) Has been skipped
Suite release / reused-checks (push) Has been skipped
Suite release / reserve (push) Successful in 9s
Suite release / build (go, ubuntu-latest) (, go, false, ubuntu-latest, , go) (push) Successful in 16s
Release assets/v0.1.239 Every release asset is complete
Suite release / finalize (push) Successful in 14s
Suite release / publish (push) Has been skipped
Suite release / deliver (push) Has been skipped
Suite release / deploy-image (push) Has been skipped
Suite release / deliver-prune (push) Has been skipped
merge-queue / delivery delivered with romaine-life/fzt-terminal#177's batch
Take github.com/romaine-life/fzt-terminal@v0.1.236
Written by merge-queue for romaine-life/fzt-terminal#177, which was tested with this repository before it landed (RLMQ-6).

Anvil-Prebuilt: romaine-life/fzt-terminal@86cd091d2c
2026-12-02 02:59:09 +00:00
testdata/attach-console Programs the menu opens no longer end when it closes (#84) 2026-11-12 11:12:27 -08:00
.gitignore Add build wrapper + FZT_CONFIG_DIR; drop misleading --yaml flag 2026-04-17 18:36:58 -07:00
.goreleaser.yaml The GoReleaser config's comment says the release suite builds from it (PIPT-31) (#123) 2026-11-18 00:52:41 -08:00
args.go at commands run inside fzt-automate or as programs, with no shell (FZT-71) (#20) 2026-11-02 00:12:47 -08:00
at-app.json The at menu keeps its own cache current: a logon and resume task and a background sync on each open (AHT-231) (#211) 2026-11-29 18:28:59 -08:00
builtin_apps.go Every built-in is a command typed under its own name (FZTA-24) (#209) 2026-11-29 16:04:46 -08:00
builtin_apps_test.go Remove launch-at-claude: launch-claude starts the app claudeApp names (#56) 2026-11-10 18:25:12 -08:00
builtin_claude_resume.go resume-claude lists only sessions that were windows, in the folder Claude keeps them (SES-320) (#196) 2026-11-29 12:16:08 -08:00
builtin_claude_resume_test.go resume-claude lists only sessions that were windows, in the folder Claude keeps them (SES-320) (#196) 2026-11-29 12:16:08 -08:00
builtin_claude_search.go Sign in through auth-client instead of auth (AUT-14) (#222) 2026-11-30 23:34:31 -08:00
builtin_claude_search_local.go A work laptop's claude-search searches its own sessions, and it offers no lights (#27) 2026-11-25 10:27:34 -08:00
builtin_claude_search_local_test.go A work laptop's claude-search searches its own sessions, and it offers no lights (#27) 2026-11-25 10:27:34 -08:00
builtin_claude_search_test.go Sign in through auth-client instead of auth (AUT-14) (#222) 2026-11-30 23:34:31 -08:00
builtin_codex.go A pick typed in a shell runs there, keeping the shell's environment (FZTA-24) (#208) 2026-11-29 15:40:47 -08:00
builtin_codex_test.go Add Codex launch and resume to the at menu (#31) 2026-11-02 21:03:56 -08:00
builtin_desktop.go Read at-update's record of installed apps when it exists, else home-sync's; work-on-app reads it too (AHT-231) (#200) 2026-11-29 13:57:57 -08:00
builtin_desktop_test.go Read at-update's record of installed apps when it exists, else home-sync's; work-on-app reads it too (AHT-231) (#200) 2026-11-29 13:57:57 -08:00
builtin_fnlock.go at commands run inside fzt-automate or as programs, with no shell (FZT-71) (#20) 2026-11-02 00:12:47 -08:00
builtin_git.go at commands run inside fzt-automate or as programs, with no shell (FZT-71) (#20) 2026-11-02 00:12:47 -08:00
builtin_hubitat.go at commands run inside fzt-automate or as programs, with no shell (FZT-71) (#20) 2026-11-02 00:12:47 -08:00
builtin_lights.go A work laptop's claude-search searches its own sessions, and it offers no lights (#27) 2026-11-25 10:27:34 -08:00
builtin_lights_test.go Sign in through auth-client instead of auth (AUT-14) (#222) 2026-11-30 23:34:31 -08:00
builtin_opencode.go A pick typed in a shell runs there, keeping the shell's environment (FZTA-24) (#208) 2026-11-29 15:40:47 -08:00
builtin_opencode_test.go Add an API-key OpenCode launcher (#30) 2026-11-02 20:39:13 -08:00
builtin_reboot.go A reboot folder: restarting the PC takes opening it and picking its one row (#125) 2026-11-18 16:50:33 -08:00
builtin_reboot_test.go A reboot folder: restarting the PC takes opening it and picking its one row (#125) 2026-11-18 16:50:33 -08:00
builtin_workonapp.go Merge branch 'main' into github/main 2026-11-29 13:58:11 -08:00
builtin_workonapp_test.go Read at-update's record of installed apps when it exists, else home-sync's; work-on-app reads it too (AHT-231) (#200) 2026-11-29 13:57:57 -08:00
builtin_workspace.go at commands run inside fzt-automate or as programs, with no shell (FZT-71) (#20) 2026-11-02 00:12:47 -08:00
builtins.go Every built-in is a command typed under its own name (FZTA-24) (#209) 2026-11-29 16:04:46 -08:00
builtins_test.go Read at-update's record of installed apps when it exists, else home-sync's; work-on-app reads it too (AHT-231) (#200) 2026-11-29 13:57:57 -08:00
claude_app.go A pick typed in a shell runs there, keeping the shell's environment (FZTA-24) (#208) 2026-11-29 15:40:47 -08:00
claude_app_test.go A pick typed in a shell runs there, keeping the shell's environment (FZTA-24) (#208) 2026-11-29 15:40:47 -08:00
commands_test.go Every built-in is a command typed under its own name (FZTA-24) (#209) 2026-11-29 16:04:46 -08:00
desktop_other.go launch opens a program, not an entry in Windows' installed-apps list (#64) 2026-11-11 15:19:55 -08:00
desktop_windows.go Programs the menu opens no longer end when it closes (#84) 2026-11-12 11:12:27 -08:00
desktop_windows_test.go launch opens a program, not an entry in Windows' installed-apps list (#64) 2026-11-11 15:19:55 -08:00
failure_log.go Mask credentials in the failure log with logline.Redact (AHT-204) (#162) 2026-11-26 08:40:58 -08:00
failure_log_test.go Mask credentials in the failure log with logline.Redact (AHT-204) (#162) 2026-11-26 08:40:58 -08:00
folders.go Alt+Tab's --open windows finds the folder by its command, whatever the menu labels it (SES-335) (#210) 2026-11-29 17:51:33 -08:00
folders_test.go Alt+Tab's --open windows finds the folder by its command, whatever the menu labels it (SES-335) (#210) 2026-11-29 17:51:33 -08:00
go.mod Take github.com/romaine-life/fzt-terminal@v0.1.236 2026-12-02 02:59:09 +00:00
go.sum Take github.com/romaine-life/fzt-terminal@v0.1.236 2026-12-02 02:59:09 +00:00
handoff.go A pick typed in a shell runs there, keeping the shell's environment (FZTA-24) (#208) 2026-11-29 15:40:47 -08:00
helper_test.go Stay running for tmux, which draws the menus it asks for (--serve) (#228) 2026-12-01 01:35:11 -08:00
main.go Stay running for tmux, which draws the menus it asks for (--serve) (#228) 2026-12-01 01:35:11 -08:00
menu.go Stay running for tmux, which draws the menus it asks for (--serve) (#228) 2026-12-01 01:35:11 -08:00
menusync.go The at menu keeps its own cache current: a logon and resume task and a background sync on each open (AHT-231) (#211) 2026-11-29 18:28:59 -08:00
menusync_other.go The at menu keeps its own cache current: a logon and resume task and a background sync on each open (AHT-231) (#211) 2026-11-29 18:28:59 -08:00
menusync_windows.go The at menu keeps its own cache current: a logon and resume task and a background sync on each open (AHT-231) (#211) 2026-11-29 18:28:59 -08:00
open_other.go Programs the menu opens no longer end when it closes (#84) 2026-11-12 11:12:27 -08:00
open_windows.go Programs the menu opens no longer end when it closes (#84) 2026-11-12 11:12:27 -08:00
open_windows_test.go Programs the menu opens no longer end when it closes (#84) 2026-11-12 11:12:27 -08:00
pick_test.go Take fzt v0.2.107: Enter lands on a folder's first entry (#81) 2026-11-12 10:47:29 -08:00
popup.go Stay running for tmux, which draws the menus it asks for (--serve) (#228) 2026-12-01 01:35:11 -08:00
popup_test.go The at menu marks the at server while it rests on a success, so Win's summon can close it (ATT-45) (#195) 2026-11-29 10:28:28 -08:00
processes_other.go TMUX-102 work-on-app: start an agent in the current app's repo (#39) 2026-11-04 14:03:12 -08:00
processes_windows.go TMUX-102 work-on-app: start an agent in the current app's repo (#39) 2026-11-04 14:03:12 -08:00
README.md Serve a script's picker for tmux's display-picker (pick) (#229) 2026-12-01 02:04:59 -08:00
repo_picker.go Repo picker asks Forgejo for brief repos, the rest of its pages at once (#170) 2026-11-26 22:10:18 -08:00
repo_picker_test.go Merge remote-tracking branch 'origin/main' into github/main 2026-11-29 13:33:50 -08:00
run.go TMUX-167 system:<name> opens an app's one window in the system session (#46) 2026-11-08 15:28:15 -08:00
run_tab_test.go A pick in the Ctrl+T Ctrl+A tab becomes the pane's program (#57) 2026-11-10 22:29:28 -08:00
serve.go Serve a script's picker for tmux's display-picker (pick) (#229) 2026-12-01 02:04:59 -08:00
serve_test.go Serve a script's picker for tmux's display-picker (pick) (#229) 2026-12-01 02:04:59 -08:00
system_app_test.go TMUX-167 system:<name> opens an app's one window in the system session (#46) 2026-11-08 15:28:15 -08:00
system_other.go Remove the built-in bw-grant: site-login's bw-grant replaces it (#134) 2026-11-20 19:48:15 -08:00
system_windows.go Remove the built-in bw-grant: site-login's bw-grant replaces it (#134) 2026-11-20 19:48:15 -08:00
tabdir.go TMUX-206 Folders inside command folders, and menu entries in the tmux folder (#91) 2026-11-12 23:50:15 -08:00
tmux.go CI and releases from the go and release suites; version from main.version (#111) 2026-11-16 15:58:42 -08:00
tmux_test.go TMUX-206 Folders inside command folders, and menu entries in the tmux folder (#91) 2026-11-12 23:50:15 -08:00
tmuxprogram_other.go at commands run inside fzt-automate or as programs, with no shell (FZT-71) (#20) 2026-11-02 00:12:47 -08:00
tmuxprogram_windows.go at commands run inside fzt-automate or as programs, with no shell (FZT-71) (#20) 2026-11-02 00:12:47 -08:00
tools.go Merge branch 'main' into github/main 2026-11-29 13:58:11 -08:00
typed_folder.go Every built-in is a command typed under its own name (FZTA-24) (#209) 2026-11-29 16:04:46 -08:00
version.go CI and releases from the go and release suites; version from main.version (#111) 2026-11-16 15:58:42 -08:00

fzt-automate

The at menu, its built-in commands, and program launches. The menu and command store are described in https://forgejo.romaine.life/romaine-life/at.

Every built-in is also a command typed in any shell under its own name (resume-claude, windows): nothing is reachable only through the menu (FZTA-24). at-app.json lists each built-in under commands, at-update installs each name as a link to fzt-automate.exe in its current folder (on PATH), and the program runs the built-in its name says. TestEveryBuiltinIsACommand fails when a built-in is missing from that list. A built-in that fills a folder opens the folder as a picker when typed at a prompt, and prints its rows to a pipe. Typed in a shell, a built-in that starts a program (Claude, Codex) runs it as the shell's, with the shell's environment. In a tab fzt-automate owns, tmux restarts the tab as the program instead (handoff.go).

CI, signed builds, and releases run on Forgejo, from pipeline-templates' go and release suites (its fleet.json, PIPT-12): pull requests run gofmt, vet and tests on Windows and Linux, and each merge that changes the code cuts the next v0.1.N and builds the Windows, Linux and macOS binaries (cross-compiled Go; no Mac runner). The suite stamps main.version (version.go); a local go build . reports dev. fzt and fzt-terminal are taken up through the Go suite's take-up, which strip-owner starts when it delivers a change to them.

After the Forgejo release has all three assets, CI starts home-sync on every PC. It verifies the signed Windows binary and switches the managed installation at C:\Program Files\at-home\fzt-automate\current. Existing terminals use that stable path immediately. The manual publish.ps1 was retired by HOMECFG-110.

On Windows a tool:<name> action runs a tool home-sync installs: C:\Program Files\at-home\<name>\current\<entry>, where <entry> is the program home-sync's own list (~/.home-sync/tools.json) names, copied from the home profile's machine/state.json; tool:<name>/<file> is another file in that folder. So a new app needs only its state.json entry to launch from the menu, and this repo keeps no list of tools: a test launches one its code has never heard of (HOMECFG-213). A tool missing from the list or from its folder reports an error; it never launches an old NAS or Drive copy.

The menu has no edit or save commands. It changes only through fzt-frontend's API, where a Claude session edits it. Each PC brings its copy (~\.fzt-automate\menu-cache.yaml) up to fzt-frontend's tree itself: the fzt-automate-menu-sync task (--sync, at logon and resume, from at-app.json) and a background --sync each time the menu opens, so an edit shows by the next open. A sync replaces the cache in one rename, never half written (AHT-231).

The popup menu runs in a fzt-automate that stays running (--serve, serve.go, FZTA-25): tmux starts it once, with no console, sends it each menu over its standard input and output, and draws what it sends in the popup, so a menu opens without a program starting for it (60 to 200 ms each time before). Each menu there runs as --popup would, on a screen of its own; serve.go describes the frames. A script's picker goes the same way: tmux's display-picker asks for pick with fzt's flags, which runs fzt-terminal's picker with the script's rows, its folder for relative paths, and its pick and exit code back, as fzt.exe did. When a release replaces the installed program, the running one tells tmux once no menu is open, and tmux starts the new one. Its output is tmux's pipe, so anything else it would print is dropped; a menu that panics is recorded in the failure log.

A desktop program, one with its own window, opens with launch <name> <program> [arguments...]: it switches to the program's window if one is open, else starts it and returns at once, so it holds no tab and the menu isn't left waiting. The program is a tool: word, a path or a link (steam://...); a window matches by its program's path (through a tool's current folder link too), else by its title or its program's own description being <name>. Power Lines is launch 'Power Lines' tool:mgba --script tool:power-lines/strings.lua -C savegamePath=power-lines tool:power-lines/power-lines.gba. Windows' installed-apps list plays no part, except in the programs folder, which lists that list; its rows open through installed-app.

An entry whose action is folder:<command> is a folder its command fills each time it is opened: a built-in's rows, or a line per row from a program, its name, then a tab and a description, then a tab and the action a pick runs. A row whose action is itself folder:<command> is a folder the same way, so a program can list a tree a level at a time (the strip: strip, its follow-ups, one follow-up, its commands). In the popup the program gets the tab the popup is over as TMUX_PANE, its active pane, and the popup's client as TMUX_CLIENT, and so does a quick pick's program (term-share reads it to share that tab's window). A top-level menu entry named tmux is the folder Ctrl+B opens: its entries come first, and tmux's own rows join them.

folder:reboot is restarting the PC behind a confirmation (FZTA-23). The menu's search reaches every row of the static tree, so a restart entry there would be one stray Enter away; the folder's one row, "restart now", exists only once the folder is opened. It runs shutdown /r /t 0, the same restart as Start's: any delay would imply /f, closing apps with unsaved work without asking. The tmux session set comes back at the next sign-in.

Failed menu launches and commands are logged to ~/.fzt-automate/fzt-automate.log on Windows, or fzt-automate.log in the platform's config directory elsewhere (FZT_CONFIG_DIR overrides it), in the estate's standard line (logline, OpenProject AHT-204): an error line command failed with the entry's name, the directory it ran in and the error text as fields, e.g. 2026-11-26T09:12:03.512-08:00 pid=4120 error command failed name=lights directory=D:\repos error="lights can't run: exit status 1". Every menu appends to the one file, a line per write so simultaneous menus keep their lines whole; past 1 MiB it moves to fzt-automate.log.old. Every field can hold text from outside the program (an action line with arguments typed at run time, a failed command's output), so each is masked with logline's Redact before it is written: credentials (URL parameters, auth headers, PASSWORD=-style and JSON fields, BW_SESSION, secret flags, passwords in URLs, JWTs, GitHub and OpenBao tokens) become ***. Records limit the name and directory to 16 KiB and the error text to 64 KiB; the existing error displays and program exit codes are unchanged.

The output box stays open when a program cannot start. A program that starts in a new tmux window and then fails keeps its pane through remain-on-exit=failed; tmux also records its exit in its own error history. The latest quick pick's full output remains in last-output.txt beside the menu cache.

An action starting system:<name> is a system app: one window in the system session, not a new tab per pick (TMUX-167). The pick goes to the window marked @<name>-window wherever it is, moving it into system and starting its program again if it has stopped; with none, it makes the window (at-tmux new-window -M). The window stays when the program ends, saying so, and Enter starts it again (remain-on-exit relaunch). A missing system session is made first by the home config's system-session. A system app runs a program, not a built-in or an at command still on PowerShell.

launch-opencode picks a repo (below) and replaces its tmux pane with OpenCode, using the Anthropic API login in ~/.local/share/opencode/auth.json (XDG_DATA_HOME overrides the data directory). Home-sync provisions the current @opencode/cli npm package, login and Claude model. On Windows the built-in starts the package's executable directly, bypassing npm's command shim. Missing installs or API logins report an error before the picker; a failed launch keeps its tab. launch-claude and its subscription billing remain the default.

The Claude launchers start the app tmux's @claude-app names: at-claude, the terminal harness, or claude-code, Claude Code itself (ATC-6, ATC-7); the home profile's tmux/windows.conf sets it. It is read at each launch, so a change there takes effect at the next one; an unset or unknown value stops the launch and says so. launch-claude replaces its tmux pane with that app in a repo picked from the list below. at-claude shows that list itself (ATC-194): launch-claude starts at-claude -pick-repo in D:\repos at once, so the session's avatars are dealt while the list loads; for Claude Code, and for launch-claude <folder>, the picker is this program's. resume-claude picks a past session by its name and resumes it in its folder; resume-claude <session id> [--chrome] resumes that one in this pane's folder, with Claude in Chrome connected when asked, for tmux's session restore, reopen-window and claude-relaunch-with-chrome.

work-on-app claude|codex opens a new tab running that agent in the repo of the app in the tab you came from, so you don't need to remember which repo holds it. It reads what the pane runs (below its own process first, so an app the at menu started isn't taken for fzt-automate), then machine/state.json: tools for what home-sync installs, appRepos for the rest. A repo this PC hasn't cloned is cloned to D:\repos; a tab with no recognized app gets a folder picker that says so.

launch-codex picks a repo (below) and starts the native Codex executable in the window, using the user's existing Codex login. resume-codex opens Codex's session picker across all folders. Both retain failed launches for inspection. Both use --no-daemon so Codex's lifecycle hooks inherit the launching tmux pane's environment and can register the session and generate its window name. Already-running sessions retain their existing runtime; inspect and repair any missing pane registration separately when changing the launcher. The popup menu uses Codex's reported folder for actions launched over its window.

The launchers pick a repo from Forgejo, so every PC offers the same ones (FZTA-17). The list is the repos starred on Forgejo (star one on its page to pin it), then the eight this PC's Claude and interactive Codex sessions ran in last (30 days, worktrees included), then the rest by latest change; mirrors and archived repos are left out. A pick opens this PC's checkout, found by its origin remote in D:\repos or the shell-config and profile checkouts home-sync keeps, else clones into D:\repos. Two fixed rows start in D:\repos itself or open the folder browser; a launcher given a folder (launch-claude <folder>) opens the browser there, as before. Forgejo is read with the token git holds for it, never prompting; when it can't be read, the title says why, the full error goes to the failure log, and the list is this PC's checkouts.