Run fx, revisit sessions, and delegate coding work from Raycast
fx Coding Agent is a Raycast extension for working with the fx coding agent without losing the speed and context of Raycast. Search saved conversations, read complete session history, resume interactive work in Terminal, run noninteractive prompts, inspect local health and usage, or delegate coding tasks through Raycast AI.
fx ask in a selected workspace and continue an existing session by ID.Install the latest fx release with the official installer:
curl -fsSL https://fx.sh/setup.sh | bash
The installer places fx in ~/.local/bin and can add that directory to your shell PATH. To inspect the script before running it:
curl -fsSL https://fx.sh/setup.sh -o setup.sh
less setup.sh
bash setup.sh
Confirm that fx is ready:
fx --version
fx doctor
When fx is missing, the extension offers Install Fx in Terminal, Copy Install Command, and a link to the installation guide. Raycast asks for confirmation before opening Terminal with the installer.
Clone this repository, install its dependencies, and start the Raycast development build:
npm ci
npm run dev
Raycast opens the extension after a successful development build. Keep the process running while making changes to enable hot reload.
Open the extension preferences in Raycast to configure these values:
| Preference | Required | Default | Purpose |
|---|---|---|---|
| fx Executable | Yes | fx | Command name or full path to the fx executable. Use ~/.local/bin/fx when Raycast cannot resolve your shell PATH. |
| Default Workspace | No | Home directory | Initial workspace for Health, Usage, Ask Fx, and Raycast AI tools when you do not provide one. |
Search saved sessions from every fx workspace and inspect the complete conversation alongside its workspace, turn count, timestamps, language, and exact session ID.
Available actions include:
/rename <name> command and opens the session for you to paste it.Large tool outputs are summarized by tool name and status so the transcript remains readable. Complete user and assistant messages are preserved.
Run a noninteractive fx ask request in a selected workspace. The result view shows the Markdown response, model, session ID, steps, token usage, and workspace.
Enter an optional Resume Session ID to continue an existing conversation. Copy the exact ID from Search Sessions rather than using a session title.
Open fx in Terminal using one of three modes:
Combines fx status --json with fx doctor --json and presents the results as native Raycast details. Review the active model, authentication provider, permission mode, workspace, build information, and each local health check without reading raw JSON.
The original JSON report remains available through Copy Health Report JSON for diagnostics.
Review locally recorded usage for the last 24 hours, 7 days, or 30 days. The command includes:
Use Copy Usage JSON when you need the original machine-readable report.
The extension provides three tools to Raycast AI:
| Tool | What it does |
|---|---|
| List Fx Sessions | Finds real session IDs and summaries across one or all workspaces. |
| Inspect Fx Session | Reads the metadata and complete saved history of an exact session. |
| Ask Fx | Delegates a coding request to fx in a specific workspace or continues an existing session. |
Try prompts such as:
@fx-coding-agent List my five most recent fx sessions.@fx-coding-agent Summarize what happened in my session about cache handling.@fx-coding-agent Continue session <session-id> and ask fx what remains unfinished.@fx-coding-agent Ask fx to run the focused tests in /Users/me/project and fix any failures.Ask Fx requires confirmation because fx may inspect or modify files in the selected workspace. The extension keeps fx's configured permission checks enabled and never adds --yolo.
spawn fx ENOENTRaycast cannot find the executable in its environment. Find the installed path in Terminal:
command -v fx
Copy the returned path into fx Executable in the extension preferences. A typical value is:
~/.local/bin/fx
If command -v fx returns nothing, install fx using the command in Install fx.
Start an interactive fx session, complete at least one turn, then run Refresh Session Data. Search Sessions includes every workspace, while the fx session picker opened from Open Fx Session uses the selected workspace.
fx exposes saved session history rather than a live stream of in-progress terminal output. Complete the current fx turn, then choose Refresh Session Data to load the latest saved history.
Upgrade fx and try again. The extension validates the JSON shapes used by session, status, doctor, usage, and AI inspection features so incompatible CLI responses fail with a recovery message instead of rendering incorrect data.
Run the same checks used before publishing:
npm run fix-lint
npm run lint
npx tsc --noEmit
npm run build
npx ray evals
The AI evals verify session discovery, exact-session inspection, and confirmed coding delegation.