code

js/commands/code.ts

fino:commands/code — the fino code coding agent.

fino code "<prompt>" runs one turn of the Fino coding agent against the current directory and streams the answer. The agent reads, searches, and edits files under the project root, runs commands in the sandboxed shell, and fans work out to sub-agents; a turn ends only once the sub-agents it started have been reviewed.

Conversations persist in .fino/code/sessions.db under the project root. --continue resumes the most recent session, --thread <id> a specific one, and fino code sessions lists them. Continuing first finishes anything the previous process left behind: a run interrupted mid-step, a pending approval, or sub-agents still awaiting review.

Modes

The model comes from --model/--provider, then FINO_CODE_MODEL, with credentials from ANTHROPIC_API_KEY, OPENAI_API_KEY, or OPENAI_BASE_URL for an OpenAI-compatible server.

fino code "why does the h2 test time out?"
fino code --auto --continue "apply the fix and run the tests"
fino code sessions

Constants

const command

Run one fino code turn against the current directory.