Coding agents
Pulsar doesn’t come with a coding agent. It can install Claude Code, Codex, Antigravity CLI or opencode for you, each in a toolbox.
Install one
The welcome window offers them at first login, or you can add one from a terminal.
$ pulsar agent list
NAME COMMAND INSTALL STATE DESCRIPTION
claude claude npm @anthropic-ai/claude-code - Claude Code (Anthropic)
codex codex npm @openai/codex - Codex CLI (OpenAI)
agy agy download antigravity.google - Antigravity CLI (Google)
opencode opencode npm @opencode/cli - opencode (open source, any provider)
none is installed by default. toolbox: agents prefix: /var/home/you/.local/share/pulsar/agents
pulsar agent add claude # then type `claude` in any terminal
pulsar agent remove claude # its command and package; your logins stay
add creates an agents toolbox, installs the agent into
~/.local/share/pulsar/agents, and adds a command to ~/.local/bin.
Claude Code, Codex and opencode come from npm, and Node is installed in the toolbox with the
toolbox’s own sudo, which asks for no password. Antigravity CLI has no package, so
add reads Google’s release manifest and checks the download’s SHA-512, as Google’s
own install.sh does. opencode is version 2 (@opencode/cli), and
add removes a 1.x it installed earlier. It layers nothing on the host. An agent you
installed yourself is left in place (listed as native) and still gets the setup
below.
Gemini CLI and aider aren’t listed any more, but add, run and
remove still work for them, and add first says why they were dropped:
Gemini CLI no longer signs in free or Google AI Pro/Ultra accounts, and aider has had no release
since February 2026.
The toolbox shares your home folder
toolbox rm -f agents removes Node and
leaves them. pulsar agent remove takes one off. An agent in the toolbox can read
your whole home folder and use your desktop session, as you can. To keep it to one project, use
the sandbox.
What it knows about the machine
The briefing is /usr/share/pulsar/AGENTS.md. It tells an agent that
/usr is read-only, that dev tools go in a toolbox and apps in Flatpaks, what a
rollback covers, and what it must never do. pulsar agent guide prints it.
add puts the guide in each agent’s own instructions, unless a file is already there, and
links the image’s skills (including one that makes themes). It registers
pulsar mcp only if the agent has no pulsar server yet.
| Agent | Guide | MCP server | Skills |
|---|---|---|---|
| Claude Code | ~/.claude/rules/pulsar.md | ~/.claude.json | ~/.claude/skills |
| Codex | ~/.codex/AGENTS.md | ~/.codex/config.toml | ~/.agents/skills |
| Antigravity CLI | ~/.gemini/config/rules/pulsar.md | ~/.gemini/config/mcp_config.json | ~/.gemini/config/skills |
| opencode | ~/.config/opencode/AGENTS.md | ~/.config/opencode/opencode.json | ~/.config/opencode/skills |
Antigravity CLI ignores a rules file without a trigger, so its
pulsar.md is a five-line file set to trigger: always_on that includes
the guide. The others get a link. The MCP server answers with these tools:
| Tool | What it answers | Changes something |
|---|---|---|
doctor | the health checks, all or one | |
status | deployments, pins and layered packages | |
manifest | the image, the variant, the kernel and the hardware | |
report | the redacted diagnosis report, with a crash if asked | |
crashes | your crashes this boot | |
update_check | whether a newer image is out | |
agent_status | the guide, the agents, guard, the pin and the sandbox setting | |
theme_list, theme_current | the desktop themes | |
theme_set | sets your desktop theme (pulsar theme revert undoes it) | yes |
sessions | the agent sessions, and what each is doing | |
session_read | another session’s screen | |
session_message | a message to another session, or a reply | yes |
inbox | a session’s messages, both ways | |
job_start | starts a long command as a job | yes |
jobs, job_log | the jobs, and one’s output | |
job_stop | stops a job | yes |
machines | your other Pulsar machines | |
machine_run, machine_job | starts an agent or a job on another machine, with your branch | yes |
machine_fetch | brings a session’s branch back from another machine | yes |
The tools that change something are marked as writes, so the agent asks you before using
them. A sandboxed agent has no pulsar mcp.
pulsar agent on its own shows how it’s set up.
$ pulsar agent
guide /usr/share/pulsar/AGENTS.md (pulsar agent guide)
agent claude native
sandbox off here (default) (pulsar agent sandbox)
guard off: layering and system Flatpak installs do not prompt (sudo pulsar agent guard on)
Ask it to fix something
pulsar agent default claude # the agent ask starts
pulsar agent ask # "what, if anything, looks wrong?"
pulsar agent ask why does the fan never stop # your own question
pulsar agent ask --crash latest # the newest crash, explained
pulsar agent ask --with codex # someone other than the default
ask writes a redacted pulsar report (plus the crash, if named) to a
private file in $XDG_RUNTIME_DIR (deleted at logout), then starts your agent with
a prompt pointing at it, your question, and “Do not change the system without asking me
first.” opencode sends it once a model is set up.
A crash notification’s Ask button runs pulsar agent ask --crash
in a new terminal. The report has the stack trace and logs, never the core file
(Troubleshooting). The agent sends what it reads to
its provider (Anthropic, OpenAI, Google, or the one you set up in opencode).
The Agents app
Agents, in the app grid, lists every session under its project, with the ones that need you first. A session is the agent’s own terminal, inside the window. Closing the window leaves the agents working.
- With no session open, the window asks “What should the agent do?” What you type becomes the agent’s first message, and the session’s name unless you fill in Name. The agent, a worktree of its own and the sandbox are picked beside it, and remembered per project.
- Opening a stopped session continues it. Claude Code and opencode pick up the same conversation, and Antigravity CLI does once Pulsar has seen its conversation. Codex picks up its latest conversation in that folder.
-
Changes (Ctrl+Shift+D) lists the files the agent changed since the session
started, or since the last commit, with each file’s diff and Revert File. A
comment on a diff line is typed into the agent’s prompt as
path:line: …for you to send. - History lists the snapshot taken at each start. Go Back puts the files back, stopping the agent first if it’s working, and the Undo after it takes that back.
- The bar under a session shows the model, what the agent is doing, how full its context is, Codex’s 5-hour and weekly limits, the sandbox, the branch and how many files changed. Claude Code and Antigravity CLI don’t write their plan limits to disk, so they show context only.
- Archive (the × on a session, or Ctrl+Shift+Delete) hides it, with Undo. The app deletes archived sessions after a week, with their snapshots and scratch folders. Preferences (Ctrl+,) sets that to 1 day, 30 days or never. A worktree with uncommitted changes is kept, and so is every branch.
- Ctrl+Shift+B narrows the list to the agents’ tiles.
In the app a session has no tmux keys, menus or status line, and when the agent quits you get Continue. A terminal attached to the same session keeps tmux. A notification’s Open, Pulsar Commands and the Agents page in Pulsar Settings all open the session in the app.
Sessions from a terminal
pulsar agent run <agent> --tmux <name> starts the agent in a named tmux
session that outlives its terminal window, or attaches to it if it’s already running. Sessions
run on a tmux server of their own (-L pulsar-agents), apart from yours. tmux is in
the image. The app shows these sessions too.
pulsar agent run claude --tmux work # start claude in a session named work
pulsar agent run claude --tmux work --worktree # the same, in its own git worktree
pulsar agent run claude --tmux work --prompt "fix the flaky test"
pulsar agent attach work # back onto work, from any terminal
pulsar agent attach # back onto the one you were on last
pulsar agent sessions # every session, and what each is doing
pulsar agent usage work # its model, context and tokens (Claude Code)
pulsar agent diff work # what it changed since it started
pulsar agent sessions --archive work # done with it; --unarchive brings it back
A session that ended starts again with its agent, folder, conversation and sandbox setting.
--new starts a fresh conversation. With --worktree, the session gets a
branch named after it, checked out in <repo>/.worktrees/<name>.
Each session gets a scratch folder, /var/tmp/pulsar-agents/<name>, in
$PULSAR_SCRATCH. Pulsar’s guide tells agents to put VM disks, builds and downloads
there. It’s deleted with the session.
When an agent in a session you aren’t looking at finishes or needs you, a notification says so. Claude Code, Codex and Antigravity CLI tell Pulsar when they finish a turn, and the session shows as waiting until you send it something. opencode doesn’t yet, and notifies you only when it rings the terminal bell.
pulsar agent undo work --dry-run # what an undo would change
pulsar agent undo work # the files as they were when work started
pulsar agent undo work --redo # take the undo back
pulsar agent undo work --file src/app.ts # one file, even while work runs
Undo works in git repositories. It puts the files back as they were when the session first
started (or last started with --new), however often it restarted since, and deletes
files added since. Files git ignores are left as they are, and so is any file the undo couldn’t
take back, which it names. Branches, and commits made since, stay where they are. A whole undo
refuses to run while a session is running in that checkout, and --file doesn’t.
On a fresh install the sandbox and the guard are both off. A session you leave running can read your whole home folder, and anything it runs can layer packages or roll back without a password.
Disk space
The footer of the app’s session list shows how much room is left on /var, amber
when it’s getting tight and red when it’s nearly full. Click it for the big things in
/var/tmp, ~/.cache and the sessions’ scratch folders, each with
Delete.
pulsar agent disk # free space on /var, and the big things in it
pulsar agent disk --delete <path> # one of the things it listed
pulsar doctor suspend-room # NVIDIA image: whether a suspend will fit
On the NVIDIA image, the driver saves the GPU’s memory to /var/lib/systemd/sleep
as the machine suspends. Without room for it, the suspend fails and the machine stays awake.
Sessions talking to each other
One session can read another’s screen and leave it a message, and a long command can run as a
job that tells a session how it ended. Agents use the same through pulsar mcp.
pulsar agent read work # its screen, as it is now
pulsar agent send work "the API tests pass now" # into its prompt, at the end of its turn
pulsar agent inbox work # its messages both ways, each with an id
pulsar agent send work --reply-to <id> "on it" # answer one
pulsar agent messages off # or on, with --cap N
-
A message goes in only once that agent has ended its turn, never into a permission question,
and while you’re watching the session only with
--now. It’s labelled with the sender (<name>@<machine>from another of your machines). - Claude Code gets its messages through its own hooks, at the end of a turn or while it sits idle, so nothing is typed into it. Antigravity CLI gets them the same way at the end of a turn. Codex, and an idle Antigravity CLI, get them typed into the prompt.
- opencode takes no messages, because Pulsar can’t tell when its turns end. Sandboxed sessions don’t take them yet.
-
Every message is logged in
~/.local/state/pulsar/agents/messages.log. One session can send another at most 10 in 10 minutes. Preferences in the Agents app, orpulsar agent messages, turns messages off or changes that limit.
A screen read from another session holds whatever its agent printed, so an agent reading it is reading untrusted text. The sender’s name is what the sending session says it is: an agent with a shell can claim any name.
pulsar job run --name check -- make check # its own tmux, a log, a notification
pulsar job run --notify work -- make check # and the session work hears how it ended
pulsar job log check # its output
A job runs as you, outside any sandbox, so a sandboxed agent can’t start one.
Your other machines
pulsar machine hands work to your other Pulsar machines over SSH. From the laptop
you can start an agent on the desktop, run a long job there, and bring the branch back.
pulsar machine add desktop you@desktop.local # checks Pulsar answers there, then saves it
pulsar machine check # each one’s release, GPU and agents
pulsar machine sessions # every machine’s agent sessions
pulsar machine run desktop claude --name train --prompt "run the training here"
pulsar machine job desktop --notify work -- python train.py
pulsar machine fetch desktop train # its branch back, as desktop/train
pulsar agent send train@desktop "the data is in ~/data"
run and job send your branch by git over SSH, with what isn’t
committed as one extra commit, to the same project path in your home folder there. The agent
starts in a worktree on a new branch named for the session, as you, with that machine’s logins
and sandbox setting. --notify work tells the session work here how
the job ended. fetch writes only desktop/train and never touches your
checkout. A branch that already exists there is refused, not overwritten.
New files git doesn’t ignore are sent too, so an untracked .env
that isn’t in .gitignore goes with the branch. Files git ignores stay here.
In the app, sessions on other machines are listed as <name>@<machine>
under “<project> · <machine>” and open like local ones. A machine that doesn’t
answer keeps its sessions in the list, dimmed, with Try Again. Agents get the
MCP tools machines, machine_run, machine_job and
machine_fetch, and ask you before using the last three.
Before you add one
Pulsar runs ssh with no prompts, so SSH has to be on on the other machine (Pulsar doesn’t turn it on) and your key has to be there already:
ssh you@desktop.local # once, to accept its host key
ssh-copy-id you@desktop.local # your key, so Pulsar never has to ask
A key that asks for a passphrase fails. If your SSH agent holds many keys (1Password’s does),
set IdentityFile and IdentitiesOnly for that host in
~/.ssh/config, or sshd refuses after too many tries.
Announce This Machine, in the app’s Preferences under Your Machines (or
pulsar machine announce on), is off until you turn it on. It publishes your user
name, the host name, the Pulsar release and whether SSH is on to everyone on the local
network. It opens nothing. Your other machines then list it with Add, and
pulsar machine discover shows it.
The other machine needs Pulsar 26.11.2 or newer. Handing off runs and jobs, and fetching them back, has been tested against one real second machine. Announcing, discovering, and messages between machines have only been tested against stand-ins so far. A Claude Code session started in a project that’s new to that machine stops at Claude’s question about trusting the folder, so open it in the app to answer.
A model on your own GPU
opencode can use a local OpenAI-compatible server, with no account.
pulsar agent model on # the default: Qwen2.5 Coder 7B
pulsar agent model on --model <owner/repo[:quant]> --at-login
pulsar agent model # state, endpoint, key, the aider line
pulsar agent model off --purge # stop and remove it, and delete the models
-
Runs llama.cpp’s server image as a rootless user service: CUDA on the NVIDIA image, Vulkan
with a GPU at
/dev/dri, else CPU. - First start downloads the model into
~/.local/share/pulsar/models. -
Serves
http://127.0.0.1:8080/v1, local only. Requests need the key in~/.config/pulsar/model-key. -
In opencode, pick “Local (Pulsar)” with
/models.pulsar agent modelalso prints the command for aider. -
Stops at logout unless started with
--at-login(a loaded model holds gigabytes of video memory).
The sandbox
The agent runs in a rootless container that sees only the project you started it in, its own login, your git identity and its session’s scratch folder, with no SSH agent and no session bus. Pushes go through a gate on the host that pushes with your credentials and refuses force-pushes, deletions and tags.
pulsar agent sandbox on # every project, from now on
pulsar agent sandbox on --here # just this one
pulsar agent sandbox # what applies here, and why
pulsar agent sandbox push branches # never the default branch
pulsar agent sandbox push off # no pushes, no pull requests
-
The agent can commit, but git config and hooks (the repo’s, its submodules’, and any
in-project hooks path or include) are read-only, and
.gitcan’t be moved. -
A new
commondiror.gitin the tree is renamed to<name>.from-sandboxwhen the session ends. Until then, an editor running git in the background could follow it: close the editor on the project while an untrusted agent works. -
A linked worktree inside its main checkout, where
--worktreeputs them, works. One outside it, and a submodule checkout, are refused, because their git directory is outside the project where the sandbox can’t protect it. -
A session in its own worktree sees only that worktree and the repository’s
.git, not the main checkout or other sessions’ worktrees. -
The project’s own agent settings (
.claude/,.mcp.json,.codex/,.gemini/,.agents/,.opencode/,opencode.json) are read-only, and one the agent creates is renamed to<name>.from-sandboxwhen the session ends. Antigravity CLI reads hooks and MCP servers from.agents/.
Antigravity CLI and opencode 2 sign in again inside the sandbox, because their logins (the
keyring, and opencode’s opencode.db) aren’t copied in. Signing in to Antigravity
CLI in the sandbox hasn’t been tested yet.
Type the agent’s name as usual:
$ claude
sandboxed: only /var/home/you/code/app is visible; push on through the gate
Start it inside a project. It refuses your whole home folder. In interactive bash,
claude, codex, agy and opencode (and
gemini and aider) go through the sandbox, and
pulsar agent sandbox wrap off stops that. Scripts, other shells and command claude don’t.
pulsar agent run claude always follows your settings.
pulsar agent sandbox allow ~/.local/bin/my-hook # one more path in, read-only
pulsar agent sandbox allow ~/notes --rw --here # read-write, this project only
pulsar agent sandbox repin # after you really changed a remote
pulsar agent run claude --no-sandbox # one session outside it
A repository can require the sandbox (this file can only tighten settings):
# .pulsar/agent.toml, committed to the repo
sandbox = "on"
push = "branches"
The sandbox leaves the network open. The rest of what it lets in and out is in Agents and safety.
Guard and checkpoints
On stock Fedora, and on Pulsar until you turn the guard on, an admin’s session and anything it starts can layer packages, roll back, clean up deployments, and install or remove system Flatpaks without a password.
$ pulsar agent guard
guard: off
org.projectatomic.rpmostree1.install-uninstall-packages no prompt
org.projectatomic.rpmostree1.rollback no prompt
org.projectatomic.rpmostree1.cleanup no prompt
org.freedesktop.Flatpak.app-install no prompt
org.freedesktop.Flatpak.app-uninstall no prompt
sudo pulsar agent guard on makes all five ask for the admin password. Updates stay
ungated. sudo pulsar agent guard off restores Fedora’s default.
Take a checkpoint before a long session with sudo pulsar checkpoint "before the agent".
Afterwards, diff shows what changed and restore puts it back. More in
Checkpoints.
Written with help from AI and reviewed by a person before publishing. If you find a mistake, open an issue on GitHub.