Flint

What an AI coding agent is and how to start using one

If you have used autocomplete and wondered what people mean by "AI agent," the difference is the loop.

Short answer: An AI coding agent takes a task you describe in plain language, decides which tools to use (read a file, run a command, search the codebase), uses them, reads the results, and keeps going until the task is done or it needs to ask you something. Autocomplete predicts the next characters in the current file; an agent completes a sequence of actions across files, the terminal, and the web. The gap between the two is not style or model size: it is how many steps the program will take before it stops.

How an AI coding agent works

You type a task in the terminal in plain language. The agent sends that task to a language model together with descriptions of the tools it has: read a file, write a file, edit a file, search the codebase, run a shell command, fetch a web page, and others.

The model picks the first tool and the arguments for it. The agent runs the tool and sends the result back. The model then decides what happens next: call another tool, ask you a question, or report that the work is done. That cycle repeats until the task is finished or the model needs input from you.

The model and the agent are separate choices. Flint works with OpenRouter, OpenAI, Anthropic, Google Gemini, Groq, Together, and a local Ollama, and you can switch provider or model in the middle of a conversation with /provider and /model. The loop is the same whichever one you pick.

A worked example

Task typed into the terminal: "Find every place in this project that imports the old logger module and update it to the new one."

The agent searches the codebase for the old import pattern. It reads each matching file in full before touching anything. It edits each file. Then it runs the test suite and reads the output. When the turn ends, a receipt prints: the tools used, the files changed, tokens in and out, the time, and the cost.

What it stops for depends on your care level. At normal care level, file edits and ordinary commands such as the test run go ahead. It asks before a destructive command, before deleting a file, and before a one-way operation such as pushing to a remote repository. At safe level it asks before every file change and every command.

If the result is wrong, /rewind undoes the file changes made in that session.

Steps to try it

  1. Confirm you have Node.js 22.12 or newer. No Python, no Docker, and no background service is needed.
  2. Install the package: npm install -g flint-agent
  3. Run flint. The first run asks you to pick a model provider, enter an API key, and choose a care level.
  4. Type a task in plain language and press Enter.
  5. Read each approval question before you answer it. The receipt after each turn shows what was done and what it cost.
  6. Type /model free to see the free models on OpenRouter that can call tools, with speed and uptime from OpenRouter's public stats. Free mode is slower and the models are weaker than a paid frontier model, but it is a real starting point.

When an agent fits and when it does not

It fits when:

  • The task spans multiple files or needs several steps in sequence.
  • You want to describe what you need in plain language and let the program find the details.
  • You are willing to read what the agent proposes before approving it.
  • You have API access to a model, or you want to start with free models.

It does not fit when:

  • You want inline suggestions as you type in an editor. This is a task runner, not AI pair programming inside a file: it does not sit in your editor and complete lines.
  • You need it to drive a graphical interface without extra setup. The terminal agent has no built-in desktop or browser tools. Those come from an MCP server, which is a separate configuration step.
  • You are on macOS and need a platform the project tests on. Flint is tested on Windows and Linux.
  • You have no hardware for a local model and no budget for API calls. Free models are available, but they are rate-limited and weaker than paid options.
Warning: Read what the agent asks before you answer. The care level guards reduce risk; they do not make it safe to approve every prompt without reading it.

Frequently asked questions

Is an AI coding agent the same as autocomplete?

No. Autocomplete predicts the next characters in the current file and stops. An agent takes a full task, calls tools, reads the results, and loops until the work is done across as many files and commands as the task needs.

Does my code get sent to someone else?

Unless you use a local model through Ollama, your request goes from your machine to the model provider you chose. Flint has no server of its own in the path. What the provider does with the data is under that provider's terms, not Flint's.

Do I need to pay to use it?

Flint is free and open source under the MIT licence. You do need API access to a model. Free models are available on OpenRouter; type /model free in Flint to see which ones can call tools, with speed and uptime from OpenRouter's public stats. Free mode is real, but the models are weaker and often rate-limited.

What if the agent edits a file and the result is wrong?

Type /rewind. It undoes the file changes the agent made in the current session. Sessions are saved as you go, so you can also pick up where you left off with /resume.

How do I know if a model is good enough for agent work?

Type /model test. Flint runs a set of small agent tasks with checked answers on the model you have selected and saves the score. Run it on any model you are considering to compare before committing.

Where to go next

Install Flint, point it at a model you already have access to, and run a first real task on your own code.

Set up Flint