Build a Liner
A liner is a local folder for one focused task, stored in ~/liner/projects by default (set LINER_DIR or projects_dir in ~/.liner/config.yaml to use another directory).
The primary way to build a liner is in your agent’s chat. Your agent does the legwork in short helper subagents, Liner’s code enforces the steps and verifies citations, and you approve what goes in.
Build with your agent
Section titled “Build with your agent”Once you have installed Liner and connected your agent, open Claude Code or Codex and ask for lasting research on a specific task. For example:
Build a liner to help me design uncertainty states for an AI feature that can be wrong, so users know how far to trust it and can check its work.
Your agent starts a liner with liner research start and follows liner research next through seven stages, pausing for your approval only at the three points that shape what ends up in the folder:
- Job Story. Your agent turns your request into one narrow Job Story, such as: “When an AI feature in my product can be wrong, I want to show how far to trust it and let people check its work, so they rely on it the right amount.”
- Clarify Job. It asks a few focused follow-up questions to lock down the situation, desired outcome, and boundaries before searching starts.
- Research and evaluation. Your agent checks sources you already have in your library (
liner find-sources), searches the web, reads candidate pages vialiner fetch, and logs every kept or dropped page with its reason. Each step runs in a helper subagent so your main chat stays clean. - Approve the synthesis. Your agent stops and shows
mixtape/synthesis.md. Before it can ask for approval, Liner checks that every footnote is defined and used, points to a kept source, and covers at least three sources (or every kept source when there are fewer). Editing the synthesis afterward reopens this approval. - Approve the source list. Your agent shows the final list of sources before compile fetches them, including any web pages that need JavaScript rendering.
- Compile. Liner fetches the full text of each source into local Markdown under
mixtape/sources/and writesmixtape/MIXTAPE.md. Compile makes no model calls. In a guided build, any failed source or broken citation stops the build so nothing silent slips through. - Approve the instructions. Your agent drafts
LINER.mdandSKILL.mdand pauses for your approval before finishing.
Keep the navigator open beside your chat to watch progress live, read the synthesis, and inspect every cited source.
Bringing your own files
Section titled “Bringing your own files”Some of the strongest sources are already on your machine: talk PDFs, books (EPUB), saved notes, or your own writing. Drop files into mixtape/local-sources/ or tell your agent which local files to include. A liner can mix local files with web pages, YouTube transcripts, public GitHub docs, skills, and other liners.
Use the finished liner
Section titled “Use the finished liner”In any future chat, describe a task that overlaps with the liner. Because the liner skill lists your usable liners, your agent notices the match, names the liner, and asks before loading it.
When loaded, the agent reads SKILL.md and LINER.md, pulls from mixtape/MIXTAPE.md and mixtape/sources/ as needed, leads with the advice or draft first, and lists its sources in a short note at the end.
You can also pin a liner to a repository’s CLAUDE.md or AGENTS.md:
liner use designing-for-ai-uncertaintyFor lighter tools that cannot read local folders, paste mixtape/MIXTAPE.md into the chat and attach individual files from mixtape/sources/ when needed.
Build manually with the CLI
Section titled “Build manually with the CLI”If you want to assemble a liner from known sources by hand or from a script, you can scaffold and compile it directly with the CLI. Commands resolve paths from your current working directory.
mkdir -p ~/liner/projectscd ~/liner/projectsliner init mobile-design-foundationsAdd sources through the CLI so Liner assigns stable IDs and checks for duplicates:
liner sources add mobile-design-foundations --type web --url https://developer.apple.com/design/human-interface-guidelines/gestures --note "Apple's canonical gesture reference for native iOS behavior." --priority requiredWrite mixtape/synthesis.md (or ask your agent to draft it from your sources), then compile the research packet:
liner compile mobile-design-foundationsUnlike a guided build, standalone liner compile continues past failed sources so scripts can inspect partial results. It warns about unmatched citations and exits with code 2 when some sources failed or 3 when all of them failed.
Recompile after source changes
Section titled “Recompile after source changes”When you add, update, or replace sources with liner sources, recompile to refresh mixtape/MIXTAPE.md and mixtape/sources/:
liner compile mobile-design-foundations