Changelog
All notable changes to Flint are written here. The format follows Keep a Changelog, and versions follow Semantic Versioning.
Each version is a ## [x.y.z] - YYYY-MM-DD heading: /update reads these headings to show what changed between your version and the newest one.
[1.16.0] - 2026-10-28
Added
--toolsand--disallowedTools(stdio and headless) say which tools the agent has, with Claude Code's meaning:--toolsnames the only ones,--disallowedToolstakes some away. A tool left out is not offered to the model,tool_searchdoes not find it, and a call to it is refused. Names may be Flint's, Claude Code's (Read,Bash,WebSearch) or its MCP form (mcp__messaging,mcp__messaging__send).--allowedToolsstays accepted and ignored: in Claude Code it means "run without asking". TheFLINT_TOOL_ALLOWLISTvariable now also holds fortool_searchand calls.
Changed
FLINT.mdis the owner's instructions: who the agent is and how it works. Flint reads everyFLINT.mdfrom the work folder up to the root, outermost first, in every mode, and they take precedence over its defaults. Where there is noFLINT.md, theCLAUDE.mdfiles are read the same way (now in the console too); a folder with both gives onlyFLINT.md.- "You are FLINT" is said only when there are no instructions (no
FLINT.md, noCLAUDE.md, no--system-prompt). An agent a host gives a name keeps that name;system.mdsays how to work, not who the agent is. - The agent's own notes go to
.flint/notes.mdin the work folder, which it reads and writes itself. They reach the prompt as untrusted context, scanned for injected instructions, asFLINT.mdused to.
Removed
--sn-stdio-ephemeral-key-check. A host checks the Flint version instead.
[1.15.0] - 2026-10-19
Added
- More providers in the list by default: Cerebras, Mistral, DeepInfra, Fireworks, Hugging Face, SambaNova, Novita and Nebius (all OpenAI format). Picking one that has no key asks for the key right there, in the secret input, and then lists its models;
/provider <id>asks the same way. - NVIDIA (build.nvidia.com) as a provider:
/key nvidia, then/provider nvidia. OpenAI format, the model list from NVIDIA's/models, default modelz-ai/glm-5.3. FLINT_BASE_URLsends the providerFLINT_PROVIDERnames (OpenRouter when unset) to another address with the same API, such as a gateway that holds the real key and passes the calls on. The key Flint sends is then whatever that address expects. The model list, prices, the free list and the balance check go to the same address, so no call goes around it.
Changed
- The status row names the provider before the model (
openrouter · stealth/space-bunny-alpha). - The
/modeland/providerlists show up to 15 choices at once instead of 4, as far as the window is tall enough. - The OpenRouter model list says what each model can do: Tools (calls tools or not) and Can (
imgreads images,thinkreasons,jsonanswers to a schema). The line under the list gives the marked model's speed now (tokens a second, time to the first token, uptime, from OpenRouter, asked when the marker stops on it) and the start of its description. /modelwith no argument opens the model list of the provider in use, the marker on the current model, below what it says about that model.- Typing in an open
/model,/provideror/resumelist narrows it: every word typed must be in the name (glm 5). Backspace edits, Esc clears the search, a second Esc goes back.
Fixed
- After Ctrl+S sorted the model list, Enter took the model at that position in the unsorted list, not the one the marker was on.
- A streamed answer reports its usage with every OpenAI-format provider. Flint did not ask for it (
stream_options.include_usage), and only OpenRouter sends it unasked: on OpenAI, NVIDIA and others a turn counted zero tokens, so the cost guard saw nothing and a gateway metering the calls recorded none.
[1.14.11] - 2026-10-11
Added
- A fallback model. Name a second model in
FLINT_FALLBACK_MODELand a turn whose model becomes unavailable carries on with it instead of stopping. Unavailable means the retries are used up: the provider sent no answer, the model answered with nothing, the calls failed, a rate limit did not lift, or the provider does not serve the model. A refused key, an empty account, a budget ceiling and a denied command never switch the model. The switch is said on screen with both names, it holds to the end of that turn, and the next turn starts on the main model again. If the fallback fails too, the turn stops and names both. Its calls are priced by its own rate card. The headless record, the stdioresultline and the API reply carryfallback({ from, to, reason }ornull), and stdio writes amodel_fallbackline at the switch. Not set, nothing changes: there is no default and no hidden substitution.
Fixed
- A headless run reported success for a turn that had failed. When the model answered with nothing three times, went silent, was refused by the provider or was not found, the turn stopped and said so, but the result record still read
stop_reason: "done"and the process exited 0. A script or a CI step took it for a finished task. The record now carries the reason the turn ended with, and the exit code is 0 only for"done": 1 when the turn did not get anywhere, 2 when a ceiling cut it. See docs/headless-mode.md.
[1.14.10] - 2026-10-11
Fixed
- A picture in the conversation made a working model look silent. A request that carried an image was sent without streaming, and Flint, which drops a call that shows no sign of an answer for 90 seconds, saw nothing from such a call until the whole answer had arrived: any answer longer than that was dropped and asked for again, and after three in a row the turn stopped with "the provider sent no answer". An agent that had taken a screenshot lost its turn this way. Requests with images are now streamed like the rest.
- An answer received without streaming was stored with the model's reasoning attached. It was sent back to the provider on every later call and counted by none of the context budgets. Both kinds of answer are now stored alike.
[1.14.9] - 2026-10-11
Added
spawn_agenttakescare: how careful the child is,safe,normalorpermissive. Left out, the child gets its parent's level. A child may be stricter than its parent and never looser; asking for looser is refused and nothing is started.FLINT_CARE_LEVELsets the level of any Flint from outside, and a value that is not a level stops the start.
Fixed
- Reading two images in one step broke the conversation on Gemini. When the model made several tool calls at once and one of them returned an image, the image was put into the history between the tool results, and Gemini refused the request: "the number of function response parts is equal to the number of function call parts". The history is kept, so every later turn of that session failed the same way. All calls of a step are now answered first and the images follow; images asked for together are shown together. A session that already hit this stays broken: start a new one.
- A child agent opened in a visible window stopped on "How careful should Flint be?" and waited for a person, with its task already sent. A child keeps its data in a folder of its own, where nobody had answered the question. It now starts at the level its parent hands it and does not ask.
- Several Flints started by one user ran each other's messages. They share one queue in
~/.flint/tasks.db, and each took whatever was waiting: a task sent over the API to one Flint was run by another, with the API's automatic approval, in the middle of an unrelated conversation, and a line typed into one console was answered in a different window. Starting a Flint also cancelled the messages the others had not finished. An instance now sees, takes, recovers and expires only the messages of its own session, andGET /message/<id>answers 404 for another session's id. A reminder is still the operator's and not a session's: the first instance to take it runs it, once. A message nobody took within a day is expired. - A model that was working was dropped as "the provider sent no answer for 90s". The clock on a model call waited for the first character of text, and a long file written in one tool call, or a long stretch of reasoning, sends none: the call was cut at 90 seconds, retried, cut again, and after three times the turn stopped, with the work thrown away and paid for each time. Reasoning and a tool call being written now count as an answer. The footer says
reasoningorcomposingwhile they arrive, with the tokens counted, where it used to saythinkingand nothing else. A call on which nothing at all arrives is still dropped after 90 seconds.
[1.14.8] - 2026-10-10
Added
flint --updateinstalls the newest version and exits, without the console and without asking anything. Exit code 0 when it updated or was already the newest, 1 otherwise.
Fixed
- Updating an npm install deleted its sessions. Installed with
npm install -ginto a folder you own (nvm, a per-user prefix, Windows), Flint kept its sessions, saved permissions and file memory inside its own package folder, and npm replaces that folder on every update,/updateincluded. They now live in~/.flint, which an update does not touch. A git checkout keeps them next to itself as before. /updateon an install made by root (for examplesudo npm install -g) tried the install as the current user and printed the first line of npm's permission error. It now attempts nothing, says the install belongs to another user, and prints the command to run./updateon a copy that was installed neither with git nor with npm advised cloning the repository or installing from npm, which would have put a second Flint beside the first. It now says the copy is updated the way it was put there.
[1.14.7] - 2026-10-09
Fixed
- Flint installed where the user cannot write (a system install owned by root) did not start: "EACCES: permission denied, mkdir <install>/sessions", unless you already knew to set
FLINT_DATA_DIR. Such an install now keeps its sessions, permissions, file memory and child-agent sessions in~/.flint. An install you can write (a checkout, a per-user npm prefix) keeps them next to itself as before, andFLINT_DATA_DIR/--data-dirstill wins over both. - A data folder that cannot be written is reported once, before anything else starts: one message with the folder and the setting that moves it, exit code 78. It used to surface from whichever part wrote first, as a security error on one machine and a stack trace on another.
[1.14.6] - 2026-10-08
Fixed
- The agent can read back what it just wrote. Relative paths went to a per-session workspace for writing, while reading, searching, listing and shell commands used Flint's own install folder, so a file written as
data.csvwas "not found" until the agent searched for it. Every file tool and shell command now uses one folder, the one Flint was started from (--cwdstill wins in a headless run), andwrite_fileanswers with the full path it wrote. - Long sessions stayed far above the compression threshold. The check measured the text of the messages alone and left out the system prompt and the tool schemas, about 18K tokens on every call. It now counts the size the provider reports for the previous call. One 1500-call session had spent half its calls above 128K tokens.
--data-dirdid nothing unlessFLINT_DATA_DIRwas also set: memory, the task database and session logs still went to the home folder. The flag is now read before any module chooses a path, and a relative path is made absolute once.- A relative
--cwdfailed with "Cannot chdir" when Flint was started from a subfolder. - A session lock was never released on a clean exit, so a reused process id gave a false "session already in use", and two processes could take the same stale lock. A corrupt session file is no longer replaced by an empty one: it is kept as
<id>.json.corruptand Flint says where. - Starting without a terminal no longer hangs.
flint --helpprinted nothing and waited; the first-run key wizard and the careful-mode menu waited for a key that could not come. Without a terminal Flint now says in one line what is missing, and an empty console input ends the run.flint --helpprints usage. - Clearer start-up failures instead of a stack trace or "fetch failed": a corrupt session is skipped by
--lastand named by--session; a data folder that is a file names the setting that fixes it; an unreachable provider names itself and the cause; an unreadablekeys.encis reported once rather than looking like "no key". - A model that returns a number, a list or an object as a string for an MCP tool (
"100","[\"a\"]") is no longer rejected by validation; the string is converted when it parses to exactly the type the tool's schema asks for. - "Claimed done but the repository shows no changes" appeared after turns that only read or searched. Only calls that can change the workspace now count, and
git statusis not run when there were none. git stashwas blocked whenever the wordstashappeared later in a command, sogit add src/stash.jsandgit branch stash-fixwere refused. Only the real subcommand is blocked, after git's global options.- A tool called by a synonym (
bashforrun_command) was treated by the permission, display and swap code as an unknown tool. The real name is used everywhere after it is resolved, and the first use is announced once per session. - The live cost counter lost the "estimated" mark and the call count when a provider returned no usage.
- Fact extraction used a fixed model ID that no longer exists on OpenRouter, so it failed silently on every message. It follows the active model and warns once if it cannot run.
- A provider answering 404 now says which model and provider, and what to do. The first-run wizard checks that the default model exists in the provider's list, and for Ollama that it has been pulled (
ollama pull <model>). - The model check could score a model 0 of 6 because its subprocess did not see the stored key; such an all-failed result is no longer saved. Its tests no longer delete the real
~/.flint/model-checks.json. - The window title changed width on every tick, which made the taskbar button jump. It is now always the same width:
<frame> Flint agent - <task>, with the same gear and spark frames. /memoryand other state written under a worker's home on Linux no longer froze its path at import time, and the approvals Flint remembers survive a settings save.- Under a stdio host the provider key the host passes wins over a key saved by an earlier run and is not written to disk, and MCP servers started by Flint no longer inherit the model provider keys.
- With a data directory set, file memory (
memories.jsonl,MEMORY.md) is kept there instead of in the install folder, andmemory_getwith a validlastno longer fails because of an invalid id passed beside it. - The headless exit code is preserved when a command ends with a background process, and
&background children no longer outlive a headless run (an interactive session's&processes are left alone). - A headless run now exits
0only when the task ran to its end and2when it was stopped from outside (the time limit, SIGTERM or SIGINT); a run killed half way used to exit0.--time-limitalways stops the run, a signal that arrives before the first turn ends it, and the result record counts cost and tokens for the whole run, including an auto-verify second pass. --checkruns the command the model returns through the normal permission check instead of executing it directly.- A missing instructions file or a malformed
.mcp.jsonat a headless start is one clear line and exit code 2, not a stack trace. - A
--headlessrun could wait ten minutes for an answer nobody was there to give. A command the guard asks about (for examplerm -ron a scratch directory) held its approval prompt open for the full 600 seconds before it was refused. It is now refused at once, the agent is told why, and the run goes on. The security log records it asDENIED_UNATTENDED. - Started on a terminal, as under
sudo, a--headlessrun on a fresh install showed the first-run question "How careful should Flint be?" and waited for a key forever. A headless run no longer shows it and records no answer on the operator's behalf. - With
--cwd, the agent was told it was working in the directory Flint is installed in, and spent its first steps looking for the project. The system message now names the--cwddirectory from the first request. - A
--headlessrun with no API key configured opened the interactive key wizard. It now stops with a message that says what is missing.
Added
- Headless runs:
--time-limit(stops, reportsstop_reason: "time", exit code 2),--session <id>to resume with a per-session lock,--checkto probe the runtime, and a result record with model, stop reason, duration, tool and denied-call counts and a token breakdown (documented indocs/headless-mode.md). A headless run starts no HTTP server, keeps stdout and stderr clean, and takes the API key from the environment before storage. --data-dirand theFLINT_DATA_DIRsetting choose where Flint keeps its state, split into a home part and an install part.- Stdio mode emits a machine-readable event stream and accepts launch identity (instructions and MCP config) from the host.
- A stdio host can steer a running turn: a
control_requestwith subtypesteeris answeredaccepted, injected before the next model call and confirmed with asteer_statusevent (delivered, ortoo_latewhen the turn ended first). Visible text is streamed astext_deltaevents, with thinking left out. - A response that stopped at the step limit says so (
truncated_at) in the API, bus, stdio and headless output. - Temporary files Flint creates (clipboard pastes, the agent
.bat, model-check folders) are removed on exit and on SIGTERM/SIGINT. api.logrecords cached and cache-write tokens on each Usage line.- A command-path check: shell commands that touch a path outside the allowed area are refused, and file tools refuse Git-Bash style
/c/...paths on Windows (they used to land in a folder namedC:\c). - A turn that ran tools but left the repository unchanged is flagged in the footer (claim-versus-repository check).
- API messages can ask the agent to keep going on its own (
apiSelfContinue, opt-in).
Changed
- The default step limit per turn rises from 150 to 500, and a turn now has a default cost ceiling of $5 so that a long turn is not unmetered. Set
AGENT_MAX_COSTto change it;0turns it off. - The system prompt says only what the temporary-file and relative-path handling does.
- A run with no operator (headless, and agents woken by a task or a letter) runs the tools of its configured MCP servers without asking, instead of refusing every call with "approval required, no operator attached". Calls a guard forces to be confirmed (a dangerous command, a secret file, a plugin) and tools the operator set to confirm or deny by rule are still refused. Set
FLINT_HEADLESS_MCP=askto keep the old refusal.
[1.14.5] - 2026-10-04
Fixed
- Deep in a long session, a file or page the agent had just read reached the model cut to its first kilobyte and a list of headings. The agent could report it as read and describe parts it had not seen. A new result now arrives whole unless it alone is bigger than the whole budget for tool results (32, 64 or 256 KB by spend level), and room for it is made by moving older results to swap.
- Small leftovers of earlier results no longer use up that budget. In a session with hundreds of them every new result used to be moved out one call after it arrived.
- Past the compression threshold (128k tokens at spend level normal) a result read one turn earlier was cut to its first eight and last three lines, and older ones to one line, with nothing to read them back from. With swap on, which is the default, tool results are no longer cut: a result is whole, or it is in swap and
swap_readreturns it.
Changed
- Old turns of a long conversation move to swap from the compression threshold (half the window, at most 128k at level normal) instead of from 300k. A long session now stays near that size instead of growing to it.
FLINT_SWAP_CONV_HIGHstill sets the point by hand. - Requests to OpenRouter name the app as Flint Agent, with
https://flintagent.devas its address.
Added
- The app icon, in
assets/icon: the SVG and the PNG and ICO sizes built from it byscripts/build-icons.mjs.
[1.14.4] - 2026-10-03
Changed
- An approval prompt for an MCP tool offers
[s]: always, for every tool of that server. Before, "always" covered one tool and each of a server's other tools asked again. A rule for a single tool still wins. /allow-alland/deny-allare kept by a restart of the same session (/restart,/update, a restart over the API). They are still never written to disk, and a new session starts without them./reset-permissionsalso turns/allow-alland/deny-alloff.
Added
- MCP servers with headers in the console:
~/.flint/mcp.json, in the commonmcpServersformat, is read at start besideMCP_SERVERS. A header value may name a secret as${NAME}; one that is not found stops that one server with a message, and no empty header is sent. Before, a server that wanted a token inAuthorizationcould be configured only in stdio mode. /mcp-secret <NAME>stores such a secret in the encrypted key store, typed into a masked box.${NAME}is looked up there first and in the environment second.
Fixed
- In a table,
**bold**and`code`are shown as bold and code instead of with their markers, and column widths are measured on what is visible. - A table cell too long for its column is cut to the column's width. It used to come out two characters wider, which pushed the row's closing bar onto the next line.
[1.14.3] - 2026-10-03
Security
- A paired program's token is accepted for a day, then the program pairs again.
FLINT_PAIRING_TTL_HOURSsets another lifetime and0keeps pairings for good. Pairings made earlier expire by the same rule, and/pairedshows when each one ends.
[1.14.2] - 2026-10-02
Fixed
- Child agents opened in their own window (
spawn_agentwithvisible) stay reachable. The process that opens the window exits at once, and Flint took that for the agent's exit: it reported "exited", forgot the agent, andask_agentanswered "has stopped", so every question started a new agent. Whether such an agent is alive is now decided by its heartbeat, and Esc stops the agent itself rather than the long-gone window launcher. - The API key is no longer written in plain text to a temporary
.batfile when a visible child agent starts on Windows; it is passed in the environment. - A piece of the "loading..." splash no longer stays on the top line of the console now and then: Flint waits until the splash has stopped before it clears the screen.
Changed
- A child agent lives as long as its parent instead of stopping after 60 seconds idle, so you can talk to it across several questions. It still stops about a minute after its parent is gone.
AGENT_CHILD_IDLE_TIMEOUTturns an idle limit back on.
[1.14.1] - 2026-10-02
Fixed
- Free mode no longer crashes the console. After
/model freeor/model free autochose a model, Flint stopped with React error #185, and then on every start, because the chosen models are remembered. The status line built its free-request counter as a new object on each check, so the screen redrew without end. binin package.json written the way npm expects, so publishing no longer warns that it was corrected.
[1.14.0] - 2026-10-02
Added
- First public release. Flint is an AI agent for the terminal: it reads and edits files, runs commands, searches and fetches the web, plans and tracks tasks, starts child agents and remembers what it learned across sessions.
- Seven providers out of the box (OpenRouter, OpenAI, Anthropic, Gemini, Groq, Together, local Ollama), switched at runtime with
/providerand/model; more can be added in~/.flint/providers.json. API keys are stored encrypted. - Free mode (
/model free) lists OpenRouter's free models that can call tools, and/model testscores a model on small checked tasks. - Care levels (
/careful) decide what asks before it runs; spend levels (/spend) decide how much context and how many tools a turn uses. - Context swap keeps long sessions inside the model's window without losing old tool results.
- MCP servers over HTTP, SSE and stdio, with
tool_searchwhen they bring more tools than a turn should carry. - HTTP API on 127.0.0.1 with a bearer token, headless runs (
--headless --task) and a stream-json stdio mode for host programs. /updateinstalls a newer version and continues the same session.
Security
- The HTTP API lets a program in only after pairing with a PIN shown in the console. Pairings survive restarts (only a hash is stored) and are listed and revoked with
/paired. The token file~/.flint/api-token.jsonis used only withFLINT_API_TOKEN_FILE=1. - At start, messages an earlier run left in the queue for another session, or older than 10 minutes, are not run.
- Commands refused at every level now include the Windows ways to wipe a disk (
Format-Volume,Clear-Disk,diskpart,rd /s /qorRemove-Item -Recurseon a drive root), and quoting a path no longer gets a refused command through (rm -rf "/"). - Writes into the operating system's folders (
C:Windows,Program Files,/etc,/usrand the like) are refused at every level, also when Flint runs as administrator.
Changed
- The console starts with the FLiNT mark (titanium letters, a yellow spark over the i) instead of the old mascot, and the window title alternates a gear and a spark while Flint works.
- Flint needs Node.js 22.12 or newer. Its SQLite binding no longer builds for Node 20, which reached end of life in April 2026.
- The HTTP API and everything that calls it use
127.0.0.1. On Node 22localhostresolves to::1first, where nothing listens, so a parent could not reach its child agents.