omp packages

pi-factorio0.3.2

Questionnaires, subagents, and scriptable workflows for the Pi coding agent

ranalubis Published 21 hours ago MIT ~0 downloads/mo

Untested on omp

This is a pi package. No one has reported whether it works on omp yet. If you try it, add your result below.

Did it work for you?

Result

One report per person. A new report replaces your old one.

Reports 0

No reports yet.

Readme

Pi Factorio

Pi Factorio adds questionnaires, checklists, subagents, and reusable workflows to the Pi coding agent. Use it to make decisions with Pi, keep track of work, and delegate tasks without leaving your session.

MIT licensed · Changelog

Features

Feature What you can do
Questionnaires Ask Pi to present up to four multiple-choice questions in a single form.
Todo lists Track tasks in the current session and browse them with /todos.
Subagents Delegate to a project-defined agent with /subagents or from chat. View past runs with /subagent-runs.
Workflows Combine tools and agents in reusable JavaScript scripts. Launch them with /workflows and inspect runs with /workflow-runs.

Use /factorio-config to change Factorio settings.

Installation

You need Pi and Node.js 22.19 or newer. In your shell, run:

pi install npm:pi-factorio

Run pi from your project's directory, or type /reload if Pi is already open. In Pi, run /factorio-status to confirm Factorio loaded. For the examples below, select a model in Pi (use /login if you haven't set one up yet).

If you already use RPIV Todo, disable it first: both extensions provide todo and /todos.

Examples

Ask a question or track a checklist

Type either of these prompts in Pi:

Use questionnaire to ask me whether to run a quick check or the full test suite. Don't run anything yet.

Make a Todo checklist for reviewing this change, running the tests, and updating the docs.

Pick an answer in the question form. To browse the checklist, type /todos.

Delegate to a subagent

In a trusted project with a model selected in Pi, save this as .pi/extensions/pi-factorio/agents/reader.md:

---
name: reader
description: Summarize a project file
tools: [read]
extensions: []
defaultContext: fresh
---
Read the file named in the task and summarize it in three bullets. Do not modify files.

Type /subagents, pick reader, and enter Summarize README.md (or name another file). You can also ask Pi in chat: “Use the reader subagent to summarize README.md.”

Run a workflow

In the same project, save this as .pi/extensions/pi-factorio/workflows/read-preview.js:

export const meta = {
  name: "read-preview",
  description: "Show the first 200 characters of a file",
  isolated: true,
  tools: ["read"],
};

const result = await activity("read", { path: args?.path ?? "README.md" });
return result.content[0]?.text.slice(0, 200);

Type /workflows, select read-preview, and leave the arguments blank or enter {"path":"some-other-file.md"}. Only run scripts you trust.

Use Moshi or Herdr (optional)

  • Moshi: Install the Moshi Pi hook and restart Pi in a Moshi-connected terminal to answer questionnaires from your phone. For checklists in saved sessions, go to /factorio-config → Todo integrations → Moshi checklists → On, then /reload.
  • Herdr: With the Herdr Pi integration installed, Factorio adds activity details to Pi's existing status row automatically.