my-pi 0.1.8 → 0.1.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -7,9 +7,8 @@ Composable [pi](https://pi.dev) coding agent for humans and agents.
7
7
 
8
8
  Built on the
9
9
  [@mariozechner/pi-coding-agent](https://github.com/badlogic/pi-mono)
10
- SDK. Adds MCP server support, extension stacking, LSP tools, agent
11
- chains, prompt presets, local SQLite telemetry for evals, and a
12
- programmatic API.
10
+ SDK. Adds MCP server support, extension stacking, LSP tools, prompt
11
+ presets, local SQLite telemetry for evals, and a programmatic API.
13
12
 
14
13
  Extension stacking patterns inspired by
15
14
  [pi-vs-claude-code](https://github.com/disler/pi-vs-claude-code).
@@ -22,16 +21,14 @@ Extension stacking patterns inspired by
22
21
  `mcp.json`, auto-registered as Pi tools.
23
22
  - **Built-in LSP tools** — diagnostics, hover, definitions,
24
23
  references, and document symbols via language servers.
25
- - **Agent chains** — sequential scout/plan style workflows defined in
26
- `.pi/agents/agent-chain.yaml`.
27
24
  - **Managed skills** — discover, enable, disable, import, and sync
28
25
  Pi-native skills.
29
26
  - **Prompt presets** — base presets plus additive prompt layers with
30
27
  per-project persistence.
31
28
  - **Secret redaction** — redact API keys and other sensitive output
32
29
  before the model sees tool results.
33
- - **Session handoff + recall** export focused handoff markdown and
34
- teach the model to use `pirecall` for prior-session context.
30
+ - **Recall** teach the model to use `pirecall` for prior-session
31
+ context.
35
32
  - **Local telemetry** — optional SQLite telemetry for evals, tool
36
33
  analysis, and operational debugging.
37
34
  - **Bundled themes + extension stacking** — ship defaults, then layer
@@ -85,10 +82,9 @@ Outputs NDJSON events — one JSON object per line — for programmatic
85
82
  consumption by other agents or scripts.
86
83
 
87
84
  In non-interactive modes (`"prompt"`, `-P`, `--json`), my-pi keeps
88
- headless-capable built-ins like MCP, LSP, chains, prompt presets,
89
- recall, hooks, and secret filtering enabled, while skipping UI-only
90
- built-ins like handoff, confirm-destructive, session auto-naming, and
91
- working-indicator customization.
85
+ headless-capable built-ins like MCP, LSP, prompt presets, recall,
86
+ hooks, and secret filtering enabled, while skipping UI-only built-ins
87
+ like session auto-naming.
92
88
 
93
89
  ### Local telemetry (SQLite)
94
90
 
@@ -361,13 +357,9 @@ In interactive mode:
361
357
  - `/prompt-preset reset <name>` — remove a project-local override and
362
358
  fall back to user/built-in if available
363
359
  - `/prompt-preset clear` — clear the active base preset and all layers
364
- - `/chain` — inspect or switch the active agent chain
365
- - `/agents` — list discovered agent definitions
366
360
  - `/lsp status|list|restart` — inspect or restart language server
367
361
  state
368
362
  - `/redact-stats` — show how many secrets were redacted this session
369
- - `/handoff <task>` — export current context to a handoff markdown
370
- file
371
363
  - `/telemetry status|stats|query|export|on|off|path` — inspect, query,
372
364
  export, or toggle local SQLite telemetry
373
365
 
@@ -384,36 +376,6 @@ In interactive mode:
384
376
  persisted in `~/.config/my-pi/extensions.json`
385
377
  8. Cleanup on `session_shutdown`
386
378
 
387
- ## Agent Chains
388
-
389
- Define sequential agent pipelines in `.pi/agents/agent-chain.yaml`:
390
-
391
- ```yaml
392
- scout-plan:
393
- description: 'Scout the codebase then plan implementation'
394
- steps:
395
- - agent: scout
396
- prompt: 'Explore and analyze: $INPUT'
397
- - agent: planner
398
- prompt: 'Based on this analysis, create a plan:\n\n$INPUT'
399
- ```
400
-
401
- Agent definitions live in `.pi/agents/*.md` with frontmatter:
402
-
403
- ```markdown
404
- ---
405
- name: scout
406
- description: Codebase exploration and analysis
407
- tools: read,grep,find,ls
408
- ---
409
-
410
- You are a scout agent. Explore the codebase and report findings.
411
- ```
412
-
413
- The chain extension injects context into the system prompt so the LLM
414
- knows when and how to use `run_chain`. Use `/chain` to switch active
415
- chains and `/agents` to list available agents.
416
-
417
379
  ## Secret Redaction
418
380
 
419
381
  The filter-output extension automatically redacts secrets (API keys,
@@ -534,17 +496,6 @@ The recall package nudges the model to use `pnpx pirecall` or
534
496
  project context would help. It also triggers `pirecall sync --json` on
535
497
  session start and shutdown when the local recall database exists.
536
498
 
537
- ## Session Handoff
538
-
539
- Use `/handoff <task>` to export conversation context as a markdown
540
- file that can be piped into a new session:
541
-
542
- ```bash
543
- # In session 1: /handoff continue the auth refactor
544
- # Then:
545
- pnpx my-pi@latest < handoff-1234567890.md
546
- ```
547
-
548
499
  ## Reusable Pi packages
549
500
 
550
501
  This repo is a pnpm workspace. The `my-pi` harness depends on reusable
@@ -556,6 +507,7 @@ pi install npm:@spences10/pi-redact
556
507
  pi install npm:@spences10/pi-telemetry
557
508
  pi install npm:@spences10/pi-mcp
558
509
  pi install npm:@spences10/pi-lsp
510
+ pi install npm:@spences10/pi-confirm-destructive
559
511
  pi install npm:@spences10/pi-skills
560
512
  pi install npm:@spences10/pi-recall
561
513
  pi install npm:@spences10/pi-nopeek
@@ -569,6 +521,8 @@ pi install npm:@spences10/pi-nopeek
569
521
  integration and `/mcp`
570
522
  - [`@spences10/pi-lsp`](./packages/pi-lsp/README.md) — LSP-backed
571
523
  diagnostics and symbol tools
524
+ - [`@spences10/pi-confirm-destructive`](./packages/pi-confirm-destructive/README.md)
525
+ — destructive action confirmations
572
526
  - [`@spences10/pi-skills`](./packages/pi-skills/README.md) — skill
573
527
  management, import, and sync
574
528
  - [`@spences10/pi-recall`](./packages/pi-recall/README.md) — pirecall
@@ -587,25 +541,19 @@ src/
587
541
  api.ts Programmatic API (create_my_pi + re-exports)
588
542
  extensions/
589
543
  manager/ Built-in extension manager and config
590
- chain/ Agent chain pipelines
591
- handoff/ Session context export
592
544
  prompt-presets/ Runtime prompt preset selection and editing
593
545
  session-name/ Session auto-naming
594
- confirm-destructive/ Destructive action confirmations
595
546
  hooks-resolution/ Claude-style hook resolution
596
- working-indicator/ Streaming indicator customization
597
547
  packages/
598
548
  pi-redact/ Installable Pi package for output redaction
599
549
  pi-telemetry/ Installable Pi package for SQLite telemetry
600
550
  pi-mcp/ Installable Pi package for MCP integration
601
551
  pi-lsp/ Installable Pi package for LSP tools
552
+ pi-confirm-destructive/ Installable Pi package for destructive action confirmations
602
553
  pi-skills/ Installable Pi package for skill management
603
554
  pi-recall/ Installable Pi package for pirecall reminders
604
555
  pi-nopeek/ Installable Pi package for nopeek reminders
605
556
  .pi/
606
- agents/
607
- *.md Agent definitions (frontmatter + system prompt)
608
- agent-chain.yaml Chain pipeline definitions
609
557
  presets.json Optional project prompt presets (JSON)
610
558
  presets/*.md Optional project prompt presets (Markdown files)
611
559
  mcp.json Project MCP server config