@event4u/agent-config 6.0.0 → 6.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (378) hide show
  1. package/.claude-plugin/marketplace.json +5 -5
  2. package/CHANGELOG.md +167 -440
  3. package/README.md +3 -3
  4. package/dist/agent-src/commands/agent-handoff.md +5 -4
  5. package/dist/agent-src/commands/agent-status.md +1 -0
  6. package/dist/agent-src/commands/agents/audit.md +1 -0
  7. package/dist/agent-src/commands/agents/init.md +3 -0
  8. package/dist/agent-src/commands/agents/optimize.md +1 -0
  9. package/dist/agent-src/commands/agents/user/accept.md +1 -0
  10. package/dist/agent-src/commands/agents/user/init.md +1 -0
  11. package/dist/agent-src/commands/agents/user/review.md +1 -0
  12. package/dist/agent-src/commands/agents/user/show.md +1 -0
  13. package/dist/agent-src/commands/agents/user/update.md +1 -0
  14. package/dist/agent-src/commands/agents/user.md +1 -0
  15. package/dist/agent-src/commands/agents.md +1 -0
  16. package/dist/agent-src/commands/analytics/prune.md +3 -2
  17. package/dist/agent-src/commands/analytics/show.md +3 -2
  18. package/dist/agent-src/commands/analytics.md +3 -2
  19. package/dist/agent-src/commands/analyze-reference-repo.md +1 -0
  20. package/dist/agent-src/commands/bug-fix.md +1 -0
  21. package/dist/agent-src/commands/bug-investigate.md +1 -0
  22. package/dist/agent-src/commands/challenge-me/vision.md +3 -2
  23. package/dist/agent-src/commands/challenge-me/with-docs.md +3 -2
  24. package/dist/agent-src/commands/challenge-me.md +3 -2
  25. package/dist/agent-src/commands/chat-history/import.md +9 -9
  26. package/dist/agent-src/commands/chat-history.md +32 -30
  27. package/dist/agent-src/commands/check-current-md.md +1 -0
  28. package/dist/agent-src/commands/commit/in-chunks.md +1 -0
  29. package/dist/agent-src/commands/commit.md +1 -0
  30. package/dist/agent-src/commands/condense.md +1 -0
  31. package/dist/agent-src/commands/context/create.md +1 -0
  32. package/dist/agent-src/commands/context/refactor.md +1 -0
  33. package/dist/agent-src/commands/context.md +1 -0
  34. package/dist/agent-src/commands/cost-report.md +5 -4
  35. package/dist/agent-src/commands/council/analysis.md +3 -2
  36. package/dist/agent-src/commands/council/debate.md +5 -4
  37. package/dist/agent-src/commands/council/default.md +3 -2
  38. package/dist/agent-src/commands/council/design.md +3 -2
  39. package/dist/agent-src/commands/council/optimize.md +3 -2
  40. package/dist/agent-src/commands/council/pr.md +3 -2
  41. package/dist/agent-src/commands/council.md +4 -3
  42. package/dist/agent-src/commands/e2e-heal.md +1 -0
  43. package/dist/agent-src/commands/e2e-plan.md +1 -0
  44. package/dist/agent-src/commands/estimate-ticket.md +1 -0
  45. package/dist/agent-src/commands/feature/dev.md +1 -0
  46. package/dist/agent-src/commands/feature/explore.md +1 -0
  47. package/dist/agent-src/commands/feature/plan.md +6 -6
  48. package/dist/agent-src/commands/feature/refactor.md +1 -0
  49. package/dist/agent-src/commands/feature/roadmap.md +1 -0
  50. package/dist/agent-src/commands/feature.md +1 -0
  51. package/dist/agent-src/commands/fix/ci.md +1 -0
  52. package/dist/agent-src/commands/fix/portability.md +1 -0
  53. package/dist/agent-src/commands/fix/pr-comments.md +147 -15
  54. package/dist/agent-src/commands/fix/refs.md +1 -0
  55. package/dist/agent-src/commands/fix/seeder.md +1 -0
  56. package/dist/agent-src/commands/fix.md +8 -8
  57. package/dist/agent-src/commands/ghostwriter/delete.md +1 -0
  58. package/dist/agent-src/commands/ghostwriter/fetch.md +1 -0
  59. package/dist/agent-src/commands/ghostwriter/list.md +1 -0
  60. package/dist/agent-src/commands/ghostwriter/show.md +1 -0
  61. package/dist/agent-src/commands/ghostwriter/write.md +1 -0
  62. package/dist/agent-src/commands/ghostwriter.md +1 -0
  63. package/dist/agent-src/commands/grill-me.md +3 -2
  64. package/dist/agent-src/commands/image/analyse.md +1 -0
  65. package/dist/agent-src/commands/image/create.md +1 -0
  66. package/dist/agent-src/commands/image/verify.md +1 -0
  67. package/dist/agent-src/commands/image.md +1 -0
  68. package/dist/agent-src/commands/implement-ticket.md +1 -0
  69. package/dist/agent-src/commands/jira-ticket.md +1 -0
  70. package/dist/agent-src/commands/judge/on-diff.md +1 -0
  71. package/dist/agent-src/commands/judge/solo.md +1 -0
  72. package/dist/agent-src/commands/judge/steps.md +1 -0
  73. package/dist/agent-src/commands/judge.md +1 -0
  74. package/dist/agent-src/commands/knowledge/cross-repo.md +1 -0
  75. package/dist/agent-src/commands/knowledge/forget.md +1 -0
  76. package/dist/agent-src/commands/knowledge/ingest.md +1 -0
  77. package/dist/agent-src/commands/knowledge/list.md +1 -0
  78. package/dist/agent-src/commands/knowledge.md +1 -0
  79. package/dist/agent-src/commands/memory/add.md +8 -6
  80. package/dist/agent-src/commands/memory/learn-low-impact.md +3 -2
  81. package/dist/agent-src/commands/memory/load.md +7 -7
  82. package/dist/agent-src/commands/memory/mine-session.md +39 -12
  83. package/dist/agent-src/commands/memory/promote.md +3 -2
  84. package/dist/agent-src/commands/memory/propose.md +7 -6
  85. package/dist/agent-src/commands/memory.md +3 -2
  86. package/dist/agent-src/commands/mode.md +1 -0
  87. package/dist/agent-src/commands/module/create.md +1 -0
  88. package/dist/agent-src/commands/module/explore.md +1 -0
  89. package/dist/agent-src/commands/module.md +1 -0
  90. package/dist/agent-src/commands/optimize/agents-dir.md +1 -0
  91. package/dist/agent-src/commands/optimize/augmentignore.md +1 -0
  92. package/dist/agent-src/commands/optimize/rtk.md +1 -0
  93. package/dist/agent-src/commands/optimize/skills.md +1 -0
  94. package/dist/agent-src/commands/optimize-prompt.md +1 -0
  95. package/dist/agent-src/commands/optimize.md +1 -0
  96. package/dist/agent-src/commands/orchestrate.md +1 -0
  97. package/dist/agent-src/commands/override/create.md +1 -0
  98. package/dist/agent-src/commands/override/manage.md +1 -0
  99. package/dist/agent-src/commands/override.md +1 -0
  100. package/dist/agent-src/commands/package-reset.md +1 -0
  101. package/dist/agent-src/commands/package-test.md +1 -0
  102. package/dist/agent-src/commands/post-as/ghostwriter.md +1 -0
  103. package/dist/agent-src/commands/post-as/me.md +1 -0
  104. package/dist/agent-src/commands/post-as.md +1 -0
  105. package/dist/agent-src/commands/pr/create/description-only.md +1 -0
  106. package/dist/agent-src/commands/pr/create.md +25 -0
  107. package/dist/agent-src/commands/prediction-pool.md +1 -0
  108. package/dist/agent-src/commands/prepare-for-review.md +1 -0
  109. package/dist/agent-src/commands/profile/activate.md +1 -0
  110. package/dist/agent-src/commands/profile/deactivate.md +1 -0
  111. package/dist/agent-src/commands/profile/show.md +1 -0
  112. package/dist/agent-src/commands/profile.md +1 -0
  113. package/dist/agent-src/commands/project-analyze.md +1 -0
  114. package/dist/agent-src/commands/project-health.md +1 -0
  115. package/dist/agent-src/commands/quality-fix.md +1 -0
  116. package/dist/agent-src/commands/refine-ticket.md +1 -0
  117. package/dist/agent-src/commands/research/deep.md +1 -0
  118. package/dist/agent-src/commands/research/report.md +1 -0
  119. package/dist/agent-src/commands/research.md +1 -0
  120. package/dist/agent-src/commands/review-changes.md +1 -0
  121. package/dist/agent-src/commands/review-routing.md +1 -0
  122. package/dist/agent-src/commands/roadmap/ai-council.md +1 -0
  123. package/dist/agent-src/commands/roadmap/create.md +1 -0
  124. package/dist/agent-src/commands/roadmap/process-full.md +1 -0
  125. package/dist/agent-src/commands/roadmap/process-phase.md +1 -0
  126. package/dist/agent-src/commands/roadmap/process-step.md +1 -0
  127. package/dist/agent-src/commands/roadmap.md +1 -0
  128. package/dist/agent-src/commands/rule-compliance-audit.md +1 -0
  129. package/dist/agent-src/commands/security-audit-config.md +84 -0
  130. package/dist/agent-src/commands/set-cost-profile.md +1 -0
  131. package/dist/agent-src/commands/skill/preview.md +1 -0
  132. package/dist/agent-src/commands/skill.md +1 -0
  133. package/dist/agent-src/commands/skills/discover.md +1 -0
  134. package/dist/agent-src/commands/skills.md +1 -0
  135. package/dist/agent-src/commands/sync-agent-settings.md +1 -0
  136. package/dist/agent-src/commands/sync-gitignore/fix.md +1 -0
  137. package/dist/agent-src/commands/sync-gitignore.md +1 -0
  138. package/dist/agent-src/commands/tests/create.md +1 -0
  139. package/dist/agent-src/commands/tests/execute.md +1 -0
  140. package/dist/agent-src/commands/tests.md +1 -0
  141. package/dist/agent-src/commands/threat-model.md +1 -0
  142. package/dist/agent-src/commands/update-form-request-messages.md +1 -0
  143. package/dist/agent-src/commands/upstream-contribute.md +1 -0
  144. package/dist/agent-src/commands/video/from-script.md +1 -0
  145. package/dist/agent-src/commands/video/from-song.md +1 -0
  146. package/dist/agent-src/commands/video/scene.md +1 -0
  147. package/dist/agent-src/commands/video/stitch.md +1 -0
  148. package/dist/agent-src/commands/video/storyboard.md +1 -0
  149. package/dist/agent-src/commands/video.md +1 -0
  150. package/dist/agent-src/commands/work.md +1 -0
  151. package/dist/agent-src/contexts/augment-infrastructure.md +1 -1
  152. package/dist/agent-src/contexts/communication/rules-auto/skill-quality-mechanics.md +1 -1
  153. package/dist/agent-src/contexts/communication/rules-auto/slash-command-routing-policy-mechanics.md +2 -2
  154. package/dist/agent-src/contexts/communication/rules-auto/think-before-action-mechanics.md +6 -6
  155. package/dist/agent-src/contexts/contracts/consumer-agents-md-guide.md +2 -2
  156. package/dist/agent-src/contexts/execution/rdp-gate.md +75 -0
  157. package/dist/agent-src/contexts/subagent-configuration.md +1 -0
  158. package/dist/agent-src/personas/advisors/contrarian.md +1 -1
  159. package/dist/agent-src/personas/advisors/executor.md +1 -1
  160. package/dist/agent-src/personas/advisors/expansionist.md +1 -1
  161. package/dist/agent-src/personas/advisors/first-principles.md +1 -1
  162. package/dist/agent-src/personas/advisors/outsider.md +1 -1
  163. package/dist/agent-src/rules/autonomous-execution.md +12 -0
  164. package/dist/agent-src/rules/external-reference-deep-dive.md +1 -1
  165. package/dist/agent-src/rules/git-history-discipline.md +47 -1
  166. package/dist/agent-src/rules/improve-before-implement.md +12 -0
  167. package/dist/agent-src/rules/lethal-trifecta-guard.md +80 -0
  168. package/dist/agent-src/rules/no-pr-progress-comments.md +3 -4
  169. package/dist/agent-src/rules/notes-first-reasoning.md +71 -0
  170. package/dist/agent-src/rules/roadmap-progress-sync.md +48 -31
  171. package/dist/agent-src/rules/security-sensitive-stop.md +14 -1
  172. package/dist/agent-src/rules/source-confidentiality.md +97 -0
  173. package/dist/agent-src/rules/think-before-action.md +9 -1
  174. package/dist/agent-src/rules/untrusted-input-defense.md +76 -0
  175. package/dist/agent-src/scripts/archive_completed_roadmaps.py +171 -0
  176. package/dist/agent-src/skills/adversarial-review/SKILL.md +14 -0
  177. package/dist/agent-src/skills/agent-security-review/SKILL.md +113 -0
  178. package/dist/agent-src/skills/agent-security-review/evals/triggers.json +51 -0
  179. package/dist/agent-src/skills/ai-council/SKILL.md +3 -3
  180. package/dist/agent-src/skills/async-python-patterns/SKILL.md +1 -1
  181. package/dist/agent-src/skills/blast-radius-analyzer/SKILL.md +12 -11
  182. package/dist/agent-src/skills/command-routing/SKILL.md +1 -1
  183. package/dist/agent-src/skills/complexity-first-planning/SKILL.md +96 -0
  184. package/dist/agent-src/skills/complexity-first-planning/evals/triggers.json +16 -0
  185. package/dist/agent-src/skills/copilot-config/SKILL.md +3 -4
  186. package/dist/agent-src/skills/defense-in-depth/SKILL.md +1 -1
  187. package/dist/agent-src/skills/developer-like-execution/SKILL.md +5 -4
  188. package/dist/agent-src/skills/error-handling-patterns/SKILL.md +1 -1
  189. package/dist/agent-src/skills/feature-planning/SKILL.md +2 -2
  190. package/dist/agent-src/skills/mcp-builder/SKILL.md +1 -1
  191. package/dist/agent-src/skills/memory-consolidation/SKILL.md +63 -17
  192. package/dist/agent-src/skills/prompt-engineering-patterns/SKILL.md +1 -1
  193. package/dist/agent-src/skills/readme-writing-package/SKILL.md +1 -1
  194. package/dist/agent-src/skills/reasoning-orchestrator/SKILL.md +119 -0
  195. package/dist/agent-src/skills/reasoning-orchestrator/evals/triggers.json +16 -0
  196. package/dist/agent-src/skills/receiving-code-review/SKILL.md +6 -6
  197. package/dist/agent-src/skills/refine-prompt/SKILL.md +1 -1
  198. package/dist/agent-src/skills/refine-ticket/SKILL.md +1 -1
  199. package/dist/agent-src/skills/repomix-packer/SKILL.md +1 -1
  200. package/dist/agent-src/skills/secrets-management/SKILL.md +1 -1
  201. package/dist/agent-src/skills/subagent-orchestration/SKILL.md +10 -3
  202. package/dist/agent-src/skills/testing-anti-patterns/SKILL.md +1 -1
  203. package/dist/agent-src/skills/testing-anti-patterns/process-anti-patterns.md +1 -1
  204. package/dist/agent-src/skills/token-optimizer/SKILL.md +1 -1
  205. package/dist/agent-src/templates/agents/.gitattributes.fragment +0 -1
  206. package/dist/agent-src/templates/agents/agent-project-settings.example.yml +4 -4
  207. package/dist/agent-src/templates/scripts/check_memory.py +1 -2
  208. package/dist/agent-src/templates/scripts/check_memory_proposal.py +1 -1
  209. package/dist/agent-src/templates/scripts/memory_lookup.py +148 -289
  210. package/dist/agent-src/templates/scripts/memory_report.py +132 -2
  211. package/dist/agent-src/templates/scripts/memory_signal.py +7 -9
  212. package/dist/agent-src/templates/scripts/memory_status.py +25 -206
  213. package/dist/agent-src/templates/scripts/work_engine/directives/backend/memory.py +6 -6
  214. package/dist/agent-src/templates/scripts/work_engine/directives/ui/_passthrough.py +3 -3
  215. package/dist/agent-src/templates/scripts/work_engine/scoring/memory_visibility.py +0 -1
  216. package/dist/cli/agent-config.js +31 -300
  217. package/dist/cli/agent-config.js.map +1 -1
  218. package/dist/cli/commands/commands.js +10 -5
  219. package/dist/cli/commands/commands.js.map +1 -1
  220. package/dist/cli/discovery/loadManifest.js.map +1 -1
  221. package/dist/cli/main.js +309 -0
  222. package/dist/cli/main.js.map +1 -0
  223. package/dist/discovery/deprecation-report.md +1 -1
  224. package/dist/discovery/discovery-manifest.json +645 -342
  225. package/dist/discovery/discovery-manifest.json.sha256 +1 -1
  226. package/dist/discovery/discovery-manifest.summary.md +8 -5
  227. package/dist/discovery/orphan-report.md +1 -1
  228. package/dist/discovery/packs.json +149 -37
  229. package/dist/discovery/trust-report.md +3 -3
  230. package/dist/discovery/workspaces.json +61 -36
  231. package/dist/mcp/registry-manifest.json +4 -4
  232. package/dist/router.json +1 -1
  233. package/dist/server/routes/wizard.js +4 -3
  234. package/dist/server/routes/wizard.js.map +1 -1
  235. package/dist/server/schemas/settings.js +18 -0
  236. package/dist/server/schemas/settings.js.map +1 -1
  237. package/docs/MIGRATION.md +1 -1
  238. package/docs/adrs/cost/0001-hard-stop-hook.md +5 -5
  239. package/docs/adrs/memory/0001-consumer-side-snapshot.md +15 -7
  240. package/docs/adrs/memory/README.md +6 -5
  241. package/docs/adrs/router/0001-three-tier-routing.md +2 -2
  242. package/docs/adrs/schema/0001-json-schema-frontmatter.md +2 -2
  243. package/docs/adrs/smoke/0001-per-tier-smoke-scripts.md +5 -5
  244. package/docs/adrs/telegraph/0001-default-off-until-bench.md +3 -3
  245. package/docs/architecture.md +9 -9
  246. package/docs/archive/CHANGELOG-pre-2.2.0.md +30 -30
  247. package/docs/archive/CHANGELOG-pre-2.25.0.md +1 -1
  248. package/docs/archive/CHANGELOG-pre-4.5.0.md +1 -1
  249. package/docs/archive/CHANGELOG-pre-6.0.0.md +473 -0
  250. package/docs/benchmark.md +54 -53
  251. package/docs/benchmarks.md +2 -2
  252. package/docs/case-studies/{frontend-design-vs-ui-ux-pro-max.md → frontend-design-positioning.md} +4 -4
  253. package/docs/catalog.md +20 -13
  254. package/docs/command-flows.md +90 -92
  255. package/docs/contracts/adr-layout.md +2 -3
  256. package/docs/contracts/adr-level-6-productization.md +1 -1
  257. package/docs/contracts/ai-council-config.md +42 -7
  258. package/docs/contracts/command-clusters.md +1 -1
  259. package/docs/contracts/cost-enforcement.md +1 -1
  260. package/docs/contracts/cost-summary-schema.md +1 -1
  261. package/docs/contracts/daily-workspace.md +1 -0
  262. package/docs/contracts/discovery-manifest.schema.json +4 -2
  263. package/docs/contracts/explain-modes.md +1 -1
  264. package/docs/contracts/implement-ticket-flow.md +6 -7
  265. package/docs/contracts/mcp-tool-inventory.md +10 -10
  266. package/docs/contracts/measurement-baseline.md +1 -1
  267. package/docs/contracts/memory-visibility-v1.md +1 -5
  268. package/docs/contracts/namespace.md +1 -1
  269. package/docs/contracts/persona-schema.md +1 -1
  270. package/docs/contracts/rule-interactions.md +1 -1
  271. package/docs/contracts/smoke-contracts.md +1 -1
  272. package/docs/contracts/universal-skills.md +0 -1
  273. package/docs/contracts/workspace-boundary.md +84 -0
  274. package/docs/customization.md +3 -3
  275. package/docs/decisions/ADR-009-event4u-namespace.md +1 -1
  276. package/docs/decisions/ADR-013-discovery-frontmatter-contract.md +1 -1
  277. package/docs/decisions/ADR-026-explain-mode-translation.md +1 -1
  278. package/docs/decisions/ADR-088-no-external-runtime-federation.md +26 -27
  279. package/docs/decisions/ADR-090-visibility-command-frontmatter-field.md +95 -0
  280. package/docs/decisions/ADR-091-split-meta-capability-packs.md +113 -0
  281. package/docs/decisions/ADR-092-defer-command-tier-alias-removal.md +93 -0
  282. package/docs/decisions/ADR-093-ai-council-config-user-global.md +111 -0
  283. package/docs/decisions/ADR-094-agent-memory-layer-removal.md +94 -0
  284. package/docs/decisions/ADR-095-workspace-boundary-contract.md +108 -0
  285. package/docs/decisions/INDEX.md +6 -0
  286. package/docs/development.md +5 -7
  287. package/docs/getting-started.md +4 -4
  288. package/docs/guidelines/agent-infra/5w2h-analysis.md +1 -1
  289. package/docs/guidelines/agent-infra/comparison-matrix.md +1 -1
  290. package/docs/guidelines/agent-infra/corpus-grounding-authoring.md +1 -1
  291. package/docs/guidelines/agent-infra/critical-thinking.md +1 -1
  292. package/docs/guidelines/agent-infra/engineering-memory-data-format.md +1 -5
  293. package/docs/guidelines/agent-infra/first-principles.md +1 -1
  294. package/docs/guidelines/agent-infra/frontier-reasoning-operating-profile.md +164 -0
  295. package/docs/guidelines/agent-infra/inversion-thinking.md +1 -1
  296. package/docs/guidelines/agent-infra/ios-simulator-guide.md +9 -14
  297. package/docs/guidelines/agent-infra/mcp-request-signing.md +19 -22
  298. package/docs/guidelines/agent-infra/memory-access.md +25 -31
  299. package/docs/guidelines/agent-infra/mental-models.md +1 -1
  300. package/docs/guidelines/agent-infra/model-recommendation.md +29 -0
  301. package/docs/guidelines/agent-infra/scqa-framework.md +3 -3
  302. package/docs/guidelines/agent-infra/security-lint-containment.md +81 -0
  303. package/docs/guidelines/agent-infra/six-hats.md +1 -1
  304. package/docs/guidelines/agent-infra/systems-thinking.md +1 -1
  305. package/docs/guidelines/agent-infra/untrusted-input-spotlighting.md +72 -0
  306. package/docs/installation.md +1 -1
  307. package/docs/mcp.md +2 -2
  308. package/docs/parity/{bench-ruflo.json → bench-external.json} +10 -10
  309. package/docs/parity/{ruflo.md → external-runtime.md} +9 -9
  310. package/docs/quality.md +3 -3
  311. package/docs/safety.md +3 -3
  312. package/docs/skills-catalog.md +4 -1
  313. package/llms.txt +3 -0
  314. package/package.json +1 -1
  315. package/src/config/agent-settings.template.yml +65 -3
  316. package/src/config/discovery/packs.yml +29 -0
  317. package/src/config/discovery/workspaces.yml +3 -1
  318. package/src/config/gitignore-block.txt +6 -0
  319. package/src/scripts/__pycache__/validate_frontmatter.cpython-312.pyc +0 -0
  320. package/src/scripts/_cli/cmd_doctor.py +99 -13
  321. package/src/scripts/_lib/__pycache__/__init__.cpython-312.pyc +0 -0
  322. package/src/scripts/_lib/__pycache__/agent_src.cpython-312.pyc +0 -0
  323. package/src/scripts/_lib/bench_ab_scoring_v2.py +227 -0
  324. package/src/scripts/_lib/global_deploy_inventory.py +39 -9
  325. package/src/scripts/_lib/link_crypto.py +206 -0
  326. package/src/scripts/_lib/security_lint.py +228 -0
  327. package/src/scripts/ai_council/clients.py +2 -2
  328. package/src/scripts/ai_council/config.py +55 -0
  329. package/src/scripts/audit_adr_coverage.py +0 -2
  330. package/src/scripts/audit_command_surface.py +18 -5
  331. package/src/scripts/audit_mcp_tools.py +2 -2
  332. package/src/scripts/audit_skill_descriptions.py +2 -2
  333. package/src/scripts/bench_ab_clone.py +62 -12
  334. package/src/scripts/bench_ab_task_runner.py +475 -30
  335. package/src/scripts/bench_ab_v2_run.py +247 -0
  336. package/src/scripts/bench_ab_v2_stats.py +347 -0
  337. package/src/scripts/bench_run.py +1 -1
  338. package/src/scripts/build_discovery_manifest.py +10 -0
  339. package/src/scripts/check_bite_sized_granularity.py +1 -2
  340. package/src/scripts/check_memory.py +49 -63
  341. package/src/scripts/check_memory_proposal.py +1 -1
  342. package/src/scripts/check_no_external_sources.py +101 -0
  343. package/src/scripts/check_references.py +2 -0
  344. package/src/scripts/cost_by_conversation.py +1 -1
  345. package/src/scripts/council_cli.py +28 -14
  346. package/src/scripts/external_sources_denylist.json +91 -0
  347. package/src/scripts/hook_manifest.yaml +14 -6
  348. package/src/scripts/injection_scan_hook.py +145 -0
  349. package/src/scripts/install-hooks.sh +11 -0
  350. package/src/scripts/install.py +88 -13
  351. package/src/scripts/lint_agent_security.py +112 -0
  352. package/src/scripts/lint_bench_ab.py +5 -4
  353. package/src/scripts/lint_command_tiers.py +63 -22
  354. package/src/scripts/lint_discovery_vocabulary.py +2 -0
  355. package/src/scripts/lint_empty_roadmaps.py +80 -0
  356. package/src/scripts/lint_hidden_unicode.py +132 -0
  357. package/src/scripts/lint_instruction_smuggling.py +107 -0
  358. package/src/scripts/lint_marketplace.py +1 -1
  359. package/src/scripts/lint_mcp_config_security.py +124 -0
  360. package/src/scripts/lint_skill_frontmatter_safety.py +144 -0
  361. package/src/scripts/lint_workspace_boundary.py +122 -0
  362. package/src/scripts/mcp_server/consumer_tool_catalog.json +2 -3
  363. package/src/scripts/mcp_server/tools.py +8 -32
  364. package/src/scripts/memory_lookup.py +27 -296
  365. package/src/scripts/memory_report.py +1 -23
  366. package/src/scripts/memory_signal.py +6 -53
  367. package/src/scripts/memory_status.py +25 -206
  368. package/src/scripts/mine_session.py +118 -41
  369. package/src/scripts/pack_dependency_allowlist.json +2 -2
  370. package/src/scripts/render_benchmark_md.py +141 -52
  371. package/src/scripts/schemas/command.schema.json +6 -1
  372. package/src/scripts/security_audit_config.py +153 -0
  373. package/dist/agent-src/commands/chat-history/learn.md +0 -184
  374. package/dist/agent-src/commands/chat-history/show.md +0 -113
  375. package/dist/agent-src/commands/fix/pr-bot-comments.md +0 -157
  376. package/dist/agent-src/commands/fix/pr-developer-comments.md +0 -163
  377. package/dist/agent-src/templates/agents/memory/architecture-decisions.example.yml +0 -95
  378. package/docs/contracts/agent-memory-contract.md +0 -159
