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
- default (
build): file edits and shell commands ask for approval. On a terminal each one is confirmed; without one they are rejected and the agent is told to continue without them. --plan: read-only tools only; the agent researches and writes a plan.--auto: edits and commands run without asking.
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 sessionsConstants
const command
Run one fino code turn against the current directory.