pm-brief
v2026.6.14
Published
Token-budgeted agent briefs and next-work plans for pm workspaces
Downloads
1,336
Maintainers
Readme
pm-brief
pm-brief generates compact, deterministic project briefs for coding agents.
It turns pm items into an execution-oriented summary: what to work on next,
what is blocked, what context is stale, and which pm updates should be made.
Project management is context management. pm-brief makes that practical when
an agent needs a low-token handoff instead of a full project dump.
Install
pm install github.com/unbraind/pm-brief --projectUsage
pm brief
pm brief prompt --focus pm-1234 --max-tokens 2500
pm brief --max-tokens 4000 --format markdown
pm brief --dependency-order --format markdown
pm brief --focus pm-1234 --include-closed --format json
pm brief next --count 5 --dependency-order --explain --confidence
pm brief next --count 5 --format json
pm brief next --count 5 --explain --format text
pm brief stale --days 7Commands
pm briefrenders a markdown or JSON project brief.pm brief promptrenders a compact copy-pasteable agent handoff prompt.pm brief nextreturns the ranked next items only.pm brief stalereturns stale open or in-progress items.
Ranking and Budget Flags
--max-tokensis an alias for--token-budget.--dependency-orderprefers prerequisite items before dependent work in next-work ranking.pm brief next --explainadds transparent score and dependency signals for each ranked item.pm briefemits aBrief Insightssection when focus ids are missing, closed focus items are excluded, or active filters hide all open work.--explainonpm brief nextincludes compact ranking evidence such as unblockability, stale age, dependency fanout, release/deadline proximity, and linked docs/files.--confidenceonpm brief nextincludes the confidence score behind each recommendation.
Agent Brief Contents
- workspace and item counts
- top next items with
whyNowreasons - evidence-weighted next-work score, confidence, and ranking reasons
- blocker relationships and dependency context
- stale context findings
- decision items that need human or agent follow-up
- brief insights with actionable command hints when filters or focus ids need attention
- safe suggested pm commands, never auto-applied
- deterministic token-budget trimming
Agent Handoff Prompt
pm brief prompt turns the same structured brief into direct next-turn
instructions for coding agents: ranked work, focus context, blockers, risks,
safe pm commands, and working rules. It is designed for handoffs where the next
agent needs executable context rather than a full project dump.
TypeScript API
import { buildBrief, renderMarkdownBrief } from "pm-brief";
const brief = buildBrief(items, {
tokenBudget: 4000,
focusIds: ["pm-1234"],
generatedAt: "2026-06-06T00:00:00Z",
});
console.log(renderMarkdownBrief(brief));Release Readiness
This package uses TypeScript, pm-changelog, and the same daily release shape
as the other public pm packages. npm run release:check runs typecheck, build,
tests, production audit, dry-run packing, and changelog validation.
