Fred, by FileFreak
Fred is a coding agent that runs on a model on your own computer. This extension
puts Fred in VS Code: each conversation in a tab among your editors, and the
project's conversations and the model in the sidebar. It is the same Fred as
filefreak fred in a terminal, with the same tools, modes, sessions and
commands. Each change it asks about opens in VS Code's own diff view, where you
accept or refuse it.
What you need
- FileFreak's CLI 0.38.0 or later, signed in: install it from
filefreak.io/cli, then run
filefreak login. Fred
runs inside it, as filefreak fred serve, and the sidebar asks it for the
project's conversations and the model's state.
- A model on your computer.
filefreak fred models lists the models that fit
this computer. Fred starts the first that fits as it opens, fetching it the
first time; fred.model names another. A model runs under Podman or Docker.
If you run llama.cpp's llama-server yourself, set FILEFREAK_FRED_MODEL_URL
to its address where VS Code is started, and Fred talks to it instead.
Using it
- Open Fred in the activity bar. The sidebar lists the conversations of
the folder you have open, the newest first, with a dot by those open in a
tab. Click one to take it up again in a tab, or to bring its tab to the
front. New conversation, or + on the sidebar's or a tab's title bar,
begins a new one in a tab of its own, beside the file you are working on.
Fred's icon on a file's title bar does the same. Open as many as you like:
they share the one model, and a tab open when the window is reloaded takes
up its conversation again. Each tab is named by what its conversation
began with.
- At the foot of the sidebar is the model running on your computer: its name,
its context, when it stops, and what the computer is using (the processor,
the memory and the GPU), read every few seconds while the sidebar is in
sight.
- Manage models, beneath it, or the layers icon on the sidebar's title
bar, opens the Models tab: every model Fred has, those on this computer
first, with what the computer and the model running are using. Fetch
fetches one, showing how far it has come; Cancel stops a fetch, which
carries on from there the next time. Start starts one, fetching it first
if it is not here. One model runs at a time, so starting one stops the one
running, and the conversations open in the window go on with the new one;
if
fred.model names another, it is set to this one. You are asked before
any of that. Stop stops the model, and Remove takes one off the
computer to free its space. Those too big for this computer say how much
they need.
- Say what you want done in the box at the foot of the tab.
@path attaches a
file of the project, and so does the paperclip beneath the box, which takes
pictures too. A picture pasted into a tab is sent with what you say, to a
model that can see. !command runs a command yourself, and Fred sees what it
printed. The arrow sends; while Fred works with nothing typed, it is a square
that stops Fred, as Esc does.
- When Fred asks to change a file, the change opens beside the file. Use
Accept or Refuse on the editor's title bar (Cmd+Enter and
Cmd+Backspace there, Ctrl on Windows and Linux), or Yes, Always and
No in the tab, where Cmd+Enter says yes. With No you can say what to do instead. Always asks
for how long: This session, or This project, which is kept for you on
your computer and never in the project.
/permissions lists what is allowed,
and /permissions forget 2 takes the second back.
- What you say while Fred works waits, shown as Next, and is sent when it
finishes. Esc, stopping Fred or the cross takes it back to change.
- The arrow at the corner of something you said goes back to before it: the
conversation, and every file Fred changed since put back as it was, with
what you said back where you type, to change. A file you or something else
changed since is left as it is, and named. What commands did is not put
back.
- The mode, beneath the box, sets how much Fred does alone: Ask before
every change and command, Accept edits (changes files, asks before a
command), Plan (reads and plans, changes nothing) or Auto. Click it
for the four, or press Shift+Tab where you type for the next. Changed while
Fred asks something, the question waits for your answer, and the mode
decides what comes after it.
- Beneath the box on the right are the model, how much of its context the
conversation uses and how fast it writes. As the context nears its end, Fred
sums up what came before and goes on, so a conversation is never cut off;
/compact sums it up now.
- Typing
@ lists the project's files that fit what you type after it, and
typing /, or the / beneath the box, lists the commands: /compact, /context, /mode, /resume,
/init, /mcp, and those of your project in .filefreak/commands/. Up and
Down choose, Tab or Enter takes one, and Esc closes the list.
- Up, at the start of what you type, goes back through what you said in the
project, in earlier sessions and at the terminal too. It is kept in Fred's
folder, never in the project.
- Attach to Fred, on a file's menu in the explorer or the editor, adds it
with
@. Attach the Selected Lines to Fred, on the editor's menu, adds
the lines you have chosen as @path#L3-5, and Fred is given those alone.
- Stop the Model, the stop icon on the sidebar's model, on the sidebar's
and a tab's title bars, or in the Command Palette, stops the model and frees
the memory it holds. Otherwise it stops on its own after 30 minutes unused.
Closing VS Code leaves it running, so the next conversation starts at once.
The Freds in this window end with it, and Start again takes each
conversation up again and starts the model anew.
- Restart Fred, in a tab's ... menu, starts Fred's CLI again in the
same conversation, as after you change a setting.
- The first time, Fred fetches the model as it starts, which takes a few
minutes; the tab shows how much has come. After that it starts in seconds.
- The status bar shows the model, how much of its context is used and the mode;
click it to change the mode. Its tooltip says how fast the model writes.
- When Fred finishes or asks something while its tab is out of sight, the
tab's title says so, and a message does, with Show Fred.
Settings
| Setting |
|
fred.cli |
The CLI, if it is not on PATH or in ~/.local/bin (on Windows, %LOCALAPPDATA%\FileFreak\bin) |
fred.model |
The model, by its id as filefreak fred models lists it |
fred.mode |
ask, accept-edits, plan or auto, as Fred starts |
fred.continue |
Carry on with the project's last session |
fred.notify |
Say so in the tab's title and a message when Fred finishes or asks while its tab is out of sight (on) |
What stays on your computer
Fred talks only to a model on this computer, and the conversation, your code and
the sessions are kept here. From the network it fetches its catalogue of models
and the models themselves, and asks any MCP server on the web that you add.
| |