why

three guarantees

memory / budgets in CI

Every subsystem has a memory budget, and CI fails a change that breaks one. The core that owns your shells stays under 4 MB.

$ cargo xtask mem-gate
| Core, 8 idle panes | 2.87 | 4.00 | pass |

security / prompts you can trust

Agents get a scoped, permissioned channel into panes. Approvals are drawn by PinFold outside pane text, so output can't impersonate them. These are guardrails, not a security boundary: only a sandboxed agent is contained. Read the threat model.

◆ needs you  Pane 1 asks to send to pane 2, 1 text(s):
text 1 (11 bytes): cargo test⏎
y allow once · a allow 30 min · n/Esc deny

isolation / crashes stay small

A small core process owns your PTYs. If the window crashes, your agents keep running, and pinfold reattaches.

Ctrl+a d   window closes, panes keep running
$ pinfold  reopens the session

memory

measured, not promised
processplatformmeasuredbudgetheadroom
core, 8 idle panesmacOS2.87 MB4.00 MB72%
each idle panemacOS0.17 MB0.25 MB68%
10k lines of typical textmacOS0.61 MB1.50 MB41%
scrollback at its capmacOS1.28 MB2.00 MB64%
window, idlemacOS50.78 MB55.86 MB91%
window, worst rowmacOS51.46 MB55.86 MB92%
core, beside windowmacOS3.65 MB4.00 MB91%
core, 8 idle panesLinux2.67 MB4.00 MB67%
each idle paneLinux0.11 MB0.25 MB44%
10k lines of typical textLinux0.62 MB1.00 MB62%
scrollback at its capLinux1.61 MB2.00 MB81%
window, idleLinux11.68 MB24.59 MB47%
window, worst rowLinux12.93 MB24.59 MB53%
core, beside windowLinux3.79 MB4.00 MB95%
From PR #169: an M1 Pro at 1512×1890 (phys_footprint) and Linux CI under Xvfb at 1920×1080 (PSS). The worst window row is an open menu on macOS and a full glyph cache on Linux. A macOS window reads about 45.5 or 51 MB from run to run as Metal pools memory; ten runs all passed. An eight-hour Linux soak held the core at 4.31–4.64 MB PSS (benches/soak.md, OUT=<dir> tests/window/soak.sh 480).reproduce: XDG_CONFIG_HOME="$(mktemp -d)" cargo xtask mem-gate

agents

five states, one glance
needs youwaiting on your answer
runningworking in its pane
donefinished cleanly
errorthe work failed
idlenothing happening

Every state is a glyph, a colour and a word, so it reads without colour too. States come from your shell's OSC 133 marks, or from the agent through pane.status, which outranks them. A hidden tab whose pane needs you is marked ◆.

A PinFold window with three tabs. The api tab and the title row show ◆ needs you: Allow edit to src/config.rs?. The left pane holds an agent's output; the right pane shows a failed cargo test run.
A real PinFold window. The agent is a script that prints and reports through the API.
The PinFold workspace trust prompt under an amber border: ◆ needs you, Trust the layout of /private/tmp/pf/home/code/docs? It types 2 run line(s): npm install, and curl -fsSL https://example.com/setup.sh | sh. Keys: y trust, n or Esc don't trust.
A real trust prompt from pinfold up, drawn below the panes.

new

in v0.1.0-beta.5

rewind / undo an agent

PinFold takes a checkpoint of the working directory when an agent starts. Open what it changed since, and undo one file or all of them, each restore behind PinFold's own prompt.

$ pinfold rewind
◆ needs you  Undo changes since 12 min ago (launch)?
restore 1 · delete 1 the agent added
y undo once · n/Esc keep the files

inbox / every agent, one list

Every agent that needs you, first, with its folder and branch. Programs' notifications can show as toasts, and progress fills the tab and the Dock tile, at one byte a pane.

Ctrl+a !   open the inbox
Ctrl+a w   next pane that needs you

timeline / replay a run

Each agent run keeps a timeline on disk: its commands with exit codes and times, approvals, calls that act and checkpoints. It holds 16-byte records and no pane text.

Ctrl+a t   the run's timeline
Enter      jump to that output
d          diff since that checkpoint

See the rewind how-to, the configuration and the known issues.

try it

a tiny shell, in the page
pinfold.sh · site shell · ↑↓ history · Tab completes
~/pinfold.sh ❯ pinfold --help
PinFold: a memory-first terminal for agentic coding.

Usage: pinfold [command]

With no command, opens a PinFold window, and starts PinFold first if it is not running.