package/README.md CHANGED
@@ -66,7 +66,7 @@ is platform operation, not a user-work flow.)
66
66
  </p>
67
67
 
68
68
  <p align="center">
69
- <sub>Distribution: <code>npm install @event4u/agent-config</code> · npm-primary per <a href="docs/decisions/ADR-033-distribution-identity-npm-primary.md">ADR-033</a>. Major bumps follow <a href="CONTRIBUTING.md#versioning-policy">semver</a>; each ships a <a href="CHANGELOG.md#breaking--v400-unified-setup-road-to-unified-setup"><code>### Breaking</code></a> entry — all majors indexed in <a href="BREAKING_CHANGES.md">BREAKING_CHANGES.md</a>.</sub>
69
+ <sub>Distribution: <code>npm install @event4u/agent-config</code>. Major bumps follow <a href="CONTRIBUTING.md#versioning-policy">semver</a>; each ships a <a href="CHANGELOG.md#breaking--v400-unified-setup-road-to-unified-setup"><code>### Breaking</code></a> entry — all majors indexed in <a href="BREAKING_CHANGES.md">BREAKING_CHANGES.md</a>.</sub>
70
70
  </p>
71
71
 
72
72
  ---
@@ -76,7 +76,7 @@ is platform operation, not a user-work flow.)
76
76
  <details>
