# Working with Agents

What an agent makes for you deserves better than a chat scroll. Sediment gives it a place to land.

An agent can file a page it made, find what’s already on your shelf, and update an artifact in place. To point it at one you already have, select the artifact and press <kbd>⌘C</kbd>: that copies its file name, ready to paste into your request.

Not sure a page will look right? Have your agent “check how this looks in Sediment”. It measures the page as Sediment shows it, and tells you what runs wider than the column, which text is too small to read, and what Sediment blocks.

How an agent connects depends on where it runs:

| Where it runs | How it connects |
|---|---|
| [In a terminal](#terminal) | The `sediment` command, with optional skills |
| [In Claude Desktop or ChatGPT](#desktop-app) | The Sediment plugin |
| [In any other app](#other-apps) | Sediment’s MCP server |

Ask your agent to write up the week’s support tickets and put it on your shelf. It files the page described and tagged, and it waits on your Shelf, unread, until you get to it. Ask for a change, and the agent updates the same artifact while **History** keeps the earlier version. Once you’ve acted on it, **Archive** it.

## In a terminal {#terminal}

Claude Code, Codex CLI and other terminal agents use the `sediment` command. Setting it up takes two steps and an optional third, and each one shows you whether it worked.

### Link the command {#link}

Open **Settings** (<kbd>⌘,</kbd>) and select **Terminal**. Until the command is linked, **Command Line Tool** reads “Not linked” and shows a command with a **Copy** button. Sediment is sandboxed, so it can’t write to your `PATH` itself. Paste the command into Terminal and run it.

It links `~/.local/bin/sediment` to the tool inside Sediment, so the command updates whenever Sediment does. **Command Line Tool** then reads “Linked”, and **Show Command** shows the command again. If your shell can’t find `sediment` afterwards, add `~/.local/bin` to your `PATH`.

### Check it works {#check}

```
sediment check
```

The check answers with a headline, then one row for each part it checked, led by a dot. Green works, yellow works but needs your attention, red is a problem, and grey wasn’t checked or has nothing to check. On a new shelf, it looks something like this:

```
Ready: Sediment 0.54.0 (99) is running and its shelf is reachable.

  ● command       ~/.local/bin/sediment → /Applications/Sediment.app
  ● app           running
  ● shelf         ~/Documents/Shelf
    artifacts     5
    permissions   tag not required · Trash not allowed
  ○ instructions  none on this shelf · sediment help instructions
```

Like most commands, the check opens Sediment if it isn’t running, so the app row may read `started by this check`. When a row is red, the line under it says what to do.

### Install the skills {#skills}

This step is optional: the command works without a skill. A skill teaches your agent when to reach for the command and how, so it spends less effort working that out. In Sediment’s own evaluations, agents with the skill read the manual once or twice where agents without it read it four or five times, and never ran over the steps a task allowed. Fewer steps means fewer tokens.

One command installs both skills for your agents, and needs Node.js 22.20 or later:

```
npx skills add unfussy-software/sediment-skills -g
```

| Skill | What it does |
|---|---|
| `sediment-shelf` | Saves, finds, edits and links what’s on your shelf. |
| `sediment-instructions` | Drafts your shelf’s [instructions](#instructions) from how you work, and writes only what you confirm. It runs only when you call it by name. |

## In Claude Desktop or ChatGPT {#desktop-app}

Both desktop apps take the Sediment plugin. It connects the app’s agent to Sediment on your Mac, so the agent can file the pages it makes.

### In Claude Desktop {#claude-desktop}

Open **Customize** and select **Plugins**, then **Add marketplace**, and enter the plugin’s repository:

```
unfussy-software/sediment-plugin
```

Then install **sediment**. Or download `sediment.plugin` from the repository’s [latest release](https://github.com/unfussy-software/sediment-plugin/releases/latest), and upload it on the same page.

Claude Cowork then has Sediment’s tools.

### In ChatGPT {#chatgpt}

Open **Plugins** in the sidebar, click **Add** and choose **Add a marketplace**. In **Source**, enter the plugin’s repository:

```
unfussy-software/sediment-plugin
```

Leave **Git ref** and **Sparse paths** empty, and click **Add marketplace**. Then choose **Personal**, open **Sediment** and click **Install plugin**. Start a new conversation, and Sediment’s tools are there.

The plugin works in conversations that run on your Mac, not in ChatGPT on the web or on your phone.

### Where the agent’s pages go {#pages-folder}

In either app, the agent saves each page to a folder, and Sediment files it from there. Any folder works except your shelf’s, since a page saved there is already on the shelf.

Without a folder, the agent can send a page of up to 32 KB straight to Sediment. For a larger page, it sends nothing and asks you to connect one.

## In any other app {#other-apps}

Any other app that takes a local MCP server can use Sediment’s. MCP, the Model Context Protocol, is an open standard for handing an app’s agent the tools of another program. Sediment’s server ships inside Sediment, can do everything the command line can, and is the one the plugin installs.

To add it, open your app’s list of MCP servers and add a local server. Its command is `/Applications/Sediment.app/Contents/Helpers/sediment`, with the one argument `mcp`. An app that keeps its servers in a JSON file takes an entry like this:

```
{
  "mcpServers": {
    "sediment": {
      "command": "/Applications/Sediment.app/Contents/Helpers/sediment",
      "args": ["mcp"]
    }
  }
}
```

The app starts the server when it needs it, and the server starts Sediment. Once the app has loaded it, Sediment’s tools appear in a new conversation.

### Let the agent set it up {#agent-setup}

If you’d rather not edit settings, paste this into a new conversation instead. The agent sets the server up the way its own app does, asks you for anything only you can do, and confirms when it works:

```prompt
Connect this app to Sediment, the app on my Mac that keeps my HTML pages
on a shelf. It offers an MCP server over stdio:

  command:    /Applications/Sediment.app/Contents/Helpers/sediment
  arguments:  mcp

If it isn’t at that path, find the app by its bundle id,
com.unfussysoftware.Sediment. If it isn’t installed, tell me and stop.

Set the server up the way this app sets up a local MCP server; if a step
is mine to take, tell me and wait. It starts Sediment itself when needed.

You’ll see its tools in a new conversation. Then call tags: a reply means
the connection works. Tell me in one sentence that Sediment is connected
and how many tags my shelf has; if tags fails, tell me what it said.

The server’s own instructions say how to file a page.
```

The agent files each page as soon as it’s ready, and filing it again updates the same artifact. If you’d like to see each page first, say so in your [instructions](#instructions).

## Your instructions {#instructions}

Agents don’t know your habits: what you call things, how you describe them, which tags you use. Left to guess, each picks its own words, and `#report`, `#reports` and `#weekly-report` soon sit side by side. Your instructions settle that once, for every agent. They’re where the tagging rule from [Tags and Collections](tags-and-collections.md) lives.

The instructions are one file per shelf. Agents read it before they save or edit, and it travels with the shelf to every Mac that has it. There are two ways to write it:

| Way | How |
|---|---|
| Ask an agent | Ask it to use `sediment-instructions`, one of the [skills](#skills) above, and confirm what it drafts. |
| Write it yourself | **New** in **Settings** ▸ **Terminal** ▸ **Instructions** opens an empty file in your text editor. Once the file exists, the button reads **Open**. |

### Permissions {#permissions}

**Settings** ▸ **Terminal** ▸ **Permissions** holds two switches, and every Mac that opens this shelf uses the same settings.

| Switch | What it does |
|---|---|
| **Require a tag from agents** | Sediment refuses any command that would leave an artifact untagged, so your instructions’ tags become a rule, not a request. |
| **Allow agents to move to Trash** | Agents can move an artifact to Trash. Sediment deletes it permanently after 30 days. Off until you turn it on. |

No command deletes an artifact sooner, so agents can’t delete anything permanently themselves.

## The commands {#commands}

Your agent runs the `sediment` commands for you, but you can too. [Commands](commands.md) lists every one, with its options.
