@pasko70/pibo 1.9.13 → 1.10.0

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.
Files changed (139) hide show
  1. package/README.md +183 -183
  2. package/context/codex-base-prompt.md +148 -148
  3. package/context/compute-worker.md +23 -23
  4. package/context/pibo-compaction-prompt.md +100 -100
  5. package/context/pibo-native-tooling.md +18 -18
  6. package/context/pibo-system-prompt.md +77 -77
  7. package/dist/apps/chat/agent-profiles.js +2 -2
  8. package/dist/apps/chat/agent-store.js +263 -250
  9. package/dist/apps/chat/chat-request-normalizers.js +10 -0
  10. package/dist/apps/chat/data/project-service.js +168 -168
  11. package/dist/apps/chat/data/read-state-service.js +18 -18
  12. package/dist/apps/chat/data/session-query-service.js +25 -25
  13. package/dist/apps/chat/data/timeline-query-service.js +19 -19
  14. package/dist/apps/chat/loop-api.js +176 -0
  15. package/dist/apps/chat/static-assets.js +854 -854
  16. package/dist/apps/chat/web-app.js +6 -6
  17. package/dist/apps/chat/workflow-manual-trigger-runtime.js +149 -46
  18. package/dist/apps/chat/workflow-persistence.js +255 -255
  19. package/dist/apps/chat-ui/assets/{dist-yCYNNb5d.js → dist-BwKObYnX.js} +1 -1
  20. package/dist/apps/chat-ui/assets/{dist-BCB6zezO.js → dist-CKtT8YGm.js} +1 -1
  21. package/dist/apps/chat-ui/assets/{dist-CnVsqwSG.js → dist-CS7wdk0Z.js} +1 -1
  22. package/dist/apps/chat-ui/assets/{dist-HqTN67dc.js → dist-D-cxLQO1.js} +1 -1
  23. package/dist/apps/chat-ui/assets/{dist-BNMu92bb.js → dist-DUlaXAk7.js} +1 -1
  24. package/dist/apps/chat-ui/assets/{dist-CzE6k3F3.js → dist-DlATLa-U.js} +1 -1
  25. package/dist/apps/chat-ui/assets/{dist-Dq4GxJi3.js → dist-GdEM8UW1.js} +1 -1
  26. package/dist/apps/chat-ui/assets/{dist-BZ2eTC4f.js → dist-LHRs1Nhr.js} +1 -1
  27. package/dist/apps/chat-ui/assets/{dist-D811wJeV.js → dist-Y-AA2omI.js} +1 -1
  28. package/dist/apps/chat-ui/assets/{dist-WyXdYl-w.js → dist-nOLTkZrJ.js} +1 -1
  29. package/dist/apps/chat-ui/assets/{dist-BHa-kcGl.js → dist-wE9nop9V.js} +1 -1
  30. package/dist/apps/chat-ui/assets/{index-DwHJfmiF.js → index-8W_yMHQI.js} +6 -6
  31. package/dist/apps/chat-ui/index.html +17 -17
  32. package/dist/apps/chat-ui/manifest.webmanifest +25 -25
  33. package/dist/apps/chat-ui/sw.js +47 -47
  34. package/dist/apps/chat-vscode-web/index.html +12 -12
  35. package/dist/apps/cli-ui/cliSessionsCommand.js +23 -23
  36. package/dist/apps/context-files-ui/index.html +11 -11
  37. package/dist/cli.js +61 -44
  38. package/dist/compute/cli.js +54 -54
  39. package/dist/core/routed-session.js +30 -1
  40. package/dist/core/runtime.js +6 -1
  41. package/dist/core/session-router.js +4 -2
  42. package/dist/cron/cli.js +15 -15
  43. package/dist/cron/store.js +49 -49
  44. package/dist/data/cli.js +23 -23
  45. package/dist/data/event-log.js +23 -23
  46. package/dist/data/message-store.js +27 -27
  47. package/dist/data/navigation-store.js +9 -9
  48. package/dist/data/observation-store.js +4 -4
  49. package/dist/data/payload-store.js +17 -17
  50. package/dist/data/schema.js +433 -433
  51. package/dist/data/session-store.js +4 -4
  52. package/dist/data/telemetry-queries.js +54 -54
  53. package/dist/data/telemetry.js +197 -197
  54. package/dist/debug/events.js +12 -12
  55. package/dist/debug/failures.js +6 -6
  56. package/dist/debug/index.js +227 -227
  57. package/dist/debug/messages.js +6 -6
  58. package/dist/debug/pty.js +124 -124
  59. package/dist/debug/session.js +29 -29
  60. package/dist/debug/tools.js +5 -5
  61. package/dist/debug/web-snapshot-browser-scripts.js +294 -294
  62. package/dist/debug/web-streaming-browser-library.js +925 -925
  63. package/dist/debug/web-streaming-browser-scripts.js +232 -232
  64. package/dist/debug/web-streaming-provider-telemetry.js +4 -4
  65. package/dist/debug/web.js +93 -93
  66. package/dist/gateway/cli.js +19 -19
  67. package/dist/gateway/server.js +4 -2
  68. package/dist/gateway/web.js +2 -2
  69. package/dist/loops/channel.js +8 -0
  70. package/dist/loops/cli.js +208 -0
  71. package/dist/loops/plugin.js +16 -0
  72. package/dist/loops/prompts.js +83 -0
  73. package/dist/loops/service.js +357 -0
  74. package/dist/loops/stopping.js +170 -0
  75. package/dist/loops/store.js +531 -0
  76. package/dist/loops/templates.js +232 -0
  77. package/dist/loops/tools.js +167 -0
  78. package/dist/loops/types.js +1 -0
  79. package/dist/mcp/config-command.js +53 -53
  80. package/dist/mcp/index.js +21 -21
  81. package/dist/mcp/registry.js +11 -11
  82. package/dist/pi-packages/cli.js +11 -11
  83. package/dist/plugins/builtin.js +8 -0
  84. package/dist/plugins/context-files-store.js +110 -110
  85. package/dist/plugins/context-files.js +4 -4
  86. package/dist/plugins/registry.js +23 -12
  87. package/dist/ralph/cli.js +18 -18
  88. package/dist/ralph/templates.js +140 -140
  89. package/dist/reliability/store.js +226 -226
  90. package/dist/sessions/pibo-data-store.js +16 -16
  91. package/dist/sessions/sqlite-store.js +53 -53
  92. package/dist/setup/cli.js +58 -58
  93. package/dist/tools/agent-browser-wrapper.js +80 -80
  94. package/dist/tools/browser-use-cdp.js +12 -12
  95. package/dist/tools/browser-use-wrapper.js +762 -762
  96. package/dist/tools/guides.js +589 -538
  97. package/dist/tools/index.js +122 -99
  98. package/dist/tools/registry.js +21 -3
  99. package/dist/tools/runtime/node-worker-source.js +205 -205
  100. package/dist/tools/runtime/python-worker-source.js +177 -177
  101. package/dist/vscode/cli.js +9 -9
  102. package/dist/web-annotations/cdp.js +900 -900
  103. package/dist/web-annotations/store.js +96 -96
  104. package/docs/README.md +23 -23
  105. package/docs/ops/install-developer-host.md +112 -112
  106. package/docs/ops/install-user-host.md +96 -96
  107. package/docs/ops/upgrade-user-to-developer-host.md +69 -69
  108. package/docs/ops/vscode-extension-release.md +160 -160
  109. package/package.json +98 -95
  110. package/skills/builtin/graphify/SKILL.md +52 -52
  111. package/skills/builtin/loop/SKILL.md +69 -0
  112. package/skills/builtin/pi-agent-harness/SKILL.md +319 -319
  113. package/skills/builtin/pi-agent-harness/agents/openai.yaml +4 -4
  114. package/skills/builtin/pibo-docker-system/SKILL.md +170 -170
  115. package/skills/builtin/pibo-spec-writing/SKILL.md +330 -330
  116. package/skills/builtin/prd/SKILL.md +143 -143
  117. package/skills/builtin/ralph-loop/SKILL.md +361 -359
  118. package/skills/builtin/ralph-prd-json/SKILL.md +123 -123
  119. package/skills/builtin/skill-creator/LICENSE.txt +201 -201
  120. package/skills/builtin/skill-creator/SKILL.md +513 -513
  121. package/skills/builtin/skill-creator/agents/analyzer.md +274 -274
  122. package/skills/builtin/skill-creator/agents/comparator.md +202 -202
  123. package/skills/builtin/skill-creator/agents/grader.md +223 -223
  124. package/skills/builtin/skill-creator/assets/eval_review.html +146 -146
  125. package/skills/builtin/skill-creator/eval-viewer/generate_review.py +471 -471
  126. package/skills/builtin/skill-creator/eval-viewer/viewer.html +1325 -1325
  127. package/skills/builtin/skill-creator/references/schemas.md +430 -430
  128. package/skills/builtin/skill-creator/scripts/aggregate_benchmark.py +401 -401
  129. package/skills/builtin/skill-creator/scripts/generate_report.py +326 -326
  130. package/skills/builtin/skill-creator/scripts/improve_description.py +247 -247
  131. package/skills/builtin/skill-creator/scripts/package_skill.py +136 -136
  132. package/skills/builtin/skill-creator/scripts/quick_validate.py +102 -102
  133. package/skills/builtin/skill-creator/scripts/run_eval.py +310 -310
  134. package/skills/builtin/skill-creator/scripts/run_loop.py +328 -328
  135. package/skills/builtin/skill-creator/scripts/utils.py +47 -47
  136. package/skills/builtin/web-annotations/SKILL.md +93 -93
  137. package/src/mcp/LICENSE.mcp-cli +21 -21
  138. package/dist/apps/vscode-artifacts/latest.vsix +0 -0
  139. package/dist/apps/vscode-artifacts/pibo-vscode-ext-1.9.13.vsix +0 -0
