.ai/docs/commands.md
Auto-generated documentation for flow CLI commands.
f (no args)Opens fuzzy finder to browse and run project tasks from flow.toml.
f <task>Run a task directly by name. Additional arguments are passed to the task command.
f run <task>Explicit task execution (same as f <task>).
f tasksList all tasks from the current project's flow.toml with descriptions.
f rerunRe-run the last executed task in this project.
f last-cmdShow the last task's input and output/error.
f last-cmd-fullShow full details of the last task run (command, status, output).
f search (alias: f s)Fuzzy search global commands/tasks from ~/.config/flow/flow.toml. Useful outside project directories.
f match <query> (alias: f m)Match natural language query to a task using LM Studio. Requires LM Studio running on localhost:1234.
Options:
--model <name> - LM Studio model (default: qwen3-8b)--port <port> - LM Studio port (default: 1234)-n, --dry-run - Show match without runningf parallel <tasks...> (alias: f p)Run multiple tasks in parallel with pretty status display.
# Auto-labeled (uses first word as label)
f parallel 'echo hello' 'cargo build' 'cargo test'
# Custom labels with label:command syntax
f parallel 'build:cargo build' 'test:cargo test' 'lint:cargo clippy'
Options:
-j, --jobs <n> - Max concurrent jobs (default: CPU count)-f, --fail-fast - Stop all tasks on first failureFeatures:
f commit (alias: f c)The default flow commit: stages changes, runs Claude code review, generates commit message, commits, pushes, and syncs AI sessions to gitedit.dev.
f commit # Just commit with Claude review
f commit -m "note" # Add author note to commit message
Options:
-n, --no-push - Skip pushing after commit--sync - Run synchronously (don't delegate to hub)--context - Include AI session context in review (default: off)--dry - Show context without committing--codex - Use Codex instead of Claude for review--review-model <model> - Choose model (claude-opus, codex-high, codex-mini)-m, --message <msg> - Custom message to include-t, --tokens <n> - Max tokens for context (default: 1000)f commit-simple (hidden)Simple AI commit without code review. Just generates commit message and commits.
f commit-with-check (alias: f cc, hidden)Like commit but without syncing to gitedit.dev.
f commitsBrowse git commits with AI session metadata using fuzzy search.
Options:
-n, --limit <n> - Number of commits (default: 100)--all - Show all branchesf fixupFix common TOML syntax errors in flow.toml.
Options:
-n, --dry-run - Show fixes without applyingf psList running flow processes for current project.
Options:
--all - Show processes across all projectsf kill [task]Stop running flow processes.
Options:
--pid <pid> - Kill by PID--all - Kill all project processes-f, --force - Force kill (SIGKILL)--timeout <secs> - SIGKILL timeout (default: 5)f logs [task]View logs from running or recent tasks.
Options:
-f, --follow - Follow in real-time-n, --lines <n> - Lines to show (default: 50)--all - All projects-l, --list - List available logs-p, --project <name> - By project name-q, --quiet - Suppress headersf daemon (alias: f d)Manage background daemons defined in flow.toml.
Subcommands:
start <name> - Start a daemonstop <name> - Stop a daemonrestart <name> - Restart a daemonstatus - Show all daemon statuslist (alias: ls) - List available daemonsf aiManage AI coding sessions (Claude Code, Codex).
Subcommands:
list (alias: ls) - List all sessionsclaude [action] - Claude sessions onlycodex [action] - Codex sessions onlyresume [session] - Resume a sessionsave <name> - Bookmark current sessionnotes <session> - Open/create session notesremove <session> - Remove from trackinginit - Initialize .ai folderimport - Import existing sessionscopy [session] - Copy history to clipboardcontext [session] - Copy last exchange for context passingf sessions (alias: f ss)Fuzzy search AI sessions across all projects, copy context to clipboard.
Options:
-p, --provider <name> - Filter by provider (claude, codex, all)-c, --count <n> - Number of exchanges to copy-l, --list - Show without copying-f, --full - Full context, ignore checkpoints--summarize - Generate summaries for stale sessionsf agent (alias: f a)Invoke kode AI subagents.
Subcommands:
list (alias: ls) - List available agentsrun <agent> <prompt> - Run agent (codify, explore, general)f initScaffold a new flow.toml in current directory.
Options:
--path <path> - Output pathf startBootstrap project with .ai/ folder structure:
.ai/actions/ - Fixer scripts (tracked).ai/skills/ - Shared skills (tracked).ai/tools/ - Shared tools (tracked).ai/flox/ - Flox manifest (tracked).ai/docs/ - AI-generated docs (tracked).ai/agents.md - Agent instructions (tracked).ai/internal/ - Private data (gitignored)Also materializes .claude/, .codex/, .flox/ with symlinks.
f doctorVerify required tools and shell integrations (flox, lin, direnv).
f projectsList all registered projects (those with name in flow.toml).
f active [project]Show or set the active project (fallback for commands outside project dirs).
Options:
-c, --clear - Clear active projectf envSync project environment and manage env vars via 1focus.
Subcommands:
login - Authenticate with 1focuspull - Fetch env vars to .envpush - Push .env to 1focuslist (alias: ls) - List env varsset <KEY=VALUE> - Set a vardelete <keys...> - Delete varsstatus - Show auth statusOptions (for pull/push/list/set/delete):
-e, --environment <env> - Environment (dev, staging, production)f deployDeploy to various platforms.
Subcommands:
host (alias: h) - Deploy to Linux host via SSH
--remote-build - Build on remote instead of syncing artifacts--setup - Run setup script even if deployedcloudflare (alias: cf) - Deploy to Cloudflare Workers
--secrets - Also set secrets from env_file--dev - Run in dev modesetup - Interactive deploy setuprailway - Deploy to Railwaystatus - Show deployment statuslogs - View deployment logs
-f, --follow - Follow logs-n, --lines <n> - Lines to showrestart - Restart deployed servicestop - Stop deployed serviceshell - SSH into hostset-host <connection> - Configure host (user@host:port)show-host - Show host configurationhealth - Check deployment health
--url <url> - Custom URL--status <code> - Expected status (default: 200)f upstream (alias: f up)Manage upstream fork workflow.
Subcommands:
status - Show upstream configurationsetup - Set up upstream remote and tracking
-u, --upstream-url <url> - Upstream repo URL-b, --upstream-branch <branch> - Branch name (default: main)pull - Pull from upstream into local 'upstream' branch
-b, --branch <branch> - Also merge into this branchsync - Full sync: pull upstream, merge, push to origin
--no-push - Skip pushingf skillsManage Codex skills in .ai/skills/.
Subcommands:
list (alias: ls) - List skillsnew <name> - Create skill
-d, --description <desc> - Descriptionshow <name> - Show skill detailsedit <name> - Edit in editorremove <name> - Remove skillinstall <name> - Install from registrysearch [query] - Search registrysync - Sync flow.toml tasks as skillsf tools (alias: f t)Manage AI tools in .ai/tools/*.ts.
Subcommands:
list (alias: ls) - List toolsrun <name> [args...] - Run a toolnew <name> - Create tool
-d, --description <desc> - Description--ai - Use AI to generate implementationedit <name> - Edit in editorremove <name> - Remove toolf hubEnsure hub daemon is running, launch TUI for inspection.
Subcommands:
start - Start hub daemonstop - Stop hub daemonOptions:
--host <ip> - Hub host (default: 127.0.0.1)--port <port> - Hub port (default: 9050)--config <path> - Config path--no-ui - Skip TUIf serverStart HTTP server for log ingestion and queries.
Options:
--host <host> - Bind host (default: 127.0.0.1)--port <port> - Port (default: 9060)Subcommands:
foreground - Run in foregroundstop - Stop background serverf docsManage auto-generated documentation in .ai/docs/.
Subcommands:
list (alias: ls) - List documentation filesstatus - Show recent commits and what may need documentingsync - Update sync marker after docs are updated
-n, --commits <n> - Commits to analyze (default: 10)--dry - Dry runedit <name> - Open doc file in editorThe docs are updated by AI assistants as part of the commit flow. When running f commitWithCheckWithGitedit, the AI reviews changes and updates:
commands.md - CLI command referencechangelog.md - Feature changelogarchitecture.md - Project structuref notify <action>Send proposal notification to Lin for approval (human-in-the-loop).
Options:
-t, --title <title> - Proposal title-c, --context <ctx> - Context/description-e, --expires <secs> - Expiration (default: 300)