Skip to content
forgeplanePublic

About

Human in the loop for agent workflows

Topics

Resources

Contributing

Security policy

Stars

69 stars

Watchers

1 watching

Forks

Latest commit

 

History

2,481 Commits

Folders and files

Repository files navigation

Pinrail

Website · Download · Documentation · Plugins

Pinrail is a desktop app for working with coding agents. It runs them, tracks their work items, and brings everything that needs you, such as questions, permissions and reviews, into one inbox.

Pinrail with a code review open: the agent's findings on the diff, one accepted with a note to the agent and one rejected with a reason, and the other waiting reviews in the sidebar

Pinrail works with any agent that can run a command. It also starts and resumes Claude Code, Codex, OpenCode, Copilot CLI, Cursor, Grok CLI, Pi and Antigravity CLI, and shows their status. It runs on macOS, Linux and Windows. Pinrail is in early development, so expect rough edges and changes between releases.

What it does

  • It runs your agents. Start an agent from Pinrail, watch its terminal and type into it, send the agent messages, and stop and resume it. An agent keeps running when you quit the app, unless you choose to stop it.
  • It shows what each agent is doing. Each session shows whether its agent is working, needs you or has finished its turn, with a thread of the agent's questions, reviews, statuses and notes.
  • It tracks the work. You and your agents share work items, which have sub-items and dependencies. An agent takes the next item that is ready, and you can start an agent on an item from the item's panel.
  • It brings what needs you into one inbox. Questions, reviews and agents that wait for a permission or an answer come first. The updates from your agents follow.
  • It shows each review in a view made for the work. A code review shows the diff with the agent's findings on it. A set of generated images shows the images, and you draw a box on the part that should change. The agent gets back what you accepted, what you rejected and your notes, as Markdown it can act on or JSON for a script.
  • It keeps your data on your machine. The app serves its API on loopback only, and keeps your sessions, work items and reviews locally. It sends anonymous usage data and crash reports, which you can turn off.

How a review works

sequenceDiagram
  participant A as Your agent
  participant P as Pinrail
  A->>P: pinrail submit code-review --data review.json --wait
  Note over A: waits
  Note over P: you review and decide
  P->>A: your decision
  Note over A: carries on with it
Loading

When the agent reaches a step that needs you, it runs the pinrail command with a review: the plugin to show it with, a title and a JSON payload.

pinrail submit code-review --title "Retry failed webhook deliveries" \
  --data findings.json --wait

Pinrail notifies you, and the review waits in your inbox, grouped by project.

The inbox: reviews from several agents and projects, each with what it asks

You open it, and decide in the plugin's view. In the code review at the top of this page, you accept or reject each of the agent's findings, and write a note to the agent.

When you hand the review over, the command prints your decision and exits, and the agent carries on:

r_01K5R2 · decided · Retry failed webhook deliveries
code-review · decided by maya at 2026-09-23 10:14

- **#1 accepted** `src/deliver.ts:42` — The worker sleeps for up to 31 seconds per delivery (major)
  > Agreed. Re-enqueue with runAt = now + backoff(attempt)
- **#4 rejected** `src/log.ts:18` — The give-up log should say why (nit)
  > Fine as it is; the log already has the delivery id.

Undecided: #2, #3, #5

The command's exit code says how the review ended: decided, discarded with an instruction to stop, withdrawn or expired. When you ask for changes, the agent submits a new round, and the app shows your earlier verdicts beside it.

Getting started

  1. Install the app from the download page or the latest release. On macOS, it is signed and notarized.

  2. Click Set up Pinrail on the welcome screen that opens the first time. Pinrail installs the pinrail command, connects the agents it finds on your computer, and installs the recommended plugins.

  3. Start your first session from the setup's last screen, or ask an agent in your own terminal for something, in your own words:

    Ask me through Pinrail which TODOs in this repository to tackle first.

    Or ask it where Pinrail would help in your project:

    Look at this project and suggest where you should ask me through Pinrail before you act.

Your first review walks through this, and Instructing an agent shows how to make an agent ask at the steps you choose, every time.

Plugins

Each kind of review is a plugin: the payload an agent sends, the decision you give back, and the view you decide in. Five core plugins come with the app:

Plugin Review
code-review A diff with the agent's proposed review comments, each accepted, rejected or edited.
list Items grouped under headings, each accepted or rejected with a note.
feedback Questions answered in one pass: choices, yes or no, and free text.
markdown A document, such as a plan or a spec, read and commented on section by section.
image Generated images to choose between, with boxes and pins on what to change.
The image plugin: candidate illustrations, with a box drawn on the part to change The feedback plugin: questions with choices, yes or no, and a comment

Sample plugins in forgeplane/pinrail-plugins show what else a plugin can do. They cover HTML pages, emails, calendars, logos, colour palettes, 3D models, animations, audio, video, design canvases, before-and-after comparisons and trades. Each one is released as a zip, which you install in the app's Settings › Plugins.

The sample plugins in forgeplane/pinrail-plugins, each showing a review

Writing a plugin

A plugin is a manifest, two JSON schemas and an HTML view, with no build step needed. pinrail plugins new <name> creates one, and the plugin SDK, pinrail-sdk, runs its view in a browser without the app and tests it with Playwright. Views can also be built with React, Vue, Svelte or any other framework. See Writing a plugin.

Repository

Directory Contents
desktop/ The app: a Rust core (API, storage, plugins), a Tauri shell and a React UI.
cli/ The pinrail command that agents run.
plugins/ The core plugins.
sdk/ The plugin SDK, its development shell and its test harness.
skill/ The skill that teaches an agent to use Pinrail.
e2e/ End-to-end tests of the CLI and the app's UI against the headless core.
docs/ The documentation, published on the website.
website/ The website.

Development

Node and Zig are pinned in mise.toml, which mise install sets up, and Rust in rust-toolchain.toml, which rustup reads on its own.

mise run dev:desktop        # the app with live reload
mise run test               # every test suite
mise run lint               # rustfmt, clippy, the type check and the licences, as CI runs them

CONTRIBUTING.md describes each test suite and how to run it. Read it before you open a pull request. To report a vulnerability, follow SECURITY.md.

License

Pinrail is licensed under the Apache License 2.0. See NOTICE for the copyright and the third-party notices.

About

Human in the loop for agent workflows

Topics

Resources

Contributing

Security policy

Stars

69 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages