wtf-p 0.8.4 → 0.9.1

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 (404) hide show
  1. package/README.md +31 -27
  2. package/bin/commands/install-logic.js +5 -5
  3. package/bin/install.js +11 -11
  4. package/bin/lib/adapter-compiler.js +275 -225
  5. package/bin/lib/manifest.js +21 -21
  6. package/bin/lib/native-registration.js +25 -10
  7. package/bin/lib/{clio-registration.js → pancode-registration.js} +62 -63
  8. package/bin/lib/utils.js +3 -3
  9. package/bin/uninstall.js +8 -8
  10. package/package.json +5 -4
  11. package/{vendors/clio-extension → pancode/extension}/.wtfp-generated.json +15 -11
  12. package/{vendors/clio-extension → pancode/extension}/compatibility/action-availability.json +14 -14
  13. package/{vendors/clio-extension/clio-coder-extension.yaml → pancode/extension/pancode-extension.yaml} +6 -5
  14. package/{vendors/clio-extension → pancode/extension}/runtime/claim-coverage.cjs +1 -1
  15. package/{vendors/clio-extension → pancode/extension}/runtime/desk-trust.cjs +1 -1
  16. package/{vendors/clio-extension → pancode/extension}/runtime/extension.test.ts +184 -97
  17. package/{vendors/clio-extension → pancode/extension}/runtime/extension.ts +169 -83
  18. package/pancode/extension/runtime/help.json +82 -0
  19. package/{vendors/clio-extension → pancode/extension}/runtime/write-guard.json +1 -1
  20. package/{vendors → pancode}/plugin/.wtfp-generated.json +114 -114
  21. package/{vendors → pancode}/plugin/compatibility/action-availability.json +16 -16
  22. package/{vendors/claude/ai.iowarp.clio → pancode/plugin/dev.pancode}/agents/wtfp-argument-verifier.md +7 -3
  23. package/{vendors/claude/ai.iowarp.clio → pancode/plugin/dev.pancode}/agents/wtfp-citation-expert.md +6 -2
  24. package/{vendors/plugin/ai.iowarp.clio → pancode/plugin/dev.pancode}/agents/wtfp-citation-formatter.md +6 -2
  25. package/{vendors/claude/ai.iowarp.clio → pancode/plugin/dev.pancode}/agents/wtfp-coherence-checker.md +7 -3
  26. package/{vendors/claude/ai.iowarp.clio → pancode/plugin/dev.pancode}/agents/wtfp-outliner.md +6 -2
  27. package/{vendors/plugin/ai.iowarp.clio → pancode/plugin/dev.pancode}/agents/wtfp-plan-checker.md +7 -3
  28. package/{vendors/plugin/ai.iowarp.clio → pancode/plugin/dev.pancode}/agents/wtfp-prose-polisher.md +6 -2
  29. package/{vendors/claude/ai.iowarp.clio → pancode/plugin/dev.pancode}/agents/wtfp-research-synthesizer.md +6 -2
  30. package/{vendors/claude/ai.iowarp.clio → pancode/plugin/dev.pancode}/agents/wtfp-section-planner.md +6 -2
  31. package/{vendors/claude/ai.iowarp.clio → pancode/plugin/dev.pancode}/agents/wtfp-section-reviewer.md +7 -3
  32. package/{vendors/plugin/ai.iowarp.clio → pancode/plugin/dev.pancode}/agents/wtfp-section-writer.md +7 -3
  33. package/{vendors/claude/ai.iowarp.clio/fleets → pancode/plugin/dev.pancode/playbooks}/wtfp-draft-review.md +1 -1
  34. package/{vendors/claude/ai.iowarp.clio/fleets → pancode/plugin/dev.pancode/playbooks}/wtfp-plan-section.md +2 -0
  35. package/{vendors/plugin/ai.iowarp.clio → pancode/plugin/dev.pancode}/prompts/wtfp/add-todo.md +1 -1
  36. package/{vendors/plugin/ai.iowarp.clio → pancode/plugin/dev.pancode}/prompts/wtfp/advance.md +8 -8
  37. package/{vendors/plugin/ai.iowarp.clio → pancode/plugin/dev.pancode}/prompts/wtfp/analyze-bib.md +5 -5
  38. package/{vendors/plugin/ai.iowarp.clio → pancode/plugin/dev.pancode}/prompts/wtfp/audit-milestone.md +3 -3
  39. package/{vendors/plugin/ai.iowarp.clio → pancode/plugin/dev.pancode}/prompts/wtfp/check-refs.md +5 -5
  40. package/{vendors/plugin/ai.iowarp.clio → pancode/plugin/dev.pancode}/prompts/wtfp/check-todos.md +3 -3
  41. package/{vendors/plugin/ai.iowarp.clio → pancode/plugin/dev.pancode}/prompts/wtfp/checkpoint.md +3 -3
  42. package/{vendors/plugin/ai.iowarp.clio → pancode/plugin/dev.pancode}/prompts/wtfp/contribute.md +4 -1
  43. package/{vendors/plugin/ai.iowarp.clio → pancode/plugin/dev.pancode}/prompts/wtfp/create-outline.md +6 -6
  44. package/{vendors/plugin/ai.iowarp.clio → pancode/plugin/dev.pancode}/prompts/wtfp/create-poster.md +3 -3
  45. package/{vendors/plugin/ai.iowarp.clio → pancode/plugin/dev.pancode}/prompts/wtfp/create-slides.md +3 -3
  46. package/{vendors/plugin/ai.iowarp.clio → pancode/plugin/dev.pancode}/prompts/wtfp/discuss-section.md +3 -3
  47. package/{vendors/plugin/ai.iowarp.clio → pancode/plugin/dev.pancode}/prompts/wtfp/execute-outline.md +6 -6
  48. package/{vendors/plugin/ai.iowarp.clio → pancode/plugin/dev.pancode}/prompts/wtfp/export-latex.md +3 -3
  49. package/{vendors/claude/ai.iowarp.clio → pancode/plugin/dev.pancode}/prompts/wtfp/help.md +7 -7
  50. package/{vendors/plugin/ai.iowarp.clio → pancode/plugin/dev.pancode}/prompts/wtfp/insert-section.md +4 -4
  51. package/{vendors/plugin/ai.iowarp.clio → pancode/plugin/dev.pancode}/prompts/wtfp/list-assumptions.md +1 -1
  52. package/{vendors/plugin/ai.iowarp.clio → pancode/plugin/dev.pancode}/prompts/wtfp/map-project.md +1 -1
  53. package/{vendors/plugin/ai.iowarp.clio → pancode/plugin/dev.pancode}/prompts/wtfp/new-paper.md +3 -3
  54. package/{vendors/plugin/ai.iowarp.clio → pancode/plugin/dev.pancode}/prompts/wtfp/pause-writing.md +2 -2
  55. package/{vendors/plugin/ai.iowarp.clio → pancode/plugin/dev.pancode}/prompts/wtfp/plan-milestone-gaps.md +3 -3
  56. package/{vendors/plugin/ai.iowarp.clio → pancode/plugin/dev.pancode}/prompts/wtfp/plan-revision.md +3 -3
  57. package/{vendors/plugin/ai.iowarp.clio → pancode/plugin/dev.pancode}/prompts/wtfp/plan-section.md +6 -6
  58. package/{vendors/plugin/ai.iowarp.clio → pancode/plugin/dev.pancode}/prompts/wtfp/polish-prose.md +5 -5
  59. package/{vendors/plugin/ai.iowarp.clio → pancode/plugin/dev.pancode}/prompts/wtfp/progress.md +3 -3
  60. package/{vendors/plugin/ai.iowarp.clio → pancode/plugin/dev.pancode}/prompts/wtfp/quick.md +5 -5
  61. package/{vendors/claude/ai.iowarp.clio → pancode/plugin/dev.pancode}/prompts/wtfp/remove-section.md +4 -1
  62. package/{vendors/plugin/ai.iowarp.clio → pancode/plugin/dev.pancode}/prompts/wtfp/report-bug.md +4 -1
  63. package/{vendors/plugin/ai.iowarp.clio → pancode/plugin/dev.pancode}/prompts/wtfp/request-feature.md +4 -1
  64. package/{vendors/plugin/ai.iowarp.clio → pancode/plugin/dev.pancode}/prompts/wtfp/research-gap.md +6 -6
  65. package/{vendors/plugin/ai.iowarp.clio → pancode/plugin/dev.pancode}/prompts/wtfp/resume-writing.md +3 -3
  66. package/{vendors/plugin/ai.iowarp.clio → pancode/plugin/dev.pancode}/prompts/wtfp/review-section.md +6 -6
  67. package/{vendors/plugin/ai.iowarp.clio → pancode/plugin/dev.pancode}/prompts/wtfp/settings.md +3 -3
  68. package/{vendors/plugin/ai.iowarp.clio → pancode/plugin/dev.pancode}/prompts/wtfp/submit-milestone.md +3 -3
  69. package/{vendors/claude/ai.iowarp.clio → pancode/plugin/dev.pancode}/prompts/wtfp/update.md +4 -1
  70. package/{vendors/plugin/ai.iowarp.clio → pancode/plugin/dev.pancode}/prompts/wtfp/verify-work.md +3 -3
  71. package/{vendors/plugin/ai.iowarp.clio → pancode/plugin/dev.pancode}/prompts/wtfp/write-section.md +6 -6
  72. package/{vendors → pancode}/plugin/plugin.json +56 -56
  73. package/{vendors → pancode}/plugin/repository/CONTRIBUTING.md +5 -2
  74. package/{vendors → pancode}/plugin/skills/wtfp-plan-section/references/actions.md +2 -2
  75. package/{vendors → pancode}/plugin/workflows/create-outline.md +1 -1
  76. package/{vendors → pancode}/plugin/workflows/insert-section.md +1 -1
  77. package/{vendors → pancode}/plugin/workflows/pause-writing.md +1 -1
  78. package/protocol/workflows/create-outline.md +1 -1
  79. package/protocol/workflows/insert-section.md +1 -1
  80. package/protocol/workflows/pause-writing.md +1 -1
  81. package/vendors/antigravity/.wtfp-generated.json +9 -9
  82. package/vendors/antigravity/plugin.json +2 -2
  83. package/vendors/antigravity/repository/CONTRIBUTING.md +5 -2
  84. package/vendors/antigravity/skills/wtfp-create-outline/SKILL.md +1 -1
  85. package/vendors/antigravity/skills/wtfp-insert-section/SKILL.md +1 -1
  86. package/vendors/antigravity/skills/wtfp-pause-writing/SKILL.md +1 -1
  87. package/vendors/antigravity/workflows/create-outline.md +1 -1
  88. package/vendors/antigravity/workflows/insert-section.md +1 -1
  89. package/vendors/antigravity/workflows/pause-writing.md +1 -1
  90. package/vendors/claude/.claude-plugin/marketplace.json +2 -2
  91. package/vendors/claude/.claude-plugin/plugin.json +1 -1
  92. package/vendors/claude/.wtfp-generated.json +188 -188
  93. package/vendors/claude/commands/create-outline.md +1 -1
  94. package/vendors/claude/commands/insert-section.md +1 -1
  95. package/vendors/claude/commands/pause-writing.md +1 -1
  96. package/vendors/{plugin/ai.iowarp.clio → claude/dev.pancode}/agents/wtfp-argument-verifier.md +7 -3
  97. package/vendors/{plugin/ai.iowarp.clio → claude/dev.pancode}/agents/wtfp-citation-expert.md +6 -2
  98. package/vendors/claude/{ai.iowarp.clio → dev.pancode}/agents/wtfp-citation-formatter.md +6 -2
  99. package/vendors/{plugin/ai.iowarp.clio → claude/dev.pancode}/agents/wtfp-coherence-checker.md +7 -3
  100. package/vendors/{plugin/ai.iowarp.clio → claude/dev.pancode}/agents/wtfp-outliner.md +6 -2
  101. package/vendors/claude/{ai.iowarp.clio → dev.pancode}/agents/wtfp-plan-checker.md +7 -3
  102. package/vendors/claude/{ai.iowarp.clio → dev.pancode}/agents/wtfp-prose-polisher.md +6 -2
  103. package/vendors/{plugin/ai.iowarp.clio → claude/dev.pancode}/agents/wtfp-research-synthesizer.md +6 -2
  104. package/vendors/{plugin/ai.iowarp.clio → claude/dev.pancode}/agents/wtfp-section-planner.md +6 -2
  105. package/vendors/{plugin/ai.iowarp.clio → claude/dev.pancode}/agents/wtfp-section-reviewer.md +7 -3
  106. package/vendors/claude/{ai.iowarp.clio → dev.pancode}/agents/wtfp-section-writer.md +7 -3
  107. package/vendors/{plugin/ai.iowarp.clio/playbooks → claude/dev.pancode/fleets}/wtfp-draft-review.md +1 -1
  108. package/vendors/{plugin/ai.iowarp.clio/playbooks → claude/dev.pancode/fleets}/wtfp-plan-section.md +2 -0
  109. package/vendors/claude/{ai.iowarp.clio → dev.pancode}/prompts/wtfp/advance.md +4 -1
  110. package/vendors/claude/{ai.iowarp.clio → dev.pancode}/prompts/wtfp/analyze-bib.md +4 -4
  111. package/vendors/claude/{ai.iowarp.clio → dev.pancode}/prompts/wtfp/audit-milestone.md +2 -2
  112. package/vendors/claude/{ai.iowarp.clio → dev.pancode}/prompts/wtfp/check-refs.md +4 -4
  113. package/vendors/claude/{ai.iowarp.clio → dev.pancode}/prompts/wtfp/check-todos.md +2 -2
  114. package/vendors/claude/{ai.iowarp.clio → dev.pancode}/prompts/wtfp/checkpoint.md +2 -2
  115. package/vendors/claude/{ai.iowarp.clio → dev.pancode}/prompts/wtfp/contribute.md +4 -1
  116. package/vendors/claude/{ai.iowarp.clio → dev.pancode}/prompts/wtfp/create-outline.md +5 -5
  117. package/vendors/claude/{ai.iowarp.clio → dev.pancode}/prompts/wtfp/create-poster.md +2 -2
  118. package/vendors/claude/{ai.iowarp.clio → dev.pancode}/prompts/wtfp/create-slides.md +2 -2
  119. package/vendors/claude/{ai.iowarp.clio → dev.pancode}/prompts/wtfp/discuss-section.md +2 -2
  120. package/vendors/claude/{ai.iowarp.clio → dev.pancode}/prompts/wtfp/execute-outline.md +5 -5
  121. package/vendors/claude/{ai.iowarp.clio → dev.pancode}/prompts/wtfp/export-latex.md +2 -2
  122. package/vendors/{plugin/ai.iowarp.clio → claude/dev.pancode}/prompts/wtfp/help.md +7 -7
  123. package/vendors/claude/{ai.iowarp.clio → dev.pancode}/prompts/wtfp/insert-section.md +3 -3
  124. package/vendors/claude/{ai.iowarp.clio → dev.pancode}/prompts/wtfp/new-paper.md +2 -2
  125. package/vendors/claude/{ai.iowarp.clio → dev.pancode}/prompts/wtfp/pause-writing.md +1 -1
  126. package/vendors/claude/{ai.iowarp.clio → dev.pancode}/prompts/wtfp/plan-milestone-gaps.md +2 -2
  127. package/vendors/claude/{ai.iowarp.clio → dev.pancode}/prompts/wtfp/plan-revision.md +2 -2
  128. package/vendors/claude/{ai.iowarp.clio → dev.pancode}/prompts/wtfp/plan-section.md +5 -5
  129. package/vendors/claude/{ai.iowarp.clio → dev.pancode}/prompts/wtfp/polish-prose.md +4 -4
  130. package/vendors/claude/{ai.iowarp.clio → dev.pancode}/prompts/wtfp/progress.md +2 -2
  131. package/vendors/claude/{ai.iowarp.clio → dev.pancode}/prompts/wtfp/quick.md +4 -4
  132. package/vendors/{plugin/ai.iowarp.clio → claude/dev.pancode}/prompts/wtfp/remove-section.md +4 -1
  133. package/vendors/claude/{ai.iowarp.clio → dev.pancode}/prompts/wtfp/report-bug.md +4 -1
  134. package/vendors/claude/{ai.iowarp.clio → dev.pancode}/prompts/wtfp/request-feature.md +4 -1
  135. package/vendors/claude/{ai.iowarp.clio → dev.pancode}/prompts/wtfp/research-gap.md +5 -5
  136. package/vendors/claude/{ai.iowarp.clio → dev.pancode}/prompts/wtfp/resume-writing.md +2 -2
  137. package/vendors/claude/{ai.iowarp.clio → dev.pancode}/prompts/wtfp/review-section.md +5 -5
  138. package/vendors/claude/{ai.iowarp.clio → dev.pancode}/prompts/wtfp/settings.md +2 -2
  139. package/vendors/claude/{ai.iowarp.clio → dev.pancode}/prompts/wtfp/submit-milestone.md +2 -2
  140. package/vendors/{plugin/ai.iowarp.clio → claude/dev.pancode}/prompts/wtfp/update.md +4 -1
  141. package/vendors/claude/{ai.iowarp.clio → dev.pancode}/prompts/wtfp/verify-work.md +2 -2
  142. package/vendors/claude/{ai.iowarp.clio → dev.pancode}/prompts/wtfp/write-section.md +5 -5
  143. package/vendors/claude/plugin.json +56 -56
  144. package/vendors/claude/repository/CONTRIBUTING.md +5 -2
  145. package/vendors/claude/workflows/create-outline.md +1 -1
  146. package/vendors/claude/workflows/insert-section.md +1 -1
  147. package/vendors/claude/workflows/pause-writing.md +1 -1
  148. package/vendors/codex/plugins/wtfp/.codex-plugin/plugin.json +1 -1
  149. package/vendors/codex/plugins/wtfp/.wtfp-generated.json +7 -7
  150. package/vendors/codex/plugins/wtfp/plugin.json +1 -1
  151. package/vendors/codex/plugins/wtfp/repository/CONTRIBUTING.md +5 -2
  152. package/vendors/codex/plugins/wtfp/workflows/create-outline.md +1 -1
  153. package/vendors/codex/plugins/wtfp/workflows/insert-section.md +1 -1
  154. package/vendors/codex/plugins/wtfp/workflows/pause-writing.md +1 -1
  155. package/vendors/copilot/.wtfp-generated.json +6 -6
  156. package/vendors/copilot/marketplace.json +2 -2
  157. package/vendors/copilot/plugins/wtfp/.claude-plugin/plugin.json +1 -1
  158. package/vendors/copilot/plugins/wtfp/.wtfp-generated.json +9 -9
  159. package/vendors/copilot/plugins/wtfp/commands/wtfp-create-outline.md +1 -1
  160. package/vendors/copilot/plugins/wtfp/commands/wtfp-insert-section.md +1 -1
  161. package/vendors/copilot/plugins/wtfp/commands/wtfp-pause-writing.md +1 -1
  162. package/vendors/copilot/plugins/wtfp/repository/CONTRIBUTING.md +5 -2
  163. package/vendors/copilot/plugins/wtfp/workflows/create-outline.md +1 -1
  164. package/vendors/copilot/plugins/wtfp/workflows/insert-section.md +1 -1
  165. package/vendors/copilot/plugins/wtfp/workflows/pause-writing.md +1 -1
  166. package/vendors/copilot/project/.github/prompts/wtfp-pause-writing.prompt.md +1 -1
  167. package/vendors/copilot/project/.github/wtfp/workflows/create-outline.md +1 -1
  168. package/vendors/copilot/project/.github/wtfp/workflows/insert-section.md +1 -1
  169. package/vendors/copilot/project/.github/wtfp/workflows/pause-writing.md +1 -1
  170. package/vendors/gemini/.wtfp-generated.json +9 -9
  171. package/vendors/gemini/commands/wtfp/create-outline.toml +1 -1
  172. package/vendors/gemini/commands/wtfp/insert-section.toml +1 -1
  173. package/vendors/gemini/commands/wtfp/pause-writing.toml +1 -1
  174. package/vendors/gemini/gemini-extension.json +1 -1
  175. package/vendors/gemini/repository/CONTRIBUTING.md +5 -2
  176. package/vendors/gemini/workflows/create-outline.md +1 -1
  177. package/vendors/gemini/workflows/insert-section.md +1 -1
  178. package/vendors/gemini/workflows/pause-writing.md +1 -1
  179. package/vendors/opencode/.wtfp-generated.json +8 -8
  180. package/vendors/opencode/commands/wtfp/create-outline.md +1 -1
  181. package/vendors/opencode/commands/wtfp/insert-section.md +1 -1
  182. package/vendors/opencode/commands/wtfp/pause-writing.md +1 -1
  183. package/vendors/opencode/repository/CONTRIBUTING.md +5 -2
  184. package/vendors/opencode/workflows/create-outline.md +1 -1
  185. package/vendors/opencode/workflows/insert-section.md +1 -1
  186. package/vendors/opencode/workflows/pause-writing.md +1 -1
  187. /package/{vendors/clio-extension → pancode/extension}/actions/add-todo.json +0 -0
  188. /package/{vendors/clio-extension → pancode/extension}/actions/advance.json +0 -0
  189. /package/{vendors/clio-extension → pancode/extension}/actions/analyze-bib.json +0 -0
  190. /package/{vendors/clio-extension → pancode/extension}/actions/audit-milestone.json +0 -0
  191. /package/{vendors/clio-extension → pancode/extension}/actions/check-refs.json +0 -0
  192. /package/{vendors/clio-extension → pancode/extension}/actions/check-todos.json +0 -0
  193. /package/{vendors/clio-extension → pancode/extension}/actions/checkpoint.json +0 -0
  194. /package/{vendors/clio-extension → pancode/extension}/actions/contribute.json +0 -0
  195. /package/{vendors/clio-extension → pancode/extension}/actions/create-outline.json +0 -0
  196. /package/{vendors/clio-extension → pancode/extension}/actions/create-poster.json +0 -0
  197. /package/{vendors/clio-extension → pancode/extension}/actions/create-slides.json +0 -0
  198. /package/{vendors/clio-extension → pancode/extension}/actions/discuss-section.json +0 -0
  199. /package/{vendors/clio-extension → pancode/extension}/actions/execute-outline.json +0 -0
  200. /package/{vendors/clio-extension → pancode/extension}/actions/export-latex.json +0 -0
  201. /package/{vendors/clio-extension → pancode/extension}/actions/help.json +0 -0
  202. /package/{vendors/clio-extension → pancode/extension}/actions/insert-section.json +0 -0
  203. /package/{vendors/clio-extension → pancode/extension}/actions/list-assumptions.json +0 -0
  204. /package/{vendors/clio-extension → pancode/extension}/actions/map-project.json +0 -0
  205. /package/{vendors/clio-extension → pancode/extension}/actions/new-paper.json +0 -0
  206. /package/{vendors/clio-extension → pancode/extension}/actions/pause-writing.json +0 -0
  207. /package/{vendors/clio-extension → pancode/extension}/actions/plan-milestone-gaps.json +0 -0
  208. /package/{vendors/clio-extension → pancode/extension}/actions/plan-revision.json +0 -0
  209. /package/{vendors/clio-extension → pancode/extension}/actions/plan-section.json +0 -0
  210. /package/{vendors/clio-extension → pancode/extension}/actions/polish-prose.json +0 -0
  211. /package/{vendors/clio-extension → pancode/extension}/actions/progress.json +0 -0
  212. /package/{vendors/clio-extension → pancode/extension}/actions/quick.json +0 -0
  213. /package/{vendors/clio-extension → pancode/extension}/actions/remove-section.json +0 -0
  214. /package/{vendors/clio-extension → pancode/extension}/actions/report-bug.json +0 -0
  215. /package/{vendors/clio-extension → pancode/extension}/actions/request-feature.json +0 -0
  216. /package/{vendors/clio-extension → pancode/extension}/actions/research-gap.json +0 -0
  217. /package/{vendors/clio-extension → pancode/extension}/actions/resume-writing.json +0 -0
  218. /package/{vendors/clio-extension → pancode/extension}/actions/review-section.json +0 -0
  219. /package/{vendors/clio-extension → pancode/extension}/actions/settings.json +0 -0
  220. /package/{vendors/clio-extension → pancode/extension}/actions/submit-milestone.json +0 -0
  221. /package/{vendors/clio-extension → pancode/extension}/actions/update.json +0 -0
  222. /package/{vendors/clio-extension → pancode/extension}/actions/verify-work.json +0 -0
  223. /package/{vendors/clio-extension → pancode/extension}/actions/write-section.json +0 -0
  224. /package/{vendors/clio-extension → pancode/extension}/project/schemas/checkpoint.schema.json +0 -0
  225. /package/{vendors/clio-extension → pancode/extension}/project/schemas/common.schema.json +0 -0
  226. /package/{vendors/clio-extension → pancode/extension}/project/schemas/config.schema.json +0 -0
  227. /package/{vendors/clio-extension → pancode/extension}/project/schemas/decisions.schema.json +0 -0
  228. /package/{vendors/clio-extension → pancode/extension}/project/schemas/evidence.schema.json +0 -0
  229. /package/{vendors/clio-extension → pancode/extension}/project/schemas/interaction.schema.json +0 -0
  230. /package/{vendors/clio-extension → pancode/extension}/project/schemas/manifest.schema.json +0 -0
  231. /package/{vendors/clio-extension → pancode/extension}/project/schemas/outline.schema.json +0 -0
  232. /package/{vendors/clio-extension → pancode/extension}/project/schemas/section.schema.json +0 -0
  233. /package/{vendors/clio-extension → pancode/extension}/project/schemas/source.schema.json +0 -0
  234. /package/{vendors/clio-extension → pancode/extension}/project/schemas/state.schema.json +0 -0
  235. /package/{vendors/clio-extension → pancode/extension}/project/schemas/validation.schema.json +0 -0
  236. /package/{vendors/clio-extension → pancode/extension}/project/templates/checkpoint.json +0 -0
  237. /package/{vendors/clio-extension → pancode/extension}/project/templates/config.json +0 -0
  238. /package/{vendors/clio-extension → pancode/extension}/project/templates/decisions.json +0 -0
  239. /package/{vendors/clio-extension → pancode/extension}/project/templates/evidence.json +0 -0
  240. /package/{vendors/clio-extension → pancode/extension}/project/templates/interaction.json +0 -0
  241. /package/{vendors/clio-extension → pancode/extension}/project/templates/manifest.json +0 -0
  242. /package/{vendors/clio-extension → pancode/extension}/project/templates/outline.json +0 -0
  243. /package/{vendors/clio-extension → pancode/extension}/project/templates/section.json +0 -0
  244. /package/{vendors/clio-extension → pancode/extension}/project/templates/source.json +0 -0
  245. /package/{vendors/clio-extension → pancode/extension}/project/templates/state.json +0 -0
  246. /package/{vendors/clio-extension → pancode/extension}/project/templates/validation.json +0 -0
  247. /package/{vendors/clio-extension → pancode/extension}/runtime/json-schema.cjs +0 -0
  248. /package/{vendors/clio-extension → pancode/extension}/runtime/package.json +0 -0
  249. /package/{vendors/clio-extension → pancode/extension}/skins/wtfp.json +0 -0
  250. /package/{vendors → pancode}/plugin/actions/add-todo.json +0 -0
  251. /package/{vendors → pancode}/plugin/actions/advance.json +0 -0
  252. /package/{vendors → pancode}/plugin/actions/analyze-bib.json +0 -0
  253. /package/{vendors → pancode}/plugin/actions/audit-milestone.json +0 -0
  254. /package/{vendors → pancode}/plugin/actions/check-refs.json +0 -0
  255. /package/{vendors → pancode}/plugin/actions/check-todos.json +0 -0
  256. /package/{vendors → pancode}/plugin/actions/checkpoint.json +0 -0
  257. /package/{vendors → pancode}/plugin/actions/contribute.json +0 -0
  258. /package/{vendors → pancode}/plugin/actions/create-outline.json +0 -0
  259. /package/{vendors → pancode}/plugin/actions/create-poster.json +0 -0
  260. /package/{vendors → pancode}/plugin/actions/create-slides.json +0 -0
  261. /package/{vendors → pancode}/plugin/actions/discuss-section.json +0 -0
  262. /package/{vendors → pancode}/plugin/actions/execute-outline.json +0 -0
  263. /package/{vendors → pancode}/plugin/actions/export-latex.json +0 -0
  264. /package/{vendors → pancode}/plugin/actions/help.json +0 -0
  265. /package/{vendors → pancode}/plugin/actions/insert-section.json +0 -0
  266. /package/{vendors → pancode}/plugin/actions/list-assumptions.json +0 -0
  267. /package/{vendors → pancode}/plugin/actions/map-project.json +0 -0
  268. /package/{vendors → pancode}/plugin/actions/new-paper.json +0 -0
  269. /package/{vendors → pancode}/plugin/actions/pause-writing.json +0 -0
  270. /package/{vendors → pancode}/plugin/actions/plan-milestone-gaps.json +0 -0
  271. /package/{vendors → pancode}/plugin/actions/plan-revision.json +0 -0
  272. /package/{vendors → pancode}/plugin/actions/plan-section.json +0 -0
  273. /package/{vendors → pancode}/plugin/actions/polish-prose.json +0 -0
  274. /package/{vendors → pancode}/plugin/actions/progress.json +0 -0
  275. /package/{vendors → pancode}/plugin/actions/quick.json +0 -0
  276. /package/{vendors → pancode}/plugin/actions/remove-section.json +0 -0
  277. /package/{vendors → pancode}/plugin/actions/report-bug.json +0 -0
  278. /package/{vendors → pancode}/plugin/actions/request-feature.json +0 -0
  279. /package/{vendors → pancode}/plugin/actions/research-gap.json +0 -0
  280. /package/{vendors → pancode}/plugin/actions/resume-writing.json +0 -0
  281. /package/{vendors → pancode}/plugin/actions/review-section.json +0 -0
  282. /package/{vendors → pancode}/plugin/actions/settings.json +0 -0
  283. /package/{vendors → pancode}/plugin/actions/submit-milestone.json +0 -0
  284. /package/{vendors → pancode}/plugin/actions/update.json +0 -0
  285. /package/{vendors → pancode}/plugin/actions/verify-work.json +0 -0
  286. /package/{vendors → pancode}/plugin/actions/write-section.json +0 -0
  287. /package/{vendors → pancode}/plugin/aliases.lock.json +0 -0
  288. /package/{vendors → pancode}/plugin/catalog.json +0 -0
  289. /package/{vendors → pancode}/plugin/effects.json +0 -0
  290. /package/{vendors → pancode}/plugin/project/README.md +0 -0
  291. /package/{vendors → pancode}/plugin/project/schemas/checkpoint.schema.json +0 -0
  292. /package/{vendors → pancode}/plugin/project/schemas/common.schema.json +0 -0
  293. /package/{vendors → pancode}/plugin/project/schemas/config.schema.json +0 -0
  294. /package/{vendors → pancode}/plugin/project/schemas/decisions.schema.json +0 -0
  295. /package/{vendors → pancode}/plugin/project/schemas/evidence.schema.json +0 -0
  296. /package/{vendors → pancode}/plugin/project/schemas/interaction.schema.json +0 -0
  297. /package/{vendors → pancode}/plugin/project/schemas/manifest.schema.json +0 -0
  298. /package/{vendors → pancode}/plugin/project/schemas/outline.schema.json +0 -0
  299. /package/{vendors → pancode}/plugin/project/schemas/section.schema.json +0 -0
  300. /package/{vendors → pancode}/plugin/project/schemas/source.schema.json +0 -0
  301. /package/{vendors → pancode}/plugin/project/schemas/state.schema.json +0 -0
  302. /package/{vendors → pancode}/plugin/project/schemas/validation.schema.json +0 -0
  303. /package/{vendors → pancode}/plugin/project/templates/checkpoint.json +0 -0
  304. /package/{vendors → pancode}/plugin/project/templates/config.json +0 -0
  305. /package/{vendors → pancode}/plugin/project/templates/decisions.json +0 -0
  306. /package/{vendors → pancode}/plugin/project/templates/evidence.json +0 -0
  307. /package/{vendors → pancode}/plugin/project/templates/interaction.json +0 -0
  308. /package/{vendors → pancode}/plugin/project/templates/manifest.json +0 -0
  309. /package/{vendors → pancode}/plugin/project/templates/outline.json +0 -0
  310. /package/{vendors → pancode}/plugin/project/templates/section.json +0 -0
  311. /package/{vendors → pancode}/plugin/project/templates/source.json +0 -0
  312. /package/{vendors → pancode}/plugin/project/templates/state.json +0 -0
  313. /package/{vendors → pancode}/plugin/project/templates/validation.json +0 -0
  314. /package/{vendors → pancode}/plugin/roles/argument-verifier.md +0 -0
  315. /package/{vendors → pancode}/plugin/roles/citation-expert.md +0 -0
  316. /package/{vendors → pancode}/plugin/roles/citation-formatter.md +0 -0
  317. /package/{vendors → pancode}/plugin/roles/coherence-checker.md +0 -0
  318. /package/{vendors → pancode}/plugin/roles/outliner.md +0 -0
  319. /package/{vendors → pancode}/plugin/roles/plan-checker.md +0 -0
  320. /package/{vendors → pancode}/plugin/roles/prose-polisher.md +0 -0
  321. /package/{vendors → pancode}/plugin/roles/research-synthesizer.md +0 -0
  322. /package/{vendors → pancode}/plugin/roles/section-planner.md +0 -0
  323. /package/{vendors → pancode}/plugin/roles/section-reviewer.md +0 -0
  324. /package/{vendors → pancode}/plugin/roles/section-writer.md +0 -0
  325. /package/{vendors → pancode}/plugin/schemas/action.schema.json +0 -0
  326. /package/{vendors → pancode}/plugin/schemas/aliases.schema.json +0 -0
  327. /package/{vendors → pancode}/plugin/schemas/catalog.schema.json +0 -0
  328. /package/{vendors → pancode}/plugin/schemas/effects.schema.json +0 -0
  329. /package/{vendors → pancode}/plugin/schemas/role-result.schema.json +0 -0
  330. /package/{vendors → pancode}/plugin/schemas/tools.schema.json +0 -0
  331. /package/{vendors → pancode}/plugin/skills/wtfp-deliver-research/SKILL.md +0 -0
  332. /package/{vendors → pancode}/plugin/skills/wtfp-deliver-research/agents/openai.yaml +0 -0
  333. /package/{vendors → pancode}/plugin/skills/wtfp-deliver-research/references/actions.md +0 -0
  334. /package/{vendors → pancode}/plugin/skills/wtfp-manage-project/SKILL.md +0 -0
  335. /package/{vendors → pancode}/plugin/skills/wtfp-manage-project/agents/openai.yaml +0 -0
  336. /package/{vendors → pancode}/plugin/skills/wtfp-manage-project/references/actions.md +0 -0
  337. /package/{vendors → pancode}/plugin/skills/wtfp-plan-section/SKILL.md +0 -0
  338. /package/{vendors → pancode}/plugin/skills/wtfp-plan-section/agents/openai.yaml +0 -0
  339. /package/{vendors → pancode}/plugin/skills/wtfp-research-literature/SKILL.md +0 -0
  340. /package/{vendors → pancode}/plugin/skills/wtfp-research-literature/agents/openai.yaml +0 -0
  341. /package/{vendors → pancode}/plugin/skills/wtfp-research-literature/references/actions.md +0 -0
  342. /package/{vendors → pancode}/plugin/skills/wtfp-review-manuscript/SKILL.md +0 -0
  343. /package/{vendors → pancode}/plugin/skills/wtfp-review-manuscript/agents/openai.yaml +0 -0
  344. /package/{vendors → pancode}/plugin/skills/wtfp-review-manuscript/references/actions.md +0 -0
  345. /package/{vendors → pancode}/plugin/skills/wtfp-start-project/SKILL.md +0 -0
  346. /package/{vendors → pancode}/plugin/skills/wtfp-start-project/agents/openai.yaml +0 -0
  347. /package/{vendors → pancode}/plugin/skills/wtfp-start-project/references/actions.md +0 -0
  348. /package/{vendors → pancode}/plugin/skills/wtfp-write-section/SKILL.md +0 -0
  349. /package/{vendors → pancode}/plugin/skills/wtfp-write-section/agents/openai.yaml +0 -0
  350. /package/{vendors → pancode}/plugin/skills/wtfp-write-section/references/actions.md +0 -0
  351. /package/{vendors → pancode}/plugin/templates/README.md +0 -0
  352. /package/{vendors → pancode}/plugin/templates/grant-proposal-outline.md +0 -0
  353. /package/{vendors → pancode}/plugin/templates/paper-outline.md +0 -0
  354. /package/{vendors → pancode}/plugin/templates/poster.md +0 -0
  355. /package/{vendors → pancode}/plugin/templates/slides.md +0 -0
  356. /package/{vendors → pancode}/plugin/tools/README.md +0 -0
  357. /package/{vendors → pancode}/plugin/tools/bibliography/analyze-impact.js +0 -0
  358. /package/{vendors → pancode}/plugin/tools/bibliography/format.js +0 -0
  359. /package/{vendors → pancode}/plugin/tools/bibliography/index.js +0 -0
  360. /package/{vendors → pancode}/plugin/tools/citation/fetch.js +0 -0
  361. /package/{vendors → pancode}/plugin/tools/citation/rank.js +0 -0
  362. /package/{vendors → pancode}/plugin/tools/citation/scholar-lookup.js +0 -0
  363. /package/{vendors → pancode}/plugin/tools/citation/semantic-scholar.js +0 -0
  364. /package/{vendors → pancode}/plugin/tools/package.json +0 -0
  365. /package/{vendors → pancode}/plugin/tools/support/cite-nexus-client.js +0 -0
  366. /package/{vendors → pancode}/plugin/tools/wtfp-tool.js +0 -0
  367. /package/{vendors → pancode}/plugin/tools.json +0 -0
  368. /package/{vendors → pancode}/plugin/workflows/add-todo.md +0 -0
  369. /package/{vendors → pancode}/plugin/workflows/advance.md +0 -0
  370. /package/{vendors → pancode}/plugin/workflows/analyze-bib.md +0 -0
  371. /package/{vendors → pancode}/plugin/workflows/audit-milestone.md +0 -0
  372. /package/{vendors → pancode}/plugin/workflows/check-refs.md +0 -0
  373. /package/{vendors → pancode}/plugin/workflows/check-todos.md +0 -0
  374. /package/{vendors → pancode}/plugin/workflows/checkpoint.md +0 -0
  375. /package/{vendors → pancode}/plugin/workflows/contribute.md +0 -0
  376. /package/{vendors → pancode}/plugin/workflows/create-poster.md +0 -0
  377. /package/{vendors → pancode}/plugin/workflows/create-slides.md +0 -0
  378. /package/{vendors → pancode}/plugin/workflows/discuss-section.md +0 -0
  379. /package/{vendors → pancode}/plugin/workflows/execute-outline.md +0 -0
  380. /package/{vendors → pancode}/plugin/workflows/export-latex.md +0 -0
  381. /package/{vendors → pancode}/plugin/workflows/help.md +0 -0
  382. /package/{vendors → pancode}/plugin/workflows/list-assumptions.md +0 -0
  383. /package/{vendors → pancode}/plugin/workflows/map-project.md +0 -0
  384. /package/{vendors → pancode}/plugin/workflows/new-paper.md +0 -0
  385. /package/{vendors → pancode}/plugin/workflows/plan-milestone-gaps.md +0 -0
  386. /package/{vendors → pancode}/plugin/workflows/plan-revision.md +0 -0
  387. /package/{vendors → pancode}/plugin/workflows/plan-section.md +0 -0
  388. /package/{vendors → pancode}/plugin/workflows/polish-prose.md +0 -0
  389. /package/{vendors → pancode}/plugin/workflows/progress.md +0 -0
  390. /package/{vendors → pancode}/plugin/workflows/quick.md +0 -0
  391. /package/{vendors → pancode}/plugin/workflows/remove-section.md +0 -0
  392. /package/{vendors → pancode}/plugin/workflows/report-bug.md +0 -0
  393. /package/{vendors → pancode}/plugin/workflows/request-feature.md +0 -0
  394. /package/{vendors → pancode}/plugin/workflows/research-gap.md +0 -0
  395. /package/{vendors → pancode}/plugin/workflows/resume-writing.md +0 -0
  396. /package/{vendors → pancode}/plugin/workflows/review-section.md +0 -0
  397. /package/{vendors → pancode}/plugin/workflows/settings.md +0 -0
  398. /package/{vendors → pancode}/plugin/workflows/submit-milestone.md +0 -0
  399. /package/{vendors → pancode}/plugin/workflows/update.md +0 -0
  400. /package/{vendors → pancode}/plugin/workflows/verify-work.md +0 -0
  401. /package/{vendors → pancode}/plugin/workflows/write-section.md +0 -0
  402. /package/vendors/claude/{ai.iowarp.clio → dev.pancode}/prompts/wtfp/add-todo.md +0 -0
  403. /package/vendors/claude/{ai.iowarp.clio → dev.pancode}/prompts/wtfp/list-assumptions.md +0 -0
  404. /package/vendors/claude/{ai.iowarp.clio → dev.pancode}/prompts/wtfp/map-project.md +0 -0
