Concepts
Changes and commits
You edit files, Filament lists them as pending changes, and a commit saves them into the project's history.
Pending changes
As soon as you change a file, it appears under "Pending" in the app. These are your pending changes: edits you haven't committed yet. Only you see them until you commit.
Your pending changes follow you between your computers. Start on your desk machine and pick up on your laptop.
Choosing files
Only the files you tick in "Pending" go into the commit. The others stay pending for later.
Committing
A commit saves a snapshot of the whole project: the files you ticked as they are now, and every other file as it was. It also records who made it, when, and your commit message saying why.
- Tick the files you want in "Pending".
- Type what you changed, and why, in "Commit message".
- Click "Commit".
History on a branch is a straight line of commits, one after another. A merge keeps that line straight, and Filament picks how. The target is the branch it merges into. If the branch already has everything new on the target, Filament adds its commits as they are. Otherwise it adds one commit that combines the two, called a merge commit. The branches record what was merged from where.
Writing with AI
With an AI tool set up for agents, the "Commit message" box can write the message for you. It shows a sparkles button in its top-right corner. Without an AI tool, there is no sparkles button, and Tab moves on to the next control.
- Tick the files you want in "Pending".
- Click the sparkles, or click into the empty box and press Tab.
- Read the message, and change anything you want.
- Click "Commit".
Your default AI tool writes it: the one marked "Default" on the "AI" tab in Settings. It writes from the files you ticked. It uses the tool's smallest and fastest model, when the tool offers a choice. The message appears as it is written.
The sparkles turn orange when Filament knows it can't write a message. For example, the project's folder isn't mounted, or the last try failed. Point at them to see why. You can still click them to try again.
While it writes, the sparkles button turns into a spinning icon. Press Esc, or click the spinning icon, to stop. What it has written so far stays in the box. Clicking the sparkles replaces any text already in the box.
The commit box in the tray window works the same way: the sparkles, Tab and Esc. In the tray, Esc closes the window when nothing is being written.
How versions are stored
Every commit points to a snapshot: the whole project at that moment, every file at one exact version.
When you change a few files, only those get new stored versions. Every unchanged file points to the version already stored.
Filament also gives each file and folder a permanent identity, separate from its contents. Edit a file as often as you like: it's still the same file, with a new version each time.
Reworking
Some actions make a new version of a commit. For example, updating a branch moves its commits to after the target's newest ones. A change, here, is one piece of work, kept as one commit through all its versions. Filament knows each new version is still the same change. Each one raises its "Revision" number by one. Click a commit in "Commits" to see its details. They show its "Change ID" and "Revision", so you can tell when a commit is a new version of the same change.
Catching up
Someone may commit to your branch while you work. Your pending changes stay as they are until you commit. Then Filament puts your commit after theirs.
If your changes clash with theirs, nothing is lost: your commit moves to a new branch, named after yours with "-local" at the end.