package/package.json CHANGED
@@ -1,95 +1,98 @@
1
- {
2
- "name": "@pasko70/pibo",
3
- "version": "1.9.13",
4
- "type": "module",
5
- "imports": {
6
- "vscode": "./src/apps/chat-vscode/extension/src/vscode-shim.js"
7
- },
8
- "description": "Minimal TypeScript wrapper around Pi Coding Agent.",
9
- "files": [
10
- "dist",
11
- "context",
12
- "skills/builtin/**",
13
- "docs/ops/**",
14
- "README.md",
15
- "src/mcp/LICENSE.mcp-cli"
16
- ],
17
- "bin": {
18
- "pibo": "dist/bin/pibo.js",
19
- "rg": "dist/bin/rg.js"
20
- },
21
- "engines": {
22
- "node": ">=24"
23
- },
24
- "scripts": {
25
- "dev": "tsx src/bin/pibo.ts",
26
- "profile": "tsx src/bin/pibo.ts profile",
27
- "tui": "tsx src/bin/pibo.ts tui",
28
- "tui:routed": "tsx src/bin/pibo.ts tui:routed",
29
- "tui:gateway": "tsx src/bin/pibo.ts tui gateway-producer",
30
- "gateway": "tsx src/bin/pibo.ts gateway",
31
- "gateway:web": "npm run web-ui:build && tsx src/bin/pibo.ts gateway:web",
32
- "client": "tsx src/bin/pibo.ts client",
33
- "chat-ui:build": "vite build --config src/apps/chat-ui/vite.config.ts",
34
- "chat-ui:typecheck": "tsc -p src/apps/chat-ui/tsconfig.json --noEmit",
35
- "context-files-ui:build": "vite build --config src/apps/context-files-ui/vite.config.ts",
36
- "context-files-ui:typecheck": "tsc -p src/apps/context-files-ui/tsconfig.json --noEmit",
37
- "web-ui:build": "npm run chat-ui:build && npm run context-files-ui:build",
38
- "vscode:typecheck": "tsc -p src/apps/chat-vscode/extension/tsconfig.json --noEmit && tsc -p src/apps/chat-vscode/extension/webview/tsconfig.json --noEmit",
39
- "vscode:webview:build": "vite build --config src/apps/chat-vscode/extension/webview/vite.config.ts",
40
- "vscode:extension:build": "esbuild src/apps/chat-vscode/extension/src/extension.ts --bundle --platform=node --target=node24 --format=cjs --outfile=src/apps/chat-vscode/dist/extension/extension.cjs --external:vscode --sourcemap=inline",
41
- "vscode:package": "node scripts/vscode-package.mjs",
42
- "release": "node scripts/release.mjs",
43
- "release:github": "node scripts/create-github-release.mjs",
44
- "build": "tsc -p tsconfig.json && npm run web-ui:build && npm run vscode:webview:build && node scripts/ensure-bin-executable.mjs",
45
- "start": "node dist/bin/pibo.js",
46
- "test": "npm run build && node --test test/*.test.mjs test/chat-vscode/*.test.mjs",
47
- "check:product-vocab": "node scripts/legacy-product-vocabulary-gate.mjs",
48
- "validate:ink-web-derived": "node scripts/ink-cli-web-derived-parity-validate.mjs",
49
- "compute:limited-worker-smoke": "node scripts/compute-limited-worker-smoke.mjs",
50
- "typecheck": "tsc -p tsconfig.json --noEmit && npm run chat-ui:typecheck && npm run context-files-ui:typecheck && npm run vscode:typecheck",
51
- "clean": "node -e \"fs.rmSync('dist', { recursive: true, force: true })\"",
52
- "prepack": "npm run build"
53
- },
54
- "dependencies": {
55
- "@earendil-works/pi-agent-core": "0.80.6",
56
- "@earendil-works/pi-ai": "0.80.6",
57
- "@earendil-works/pi-coding-agent": "0.80.6",
58
- "@earendil-works/pi-tui": "0.80.6",
59
- "@mdxeditor/editor": "^3.55.0",
60
- "@modelcontextprotocol/sdk": "^1.29.0",
61
- "@tailwindcss/vite": "^4.2.4",
62
- "@tanstack/react-query": "^5.100.7",
63
- "@tanstack/react-router": "^1.168.25",
64
- "@tanstack/react-start": "^1.167.50",
65
- "@uiw/react-json-view": "^2.0.0-alpha.41",
66
- "@vscode/ripgrep": "^1.18.0",
67
- "@xyflow/react": "12.10.2",
68
- "better-auth": "^1.6.9",
69
- "commander": "^14.0.3",
70
- "ink": "^7.0.3",
71
- "lexical": "^0.35.0",
72
- "lucide-react": "^0.545.0",
73
- "prismjs": "^1.30.0",
74
- "react": "^19.2.5",
75
- "react-dom": "^19.2.5",
76
- "react-markdown": "^10.1.0",
77
- "react-virtuoso": "^4.18.6",
78
- "remark-gfm": "^4.0.1",
79
- "tailwindcss": "^4.2.4"
80
- },
81
- "devDependencies": {
82
- "@tanstack/router-plugin": "^1.167.28",
83
- "@types/node": "^25.6.0",
84
- "@types/prismjs": "^1.26.6",
85
- "@types/react": "^19.2.14",
86
- "@types/react-dom": "^19.2.3",
87
- "@vitejs/plugin-react": "^6.0.1",
88
- "@vscode/vsce": "^3.6.0",
89
- "esbuild": "^0.27.7",
90
- "tsx": "^4.21.0",
91
- "typescript": "^6.0.3",
92
- "vite": "^8.0.10",
93
- "vite-tsconfig-paths": "^5.1.4"
94
- }
95
- }
1
+ {
2
+ "name": "@pasko70/pibo",
3
+ "version": "1.10.0",
4
+ "type": "module",
5
+ "imports": {
6
+ "vscode": "./src/apps/chat-vscode/extension/src/vscode-shim.js"
7
+ },
8
+ "description": "Minimal TypeScript wrapper around Pi Coding Agent.",
9
+ "files": [
10
+ "dist",
11
+ "context",
12
+ "skills/builtin/**",
13
+ "docs/ops/**",
14
+ "README.md",
15
+ "src/mcp/LICENSE.mcp-cli"
16
+ ],
17
+ "bin": {
18
+ "pibo": "dist/bin/pibo.js",
19
+ "rg": "dist/bin/rg.js"
20
+ },
21
+ "engines": {
22
+ "node": ">=24"
23
+ },
24
+ "scripts": {
25
+ "dev": "tsx src/bin/pibo.ts",
26
+ "profile": "tsx src/bin/pibo.ts profile",
27
+ "tui": "tsx src/bin/pibo.ts tui",
28
+ "tui:routed": "tsx src/bin/pibo.ts tui:routed",
29
+ "tui:gateway": "tsx src/bin/pibo.ts tui gateway-producer",
30
+ "gateway": "tsx src/bin/pibo.ts gateway",
31
+ "gateway:web": "npm run web-ui:build && tsx src/bin/pibo.ts gateway:web",
32
+ "client": "tsx src/bin/pibo.ts client",
33
+ "chat-ui:build": "vite build --config src/apps/chat-ui/vite.config.ts",
34
+ "chat-ui:typecheck": "tsc -p src/apps/chat-ui/tsconfig.json --noEmit",
35
+ "context-files-ui:build": "vite build --config src/apps/context-files-ui/vite.config.ts",
36
+ "context-files-ui:typecheck": "tsc -p src/apps/context-files-ui/tsconfig.json --noEmit",
37
+ "web-ui:build": "npm run chat-ui:build && npm run context-files-ui:build",
38
+ "vscode:typecheck": "tsc -p src/apps/chat-vscode/extension/tsconfig.json --noEmit && tsc -p src/apps/chat-vscode/extension/webview/tsconfig.json --noEmit",
39
+ "vscode:webview:build": "vite build --config src/apps/chat-vscode/extension/webview/vite.config.ts",
40
+ "vscode:extension:build": "esbuild src/apps/chat-vscode/extension/src/extension.ts --bundle --platform=node --target=node24 --format=cjs --outfile=src/apps/chat-vscode/dist/extension/extension.cjs --external:vscode --sourcemap=inline",
41
+ "vscode:package": "node scripts/vscode-package.mjs",
42
+ "release": "node scripts/release.mjs",
43
+ "release:github": "node scripts/create-github-release.mjs",
44
+ "build": "tsc -p tsconfig.json && npm run web-ui:build && npm run vscode:webview:build && node scripts/ensure-bin-executable.mjs",
45
+ "start": "node dist/bin/pibo.js",
46
+ "test": "npm run build && node --test test/*.test.mjs test/chat-vscode/*.test.mjs",
47
+ "check:product-vocab": "node scripts/legacy-product-vocabulary-gate.mjs",
48
+ "validate:ink-web-derived": "node scripts/ink-cli-web-derived-parity-validate.mjs",
49
+ "compute:limited-worker-smoke": "node scripts/compute-limited-worker-smoke.mjs",
50
+ "typecheck": "tsc -p tsconfig.json --noEmit && npm run chat-ui:typecheck && npm run context-files-ui:typecheck && npm run vscode:typecheck",
51
+ "clean": "node -e \"fs.rmSync('dist', { recursive: true, force: true })\"",
52
+ "prepack": "npm run build"
53
+ },
54
+ "dependencies": {
55
+ "@earendil-works/pi-agent-core": "0.80.6",
56
+ "@earendil-works/pi-ai": "0.80.6",
57
+ "@earendil-works/pi-coding-agent": "0.80.6",
58
+ "@earendil-works/pi-tui": "0.80.6",
59
+ "@langchain/core": "^1.2.3",
60
+ "@langchain/langgraph": "^1.4.8",
61
+ "@mdxeditor/editor": "^3.55.0",
62
+ "@modelcontextprotocol/sdk": "^1.29.0",
63
+ "@tailwindcss/vite": "^4.2.4",
64
+ "@tanstack/react-query": "^5.100.7",
65
+ "@tanstack/react-router": "^1.168.25",
66
+ "@tanstack/react-start": "^1.167.50",
67
+ "@uiw/react-json-view": "^2.0.0-alpha.41",
68
+ "@vscode/ripgrep": "^1.18.0",
69
+ "@xyflow/react": "12.10.2",
70
+ "better-auth": "^1.6.9",
71
+ "commander": "^14.0.3",
72
+ "ink": "^7.0.3",
73
+ "lexical": "^0.35.0",
74
+ "lucide-react": "^0.545.0",
75
+ "prismjs": "^1.30.0",
76
+ "react": "^19.2.5",
77
+ "react-dom": "^19.2.5",
78
+ "react-markdown": "^10.1.0",
79
+ "react-virtuoso": "^4.18.6",
80
+ "remark-gfm": "^4.0.1",
81
+ "tailwindcss": "^4.2.4",
82
+ "zod": "4.4.1"
83
+ },
84
+ "devDependencies": {
85
+ "@tanstack/router-plugin": "^1.167.28",
86
+ "@types/node": "^25.6.0",
87
+ "@types/prismjs": "^1.26.6",
88
+ "@types/react": "^19.2.14",
89
+ "@types/react-dom": "^19.2.3",
90
+ "@vitejs/plugin-react": "^6.0.1",
91
+ "@vscode/vsce": "^3.6.0",
92
+ "esbuild": "^0.27.7",
93
+ "tsx": "^4.21.0",
94
+ "typescript": "^6.0.3",
95
+ "vite": "^8.0.10",
96
+ "vite-tsconfig-paths": "^5.1.4"
97
+ }
98
+ }
@@ -1,52 +1,52 @@
1
- ---
2
- name: graphify
3
- description: Use this skill when a user asks to graph, map, or visualize a codebase/workspace with Graphify and inspect the generated graphify-out/graph.html, graphify-out/graph.json, or graphify-out/GRAPH_REPORT.md artifacts.
4
- ---
5
-
6
- # Graphify Codebase Visualization
7
-
8
- Use Graphify to turn a workspace folder into an interactive knowledge graph and report. Prefer this skill for requests like "graph this repo", "visualize this codebase", "map the workspace", or "show me the project structure as a graph".
9
-
10
- ## Prerequisites
11
-
12
- Graphify is exposed as a curated Pibo CLI tool:
13
-
14
- ```bash
15
- pibo tools show graphify
16
- pibo tools install graphify
17
- eval "$(pibo tools env graphify)"
18
- ```
19
-
20
- Inside the Pibo source repo while testing local changes, use:
21
-
22
- ```bash
23
- npm run --silent dev -- tools show graphify
24
- npm run --silent dev -- tools install graphify
25
- eval "$(npm run --silent dev -- tools env graphify)"
26
- ```
27
-
28
- The Pibo installer uses the PyPI package `graphifyy` and runs `graphify install --platform pi` after installing the CLI.
29
-
30
- ## Workflow
31
-
32
- 1. Identify the workspace path from the active Pibo Room/session context or from the user's request.
33
- 2. Confirm the path is inside the intended workspace boundary before graphing.
34
- 3. Prefer an ignored artifact directory for generated files when possible. If you generate in the repo root, check `git status --short` before and after.
35
- 4. Run Graphify on the selected folder. With `graphifyy==0.9.x`, `graphify .` writes extraction output under `graphify-out/`.
36
- 5. If you need an HTML graph and markdown report from a code-only extraction without an LLM key, run `graphify cluster-only . --no-label` after `graphify .`.
37
- 6. Read `graphify-out/GRAPH_REPORT.md` first for the summary, then open `graphify-out/graph.html` when the user wants an interactive view.
38
-
39
- ```bash
40
- cd /path/to/workspace
41
- graphify .
42
- graphify cluster-only . --no-label
43
- ls graphify-out/graph.html graphify-out/graph.json graphify-out/GRAPH_REPORT.md
44
- ```
45
-
46
- ## Operating rules
47
-
48
- - Treat `graphify-out/graph.html`, `graphify-out/graph.json`, and `graphify-out/GRAPH_REPORT.md` as derived artifacts unless the user explicitly wants them committed.
49
- - Code-only extraction can run without an LLM API key. Including docs, README files, papers, images, or semantic-labeling steps may require a configured Graphify backend/API key; if no key is available, graph a code-only subdirectory or skip semantic labels with `cluster-only . --no-label`.
50
- - For large monorepos, start with a focused subdirectory such as `src/`, a code package, or a docs folder only when the needed LLM backend is configured.
51
- - Re-run Graphify on demand after branch or workspace changes; do not assume an old graph is current.
52
- - If Graphify is unavailable, report the missing install and suggest `pibo tools install graphify` rather than hand-writing a replacement graph.
1
+ ---
2
+ name: graphify
3
+ description: Use this skill when a user asks to graph, map, or visualize a codebase/workspace with Graphify and inspect the generated graphify-out/graph.html, graphify-out/graph.json, or graphify-out/GRAPH_REPORT.md artifacts.
4
+ ---
5
+
6
+ # Graphify Codebase Visualization
7
+
8
+ Use Graphify to turn a workspace folder into an interactive knowledge graph and report. Prefer this skill for requests like "graph this repo", "visualize this codebase", "map the workspace", or "show me the project structure as a graph".
9
+
10
+ ## Prerequisites
11
+
12
+ Graphify is exposed as a curated Pibo CLI tool:
13
+
14
+ ```bash
15
+ pibo tools show graphify
16
+ pibo tools install graphify
17
+ eval "$(pibo tools env graphify)"
18
+ ```
19
+
20
+ Inside the Pibo source repo while testing local changes, use:
21
+
22
+ ```bash
23
+ npm run --silent dev -- tools show graphify
24
+ npm run --silent dev -- tools install graphify
25
+ eval "$(npm run --silent dev -- tools env graphify)"
26
+ ```
27
+
28
+ The Pibo installer uses the PyPI package `graphifyy` and runs `graphify install --platform pi` after installing the CLI.
29
+
30
+ ## Workflow
31
+
32
+ 1. Identify the workspace path from the active Pibo Room/session context or from the user's request.
33
+ 2. Confirm the path is inside the intended workspace boundary before graphing.
34
+ 3. Prefer an ignored artifact directory for generated files when possible. If you generate in the repo root, check `git status --short` before and after.
35
+ 4. Run Graphify on the selected folder. With `graphifyy==0.9.x`, `graphify .` writes extraction output under `graphify-out/`.
36
+ 5. If you need an HTML graph and markdown report from a code-only extraction without an LLM key, run `graphify cluster-only . --no-label` after `graphify .`.
37
+ 6. Read `graphify-out/GRAPH_REPORT.md` first for the summary, then open `graphify-out/graph.html` when the user wants an interactive view.
38
+
39
+ ```bash
40
+ cd /path/to/workspace
41
+ graphify .
42
+ graphify cluster-only . --no-label
43
+ ls graphify-out/graph.html graphify-out/graph.json graphify-out/GRAPH_REPORT.md
44
+ ```
45
+
46
+ ## Operating rules
47
+
48
+ - Treat `graphify-out/graph.html`, `graphify-out/graph.json`, and `graphify-out/GRAPH_REPORT.md` as derived artifacts unless the user explicitly wants them committed.
49
+ - Code-only extraction can run without an LLM API key. Including docs, README files, papers, images, or semantic-labeling steps may require a configured Graphify backend/API key; if no key is available, graph a code-only subdirectory or skip semantic labels with `cluster-only . --no-label`.
50
+ - For large monorepos, start with a focused subdirectory such as `src/`, a code package, or a docs folder only when the needed LLM backend is configured.
51
+ - Re-run Graphify on demand after branch or workspace changes; do not assume an old graph is current.
52
+ - If Graphify is unavailable, report the missing install and suggest `pibo tools install graphify` rather than hand-writing a replacement graph.
@@ -0,0 +1,69 @@
1
+ ---
2
+ name: loop
3
+ description: Plan, create, run, monitor, resume, and review Pibo Goal Loops and legacy Ralph loops. Use whenever the user asks for a persistent goal, continuous loop, autonomous multi-turn objective, token-budgeted goal, Loop job, Goal status, blocked Goal, or the pibo loop CLI.
4
+ ---
5
+
6
+ # Pibo Loop Workflow
7
+
8
+ Use Goal mode for persistent objectives that should continue in the same Pibo Session. Use legacy Ralph mode only when each run should start with fresh session context.
9
+
10
+ Discover the live CLI progressively:
11
+
12
+ ```bash
13
+ pibo loop --help
14
+ pibo loop add --help
15
+ pibo loop templates --json
16
+ pibo loop conditions
17
+ ```
18
+
19
+ ## Goal lifecycle
20
+
21
+ Goal-capable profiles expose native tools:
22
+
23
+ - `get_goal`: inspect authoritative status, objective, token budget, tokens used, remaining tokens, and elapsed active time.
24
+ - `create_goal`: create a persistent Goal only when the user or system explicitly requests one.
25
+ - `update_goal`: mark the current Goal `complete` after a strict completion audit, or `blocked` after the same impasse repeats for at least three consecutive Goal turns.
26
+
27
+ These are native Pibo tools, not MCP tools. Agent Designer exposes them as the default-enabled `pibo-goal-control` package. If that package is disabled, the agent cannot change Goal lifecycle status itself.
28
+
29
+ ## CLI creation
30
+
31
+ ```bash
32
+ pibo loop add \
33
+ --room <room-id> \
34
+ --profile <profile> \
35
+ --prompt "<complete objective>" \
36
+ --token-budget <optional-positive-token-count> \
37
+ --max-iterations <optional-run-fallback> \
38
+ --start
39
+ ```
40
+
41
+ Prefer creating the job stopped when its prompt, target, profile, or safety boundaries still need review.
42
+
43
+ ## Completion and blocked rules
44
+
45
+ - Treat completion as unproven until current evidence covers every explicit requirement and deliverable.
46
+ - Do not use `complete` for partial progress, a plausible result, budget exhaustion, or because the current turn is ending.
47
+ - Do not use `blocked` on the first blocker occurrence.
48
+ - Use `blocked` only after the same condition repeats for at least three consecutive Goal turns and meaningful progress requires user input or an external-state change.
49
+ - Resuming a blocked Goal begins a fresh blocked audit.
50
+
51
+ ## Token budgets
52
+
53
+ Pibo accumulates model usage reported by completed assistant model messages. A Goal becomes `budget_limited` when reported usage reaches or exceeds its budget. One provider request can overshoot because usage is known only after the response reports it.
54
+
55
+ Increase or clear the token budget before resuming a budget-limited Goal.
56
+
57
+ ## Operations
58
+
59
+ ```bash
60
+ pibo loop list --all --json
61
+ pibo loop runs --job <job-id> --json
62
+ pibo loop start <job-id>
63
+ pibo loop stop <job-id>
64
+ pibo loop cancel <job-id>
65
+ ```
66
+
67
+ Use `stop` for graceful pause after the current session. Use `cancel` only when the active session must be aborted.
68
+
69
+ For implementation work involving Docker workers, worktrees, browser checks, or pull requests, also use `pibo-docker-system` and `github-server-flow`.