Skip to content

Guides

Work with an agent

Ask an agent to make a change on a branch. It shows its work, asks before it acts, and you commit what you're happy with.

Before you start

Set up an agent first: Claude Code, Codex, Gemini CLI, Grok or Pi, installed and signed in. Filament can install it from the "AI" tab in Settings. It can sign you in to all of them but Pi, which signs in with its own command. Each one's maker also shows how: Claude Code, Codex, Gemini CLI, Grok and Pi.

Setting up agents

The project has to be mounted on this computer, because the agent works on its files there. The agent's list of projects shows only mounted ones.

Your first project

Give the agent its own branch, so its work stays apart until you're happy with it.

Branch and merge

Asking for a change

A chat with an agent is called a session.

  1. Click the "+" next to "Agents" in the app's sidebar, or press ⌘N (Ctrl+N on Windows and Linux).
  2. Above the message box, after "New session in", choose the project from the first list.
  3. After "on", choose the agent's branch. The list shows the project's open branches.
  4. Describe the change you want, in plain words.
  5. Send it.

To start the agent on a new branch instead, tick "New branch" after the branch list. The new branch is made from the one you chose, and stays private until you share it.

Say what "done" looks like. For example: "Make the sky warmer in all six skybox images, and keep the file names."

Approving its steps

When the agent wants to do something, it asks. Read what it wants to do, then choose "No, cancel", "Yes" or "Always".

"Always" opens a menu. Choose "This function" for that tool, or "All … tools" for every tool from the same source. It stops asking about them for the rest of this chat. To undo it, click the chat's "…" button ("Chat settings"), then "Revoke all" under "Remembered approvals".

Checking its work

The files the agent changed appear above the message box. To see them in "Pending", like your own changes, check out the agent's branch first.

  1. If you're not on the agent's branch, right-click it in "Branches", in the project's sidebar.
  2. Choose "Checkout", to make it the branch your project folder shows.
  3. Click "Pending" in the project's sidebar.
  4. Look through each changed file.
  5. Right-click anything you don't want and choose "Discard change". This removes the agent's edit to that file. For 10 seconds you can click "Undo" to bring it back.
  6. Tick the files you want to keep, then commit them. Committing shows how.
The agent explains its change in the chat, next to the file it changed.

When the work is ready, merge its branch into main.

Branch and merge

Compare versions