Install
Install with PiG
pig install npm:@manan_joshi/pi-session-planInstall with Pi
pi install npm:@manan_joshi/pi-session-planPackages run code with your permissions and influence agent behavior. Catalog inclusion is not a security audit. Review the source before installing a third-party package.
Pi manifest JSON
The pi field of package.json.
{
"extensions": [
"./session-plan.ts"
],
"changelogPath": "./CHANGELOG.md"
}README
Written by the package's publisher, shown as published in version 0.1.0 (README.md). PiG does not review it.
pi-session-plan
A tiny plan for the current Pi session.
The agent writes down what it promised to build. You see a small 2/4 done
widget above the editor. Press /todos to see the whole list. That's the whole idea.
It is a sticky note on the current session — not a project tracker.
The 10-second version
- Agent: calls
session_planto add, start, and finish deliverables. - Human: sees a quiet progress strip and can open
/todosanytime. - Pi: keeps the plan in the session branch, so reloads and compaction don't erase it.
- Beads: untouched. A
beadIdis only a link.
agent: session_plan add → update state=active → update state=done
human: /todos → inspect or edit the list
widget: plan 2/4 done
Good plan items are things like Build the search bar or Import bookmarks.
Bad plan items are commands like Run tests or Check lint.
Why this exists
Beads, GitHub issues, and Linear are durable work trackers. They answer "what does the project need?"
This plan answers a smaller question: "what did this session promise to do?"
It lives in the session branch, so it survives reloads, tree switches, and compaction without creating another database on disk.
What you get
- a
session_plantool for the agent - a small live widget showing
done/total - a
/todoscommand for the full view - optional cmux status, only when
CMUX_WORKSPACE_IDis present - no writes to Beads and no background daemons
Install
Once published:
pi install npm:@manan_joshi/pi-session-plan
For local testing:
pi install /path/to/pi-session-plan
If you still have the standalone ~/.pi/agent/extensions/session-plan.ts file,
remove it after installing this package. Otherwise Pi will load the same tool
twice.
For humans
Run /todos while a plan is active.
You will see a compact list like:
Session plan 01a1f734 — 2/4 done
❯ ✓ t1 Build the search bar
◐ t2 Import bookmarks
○ t3 Write the empty state
○ t4 Ship the settings page
Keys:
| Key | Action |
|---|---|
↑ / ↓ | move |
Enter | toggle done / planned |
s | mark active |
a | add a deliverable |
e | edit title |
b | link or clear a Beads id |
d | drop an item |
Esc | close |
Dropped items stay visible with a strikethrough-style marker. They can be restored by toggling them back.
The widget disappears when there is no active plan, so it does not become wallpaper.
For agents
Use session_plan to maintain a short list of user-visible deliverables.
Good items:
Build the search barImport bookmarksWrite the empty stateAdd share-sheet capture
Bad items:
Run typecheckRun testsCheck lintCommit and push
Verification commands are gates, not deliverables. Put them in your own working process, not in this plan.
Actions
| Action | Use |
|---|---|
set | create or replace the whole plan; requires replace=true if non-empty |
add | add one deliverable |
update | change title, state, note, or Beads link |
drop | mark an item as no longer planned |
read | return the current plan as text |
Example:
session_plan set:
- title: Build the search bar
- title: Import bookmarks
- title: Write the empty state
As work moves:
session_plan update id=t1 state=active
session_plan update id=t1 state=done
State model
| State | Meaning |
|---|---|
planned | committed but not started |
active | being worked on now |
done | delivered |
dropped | no longer planned; still visible for context |
Only one or two items should be active at a time. If everything is active, nothing is.
Beads boundary
A beadId is a reference only. This package never creates, updates, or closes
Beads issues. Beads remains the durable project tracker; session_plan is this
session's live state.
cmux
If CMUX_WORKSPACE_ID is set, the extension pushes a plan-<session> status pill
to the owning cmux workspace and clears it on shutdown or when no work remains.
cmux is optional; failures are ignored so they never break an agent turn.
License
MIT