Terminal client
felix is a coding assistant for the directory you are working in. It reads the workspace with
its own file tools, keeps each conversation in a session file beside it, and shows the run as it
happens: the reply as Markdown, each tool call as a card, and a prompt before anything is written.
› add a test for the parser │ Reading the parser first. │ ⎿ read_file src/parse.ts │ … export function parse(input: string) { │ ⎿ write_file src/parse.test.ts ╭ Ask Felix ─────────────────────────────────────────╮ │ > _ │ ╰────────────────────────────────────────────────────╯ @cf/… · default · project tab threads · ctrl+n new · /helpInstalling it
Section titled “Installing it”felix is published to npm as @felix-run/cli, and needs Node.js 26.4 or later:
npm install --global @felix-run/clifelix --demo # one scripted run in the full screen, no credentials, nothing savedfelix --model @cf/zai-org/glm-5.3 --workspace /path/to/projectfelix --print "Review this project"git diff | felix "Review this change"npm install --global @felix-run/cli@latest updates it; after an update, Felix says once that
there are changes since the version you last ran, and /changelog lists them.
Running it
Section titled “Running it”From a checkout:
pnpm demo # one scripted run, no credentials, nothing savedpnpm cli --demo # the same run in the full-screen clientpnpm cli --model @cf/zai-org/glm-5.3 --workspace /path/to/projectpnpm chat --model @cf/zai-org/glm-5.3 "Review this project"pnpm chat --model @cf/zai-org/glm-5.3 # line-by-line, no full screengit diff | pnpm chat --model @cf/zai-org/glm-5.3 "Review this change"Input piped in, or redirected from a file, goes in front of the prompt with a blank line between, and
the run is one-shot: even felix, which otherwise opens the full screen, prints the answer and exits.
Only a pipe or a file is read, so a program that starts Felix with its own input left open does not
make it wait. Together they must fit in a prompt (32,768 characters); for more, save the input to a
file in the workspace and ask Felix to read it.
pnpm cli builds and opens the full-screen client. It draws through a native renderer reached over
Node’s experimental FFI, so it needs Node 26.4 or later and an interactive terminal. If it says it
needs one, the command was probably run somewhere that captures output, such as a CI step or an
editor’s task pane. Run it in a terminal directly. pnpm chat sends one prompt and prints the reply, or
with no prompt reads lines until /exit or Ctrl+D.
| Option | Environment | Meaning |
|---|---|---|
--provider workers-ai|anthropic|openai|google|vertex|bedrock|mistral |
FELIX_PROVIDER |
Which model provider. Default workers-ai. openai uses OpenAI’s Responses API, google the Gemini API, vertex Gemini on Google Cloud’s Vertex AI, bedrock Amazon Bedrock (with AWS_REGION), mistral Mistral’s own API. |
--model <id> |
FELIX_MODEL |
The model to run. Required outside the demo. A partial name, such as the part after the last /, picks the one known model it names; several matches are refused with the candidates. |
CLOUDFLARE_ACCOUNT_ID, CLOUDFLARE_API_TOKEN |
Workers AI credentials (FELIX_-prefixed names take precedence). |
|
ANTHROPIC_API_KEY |
Anthropic credentials (FELIX_ANTHROPIC_API_KEY takes precedence). |
|
OPENAI_API_KEY |
OpenAI credentials (FELIX_OPENAI_API_KEY takes precedence). |
|
GEMINI_API_KEY |
Gemini credentials (FELIX_GEMINI_API_KEY takes precedence). |
|
MISTRAL_API_KEY |
Mistral credentials (FELIX_MISTRAL_API_KEY takes precedence). |
|
GOOGLE_CLOUD_API_KEY |
A Vertex AI API key (FELIX_VERTEX_API_KEY takes precedence). Without one, Vertex AI uses Application Default Credentials: gcloud auth application-default login, or GOOGLE_APPLICATION_CREDENTIALS naming a service account key, with GOOGLE_CLOUD_PROJECT (or the credentials’ project) and GOOGLE_CLOUD_LOCATION (default global). |
|
AWS_BEARER_TOKEN_BEDROCK, AWS_ACCESS_KEY_ID |
Bedrock credentials: a Bedrock API key (FELIX_BEDROCK_API_KEY takes precedence), or AWS keys to sign with; credentials.awsCredentials in settings can run aws configure export-credentials --format process instead. |
|
FELIX_DEBUG_PAYLOADS |
A file to append every model request to, as sent, one JSON line each (time, provider, model and payload), for debugging what a model was asked. It is created readable only by you, and the terminal says it is on each time it starts. It holds prompts, tool results and file contents, though never the API key. Only the terminal writes it; the hosted API never logs payloads. | |
FELIX_CACHE_RETENTION |
How long Anthropic keeps the cached prompt: short (about five minutes, the default), long (an hour, for sessions with long pauses; cache writes cost more) or none. Overrides the cacheRetention setting. |
|
--workspace <dir> |
The directory the tools can reach. Default: the current directory. Tools take workspace-relative paths; an absolute or ~ path, or one written as an @ mention, is accepted when it is inside the workspace. A file that is not found as written is looked up again with Unicode spaces as plain spaces and with the spellings macOS uses in screenshot names. |
|
--session <file> |
Where the conversation is kept. Default WORKSPACE/.felix/sessions/default.json. |
|
--no-session |
Keep the conversation in memory only: nothing is written, and there are no saved conversations to switch to. Not with --session, --fork or --name. |
|
--fork <file> |
Start a new session in this workspace’s session folder, copied from a saved one; the original is untouched. Not with --session. |
|
--name <name>, -n |
Name the session, as /rename does. |
|
--no-mcp |
Connect no MCP servers for this run. | |
--extension <source>, -e |
Load a package for this run only, with its extension code running: a package folder, a single extension file (.js, .mjs or .ts), or an installed npm:NAME@VERSION. Repeatable; nothing is saved. A source that cannot load is reported at startup. Extension code runs with your permissions, so load only code you trust. |
|
--no-extensions, -ne |
Run no installed package’s extension code for this run; their skills and templates still load, and --extension packages still run. |
|
--prompt-template <path> |
Load a prompt template file, or a folder of them; repeatable. They take precedence over discovered templates with the same name. A path that is missing or not a .md file is reported at startup. |
|
--no-prompt-templates, -np |
Discover no prompt templates for this run; --prompt-template paths still load. |
|
--read-only |
Offer only read_file, list_files, find_files and grep_files of the built-in tools. |
|
--write |
Deprecated: the write and edit tools are on by default. It still works, with a notice at startup, and will be removed. | |
--shell |
Deprecated, with a notice at startup, and will be removed; use --tools +start_command,+command_output,+stop_command,+run_skill_script. It adds run_command (on by default), and start_command, command_output and stop_command for commands that keep running (at most 4 at once, stopped when felix exits), and run_skill_script. It is not a sandbox. |
|
--yes |
In the full-screen client, write and run commands without asking. | |
--approve, -a |
Trust the workspace for this run: its own .felix settings, skills, templates, mcp.json and SYSTEM files load. /trust yes saves the choice. Not with --no-approve. |
|
--no-approve, -na |
Do not trust the workspace for this run: its own .felix settings, skills, templates, mcp.json and SYSTEM files are skipped. |
|
--ssh <host[:path]> |
Run the file tools and run_command on another machine over your own ssh setup. Not with --server or --serve-mcp. |
|
--models <patterns> |
The models Ctrl+P cycles through, comma-separated, * matching anything; overrides the cycleModels setting. |
|
--rpc |
Run until stdin closes, taking JSON-line commands on stdin (prompt, steer, abort, get_state, get_messages, set_model, compact and others) and writing responses, the same events and write confirmations on stdout. |
|
--version, -v |
Print felix and its version, and exit. |
|
--tui-mode <mode> |
fullscreen (the default) or regular: line mode in your terminal’s own scrollback, without the full screen’s panels and picker. The tuiMode setting keeps a choice. |
|
--print, -p |
Run the prompt (given, or piped in) and print the reply, even from felix, which otherwise opens the full screen. |
|
--continue, -c |
Open the session written last in this workspace’s session folder, rather than the default one. | |
--resume, -r |
Open the full screen with the conversation picker showing. | |
--offline |
FELIX_OFFLINE=1 |
Make no network calls at startup: the Workers AI model listing comes only from its cache. Model calls still need the network. |
--tools <names>, -t |
FELIX_TOOLS |
Keep only these tools, comma-separated; a trailing * matches a prefix. Built-in tools that are off by default can be named too. Given only +name and -name entries (for example --tools -run_command,+start_command), it adds built-in tools to the default selection or removes them instead. |
--list-models [words] |
Print the provider’s known models and exit: for Workers AI, its live model listing (with CLOUDFLARE_ACCOUNT_ID and CLOUDFLARE_API_TOKEN) merged with your settings records; for every other provider, your settings records. Columns: context window, output limit, reasoning, images and price per million tokens; * marks the configured model. Each word must appear in the model id. The table goes to stdout and notes to stderr, so it can be piped. |
|
--exclude-tools <names>, -xt |
FELIX_EXCLUDE_TOOLS |
Then remove these tools, with the same names and patterns (for example run_command,mcp__*). A name that matches no tool stops the CLI with the available names. |
--no-tools, -nt |
Run without tools. | |
--no-builtin-tools, -nbt |
Offer none of the built-in workspace tools; MCP, extension and skill tools stay. | |
--delegate |
Let the model hand read-only subtasks to child agents, which run in parallel. | |
--reasoning <level> |
FELIX_REASONING |
Reasoning effort for models that reason: off, low, medium, high, xhigh or max. |
--api-key <key> |
The provider’s key for this run, in place of the environment. A key typed here is visible to other processes and kept in your shell history, so prefer the environment or a credentials command in personal settings. |
|
--instructions <file> |
A workspace-relative instruction file, read before each turn, in place of AGENTS.md. Repeat for more; 32 KiB in total. |
|
--append-system-prompt <text or file> |
Append your own text to the system prompt, in place of ~/.felix/APPEND_SYSTEM.md (or $FELIX_HOME/APPEND_SYSTEM.md); only a trusted workspace adds its own. Repeatable. |
|
--system-prompt <text or file> |
Replace Felix’s opening and its tool guidance with your own; a personal ~/.felix/SYSTEM.md does the same when the flag is not given. MCP server notes, skills, appended text, project instructions and the date are still added. A workspace never supplies it. |
|
--no-instructions, -nc |
Load no instruction files. | |
--context-window <tokens> |
FELIX_CONTEXT_WINDOW |
Compact older turns to keep the model’s input inside this window. |
--export <file> |
Write the session (the default one, or --session’s) to a file as Markdown, or as an HTML page when the file ends in .html or .htm, never over an existing file. |
|
--json |
With pnpm chat and a prompt, write each event as a line of JSON. The first line is session: the session file (null with --no-session), workspace, provider and model. Then the run’s events: turn_start, text, tool_call_delta (a call being written, piece by piece), message, tool_start, tool_progress, tool_end, usage, retry, compaction, tool_results_cleared, context_overflow, limit, steer, interrupted_calls and end, or error. |
|
--mcp-login <name> |
Sign in to an OAuth-protected MCP server. See MCP. | |
--serve-mcp |
Serve the workspace tools to another MCP client over stdio. See MCP. |
Behind a proxy, set HTTPS_PROXY, HTTP_PROXY or NO_PROXY; every request the client makes,
to models and to MCP servers, follows them.
Provider, model, context window and reasoning can also be set in ~/.felix/settings.json, or in
the workspace’s .felix/settings.json, which takes precedence; flags and environment variables
win over both. Which tools a run has is the defaultTools setting (see
Choosing the tools), then the tool flags.
retry tunes retrying a model call after a rate limit, overload or lost connection:
{"retry": {"maxRetries": 4, "baseDelayMs": 2000, "maxDelayMs": 60000}}. By default a call is
tried twice more, waiting 1 second and doubling up to 30; maxRetries: 0 turns retrying off.
compaction tunes automatic compaction: {"compaction": {"enabled": false}} turns it off
(/compact still works), and keepRecentTokens (recent conversation kept word for word) and
reserveTokens (room left for the reply, which decides when compaction starts) override the
model’s defaults, up to half its context window. Both merge field by field, so a workspace can
change one value and keep the rest of your personal file’s.
Settings can also hold models, records keyed by model ID with contextWindow,
maxOutputTokens, vision, reasoning, streamsToolCalls, promptModeReasoning (Mistral’s Magistral models) and pricing. For Workers AI, fields a record leaves out
are filled from Cloudflare’s model listing, cached for 24 hours. The personal file alone can name
credentials: commands, run without a shell, that print a provider’s key (cloudflareApiToken,
anthropicApiKey, openaiApiKey, geminiApiKey or mistralApiKey) or AWS credential_process
JSON (awsCredentials) (see
Models and embeddings).
Opening a session from a different workspace than the one it was started in prints a warning,
because the paths in its transcript meant the other workspace. If the client crashes, the last few
crash reports are kept in ~/.felix/crashes.json.
Before each turn the client reads ~/.felix/AGENTS.md, then one file from each directory between
the repository root and the workspace, outermost first: the first of AGENTS.override.md,
AGENTS.md and CLAUDE.md found there. Outside a repository only the workspace’s own file is read.
--instructions names files instead, and --no-instructions turns them off. The system prompt
also gives the local date.
What an instruction file says does not grant any tool the run does not already have.
Run history
Section titled “Run history”Each run’s trace (its model turns, tool calls, outcomes and token counts, never what was said) is
kept for seven days in ~/.felix/telemetry.sqlite. pnpm chat --traces lists recent runs.
"telemetry": false in ~/.felix/settings.json stops the recording. To also send each run’s
trace and metrics to an OpenTelemetry collector or backend, set the standard
OTEL_EXPORTER_OTLP_ENDPOINT (or OTEL_EXPORTER_OTLP_TRACES_ENDPOINT and
OTEL_EXPORTER_OTLP_METRICS_ENDPOINT) and OTEL_EXPORTER_OTLP_HEADERS.
OTEL_METRICS_EXPORTER=none or OTEL_TRACES_EXPORTER=none turns one off.
Connecting to a hosted Felix
Section titled “Connecting to a hosted Felix”--server URL connects the terminal to a Felix deployment instead of running a model here. Sign in
first, on a deployment with GitHub sign-in:
felix login --server https://felix.example.compnpm cli --server https://felix.example.compnpm chat --server https://felix.example.com "What do the notes in this repo say?"felix login prints a code to enter at github.com and waits until you have. The session lasts as
long as the deployment’s sessions do (8 hours by default) and is kept for that server alone in
~/.felix/sessions.json, readable only by you; felix logout --server URL forgets it. For
automation, put the deployment’s API token in FELIX_SERVER_TOKEN instead (never on the command
line); it is used whenever it is set. You see and reach only your own server conversations, unless
you are an admin.
The status line says unreachable while requests to the server fail, until it answers again,
and sign-in refused once it has refused your session or token: run felix login --server URL
again, or set a new FELIX_SERVER_TOKEN, and restart.
Where the server offers change feeds, the open conversation keeps up with changes made elsewhere,
in the web app, another terminal or a schedule: when nothing is running here and nothing waits on
you, it is reloaded and the status says updated from elsewhere, and a run started elsewhere is
followed. A change that arrives during a run here is shown once the run ends. A conversation
deleted elsewhere is closed, and a new one is opened.
The server runs the model and keeps the conversations; the picker, search, rename and fork work on
the server’s threads. This terminal still runs its own file tools and run_command, as selected, in the workspace when the model asks, with the same prompt before each write, unless
--yes. Your personal MCP servers (~/.felix/mcp.json) and skills
come along too: their tools run here, each MCP call asked first like a write, every MCP tool is
offered (deferred tools are not held back for tool_search), and /skill:<name> sends a skill’s
instructions with your request. --no-mcp, --no-skills and --skill <path> work as they do
locally. A workspace’s own .felix/mcp.json and skills are not read against a server. A tool call the server’s approval rules hold is asked at the same prompt. /model and
/think choose among the server’s models and reasoning levels. /agent lists the server’s
agents, and /agent <name> picks one for a new conversation, or for an open one before its first
prompt; once a conversation has run it keeps its agent. Opening a conversation whose reply
is still running on the server follows it; switching away or quitting leaves it running, and only
Stop stops it. --thread ID
opens an existing server conversation; a one-shot prompt ends by naming the thread so the next one
can continue it.
Tools and writes
Section titled “Tools and writes”By default the model can call list_files, read_file, find_files, grep_files, write_file,
edit_file and run_command on the workspace, and time_now, time_convert and date_math for the current time in any zone, conversions between
zones across daylight-saving changes, and calendar arithmetic, and calculate for other
arithmetic. Two settings in ~/.felix/settings.json (not a workspace’s) add tools that ask public
services: "lookups": ["weather", "wikipedia", "currency"], any of them (Open-Meteo’s free weather
service is for non-commercial use), and "webSearch": "on" (or a provider: ceramic, exa, linkup) for
web_search, which needs a Cloudflare account id and a token with Workers AI Read and AI Gateway
Read; each search is billed to the account. The system prompt ends with today’s
date in FELIX_TIMEZONE, or in the computer’s zone when that is unset.
edit_file replaces passages that each match exactly one
place, up to 50 in one call; if any of them fails, the file is left unchanged. A passage that does
not match exactly may still match whole lines once trailing spaces, typographic punctuation and
Unicode compatibility forms are ignored; that match must also be unique. A failed edit says
whether the text was not found or matched several places, an edit that would leave the file as it
is fails, and each line keeps its own line ending. read_file shows 200 lines at a time (limit
asks for up to 2,000) within 50 KB, and recognizes images by their content; edits and writes
handle files up to 16 MiB. find_files and the glob of grep_files take brace alternatives
such as *.{ts,tsx}; a find_files glob without capital letters matches either case, and
matching directories are listed with a trailing /. grep_files also takes a single file as its
path. Symbolic links are followed for reading and searching while they stay inside the
workspace; writes never go through one. run_command runs
bash -c in the workspace; it is not a sandbox. git in its commands ignores a repository’s own
core.fsmonitor and core.pager, and git status leaves the index alone (GIT_OPTIONAL_LOCKS=0). Its output is capped at 32 KB; a longer output is also kept whole (up to 64 MiB) in a
private temporary file the result names, and a command stopped by a signal reports 128 plus the
signal number as its exit code. Paths stay inside the workspace. Tools from configured
MCP servers are added beside them, named mcp__<server>__<tool>.
Choosing the tools
Section titled “Choosing the tools”The built-in tools on by default are read_file, list_files, find_files, grep_files,
edit_file, write_file and run_command. start_command, command_output, stop_command and
run_skill_script are built in but off until selected. The defaultTools setting changes the
default: a list of names replaces it, and a list of only +name and -name entries adjusts it.
A trusted workspace’s .felix/settings.json can adjust the personal choice the same way.
{ "defaultTools": ["-run_command", "+start_command"] }--tools, --read-only, --write, --shell and --exclude-tools then apply for the run.
Tools from MCP servers, extensions and skills are always on, so a -name entry, in the setting or
in --tools, removes one ({"defaultTools": ["-mcp__docs__fetch"]}), and a later +name puts it
back (--tools +mcp__docs__fetch). A name in --tools must match a tool the run has; one in the
setting need not, since the extension it names may have been removed.
Short forms: -t (--tools), -xt (--exclude-tools), -nt (--no-tools), -nbt
(--no-builtin-tools), -e (--extension), -ne (--no-extensions), -ns (--no-skills),
-np (--no-prompt-templates), -nc (--no-instructions) and -na (--no-approve).
A prompt can attach up to 8 images by naming them as @path/to/image.png (PNG, JPEG, GIF,
WebP or BMP, relative to the workspace; a BMP is sent as PNG or JPEG), in the full screen and in pnpm chat. Punctuation right after the
name, as in what is in @shot.png?, is not part of it. Models without vision get a text note in
their place.
In the full-screen client, each write, command and MCP tool call waits on a prompt that says what
it will do: the absolute path a write touches, or the whole command line it runs. A command too
long to show in full (over 2,000 characters) is refused without asking, and the model is told to
split it. A write_file or
edit_file prompt also shows the change as a diff: “creates” and the whole content for a new file,
“changes” and the removed and added lines (with three lines of context) for an existing one. The
diff is exactly what the tool would write, and it is cut to at most 16 rows, fewer on a short
terminal, with a note of how many lines are not shown, so the keys always stay on screen. An edit
that would fail says so and why instead, and a file over 1 MiB, binary or not UTF-8 is named
without a diff. A server-side approval for write_file shows the new content only, since the
current file is on the server. y allows it, n refuses it. A refusal goes back to the model as a refused call, so it reads why
and carries on. No answer within 25 seconds refuses, and so does stopping the run. --yes skips
the prompt; the greeting and the status line both say when it is on. Line mode (--tui-mode regular, or pnpm chat) at a terminal asks the same question at its prompt, with a file write’s
diff above it: y allows, s refuses and stops the run, and anything else
refuses. --print, --json, and line mode with input or output piped have nowhere to ask, so
there writes, commands and MCP calls run without asking. The first one in a run is named on
stderr (running without asking: …), unless you passed --yes. Only your personal settings can
set tuiMode; a workspace’s .felix/settings.json that sets it is refused.
The model also has plan tools (plan_create, plan_update_step, plan_get), drawn in the
transcript as the plan’s steps, and in the full-screen client ask_user, for a decision that is
yours to make. The question appears above the composer: a yes/no question takes y or
n; a choice (type its number, its text, or your own answer) or a free-text answer is typed in the composer
and sent with enter. esc declines, which the model hears as you choosing not
to answer. No answer within 4½ minutes, or stopping the run, tells the model nobody answered.
Against a server, the server’s run waits for your answer. pnpm chat and --print do not offer
ask_user.
Memory
Section titled “Memory”Felix can remember things across sessions, but only what you accept. When the model learns
something worth keeping (a preference, a rule for this project, where work stands) it proposes a
memory, and the status line says so with its id and the commands that keep or drop it
(/memory accept <id>, /memory reject <id>). /memory lists what is proposed and what is kept:
| Command | Does |
|---|---|
/memory |
List proposed and accepted memories with their ids. |
/memory accept <ids…|all> |
Keep proposals. A kept memory with the same topic (such as user.timezone) is replaced. |
/memory reject <ids…|all> |
Drop proposals. |
/memory forget <ids…> |
Delete kept memories. |
The model reads kept memories with its recall tool when it needs them; nothing is added to every
prompt. A memory is personal (every project) or belongs to this project. They live in
~/.felix/memory.sqlite. Anything that looks like a credential is never kept. "memory": false in
settings turns memory off.
| Key | |
|---|---|
| Enter | Send. While a run is live this steers it instead: the text is handed to the run after its current step. |
| Alt+Enter | While a run is live, queue the text to send as the next prompt once the run finishes; queued messages show above the prompt and go one at a time. With nothing running it sends, like Enter. A stopped or failed run sends none of them: they come back into the prompt, ahead of anything typed since. Commands and ! lines are not queued. |
| Alt+↑ | Take the queued messages back into the prompt. |
| Ctrl+V | Paste an image from the clipboard: it is kept privately for this session and named in the prompt as @clipboard-1.png, which attaches it like an @path image. Files copied in a file manager paste as themselves: an image file is kept and named the same way (so a screenshot on the Desktop can go with the prompt), and any other file goes in as its path. With no image or file on the clipboard, its text is pasted. Reads the clipboard with osascript and pbpaste on macOS, wl-paste on Wayland, xclip on X11 and PowerShell under WSL; not on Windows itself. With --server, text and file paths only. |
| Shift+Enter | A new line in the prompt. |
| Ctrl+K / U / W | Cut to the end of the line, to its start, or the word before the cursor. Cuts in a row join into one. Ctrl+Y puts the last cut back, and Alt+Y straight after it swaps in an older one. The cuts are the prompt’s own, not the system clipboard. |
| / or @ | Suggest as you type: after /, commands, /skill:name skills, prompt templates and extension commands; after @, files in the workspace, matched loosely (@scrapp finds src/screen/app.tsx), honouring .gitignore. A folder completes to @folder/ so you can go on. Tab or Enter takes the highlighted one, ↑/↓ choose, Esc closes. Paths with spaces are not offered. |
| ↑ / ↓ | Walk back through prompts you have sent: this conversation’s first, then your last 50 from earlier runs in any workspace. They are kept in ~/.felix/prompt-history.jsonl, readable only by you; nothing is kept with --no-session. |
| Ctrl+E | Open the prompt in $VISUAL or $EDITOR. Saving brings the text back; it is not sent until you press Enter. |
| PgUp / PgDn | Read back through the conversation. Paging to the bottom returns to the live end. |
| Tab | Open the conversation picker (or, while suggestions show, take one). |
| Shift+Tab | Open the inspector. |
| Ctrl+N | Start a new conversation. |
| Esc | Stop the run. What the reply had said so far is kept, marked (stopped), and the next prompt’s model sees it. |
| Ctrl+C | Stop a live run; again to quit. |
| Ctrl+P | Switch later turns to the next model, or with Shift the previous one: those --models names (comma-separated patterns, * matching anything, such as --models 'claude-*,glm', or the cycleModels setting), else the ones with settings records. Against a server, the models it offers. |
| Ctrl+O | Show every tool card’s whole result (up to 200 lines each; a command’s output and how it ended), or fold them to one line again. |
| Ctrl+Z | Suspend to the shell, as job control does; fg brings the screen back as it was. A running reply pauses meanwhile. Not on Windows. |
| y / n | Answer a write prompt. |
Pasted text is cleaned of colour codes and other control characters. A short paste joins its lines
into one, as prose; a paste of more than ten lines or a thousand characters shows as
[paste #1 +40 lines] and is sent whole when you press Enter, keeping its line breaks, so code and
stack traces arrive intact. Ctrl+E opens the pasted text itself in your editor.
Changing keys
Section titled “Changing keys”"keybindings" in your settings moves keys, by action. Each action takes a key, a list of keys,
or [] to leave it unbound:
{ "keybindings": { "newThread": "ctrl+t", "killWordBackward": ["ctrl+w", "alt+backspace"] } }| Action | Default |
|---|---|
newThread |
Ctrl+N |
cycleModel, cycleModelBack |
Ctrl+P, Shift+Ctrl+P |
toggleTools |
Ctrl+O |
openThreads, openInspector |
Tab, Shift+Tab |
editor |
Ctrl+E |
paste |
Ctrl+V |
followUp, dequeue |
Alt+Enter, Alt+↑ |
killToLineEnd, killToLineStart, killWordBackward |
Ctrl+K, Ctrl+U, Ctrl+W |
yank, yankPop |
Ctrl+Y, Alt+Y |
A key is modifiers and a name joined with +: ctrl, alt (or meta, option) and shift,
then a letter, digit or punctuation mark, or tab, enter, space, backspace, delete, an
arrow, home, end, insert or f1 to f12. Enter, Shift+Enter, Esc, Ctrl+C, Ctrl+Z,
PgUp/PgDn and ↑/↓ cannot be moved, nor can the keys inside the conversation picker and the
inspector. Problems are shown once when the screen opens, and the action keeps its default: an
unknown action or key, one of those fixed keys, or two actions given the same key (neither gets
it). A key you give that was another action’s default takes it, and that action is left without
it. The workspace’s settings can set keys too, action by action over your own.
/help lists the keys this screen handles, as they are after your settings, generated from the
table the key router is tested against. The status line along the bottom shows the model, the write mode, the open session, the
workspace folder and the run’s phase, beside what the keys do right now.
Model reasoning is drawn quietly where it happened: thinking with the newest words while it is
written, then one dim line with how long and how many words. Replies render as Markdown: headings, tables, lists, links, and fenced code in a frame with its
language on it. A tool card shows the call in one line and the end of its result in another; a
failed call is drawn in the failed colour with its reason. Selecting text with the mouse copies it
over OSC 52, which also works across ssh. A terminal that does not accept it is told once.
Colours follow your terminal’s own palette.
Inspector
Section titled “Inspector”Shift+Tab or /inspect opens the inspector over the conversation: one tab per
thing Felix can tell you about itself, read only. ← → move between tabs,
↑ ↓ scroll the tab, r reads it again now (it also re-reads every 3
seconds while it is open), / searches the Memory and Docs tabs, Tab swaps to the conversation picker, and Esc or
Shift+Tab closes it. Only the open tab is read. It cannot be opened while a
write or a question waits on you, and nothing typed while it is open reaches the prompt.
In the Memory tab, a search shows the memories that contain every word you type. In the Docs tab it searches inside the documents on the server, once typing pauses, and shows up to 10 passages; it is not repeated until you press r or change it. Enter or Esc leaves the field and keeps the results; moving to another tab clears the search.
| Tab | Shows | Local | With --server |
|---|---|---|---|
| Audit | The deployment’s audit log, newest first. | — | Admins only; others are told so. |
| Waiting | Tool calls held for approval, with what each would touch. | — | Calls you can reach. |
| Plans | The plans the model wrote in this conversation: steps, how many are done, and whether it is finished. | From the session file. | From the server thread. |
| Tools | Calls, errors and mean duration per tool over the last hour. | From run history. | The server’s metrics; admins only. |
| Usage | This conversation’s runs, newest first: model, model turns, input and output tokens, and how each ended. | From run history. | From the server thread’s runs. |
| Memory | Proposed and kept memories. Review them with /memory, or on the web Memory page. |
~/.felix/memory.sqlite. |
The signed-in person’s; an API token has none. |
| Docs | The deployment’s documents and whether each is indexed yet. Admins add them on the web Documents page. | — | Yes, where the server has documents. |
| Skills | The skills found at startup; with --server, the server’s skills its conversation runs can use. |
Yes. | Where the server has a skill library. |
A tab whose data does not exist in a mode is not shown. When a tab cannot be read here (telemetry or memory turned off in settings, or a tab for admins only) it says why instead of showing an empty list; a read that fails offers r to try again.
Conversations
Section titled “Conversations”A new conversation greets you by the time of day and your name (the account felix login signed
in as, else the one running the terminal). In a git repository it then names uncommitted changes on
your branch; otherwise it offers the conversation you left in the last six hours, or says how many
commits your branch is ahead of the default one. An agent’s own greeting replaces it. With --ssh
the repository is not read.
Each conversation is a session file, and the picker lists every session in the session’s directory, newest first, titled by its first prompt. Typing filters it, ↑ ↓ and Enter (or a click) open one, and Esc clears the filter, then closes it. Ctrl+N starts a new file, named by when it was started; it appears in the list once its first message is saved.
Ctrl+D in the picker deletes the selected conversation after asking:
Enter deletes it, Esc keeps it, and other keys wait for the answer. The open
conversation, and one another felix process has open, cannot be deleted. A local session goes to
the trash where the system has a trash command (macOS does), with the files /rewind --files
kept for it and its name; otherwise they are deleted. With --server, the server deletes the
conversation.
A session is locked while a client has it open. Opening one that another felix process holds is
refused, and you stay where you were. Switching stops a run in flight first. When the client exits,
it prints the path of the session it had open.
A run that is interrupted — the process killed, or Ctrl+C mid-call — is not repeated on the next prompt: each call it cut off is recorded as having an unknown outcome, and the model is told whether repeating it is safe.
Slash commands
Section titled “Slash commands”| Command | |
|---|---|
/help |
The commands and keys: on the notice line, or in $PAGER when the terminal is too short to show them there. |
/changelog |
What changed in Felix, in $PAGER. After an update, Felix says once at startup that there are changes since the version you last ran. |
/rewind [n] [--files] |
Continue from before the last n prompts (1 by default). The next prompt starts a new branch of the same session; the rewound turns stay in its file. Files are left as they are unless you add --files, which puts back every file write_file or edit_file changed in those turns, as it was before them (files those turns created are removed). Changes made by shell commands are not undone. |
/version <n> |
Switch an edited prompt to another version. A prompt sent again after /rewind is a new version of the one it replaced, and the transcript shows version 2 of 2 · /version <n> under it; this switches the newest such prompt. The other versions stay saved. |
/tree [n] |
List the conversation’s branches, newest first, with each one’s last prompt, length and age (* marks the one you are on); /tree <n> switches to branch n. Nothing is deleted. |
/label <name> |
Name the branch you are on, at its last message, so /tree shows the name beside it; /label - clears the name the branch shows. Up to 200 characters in a local session, 100 against a server; waits for a running reply to finish. |
/search <text> |
Find saved conversations whose name or messages contain the text; up to five, newest first, numbered. |
/open <n> |
Open hit n from the last search, or a conversation by its session name. |
/new |
Start a new conversation, as Ctrl+N does. |
/refresh |
Read the conversation list again, for conversations started in another window. |
/copy |
Copy the last reply to the clipboard (the terminal must accept OSC 52 clipboard writes). |
/artifact <n> [file] |
With --server: read the whole of a tool output the server kept because it was too long, by the [aN] on its tool card, in $PAGER, or write it to file in the workspace (never over an existing file). A local session keeps every output whole, so it has none. |
/continue |
Run the conversation again from where it stands, after a reply that failed or was stopped before it answered, without a new prompt. Refused when the last reply finished. |
/session |
Say where this conversation is saved, and how many messages and prompts its current branch holds. |
/rename <name> |
Name the open conversation in the picker, in place of its first prompt. /rename - clears it. |
/instruct [text] |
Add instructions the prompts that follow keep to, such as /instruct Answer in French.; with no text, list the ones added; /instruct - clears them. They belong to the branch you are on, so /rewind to before one leaves it behind. With --server they are kept on the server’s conversation, which every client of it follows. |
/signal [name] [json] |
With the signals setting on, list what the conversation waits for; with a name, send that signal, and the reply to it runs next; /signal cancel <name> stops waiting. See Waiting for a signal. |
/compact [instructions] |
Summarize older turns now, instead of waiting for the context window to fill. Words after it say what the summary should concentrate on, such as /compact the schema decisions. |
/think [level] |
Show the reasoning effort later turns ask for, set it (off, low, medium, high, xhigh, max), or clear it with default to leave it to the model. |
/plan |
Turn plan mode on or off: from the next prompt only read-only tools (reads, searches) run, and shell commands only when they just read the workspace (git log, grep, ls, cat…, without redirects into files, variables, command or process substitution, background jobs, flags that write such as sort -o, paths outside the workspace or into your home folder’s dotfiles, network access, or git in a repository whose own .git/config names an external diff, filter, textconv or signature program); any other call is refused, and the model is told to investigate and propose. Read-only commands run without the write prompt. Against a server, it sets the server conversation’s mode, where the terminal’s commands are refused. |
/ask <question> |
Ask a side question about this conversation. The answer opens in the pager; neither is added to the conversation, and it works while a reply is running. |
/model [id[:level]] |
Show the model and the recorded ones, or switch later turns to another model of the same provider; :high and the other levels set the reasoning level too, as --model id:level does. |
/agent [name] |
With --server: list the server’s agents (the conversation’s marked *), or pick one by id or name for the conversation before its first prompt. A conversation that has run keeps its agent. |
/style [name] |
With --server: list the output styles of the conversation’s agent (the one in use marked *), pick one by name for the replies that follow, or go back to the agent’s own with default. |
/start [n] |
With --server: list the starter prompts of the conversation’s agent, or put starter n in the composer to read and change before you send it. |
/skills |
List the skills and prompt templates found at startup or by the latest /reload, with their descriptions. With --server, open the server’s skill library in the pager instead: what waits for review, what is live, and then the skills on this machine. |
/skill <name> |
With --server: one server skill’s versions, newest first, where each came from, who decided it, and what the publish gate says of its newest draft. Read only; publish and reject in the web app. |
/reload |
Find skills and prompt templates again, for skills or templates added, changed or removed since Felix started, and say which came and went. Later prompts use them; a reply already running keeps what it started with. AGENTS.md files need no reload: they are read before every prompt. |
/skill:<name> [request] |
Send the skill’s instructions with your request. See Skills. |
/<template> [args] |
Send a prompt template, filled with the arguments. |
/fork |
Copy the open conversation into a new session and continue there; the original is unchanged. Not possible mid tool call. |
/export [file] |
Write the open conversation, to felix-<session>.jsonl in the workspace or the path given: an HTML page for a .html or .htm path, Markdown for .md, and JSONL (which /import reads) otherwise. An existing file is never overwritten. |
/share [send] |
Build the conversation as an HTML page and say what would be uploaded; /share send, within 5 minutes and before the conversation changes, uploads it to a secret GitHub gist with the GitHub CLI (gh). Anyone with the link can read it until you delete the gist on GitHub. |
/import <file> |
Continue a conversation /export wrote, in a new session; the open one is left as it is. Every line must be a message and every tool call must have its result, or nothing is imported and the notice names the line at fault. Local sessions only. |
/work |
The files this conversation changed, the commands it ran, what failed, and the latest plan, in $PAGER. |
/inspect |
Open the inspector. |
/settings |
The settings in effect and where each came from, in $PAGER; credential commands are named, never shown. |
/trust [yes|no|forget] |
Show whether this folder is trusted and why, or save yes or no for it in ~/.felix/trust.json, or forget the saved choice. Trust grants no tools. |
/bug [--session] [description] |
Write a private bug report to ~/.felix/reports/ (the settings in effect and the last crash, and with --session this conversation) to review and attach to an issue. Nothing is sent. |
/quit, /exit |
Exit. |
With --server, /rewind, /version and /tree work on the server’s conversation, which keeps the same tree, and /rewind --files is refused: the server keeps no copies of your workspace files. The server refuses a move while a run is still going in the conversation.
pnpm chat runs /compact, /think, /model, /plan, /ask, /reload, /skill: and templates too, and adds /retry,
which runs the last turn again when it failed, for example after a network error.
Colors
Section titled “Colors”/theme (or --theme, or "theme" in your settings) picks the full screen’s colors: system
(the default: Felix’s palette when your terminal supports true color and says whether it is
light or dark, else its own sixteen colors), terminal (always your sixteen colors), light,
dark, or a custom theme in ~/.felix/themes/<name>.json.
With Felix’s palette, the screen also works from your terminal’s own foreground and background:
your prompts sit on a slightly lighter (or, on a light terminal, darker) shade of your
background, secondary text is your foreground blended toward the background, kept readable at
4.5:1 or better, and a working or thinking label shimmers while a run works. The model’s
reasoning is dim and italic. A write’s diff tints added and removed lines green and red, with a
stronger tint in the line-number gutter. A terminal that does not report its colors gets the
palette alone.
While Felix works, the prompt from its mark writes itself beside thinking and a background
run’s status: >, then the cursor _, then both clear. A running tool call’s marker draws the
kind of work the call does, a dot at a time: a page filling with lines for a read, a ragged
paragraph for a write, a lens for a search, the prompt for a command, and a child agent’s work
in turn. When the call finishes, the marker becomes ⎿, or ✗ if the call failed. Every other
wait writes the same >_ in front of what it is doing: compacting…, asking…, rejoining a
thread after a dropped connection, or an inspector panel reading.
When you look away
Section titled “When you look away”The full screen sets the terminal window’s title to what the run is doing: Felix when idle,
(...) Working - Felix during a reply, and (!) Waiting on you - Felix when a write or a question
needs an answer. Your shell’s own title comes back on exit.
In a terminal that reports focus, Felix also sends a desktop notification when a run starts
waiting on you, or finishes, while the window is in the background; never while you are watching.
A terminal that does not report focus gets the title only. Set FELIX_NO_NOTIFY=1 to turn both
off.
Waiting for a signal
Section titled “Waiting for a signal”With "signals": true in your settings, the model can wait for something from outside the
conversation: a deploy or build finishing, a webhook, someone answering later. It calls
wait_for_signal with a name (lowercase letters, digits, _ and -) and a wait of one minute to
30 days (a day by default), and its turn ends there. Nothing runs while it waits, and you can close
Felix.
When the value is ready, send it under that name. Its payload is JSON, or else text, and the model reads it as data, not instructions:
/signal deploy {"status": "green"}in the full screen orpnpm chat;/signalalone lists what the conversation waits for, and/signal cancel deploystops waiting.felix signal deploy '{"status": "green"}'from another shell or program, such as a CI step or a webhook handler. It goes to the session last written in this workspace, or to--session <path>. If Felix has that session open, it runs the reply there. Otherwise this command delivers it and continues the conversation as one prompt (--print), taking the same flags as any run (--model,--tools…). A signal nothing waits for, or one whose wait ran out, is refused, and nothing runs.- With
--rpc, a prompt/signal deploy {...}; onefelix signalsends while the RPC process holds the session runs as a prompt whosesettledevent has an id startingsignal-.
Each signal is delivered once. The model can wait for a name again once its wait has ended.
Running your own commands
Section titled “Running your own commands”In the full screen, a message that starts with ! runs the rest of the line as a shell command in the
workspace, as you, without asking the model:
| Type | |
|---|---|
!<command> |
Run it and show its output. The command, how it ended and its output are sent with your next message, so the model reads what you saw. |
!!<command> |
Run it and show its output, without sending anything to the model. |
The command runs with bash -c in the workspace, with your environment, stdin closed, and PAGER,
GIT_PAGER, GIT_TERMINAL_PROMPT and NO_COLOR set as for the model’s commands when you have not
set them. It does not depend on the tool selection: that decides what the model may run, not what you may. It runs
until it ends, and Esc or Ctrl+C stops it; a stopped command is not sent. One runs at a time, and it
can run while a reply is being written: its output then goes with your next message, or with the
text you send to steer that reply.
The screen keeps the first 4 KiB and the last 8 KiB of the output, without colour codes; longer output
is kept whole in a private temporary file, which the transcript and the model are told about. Output
is sent ahead of your message, in the order the commands ran, and saved as part of that prompt, so
/rewind takes it back with the prompt. If it would make the prompt longer than 32,768 characters,
the oldest is left out and the notice line says so. Output not yet sent is dropped when you open
another conversation, fork or rewind. !! output is shown only while the screen is open.
© Felix. All rights reserved.