← Portfolio/free-code

free-code

Command reference — every slash command, keyboard shortcut, and CLI flag.

Editor commands ( / )

Type / in the input to open the command menu. Extensions and skills add more.

Session

CommandDescription
/login · /logoutOAuth authentication
/newNew session
/resumeBrowse and pick a previous session
/name <name>Set a visible name for the current session
/sessionShow session info: path, token count, cost
/forkBranch the current session into a new independent one
/treeNavigate history as a tree and jump to any checkpoint
/compact [instructions]Summarize context; optional instructions for the summary
/copyCopy the last assistant reply to clipboard
/export [file].md → Markdown; .jsonl → JSONL; other/none → interactive HTML
/shareUpload as a private GitHub gist with an HTML link
/quitQuit the session

Model & settings

CommandDescription
/modelSwitch model interactively
/scoped-modelsEnable or disable models for the Ctrl+P cycle
/settingsReasoning level, theme, message delivery, transport
/pick-themeSwitch the UI theme
/reloadReload shortcuts, extensions, skills, prompts, and context files
/hotkeysList all keyboard shortcuts
/changelogView version history

Tools

CommandDescription
/toolsList active tools
/pick-toolsEnable or disable individual tools
/filesBrowse and attach files as context
/pick-agentSwitch agent preset
/pick-skillActivate a skill interactively
/commandsList all available slash commands
/mcp-importImport an MCP server configuration
/damage-control [on|off|toggle|status]Toggle Damage-Control firewall enforcement for bash, paths, and MCP (rules stay loaded)

Subagents

CommandDescription
/sub <task>Start a new subagent with a task
/subcont <n> <prompt>Continue talking to subagent #n
/subrm <n>Remove subagent #n
/subclearClear all subagent widgets

RAG — Knowledge base

CommandDescription
/rag addFile <path>Index a document
/rag addGroup <folder>Index all supported files in a folder
/rag addGithubUrl <url> [subpath]Clone a GitHub repo and index its files; optional subpath targets a subdirectory. Saved to sources.json for future refreshes.
/rag addDrive <google_drive_url>Download a Google Drive document via agent_browser and index it into the active knowledge base (PDF, DOCX, or TXT)
/rag search <query>Query the knowledge base and use the result as context
/rag listList indexed documents
/rag remove <file>Remove a document from the index
/rag refreshRe-fetch and re-index all sources registered via addFile and addGithubUrl
/rag schedule [daily|weekly]Set up automatic recurring refresh (requires at least one GitHub source)
/rag-kb create <name>Create a named knowledge base
/rag-kb delete <name>Delete a knowledge base
/rag-kb use <name>Switch the active knowledge base
/rag-kb listList all knowledge bases

Browser & Gemini

CommandDescription
/drive download <url>Download a Google Drive document to the project directory via agent_browser (PDF, DOCX, or TXT)
/browse [url] [goal]Open URL in visible browser; defaults to Google if no URL
/gemini ask <message>Send a message to Gemini via CDP
/gemini download <file>Download a Gemini-generated artifact
/gemini open [chat_id]Open a Gemini conversation in the browser

Code Graph

CommandDescription
/codeGraph-index [--force]Index or re-index the project. --force re-indexes all files.
/codeGraph-symbols <query> [--kind <type>] [--limit <n>]Search symbols by name. Kinds: function, class, method, interface, type, variable, enum.
/codeGraph-callers <name> [--limit <n>]Find all call sites for a function or method
/codeGraph-context <name> [--file <partial-path>]Full source and direct callees of a symbol

Code graph full documentation →

Keyboard shortcuts

Customizable via keybindings.json. Run /reload after editing.

KeyAction
Ctrl+CClear the editor
Ctrl+C twiceQuit
EscapeCancel / abort the current operation
Escape twiceOpen /tree
Ctrl+LOpen model selector
Ctrl+PCycle scoped models forward
Shift+Ctrl+PCycle scoped models backward
Shift+TabCycle reasoning level (off → minimal → … → xhigh)
Ctrl+OCollapse / expand tool output
Ctrl+TCollapse / expand thinking blocks
Editor shortcuts
In the input: type @ to attach files, !command to run a shell command inline, !!command to run and attach output as context.

CLI flags

free-code [options] [@files...] [message...]

Sessions

FlagDescription
-c, --continueContinue the most recent session
-r, --resumeBrowse and pick a session
--session <path|id>Open a specific session by file path or partial UUID
--fork <path|id>Fork a session into a new one
--session-dir <dir>Custom session storage directory
--no-sessionEphemeral mode — nothing is saved

Model & output

FlagDescription
--provider <name>Select provider
--model <pattern>Model ID or provider/id, optionally with :<thinking>
--api-key <key>API key override
--thinking <level>Reasoning level: off, minimal, low, medium, high, xhigh
--models <patterns>Comma-separated list for Ctrl+P cycle
--list-models [search]List available models; optional search filter
-p, --printSingle response and exit; reads piped stdin
--mode jsonJSON line-by-line output
--mode rpcRPC mode (used by VS Code plugin and macOS app)
--export <session> [output]Export session to HTML, Markdown, or JSONL without opening TUI

Tools & extensions

FlagDescription
--tools <list>Built-in tools to enable (default: read,bash,edit,write,grep,find,ls)
--no-toolsDisable built-in tools (extension tools still load)
-e <source>, --extension <source>Load an extension (repeatable)
--no-extensionsDisable extension auto-discovery
--skill <path>Load a skill file (repeatable)
--no-skillsDisable skill loading
--system-prompt <text>Replace the default system prompt
--append-system-prompt <text>Append to the default system prompt

Package management

CommandDescription
free-code install <source> [-l]Install a package. -l = project-local
free-code remove <source>Uninstall a package
free-code update [source]Update installed packages (skips pinned versions)
free-code listList installed packages
free-code configEnable or disable package resources

Built-in agent tools

Available by default in every session. Enable or disable with --tools.

ToolDescription
readRead files from the filesystem
bashRun shell commands
editMake exact string replacements in files
writeWrite or overwrite files
grepSearch file contents with regex
findFind files by name or pattern
lsList directory contents
code_indexBuild or update the code graph index
code_symbolsSearch symbols in the code graph
code_callersFind callers of a function in the code graph
code_contextGet symbol source and callees from the code graph