77
77
  <summary><b>Catalog at a glance</b> — raw artefact counts (maintainer reference)</summary>
78
78
 
79
- [![Skills](https://img.shields.io/badge/Skills-227-orange?style=flat-square)](dist/agent-src/skills/) [![Rules](https://img.shields.io/badge/Rules-79-orange?style=flat-square)](dist/agent-src/rules/) [![Commands](https://img.shields.io/badge/Commands-150-orange?style=flat-square)](dist/agent-src/commands/) [![Guidelines](https://img.shields.io/badge/Guidelines-78-orange?style=flat-square)](docs/guidelines/) [![Personas](https://img.shields.io/badge/Personas-24-orange?style=flat-square)](dist/agent-src/personas/) [![Advisors](https://img.shields.io/badge/Advisors-5-orange?style=flat-square)](dist/agent-src/personas/advisors/)
79
+ [![Skills](https://img.shields.io/badge/Skills-230-orange?style=flat-square)](dist/agent-src/skills/) [![Rules](https://img.shields.io/badge/Rules-83-orange?style=flat-square)](dist/agent-src/rules/) [![Commands](https://img.shields.io/badge/Commands-147-orange?style=flat-square)](dist/agent-src/commands/) [![Guidelines](https://img.shields.io/badge/Guidelines-81-orange?style=flat-square)](docs/guidelines/) [![Personas](https://img.shields.io/badge/Personas-24-orange?style=flat-square)](dist/agent-src/personas/) [![Advisors](https://img.shields.io/badge/Advisors-5-orange?style=flat-square)](dist/agent-src/personas/advisors/)
80
80
 
81
81
  The headline is the **experience** (profile + packs), not the raw counts. Full catalog: [`docs/catalog.md`](docs/catalog.md).
82
82
  </details>
@@ -405,7 +405,7 @@ When a prompt matches a command's purpose ("setze ticket ABC-123 um" → `/imple
405
405
  | [**Migration**](docs/MIGRATION.md) | Per-version upgrade steps |
406
406
  | [**Showcase**](docs/showcase.md) | More examples & expected behavior |
407
407
 
408
- Browse content: [all 150 commands](dist/agent-src/commands/) · [skills catalog](docs/skills-catalog.md) · [full catalog](docs/catalog.md) · [`llms.txt`](llms.txt).
408
+ Browse content: [all 147 commands](dist/agent-src/commands/) · [skills catalog](docs/skills-catalog.md) · [full catalog](docs/catalog.md) · [`llms.txt`](llms.txt).
409
409
 
410
410
  ---
411
411
 
@@ -6,6 +6,7 @@ intent: "Generate a session-handoff summary to continue work in a fresh chat"
6
6
  routes_to: [agent-docs-writing]
7
7
  replaces: []
8
8
  tier: 0
9
+ visibility: visible
9
10
  skills: [agent-docs-writing]
10
11
  description: Generate a context summary for continuing work in a fresh chat. Replaces the session system.
11
12
  suggestion:
@@ -114,10 +115,10 @@ do not auto-execute.
114
115
  fingerprint derived from the platform `session_id` (schema v4, see
115
116
  [`chat-history-platform-hooks`](../../agents/settings/contexts/chat-history-platform-hooks.md)).
116
117
  Works only on the same machine and same repo, but captures every
117
- phase / decision any session logged. Inspect with `/chat-history show`;
118
- pull prior-session context into the current chat verbatim with
119
- `/chat-history import`; mine a prior session for project-improving
120
- learnings with `/chat-history learn`.
118
+ phase / decision any session logged. Pull prior-session context into
119
+ the current chat verbatim with `/chat-history import`; mine a prior
120
+ session for project-improving learnings with
121
+ `/memory mine-session --mode=proposals`.
121
122
 
122
123
  Prefer `/agent-handoff` for planned context switches across tools or
123
124
  machines; use `/chat-history import` after a crash or fresh-chat reopen
@@ -6,6 +6,7 @@ intent: "Report the current agent session state, mode, and progress at a glance"
6
6
  routes_to: [agent-docs-writing]
7
7
  replaces: []
8
8
  tier: 0
9
+ visibility: visible
9
10
  skills: [agent-docs-writing]
10
11
  description: Show current conversation stats — message count, token costs, task progress, next freshness check.
11
12
  suggestion:
@@ -3,6 +3,7 @@ model_tier: medium
3
3
  name: agents-audit
4
4
  pack: meta
5
5
  tier: 2
6
+ visibility: internal
6
7
  cluster: agents
7
8
  sub: audit
8
9
  description: Audit agent infrastructure — token overhead, rule triggers, AGENTS.md health, Capability-over-Structure adherence, stale references. Read-only, suggest-only, never auto-apply.
@@ -3,6 +3,7 @@ model_tier: medium
3
3
  name: agents-init
4
4
  pack: meta
5
5
  tier: 2
6
+ visibility: internal
6
7
  cluster: agents
7
8
  sub: init
8
9
  description: Initialize the agent layer for a consumer project — creates AGENTS.md and .github/copilot-instructions.md from package templates, auto-detects stack, never leaks other projects' identifiers.
@@ -177,6 +178,8 @@ contract). On skip, do nothing — the block stays opt-in.
177
178
 
178
179
  If `agents/` directory does not exist, suggest running `/optimize agents-dir --scaffold`.
179
180
  If `.agent-settings.yml` does not exist, suggest running `scripts/install` (then `/onboard` for first-run setup).
181
+ If module candidates surfaced in Step 7 but the user skipped, note that
182
+ `python3 scripts/propose_modules_config.py` can be re-run anytime.
180
183
 
181
184
  ## Rules
182
185
 
@@ -3,6 +3,7 @@ model_tier: inherit
3
3
  name: agents-optimize
4
4
  pack: meta
5
5
  tier: 2
6
+ visibility: internal
6
7
  cluster: agents
7
8
  sub: optimize
8
9
  description: Refactor AGENTS.md to the Thin-Root contract (caps, pointer ratio, capability bullets, emergency-triage) and propagate to tool stubs. Suggest only, never auto-apply.
@@ -3,6 +3,7 @@ model_tier: medium
3
3
  name: agents-user-accept
4
4
  pack: meta
5
5
  tier: 2
6
+ visibility: internal
6
7
  cluster: agents
7
8
  sub: user
8
9
  skills: [agents]
@@ -3,6 +3,7 @@ model_tier: medium
3
3
  name: agents-user-init
4
4
  pack: meta
5
5
  tier: 2
6
+ visibility: internal
6
7
  cluster: agents
7
8
  sub: user
8
9
  skills: [agents]
@@ -3,6 +3,7 @@ model_tier: high
3
3
  name: agents-user-review
4
4
  pack: meta
5
5
  tier: 2
6
+ visibility: internal
6
7
  cluster: agents
7
8
  sub: user
8
9
  skills: [agents]
@@ -3,6 +3,7 @@ model_tier: medium
3
3
  name: agents-user-show
4
4
  pack: meta
5
5
  tier: 2
6
+ visibility: internal
6
7
  cluster: agents
7
8
  sub: user
8
9
  skills: [agents]
@@ -3,6 +3,7 @@ model_tier: medium
3
3
  name: agents-user-update
4
4
  pack: meta
5
5
  tier: 2
6
+ visibility: internal
6
7
  cluster: agents
7
8
  sub: user
8
9
  description: Open .agent-user.md in the user's IDE for manual edit; validates schema and 100-line cap on save.
@@ -3,6 +3,7 @@ model_tier: medium
3
3
  name: agents-user
4
4
  pack: meta
5
5
  tier: 2
6
+ visibility: internal
6
7
  cluster: agents
7
8
  sub: user
8
9
  description: User-persona file (.agent-user.md) — interview, render, and maintain who the user is and how they want to be addressed.
@@ -7,6 +7,7 @@ intent: "Manage the AGENTS.md file family — init, optimize, audit, user person
7
7
  routes_to: [agents-init, agents-optimize, agents-audit, agents-user]
8
8
  replaces: []
9
9
  tier: 1
10
+ visibility: advanced
10
11
  description: Agent-layer orchestrator — routes to init, optimize, audit. Covers AGENTS.md and its multi-tool stubs (CLAUDE.md, GEMINI.md, copilot-instructions.md, .cursorrules).
11
12
  cluster: agents
12
13
  type: orchestrator
@@ -1,8 +1,9 @@
1
1
  ---
2
2
  model_tier: medium
3
3
  name: analytics-prune
4
- pack: meta
4
+ pack: analytics
5
5
  tier: 2
6
+ visibility: internal
6
7
  cluster: analytics
7
8
  sub: prune
8
9
  description: Drop events older than the 90-day retention window from the local analytics log. Atomic and idempotent.
@@ -14,7 +15,7 @@ suggestion:
14
15
  workspaces:
15
16
  - agent-config-maintainer
16
17
  packs:
17
- - meta
18
+ - analytics
18
19
  ---
19
20
 
20
21
  # /analytics prune
@@ -1,8 +1,9 @@
1
1
  ---
2
2
  model_tier: medium
3
3
  name: analytics-show
4
- pack: meta
4
+ pack: analytics
5
5
  tier: 2
6
+ visibility: internal
6
7
  cluster: analytics
7
8
  sub: show
8
9
  description: Render top prompts, launcher → completion rate per role, average session length, and knowledge-source usage from the local analytics log.
@@ -14,7 +15,7 @@ suggestion:
14
15
  workspaces:
15
16
  - agent-config-maintainer
16
17
  packs:
17
- - meta
18
+ - analytics
18
19
  ---
19
20
 
20
21
  # /analytics show
@@ -1,8 +1,9 @@
1
1
  ---
2
2
  model_tier: medium
3
3
  name: analytics
4
- pack: meta
4
+ pack: analytics
5
5
  tier: 2
6
+ visibility: internal
6
7
  description: Analytics orchestrator — routes to show, prune. Local-only workspace event log under `~/.event4u/agent-config/workspace/analytics/`.
7
8
  cluster: analytics
8
9
  type: orchestrator
@@ -14,7 +15,7 @@ suggestion:
14
15
  workspaces:
15
16
  - agent-config-maintainer
16
17
  packs:
17
- - meta
18
+ - analytics
18
19
  ---
19
20
 
20
21
  # /analytics
@@ -3,6 +3,7 @@ model_tier: high
3
3
  name: analyze-reference-repo
4
4
  pack: engineering-base
5
5
  tier: 2
6
+ visibility: internal
6
7
  skills: [project-analyzer, learning-to-rule-or-skill]
7
8
  description: Analyze an external reference repository (competitor, inspiration, peer) and produce a structured comparison + adoption plan for this project.
8
9
  suggestion:
@@ -3,6 +3,7 @@ model_tier: medium
3
3
  name: bug-fix
4
4
  pack: engineering-base
5
5
  tier: 2
6
+ visibility: internal
6
7
  skills: [bug-analyzer, pest-testing]
7
8
  description: Plan and implement a bug fix — based on investigation, with quality checks and test verification
8
9
  council_depth: deep
@@ -3,6 +3,7 @@ model_tier: inherit
3
3
  name: bug-investigate
4
4
  pack: engineering-base
5
5
  tier: 2
6
+ visibility: internal
6
7
  skills: [bug-analyzer, sentry-integration]
7
8
  description: Investigate a bug — auto-detect ticket from branch, gather Jira/Sentry/description context, trace root cause
8
9
  council_depth: deep
@@ -1,8 +1,9 @@
1
1
  ---
2
2
  model_tier: inherit
3
3
  name: challenge-me-vision
4
- pack: meta
4
+ pack: product-reasoning
5
5
  tier: 2
6
+ visibility: internal
6
7
  cluster: challenge-me
7
8
  sub: vision
8
9
  description: "Stress-test a plan or idea by one-question-at-a-time interview until 95% confidence — emits a copyable Markdown vision pitch for tickets, roadmaps, or fresh-chat handoff."
@@ -13,7 +14,7 @@ suggestion:
13
14
  workspaces:
14
15
  - agent-config-maintainer
15
16
  packs:
16
- - meta
17
+ - product-reasoning
17
18
  ---
18
19
 
19
20
  # /challenge-me vision
@@ -1,8 +1,9 @@
1
1
  ---
2
2
  model_tier: medium
3
3
  name: challenge-me-with-docs
4
- pack: meta
4
+ pack: product-reasoning
5
5
  tier: 2
6
+ visibility: internal
6
7
  cluster: challenge-me
7
8
  sub: with-docs
8
9
  description: "Doc-aware /challenge-me — 95%-confidence interview with session glossary vs CONTEXT.md, load-bearing claim-vs-code verification, optional CONTEXT.md patch + ADR candidates in the pitch."
@@ -13,7 +14,7 @@ suggestion:
13
14
  workspaces:
14
15
  - agent-config-maintainer
15
16
  packs:
16
- - meta
17
+ - product-reasoning
17
18
  ---
18
19
 
19
20
  # /challenge-me with-docs
@@ -1,8 +1,9 @@
1
1
  ---
2
2
  model_tier: medium
3
3
  name: challenge-me
4
- pack: meta
4
+ pack: product-reasoning
5
5
  tier: 2
6
+ visibility: internal
6
7
  description: Challenge-me orchestrator — routes to vision, with-docs
7
8
  cluster: challenge-me
8
9
  type: orchestrator
@@ -13,7 +14,7 @@ suggestion:
13
14
  workspaces:
14
15
  - agent-config-maintainer
15
16
  packs:
16
- - meta
17
+ - product-reasoning
17
18
  ---
18
19
 
19
20
  # /challenge-me
@@ -1,8 +1,9 @@
1
1
  ---
2
2
  model_tier: medium
3
3
  name: chat-history-import
4
- pack: meta
4
+ pack: memory
5
5
  tier: 2
6
+ visibility: internal
6
7
  cluster: chat-history
7
8
  sub: import
8
9
  description: Surface prior chat-history sessions as a numbered table, let the user pick one, read it silently, and emit a short summary plus a resume offer — selective, user-driven cross-session import
@@ -13,7 +14,7 @@ suggestion:
13
14
  workspaces:
14
15
  - agent-config-maintainer
15
16
  packs:
16
- - meta
17
+ - memory
17
18
  ---
18
19
  <!-- cloud_safe: noop -->
19
20
 
@@ -31,15 +32,15 @@ This is the opt-in counterpart to the read-path filter (Phase 3 of
31
32
  `road-to-chat-history-session-isolation`): default reads stay
32
33
  session-scoped; `import` is the explicit surface for crossing the
33
34
  session boundary. For project-improving learnings derived from a
34
- prior session, see [`/chat-history learn`](learn.md).
35
+ prior session, see [`/memory mine-session --mode=proposals`](../memory/mine-session/command.md).
35
36
 
36
37
  ## When NOT to use
37
38
 
38
- - Inspect the current session — that is the default of
39
- `/chat-history show` plus `scripts/chat_history.py read`.
39
+ - Inspect the current session — use the host's native transcript /
40
+ session view, or `scripts/chat_history.py read`.
40
41
  - Generate a learning proposal from a prior session — use
41
- [`/chat-history learn`](learn.md), which orchestrates
42
- `learning-to-rule-or-skill` on the picked session.
42
+ [`/memory mine-session --mode=proposals`](../memory/mine-session/command.md),
43
+ which frames the session's signals and runs `learning-to-rule-or-skill`.
43
44
  - Bulk-import all sessions — out of scope for v1. One session per
44
45
  invocation; multi-pick is v2.
45
46
  - Search prior sessions by content — out of scope for v1; no fuzzy
@@ -164,8 +165,7 @@ instruction.
164
165
 
165
166
  ## See also
166
167
 
167
- - [`/chat-history learn`](learn.md) — pick a prior session and turn it into a project-improving proposal via `learning-to-rule-or-skill`
168
- - [`/chat-history show`](show.md) — current-session inspector
168
+ - [`/memory mine-session --mode=proposals`](../memory/mine-session/command.md) — pick a prior session and turn it into a project-improving proposal via `learning-to-rule-or-skill` (the former `/chat-history learn`)
169
169
  - [`chat-history-platform-hooks`](../../../agents/settings/contexts/chat-history-platform-hooks.md) — read contract, isolation default, opt-in cross-session path
170
170
  - [`scripts/chat_history.py`](../../../scripts/chat_history.py) — `sessions` and `read --session` CLI surface
171
171
  - [`user-interaction`](../../rules/user-interaction.md) — numbered-options Iron Law
@@ -2,59 +2,61 @@
2
2
  model_tier: medium
3
3
  name: chat-history
4
4
  disable-model-invocation: true
5
- pack: meta
5
+ pack: memory
6
6
  tier: 2
7
- description: Chat-history orchestrator — routes to show, import, learn
7
+ visibility: internal
8
+ description: Chat-history orchestrator — routes to import (selective cross-session resume). Mining moved to /memory mine-session; raw-log inspection uses the host's native transcript view.
8
9
  cluster: chat-history
9
10
  type: orchestrator
10
11
  suggestion:
11
12
  eligible: true
12
- trigger_description: "show chat-history status, inspect agents/runtime/.agent-chat-history log, import a prior session into the current chat, mine a prior session for project-improving learnings"
13
- trigger_context: "user wants to inspect the persistent agents/runtime/.agent-chat-history log, pull a prior session in verbatim, or extract learnings from a prior session"
13
+ trigger_description: "import a prior session into the current chat, resume a previous session, pull a prior session in verbatim"
14
+ trigger_context: "user wants to pull a prior session from the agents/runtime/.agent-chat-history log into the current chat verbatim and optionally resume it"
14
15
  workspaces:
15
16
  - agent-config-maintainer
16
17
  packs:
17
- - meta
18
+ - memory
18
19
  ---
19
20
 
20
21
  <!-- cloud_safe: noop -->
21
22
 
22
23
  # /chat-history
23
24
 
24
- Top-level orchestrator for the `/chat-history` family. After the
25
- hook-only reduction (`road-to-chat-history-hook-only`) writes and
26
- overflow handling are driven entirely by platform hooks +
27
- `scripts/chat_history.py` internals; the surfaced sub-commands are
28
- read-only on the log itself. Sessions coexist in one log file —
29
- each entry self-tags via the `s` field — so there is no ownership
30
- layer to recover from.
25
+ Top-level orchestrator for the `/chat-history` family. Writes and overflow
26
+ handling are driven entirely by platform hooks + `scripts/chat_history.py`
27
+ internals (`road-to-chat-history-hook-only`); the surfaced sub-command is
28
+ read-only on the cross-host log (`agents/runtime/.agent-chat-history`).
29
+ Sessions coexist in one log file — each entry self-tags via the `s` field —
30
+ so there is no ownership layer to recover from.
31
31
 
32
32
  ## Sub-commands
33
33
 
34
34
  | Sub-command | Routes to | Purpose |
35
35
  |---|---|---|
36
- | `/chat-history show` | `commands/chat-history/show.md` | Inspect the log size, entries, header, last entries |
37
- | `/chat-history import` | `commands/chat-history/import.md` | List prior sessions, pick one, render its entries verbatim — selective cross-session import |
38
- | `/chat-history learn` | `commands/chat-history/learn.md` | List prior sessions, pick one, mine it for project-improving learnings via `learning-to-rule-or-skill` |
36
+ | `/chat-history import` | `commands/chat-history/import.md` | List prior sessions, pick one, render its entries verbatim selective cross-session import + resume |
37
+
38
+ **Consolidated elsewhere** (see `road-to-memory-pipeline-consolidation.md`):
39
+
40
+ - **Mining a session for learnings** — use
41
+ [`/memory mine-session --mode=proposals`](../memory/mine-session/command.md)
42
+ (the former `/chat-history learn`; now the single mining command, reading the
43
+ same cross-host log).
44
+ - **Inspecting the raw log** (size, entries, header) — use the host's native
45
+ transcript / session view; the bespoke `/chat-history show` was dropped as
46
+ redundant.
39
47
 
40
48
  ## Dispatch
41
49
 
42
50
  1. Parse the user's argument: `/chat-history <sub-command> [args]`.
43
- 2. Look up the sub-command in the table above.
44
- 3. Load the body of the routed file and follow its `## Steps`
45
- section verbatim with the remaining args.
46
- 4. If the sub-command is unknown or missing (including the bare
47
- `/chat-history` invocation), route to `show` — the safe,
48
- current-session inspector default. `import` and `learn` are
49
- opt-in only.
51
+ 2. The only sub-command is `import`. Bare `/chat-history` (or an unknown
52
+ sub-command) route to `import`.
53
+ 3. Load `commands/chat-history/import.md` and follow its `## Steps` verbatim
54
+ with the remaining args.
50
55
 
51
56
  ## Rules
52
57
 
53
- - **Do NOT commit, push, or open a PR** — `show` and `import` are
54
- read-only; `learn` writes proposal drafts under
55
- `agents/proposals/` only and does not commit them.
56
- - **Do NOT chain sub-commands.** One `/chat-history <sub>` per turn.
57
- - **`import` and `learn` cross the session boundary** — only run
58
- them when the user explicitly asked for cross-session reading.
59
- The default read path (filtered to current session) stays in
60
- effect for every other tool.
58
+ - **Do NOT commit, push, or open a PR** — `import` is read-only (it renders a
59
+ prior session into the current chat; it writes nothing).
60
+ - **Do NOT chain sub-commands.** One `/chat-history import` per turn.
61
+ - **`import` crosses the session boundary** only run it when the user
62
+ explicitly asked for cross-session reading.
@@ -3,6 +3,7 @@ model_tier: medium
3
3
  name: check-current-md
4
4
  pack: meta
5
5
  tier: 2
6
+ visibility: internal
6
7
  description: "Check the open .md file (or a passed path) for German outside DE:/EN: anchor blocks — umlauts, function words, untranslated quotes. Reports and offers fixes."
7
8
  suggestion:
8
9
  eligible: false
@@ -4,6 +4,7 @@ name: git-commit-in-chunks
4
4
  pack: git
5
5
  replaces: [commit-in-chunks, commit:in-chunks]
6
6
  tier: 2
7
+ visibility: internal
7
8
  cluster: git-commit
8
9
  sub: in-chunks
9
10
  skills: [git-workflow]
@@ -7,6 +7,7 @@ intent: "Stage and commit changes in logical chunks with a Conventional Commits
7
7
  routes_to: [git-workflow, conventional-commits-writing]
8
8
  replaces: [commit]
9
9
  tier: 0
10
+ visibility: visible
10
11
  cluster: git-commit
11
12
  skills: [git-workflow]
12
13
  description: Stage and commit all uncommitted changes — splits into logical commits following Conventional Commits
@@ -6,6 +6,7 @@ intent: "Condense src/ sources into the shipped dist/agent-src trees"
6
6
  routes_to: [skill-management]
7
7
  replaces: []
8
8
  tier: 1
9
+ visibility: advanced
9
10
  skills: []
10
11
  description: Condense .md files from src/ into telegraph format and write to dist/agent-src/
11
12
  suggestion:
@@ -3,6 +3,7 @@ model_tier: inherit
3
3
  name: context-create
4
4
  pack: meta
5
5
  tier: 2
6
+ visibility: internal
6
7
  cluster: context
7
8
  sub: create
8
9
  skills: [agent-docs-writing]
@@ -3,6 +3,7 @@ model_tier: high
3
3
  name: context-refactor
4
4
  pack: meta
5
5
  tier: 2
6
+ visibility: internal
6
7
  cluster: context
7
8
  sub: refactor
8
9
  skills: [agent-docs-writing]
@@ -4,6 +4,7 @@ name: context
4
4
  disable-model-invocation: true
5
5
  pack: meta
6
6
  tier: 2
7
+ visibility: internal
7
8
  description: Context orchestrator — routes to create, refactor
8
9
  cluster: context
9
10
  type: orchestrator
@@ -1,8 +1,9 @@
1
1
  ---
2
2
  model_tier: medium
3
3
  name: cost-report
4
- pack: meta
4
+ pack: analytics
5
5
  tier: 2
6
+ visibility: internal
6
7
  description: Capture token cost from the active Claude Code session, append to the local sessions store, and surface the 50/75/90/100% budget alert ladder with cost-profile suggestions.
7
8
  skills: [file-editor]
8
9
  suggestion:
@@ -12,7 +13,7 @@ suggestion:
12
13
  workspaces:
13
14
  - agent-config-maintainer
14
15
  packs:
15
- - meta
16
+ - analytics
16
17
  ---
17
18
 
18
19
  <!-- cloud_safe: noop -->
@@ -125,7 +126,7 @@ Allowed values: `today`, `week`, `month`, `all` (default).
125
126
  ## Attribution
126
127
 
127
128
  Forked from
128
- [`ruvnet/ruflo`](https://github.com/ruvnet/ruflo)
129
- `plugins/ruflo-cost-tracker/scripts/{track,budget}.mjs`. The MCP
129
+ an external reference
130
+ `plugins/external-cost-tracker/scripts/{track,budget}.mjs`. The MCP
130
131
  `memory_store` dependency was replaced with a local JSONL append; the
131
132
  50/75/90/100% alert ladder and pricing tiers are preserved verbatim.
@@ -1,8 +1,9 @@
1
1
  ---
2
2
  model_tier: high
3
3
  name: council-analysis
4
- pack: meta
4
+ pack: product-reasoning
5
5
  tier: 2
6
+ visibility: internal
6
7
  cluster: council
7
8
  sub: analysis
8
9
  skills: [ai-council]
@@ -14,7 +15,7 @@ suggestion:
14
15
  workspaces:
15
16
  - agent-config-maintainer
16
17
  packs:
17
- - meta
18
+ - product-reasoning
18
19
  ---
19
20
 
20
21
  # /council analysis
@@ -1,8 +1,9 @@
1
1
  ---
2
2
  model_tier: inherit
3
3
  name: council-debate
4
- pack: meta
4
+ pack: product-reasoning
5
5
  tier: 2
6
+ visibility: internal
6
7
  cluster: council
7
8
  sub: debate
8
9
  skills: [ai-council]
@@ -14,7 +15,7 @@ suggestion:
14
15
  workspaces:
15
16
  - agent-config-maintainer
16
17
  packs:
17
- - meta
18
+ - product-reasoning
18
19
  ---
19
20
 
20
21
  # /council debate
@@ -51,7 +52,7 @@ the agent's framing.
51
52
  ### 2. Decide round count + auto-continue
52
53
 
53
54
  Default: 2 rounds (initial position + one rebuttal). Cap: the value of
54
- `defaults.debate_max_rounds` in [`agents/settings/.ai-council.yml`](../../../agents/settings/.ai-council.yml)
55
+ `defaults.debate_max_rounds` in `~/.event4u/agent-config/settings/.ai-council.yml`
55
56
  (default 4). `--rounds N` overrides the default; values above the cap
56
57
  are rejected by the CLI.
57
58
 
@@ -129,6 +130,6 @@ session directory is the canonical audit trail.
129
130
 
130
131
  If `DebateCapExceeded` fires, the CLI exits with code 3 and the partial
131
132
  debate is persisted. Surface the partial-debate path to the user and
132
- ask whether to (a) raise the cap in `agents/settings/.ai-council.yml` and rerun,
133
+ ask whether to (a) raise the cap in `~/.event4u/agent-config/settings/.ai-council.yml` and rerun,
133
134
  (b) stop here and render the partial result, or (c) start a new debate
134
135
  with a smaller scope.
@@ -1,8 +1,9 @@
1
1
  ---
2
2
  model_tier: inherit
3
3
  name: council-default
4
- pack: meta
4
+ pack: product-reasoning
5
5
  tier: 2
6
+ visibility: internal
6
7
  cluster: council
7
8
  sub: default
8
9
  skills: [ai-council]
@@ -13,7 +14,7 @@ suggestion:
13
14
  workspaces:
14
15
  - agent-config-maintainer
15
16
  packs:
16
- - meta
17
+ - product-reasoning
17
18
  ---
18
19
 
19
20
  # /council default
@@ -1,8 +1,9 @@
1
1
  ---
2
2
  model_tier: inherit
3
3
  name: council-design
4
- pack: meta
4
+ pack: product-reasoning
5
5
  tier: 2
6
+ visibility: internal
6
7
  cluster: council
7
8
  sub: design
8
9
  skills: [ai-council]
@@ -14,7 +15,7 @@ suggestion:
14
15
  workspaces:
15
16
  - agent-config-maintainer
16
17
  packs:
17
- - meta
18
+ - product-reasoning
18
19
  ---
19
20
 
20
21
  # /council design