Flint

Flint 1.14.6: files it can read back, and headless runs that finish

Released .

Flint is an open source AI agent you run in a terminal to inspect files, execute commands, and work through tasks. Release 1.14.6 fixes two problems a new user would notice immediately: Flint can now find and read back the files it just wrote, and an unattended run finishes on time with an informative exit code instead of waiting for a person who is not there.

A file it writes is a file it can find

Before this release, Flint could write data.csv into a folder for that run, then look for it in the folder where Flint was installed. Its file-reading, searching, file-listing and terminal commands looked in the wrong place. The file existed, but Flint reported "not found" and had to search for it.

Those tools and commands now use the folder Flint was started from. When you run a task without watching it and name a working folder, Flint still uses the folder you named. Its write_file tool also reports the complete path of the new file, so you can see where it went.

A run with nobody watching

You can run one task without answering prompts using flint --headless --task "...". In 1.14.6, --time-limit stops that run when its time is up and records why. --session <id> resumes an earlier run while a lock prevents two processes from using the same session at once. --check tests the runtime before you depend on it. The result record names the model, why the run stopped, how long it took, how many tool calls it made and how many calls were refused.

The exit code is now 0 only when the task ran to completion, and 2 when stopped from outside by a time limit or a signal. Previously, a run stopped halfway could still report 0.

Starting Flint without a terminal could also leave it waiting silently. Its first-run API key setup or choice of how carefully to handle actions waited for a person who was not there. Flint now says in one line what is missing, and empty console input ends the run. If a command needs a person's approval, Flint refuses it immediately, tells the agent why and continues rather than leaving a prompt open.

Start-up failures that name the fix

Instead of a long error dump or just "fetch failed", start-up failures now give a line saying what to do. If saved session data is damaged, --last skips it and --session names it. If the folder chosen for Flint's data is actually a file, Flint names the setting to fix. If the model provider cannot be reached, Flint names it and the cause. If it cannot read the file holding your API key, it reports that once instead of saying there is no key.

Smaller fixes

In long conversations, Flint shortens older material to keep the amount sent to the model under control. Its old size check counted message text but not the instructions and tool descriptions sent with every request, so that shortening started too late. It now uses the size reported by the model provider for the previous request.

--data-dir previously had no effect unless FLINT_DATA_DIR was also set: memory, the task database and session logs still went to the home folder. Flint now reads the flag before choosing those paths. A working folder given as a path relative to the current folder also works when Flint starts from a subfolder.

A model may give a tool a number, list or object written as text. Flint now accepts it when that text converts to exactly the kind of value the tool requires. A tool called by another accepted name is now handled as the same tool throughout Flint. The safety check no longer blocks a Git command merely because stash appears later in it: git add src/stash.js works, while the check still blocks git stash. Flint also removes temporary files it created when it exits, including after a signal.

Flint allows more steps in one turn, but now caps what that turn can spend; AGENT_MAX_COST changes that ceiling. When no person is present, as in a run without a terminal or an agent started by a task, Flint can use tools supplied by its configured MCP servers without asking. These are connections that give Flint additional tools. A call that its safety check requires a person to approve is still refused.

Why a newcomer should care

If you run quick tasks directly in your terminal, little changes. The real difference is dependability at two points: files Flint writes are files it can read back in the same turn, and unattended tasks finish with a recorded stop reason instead of hanging indefinitely. You should still inspect Flint's output and verify its changes.

Get started

Flint is free and open source. It runs in a terminal and needs Node.js 22.12 or newer. Install it with:

npm install -g flint-agent

Then run flint. The first setup asks you to choose a model provider and enter an API key. For installation and a first task, see Install Flint.