Commands:
  up [dir]          Open a project's .pinfold/layout.toml as tabs and panes
  agent <name>      Open a pane running an agent profile from your config
  ctl list          List the session's panes
  ctl send          Type text into a pane
  ctl wait          Wait until a pane's command exits, it prints or it goes quiet
  ctl grants        List or revoke lasting cross-pane grants
  ctl log           Print or verify the audit log of API calls
  ctl session save  Save the session now and print the snapshot's path
  mcp               Serve PinFold's tools to a coding agent over MCP
  help [command]    Print this, or a command's help

Options:
  -h, --help        Print help. 'pinfold <command> --help' prints a command's help
  -V, --version     Print the version

Docs: https://github.com/0xPiranhaCodes/pinfold.sh#readme

keys

tmux muscle memory works
new tab⌘T
split right⌘D
split down⇧⌘D
prefixCtrla
prefix → tab · right · downc|-
open a project layoutpinfold up

themes

in v0.1.0-beta.4
  • Graphite Griddefault
  • GitHub Darkdark
  • GitHub Lightlight
  • Draculadark
  • Solarized Darkdark
  • Solarized Lightlight
  • One Darkdark
  • Norddark
  • Gruvbox Darkdark
  • Tokyo Nightdark
  • Catppuccin Mochadark
  • Catppuccin Lattelight
Each swatch is that theme's own background, text and eight ANSI colours, from crates/pinfold-config/themes. The eleven are converted from their authors' MIT-licensed sources; the configuration reference names each source, commit and copyright.in v0.1.0-beta.4

pick one / or one each for light and dark

Name a theme in pinfold.toml. Give two names and PinFold follows the system's appearance.

theme = "Nord"
# or
theme = { light = "GitHub Light", dark = "GitHub Dark" }

override / single colours

[colors] sets single colours on top of the theme, or on top of Graphite Grid.

[colors]
background = "#0d1117"

[colors.states]
needs_you = "#f5b544"

import / Ghostty and iTerm2

A Ghostty theme file and an iTerm2 .itermcolors preset work as they are: copy one into themes/ beside pinfold.toml, then name it.

mkdir -p ~/.config/pinfold/themes
cp ~/Downloads/Nord.itermcolors ~/.config/pinfold/themes/

Saving pinfold.toml, or the theme file in use, recolours the window within about a second, history included. A theme sets colours only: the agent states keep their glyph and word, and PinFold steps each state's colour until it contrasts at least 4.5:1 with the theme's background, tabs and overlay. Themes are new in v0.1.0-beta.4.

configure

one TOML file, applied on save

PinFold reads ~/.config/pinfold/pinfold.toml, or $XDG_CONFIG_HOME/pinfold/pinfold.toml when that variable is set, on macOS and Linux alike. On macOS, PinFold > Settings (⌘,) opens it. Every key is optional. If the file has a problem, PinFold still opens, says why in its log and uses the defaults.

font_size = 14            # points, 6 to 72; default 13
theme = "Nord"            # without it, Graphite Grid
background_opacity = 0.85 # macOS only; default 1
background_blur = true    # macOS only; default false

[keys]
prefix = "C-b"            # default "C-a"

[agents.claude]           # run it with: pinfold agent claude
command = ["claude"]
sandbox = true
keep_env = ["ANTHROPIC_API_KEY"]
Open the full configuration reference for every key, default and limit.a save applies within about a second

install

macOS first, Linux next

macOS beta / available now

Download the signed, notarized PinFold.dmg and SHA256SUMS from the v0.1.0-beta.5 release, check one against the other, then drag PinFold to Applications. One app for Apple silicon and Intel: macOS 11 or later on Apple silicon, 10.13.4 or later on Intel. It has been run by hand only on macOS 27 on Apple silicon, so older versions are untested (#190), and Intel is only partly checked until #213 is done. Read the known issues and the install guide.

shasum -a 256 -c SHA256SUMS --ignore-missing
# optional: the pinfold command
sudo mkdir -p /usr/local/bin
sudo ln -sf /Applications/PinFold.app/Contents/MacOS/pinfold /usr/local/bin/pinfold

from source / today

Rust toolchain pinned in the repo. Build, then run pinfold. A build from source lacks the hardened runtime, so another program running as you can read its memory; the signed app has it.

git clone https://github.com/0xPiranhaCodes/pinfold.sh.git
cd pinfold.sh
cargo build --release -p pinfold-cli
./target/release/pinfold

Linux / v0.1

X11 and Wayland, with tarballs and a Homebrew formula, after the macOS beta (#47).