@@ -7,8 +7,8 @@ const { GENERATOR_VERSION } = require('./adapter-metadata');
7
7
 
8
8
  const ROOT = path.resolve(__dirname, '../..');
9
9
  const PROTOCOL_ROOT = path.join(ROOT, 'protocol');
10
- // Human-edited source of the standalone Clio extension; see clio/README.md.
11
- const CLIO_RUNTIME_ROOT = path.join(ROOT, 'clio');
10
+ // Human-edited source of the standalone PanCode extension; see hosts/pancode/README.md.
11
+ const PANCODE_RUNTIME_ROOT = path.join(ROOT, 'hosts', 'pancode');
12
12
  const INVENTORY_NAME = '.wtfp-generated.json';
13
13
 
14
14
  const TARGET_ROOTS = Object.freeze({
@@ -20,11 +20,11 @@ const TARGET_ROOTS = Object.freeze({
20
20
  gemini: path.join(ROOT, 'vendors', 'gemini')
21
21
  });
22
22
 
23
- // Clio is a capability policy, not a separate on-disk envelope. Its projection
24
- // is staged in memory and emitted only inside the canonical `vendors/plugin`
25
- // bundle under `ai.iowarp.clio/`. `copilot-cloud` is likewise a policy for the
23
+ // PanCode is a capability policy, not a separate on-disk envelope. Its projection
24
+ // is staged in memory and emitted only inside the canonical `pancode/plugin`
25
+ // bundle under `dev.pancode/`. `copilot-cloud` is likewise a policy for the
26
26
  // repository projection carried by the Copilot marketplace envelope.
27
- const POLICY_TARGET_IDS = Object.freeze([...Object.keys(TARGET_ROOTS), 'clio', 'copilot-cloud']);
27
+ const POLICY_TARGET_IDS = Object.freeze([...Object.keys(TARGET_ROOTS), 'pancode', 'copilot-cloud']);
28
28
 
29
29
  const CAPABILITY_IDS = Object.freeze([
30
30
  'agent.delegate',
@@ -75,31 +75,31 @@ const EFFECT_CAPABILITY_BINDINGS = Object.freeze({
75
75
  // `protocol/tools.json` through the single `tools/wtfp-tool.js` dispatcher that
76
76
  // every envelope carries. It is never a grant for an arbitrary external
77
77
  // toolchain, so a host binds it only when its shell tool name is verified.
78
- // Clio's `network.search` is bound to the same executor because the only
78
+ // PanCode's `network.search` is bound to the same executor because the only
79
79
  // scholarly search WTF-P declares is the bundled Semantic Scholar / Google
80
- // Scholar client; Clio exposes `web_fetch` but no native web-search tool.
80
+ // Scholar client; PanCode exposes `web_fetch` but no native web-search tool.
81
81
  //
82
82
  // `workflow.drive` is a host driver that selects each next step from portable
83
83
  // project state and confines that step to its own action contract. Only the
84
- // Clio desk provides one (`extension_wtfp__next_step`), so `advance` fails
84
+ // PanCode desk provides one (`extension_wtfp__next_step`), so `advance` fails
85
85
  // closed everywhere else instead of letting a model choose its own steps.
86
86
  const TARGET_POLICIES = Object.freeze({
87
- clio: Object.freeze({ capabilities: Object.freeze({
88
- 'agent.delegate': 'clio:plugin-agent',
89
- 'agent.parallel': 'clio:fleet',
87
+ pancode: Object.freeze({ capabilities: Object.freeze({
88
+ 'agent.delegate': 'pancode:plugin-agent',
89
+ 'agent.parallel': 'pancode:fleet',
90
90
  'external.issue': null,
91
91
  'filesystem.delete': null,
92
- 'filesystem.read': 'clio:workspace-read',
93
- 'filesystem.write': 'clio:workspace-write',
94
- 'network.fetch': 'clio:web_fetch',
95
- 'network.search': 'clio:bash-bundled-citation-tools',
92
+ 'filesystem.read': 'pancode:workspace-read',
93
+ 'filesystem.write': 'pancode:workspace-write',
94
+ 'network.fetch': 'pancode:web_fetch',
95
+ 'network.search': 'pancode:bash-bundled-citation-tools',
96
96
  'package.update': null,
97
- 'tool.execute': 'clio:bash',
98
- 'user.interaction': 'clio:ask_user',
97
+ 'tool.execute': 'pancode:bash',
98
+ 'user.interaction': 'pancode:ask_user',
99
99
  'vcs.branch': null,
100
100
  'vcs.commit': null,
101
- 'workflow.drive': 'clio:wtfp-desk-driver'
102
- }), approvals: Object.freeze({ none: 'clio:permission-policy', implicit: 'clio:permission-policy', explicit: 'clio:ask_user' }) }),
101
+ 'workflow.drive': 'pancode:wtfp-desk-driver'
102
+ }), approvals: Object.freeze({ none: 'pancode:permission-policy', implicit: 'pancode:permission-policy', explicit: 'pancode:ask_user' }) }),
103
103
  claude: Object.freeze({ capabilities: Object.freeze({
104
104
  'agent.delegate': 'claude:Task',
105
105
  'agent.parallel': 'claude:Task',
@@ -217,15 +217,15 @@ const TARGET_POLICIES = Object.freeze({
217
217
  // Availability says that a target has a native binding for every required
218
218
  // capability and effect. It does not imply that every host can narrow its
219
219
  // main-agent tool surface for one prompt; keep that machine-readable so an
220
- // evaluation cannot mistake a declaration for enforcement. Clio prompts
221
- // declare allowed-tools and delegated-tools per action, and Clio 0.6.3, which
220
+ // evaluation cannot mistake a declaration for enforcement. PanCode prompts
221
+ // declare allowed-tools and delegated-tools per action, and PanCode, which
222
222
  // the desk requires, narrows a template turn to them and caps its workers.
223
223
  const TARGET_HOST_TOOL_ENFORCEMENT = Object.freeze({
224
- clio: Object.freeze({
224
+ pancode: Object.freeze({
225
225
  actionScoped: true,
226
- surface: 'clio:template-allowed-tools',
227
- // Clio 0.8 has two levels; the 0.6.3 read-only and suggest spellings it was
228
- // certified under now read as `default`.
226
+ surface: 'pancode:template-allowed-tools',
227
+ // PanCode has two autonomy levels; the earlier read-only and suggest
228
+ // spellings the projection was certified under now read as `default`.
229
229
  certificationAutonomy: Object.freeze(['default']),
230
230
  undeclaredToolCall: 'fail'
231
231
  })
@@ -469,7 +469,7 @@ function nativeWorkflowBody(workflowBody, target) {
469
469
  : '$ARGUMENTS';
470
470
  body = body.replaceAll('{{arguments}}', argumentToken);
471
471
 
472
- if (target === 'clio') {
472
+ if (target === 'pancode') {
473
473
  body = body.replaceAll('protocol://', '${pluginRoot}/');
474
474
  } else if (target === 'claude' || target === 'copilot') {
475
475
  body = body.replaceAll('protocol://', '${CLAUDE_PLUGIN_ROOT}/');
@@ -523,10 +523,10 @@ function projectSchemasForAction(action) {
523
523
  }
524
524
 
525
525
  // The desk enforces an action's contract, and the prompt already states its
526
- // reads, outputs, conditions, gates and roles. Reading the file would cost Clio
526
+ // reads, outputs, conditions, gates and roles. Reading the file would cost PanCode
527
527
  // a round trip that resends the whole context for no new fact, so the prompt
528
528
  // names it only for an exact lookup.
529
- function clioBoundContract(action) {
529
+ function pancodeBoundContract(action) {
530
530
  return action.requirements.capabilities.includes('workflow.drive')
531
531
  ? `The desk enforces \`protocol://actions/${action.id}.json\`, the union of the actions it drives, through each step's own contract. Read it only when a refusal needs its exact terms.`
532
532
  : `The desk enforces \`protocol://actions/${action.id}.json\`; this prompt states its reads, outputs, conditions, gates and roles. Read it only when a refusal needs its exact terms.`;
@@ -541,7 +541,7 @@ function nativeCommandBody(action, workflowBody, target, deskTools = false) {
541
541
  const schemas = projectSchemasForAction(action);
542
542
  const protocolIncludes = [
543
543
  deskTools
544
- ? clioBoundContract(action)
544
+ ? pancodeBoundContract(action)
545
545
  : `@protocol://actions/${action.id}.json`,
546
546
  ...(!deskTools && schemas.length > 0 ? ['@protocol://project/schemas/common.schema.json'] : []),
547
547
  ...(!deskTools ? schemas : []).flatMap((schema) => [
@@ -551,7 +551,7 @@ function nativeCommandBody(action, workflowBody, target, deskTools = false) {
551
551
  ];
552
552
  return [
553
553
  nativeWorkflowBody([
554
- deskTools ? clioDeskWorkflowBody(action, workflowBody) : workflowBody,
554
+ deskTools ? pancodeDeskWorkflowBody(action, workflowBody) : workflowBody,
555
555
  '',
556
556
  deskTools || schemas.length === 0 ? '## Bound action contract' : '## Bound action contract and schemas',
557
557
  '',
@@ -636,9 +636,9 @@ function generatedScriptBanner(kind, id) {
636
636
  return `// Generated by WTF-P adapter compiler v${GENERATOR_VERSION} from ${kind}/${id}; do not edit.`;
637
637
  }
638
638
 
639
- const CLIO_AUTHOR_QUESTIONS = 'Every question `ask_user` puts to the author here is the author\'s to answer: ask exactly one question per `ask_user` call, with its options and `operator_only: true`; Clio refuses an `operator_only` question sent with others. Clio never answers such a question for an absent author; an unanswered one ends the turn instead of taking a recommended option, so a timeout never becomes an author decision.';
639
+ const PANCODE_AUTHOR_QUESTIONS = 'Every question `ask_user` puts to the author here is the author\'s to answer: ask exactly one question per `ask_user` call, with its options and `operator_only: true`; PanCode refuses an `operator_only` question sent with others. PanCode never answers such a question for an absent author; an unanswered one ends the turn instead of taking a recommended option, so a timeout never becomes an author decision.';
640
640
 
641
- function clioUserGateBody(action, deskTools = false) {
641
+ function pancodeUserGateBody(action, deskTools = false) {
642
642
  if (!action.effects.some((effect) => effect.id === 'user.gate')) return '';
643
643
  // A local model tried every branch of a two-way rule in turn; state only the one this action can take.
644
644
  const createsCheckpoint = action.produces.some((output) => output.uri === 'project://checkpoints/{checkpoint}' && output.mode === 'create');
@@ -646,56 +646,56 @@ function clioUserGateBody(action, deskTools = false) {
646
646
  ? 'For a pending checkpoint in the declared gate\'s exact scope, call `extension_wtfp__gate` with its ID; the desk shows it to the author and seals the answer. When none exists yet, create it pending through `extension_wtfp__record`, then call `extension_wtfp__gate` with its ID. The gate is the only place its question is asked: never ask it, or a preview of it, with `ask_user`, or the author answers twice.'
647
647
  : 'This action creates no checkpoint, so ask its gate question with `ask_user` and act on the structured answer; call `extension_wtfp__gate` only for a pending checkpoint `extension_wtfp__status` lists in the gate\'s exact scope, and never create one.';
648
648
  if (deskTools) return [
649
- '## Clio user-gate binding',
649
+ '## PanCode user-gate binding',
650
650
  '',
651
651
  route + ' Only the structured author answer satisfies the gate; cancelled, kept or expired checkpoints authorize nothing. Never write `resolution.resolved_by: author`, never resolve, unblock or expire a blocking checkpoint, and never infer approval from invocation text, prose or silence. A plan is approved only by an `approve` answer on a checkpoint scoped to that plan\'s URI, for its current bytes. Read back a persisted resolution with `extension_wtfp__read_record`, which reports whether the desk attests it, before applying its gated mutation. A record change that turns a gate off waits for the author\'s confirmation, which the record tool asks for itself.',
652
652
  '',
653
- CLIO_AUTHOR_QUESTIONS
653
+ PANCODE_AUTHOR_QUESTIONS
654
654
  ].join('\n');
655
655
  return [
656
- '## Clio user-gate binding',
656
+ '## PanCode user-gate binding',
657
657
  '',
658
658
  'Call `ask_user` whenever this workflow reaches a declared `user.gate`; only the structured value returned by that tool satisfies the gate. Invocation arguments, assistant prose, silence, or a report artifact do not count as a selection. Apply no gated mutation before `ask_user` returns. After any permitted mutation, perform the workflow-required readback before reporting success.',
659
659
  '',
660
- CLIO_AUTHOR_QUESTIONS
660
+ PANCODE_AUTHOR_QUESTIONS
661
661
  ].join('\n');
662
662
  }
663
663
 
664
- // Whether an action writes portable JSON records, which on Clio only the desk's
664
+ // Whether an action writes portable JSON records, which on PanCode only the desk's
665
665
  // record tool may do. An action that writes none reads records through the desk
666
666
  // and needs neither the record tool nor the schemas a writer validates against.
667
- function clioRecordWriter(action) {
667
+ function pancodeRecordWriter(action) {
668
668
  return action.produces.some((output) =>
669
669
  /^project:\/\/(?:manifest|config|state|decisions|structure\/outline|(?:sections|sources|evidence|checkpoints|validations)\/[^/]+)$/.test(output.uri));
670
670
  }
671
671
 
672
672
  // On the desk only the record tool writes JSON records, so a writing role of an
673
- // action that produces no file has no root it may hold: Clio reads an empty
673
+ // action that produces no file has no root it may hold: PanCode reads an empty
674
674
  // write_roots as unbounded and the desk refuses it. The main agent does that
675
675
  // role's work itself. Read-only reviewers still dispatch.
676
- function clioInlineRoles(action, reviewers, deskTools) {
676
+ function pancodeInlineRoles(action, reviewers, deskTools) {
677
677
  if (!deskTools) return [];
678
678
  const recordOnly = action.produces.every((output) =>
679
679
  /^project:\/\/(?:manifest|config|state|decisions|structure\/outline|(?:sections|sources|evidence|checkpoints|validations)\/[^/]+)$/.test(output.uri));
680
680
  return recordOnly ? action.delegation.map((entry) => entry.role).filter((role) => !reviewers.has(role)) : [];
681
681
  }
682
682
 
683
- // The desk tools one Clio prompt's turn holds: a record writer gets every
683
+ // The desk tools one PanCode prompt's turn holds: a record writer gets every
684
684
  // record tool, a reader only what reads, and a gate only where it declares one.
685
685
  const archives = (action) => action.produces.some((output) => output.mode === 'archive' && output.uri.startsWith('project://archives/'));
686
686
 
687
- function clioDeskTools(action) {
688
- if (clioRecordWriter(action)) return [...CLIO_DESK_TOOLS, ...(archives(action) ? ['extension_wtfp__archive'] : [])];
687
+ function pancodeDeskTools(action) {
688
+ if (pancodeRecordWriter(action)) return [...PANCODE_DESK_TOOLS, ...(archives(action) ? ['extension_wtfp__archive'] : [])];
689
689
  const tools = ['status', 'read_record', 'readiness'];
690
690
  if (action.effects.some((effect) => effect.id === 'user.gate')) tools.push('gate');
691
691
  return tools.map((tool) => `extension_wtfp__${tool}`);
692
692
  }
693
693
 
694
- // Only the canonical Clio namespace prefers the optional desk. The unrooted
694
+ // Only the canonical PanCode namespace prefers the optional desk. The unrooted
695
695
  // phase-1 projection remains intact for the Claude envelope and other hosts.
696
- function clioDeskWorkflowBody(action, workflowBody) {
697
- const writer = clioRecordWriter(action);
698
- // Clio re-sends an inlined file with every request and never pins it across
696
+ function pancodeDeskWorkflowBody(action, workflowBody) {
697
+ const writer = pancodeRecordWriter(action);
698
+ // PanCode re-sends an inlined file with every request and never pins it across
699
699
  // compaction; a skill loaded through context survives compaction, and a file
700
700
  // read with the read tool can be evicted once used.
701
701
  let body = workflowBody
@@ -717,11 +717,11 @@ function clioDeskWorkflowBody(action, workflowBody) {
717
717
  if (action.requirements.capabilities.includes('workflow.drive')) {
718
718
  const contract = /^## Record contract\n[\s\S]*?(?=^## Procedure$)/m;
719
719
  if (!contract.test(body)) throw new Error(`${action.id}: no record contract section to project`);
720
- return `${body.replace(contract, '## Record contract\n\nThe driver writes nothing itself. Each step reads and writes only what its own prompt\'s record contract declares, for the section the desk names; the desk arms the write guard for that step alone.\n\n')}\n\n${clioDriverBinding()}`;
720
+ return `${body.replace(contract, '## Record contract\n\nThe driver writes nothing itself. Each step reads and writes only what its own prompt\'s record contract declares, for the section the desk names; the desk arms the write guard for that step alone.\n\n')}\n\n${pancodeDriverBinding()}`;
721
721
  }
722
722
  const bindings = [
723
- clioDeskCalls(clioDeskTools(action)),
724
- 'Read a large source or manuscript by section with `grep` and a bounded `read` range, never whole: Clio ends the turn when one turn\'s reads exceed its observation budget.',
723
+ pancodeDeskCalls(pancodeDeskTools(action)),
724
+ 'Read a large source or manuscript by section with `grep` and a bounded `read` range, never whole: PanCode ends the turn when one turn\'s reads exceed its observation budget.',
725
725
  'An author\'s request is never permission to write outside this action\'s declared outputs: do the part it declares, then end by naming the action that owns the rest as the next step, and do not ask again or weigh the request against the contract; the desk refuses the rest regardless.',
726
726
  'Start from the desk\'s status, not from individual records: the reminder the desk injects when a WTF-P turn starts, or `extension_wtfp__status` inside an advance run or after this action writes. Then read only the records and artifacts this action will change, quote or check in detail.',
727
727
  ...(action.produces.some((output) => output.uri.startsWith('project://paper'))
@@ -737,7 +737,7 @@ function clioDeskWorkflowBody(action, workflowBody) {
737
737
 
738
738
  // Argument shapes for the desk tools. A gateway describe resends the whole
739
739
  // context, so a prompt that states the shapes lets the model call at once.
740
- const CLIO_DESK_ARGS = Object.freeze({
740
+ const PANCODE_DESK_ARGS = Object.freeze({
741
741
  status: '{}',
742
742
  next_step: '{after}',
743
743
  read_record: '{uri}',
@@ -748,26 +748,45 @@ const CLIO_DESK_ARGS = Object.freeze({
748
748
  record: '{uri, record: {<every field of the record>}, expect_revision|expect_sha256} or {writes:[{uri, record, expect_...}]}, with no record field outside `record`'
749
749
  });
750
750
 
751
- function clioDeskCalls(tools) {
751
+ function pancodeDeskCalls(tools) {
752
752
  const args = tools.map((tool) => {
753
753
  const name = tool.replace(/^extension_wtfp__/, '');
754
- if (!(name in CLIO_DESK_ARGS)) throw new Error(`no Clio argument shape for desk tool ${tool}`);
755
- return `${name} ${CLIO_DESK_ARGS[name]}`;
754
+ if (!(name in PANCODE_DESK_ARGS)) throw new Error(`no PanCode argument shape for desk tool ${tool}`);
755
+ return `${name} ${PANCODE_DESK_ARGS[name]}`;
756
756
  });
757
- return `Call desk tools with \`gateway(op="call", capability="extension_wtfp__<tool>", args={...})\`, without a describe first; args: ${args.join(', ')}. Describe one only after it rejects its arguments. A record write that would not validate, or reports a stale read or a missing version, asks you to fix the record or read it again and resend; that is not a refusal. Any other error or refusal stops the action; never bypass it with a manual write or shell script. \`read_record\` on a family URI, such as \`project://sources\` or \`project://evidence\`, returns that family's records in one call, and names a \`?after=\` page for any it holds back; list a family that way, never with a shell. It serves JSON records only; read authored artifacts directly: \`project://sections/{s}/context\`, \`research\`, \`summary\` and \`handoff\` are \`.planning/sections/{s}/<name>.md\`, plans and reviews are \`.planning/sections/{s}/plans/<id>.md\` and \`reviews/<id>.md\`, and \`project://paper/{a}\` is \`paper/{a}.md\`.`;
757
+ return `Call desk tools with \`gateway(op="call", capability="extension_wtfp__<tool>", args={...})\`, without a describe first; args: ${args.join(', ')}. Describe one only after it rejects its arguments. A record write that would not validate, or reports a stale read or a missing version, asks you to fix the record or read it again and resend; that is not a refusal. Any other error or refusal stops the action; never bypass it with a manual write or shell script. \`read_record\` on a family URI, such as \`project://sources\` or \`project://evidence\`, returns that family's records in one call, and names a \`?after=\` page for any it holds back; list a family that way, never with a shell. It serves JSON records only; read authored artifacts directly: ${PANCODE_ARTIFACT_PATHS}.`;
758
758
  }
759
759
 
760
- // The Clio projection of the workflow.drive capability. The desk, not the
760
+ // Where PanCode keeps the portable project's resources (protocol/project/README.md).
761
+ // A worker holds only `project://` URIs and no desk to resolve them, so its
762
+ // recipe and its playbook carry these paths.
763
+ const PANCODE_RECORD_PATHS = '`project://manifest`, `config`, `state` and `decisions` are `.planning/project.json`, `config.json`, `state.json` and `decisions.json`; `project://structure/outline` is `.planning/structure/outline.json`; `project://sections/{s}` is `.planning/sections/{s}/section.json`; and `project://sources/{id}`, `evidence/{id}`, `checkpoints/{id}` and `validations/{id}` are `.planning/sources/{id}.json`, `.planning/evidence/{id}.json`, `.planning/checkpoints/{id}.json` and `.planning/validations/{id}.json`';
764
+ const PANCODE_ARTIFACT_PATHS = '`project://sections/{s}/context`, `research`, `summary` and `handoff` are `.planning/sections/{s}/<name>.md`, plans and reviews are `.planning/sections/{s}/plans/<id>.md` and `reviews/<id>.md`, and `project://paper/{a}` is `paper/{a}.md`';
765
+
766
+ // One declared logical write as the workspace path a PanCode worker writes.
767
+ // `section` is what stands for the section id; other placeholders read as `<name>`.
768
+ function pancodeArtifactPath(resource, section) {
769
+ const sectionPart = (value) => value === '{section}' ? section : `<${value.replace(/[{}]/gu, '')}>`;
770
+ const paper = /^project:\/\/paper\/(\{[a-z]+\})$/u.exec(resource);
771
+ if (paper) return `paper/${sectionPart(paper[1])}.md`;
772
+ const named = /^project:\/\/sections\/(\{[a-z]+\})\/(context|research|summary|handoff)$/u.exec(resource);
773
+ if (named) return `.planning/sections/${sectionPart(named[1])}/${named[2]}.md`;
774
+ const listed = /^project:\/\/sections\/(\{[a-z]+\})\/(plans|reviews)\/(\{[a-z]+\})$/u.exec(resource);
775
+ if (listed) return `.planning/sections/${sectionPart(listed[1])}/${listed[2]}/${sectionPart(listed[3])}.md`;
776
+ return null;
777
+ }
778
+
779
+ // The PanCode projection of the workflow.drive capability. The desk, not the
761
780
  // model, picks each step and arms the write guard for exactly that action.
762
- function clioDriverBinding() {
781
+ function pancodeDriverBinding() {
763
782
  return [
764
- '## Clio driver binding',
783
+ '## PanCode driver binding',
765
784
  '',
766
- `${clioDeskCalls([...CLIO_DESK_TOOLS, CLIO_DRIVER_TOOL])} If \`extension_wtfp__next_step\` is absent, the WTF-P desk extension is not running: report that \`advance\` needs it and stop without running any action.`,
785
+ `${pancodeDeskCalls([...PANCODE_DESK_TOOLS, PANCODE_DRIVER_TOOL])} If \`extension_wtfp__next_step\` is absent, the WTF-P desk extension is not running: report that \`advance\` needs it and stop without running any action.`,
767
786
  '',
768
- 'Call `extension_wtfp__next_step` with `after` set to `"start"`, and on every later call to the step you just finished, such as `"write-section introduction"` or `"gate confirm-plan-introduction"`; Clio\'s loop guard reads repeated identical calls as a loop. Its result names exactly one of:',
787
+ 'Call `extension_wtfp__next_step` with `after` set to `"start"`, and on every later call to the step you just finished, such as `"write-section introduction"` or `"gate confirm-plan-introduction"`; PanCode\'s loop guard reads repeated identical calls as a loop. Its result names exactly one of:',
769
788
  '',
770
- '- `step`: an action, a section when the action takes one, and the step\'s prompt path relative to the plugin root. The desk has armed its write guard for that action and section only. Read `${pluginRoot}/` followed by that whole path, such as `${pluginRoot}/ai.iowarp.clio/prompts/wtfp/write-section.md`, and follow it as if the author had typed `/wtfp:<action> <section>`: the section is its invocation input, and paths it writes under the plugin-root placeholder are under `${pluginRoot}`. Load the skill it names before acting. When the action completes, call `extension_wtfp__next_step` again.',
789
+ '- `step`: an action, a section when the action takes one, and the step\'s prompt path relative to the plugin root. The desk has armed its write guard for that action and section only. Read `${pluginRoot}/` followed by that whole path, such as `${pluginRoot}/dev.pancode/prompts/wtfp/write-section.md`, and follow it as if the author had typed `/wtfp:<action> <section>`: the section is its invocation input, and paths it writes under the plugin-root placeholder are under `${pluginRoot}`. Load the skill it names before acting. When the action completes, call `extension_wtfp__next_step` again.',
771
790
  '- `gate`: a checkpoint ID. Call `extension_wtfp__gate` with it; the desk interviews the author and seals the answer. Then call `extension_wtfp__next_step` again.',
772
791
  '- `stop`: the reason the run ends. Report it with the steps taken and end the turn.',
773
792
  '',
@@ -775,10 +794,10 @@ function clioDriverBinding() {
775
794
  ].join('\n');
776
795
  }
777
796
 
778
- function clioResearchConnectionBody(action) {
797
+ function pancodeResearchConnectionBody(action) {
779
798
  if (action.id !== 'research-gap') return '';
780
799
  return [
781
- '## Clio CiteNexus binding',
800
+ '## PanCode CiteNexus binding',
782
801
  '',
783
802
  'At yolo autonomy, search through the operator\'s CiteNexus MCP server, declared as `cite-nexus` with read-class tools in their user configuration. This prompt admits its four lookup capabilities, so call them directly without a gateway `find` or `describe`, each of which resends the whole context: `gateway(op="call", capability="mcp_cite-nexus__search-papers", args={query, providers, limit})` with a bounded public metadata query, `providers` drawn from `crossref`, `datacite`, `europe_pmc` and `arxiv`, and `limit` at most 10 per provider; results are compact, without abstracts. Check a candidate with `mcp_cite-nexus__resolve-paper` `{identifier}` or `mcp_cite-nexus__verify-citation` `{citation, expected_title, expected_year}`, and fetch a reference with `mcp_cite-nexus__get-citation` `{identifier, format}`. MCP connections are session-owned and unavailable in delegated workers, so pass the returned candidates and provenance to `wtfp-research-synthesizer` instead of asking that worker to discover the MCP server. This user-configured read connection is prior authorization for those searches; do not call `ask_user` again for each query. Only if the gateway reports no MCP server named `cite-nexus` may yolo instead run the bundled `citation-search --backend=cite-nexus` through its declared dispatcher with bounded public queries and an explicit `--providers` list containing only `crossref`, `datacite`, `europe_pmc`, or `arxiv`; pass those candidates to the same specialist. An operator-set offline flag, unavailable companion, or host refusal stops this route. Other providers and modes follow the declared user gate. Never bypass a gateway refusal by rerunning the same denied request through `bash`. Record the exact provider IDs, queries, limits, date, and provenance; verify each retained candidate before citing it.'
784
803
  ].join('\n');
@@ -801,6 +820,27 @@ const HELP_START_SEQUENCE = Object.freeze([
801
820
  'write-section', 'review-section', 'progress', 'pause-writing', 'resume-writing'
802
821
  ]);
803
822
 
823
+ // The catalog's actions in the help card's reading order: one group per skill,
824
+ // then the product operations. The desk's help card draws the same groups.
825
+ function helpGroups(model) {
826
+ const groupIds = new Set(HELP_GROUP_ORDER.map(([id]) => id));
827
+ for (const skill of model.catalog.skills) {
828
+ if (!groupIds.has(skill.id)) throw new Error(`help card has no group order for skill ${skill.id}`);
829
+ }
830
+ return [
831
+ ...HELP_GROUP_ORDER.map(([skillId, title]) => ({
832
+ title,
833
+ skill: skillId,
834
+ actions: model.catalog.skills.find((entry) => entry.id === skillId).actions
835
+ })),
836
+ { title: 'Product operations', skill: null, actions: model.catalog.operations.actions }
837
+ ];
838
+ }
839
+
840
+ function pancodeHelpData(model) {
841
+ return stableJson({ schema: 'wtfp.pancode-help/v1', groups: helpGroups(model).map(({ title, actions }) => ({ title, actions })) });
842
+ }
843
+
804
844
  // The argument a human types after the action, derived from the contract's
805
845
  // preconditions: an action whose condition names a target or selected section
806
846
  // takes a section id; a selected prose target or milestone id likewise.
@@ -812,11 +852,11 @@ function helpArgumentHint(action) {
812
852
  return '[input]';
813
853
  }
814
854
 
815
- // Clio renders a display-only prompt by printing its first fenced block to the
855
+ // PanCode renders a display-only prompt by printing its first fenced block to the
816
856
  // operator without a model call. The block is a self-contained reference:
817
857
  // no includes, no procedure, only what a human needs to pick the next action.
818
858
  // `legacyFleetNames` renders the pre-playbook wording the Claude envelope keeps.
819
- function clioHelpCard(model, availabilityById, legacyFleetNames = false) {
859
+ function pancodeHelpCard(model, availabilityById, legacyFleetNames = false) {
820
860
  const byId = new Map(model.actions.map((action) => [action.id, action]));
821
861
  const line = (id) => {
822
862
  const action = byId.get(id);
@@ -824,19 +864,16 @@ function clioHelpCard(model, availabilityById, legacyFleetNames = false) {
824
864
  const availability = availabilityById.get(id);
825
865
  const blocked = availability.available
826
866
  ? ''
827
- : ` [unavailable on clio: ${[...new Set([...availability.unavailableCapabilities, ...availability.unavailableEffects])].join(', ')}]`;
867
+ : ` [unavailable on pancode: ${[...new Set([...availability.unavailableCapabilities, ...availability.unavailableEffects])].join(', ')}]`;
828
868
  return ` /wtfp:${id} ${helpArgumentHint(action)}\n ${action.description}${blocked}`;
829
869
  };
830
- const groupIds = new Set(HELP_GROUP_ORDER.map(([id]) => id));
831
- for (const skill of model.catalog.skills) {
832
- if (!groupIds.has(skill.id)) throw new Error(`help card has no group order for skill ${skill.id}`);
833
- }
870
+ const groups = helpGroups(model);
834
871
  for (const id of HELP_START_SEQUENCE) if (!byId.has(id)) throw new Error(`help card start sequence names an unknown action: ${id}`);
835
872
  const playbooks = fs.readdirSync(path.join(PROTOCOL_ROOT, 'fleets'))
836
873
  .filter((file) => file.endsWith('.json')).sort()
837
874
  .map((file) => readJson(path.join(PROTOCOL_ROOT, 'fleets', file)));
838
875
  const card = [
839
- `WTF-P ${model.version} on Clio Coder: evidence-grounded academic writing`,
876
+ `WTF-P ${model.version} on PanCode: evidence-grounded academic writing`,
840
877
  '',
841
878
  'Start here',
842
879
  ...HELP_START_SEQUENCE.flatMap((id) => [
@@ -847,16 +884,10 @@ function clioHelpCard(model, availabilityById, legacyFleetNames = false) {
847
884
  : [])
848
885
  ]),
849
886
  '',
850
- ...HELP_GROUP_ORDER.flatMap(([skillId, title]) => {
851
- const skill = model.catalog.skills.find((entry) => entry.id === skillId);
852
- return [`${title} (skill ${skillId})`, ...skill.actions.map(line), ''];
853
- }),
854
- 'Product operations',
855
- ...model.catalog.operations.actions.map(line),
856
- '',
887
+ ...groups.flatMap(({ title, skill, actions }) => [skill ? `${title} (skill ${skill})` : title, ...actions.map(line), '']),
857
888
  legacyFleetNames
858
- ? 'Fleets (clio-coder fleet run <fleet> --var section=<section>; explicit fleet primitives, not auto-routed)'
859
- : 'Playbooks (clio-coder fleet run <playbook> --var section=<section>; run explicitly, never auto-routed)',
889
+ ? 'Fleets (pancode fleet run <fleet> --var section=<section>; explicit fleet primitives, not auto-routed)'
890
+ : 'Playbooks (pancode fleet run <playbook> --var section=<section>; run explicitly, never auto-routed)',
860
891
  ...playbooks.map((playbook) => ` ${playbook.id}\n ${playbook.description}`),
861
892
  '',
862
893
  'Each action reads .planning/ records and paper/ artifacts, asks before any gated write, and never runs Git or publishes.',
@@ -883,17 +914,20 @@ function renderMarkdownCommand(action, workflowBody, target, availability, deskT
883
914
  // Claude derives the stable command name from the plugin id and flat file
884
915
  // name. Repeating either in frontmatter creates names such as
885
916
  // /wtfp:wtfp:new-paper in current Claude Code releases.
886
- if (target !== 'clio' && target !== 'claude') lines.push(`name: wtfp:${action.id}`);
917
+ if (target !== 'pancode' && target !== 'claude') lines.push(`name: wtfp:${action.id}`);
887
918
  lines.push(`description: ${yamlScalar(action.description)}`);
888
919
  // Without the desk there is no driver to select steps; never let a model drive itself.
889
- if (availability.available && target === 'clio' && !deskTools && action.requirements.capabilities.includes('workflow.drive')) {
920
+ if (availability.available && target === 'pancode' && !deskTools && action.requirements.capabilities.includes('workflow.drive')) {
890
921
  availability = { ...availability, available: false, unavailableCapabilities: ['workflow.drive'], unavailableEffects: [] };
891
922
  }
892
923
  if (!availability.available) {
893
924
  if (target === 'claude' || target === 'copilot' || target === 'antigravity') {
894
925
  lines.push('allowed-tools: []');
895
926
  }
896
- lines.push('---', '', blockedActionBody(action, target, availability), '', generatedBanner('protocol/actions', action.id), '');
927
+ // PanCode prints a display-only prompt's first fenced block with no model call, so the refusal costs nothing.
928
+ if (target === 'pancode') lines.push('display-only: true');
929
+ const body = blockedActionBody(action, target, availability);
930
+ lines.push('---', '', target === 'pancode' ? ['```text', body, '```'].join('\n') : body, '', generatedBanner('protocol/actions', action.id), '');
897
931
  return lines.join('\n');
898
932
  }
899
933
  lines.push('argument-hint: "[arguments]"');
@@ -904,25 +938,25 @@ function renderMarkdownCommand(action, workflowBody, target, availability, deskT
904
938
  for (const tool of tools) lines.push(` - ${tool}`);
905
939
  }
906
940
  }
907
- if (target === 'clio') {
941
+ if (target === 'pancode') {
908
942
  lines.push('allowed-tools:');
909
- const inline = new Set(clioInlineRoles(action, reviewers, deskTools));
943
+ const inline = new Set(pancodeInlineRoles(action, reviewers, deskTools));
910
944
  const dispatched = { ...action, delegation: action.delegation.filter((entry) => !inline.has(entry.role)) };
911
- for (const tool of clioActionTools(dispatched, deskTools)) lines.push(` - ${tool}`);
912
- const delegated = clioDelegatedTools(dispatched, reviewers);
945
+ for (const tool of pancodeActionTools(dispatched, deskTools)) lines.push(` - ${tool}`);
946
+ const delegated = pancodeDelegatedTools(dispatched, reviewers);
913
947
  if (delegated.length > 0) {
914
948
  lines.push('delegated-tools:');
915
949
  for (const tool of delegated) lines.push(` - ${tool}`);
916
950
  }
917
951
  }
918
952
  const nativeBody = nativeCommandBody(action, workflowBody, target, deskTools);
919
- const clioRoles = action.delegation.map((entry) => `\`wtfp-${entry.role}\``).join(', ');
920
- // Clio refuses a read-only recipe a task it reads as a change; a task that reads as a review never is.
921
- const clioReviewers = action.delegation.filter((entry) => reviewers.has(entry.role)).map((entry) => `\`wtfp-${entry.role}\``);
922
- const reviewerPhrasing = clioReviewers.length ? ` ${clioReviewers.join(', ')} ${clioReviewers.length === 1 ? 'is' : 'are'} read-only: begin each task for ${clioReviewers.length === 1 ? 'it' : 'them'} with "Review", because Clio refuses a read-only agent a task it reads as a change.` : '';
923
- const inlineRoles = target === 'clio' ? clioInlineRoles(action, reviewers, deskTools) : [];
924
- const inlineBody = inlineRoles.length ? `## Clio role binding\n\nThis action writes only JSON records, which on Clio only \`extension_wtfp__record\` writes, so a dispatched ${inlineRoles.map((role) => `\`wtfp-${role}\``).join(', ')} would have nothing it may write and the desk refuses it. Do ${inlineRoles.length === 1 ? 'that role\'s' : 'those roles\''} work in this turn yourself, following the skill loaded above, and write each record through \`extension_wtfp__record\`. Do not dispatch ${inlineRoles.length === 1 ? 'it' : 'them'}.` : '';
925
- const userGateBody = target === 'clio' ? [clioUserGateBody(action, deskTools), clioResearchConnectionBody(action), inlineBody, action.delegation.length > inlineRoles.length ? `## Clio role-result binding\n\nDispatch the declared specialist roles using these exact Clio agent IDs: ${clioRoles}. Do not substitute generic coder or verifier agents. Give every dispatched task an \`agent\` and an \`intent\` with workspace-relative \`read_roots\`, and keep absolute paths and \`project://\` URIs out of the task text, so Clio admits the scope you declare instead of inferring one from the prose. If a named agent is unavailable, report that blocker and stop instead of silently changing roles.${reviewerPhrasing}\n\nRead the single wtfp.role-result entry in native validations and parse its evidence string as portable role-result JSON.${clioReviewers.length ? ` A read-only reviewer returns only a verdict and checks, no wtfp.role-result entry: treat its report as completed, each failed check as an issue, and a fail verdict as a revise recommendation. Clio's dispatch result calls such a run's validation failed when a check did not pass; that is the review's finding, not a failed run, so record it as the action's procedure says.` : ''} Validate its schema, role and action against the dispatched task. Missing, duplicate or malformed outcomes fail closed. On needs_input ask the author through ask_user and redispatch with the response; on blocked or failed stop and report the issue. Only completed permits downstream work, and it never substitutes for an author gate or artifact readback.` : ''].filter(Boolean).join('\n\n') : '';
953
+ const pancodeRoles = action.delegation.map((entry) => `\`wtfp-${entry.role}\``).join(', ');
954
+ // PanCode refuses a read-only recipe a task it reads as a change; a task that reads as a review never is.
955
+ const pancodeReviewers = action.delegation.filter((entry) => reviewers.has(entry.role)).map((entry) => `\`wtfp-${entry.role}\``);
956
+ const reviewerPhrasing = pancodeReviewers.length ? ` ${pancodeReviewers.join(', ')} ${pancodeReviewers.length === 1 ? 'is' : 'are'} read-only: begin each task for ${pancodeReviewers.length === 1 ? 'it' : 'them'} with "Review", because PanCode refuses a read-only agent a task it reads as a change.` : '';
957
+ const inlineRoles = target === 'pancode' ? pancodeInlineRoles(action, reviewers, deskTools) : [];
958
+ const inlineBody = inlineRoles.length ? `## PanCode role binding\n\nThis action writes only JSON records, which on PanCode only \`extension_wtfp__record\` writes, so a dispatched ${inlineRoles.map((role) => `\`wtfp-${role}\``).join(', ')} would have nothing it may write and the desk refuses it. Do ${inlineRoles.length === 1 ? 'that role\'s' : 'those roles\''} work in this turn yourself, following the skill loaded above, and write each record through \`extension_wtfp__record\`. Do not dispatch ${inlineRoles.length === 1 ? 'it' : 'them'}.` : '';
959
+ const userGateBody = target === 'pancode' ? [pancodeUserGateBody(action, deskTools), pancodeResearchConnectionBody(action), inlineBody, action.delegation.length > inlineRoles.length ? `## PanCode role-result binding\n\nDispatch the declared specialist roles using these exact PanCode agent IDs: ${pancodeRoles}. Do not substitute generic coder or verifier agents. Give every dispatched task an \`agent\` and an \`intent\` with workspace-relative \`read_roots\`, and keep absolute paths and \`project://\` URIs out of the task text, so PanCode admits the scope you declare instead of inferring one from the prose. If a named agent is unavailable, report that blocker and stop instead of silently changing roles.${reviewerPhrasing}\n\nRead the single wtfp.role-result entry in native validations and parse its evidence string as portable role-result JSON.${pancodeReviewers.length ? ` A read-only reviewer returns only a verdict and checks, no wtfp.role-result entry: treat its report as completed, each failed check as an issue, and a fail verdict as a revise recommendation. PanCode's dispatch result calls such a run's validation failed when a check did not pass; that is the review's finding, not a failed run, so record it as the action's procedure says.` : ''} Validate its schema, role and action against the dispatched task. Missing, duplicate or malformed outcomes fail closed. On needs_input ask the author through ask_user and redispatch with the response; on blocked or failed stop and report the issue. Only completed permits downstream work, and it never substitutes for an author gate or artifact readback.` : ''].filter(Boolean).join('\n\n') : '';
926
960
  lines.push(
927
961
  '---',
928
962
  '',
@@ -1094,33 +1128,33 @@ function renderCopilotCloudRole(role, slug) {
1094
1128
  ].join('\n');
1095
1129
  }
1096
1130
 
1097
- // The tools a Clio role recipe declares. Verifier roles judge text and run
1098
- // nothing, so their recipes are Clio's read-only class: no write, no shell and
1131
+ // The tools a PanCode role recipe declares. Verifier roles judge text and run
1132
+ // nothing, so their recipes are PanCode's read-only class: no write, no shell and
1099
1133
  // no verify, whose checks run commands from files a writer could have planted.
1100
- // Clio refuses a skill load in a read-only run, so they bind none; the recipe
1134
+ // PanCode refuses a skill load in a read-only run, so they bind none; the recipe
1101
1135
  // body is the role's whole contract, and the orchestrator holds the action's skill.
1102
- function clioRoleTools(verifier) {
1136
+ function pancodeRoleTools(verifier) {
1103
1137
  return verifier
1104
1138
  ? { required: ['read'], optional: ['context', 'grep', 'find', 'ls', 'ledger'] }
1105
1139
  : { required: ['read', 'context', 'limitation', { anyOf: ['write', 'edit'] }], optional: ['grep', 'find', 'ls', 'ledger'] };
1106
1140
  }
1107
1141
 
1108
- function clioToolList(entries) {
1142
+ function pancodeToolList(entries) {
1109
1143
  return `[${entries.map((entry) => (typeof entry === 'string' ? entry : `{anyOf: [${entry.anyOf.join(', ')}]}`)).join(', ')}]`;
1110
1144
  }
1111
1145
 
1112
- const CLIO_DESK_TOOLS = Object.freeze(['status', 'record', 'read_record', 'readiness', 'measure_section', 'gate'].map((tool) => `extension_wtfp__${tool}`));
1146
+ const PANCODE_DESK_TOOLS = Object.freeze(['status', 'record', 'read_record', 'readiness', 'measure_section', 'gate'].map((tool) => `extension_wtfp__${tool}`));
1113
1147
  // Held only by actions that require workflow.drive: the desk arms each step itself.
1114
- const CLIO_DRIVER_TOOL = 'extension_wtfp__next_step';
1148
+ const PANCODE_DRIVER_TOOL = 'extension_wtfp__next_step';
1115
1149
  // The CiteNexus lookups the research binding calls, under the server id CiteNexus documents.
1116
- const CLIO_CITE_NEXUS_TOOLS = Object.freeze(['search-papers', 'resolve-paper', 'verify-citation', 'get-citation'].map((tool) => `mcp_cite-nexus__${tool}`));
1150
+ const PANCODE_CITE_NEXUS_TOOLS = Object.freeze(['search-papers', 'resolve-paper', 'verify-citation', 'get-citation'].map((tool) => `mcp_cite-nexus__${tool}`));
1117
1151
 
1118
- // The tools one Clio prompt's turn may hold (allowed-tools), from the Clio
1119
- // bindings of the action's declared capabilities. Clio 0.6.3 narrows a
1120
- // template turn to them; 0.6.2 ignores the field. Only the bundled citation
1152
+ // The tools one PanCode prompt's turn may hold (allowed-tools), from the PanCode
1153
+ // bindings of the action's declared capabilities. PanCode narrows a
1154
+ // template turn to them. Only the bundled citation
1121
1155
  // dispatcher needs a shell, so an action holds bash only when it declares
1122
1156
  // tool.execute or network.search, and never run_script, job, git or verify.
1123
- function clioActionTools(action, deskTools) {
1157
+ function pancodeActionTools(action, deskTools) {
1124
1158
  const capabilities = new Set(action.requirements.capabilities);
1125
1159
  const tools = ['read', 'grep', 'find', 'ls', 'context'];
1126
1160
  if (capabilities.has('filesystem.write') || capabilities.has('filesystem.delete')) tools.push('write', 'edit');
@@ -1128,22 +1162,22 @@ function clioActionTools(action, deskTools) {
1128
1162
  if ((capabilities.has('agent.delegate') || capabilities.has('agent.parallel')) && action.delegation.length > 0) tools.push('dispatch', 'monitor');
1129
1163
  if (capabilities.has('network.fetch')) tools.push('web_fetch');
1130
1164
  if (capabilities.has('tool.execute') || capabilities.has('network.search')) tools.push('bash');
1131
- if (deskTools) tools.push(...clioDeskTools(action));
1132
- if (deskTools && capabilities.has('workflow.drive')) tools.push(CLIO_DRIVER_TOOL);
1133
- // Clio admits an MCP server's tools only when the turn names each capability;
1165
+ if (deskTools) tools.push(...pancodeDeskTools(action));
1166
+ if (deskTools && capabilities.has('workflow.drive')) tools.push(PANCODE_DRIVER_TOOL);
1167
+ // PanCode admits an MCP server's tools only when the turn names each capability;
1134
1168
  // the CiteNexus binding would otherwise be refused by the prompt's own scope.
1135
- if (action.id === 'research-gap' || capabilities.has('workflow.drive')) tools.push(...CLIO_CITE_NEXUS_TOOLS);
1169
+ if (action.id === 'research-gap' || capabilities.has('workflow.drive')) tools.push(...PANCODE_CITE_NEXUS_TOOLS);
1136
1170
  return tools;
1137
1171
  }
1138
1172
 
1139
1173
  // The tools the action's workers may hold (delegated-tools): every tool its
1140
- // delegated roles' recipes declare, since Clio refuses a worker whose recipe
1174
+ // delegated roles' recipes declare, since PanCode refuses a worker whose recipe
1141
1175
  // declares more than the ceiling, and without this field the turn's own
1142
1176
  // allowed-tools would be that ceiling.
1143
- function clioDelegatedTools(action, reviewers) {
1177
+ function pancodeDelegatedTools(action, reviewers) {
1144
1178
  const tools = new Set();
1145
1179
  for (const entry of action.delegation) {
1146
- const declared = clioRoleTools(reviewers.has(entry.role));
1180
+ const declared = pancodeRoleTools(reviewers.has(entry.role));
1147
1181
  for (const item of [...declared.required, ...declared.optional]) {
1148
1182
  for (const tool of typeof item === 'string' ? [item] : item.anyOf) tools.add(tool);
1149
1183
  }
@@ -1151,31 +1185,33 @@ function clioDelegatedTools(action, reviewers) {
1151
1185
  return [...tools].sort();
1152
1186
  }
1153
1187
 
1154
- // How each role runs on Clio. `latencyClass` is the routing prior for how long
1155
- // a run takes; `budget` is the advisory tool-call notice, under Clio's hard
1188
+ // How each role runs on PanCode. `latencyClass` is the routing prior for how long
1189
+ // a run takes; `budget` is the advisory tool-call notice, under PanCode's hard
1156
1190
  // per-run ceiling. Roles that read a whole manuscript or a literature set get
1157
- // the deep prior and room to read; quick checks stay fast. A read-only checker
1158
- // gets no project orientation (`projectContextTier: none`): it judges the
1159
- // artifacts it is handed, so a code-oriented repository summary is only noise
1160
- // and a source of claims it did not read.
1161
- const CLIO_ROLE_TUNING = Object.freeze({
1162
- 'argument-verifier': { latency: 'fast', toolCalls: 24, readReserve: 4 },
1163
- 'plan-checker': { latency: 'fast', toolCalls: 24, readReserve: 4 },
1164
- 'section-reviewer': { latency: 'balanced', toolCalls: 40, readReserve: 6 },
1165
- 'coherence-checker': { latency: 'deep', toolCalls: 64, readReserve: 12 },
1166
- 'research-synthesizer': { latency: 'deep', toolCalls: 96, readReserve: 12 },
1167
- 'citation-expert': { latency: 'deep', toolCalls: 96, readReserve: 12 },
1168
- 'citation-formatter': { latency: 'balanced', toolCalls: 64, readReserve: 8 },
1169
- 'outliner': { latency: 'balanced', toolCalls: 64, readReserve: 8 },
1170
- 'section-planner': { latency: 'balanced', toolCalls: 64, readReserve: 8 },
1171
- 'section-writer': { latency: 'balanced', toolCalls: 64, readReserve: 8 },
1172
- 'prose-polisher': { latency: 'balanced', toolCalls: 48, readReserve: 6 }
1191
+ // the deep prior and a larger tool-call budget; quick checks stay fast. A
1192
+ // read-only checker gets no project orientation (`projectContextTier: none`):
1193
+ // it judges the artifacts it is handed, so a code-oriented repository summary
1194
+ // is only noise and a source of claims it did not read. Recipes declare only
1195
+ // toolCalls and synthesis: the host removed the read-reserve key with no
1196
+ // alias, so a recipe that still declares it fails to parse.
1197
+ const PANCODE_ROLE_TUNING = Object.freeze({
1198
+ 'argument-verifier': { latency: 'fast', toolCalls: 24 },
1199
+ 'plan-checker': { latency: 'fast', toolCalls: 24 },
1200
+ 'section-reviewer': { latency: 'balanced', toolCalls: 40 },
1201
+ 'coherence-checker': { latency: 'deep', toolCalls: 64 },
1202
+ 'research-synthesizer': { latency: 'deep', toolCalls: 96 },
1203
+ 'citation-expert': { latency: 'deep', toolCalls: 96 },
1204
+ 'citation-formatter': { latency: 'balanced', toolCalls: 64 },
1205
+ 'outliner': { latency: 'balanced', toolCalls: 64 },
1206
+ 'section-planner': { latency: 'balanced', toolCalls: 64 },
1207
+ 'section-writer': { latency: 'balanced', toolCalls: 64 },
1208
+ 'prose-polisher': { latency: 'balanced', toolCalls: 48 }
1173
1209
  });
1174
1210
 
1175
1211
  // The role-result schema as the object a worker writes. A recipe is resent
1176
1212
  // with every worker request, and the shape carries what the schema constrains
1177
1213
  // in a quarter of its bytes: fields, constants, enums, and which are optional.
1178
- function clioRoleResultShape(schema, slug) {
1214
+ function pancodeRoleResultShape(schema, slug) {
1179
1215
  const optional = [];
1180
1216
  const shape = (node, at) => {
1181
1217
  const unstated = ['minItems', 'maxItems', 'maxLength', 'pattern', 'format', 'oneOf', 'anyOf', '$ref'].filter((key) => key in node);
@@ -1200,13 +1236,13 @@ function clioRoleResultShape(schema, slug) {
1200
1236
  return `Portable result object (${schema.$id}): ${object}. Values with | are enums; every field is required${optional.length ? ` except ${optional.map((name) => `\`${name}\``).join(', ')}` : ''}; strings are non-empty unless shown empty; arrays may be empty; add no other field.`;
1201
1237
  }
1202
1238
 
1203
- function renderClioRole(role, slug) {
1204
- const tuning = CLIO_ROLE_TUNING[slug];
1205
- if (!tuning) throw new Error(`no Clio tuning for role ${slug}`);
1239
+ function renderPanCodeRole(role, slug) {
1240
+ const tuning = PANCODE_ROLE_TUNING[slug];
1241
+ if (!tuning) throw new Error(`no PanCode tuning for role ${slug}`);
1206
1242
  const verifier = role.fields.execution_class === 'verifier-report';
1207
- const declared = clioRoleTools(verifier);
1208
- const required = clioToolList(declared.required);
1209
- const optional = clioToolList(declared.optional);
1243
+ const declared = pancodeRoleTools(verifier);
1244
+ const required = pancodeToolList(declared.required);
1245
+ const optional = pancodeToolList(declared.optional);
1210
1246
  const nativeResult = verifier
1211
1247
  ? 'Your entire final response must be one compact JSON object and nothing else: {"verdict":"pass|fail","checks":[{"name":"...","passed":true,"evidence":"..."}]}. The verdict must agree with every check. Return at most 12 non-duplicate checks, keep each evidence value to one short sentence that cites the artifact and location, keep the complete UTF-8 response at or below 4096 bytes, and emit no Markdown, code fence, analysis, or text outside the object. Where the procedure asks for findings, a status or a summary, the checks and the verdict are that result: a failed check is a finding, and fail means revise. Example: {"verdict":"fail","checks":[{"name":"claim coverage","passed":true,"evidence":"All five claims map to paragraphs P2-P6 of plan-01."},{"name":"word budget","passed":false,"evidence":"Units sum to 830 words, above the 805 ceiling."}]}'
1212
1248
  : 'Your entire final response must be one JSON object: {"mutatedPaths":["..."],"validations":[{"name":"...","passed":true,"evidence":"..."}]}. Report only paths changed in this run and validations actually performed.';
@@ -1223,7 +1259,7 @@ function renderClioRole(role, slug) {
1223
1259
  `capabilityClass: ${verifier ? 'read-only' : 'workspace-edit'}`,
1224
1260
  `latencyClass: ${tuning.latency}`,
1225
1261
  `projectContextTier: ${verifier ? 'none' : 'bounded'}`,
1226
- `budget: {toolCalls: ${tuning.toolCalls}, readReserve: ${tuning.readReserve}, synthesis: true}`,
1262
+ `budget: {toolCalls: ${tuning.toolCalls}, synthesis: true}`,
1227
1263
  `resultContract: {kind: ${verifier ? 'verifier-report' : 'mutation-report'}}`,
1228
1264
  'tags: [wtfp, research, portable-protocol]',
1229
1265
  '---',
@@ -1231,12 +1267,16 @@ function renderClioRole(role, slug) {
1231
1267
  generatedBanner('protocol/roles', slug),
1232
1268
  '',
1233
1269
  // A small model writes the review its long body describes; it reads the output form first.
1234
- ...(verifier ? ['**Output:** your final message is one JSON object, `{"verdict":"pass|fail","checks":[...]}`, and nothing else. Do every step below as checks in that object, not as a Markdown review; the exact form is in the Clio result contract at the end.', ''] : []),
1235
- nativeWorkflowBody(roleBodyWithoutPortableResult(role), 'clio'),
1270
+ ...(verifier ? ['**Output:** your final message is one JSON object, `{"verdict":"pass|fail","checks":[...]}`, and nothing else. Do every step below as checks in that object, not as a Markdown review; the exact form is in the PanCode result contract at the end.', ''] : []),
1271
+ nativeWorkflowBody(roleBodyWithoutPortableResult(role), 'pancode'),
1272
+ '',
1273
+ '## PanCode project paths',
1274
+ '',
1275
+ `On PanCode the \`project://\` URIs above are files under the workspace root. Records: ${PANCODE_RECORD_PATHS}. Authored artifacts: ${PANCODE_ARTIFACT_PATHS}. Read and write those files; section artifacts live under \`.planning/sections/\`, never a top-level \`sections/\`.`,
1236
1276
  '',
1237
- // Live on Clio 0.8.3, a writer that could not count words returned blocked and stopped the drive.
1238
- ...(/word count/i.test(roleBodyWithoutPortableResult(role)) ? ['On Clio a worker holds no word counter. The dispatching action measures the persisted manuscript after you return and writes that count into the summary, so write the summary without a count. A count you cannot take never blocks this role: return completed when the rest is done.', ''] : []),
1239
- '## Clio result contract',
1277
+ // Live on the 0.8.3 host, a writer that could not count words returned blocked and stopped the drive.
1278
+ ...(/word count/i.test(roleBodyWithoutPortableResult(role)) ? ['On PanCode a worker holds no word counter. The dispatching action measures the persisted manuscript after you return and writes that count into the summary, so write the summary without a count. A count you cannot take never blocks this role: return completed when the rest is done.', ''] : []),
1279
+ '## PanCode result contract',
1240
1280
  '',
1241
1281
  nativeResult,
1242
1282
  '',
@@ -1246,13 +1286,13 @@ function renderClioRole(role, slug) {
1246
1286
  ] : []),
1247
1287
  // A verifier's verdict and checks already determine its role result; nesting a
1248
1288
  // serialized result inside one check failed every local-model review live.
1249
- ...(verifier ? [] : [clioRoleResultShape(readJson(path.join(PROTOCOL_ROOT, 'schemas/role-result.schema.json')), slug), '']),
1289
+ ...(verifier ? [] : [pancodeRoleResultShape(readJson(path.join(PROTOCOL_ROOT, 'schemas/role-result.schema.json')), slug), '']),
1250
1290
  ...(verifier ? [] : ['Preserve the portable role outcome inside the native report. Include exactly one entry named wtfp.role-result in checks (verifier) or validations (mutation report). Its evidence string is that object serialized as JSON. Use status needs_input for author decisions and blocked for missing capabilities; passed is true only for completed. Do not contact the author directly. The orchestrator must parse this evidence, stop on needs_input/blocked/failed, ask the author when needed, and redispatch with the answer. Never infer completion from an empty mutatedPaths list. Keep the embedded result compact enough for the native response budget.']),
1251
1291
  ''
1252
1292
  ].join('\n');
1253
1293
  }
1254
1294
 
1255
- function standardPluginManifest(version, name = 'wtfp', clioExtension) {
1295
+ function standardPluginManifest(version, name = 'wtfp', pancodeExtension) {
1256
1296
  return stableJson({
1257
1297
  $schema: 'https://agent-plugins.org/schemas/1.0.0/plugin.schema.json',
1258
1298
  name, version,
@@ -1261,41 +1301,41 @@ function standardPluginManifest(version, name = 'wtfp', clioExtension) {
1261
1301
  homepage: 'https://github.com/akougkas/wtf-p',
1262
1302
  repository: 'https://github.com/akougkas/wtf-p',
1263
1303
  license: 'MIT',
1264
- ...(clioExtension ? { extensions: { 'ai.iowarp.clio': clioExtension } } : {})
1304
+ ...(pancodeExtension ? { extensions: { 'dev.pancode': pancodeExtension } } : {})
1265
1305
  });
1266
1306
  }
1267
1307
 
1268
- const CLIO_PLAYBOOKS = ['wtfp-plan-section', 'wtfp-draft-review'];
1308
+ const PANCODE_PLAYBOOKS = ['wtfp-plan-section', 'wtfp-draft-review'];
1269
1309
 
1270
- // The root manifest with the Clio namespace. Clio runs fleet contracts as
1310
+ // The root manifest with the PanCode namespace. PanCode runs fleet contracts as
1271
1311
  // playbooks. `legacyFleetNames` keeps the pre-playbook `fleets` key, kind and
1272
- // directory for the Claude envelope, whose Clio copy Clio no longer adopts.
1273
- function clioPluginManifest(model, legacyFleetNames = false) {
1274
- const playbookRoot = `ai.iowarp.clio/${legacyFleetNames ? 'fleets' : 'playbooks'}`;
1312
+ // directory for the Claude envelope, whose PanCode copy PanCode no longer adopts.
1313
+ function pancodePluginManifest(model, legacyFleetNames = false) {
1314
+ const playbookRoot = `dev.pancode/${legacyFleetNames ? 'fleets' : 'playbooks'}`;
1275
1315
  const components = [];
1276
1316
  for (const action of model.actions) components.push({
1277
1317
  kind: 'prompt', id: action.id,
1278
- path: `ai.iowarp.clio/prompts/wtfp/${action.id}.md`,
1318
+ path: `dev.pancode/prompts/wtfp/${action.id}.md`,
1279
1319
  requires: action.delegation.map(item => `agent:${item.role}`)
1280
1320
  });
1281
1321
  for (const role of model.roles) components.push({
1282
- kind: 'agent', id: role.slug, path: `ai.iowarp.clio/agents/wtfp-${role.slug}.md`,
1322
+ kind: 'agent', id: role.slug, path: `dev.pancode/agents/wtfp-${role.slug}.md`,
1283
1323
  requires: [`skill:${ROLE_SKILLS[role.slug]}`]
1284
1324
  });
1285
1325
  for (const skill of model.catalog.skills) components.push({
1286
1326
  kind: 'skill', id: skill.id, path: `skills/${skill.id}/SKILL.md`, requires: []
1287
1327
  });
1288
- for (const id of CLIO_PLAYBOOKS) components.push({
1328
+ for (const id of PANCODE_PLAYBOOKS) components.push({
1289
1329
  kind: legacyFleetNames ? 'fleet' : 'playbook', id, path: `${playbookRoot}/${id}.md`, requires: []
1290
1330
  });
1291
1331
  return standardPluginManifest(model.version, 'wtfp', {
1292
1332
  manifestVersion: 1,
1293
- // The Claude copy keeps its pre-playbook floor. The plugin installs with
1294
- // the desk, which judges only what Clio 0.6.3 sends a hook, and its
1295
- // prompts scope their tools only from 0.6.3.
1296
- compatibility: { clio: legacyFleetNames ? '>=0.4.7' : '>=0.6.3' },
1333
+ // The plugin installs with the desk, which judges only what PanCode sends
1334
+ // a hook. The Claude copy declares the same floor; its fleets layout alone
1335
+ // marks it as built for an older PanCode.
1336
+ compatibility: { pancode: '>=0.9.0' },
1297
1337
  resources: {
1298
- skills: 'skills', prompts: 'ai.iowarp.clio/prompts', agents: 'ai.iowarp.clio/agents',
1338
+ skills: 'skills', prompts: 'dev.pancode/prompts', agents: 'dev.pancode/agents',
1299
1339
  [legacyFleetNames ? 'fleets' : 'playbooks']: playbookRoot
1300
1340
  },
1301
1341
  components
@@ -1305,14 +1345,14 @@ function clioPluginManifest(model, legacyFleetNames = false) {
1305
1345
  // Playbook write boundaries are literal paths, so `{section}` cannot be
1306
1346
  // substituted. Section artifacts project to `.planning/sections/`, which keeps
1307
1347
  // workers away from checkpoints, interactions, state and config.
1308
- function clioFleetWriteBoundary(resource, fleetId) {
1348
+ function pancodeFleetWriteBoundary(resource, fleetId) {
1309
1349
  if (/^project:\/\/paper(?:\/|$)/u.test(resource)) return 'paper/';
1310
1350
  if (/^project:\/\/sections\//u.test(resource)) return '.planning/sections/';
1311
1351
  if (/^project:\/\//u.test(resource)) return '.planning/';
1312
- throw new Error(`fleet ${fleetId} has no Clio write-boundary projection for ${resource}`);
1352
+ throw new Error(`fleet ${fleetId} has no PanCode write-boundary projection for ${resource}`);
1313
1353
  }
1314
1354
 
1315
- function clioFleet(fleetId) {
1355
+ function pancodeFleet(fleetId) {
1316
1356
  const sourceName = `${fleetId}.json`;
1317
1357
  const sourcePath = path.join(PROTOCOL_ROOT, 'fleets', sourceName);
1318
1358
  const fleet = readJson(sourcePath);
@@ -1370,7 +1410,7 @@ function clioFleet(fleetId) {
1370
1410
  throw new Error(`fleet ${fleetId} step ${step.id} has an unresolved or forward dependency`);
1371
1411
  }
1372
1412
  const boundaries = [...new Set(step.writes.map(resource =>
1373
- clioFleetWriteBoundary(resource, fleetId)
1413
+ pancodeFleetWriteBoundary(resource, fleetId)
1374
1414
  ))];
1375
1415
  renderedSteps.push(' - kind: agent');
1376
1416
  renderedSteps.push(` id: ${step.id}`);
@@ -1392,11 +1432,19 @@ function clioFleet(fleetId) {
1392
1432
  /\{([a-z][a-z0-9-]*)\}/gu,
1393
1433
  (_match, parameter) => `{{${parameter}}}`
1394
1434
  );
1395
- const logicalWrites = fleet.steps.flatMap(step => step.writes);
1396
- const nativeResourceProjection = logicalWrites.some(resource =>
1397
- /^project:\/\/paper(?:\/|$)/u.test(resource)
1398
- )
1399
- ? 'For this Clio projection, resolve logical `project://paper/...` artifacts under the project-root `paper/` directory, never under `.planning/paper/`.'
1435
+ const logicalWrites = [...new Set(fleet.steps.flatMap(step => step.writes))];
1436
+ const writePaths = logicalWrites.map((resource) => {
1437
+ const file = pancodeArtifactPath(resource, '{{section}}');
1438
+ if (file === null) throw new Error(`fleet ${fleetId} has no PanCode path for ${resource}`);
1439
+ const uri = resource.replace(/\{([a-z]+)\}/gu, (_match, name) => name === 'section' ? '{{section}}' : `<${name}>`);
1440
+ return `\`${uri}\` as \`${file}\``;
1441
+ });
1442
+ const roots = [
1443
+ ...(writePaths.some((entry) => entry.includes('`.planning/sections/')) ? ['section artifacts go under `.planning/sections/`, never a top-level `sections/`'] : []),
1444
+ ...(writePaths.some((entry) => entry.includes('`paper/')) ? ['manuscripts go under `paper/`, never `.planning/paper/`'] : [])
1445
+ ];
1446
+ const nativeResourceProjection = writePaths.length > 0
1447
+ ? `On PanCode, write ${writePaths.join(' and ')}, relative to the workspace root: ${roots.join(', and ')}.`
1400
1448
  : null;
1401
1449
  return [
1402
1450
  '---',
@@ -1574,20 +1622,20 @@ function manuscriptGuardActions(model, availabilityById, host) {
1574
1622
  return guarded;
1575
1623
  }
1576
1624
 
1577
- // The Clio desk arms on every available action. Each entry carries the
1625
+ // The PanCode desk arms on every available action. Each entry carries the
1578
1626
  // action's exact declared outputs: the desk derives file roots from them,
1579
1627
  // substitutes the section an invocation names, and refuses record writes the
1580
- // contract does not declare. `paperWriters` are the Clio agent IDs of the
1628
+ // contract does not declare. `paperWriters` are the PanCode agent IDs of the
1581
1629
  // writing roles that manuscript-producing actions dispatch; the desk confines
1582
1630
  // them to manuscripts whose sections are ready to draft. `agents` are the
1583
- // Clio agent IDs an action's contract delegates to; inside that action the
1584
- // desk refuses a worker that is none of them. Clio reports which
1631
+ // PanCode agent IDs an action's contract delegates to; inside that action the
1632
+ // desk refuses a worker that is none of them. PanCode reports which
1585
1633
  // workers run read-only, the verifier roles' read-only recipes among them, so
1586
1634
  // the guard names none.
1587
- function clioWriteGuard(model, availabilityById) {
1635
+ function pancodeWriteGuard(model, availabilityById) {
1588
1636
  const available = model.actions.filter((action) => availabilityById.get(action.id).available);
1589
1637
  if (!available.some((action) => action.produces.some((output) => output.uri.startsWith('project://paper')))) {
1590
- throw new Error('no manuscript-writing action is available on Clio');
1638
+ throw new Error('no manuscript-writing action is available on PanCode');
1591
1639
  }
1592
1640
  const verifiers = new Set(model.roles.filter((role) => role.fields.execution_class === 'verifier-report').map((role) => role.slug));
1593
1641
  // A driver action writes nothing under its own name: the desk arms each step
@@ -1600,7 +1648,7 @@ function clioWriteGuard(model, availabilityById) {
1600
1648
  for (const entry of action.delegation) if (!verifiers.has(entry.role)) paperWriters.add(`wtfp-${entry.role}`);
1601
1649
  }
1602
1650
  return stableJson({
1603
- schema: 'wtfp.clio-write-guard/v4',
1651
+ schema: 'wtfp.pancode-write-guard/v4',
1604
1652
  actions: Object.fromEntries(available.map((action) => [action.id, {
1605
1653
  agents: drives(action) ? [] : [...new Set(action.delegation.map((entry) => `wtfp-${entry.role}`))].sort(),
1606
1654
  produces: drives(action) ? [] : action.produces.map((output) => ({ uri: output.uri, mode: output.mode }))
@@ -1745,25 +1793,26 @@ function geminiManifest(version) {
1745
1793
  });
1746
1794
  }
1747
1795
 
1748
- // The Clio extension is installed and consented independently of the content
1796
+ // The PanCode extension is installed and consented independently of the content
1749
1797
  // plugin. Every file its runtime reads belongs to this package; the plugin
1750
1798
  // link controls prompt takeover, not filesystem access to another install.
1751
- function addClioRuntime(plan, model, availabilityById) {
1752
- const source = (relative) => fs.readFileSync(path.join(CLIO_RUNTIME_ROOT, relative), 'utf8');
1753
- const manifest = source('clio-coder-extension.yaml').replace(/^(?:#.*\n)+/, '');
1754
- if (!/^version: .*$/m.test(manifest)) throw new Error('clio/clio-coder-extension.yaml must declare a version line');
1755
- addFile(plan, 'clio-coder-extension.yaml', [
1756
- `# Generated by WTF-P adapter compiler v${GENERATOR_VERSION} from clio/clio-coder-extension.yaml; do not edit.`,
1799
+ function addPanCodeRuntime(plan, model, availabilityById) {
1800
+ const source = (relative) => fs.readFileSync(path.join(PANCODE_RUNTIME_ROOT, relative), 'utf8');
1801
+ const manifest = source('pancode-extension.yaml').replace(/^(?:#.*\n)+/, '');
1802
+ if (!/^version: .*$/m.test(manifest)) throw new Error('hosts/pancode/pancode-extension.yaml must declare a version line');
1803
+ addFile(plan, 'pancode-extension.yaml', [
1804
+ `# Generated by WTF-P adapter compiler v${GENERATOR_VERSION} from hosts/pancode/pancode-extension.yaml; do not edit.`,
1757
1805
  manifest.replace(/^version: .*$/m, `version: ${model.version}`)
1758
1806
  ].join('\n'));
1759
- addFile(plan, 'runtime/extension.ts', `${generatedScriptBanner('clio', 'runtime/extension.ts')}\n${source('runtime/extension.ts')}`);
1760
- // `clio-coder extensions test vendors/clio-extension` runs the package tests from here.
1761
- addFile(plan, 'runtime/extension.test.ts', `${generatedScriptBanner('clio', 'runtime/extension.test.ts')}\n${source('runtime/extension.test.ts')}`);
1807
+ addFile(plan, 'runtime/extension.ts', `${generatedScriptBanner('hosts/pancode', 'runtime/extension.ts')}\n${source('runtime/extension.ts')}`);
1808
+ // `pancode extensions test pancode/extension` runs the package tests from here.
1809
+ addFile(plan, 'runtime/extension.test.ts', `${generatedScriptBanner('hosts/pancode', 'runtime/extension.test.ts')}\n${source('runtime/extension.test.ts')}`);
1762
1810
  addFile(plan, 'runtime/package.json', source('runtime/package.json'));
1763
1811
  addFile(plan, 'runtime/json-schema.cjs', `${generatedScriptBanner('evaluation', 'lib/json-schema.js')}\n${fs.readFileSync(path.join(ROOT, 'evaluation', 'lib', 'json-schema.js'), 'utf8')}`);
1764
1812
  addFile(plan, 'runtime/claim-coverage.cjs', `${generatedScriptBanner('evaluation', 'lib/claim-coverage.js')}\n${fs.readFileSync(path.join(ROOT, 'evaluation', 'lib', 'claim-coverage.js'), 'utf8')}`);
1765
1813
  addFile(plan, 'runtime/desk-trust.cjs', `${generatedScriptBanner('evaluation', 'lib/desk-trust.js')}\n${fs.readFileSync(path.join(ROOT, 'evaluation', 'lib', 'desk-trust.js'), 'utf8')}`);
1766
- addFile(plan, 'runtime/write-guard.json', clioWriteGuard(model, availabilityById));
1814
+ addFile(plan, 'runtime/write-guard.json', pancodeWriteGuard(model, availabilityById));
1815
+ addFile(plan, 'runtime/help.json', pancodeHelpData(model));
1767
1816
  addFile(plan, 'skins/wtfp.json', source('skins/wtfp.json'));
1768
1817
  copyTree(plan, path.join(PROTOCOL_ROOT, 'project', 'schemas'), 'project/schemas');
1769
1818
  copyTree(plan, path.join(PROTOCOL_ROOT, 'project', 'templates'), 'project/templates');
@@ -2222,21 +2271,21 @@ function compilePlans(options = {}) {
2222
2271
  const targetPolicies = options.targetPolicies === undefined ? TARGET_POLICIES : options.targetPolicies;
2223
2272
  validateTargetPolicies(targetPolicies, model.effects.effects);
2224
2273
  const plans = Object.entries(TARGET_ROOTS).map(([id, root]) => makePlan(id, root));
2225
- // The Clio projection has no envelope of its own. It is assembled in memory
2274
+ // The PanCode projection has no envelope of its own. It is assembled in memory
2226
2275
  // and relocated wholesale into the canonical plugin bundle below.
2227
- const clio = makePlan('clio', null);
2228
- const byId = new Map([...plans, clio].map((plan) => [plan.id, plan]));
2276
+ const pancode = makePlan('pancode', null);
2277
+ const byId = new Map([...plans, pancode].map((plan) => [plan.id, plan]));
2229
2278
  const availabilityByTarget = new Map();
2230
- for (const plan of [...plans, clio]) {
2279
+ for (const plan of [...plans, pancode]) {
2231
2280
  addPortableBundle(plan);
2232
2281
  availabilityByTarget.set(plan.id, addActionAvailability(plan, model, plan.id, targetPolicies));
2233
2282
  }
2234
2283
 
2235
- for (const fleetId of CLIO_PLAYBOOKS) {
2236
- if (!clio.files.delete(`fleets/${fleetId}.json`)) {
2237
- throw new Error(`cannot project missing canonical fleet for Clio: ${fleetId}`);
2284
+ for (const fleetId of PANCODE_PLAYBOOKS) {
2285
+ if (!pancode.files.delete(`fleets/${fleetId}.json`)) {
2286
+ throw new Error(`cannot project missing canonical fleet for PanCode: ${fleetId}`);
2238
2287
  }
2239
- addFile(clio, `playbooks/${fleetId}.md`, clioFleet(fleetId));
2288
+ addFile(pancode, `playbooks/${fleetId}.md`, pancodeFleet(fleetId));
2240
2289
  }
2241
2290
 
2242
2291
  const claude = byId.get('claude');
@@ -2289,9 +2338,9 @@ function compilePlans(options = {}) {
2289
2338
 
2290
2339
  const reviewers = new Set(model.roles.filter((role) => role.fields.execution_class === 'verifier-report').map((role) => role.slug));
2291
2340
  for (const action of model.actions) {
2292
- addFile(clio, `prompts/wtfp/${action.id}.md`, action.id === 'help'
2293
- ? clioHelpCard(model, availabilityByTarget.get('clio'))
2294
- : renderMarkdownCommand(action, action.workflowBody, 'clio', availabilityByTarget.get('clio').get(action.id), false, reviewers));
2341
+ addFile(pancode, `prompts/wtfp/${action.id}.md`, action.id === 'help'
2342
+ ? pancodeHelpCard(model, availabilityByTarget.get('pancode'))
2343
+ : renderMarkdownCommand(action, action.workflowBody, 'pancode', availabilityByTarget.get('pancode').get(action.id), false, reviewers));
2295
2344
  addFile(claude, `commands/${action.id}.md`, renderMarkdownCommand(action, action.workflowBody, 'claude', availabilityByTarget.get('claude').get(action.id)));
2296
2345
  addFile(copilot, `commands/wtfp-${action.id}.md`, renderMarkdownCommand(action, action.workflowBody, 'copilot', availabilityByTarget.get('copilot').get(action.id)));
2297
2346
  addFile(byId.get('opencode'), `commands/wtfp/${action.id}.md`, renderMarkdownCommand(action, action.workflowBody, 'opencode', availabilityByTarget.get('opencode').get(action.id)));
@@ -2305,7 +2354,7 @@ function compilePlans(options = {}) {
2305
2354
  }
2306
2355
 
2307
2356
  for (const role of model.roles) {
2308
- addFile(clio, `agents/wtfp-${role.slug}.md`, renderClioRole(role, role.slug));
2357
+ addFile(pancode, `agents/wtfp-${role.slug}.md`, renderPanCodeRole(role, role.slug));
2309
2358
  // OpenCode scans `agents/**/*.md` and takes the registered name from the
2310
2359
  // frontmatter, so the nested namespace directory is safe there. Claude Code
2311
2360
  // and Gemini CLI (loadAgentsFromDirectory) read only the top level of
@@ -2322,51 +2371,52 @@ function compilePlans(options = {}) {
2322
2371
  }
2323
2372
 
2324
2373
  // The canonical content-only plugin. Its prompts also work without the desk.
2325
- const portable = makePlan('portable-plugin', path.join(ROOT, 'vendors', 'plugin'));
2326
- for (const [file, content] of clio.files) {
2374
+ const portable = makePlan('pancode-plugin', path.join(ROOT, 'pancode', 'plugin'));
2375
+ for (const [file, content] of pancode.files) {
2327
2376
  const native = /^(prompts|agents|playbooks)\//.test(file);
2328
2377
  const actionId = /^prompts\/wtfp\/([a-z-]+)\.md$/.exec(file)?.[1];
2329
2378
  const action = actionId && model.actions.find((entry) => entry.id === actionId);
2330
- // Every action Clio can run reads records through the desk, so none needs the schema dump a desk-less host gets.
2331
- const projected = action && action.id !== 'help' && availabilityByTarget.get('clio').get(actionId).available
2332
- ? renderMarkdownCommand(action, action.workflowBody, 'clio', availabilityByTarget.get('clio').get(actionId), true, reviewers)
2379
+ // Every action PanCode can run reads records through the desk, so none needs the schema dump a desk-less host gets.
2380
+ const projected = action && action.id !== 'help' && availabilityByTarget.get('pancode').get(actionId).available
2381
+ ? renderMarkdownCommand(action, action.workflowBody, 'pancode', availabilityByTarget.get('pancode').get(actionId), true, reviewers)
2333
2382
  : content;
2334
- addFile(portable, native ? `ai.iowarp.clio/${file}` : file, projected);
2383
+ addFile(portable, native ? `dev.pancode/${file}` : file, projected);
2335
2384
  }
2336
- addFile(portable, 'plugin.json', clioPluginManifest(model));
2385
+ addFile(portable, 'plugin.json', pancodePluginManifest(model));
2337
2386
  const availability = JSON.parse(portable.files.get('compatibility/action-availability.json'));
2338
2387
  // Base bindings remain usable with the content plugin alone. The separately
2339
2388
  // installed desk supplies these preferred bindings when its tools are live.
2340
2389
  availability.runtimeBindings = {
2341
2390
  plugin: 'wtfp', extension: 'wtfp',
2342
- capabilities: { 'user.interaction': 'clio:extension-interview' },
2343
- approvals: { explicit: 'clio:extension-interview' },
2391
+ capabilities: { 'user.interaction': 'pancode:extension-interview' },
2392
+ approvals: { explicit: 'pancode:extension-interview' },
2344
2393
  tools: { record: 'extension_wtfp__record', measure_section: 'extension_wtfp__measure_section', gate: 'extension_wtfp__gate' }
2345
2394
  };
2346
2395
  replaceFile(portable, 'compatibility/action-availability.json', stableJson(availability));
2347
2396
  plans.push(portable);
2348
2397
 
2349
- const extension = makePlan('clio-extension', path.join(ROOT, 'vendors', 'clio-extension'));
2350
- addClioRuntime(extension, model, availabilityByTarget.get('clio'));
2351
- addFile(extension, 'compatibility/action-availability.json', clio.files.get('compatibility/action-availability.json'));
2398
+ const extension = makePlan('pancode-extension', path.join(ROOT, 'pancode', 'extension'));
2399
+ addPanCodeRuntime(extension, model, availabilityByTarget.get('pancode'));
2400
+ addFile(extension, 'compatibility/action-availability.json', pancode.files.get('compatibility/action-availability.json'));
2352
2401
  plans.push(extension);
2353
2402
 
2354
- // The Claude envelope keeps its pre-playbook Clio namespace: a root `plugin.json`
2403
+ // The Claude envelope keeps its pre-playbook PanCode namespace: a root `plugin.json`
2355
2404
  // and the phase 1 prompts, agents and fleets it names, beside Claude's own
2356
- // `.claude-plugin/` surface. Clio no longer adopts a Claude-installed WTF-P;
2357
- // it labels the copy older and points to `vendors/plugin`. Claude Code reads
2405
+ // `.claude-plugin/` surface. PanCode no longer adopts a Claude-installed WTF-P;
2406
+ // it labels the copy built for an older PanCode and names `wtf-p install
2407
+ // pancode`, the canonical install of `pancode/plugin`. Claude Code reads
2358
2408
  // neither file; its commands, agents, skills, hooks, and output style stay
2359
2409
  // where its loader looks.
2360
- for (const [file, content] of clio.files) {
2410
+ for (const [file, content] of pancode.files) {
2361
2411
  if (file === 'prompts/wtfp/help.md') {
2362
- addFile(claude, `ai.iowarp.clio/${file}`, clioHelpCard(model, availabilityByTarget.get('clio'), true));
2412
+ addFile(claude, `dev.pancode/${file}`, pancodeHelpCard(model, availabilityByTarget.get('pancode'), true));
2363
2413
  } else if (/^(prompts|agents)\//.test(file)) {
2364
- addFile(claude, `ai.iowarp.clio/${file}`, content);
2414
+ addFile(claude, `dev.pancode/${file}`, content);
2365
2415
  } else if (file.startsWith('playbooks/')) {
2366
- addFile(claude, `ai.iowarp.clio/fleets/${file.slice('playbooks/'.length)}`, content);
2416
+ addFile(claude, `dev.pancode/fleets/${file.slice('playbooks/'.length)}`, content);
2367
2417
  }
2368
2418
  }
2369
- addFile(claude, 'plugin.json', clioPluginManifest(model, true));
2419
+ addFile(claude, 'plugin.json', pancodePluginManifest(model, true));
2370
2420
 
2371
2421
  const codexMarketplace = makePlan('codex-marketplace', path.join(ROOT, 'vendors', 'codex'));
2372
2422
  addFile(codexMarketplace, '.agents/plugins/marketplace.json', stableJson({
@@ -2437,9 +2487,9 @@ function compilePlans(options = {}) {
2437
2487
  ].join('\n'));
2438
2488
  plans.push(copilotMarketplace);
2439
2489
 
2440
- // The Clio plan carries no envelope root; it is returned so the compiled model
2490
+ // The PanCode plan carries no envelope root; it is returned so the compiled model
2441
2491
  // stays observable, and `compileAdapters` writes only rooted plans.
2442
- plans.push(clio);
2492
+ plans.push(pancode);
2443
2493
  return plans;
2444
2494
  }
2445
2495
 
@@ -2559,12 +2609,12 @@ function compileAdapters(options = {}) {
2559
2609
  module.exports = {
2560
2610
  GENERATOR_VERSION,
2561
2611
  TARGET_POLICIES,
2562
- clioActionTools,
2563
- clioDelegatedTools,
2612
+ pancodeActionTools,
2613
+ pancodeDelegatedTools,
2564
2614
  TARGET_ROOTS,
2565
2615
  compileAdapters,
2566
2616
  compilePlans,
2567
2617
  inventoryFor,
2568
2618
  nativeWorkflowBody,
2569
- renderClioRole
2619
+ renderPanCodeRole
2570
2620
  };