Reference
Commands
Your agent runs these for you, but you can run them too, in Terminal, once the command is linked. Most of them open Sediment if it isn’t running. sediment help is the full manual, and it always matches the Sediment you have.
Filing and editing
| Command | What it does |
sediment add <path> | Add an HTML file to the shelf as a new artifact. --description gives it a description, and --tag tags it. |
sediment update <id> | Change an artifact’s content (--content), description (--description), tags (--tag, --untag), pin (--pin, --no-pin) or file name (--name). Only what you pass changes. |
sediment archive <id> | Archive an artifact, as ⇧⌘A does. |
sediment trash <id> | Move an artifact to the Trash, as ⌘⌫ does. It’s refused until you turn on Allow agents to move to Trash. |
sediment restore <id> | Bring an artifact back: from the Trash to where it was, the Archive included, and from the Archive to the Shelf. |
An artifact’s id comes from the reply to add, or from find. Every command that changes an artifact takes one id, never a search, so a loose match can’t change the wrong artifact.
Finding
| Command | What it does |
sediment find <query> | Resolve a query to the artifacts it names, with their ids. It matches names, and a query starting # matches tags. A link to an artifact finds it too. |
sediment find --text <query> | Search the text inside artifacts as well, as Search… does. |
sediment find --tag <tag> | List exactly the artifacts carrying one tag. |
sediment find --untagged | List the artifacts with no tag. |
sediment find --trash | Look in the Trash, which find otherwise leaves out. |
sediment tags | Print every tag, with its count and meaning. |
sediment tags describe <tag> <meaning> | Give a tag its meaning. |
sediment shelf | Print the shelf folder’s path and how many artifacts are on it. |
Checking
| Command | What it does |
sediment layout <id> or <path> | Measure how Sediment shows an artifact, or a file not yet on the shelf: what runs wider than the column, which text is too small to read, and what Sediment blocks. It changes nothing. |
sediment check | Report what works and what doesn’t: the command, the app, the shelf folder and your instructions. |
For agents
| Command | What it does |
sediment mcp | Serve the shelf’s tools to a desktop app, over MCP. The app starts it when it needs it, so you don’t run it yourself. |
sediment instructions | Print your shelf’s instructions exactly as written. With --content and --expected-hash, it replaces them with a file’s text. sediment help instructions shows how. |
Help
| Command | What it does |
sediment help | The manual, with every command. |
sediment help <command> | One command in full. sediment <command> --help does the same. |
sediment help saving | Help by task. The others are finding, editing, linking and instructions. |
Options for every command
| Option | What it does |
--json | Reply in JSON even in a terminal. Replies are JSON whenever the output isn’t a terminal. |
--no-launch | Don’t start Sediment. SEDIMENT_NO_LAUNCH=1 does the same. |
--version | Print the version. |
A command exits with 0 when it succeeds, 1 when it failed and retrying won’t help, and 2 when it failed and a retry may work.
An example
sediment add ./report.html --description "Traffic for October." --tag analytics
sediment find "#analytics"
sediment update <id> --tag monthly --untag draft