@capagents/forgeqe 3.1.2 → 3.1.3

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 (170) hide show
  1. package/HOW_TO_USE.md +5003 -2077
  2. package/README.md +155 -449
  3. package/dist/docs-site/docs/app-theme.css +30 -9
  4. package/dist/docs-site/docs/architecture/index.html +45 -515
  5. package/dist/docs-site/docs/architecture-reference/index.html +1781 -0
  6. package/dist/docs-site/docs/area-api/index.html +257 -116
  7. package/dist/docs-site/docs/area-automated-tests/index.html +1229 -419
  8. package/dist/docs-site/docs/area-browser/index.html +167 -125
  9. package/dist/docs-site/docs/area-data/index.html +178 -188
  10. package/dist/docs-site/docs/area-desktop/index.html +329 -282
  11. package/dist/docs-site/docs/area-mobile/index.html +138 -86
  12. package/dist/docs-site/docs/area-operations/index.html +567 -393
  13. package/dist/docs-site/docs/area-pull-requests/index.html +114 -32
  14. package/dist/docs-site/docs/area-quality/index.html +111 -49
  15. package/dist/docs-site/docs/area-release/index.html +180 -65
  16. package/dist/docs-site/docs/area-setup/index.html +742 -339
  17. package/dist/docs-site/docs/area-systems/index.html +32 -48
  18. package/dist/docs-site/docs/area-test-cases/index.html +387 -154
  19. package/dist/docs-site/docs/containers/index.html +87 -101
  20. package/dist/docs-site/docs/cost-architecture/index.html +4 -3
  21. package/dist/docs-site/docs/custom-agents-first-run/index.html +108 -50
  22. package/dist/docs-site/docs/desktop/index.html +277 -297
  23. package/dist/docs-site/docs/desktop-ci/index.html +15 -5
  24. package/dist/docs-site/docs/docs-tabs.js +56 -0
  25. package/dist/docs-site/docs/evidence/index.html +50 -49
  26. package/dist/docs-site/docs/feature-test-prompts/index.html +34 -24
  27. package/dist/docs-site/docs/get-started/index.html +464 -168
  28. package/dist/docs-site/docs/graphify/index.html +8 -7
  29. package/dist/docs-site/docs/guardrails/index.html +20 -4
  30. package/dist/docs-site/docs/index.html +4 -3
  31. package/dist/docs-site/docs/mobile/index.html +96 -76
  32. package/dist/docs-site/docs/model-routing/index.html +44 -18
  33. package/dist/docs-site/docs/overview/index.html +23 -7
  34. package/dist/docs-site/docs/product-graph/index.html +13 -12
  35. package/dist/docs-site/docs/product-knowledge/index.html +16 -5
  36. package/dist/docs-site/docs/product-views/index.html +7 -6
  37. package/dist/docs-site/docs/reference/index.html +95 -65
  38. package/dist/docs-site/docs/search.js +1 -1
  39. package/dist/docs-site/docs/using/index.html +444 -126
  40. package/dist/docs-site/docs/web-app/index.html +54 -51
  41. package/dist/forgeqe.js +1822 -1822
  42. package/dist/web/assets/Agent-3pV8Rwap.js +8 -0
  43. package/dist/web/assets/AgentWork-DAnmH0My.js +2 -0
  44. package/dist/web/assets/ApiTests-DW4MRFzG.js +10 -0
  45. package/dist/web/assets/Browse-Bd0ZZfc2.js +1 -0
  46. package/dist/web/assets/Chat-DnBUm_97.js +3 -0
  47. package/dist/web/assets/CommandPalette-B1O9aDTk.js +1 -0
  48. package/dist/web/assets/Compare-1v7_ca7z.js +1 -0
  49. package/dist/web/assets/Cost-CWrc4McH.js +1 -0
  50. package/dist/web/assets/Data-rWSiG4Cq.js +6 -0
  51. package/dist/web/assets/Desktop-3x6EQqos.js +1 -0
  52. package/dist/web/assets/DesktopReview-cSA10Rm3.js +1 -0
  53. package/dist/web/assets/Evidence-CKy3o7cw.js +1 -0
  54. package/dist/web/assets/{Explore-ObkEpUyS.js → Explore-CMAxWE_8.js} +2 -2
  55. package/dist/web/assets/Features-haQchkhA.js +1 -0
  56. package/dist/web/assets/{Flags-0-RniPJm.js → Flags-BaQjYi_t.js} +2 -2
  57. package/dist/web/assets/Flaky-DUuC0qTn.js +1 -0
  58. package/dist/web/assets/Impact-CP0H8ygo.js +3 -0
  59. package/dist/web/assets/Jobs-cYxoYd3i.js +5 -0
  60. package/dist/web/assets/KindPage-DWW8gN5_.js +6 -0
  61. package/dist/web/assets/Migration-Bsm7WU1d.js +2 -0
  62. package/dist/web/assets/PageAgent-c95zT2PJ.js +1 -0
  63. package/dist/web/assets/Product-BQSiR28a.js +7 -0
  64. package/dist/web/assets/Production-CAv0Vtoy.js +1 -0
  65. package/dist/web/assets/Quality-aQPaPYQc.js +1 -0
  66. package/dist/web/assets/Readiness-CkknP87n.js +1 -0
  67. package/dist/web/assets/Record-09IsC9U-.js +1 -0
  68. package/dist/web/assets/Regression-BL4MfN47.js +5 -0
  69. package/dist/web/assets/RelationGraph-Dg4fqt7l.js +1 -0
  70. package/dist/web/assets/Reports-CMV1l-iS.js +2 -0
  71. package/dist/web/assets/Response-DTBFBeKB.js +9 -0
  72. package/dist/web/assets/Responsive-DBRQ9FUO.js +3 -0
  73. package/dist/web/assets/RunDiff-CMDrnsA3.js +1 -0
  74. package/dist/web/assets/Runs-Dkeu6_vZ.js +2 -0
  75. package/dist/web/assets/Settings-KjKm8h-_.js +21 -0
  76. package/dist/web/assets/{Steps-D-YG0eJy.js → Steps-HYHK9psI.js} +1 -1
  77. package/dist/web/assets/TestCases-Cv6-OSv0.js +1 -0
  78. package/dist/web/assets/TestData-DbEfNlUE.js +2 -0
  79. package/dist/web/assets/TestDebt-DzHQIU4X.js +1 -0
  80. package/dist/web/assets/TestManagement-BgRTGHMT.js +1 -0
  81. package/dist/web/assets/Tosca-DZpHAtnH.js +3 -0
  82. package/dist/web/assets/WhatsNew-jp0c4WSV.js +1 -0
  83. package/dist/web/assets/coverage-BB9BLjGz.js +5 -0
  84. package/dist/web/assets/{dataParts-DbeCj9ga.js → dataParts-DEPK4eQE.js} +2 -2
  85. package/dist/web/assets/{diff-BStuTmsN.js → diff-CcNwLCX6.js} +1 -1
  86. package/dist/web/assets/{families-BBFFrUlo.js → families-gkpkloLT.js} +1 -1
  87. package/dist/web/assets/filters-C7phIFfd.js +1 -0
  88. package/dist/web/assets/fold-i73P-EDV.js +1 -0
  89. package/dist/web/assets/head-BtTqyLlj.js +1 -0
  90. package/dist/web/assets/{highlight-BcFZIf59.js → highlight-DZI39CzZ.js} +1 -1
  91. package/dist/web/assets/index-ClFOh63x.css +2 -0
  92. package/dist/web/assets/index-YGWJEkAT.js +64 -0
  93. package/dist/web/assets/input-C2vQ9O3a.js +1 -0
  94. package/dist/web/assets/logos-BmbNTDu2.js +1 -0
  95. package/dist/web/assets/palette-XFlqvgZl.js +1 -0
  96. package/dist/web/assets/{paletteCommands-Co-RlQ8q.js → paletteCommands-DsbD2ASU.js} +1 -1
  97. package/dist/web/assets/parts-DEVx2Sea.js +1 -0
  98. package/dist/web/assets/productParts-Bi-XjszL.js +1 -0
  99. package/dist/web/assets/qualityParts-Dbu01g7G.js +1 -0
  100. package/dist/web/assets/{recordTest-Cez2sDJO.js → recordTest--Wr40QdN.js} +1 -1
  101. package/dist/web/assets/route-Dg53WdFu.js +1 -0
  102. package/dist/web/index.html +6 -7
  103. package/docs/ARCHITECTURE.md +50 -563
  104. package/docs/ARCHITECTURE_REFERENCE.md +1484 -0
  105. package/docs/CONTAINERS.md +87 -87
  106. package/docs/CUSTOM_AGENTS_FIRST_RUN.md +125 -43
  107. package/docs/DESKTOP-CI.md +18 -3
  108. package/docs/DESKTOP.md +298 -297
  109. package/docs/MOBILE.md +103 -71
  110. package/docs/MODEL_ROUTING.md +48 -15
  111. package/docs/WEB_APP.md +49 -44
  112. package/docs/feature-test-prompts.md +29 -16
  113. package/docs/user-guide.html +5263 -2453
  114. package/guardrails/README.md +22 -2
  115. package/knowledge/README.md +15 -2
  116. package/package.json +1 -1
  117. package/prompts/brain.md +1 -0
  118. package/py/forgeqe_engine/recordsession.py +100 -24
  119. package/dist/web/assets/Agent-CPhmZdFX.js +0 -8
  120. package/dist/web/assets/AgentWork-BXdN9xgi.js +0 -2
  121. package/dist/web/assets/ApiTests-Do3xLjfB.js +0 -10
  122. package/dist/web/assets/Browse-WVkJT6Bs.js +0 -2
  123. package/dist/web/assets/Chat-CDc9UcQX.js +0 -3
  124. package/dist/web/assets/CommandPalette-BAZm62lV.js +0 -1
  125. package/dist/web/assets/Compare-Br6n9T9L.js +0 -1
  126. package/dist/web/assets/Cost-BBUyBu3Y.js +0 -1
  127. package/dist/web/assets/Data-Ch2DPEWp.js +0 -6
  128. package/dist/web/assets/Desktop-Qzoq-cQv.js +0 -1
  129. package/dist/web/assets/DesktopReview-CF_jQYAM.js +0 -1
  130. package/dist/web/assets/Evidence-C72Lj5_Q.js +0 -1
  131. package/dist/web/assets/Features-CQzNo_WP.js +0 -1
  132. package/dist/web/assets/Flaky-BPJvNLCA.js +0 -1
  133. package/dist/web/assets/Impact-CfccsL_k.js +0 -3
  134. package/dist/web/assets/Jobs-T6m4zhDy.js +0 -5
  135. package/dist/web/assets/KindPage-BDUvWe2p.js +0 -6
  136. package/dist/web/assets/Migration-Dqeh4x5u.js +0 -2
  137. package/dist/web/assets/PageAgent-DNjzIgeY.js +0 -1
  138. package/dist/web/assets/Product-nYV_scOV.js +0 -7
  139. package/dist/web/assets/Production-CGSbEWVa.js +0 -1
  140. package/dist/web/assets/Quality-BIypojZm.js +0 -1
  141. package/dist/web/assets/Readiness-BlRjwJRg.js +0 -1
  142. package/dist/web/assets/Record-v2KLI-_Z.js +0 -1
  143. package/dist/web/assets/Regression-B-jSt4Jz.js +0 -5
  144. package/dist/web/assets/RelationGraph-8J98lOVG.js +0 -1
  145. package/dist/web/assets/Reports-GI4u6SyW.js +0 -2
  146. package/dist/web/assets/Response-mhBThq2b.js +0 -9
  147. package/dist/web/assets/Responsive-DXu7Ra7K.js +0 -3
  148. package/dist/web/assets/RunDiff-D0SHDNp0.js +0 -1
  149. package/dist/web/assets/Runs-C1Gjdi9M.js +0 -2
  150. package/dist/web/assets/Settings-BGGeuvyF.js +0 -21
  151. package/dist/web/assets/TestCases-DC4w77eQ.js +0 -1
  152. package/dist/web/assets/TestData-CvKWRVVV.js +0 -2
  153. package/dist/web/assets/TestDebt-D8YzN29_.js +0 -1
  154. package/dist/web/assets/TestManagement-C5cDCqrD.js +0 -1
  155. package/dist/web/assets/Tosca-BGUv3RiJ.js +0 -3
  156. package/dist/web/assets/WhatsNew-B_Gyuv8O.js +0 -1
  157. package/dist/web/assets/coverage-BMP6ELFJ.js +0 -5
  158. package/dist/web/assets/filters-CnAMr286.js +0 -1
  159. package/dist/web/assets/fold-D_O_VZui.js +0 -1
  160. package/dist/web/assets/head-CRo48rPt.js +0 -1
  161. package/dist/web/assets/index-B3JsM7tv.js +0 -64
  162. package/dist/web/assets/index-CafApcbZ.css +0 -2
  163. package/dist/web/assets/input-CtzK50ZF.js +0 -1
  164. package/dist/web/assets/line-icons-rdF8DYDJ.js +0 -1
  165. package/dist/web/assets/logos-D4oVWzqa.js +0 -1
  166. package/dist/web/assets/palette-DAaGSao7.js +0 -1
  167. package/dist/web/assets/parts-D357Wolo.js +0 -1
  168. package/dist/web/assets/productParts-B8oHRCJF.js +0 -1
  169. package/dist/web/assets/qualityParts-BLkmIfDY.js +0 -1
  170. package/dist/web/assets/route-BloYJWgw.js +0 -1
@@ -11,6 +11,7 @@
11
11
  <link rel="stylesheet" href="../docs.css">
12
12
  <script src="../search.js" defer></script>
13
13
  <script src="../docs.js" defer></script>
14
+ <script src="../docs-tabs.js" defer></script>
14
15
  <link rel="stylesheet" href="../../app-look.css">
15
16
  <link rel="stylesheet" href="../app-theme.css">
16
17
  </head>
@@ -112,11 +113,11 @@
112
113
  <div class="container docs-layout">
113
114
  <nav class="docs-side" aria-label="Docs">
114
115
  <a class="side-home" href="../index.html" aria-current="page"><svg class="pix ph" aria-hidden="true" focusable="false"><use href="#ph-wikis"/></svg>Docs home</a>
115
- <div class="side-group"><p class="side-head">Start here</p><ul><li><a href="../overview/index.html"><span>What ForgeQE does</span></a></li><li><a href="../get-started/index.html"><span>Get started</span></a></li><li><a href="../using/index.html"><span>Using ForgeQE</span></a></li><li><a href="../web-app/index.html"><span>The web app</span></a></li></ul></div><div class="side-group"><p class="side-head">Browser and tests</p><ul><li><a href="../area-browser/index.html"><span>Browser testing</span></a></li><li><a href="../area-test-cases/index.html"><span>Test cases</span></a></li><li><a href="../area-automated-tests/index.html"><span>Automated tests</span></a></li><li><a href="../feature-test-prompts/index.html"><span>Feature test prompts</span></a></li><li><a href="../area-api/index.html"><span>API testing</span></a></li><li><a href="../area-quality/index.html"><span>Quality checks</span></a></li></ul></div><div class="side-group"><p class="side-head">Desktop and mobile</p><ul><li><a href="../area-desktop/index.html"><span>Desktop apps</span></a></li><li><a href="../area-mobile/index.html"><span>Mobile apps</span></a></li></ul></div><div class="side-group"><p class="side-head">Setup and operations</p><ul><li><a href="index.html" aria-current="page"><span>Setup and configuration</span></a></li><li><a href="../area-operations/index.html"><span>Operations and monitoring</span></a></li><li><a href="../area-data/index.html"><span>Test data and databases</span></a></li><li><a href="../area-pull-requests/index.html"><span>Pull requests</span></a></li><li><a href="../area-release/index.html"><span>Release and reports</span></a></li></ul></div><div class="side-group"><p class="side-head">Agents and knowledge</p><ul><li><a href="../custom-agents-first-run/index.html"><span>Custom agents: a first run</span></a></li><li><a href="../product-knowledge/index.html"><span>Product knowledge</span></a></li><li><a href="../graphify/index.html"><span>Reading product code</span></a></li></ul></div><div class="side-group"><p class="side-head">How ForgeQE works</p><ul><li><a href="../area-systems/index.html"><span>Connected systems</span></a></li><li><a href="../architecture/index.html"><span>Architecture</span></a></li><li><a href="../../architecture-map/index.html"><span>Architecture map</span></a></li><li><a href="../../security/index.html"><span>Security and data flows</span></a></li><li><a href="../guardrails/index.html"><span>Guardrails</span></a></li></ul></div><div class="side-group"><p class="side-head">Look it up</p><ul><li><a href="../reference/index.html"><span>Reference</span></a></li></ul></div><div class="side-group"><p class="side-head">For contributors</p><ul><li><a href="../product-graph/index.html"><span>Product knowledge graph</span></a></li><li><a href="../product-views/index.html"><span>Product views</span></a></li><li><a href="../evidence/index.html"><span>Evidence</span></a></li><li><a href="../cost-architecture/index.html"><span>Cost-aware execution</span></a></li></ul></div>
116
+ <div class="side-group"><p class="side-head">Start here</p><ul><li><a href="../overview/index.html"><span>What ForgeQE does</span></a></li><li><a href="../get-started/index.html"><span>Get started</span></a></li><li><a href="../using/index.html"><span>Using ForgeQE</span></a></li><li><a href="../web-app/index.html"><span>The web app</span></a></li></ul></div><div class="side-group"><p class="side-head">Browser and tests</p><ul><li><a href="../area-browser/index.html"><span>Browser testing</span></a></li><li><a href="../area-test-cases/index.html"><span>Test cases</span></a></li><li><a href="../area-automated-tests/index.html"><span>Automated tests</span></a></li><li><a href="../feature-test-prompts/index.html"><span>Feature test prompts</span></a></li><li><a href="../area-api/index.html"><span>API testing</span></a></li><li><a href="../area-quality/index.html"><span>Quality checks</span></a></li></ul></div><div class="side-group"><p class="side-head">Desktop and mobile</p><ul><li><a href="../area-desktop/index.html"><span>Desktop apps</span></a></li><li><a href="../area-mobile/index.html"><span>Mobile apps</span></a></li></ul></div><div class="side-group"><p class="side-head">Setup and operations</p><ul><li><a href="index.html" aria-current="page"><span>Setup and configuration</span></a></li><li><a href="../area-operations/index.html"><span>Operations and monitoring</span></a></li><li><a href="../area-data/index.html"><span>Test data and databases</span></a></li><li><a href="../area-pull-requests/index.html"><span>Pull requests</span></a></li><li><a href="../area-release/index.html"><span>Release and reports</span></a></li></ul></div><div class="side-group"><p class="side-head">Agents and knowledge</p><ul><li><a href="../custom-agents-first-run/index.html"><span>Custom agents: a first run</span></a></li><li><a href="../product-knowledge/index.html"><span>Product knowledge</span></a></li></ul></div><div class="side-group"><p class="side-head">How ForgeQE works</p><ul><li><a href="../area-systems/index.html"><span>Connected systems</span></a></li><li><a href="../architecture/index.html"><span>How ForgeQE works</span></a></li><li><a href="../../architecture-map/index.html"><span>Architecture map</span></a></li><li><a href="../../security/index.html"><span>Security and data flows</span></a></li><li><a href="../guardrails/index.html"><span>Guardrails</span></a></li></ul></div><div class="side-group"><p class="side-head">Look it up</p><ul><li><a href="../reference/index.html"><span>Reference</span></a></li></ul></div><div class="side-group"><p class="side-head">For contributors</p><ul><li><a href="../architecture-reference/index.html"><span>Architecture reference</span></a></li><li><a href="../product-graph/index.html"><span>Product knowledge graph</span></a></li><li><a href="../product-views/index.html"><span>Product views</span></a></li><li><a href="../graphify/index.html"><span>Reading product code</span></a></li><li><a href="../evidence/index.html"><span>Evidence</span></a></li><li><a href="../cost-architecture/index.html"><span>Cost-aware execution</span></a></li></ul></div>
116
117
  </nav>
117
118
  <main id="main" class="docs-main guide chapter-page">
118
119
  <p class="crumbs"><a href="../index.html">Docs</a><span>/</span>Setup and operations</p>
119
- <div class="page-bar"><details class="bar-menu"><summary>Docs menu</summary><nav class="bar-panel" aria-label="Docs menu"><div class="side-group"><p class="side-head">Start here</p><ul><li><a href="../overview/index.html"><span>What ForgeQE does</span></a></li><li><a href="../get-started/index.html"><span>Get started</span></a></li><li><a href="../using/index.html"><span>Using ForgeQE</span></a></li><li><a href="../web-app/index.html"><span>The web app</span></a></li></ul></div><div class="side-group"><p class="side-head">Browser and tests</p><ul><li><a href="../area-browser/index.html"><span>Browser testing</span></a></li><li><a href="../area-test-cases/index.html"><span>Test cases</span></a></li><li><a href="../area-automated-tests/index.html"><span>Automated tests</span></a></li><li><a href="../feature-test-prompts/index.html"><span>Feature test prompts</span></a></li><li><a href="../area-api/index.html"><span>API testing</span></a></li><li><a href="../area-quality/index.html"><span>Quality checks</span></a></li></ul></div><div class="side-group"><p class="side-head">Desktop and mobile</p><ul><li><a href="../area-desktop/index.html"><span>Desktop apps</span></a></li><li><a href="../area-mobile/index.html"><span>Mobile apps</span></a></li></ul></div><div class="side-group"><p class="side-head">Setup and operations</p><ul><li><a href="index.html" aria-current="page"><span>Setup and configuration</span></a></li><li><a href="../area-operations/index.html"><span>Operations and monitoring</span></a></li><li><a href="../area-data/index.html"><span>Test data and databases</span></a></li><li><a href="../area-pull-requests/index.html"><span>Pull requests</span></a></li><li><a href="../area-release/index.html"><span>Release and reports</span></a></li></ul></div><div class="side-group"><p class="side-head">Agents and knowledge</p><ul><li><a href="../custom-agents-first-run/index.html"><span>Custom agents: a first run</span></a></li><li><a href="../product-knowledge/index.html"><span>Product knowledge</span></a></li><li><a href="../graphify/index.html"><span>Reading product code</span></a></li></ul></div><div class="side-group"><p class="side-head">How ForgeQE works</p><ul><li><a href="../area-systems/index.html"><span>Connected systems</span></a></li><li><a href="../architecture/index.html"><span>Architecture</span></a></li><li><a href="../../architecture-map/index.html"><span>Architecture map</span></a></li><li><a href="../../security/index.html"><span>Security and data flows</span></a></li><li><a href="../guardrails/index.html"><span>Guardrails</span></a></li></ul></div><div class="side-group"><p class="side-head">Look it up</p><ul><li><a href="../reference/index.html"><span>Reference</span></a></li></ul></div><div class="side-group"><p class="side-head">For contributors</p><ul><li><a href="../product-graph/index.html"><span>Product knowledge graph</span></a></li><li><a href="../product-views/index.html"><span>Product views</span></a></li><li><a href="../evidence/index.html"><span>Evidence</span></a></li><li><a href="../cost-architecture/index.html"><span>Cost-aware execution</span></a></li></ul></div></nav></details><details class="bar-toc"><summary>On this page</summary><nav class="bar-panel" aria-label="On this page"><ul><li><a href="#cap-test-apps">Test environments and their apps</a></li><li><a href="#doc-how_to_use-environments-and-apps">Environments and apps</a></li><li><a href="#cap-generated-code">What ForgeQE wrote</a></li><li><a href="#doc-how_to_use-generated-code">Generated code</a></li><li><a href="#cap-forgeqe-commands">Every forgeqe command from the shell</a></li><li><a href="#doc-how_to_use-15-commands-cheat-sheet">Commands cheat sheet</a></li><li><a href="#doc-how_to_use-guardrails">Guardrails</a></li><li><a href="#doc-how_to_use-your-prompts-skills-and-product-knowledge">Your prompts, skills, and product knowledge</a></li><li><a href="#cap-product-knowledge">Product knowledge from the product's repositories</a></li><li><a href="#doc-how_to_use-product-knowledge-graph">Product knowledge graph</a></li><li><a href="#cap-knowledge-agent">Librarian: what ForgeQE understood, and your corrections</a></li><li><a href="#doc-how_to_use-librarian">Librarian</a></li><li><a href="#cap-document-search">Search the project's documents, without vectors</a></li><li><a href="#doc-how_to_use-searching-your-documents-without-vectors">Searching your documents, without vectors</a></li><li><a href="#cap-web-search">Search the web</a></li><li><a href="#doc-how_to_use-searching-the-web">Searching the web</a></li><li><a href="#cap-setup-help">Setup, skills, and documentation</a></li><li><a href="#doc-how_to_use-11-skills">Skills</a></li><li><a href="#doc-how_to_use-model-routing">Model routing</a></li><li><a href="#doc-readme-privacy">Privacy</a></li><li><a href="#doc-docs-model_routing-model-routing-the-right-configured-model-for-each-task">Model routing: the right configured model for each task</a></li><li><a href="#doc-docs-model_routing-turn-it-on">Turn it on</a></li><li><a href="#doc-docs-model_routing-the-areas-of-work">The areas of work</a></li><li><a href="#doc-docs-model_routing-a-default-model-for-each-agent">A default model for each agent</a></li><li><a href="#doc-docs-model_routing-how-a-model-is-picked">How a model is picked</a></li><li><a href="#doc-docs-model_routing-how-forgeqe-learns-the-models">How ForgeQE learns the models</a></li><li><a href="#doc-docs-model_routing-limit-what-an-area-may-use">Limit what an area may use</a></li><li><a href="#doc-docs-model_routing-what-routing-cost-and-what-it-saved">What routing cost, and what it saved</a></li><li><a href="#doc-docs-model_routing-what-it-does-not-do">What it does not do</a></li></ul></nav></details></div>
120
+ <div class="page-bar"><details class="bar-menu"><summary>Docs menu</summary><nav class="bar-panel" aria-label="Docs menu"><div class="side-group"><p class="side-head">Start here</p><ul><li><a href="../overview/index.html"><span>What ForgeQE does</span></a></li><li><a href="../get-started/index.html"><span>Get started</span></a></li><li><a href="../using/index.html"><span>Using ForgeQE</span></a></li><li><a href="../web-app/index.html"><span>The web app</span></a></li></ul></div><div class="side-group"><p class="side-head">Browser and tests</p><ul><li><a href="../area-browser/index.html"><span>Browser testing</span></a></li><li><a href="../area-test-cases/index.html"><span>Test cases</span></a></li><li><a href="../area-automated-tests/index.html"><span>Automated tests</span></a></li><li><a href="../feature-test-prompts/index.html"><span>Feature test prompts</span></a></li><li><a href="../area-api/index.html"><span>API testing</span></a></li><li><a href="../area-quality/index.html"><span>Quality checks</span></a></li></ul></div><div class="side-group"><p class="side-head">Desktop and mobile</p><ul><li><a href="../area-desktop/index.html"><span>Desktop apps</span></a></li><li><a href="../area-mobile/index.html"><span>Mobile apps</span></a></li></ul></div><div class="side-group"><p class="side-head">Setup and operations</p><ul><li><a href="index.html" aria-current="page"><span>Setup and configuration</span></a></li><li><a href="../area-operations/index.html"><span>Operations and monitoring</span></a></li><li><a href="../area-data/index.html"><span>Test data and databases</span></a></li><li><a href="../area-pull-requests/index.html"><span>Pull requests</span></a></li><li><a href="../area-release/index.html"><span>Release and reports</span></a></li></ul></div><div class="side-group"><p class="side-head">Agents and knowledge</p><ul><li><a href="../custom-agents-first-run/index.html"><span>Custom agents: a first run</span></a></li><li><a href="../product-knowledge/index.html"><span>Product knowledge</span></a></li></ul></div><div class="side-group"><p class="side-head">How ForgeQE works</p><ul><li><a href="../area-systems/index.html"><span>Connected systems</span></a></li><li><a href="../architecture/index.html"><span>How ForgeQE works</span></a></li><li><a href="../../architecture-map/index.html"><span>Architecture map</span></a></li><li><a href="../../security/index.html"><span>Security and data flows</span></a></li><li><a href="../guardrails/index.html"><span>Guardrails</span></a></li></ul></div><div class="side-group"><p class="side-head">Look it up</p><ul><li><a href="../reference/index.html"><span>Reference</span></a></li></ul></div><div class="side-group"><p class="side-head">For contributors</p><ul><li><a href="../architecture-reference/index.html"><span>Architecture reference</span></a></li><li><a href="../product-graph/index.html"><span>Product knowledge graph</span></a></li><li><a href="../product-views/index.html"><span>Product views</span></a></li><li><a href="../graphify/index.html"><span>Reading product code</span></a></li><li><a href="../evidence/index.html"><span>Evidence</span></a></li><li><a href="../cost-architecture/index.html"><span>Cost-aware execution</span></a></li></ul></div></nav></details><details class="bar-toc"><summary>On this page</summary><nav class="bar-panel" aria-label="On this page"><ul><li><a href="#cap-test-apps">Test environments and their apps</a></li><li><a href="#cap-generated-code">What ForgeQE wrote</a></li><li><a href="#cap-forgeqe-commands">Every forgeqe command from the shell</a></li><li><a href="#doc-how_to_use-guardrails">Guardrails</a></li><li><a href="#doc-how_to_use-your-prompts-skills-and-product-knowledge">Your prompts, skills, and product knowledge</a></li><li><a href="#cap-product-knowledge">Product knowledge from the product's repositories</a></li><li><a href="#cap-knowledge-agent">Librarian: what ForgeQE understood, and your corrections</a></li><li><a href="#cap-document-search">Search the project's documents, without vectors</a></li><li><a href="#cap-web-search">Search the web</a></li><li><a href="#cap-setup-help">Setup, skills, and documentation</a></li><li><a href="#doc-how_to_use-model-routing">Model routing</a></li><li><a href="#doc-readme-privacy">Privacy</a></li><li><a href="#doc-docs-model_routing-model-routing-the-right-configured-model-for-each-task">Model routing: the right configured model for each task</a></li><li><a href="#doc-docs-model_routing-turn-it-on">Turn it on</a></li><li><a href="#doc-docs-model_routing-the-areas-of-work">The areas of work</a></li><li><a href="#doc-docs-model_routing-a-default-model-for-each-agent">A default model for each agent</a></li><li><a href="#doc-docs-model_routing-how-a-model-is-picked">How a model is picked</a></li><li><a href="#doc-docs-model_routing-how-forgeqe-learns-the-models">How ForgeQE learns the models</a></li><li><a href="#doc-docs-model_routing-limit-what-an-area-may-use">Limit what an area may use</a></li><li><a href="#doc-docs-model_routing-what-routing-cost-and-what-it-saved">What routing cost, and what it saved</a></li><li><a href="#doc-docs-model_routing-what-it-does-not-do">What it does not do</a></li></ul></nav></details></div>
120
121
  <h1 class="topic-h"><svg class="pix pix--title ph" aria-hidden="true" focusable="false"><use href="#ph-healer"/></svg>Setup and configuration</h1>
121
122
  <p class="guide-lead">Configuration, skills, and help</p>
122
123
  <article class="spec feat" id="cap-test-apps">
@@ -127,13 +128,18 @@
127
128
  <div class="fact"><span class="mono">What it needs</span><ul class="needs"><li><span class="need input">You give</span><span>env.yaml with the environments and apps (forgeqe init writes one)</span></li></ul></div>
128
129
  <div class="fact"><span class="mono">Tools</span><p class="tools"><code>test_apps</code> <code>use_environment</code></p></div>
129
130
  </div>
130
- <div class="detail"><span class="mono">In detail</span>
131
- <section class="doc" id="doc-how_to_use-environments-and-apps">
131
+
132
+ </article>
133
+ <div class="feat-detail"><section class="doc" data-topic id="doc-how_to_use-environments-and-apps">
132
134
  <h4>Environments and apps</h4>
133
- <div class="prose"><p><code>env.yaml</code> (written by <code>forgeqe init</code>, named in forgeqe.yaml <code>environments.file</code>) lists your test environments and the
134
- apps in each: web apps by URL, APIs by base URL, Windows desktop apps by <code>.exe</code>, and mobile apps by package id, each
135
- with a short description of what it is for. Plain values go under <code>variables</code>; secrets never do, only the names of the
136
- environment variables that hold them, under <code>secrets</code>.</p>
135
+ <div class="prose"><p><code>env.yaml</code> lists your test environments and the apps in each, each app with a short description of what it is for:</p>
136
+ <ul>
137
+ <li>web apps by URL;</li>
138
+ <li>APIs by base URL;</li>
139
+ <li>Windows desktop apps by <code>.exe</code>;</li>
140
+ <li>mobile apps by package id.</li>
141
+ </ul>
142
+ <p><code>forgeqe init</code> writes it, and <code>environments.file</code> in <code>forgeqe.yaml</code> names it. Plain values go under <code>variables</code>. Secrets never go in the file: only the names of the environment variables that hold them, under <code>secrets</code>.</p>
137
143
  <div class="code"><div class="code-bar"><i></i><i></i><i></i><span>yaml</span><button class="copy-code" type="button">Copy</button></div><pre class="lines"><code><span class="ln"><span class="cmd">default: qa
138
144
  </span></span><span class="ln"><span class="cmd">environments:
139
145
  </span></span><span class="ln"><span class="cmd"> qa:
@@ -147,13 +153,21 @@ environment variables that hold them, under <code>secrets</code>.</p>
147
153
  </span></span><span class="ln"><span class="cmd"> uat:
148
154
  </span></span><span class="ln"><span class="cmd"> apps: { ... }
149
155
  </span></span></code></pre></div>
150
- <p><strong>A value kept in <code>.env</code>.</strong> A variable can take its value from an environment variable (<code>.env</code> or the shell) by
151
- naming it: <code>TestPassword: password</code> (a password-, secret-, token-, key- or credential-like name whose value is a
152
- variable's name), or <code>${NAME}</code> / <code>env:NAME</code> under any name. Such a variable is a secret: the browser agent types it as
153
- <code>&lt;secret&gt;TestPassword&lt;/secret&gt;</code>, filled with that variable's value only on the environment's own sites; a test case's
154
- <code>{{var.TestPassword}}</code> becomes that placeholder; tests read it from the variable itself (never <code>FORGEQE_VAR_*</code>); and
155
- its value is never shown to a model or written into a report. When the variable is not set, <code>forgeqe apps</code> and the
156
- agent say so instead of the word written in the file being typed.</p>
156
+ <p>In the web app, <strong>Settings › Environments</strong> edits the same file: each environment's <strong>Apps</strong>, <strong>Variables</strong>, <strong>Secrets</strong> (by name) and data files, and the active environment.</p>
157
+ <p>Your test cases stay the same in every environment; only where they run changes. The environment supplies the URLs, executables, accounts and values, and the same test, workflow or scenario runs against QA or UAT.</p>
158
+ <p><strong>A value kept in <code>.env</code>.</strong> A variable can take its value from an environment variable (<code>.env</code> or the shell) by naming it:</p>
159
+ <ul>
160
+ <li>under a password-, secret-, token-, key- or credential-like name, write the variable's name as the value: <code>TestPassword: password</code>;</li>
161
+ <li>under any name, write <code>${NAME}</code> or <code>env:NAME</code>.</li>
162
+ </ul>
163
+ <p>Such a variable is a secret:</p>
164
+ <ul>
165
+ <li>The browser agent types it as <code>&lt;secret&gt;TestPassword&lt;/secret&gt;</code>, filled with that variable's value only on the environment's own sites.</li>
166
+ <li>A test case's <code>{{var.TestPassword}}</code> becomes that placeholder.</li>
167
+ <li>Tests read it from the variable itself (never <code>FORGEQE_VAR_*</code>).</li>
168
+ <li>Its value is never shown to a model or written into a report.</li>
169
+ <li>When the variable is not set, <code>forgeqe apps</code> and the agent say so, instead of typing the word written in the file.</li>
170
+ </ul>
157
171
  <div class="code"><div class="code-bar"><i></i><i></i><i></i><span>yaml</span><button class="copy-code" type="button">Copy</button></div><pre class="lines"><code><span class="ln ln--note"><span class="pad"></span><span class="cm"><span class="h">#</span> .env
158
172
  </span></span><span class="ln"><span class="cmd">password=test@123
159
173
  </span></span><span class="ln ln--note"><span class="pad"></span><span class="cm"><span class="h">#</span> env.yaml
@@ -162,17 +176,12 @@ agent say so instead of the word written in the file being typed.</p>
162
176
  </span></span><span class="ln"><span class="cmd"> variables:
163
177
  </span></span><span class="ln ln--pair"><span class="cmd"> TestPassword: password</span><span class="pad"> </span><span class="cm"><span class="h">#</span> typed as test@123, never as &quot;password&quot;
164
178
  </span></span></code></pre></div>
165
- <p>Your test cases stay the same in every environment; only where they run changes. The environment supplies the URLs,
166
- executables, accounts and values, and the same test, workflow or scenario runs against QA or UAT.</p>
167
179
  <p><strong>Any layout works.</strong> The layout above is ForgeQE's own, but an <code>env.yaml</code> your team already keeps is read as it is:</p>
168
180
  <ul>
169
- <li>environments under <code>environments:</code> / <code>envs:</code>, as a list with a <code>name</code> each, or as top-level keys (<code>qa:</code>, <code>uat:</code>);
170
- or one file per environment with <code>environments.dir</code> in forgeqe.yaml</li>
171
- <li>a <code>common:</code> / <code>defaults:</code> / <code>shared:</code> block merged into each environment</li>
172
- <li>any <code>http(s)</code> URL becomes a web app (an API when its key or path says api); an absolute <code>.exe</code> becomes a desktop app
173
- (with a sibling <code>args</code>); other values become variables</li>
174
- <li>secrets: keys like <code>password</code>, <code>token</code> or <code>api_key</code> are never shown to a model. A reference (<code>${BILLING_PW}</code>,
175
- <code>env:BILLING_PW</code>, <code>%BILLING_PW%</code>) is recorded as a secret name; a literal value is replaced with <code>&lt;redacted&gt;</code></li>
181
+ <li>environments under <code>environments:</code> / <code>envs:</code>, as a list with a <code>name</code> each, or as top-level keys (<code>qa:</code>, <code>uat:</code>); or one file per environment with <code>environments.dir</code> in forgeqe.yaml;</li>
182
+ <li>a <code>common:</code> / <code>defaults:</code> / <code>shared:</code> block merged into each environment;</li>
183
+ <li>any <code>http(s)</code> URL becomes a web app (an API when its key or path says api); an absolute <code>.exe</code> becomes a desktop app (with a sibling <code>args</code>); other values become variables;</li>
184
+ <li>secrets: keys like <code>password</code>, <code>token</code> or <code>api_key</code> are never shown to a model. A reference (<code>${BILLING_PW}</code>, <code>env:BILLING_PW</code>, <code>%BILLING_PW%</code>) is recorded as a secret name; a literal value is replaced with <code>&lt;redacted&gt;</code>.</li>
176
185
  </ul>
177
186
  <div class="code"><div class="code-bar"><i></i><i></i><i></i><span>yaml</span><button class="copy-code" type="button">Copy</button></div><pre class="lines"><code><span class="ln"><span class="cmd">common: { company: Contoso }
178
187
  </span></span><span class="ln"><span class="cmd">qa:
@@ -183,26 +192,30 @@ or one file per environment with <code>environments.dir</code> in forgeqe.yaml</
183
192
  </span></span><span class="ln"><span class="cmd">uat:
184
193
  </span></span><span class="ln"><span class="cmd"> url: https://uat.shop.example.com
185
194
  </span></span></code></pre></div>
186
- <p>ForgeQE's agent also sees the environment as written (secrets replaced), so a request can name anything in it (&quot;log in
187
- as the <code>admin_user</code> of UAT&quot;).</p>
188
- <p><strong>Link, import or paste the team's file.</strong> An environment can be read from a YAML file the team keeps elsewhere in the
189
- repository, as it is now each run (<code>file:</code>, with this project's <code>description</code> and <code>data</code> added), or converted once
190
- into ForgeQE's layout:</p>
195
+ <p>ForgeQE's agent also sees the environment as written (secrets replaced), so a request can name anything in it (&quot;log in as the <code>admin_user</code> of UAT&quot;).</p>
196
+ <p><strong>Link, import or paste the team's file.</strong> An environment can be read from a YAML file the team keeps elsewhere in the repository, in two ways:</p>
197
+ <ul>
198
+ <li><strong>Linked:</strong> read as it is on every run (<code>file:</code>, with this project's <code>description</code> and <code>data</code> added). A file of several environments gives the one of that name.</li>
199
+ <li><strong>Imported:</strong> converted once into ForgeQE's layout.</li>
200
+ </ul>
201
+ <p>A secret value written in the file is never copied: it is listed so you can move it to an environment variable. A linked environment looks like this in <code>env.yaml</code>:</p>
191
202
  <div class="code"><div class="code-bar"><i></i><i></i><i></i><span>yaml</span><button class="copy-code" type="button">Copy</button></div><pre class="lines"><code><span class="ln"><span class="cmd">environments:
192
203
  </span></span><span class="ln"><span class="cmd"> qa:
193
204
  </span></span><span class="ln ln--pair"><span class="cmd"> file: config/qa-portal.yaml</span><span class="pad"> </span><span class="cm"><span class="h">#</span> linked: read every run, any layout; a file of several picks qa from it
194
205
  </span></span></code></pre></div>
206
+ <div class="views" data-views><div class="view-tabs" role="tablist" aria-label="Show the steps for" hidden><button type="button" role="tab" class="view-tab" data-view="web" aria-selected="true">Web app</button><button type="button" role="tab" class="view-tab" data-view="terminal" aria-selected="false">Terminal</button></div><div class="view-panel" role="tabpanel" data-view="web"><p class="view-label"><strong>Web app</strong></p>
207
+ <ol>
208
+ <li>Open <strong>Settings › Environments</strong>.</li>
209
+ <li>Press <strong>Add</strong> for a new environment, or edit one already there.</li>
210
+ <li>Pick how to bring the YAML in: <strong>Paste</strong>, <strong>Import a file</strong> or <strong>Link a project file</strong>.</li>
211
+ </ol>
212
+ </div><div class="view-panel" role="tabpanel" data-view="terminal"><p class="view-label"><strong>Terminal</strong></p>
195
213
  <div class="code"><div class="code-bar"><i></i><i></i><i></i><span>bash</span><button class="copy-code" type="button">Copy</button></div><pre class="lines"><code><span class="ln ln--pair"><span class="cmd">forgeqe env import config/uat.yaml</span><span class="pad"> </span><span class="cm"><span class="h">#</span> shows it in ForgeQE's layout
196
214
  </span></span><span class="ln ln--pair"><span class="cmd">forgeqe env import config/uat.yaml --write</span><span class="pad"> </span><span class="cm"><span class="h">#</span> adds it (--name NAME, --replace to overwrite one already there)
197
215
  </span></span><span class="ln ln--pair"><span class="cmd">forgeqe env link qa config/qa-portal.yaml</span><span class="pad"> </span><span class="cm"><span class="h">#</span> links it
198
216
  </span></span></code></pre></div>
199
- <p>In the shell, <code>/env import config/uat.yaml</code> shows the conversion and <code>/env import config/uat.yaml --write</code> adds it. In
200
- the web app, Settings › Environments › Add or Edit has <strong>Paste</strong>, <strong>Import a file</strong> and <strong>Link a project file</strong>. A
201
- secret value written in the file is never copied: it is listed so you can move it to an environment variable.</p>
202
- <p><strong>Test data per environment.</strong> The same test often needs other rows in each environment: QA's customers are not UAT's.
203
- List the files under <code>data:</code> (CSV, JSON, YAML, Excel, XML, SQL or text, inside the project and not in a hidden folder);
204
- the tests ForgeQE runs read each one's absolute path from <code>FORGEQE_DATA_&lt;NAME&gt;</code>, and the agents are told to read it
205
- from there, never from a fixed path.</p>
217
+ <p>In the shell, <code>/env import config/uat.yaml</code> shows the conversion and <code>/env import config/uat.yaml --write</code> adds it.</p>
218
+ </div></div><p><strong>Test data per environment.</strong> The same test often needs other rows in each environment: QA's customers are not UAT's. List the files under <code>data:</code> (CSV, JSON, YAML, Excel, XML, SQL or text, inside the project and not in a hidden folder). The tests ForgeQE runs read each one's absolute path from <code>FORGEQE_DATA_&lt;NAME&gt;</code>, and the agents are told to read it from there, never from a fixed path.</p>
206
219
  <div class="code"><div class="code-bar"><i></i><i></i><i></i><span>yaml</span><button class="copy-code" type="button">Copy</button></div><pre class="lines"><code><span class="ln"><span class="cmd">environments:
207
220
  </span></span><span class="ln"><span class="cmd"> qa:
208
221
  </span></span><span class="ln"><span class="cmd"> data:
@@ -212,10 +225,8 @@ from there, never from a fixed path.</p>
212
225
  </span></span><span class="ln"><span class="cmd"> data:
213
226
  </span></span><span class="ln"><span class="cmd"> customers: test-data/uat/customers.csv
214
227
  </span></span></code></pre></div>
215
- <p><code>forgeqe apps</code> and <code>/env</code> list each environment's data files, and mark one that is not there yet.</p>
216
- <p><strong>Cloud accounts per environment.</strong> QA's resources are in one Azure subscription, AWS account or Google Cloud project,
217
- UAT's in another. Name them under <code>cloud:</code>, so the agents look in the right account and tests read it instead of a fixed
218
- id:</p>
228
+ <p><code>forgeqe apps</code>, <code>/env</code> and <strong>Settings › Environments</strong> list each environment's data files, and mark one that is not there yet.</p>
229
+ <p><strong>Cloud accounts per environment.</strong> QA's resources are in one Azure subscription, AWS account or Google Cloud project, UAT's in another. Name them under <code>cloud:</code> (in <strong>Settings › Environments</strong> too), so the agents look in the right account and tests read it instead of a fixed id:</p>
219
230
  <div class="code"><div class="code-bar"><i></i><i></i><i></i><span>yaml</span><button class="copy-code" type="button">Copy</button></div><pre class="lines"><code><span class="ln"><span class="cmd">environments:
220
231
  </span></span><span class="ln"><span class="cmd"> qa:
221
232
  </span></span><span class="ln"><span class="cmd"> cloud:
@@ -223,19 +234,27 @@ id:</p>
223
234
  </span></span><span class="ln ln--pair"><span class="cmd"> aws: { account: &quot;123456789012&quot;, region: eu-west-1, profile: shop-qa }</span><span class="pad"> </span><span class="cm"><span class="h">#</span> the account in quotes: YAML drops a leading 0
224
235
  </span></span><span class="ln"><span class="cmd"> gcp: { project: shop-qa-123, region: europe-west1 }
225
236
  </span></span></code></pre></div>
226
- <p>Each setting is an identifier in its own shape (a GUID, a 12-digit account, a region, a profile's or project's name), and
227
- nothing else is read: a key like <code>client_secret</code> or <code>access_key</code> stops the file loading. ForgeQE signs in to no cloud
228
- from env.yaml. The SDKs use their own default credential chain (<code>az login</code>, a profile or role, Application Default
229
- Credentials), and ForgeQE leaves <code>AZURE_*</code>, <code>AWS_*</code> and <code>GOOGLE_*</code> as your shell has them. Tests read
230
- <code>FORGEQE_CLOUD_AZURE_SUBSCRIPTION_ID</code>, <code>_AZURE_TENANT_ID</code>, <code>_AZURE_RESOURCE_GROUP</code>, <code>FORGEQE_CLOUD_AWS_ACCOUNT_ID</code>,
231
- <code>_AWS_REGION</code>, <code>_AWS_PROFILE</code>, <code>FORGEQE_CLOUD_GCP_PROJECT</code> and <code>_GCP_REGION</code>. A test environment that names the same
232
- subscription, account or project as one named like production (<code>prod</code>, <code>live</code>) is reported, since a change made while
233
- testing it lands in production's. <code>forgeqe apps</code> lists the active environment's accounts.</p>
234
- <p>Pick the environment with <code>--env uat</code> on any command (<code>forgeqe start</code>, <code>run</code>, <code>suite</code>, <code>monitor</code>, <code>mcp</code>, …) or
235
- <code>FORGEQE_ENV=uat</code>; otherwise <code>default</code> is used. In the shell, <code>/env</code> lists them and <code>/env uat</code> switches; asked in plain
236
- language (&quot;from now on, use UAT&quot;), ForgeQE's agent switches with <code>use_environment</code>, and any single request can name an
237
- environment (&quot;run the checkout tests in UAT&quot;): each test tool takes an <code>env</code> for that call only. <code>forgeqe apps</code> lists the environments and the active one's apps.</p>
238
- <p>What each agent gets from the active environment:</p>
237
+ <ul>
238
+ <li><strong>Identifiers only.</strong> Each setting is an identifier in its own shape (a GUID, a 12-digit account, a region, a profile's or project's name), and nothing else is read: a key like <code>client_secret</code> or <code>access_key</code> stops the file loading.</li>
239
+ <li><strong>No sign-in from env.yaml.</strong> The cloud tools use their own default credential chain (<code>az login</code>, a profile or role, Application Default Credentials), and ForgeQE leaves <code>AZURE_*</code>, <code>AWS_*</code> and <code>GOOGLE_*</code> as your shell has them.</li>
240
+ <li><strong>What tests read:</strong> <code>FORGEQE_CLOUD_AZURE_SUBSCRIPTION_ID</code>, <code>_AZURE_TENANT_ID</code>, <code>_AZURE_RESOURCE_GROUP</code>, <code>FORGEQE_CLOUD_AWS_ACCOUNT_ID</code>, <code>_AWS_REGION</code>, <code>_AWS_PROFILE</code>, <code>FORGEQE_CLOUD_GCP_PROJECT</code> and <code>_GCP_REGION</code>.</li>
241
+ <li><strong>Production's accounts.</strong> A test environment that names the same subscription, account or project as one named like production (<code>prod</code>, <code>live</code>) is reported, since a change made while testing it lands in production's.</li>
242
+ </ul>
243
+ <p><code>forgeqe apps</code> lists the active environment's accounts.</p>
244
+ <p><strong>Picking the environment.</strong> Without a pick, <code>default</code> is used. Any single request can also name an environment (&quot;run the checkout tests in UAT&quot;): it applies to that call only.</p>
245
+ <div class="views" data-views><div class="view-tabs" role="tablist" aria-label="Show the steps for" hidden><button type="button" role="tab" class="view-tab" data-view="web" aria-selected="true">Web app</button><button type="button" role="tab" class="view-tab" data-view="terminal" aria-selected="false">Terminal</button></div><div class="view-panel" role="tabpanel" data-view="web"><p class="view-label"><strong>Web app</strong></p>
246
+ <ol>
247
+ <li>Open <strong>Settings › Environments</strong>.</li>
248
+ <li>Pick the <strong>Active</strong> environment.</li>
249
+ </ol>
250
+ <p>Or ask in a chat: &quot;from now on, use UAT&quot;.</p>
251
+ </div><div class="view-panel" role="tabpanel" data-view="terminal"><p class="view-label"><strong>Terminal</strong></p>
252
+ <div class="code"><div class="code-bar"><i></i><i></i><i></i><span>bash</span><button class="copy-code" type="button">Copy</button></div><pre class="lines"><code><span class="ln ln--pair"><span class="cmd">forgeqe apps</span><span class="pad"> </span><span class="cm"><span class="h">#</span> the environments, and the active one's apps
253
+ </span></span><span class="ln ln--pair"><span class="cmd">forgeqe suite cases.yaml --env uat</span><span class="pad"> </span><span class="cm"><span class="h">#</span> --env on any command: start, run, suite, monitor, mcp, …
254
+ </span></span><span class="ln ln--pair"><span class="cmd">FORGEQE_ENV=uat forgeqe run &quot;…&quot;</span><span class="pad"> </span><span class="cm"><span class="h">#</span> or the variable
255
+ </span></span></code></pre></div>
256
+ <p>In the shell, <code>/env</code> lists the environments and <code>/env uat</code> switches; &quot;from now on, use UAT&quot; works too.</p>
257
+ </div></div><p><strong>What each agent gets from the active environment.</strong></p>
239
258
  <div class="tbl tbl--cols-2"><table>
240
259
  <thead>
241
260
  <tr><th>Agent</th><th>What it uses</th></tr>
@@ -248,32 +267,29 @@ environment (&quot;run the checkout tests in UAT&quot;): each test tool takes an
248
267
  <tr><td data-label="Agent">Quill, the healer, the reviewer</td><td data-label="What it uses">Write tests that read <code>FORGEQE_APP_&lt;APP&gt;_URL</code> (or the repository's own settings), never a fixed environment URL; the reviewer flags one</td></tr>
249
268
  <tr><td data-label="Agent">Tests ForgeQE runs, pack pipelines</td><td data-label="What it uses"><code>FORGEQE_ACTIVE_ENV</code>, <code>FORGEQE_APP_&lt;APP&gt;_URL</code> / <code>_PATH</code> / <code>_ID</code>, <code>FORGEQE_VAR_&lt;NAME&gt;</code>, <code>FORGEQE_DATA_&lt;NAME&gt;</code>, <code>FORGEQE_CLOUD_*</code> (pipelines written by <code>forgeqe pack pipeline init</code> take them as the <code>env_vars</code> input)</td></tr>
250
269
  <tr><td data-label="Agent">Reports</td><td data-label="What it uses">Every run's report names the test environment</td></tr>
251
- <tr><td data-label="Agent">Test cases (<code>run_test_cases</code>, <code>forgeqe suite</code>)</td><td data-label="What it uses"><code>{{var.NAME}}</code> and <code>{{app.NAME}}</code> in a case's title, steps and expected results become the environment's variable and the app's URL (below); a case with no address of its own starts at the web app its first step, preconditions or title names first, else at <code>start_app</code>; <code>run_test_cases</code> takes <code>app</code> to start every case at one</td></tr>
270
+ <tr><td data-label="Agent">Test cases (chat, <code>forgeqe suite</code>)</td><td data-label="What it uses"><code>{{var.NAME}}</code> and <code>{{app.NAME}}</code> in a case's title, steps and expected results become the environment's variable and the app's URL (below). A case with no address of its own starts at the web app its first step, preconditions or title names first, else at <code>start_app</code>. Ask the agent to start every case at one app to override that</td></tr>
252
271
  </tbody>
253
272
  </table></div>
254
- <p>A test case can name the active environment's values, so one case runs in every environment:</p>
273
+ <p><strong>Values in a test case.</strong> A test case can name the active environment's values, so one case runs in every environment:</p>
255
274
  <div class="code"><div class="code-bar"><i></i><i></i><i></i><span>yaml</span><button class="copy-code" type="button">Copy</button></div><pre class="lines"><code><span class="ln"><span class="cmd">- title: Book an appointment for {{var.employer_name}}
256
275
  </span></span><span class="ln"><span class="cmd"> steps:
257
276
  </span></span><span class="ln"><span class="cmd"> - action: Open {{app.CorporatePortal}} and sign in
258
277
  </span></span><span class="ln"><span class="cmd"> expected: The dashboard shows {{var.employer_name}}
259
278
  </span></span></code></pre></div>
260
- <p><code>{{var.NAME}}</code> takes a value of <code>variables:</code> and <code>{{app.NAME}}</code> (or <code>{{app.NAME.url}}</code>) a web or API app's URL, the name
261
- written any way (&quot;Corporate Portal&quot; for <code>CorporatePortal</code>). A name the environment does not have, a desktop app, or a
262
- secret's name is left as written and listed in the run's log: secrets are never put into a case.</p>
263
- <p>Before a browser run or a suite starts, ForgeQE checks what the request and its test cases name against env.yaml and
264
- forgeqe.yaml: <code>{{var.…}}</code> and <code>{{app.…}}</code>, test users named like <code>withdocs_user</code>, saved logins (their variables set, and
265
- their <code>domains</code> covering where the run opens) and <code>&lt;secret&gt;…&lt;/secret&gt;</code> placeholders. Anything missing is listed, with its
266
- fix, before the browser opens: stop and give the values (credentials become a login for the session, never part of a
267
- goal), or run anyway. With nobody to ask, nothing runs until the agent has asked you.</p>
268
- <p>Edit env.yaml or forgeqe.yaml during a chat (the web app's or the terminal's) and the next message reads them again, with
269
- the conversation kept; a file that no longer loads keeps the chat on what it read before, and says why.</p>
270
- <p>There is no scenario file to write: ask in plain language (&quot;place an order in the shop, then check its invoice in
271
- Billing, in UAT&quot;) and ForgeQE's agent picks the apps from their descriptions, shows the plan, runs each step with the
272
- right engine, and carries values from one app to the next.</p>
279
+ <p><code>{{var.NAME}}</code> takes a value of <code>variables:</code>, and <code>{{app.NAME}}</code> (or <code>{{app.NAME.url}}</code>) a web or API app's URL. The name can be written any way (&quot;Corporate Portal&quot; for <code>CorporatePortal</code>). A name the environment does not have, a desktop app, or a secret's name is left as written and listed in the run's log: secrets are never put into a case.</p>
280
+ <p><strong>Checked before a run.</strong> Before a browser run or a suite starts, ForgeQE checks what the request and its test cases name against env.yaml and forgeqe.yaml:</p>
281
+ <ul>
282
+ <li><code>{{var.…}}</code> and <code>{{app.…}}</code>;</li>
283
+ <li>test users named like <code>withdocs_user</code>;</li>
284
+ <li>saved logins (their variables set, and their <code>domains</code> covering where the run opens);</li>
285
+ <li><code>&lt;secret&gt;…&lt;/secret&gt;</code> placeholders.</li>
286
+ </ul>
287
+ <p>Anything missing is listed, with its fix, before the browser opens. Stop and give the values (credentials become a login for the session, never part of a goal), or run anyway. With nobody to ask, nothing runs until the agent has asked you.</p>
288
+ <p><strong>Edits during a chat.</strong> Edit env.yaml or forgeqe.yaml during a chat (the web app's or the terminal's) and the next message reads them again, with the conversation kept. A file that no longer loads keeps the chat on what it read before, and says why.</p>
289
+ <p><strong>Scenarios across apps.</strong> There is no scenario file to write. Ask in plain language (&quot;place an order in the shop, then check its invoice in Billing, in UAT&quot;) and ForgeQE's agent picks the apps from their descriptions, shows the plan, runs each step with the right agent, and carries values from one app to the next.</p>
273
290
  </div>
274
291
  </section>
275
292
  </div>
276
- </article>
277
293
  <article class="spec feat" id="cap-generated-code">
278
294
  <div class="hd"><span class="mono">Setup</span><h3>What ForgeQE wrote</h3></div>
279
295
  <p class="ds">Says how much of the code ForgeQE wrote is still in the repository, and gives the trailer and footer that mark a commit message or pull request description covering code it wrote. Works with any repository, whatever system the team uses.</p>
@@ -282,14 +298,34 @@ right engine, and carries values from one app to the next.</p>
282
298
  <div class="fact"><span class="mono">What it needs</span><p class="muted">Nothing beyond ForgeQE itself.</p></div>
283
299
  <div class="fact"><span class="mono">Tools</span><p class="tools"><code>generated_attribution</code></p></div>
284
300
  </div>
285
- <div class="detail"><span class="mono">In detail</span>
286
- <section class="doc" id="doc-how_to_use-generated-code">
301
+
302
+ </article>
303
+ <div class="feat-detail"><section class="doc" data-topic id="doc-how_to_use-generated-code">
287
304
  <h4>Generated code</h4>
288
- <div class="prose"><p><strong>Generated code.</strong> What ForgeQE writes is marked, so the team can see it and measure it. A file ForgeQE created starts with one line in that language's comment, such as <code>// Generated with ForgeQE · fq:k3x7m2qa4bdi · run 20261019-162847</code>; the <code>fq:</code> id is a hash of the file's contents without that line, so it shows whether the file was changed since (<code>code.header: false</code> leaves the line out; a JSON file never gets one). Files it only edited get no header. Every file it created or edited is recorded per run in <code>.forgeqe/generated.jsonl</code> (commit it with the code): the lines it added, as short hashes, never their text. <code>forgeqe generated</code> (or <code>/generated</code> in the shell, <code>--json</code> for a pipeline) says how many lines ForgeQE wrote, how many are still in the code, its share of the files it touched, and which created files are as it wrote them. Commit messages ForgeQE's agent writes end with a <code>Generated-by: ForgeQE (fq:…)</code> trailer, and its pull request descriptions with a line naming the runs' <code>fq:</code> ids and how much they wrote. The ids are plain hashes anyone can recompute: they show what ForgeQE wrote, not who owns the code.</p>
289
- </div>
305
+ <div class="prose"><p><strong>Generated code.</strong> What ForgeQE writes is marked, so the team can see it and measure it.</p>
306
+ <ul>
307
+ <li>A file ForgeQE created starts with one line in that language's comment, such as
308
+ <code>// Generated with ForgeQE · fq:k3x7m2qa4bdi · run 20261019-162847</code>. The <code>fq:</code> id is a hash of the file's contents
309
+ without that line, so it shows whether the file was changed since. To leave the line out, set <code>code.header: false</code>
310
+ (<strong>Settings › Code</strong>, <strong>Mark generated files</strong>); a JSON file never gets one. Files it only edited get no header.</li>
311
+ <li>Every file it created or edited is recorded per run in <code>.forgeqe/generated.jsonl</code> (commit it with the code): the lines
312
+ it added, as short hashes, never their text.</li>
313
+ <li>Commit messages ForgeQE's agent writes end with a <code>Generated-by: ForgeQE (fq:…)</code> trailer, and its pull request
314
+ descriptions with a line naming the runs' <code>fq:</code> ids and how much they wrote.</li>
315
+ <li>The ids are plain hashes anyone can recompute: they show what ForgeQE wrote, not who owns the code.</li>
316
+ </ul>
317
+ <p><strong>Seeing how much is still there.</strong> You see how many lines ForgeQE wrote, how many are still in the code, its share of
318
+ the files it touched, and which created files are as it wrote them.</p>
319
+ <div class="views" data-views><div class="view-tabs" role="tablist" aria-label="Show the steps for" hidden><button type="button" role="tab" class="view-tab" data-view="web" aria-selected="true">Web app</button><button type="button" role="tab" class="view-tab" data-view="terminal" aria-selected="false">Terminal</button></div><div class="view-panel" role="tabpanel" data-view="web"><p class="view-label"><strong>Web app</strong></p>
320
+ <ol>
321
+ <li>Open <strong>Settings › Generated code</strong>.</li>
322
+ </ol>
323
+ </div><div class="view-panel" role="tabpanel" data-view="terminal"><p class="view-label"><strong>Terminal</strong></p>
324
+ <div class="code"><div class="code-bar"><i></i><i></i><i></i><span>bash</span><button class="copy-code" type="button">Copy</button></div><pre class="lines"><code><span class="ln ln--pair"><span class="cmd">forgeqe generated</span><span class="pad"> </span><span class="cm"><span class="h">#</span> or /generated in the shell; --json for a pipeline
325
+ </span></span></code></pre></div>
326
+ </div></div></div>
290
327
  </section>
291
328
  </div>
292
- </article>
293
329
  <article class="spec feat" id="cap-forgeqe-commands">
294
330
  <div class="hd"><span class="mono">Setup</span><h3>Every forgeqe command from the shell</h3></div>
295
331
  <p class="ds">Runs the forgeqe commands no other tool covers when the user asks in words: the context budget, guardrails, prompts (show, diff, check, reset), the domain eval, skills on or off, session logs, saved API sets and packs, pack pipelines, the BI site, a test notification, desktop and mobile doctor and validate, and updating ForgeQE. Reading commands run at once; the others are shown and asked first.</p>
@@ -298,12 +334,13 @@ right engine, and carries values from one app to the next.</p>
298
334
  <div class="fact"><span class="mono">What it needs</span><p class="muted">Nothing beyond ForgeQE itself.</p></div>
299
335
  <div class="fact"><span class="mono">Tools</span><p class="tools"><code>forgeqe_command</code></p></div>
300
336
  </div>
301
- <div class="detail"><span class="mono">In detail</span>
302
- <section class="doc" id="doc-how_to_use-15-commands-cheat-sheet">
337
+
338
+ </article>
339
+ <div class="feat-detail"><section class="doc" data-topic id="doc-how_to_use-15-commands-cheat-sheet">
303
340
  <h4>Commands cheat sheet</h4>
304
- <div class="prose"><p>Every command below also works from the shell in plain words (&quot;show the context budget&quot;, &quot;diff the brain prompt&quot;,
305
- &quot;upload builds/app.apk to TestMu for the courier app&quot;). ForgeQE's agent uses the tool made for it, or
306
- <code>forgeqe_command</code> for the commands no other tool covers. A command that only reads runs at once. One that changes
341
+ <div class="prose"><p>Using the web app? Every page and what it does is in <a href="../web-app/index.html">docs/WEB_APP.md</a>.</p>
342
+ <p>Every command below also works from the shell in plain words (&quot;show the context budget&quot;, &quot;diff the brain prompt&quot;,
343
+ &quot;upload builds/app.apk to TestMu for the courier app&quot;). A command that only reads runs at once. One that changes
307
344
  files, installs, costs model calls, or sends anything out shows you the exact command and runs only when you agree.
308
345
  Signing in stays <code>/auth</code> and <code>forgeqe login</code>; <code>forgeqe bi export</code> and <code>forgeqe logs bundle</code> are <code>/report export</code> and
309
346
  <code>/logs</code> there.</p>
@@ -314,7 +351,7 @@ Signing in stays <code>/auth</code> and <code>forgeqe login</code>; <code>forgeq
314
351
  </thead>
315
352
  <tbody>
316
353
  <tr><td data-label="Command"><code>forgeqe init [--dir DIR] [--global] [--force] [--profile NAME]</code></td><td data-label="What it does">Write <code>forgeqe.yaml</code>, <code>llms.json</code>, <code>env.yaml</code>, and <code>.forgeqe/</code> with the prompts, skills, and product knowledge templates</td></tr>
317
- <tr><td data-label="Command"><code>forgeqe setup [--force]</code></td><td data-label="What it does">Download the agent runtime and the engine now, and Appium when mobile apps run on this computer (<code>--force</code> rebuilds the engine)</td></tr>
354
+ <tr><td data-label="Command"><code>forgeqe setup [--force]</code></td><td data-label="What it does">Download everything ForgeQE runs on now, and Appium when mobile apps run on this computer (<code>--force</code> sets the browser part up again)</td></tr>
318
355
  <tr><td data-label="Command"><code>forgeqe doctor</code></td><td data-label="What it does">Whether this computer and the network (proxy, inspected HTTPS, firewall) let ForgeQE reach what it needs</td></tr>
319
356
  <tr><td data-label="Command"><code>forgeqe doctor --packages</code></td><td data-label="What it does">Every package ForgeQE installs on this computer, and which are missing or out of date</td></tr>
320
357
  <tr><td data-label="Command"><code>forgeqe doctor browser [--headless]</code></td><td data-label="What it does">Start the local browser each way ForgeQE can, and write a report of what stops it</td></tr>
@@ -330,7 +367,7 @@ Signing in stays <code>/auth</code> and <code>forgeqe login</code>; <code>forgeq
330
367
  <tr><td data-label="Command"><code>forgeqe prompts [list] | show|diff|reset &lt;name&gt; | check [name] | eval</code></td><td data-label="What it does">Every agent prompt and where it comes from; compare, reset, check, evaluate</td></tr>
331
368
  <tr><td data-label="Command"><code>forgeqe apps [--env NAME]</code>, <code>forgeqe env import &lt;file.yaml&gt; [--write]</code>, <code>forgeqe env link &lt;name&gt; &lt;file.yaml&gt;</code></td><td data-label="What it does">The test environments in env.yaml and their apps; an environment from the team's own YAML (see <a href="#doc-how_to_use-environments-and-apps">Environments and apps</a>)</td></tr>
332
369
  <tr><td data-label="Command"><code>forgeqe knowledge [build|status|search|node|impact]</code></td><td data-label="What it does">The product knowledge graph (see <a href="#doc-how_to_use-product-knowledge-graph">Product knowledge graph</a>)</td></tr>
333
- <tr><td data-label="Command"><code>forgeqe graph [status|setup [--yes]|sync|search &quot;&lt;words&gt;&quot;|stop|reset]</code></td><td data-label="What it does">ForgeQE's Neo4j for the product graph and BASAL's scenario graphs (see <a href="#doc-how_to_use-product-knowledge-graph">Product knowledge graph</a>)</td></tr>
370
+ <tr><td data-label="Command"><code>forgeqe graph [status|setup [--yes]|sync|search &quot;&lt;words&gt;&quot;|stop|reset]</code></td><td data-label="What it does">The graph store for the product graph and BASAL's scenario graphs (see <a href="#doc-how_to_use-product-knowledge-graph">Product knowledge graph</a>)</td></tr>
334
371
  <tr><td data-label="Command"><code>forgeqe auth login [system|NAME] [--no-browser]</code></td><td data-label="What it does">Sign in to Azure DevOps, GitHub, GitHub Copilot (<code>copilot</code>), Jira, Confluence, TestRail, Zephyr, qTest, Xray, BrowserStack, TestMu AI, GitLab, Postman, Sentry, Azure or Dataverse in the browser, or save one secret, in the system's credential store</td></tr>
335
372
  <tr><td data-label="Command"><code>forgeqe auth [status]</code>, <code>forgeqe auth logout &lt;system&gt;</code></td><td data-label="What it does">What is signed in; forget a sign-in</td></tr>
336
373
  </tbody>
@@ -348,7 +385,7 @@ Signing in stays <code>/auth</code> and <code>forgeqe login</code>; <code>forgeq
348
385
  <tr><td data-label="Command"><code>forgeqe suite &lt;source...&gt; [--parallel N] [--skill NAME]</code></td><td data-label="What it does">Run test cases the same way every time (pipelines)</td></tr>
349
386
  <tr><td data-label="Command"><code>forgeqe cases &lt;source...&gt;</code></td><td data-label="What it does">List the cases a source gives, without running them</td></tr>
350
387
  <tr><td data-label="Command"><code>forgeqe bi [build] [--from FILE|DIR]... [--static|--evidence]</code></td><td data-label="What it does">The team report of every run here and the shared bundles (see <a href="../area-release/index.html#doc-how_to_use-team-report">Team report</a>)</td></tr>
351
- <tr><td data-label="Command"><code>forgeqe bi init|sync</code></td><td data-label="What it does">Scaffold the Evidence project; refresh its datasets and pages without building</td></tr>
388
+ <tr><td data-label="Command"><code>forgeqe bi init|sync</code></td><td data-label="What it does">Set up the team report's project; refresh its datasets and pages without building</td></tr>
352
389
  <tr><td data-label="Command"><code>forgeqe bi export [--out FILE|DIR]</code></td><td data-label="What it does">This machine's runs and readiness reports in one file to share</td></tr>
353
390
  <tr><td data-label="Command"><code>forgeqe refine &quot;&lt;request&gt;&quot; [--json]</code></td><td data-label="What it does">The request made precise against what ForgeQE knows here; runs nothing</td></tr>
354
391
  <tr><td data-label="Command"><code>forgeqe agent list | new | try | approve | run | approvals …</code></td><td data-label="What it does">The team's custom agents (see <a href="../area-operations/index.html#doc-how_to_use-custom-agents">Custom agents</a>)</td></tr>
@@ -445,7 +482,7 @@ Signing in stays <code>/auth</code> and <code>forgeqe login</code>; <code>forgeq
445
482
  <tr><td data-label="Input"><code>/rerun [last|run]</code></td><td data-label="Action">Run a passed run again as recorded, without ForgeQE's agent</td></tr>
446
483
  <tr><td data-label="Input"><code>/headed on|off</code></td><td data-label="Action">Show the browser window</td></tr>
447
484
  <tr><td data-label="Input"><code>/theme light|dark|auto</code></td><td data-label="Action">Colours for a light or a dark terminal. ForgeQE asks the terminal which it is when it starts and follows it when it changes (auto); a terminal that does not say is drawn dark. <code>FORGEQE_THEME=light</code> (or <code>dark</code>) sets it at start; <code>/theme</code> alone says which is in use</td></tr>
448
- <tr><td data-label="Input"><code>/details [on|off]</code></td><td data-label="Action">Show everything the agents do while they work: the browser agent's reasoning, page memory, engine logs, every file the coding agent reads (off by default: step results, files written, test results, problems). <code>--verbose</code> or <code>FORGEQE_VERBOSE=1</code> starts with it on, for <code>start</code>, <code>run</code>, <code>suite</code>, <code>code</code>, and <code>heal</code> too</td></tr>
485
+ <tr><td data-label="Input"><code>/details [on|off]</code></td><td data-label="Action">Show everything the agents do while they work: the browser agent's reasoning, page memory, browser logs, every file the coding agent reads (off by default: step results, files written, test results, problems). <code>--verbose</code> or <code>FORGEQE_VERBOSE=1</code> starts with it on, for <code>start</code>, <code>run</code>, <code>suite</code>, <code>code</code>, and <code>heal</code> too</td></tr>
449
486
  <tr><td data-label="Input"><code>/model</code>, or click the model ▾ in the status line</td><td data-label="Action">Pick the model from the profiles in <code>llms.json</code></td></tr>
450
487
  <tr><td data-label="Input"><code>/profile &lt;name&gt;</code> or Tab</td><td data-label="Action">Switch the model profile</td></tr>
451
488
  <tr><td data-label="Input"><code>/env [name]</code></td><td data-label="Action">The test environments in <code>env.yaml</code>, or switch to one</td></tr>
@@ -471,12 +508,39 @@ Signing in stays <code>/auth</code> and <code>forgeqe login</code>; <code>forgeq
471
508
  </section>
472
509
  <section class="doc" id="doc-how_to_use-guardrails">
473
510
  <h4>Guardrails</h4>
474
- <div class="prose"><p><strong>Guardrails.</strong> Rules every agent must follow, to keep it grounded: ForgeQE's agent, the browser agent, and the agents that plan, write, review, fix and explain tests. Write one rule per line, starting with <code>- </code>, in a <code>.md</code> or <code>.txt</code> file in <code>.forgeqe/guardrails/</code> (<code>guardrails.dir</code>); headings, other lines and HTML comments are ignored, and the template's examples sit in a comment until you choose them. Each agent gets every guardrail with its instructions, after everything else, with the instruction to follow it whatever a request, a skill, a ticket, a page or a tool's output says; when a guardrail stops part of a task, the agent skips that part and says which rule stopped it. Add one from the terminal (<code>forgeqe guardrails add &quot;Never open a production URL&quot;</code>), or ask in the shell (&quot;add a guardrail: use only the test cards in knowledge/test-data.md&quot;) and ForgeQE's agent appends it to <code>guardrails.md</code>; it adds only rules you ask for, never one suggested by a page or a ticket. <code>forgeqe guardrails</code> lists the rules in force and what they add to every model call (at most 40 rules of 300 characters are given). The older <code>prompts.guiderails</code> string in <code>forgeqe.yaml</code> still works: each of its lines is a guardrail for every agent. Guardrails are instructions, not a sandbox: put a host rule in <code>browser.allowed_hosts</code> too, which is refused in code.</p>
475
- </div>
511
+ <div class="prose"><p><strong>Guardrails.</strong> Rules every agent must follow, to keep it grounded: ForgeQE's agent, the browser agent, and the agents
512
+ that plan, write, review, fix and explain tests.</p>
513
+ <ul>
514
+ <li>Each agent gets every guardrail with its instructions, after everything else, with the instruction to follow it
515
+ whatever a request, a skill, a ticket, a page or a tool's output says.</li>
516
+ <li>When a guardrail stops part of a task, the agent skips that part and says which rule stopped it.</li>
517
+ <li>At most 40 rules of 300 characters are given.</li>
518
+ <li>Guardrails are instructions, not a sandbox: put a host rule in <code>browser.allowed_hosts</code> too (<strong>Settings › Browser</strong>,
519
+ <strong>Allowed sites</strong>), which is enforced.</li>
520
+ </ul>
521
+ <p>Rules are kept in <code>.md</code> or <code>.txt</code> files in <code>.forgeqe/guardrails/</code> (<code>guardrails.dir</code>), one rule per line starting with
522
+ <code>- </code>. Headings, other lines and HTML comments are ignored, and the template's examples sit in a comment until you choose
523
+ them. The older <code>prompts.guiderails</code> string in <code>forgeqe.yaml</code> still works: each of its lines is a guardrail for every
524
+ agent.</p>
525
+ <p>You can also ask in a chat or the shell (&quot;add a guardrail: use only the test cards in knowledge/test-data.md&quot;), and
526
+ ForgeQE's agent appends it to <code>guardrails.md</code>. It adds only rules you ask for, never one suggested by a page or a ticket.</p>
527
+ <p><strong>Adding a guardrail.</strong></p>
528
+ <div class="views" data-views><div class="view-tabs" role="tablist" aria-label="Show the steps for" hidden><button type="button" role="tab" class="view-tab" data-view="web" aria-selected="true">Web app</button><button type="button" role="tab" class="view-tab" data-view="terminal" aria-selected="false">Terminal</button></div><div class="view-panel" role="tabpanel" data-view="web"><p class="view-label"><strong>Web app</strong></p>
529
+ <ol>
530
+ <li>Open <strong>Knowledge › Agent behaviour › Guardrails</strong>.</li>
531
+ <li><strong>All rules</strong> lists the rules in force; <strong>Guardrail files</strong> lists the files.</li>
532
+ <li>Press <strong>Add</strong>, write or upload the rules, and under <strong>Agents that follow it</strong> pick <strong>Every agent</strong> or <strong>Chosen
533
+ agents</strong>. Custom agents follow every guardrail.</li>
534
+ </ol>
535
+ </div><div class="view-panel" role="tabpanel" data-view="terminal"><p class="view-label"><strong>Terminal</strong></p>
536
+ <div class="code"><div class="code-bar"><i></i><i></i><i></i><span>bash</span><button class="copy-code" type="button">Copy</button></div><pre class="lines"><code><span class="ln ln--pair"><span class="cmd">forgeqe guardrails</span><span class="pad"> </span><span class="cm"><span class="h">#</span> the rules in force, and what they add to every model call
537
+ </span></span><span class="ln"><span class="cmd">forgeqe guardrails add &quot;Never open a production URL&quot;
538
+ </span></span></code></pre></div>
539
+ </div></div></div>
476
540
  </section>
477
541
  <section class="doc" id="doc-how_to_use-your-prompts-skills-and-product-knowledge">
478
542
  <h4>Your prompts, skills, and product knowledge</h4>
479
- <div class="prose"><p><code>init</code> also puts four folders in <code>.forgeqe/</code> to read, change, and commit:</p>
543
+ <div class="prose"><p>Setting up a project also puts four folders in <code>.forgeqe/</code> for you to read, change, and commit:</p>
480
544
  <div class="tbl tbl--cols-2"><table>
481
545
  <thead>
482
546
  <tr><th>Folder</th><th>What it holds</th></tr>
@@ -488,9 +552,37 @@ Signing in stays <code>/auth</code> and <code>forgeqe login</code>; <code>forgeq
488
552
  <tr><td data-label="Folder"><code>.forgeqe/guardrails/</code></td><td data-label="What it holds">Your guardrails: rules every agent must follow, one <code>- rule</code> line each (see <a href="#doc-how_to_use-guardrails">Guardrails</a>).</td></tr>
489
553
  </tbody>
490
554
  </table></div>
491
- <p><strong>Your copy or ForgeQE's.</strong> <code>.forgeqe-manifest.json</code> in each folder records what was copied. A copy you have not changed still counts as ForgeQE's, so it keeps getting ForgeQE's improvements when you update; once you edit it, yours is used. When ForgeQE's version changes after you edited yours, ForgeQE says so at start-up. Running <code>init</code> again adds what is missing and never overwrites an edited file (with <code>--force</code> it refreshes only unchanged copies).</p>
492
- <p><strong>Prompts.</strong> Each file has a short header (<code>name</code>, <code>description</code>, <code>used_by</code>, <code>kind</code>) and the prompt; <code>{{&gt; name}}</code> includes another prompt (<code>test-rules</code> is included in the test, reviewer, and healing prompts, so one edit changes all three). ForgeQE looks in <code>prompts.dir</code>, then <code>.forgeqe/prompts/</code>, then <code>~/.forgeqe/prompts/</code> (for every project), then its own. Changes take effect on the next run or session.</p>
493
- <p><strong>Your team's prompts.</strong> Instructions of your own for chosen agents go in <code>.forgeqe/prompts/team/&lt;name&gt;.md</code> (or <code>~/.forgeqe/prompts/team/</code> for every project; a name in the project wins). The header has <code>name</code>, <code>description</code>, and <code>for</code>: the agents' prompts it joins (<code>brain</code> for ForgeQE's agent, <code>test-agent</code> for Quill, <code>browser-extra</code> for the browser agent, and so on). Its text is added at the end of those prompts, under &quot;Your team's instructions&quot;, as written: it is not a template and includes nothing. The web app's Prompts page adds, edits and removes them, and shows each agent's whole prompt with them included; <code>forgeqe prompts show &lt;prompt&gt;</code> shows it in the terminal.</p>
555
+ <p><strong>Your copy or ForgeQE's.</strong> <code>.forgeqe-manifest.json</code> in each folder records what was copied.</p>
556
+ <ul>
557
+ <li>A copy you have not changed still counts as ForgeQE's, so it keeps getting ForgeQE's improvements when you update.</li>
558
+ <li>Once you edit it, yours is used. When ForgeQE's version changes after you edited yours, ForgeQE says so at start-up.</li>
559
+ <li>Running <code>forgeqe init</code> again adds what is missing and never overwrites an edited file (with <code>--force</code> it refreshes
560
+ only unchanged copies).</li>
561
+ </ul>
562
+ <p><strong>Prompts.</strong> Each prompt file has a short header (<code>name</code>, <code>description</code>, <code>used_by</code>, <code>kind</code>) and the prompt text.
563
+ <code>{{&gt; name}}</code> includes another prompt: <code>test-rules</code> is included in the test, reviewer and healing prompts, so one edit
564
+ changes all three. ForgeQE looks in <code>prompts.dir</code>, then <code>.forgeqe/prompts/</code>, then <code>~/.forgeqe/prompts/</code> (for every
565
+ project), then its own. Changes take effect on the next run or session.</p>
566
+ <p><strong>Reading and changing a prompt.</strong></p>
567
+ <div class="views" data-views><div class="view-tabs" role="tablist" aria-label="Show the steps for" hidden><button type="button" role="tab" class="view-tab" data-view="web" aria-selected="true">Web app</button><button type="button" role="tab" class="view-tab" data-view="terminal" aria-selected="false">Terminal</button></div><div class="view-panel" role="tabpanel" data-view="web"><p class="view-label"><strong>Web app</strong></p>
568
+ <ol>
569
+ <li>Open <strong>Knowledge › Agent behaviour › Prompts</strong>.</li>
570
+ <li>Under <strong>Show</strong>, pick <strong>All prompts</strong> or <strong>By agent</strong>, or use <strong>Find a prompt</strong>.</li>
571
+ <li>Open a prompt. Pick <strong>Read</strong> to see it as the agent gets it, or <strong>Edit</strong> to change it. <strong>Compare</strong> shows ForgeQE's own
572
+ version beside yours.</li>
573
+ <li>Press <strong>Save</strong>, or <strong>Reset</strong> to go back to ForgeQE's version.</li>
574
+ </ol>
575
+ </div><div class="view-panel" role="tabpanel" data-view="terminal"><p class="view-label"><strong>Terminal</strong></p>
576
+ <div class="code"><div class="code-bar"><i></i><i></i><i></i><span>bash</span><button class="copy-code" type="button">Copy</button></div><pre class="lines"><code><span class="ln ln--pair"><span class="cmd">forgeqe prompts</span><span class="pad"> </span><span class="cm"><span class="h">#</span> every prompt, what it is for, and where it comes from
577
+ </span></span><span class="ln ln--pair"><span class="cmd">forgeqe prompts show test-agent</span><span class="pad"> </span><span class="cm"><span class="h">#</span> the prompt as the agent gets it (includes expanded; --raw for the file)
578
+ </span></span><span class="ln ln--pair"><span class="cmd">forgeqe prompts diff test-rules</span><span class="pad"> </span><span class="cm"><span class="h">#</span> how your copy differs from ForgeQE's
579
+ </span></span><span class="ln ln--pair"><span class="cmd">forgeqe prompts reset test-rules</span><span class="pad"> </span><span class="cm"><span class="h">#</span> back to ForgeQE's (yours is kept as test-rules.md.bak)
580
+ </span></span></code></pre></div>
581
+ </div></div><p><strong>Your team's prompts.</strong> Instructions of your own for chosen agents go in <code>.forgeqe/prompts/team/&lt;name&gt;.md</code> (or
582
+ <code>~/.forgeqe/prompts/team/</code> for every project; a name in the project wins). The header has <code>name</code>, <code>description</code>, and
583
+ <code>for</code>: the agents' prompts it joins (<code>brain</code> for ForgeQE's agent, <code>test-agent</code> for Quill, <code>browser-extra</code> for the browser
584
+ agent, and so on). Its text is added at the end of those prompts, under &quot;Your team's instructions&quot;, as written: it is not
585
+ a template and includes nothing.</p>
494
586
  <div class="code"><div class="code-bar"><i></i><i></i><i></i><span>markdown</span><button class="copy-code" type="button">Copy</button></div><pre class="lines"><code><span class="ln"><span class="cmd">---
495
587
  </span></span><span class="ln"><span class="cmd">name: tag-work-items
496
588
  </span></span><span class="ln"><span class="cmd">description: &quot;Tests carry the work item they cover&quot;
@@ -499,16 +591,18 @@ Signing in stays <code>/auth</code> and <code>forgeqe login</code>; <code>forgeq
499
591
  </span></span><span class="ln"><span class="cmd">Tag every test with the Azure DevOps work item it covers.
500
592
  </span></span><span class="ln"><span class="cmd">If the request names no work item, ask for it.
501
593
  </span></span></code></pre></div>
502
- <div class="code"><div class="code-bar"><i></i><i></i><i></i><span>bash</span><button class="copy-code" type="button">Copy</button></div><pre class="lines"><code><span class="ln ln--pair"><span class="cmd">forgeqe prompts</span><span class="pad"> </span><span class="cm"><span class="h">#</span> every prompt, what it is for, and where it comes from
503
- </span></span><span class="ln ln--pair"><span class="cmd">forgeqe prompts show test-agent</span><span class="pad"> </span><span class="cm"><span class="h">#</span> the prompt as the agent gets it (includes expanded; --raw for the file)
504
- </span></span><span class="ln ln--pair"><span class="cmd">forgeqe prompts diff test-rules</span><span class="pad"> </span><span class="cm"><span class="h">#</span> how your copy differs from ForgeQE's
505
- </span></span><span class="ln ln--pair"><span class="cmd">forgeqe prompts reset test-rules</span><span class="pad"> </span><span class="cm"><span class="h">#</span> back to ForgeQE's (yours is kept as test-rules.md.bak)
506
- </span></span><span class="ln ln--pair"><span class="cmd">forgeqe prompts check</span><span class="pad"> </span><span class="cm"><span class="h">#</span> each prompt against the prompting standard for its kind (exits 1 when one falls short)
507
- </span></span><span class="ln ln--pair"><span class="cmd">forgeqe prompts check brain</span><span class="pad"> </span><span class="cm"><span class="h">#</span> what to fix in one prompt: sections, rules, examples, contract, sentences
508
- </span></span><span class="ln ln--pair"><span class="cmd">forgeqe prompts eval</span><span class="pad"> </span><span class="cm"><span class="h">#</span> run the evaluation cases with the live model; pass rates against the last run
509
- </span></span><span class="ln ln--pair"><span class="cmd">forgeqe prompts eval refine --runs 3</span><span class="pad"> </span><span class="cm"><span class="h">#</span> one prompt, three runs of each case
594
+ <div class="views" data-views><div class="view-tabs" role="tablist" aria-label="Show the steps for" hidden><button type="button" role="tab" class="view-tab" data-view="web" aria-selected="true">Web app</button><button type="button" role="tab" class="view-tab" data-view="terminal" aria-selected="false">Terminal</button></div><div class="view-panel" role="tabpanel" data-view="web"><p class="view-label"><strong>Web app</strong></p>
595
+ <ol>
596
+ <li>Open <strong>Knowledge › Agent behaviour › Prompts</strong>.</li>
597
+ <li>Press <strong>Add</strong>, give the prompt a name, a description, the agents that use it and its text, and press <strong>Add</strong>.</li>
598
+ <li>Under <strong>Show</strong>, <strong>Your prompts</strong> lists them; open one to edit or <strong>Delete</strong> it.</li>
599
+ </ol>
600
+ </div><div class="view-panel" role="tabpanel" data-view="terminal"><p class="view-label"><strong>Terminal</strong></p>
601
+ <p>Write the file in <code>.forgeqe/prompts/team/</code>, then check how an agent gets it:</p>
602
+ <div class="code"><div class="code-bar"><i></i><i></i><i></i><span>bash</span><button class="copy-code" type="button">Copy</button></div><pre class="lines"><code><span class="ln ln--pair"><span class="cmd">forgeqe prompts show test-agent</span><span class="pad"> </span><span class="cm"><span class="h">#</span> the agent's whole prompt, team prompts included
510
603
  </span></span></code></pre></div>
511
- <p><strong>The prompting standard.</strong> Every prompt follows one standard, and each technique is used where it fits the kind of prompt (<code>kind:</code> in its header):</p>
604
+ </div></div><p><strong>The prompting standard.</strong> Every prompt follows one standard, and each technique is used where it fits the kind of
605
+ prompt (<code>kind:</code> in its header):</p>
512
606
  <div class="tbl tbl--cols-5"><table>
513
607
  <thead>
514
608
  <tr><th>Kind</th><th>Prompts</th><th>Structure</th><th>Few-shot examples</th><th>Execution contract</th></tr>
@@ -520,18 +614,53 @@ Signing in stays <code>/auth</code> and <code>forgeqe login</code>; <code>forgeq
520
614
  </tbody>
521
615
  </table></div>
522
616
  <ul>
523
- <li><strong>ASD-STE100</strong> Simplified Technical English everywhere, so each agent reads one clear instruction at a time: an instruction has 20 words or fewer and a description 25 or fewer, one instruction per sentence, the active voice, and approved words (&quot;make sure&quot;, not &quot;ensure&quot;). At least 80% of sentences. The check covers the rules that can be measured in text and a list of common words the standard does not approve; the standard's full dictionary is licensed and not included.</li>
524
- <li><strong>RFC 2119</strong> key words state the strength of every rule: <strong>MUST</strong> / <strong>MUST NOT</strong> are absolute, <strong>SHOULD</strong> / <strong>SHOULD NOT</strong> are strong defaults the agent may break only for a reason it states, <strong>MAY</strong> is a free choice, and a numbered procedure step is a MUST. A lower-case &quot;must&quot; or &quot;should&quot; is flagged as ambiguous. <code>conventions.md</code> says this at the top of every agent and structured prompt, and the browser engine adds it to the browser agent's instructions.</li>
525
- <li><strong>Structured prompting and few-shot examples</strong> make the output predictable: the same sections in the same order, and worked examples where the shape of the answer matters.</li>
526
- <li><strong>Execution contracts</strong> tell a tool-using agent what must be true before it starts, which tools it uses and in what order (for systems: MCP tools, then <code>query_api</code>, then the browser), its procedure, when it stops, what it does when something fails, and what evidence its answer gives.</li>
527
- <li><strong>Evaluation-driven prompting</strong> measures reliability: <code>forgeqe prompts eval</code> runs cases (an input and checks decided by code: a field matches or is empty, a tool was or was not used, the text keeps ASD-STE100) and compares each pass rate with the last run. ForgeQE's cases cover brain, refine, and explore-charters; add your own as <code>.forgeqe/evals/prompts/&lt;prompt&gt;/&lt;case&gt;.yaml</code> (the same id replaces ForgeQE's). Results are kept in <code>&lt;reports&gt;/evals/prompts/</code>.</li>
617
+ <li><strong>ASD-STE100</strong> Simplified Technical English everywhere, so each agent reads one clear instruction at a time: an
618
+ instruction has 20 words or fewer and a description 25 or fewer, one instruction per sentence, the active voice, and
619
+ approved words (&quot;make sure&quot;, not &quot;ensure&quot;), in at least 80% of sentences. The check covers the rules that can be
620
+ measured in text and a list of common words the standard does not approve; the standard's full dictionary is licensed
621
+ and not included.</li>
622
+ <li><strong>RFC 2119</strong> key words state the strength of every rule: <strong>MUST</strong> / <strong>MUST NOT</strong> are absolute, <strong>SHOULD</strong> / <strong>SHOULD
623
+ NOT</strong> are strong defaults the agent may break only for a reason it states, <strong>MAY</strong> is a free choice, and a numbered
624
+ procedure step is a MUST. A lower-case &quot;must&quot; or &quot;should&quot; is flagged as ambiguous. <code>conventions.md</code> says this at the
625
+ top of every agent and structured prompt, and the browser agent gets it too.</li>
626
+ <li><strong>Structured prompting and few-shot examples</strong> make the output predictable: the same sections in the same order, and
627
+ worked examples where the shape of the answer matters.</li>
628
+ <li><strong>Execution contracts</strong> tell a tool-using agent what must be true before it starts, which tools it uses and in what
629
+ order (for systems: their own tools, then their API, then the browser), its procedure, when it stops, what it does
630
+ when something fails, and what evidence its answer gives.</li>
631
+ <li><strong>Evaluation-driven prompting</strong> measures reliability: evaluation cases give an input and checks decided by code (a
632
+ field matches or is empty, a tool was or was not used, the text keeps ASD-STE100), and each pass rate is compared with
633
+ the last run. ForgeQE's cases cover brain, refine, and explore-charters; add your own as
634
+ <code>.forgeqe/evals/prompts/&lt;prompt&gt;/&lt;case&gt;.yaml</code> (the same id replaces ForgeQE's). Results are kept in
635
+ <code>&lt;reports&gt;/evals/prompts/</code>.</li>
528
636
  </ul>
529
- <p><code>forgeqe prompts check</code> applies the standard to each prompt in use, ForgeQE's or your edited copy; ForgeQE's own meet it in its tests. Write your edits the same way, and run <code>forgeqe prompts eval</code> before and after a change.</p>
530
- <p><strong>Product knowledge.</strong> Fill in the templates (or add your own <code>.md</code> and <code>.txt</code> files, in folders if you like), one topic per <code>##</code> heading. ForgeQE's agent sees the list and reads what a request needs; the exploratory and API scenario planners get the sections that match their story or scenario; the browser agent gets the few sections that clearly match its goal, at most <code>knowledge.browser_max_chars</code> (1500 by default; 0 turns it off). Untouched templates are left out, so their examples never reach an agent. Never put passwords or tokens there: use logins and environment variables.</p>
531
- </div>
637
+ <p><strong>Checking a prompt against the standard.</strong> ForgeQE's own prompts meet the standard in its tests; write your edits the
638
+ same way, and run the evaluation before and after a change. This is done at a terminal only:</p>
639
+ <div class="code"><div class="code-bar"><i></i><i></i><i></i><span>bash</span><button class="copy-code" type="button">Copy</button></div><pre class="lines"><code><span class="ln ln--pair"><span class="cmd">forgeqe prompts check</span><span class="pad"> </span><span class="cm"><span class="h">#</span> each prompt in use against the standard for its kind (exits 1 when one falls short)
640
+ </span></span><span class="ln ln--pair"><span class="cmd">forgeqe prompts check brain</span><span class="pad"> </span><span class="cm"><span class="h">#</span> what to fix in one prompt: sections, rules, examples, contract, sentences
641
+ </span></span><span class="ln ln--pair"><span class="cmd">forgeqe prompts eval</span><span class="pad"> </span><span class="cm"><span class="h">#</span> run the evaluation cases with the live model; pass rates against the last run
642
+ </span></span><span class="ln ln--pair"><span class="cmd">forgeqe prompts eval refine --runs 3</span><span class="pad"> </span><span class="cm"><span class="h">#</span> one prompt, three runs of each case
643
+ </span></span></code></pre></div>
644
+ <p><strong>Product knowledge.</strong> Fill in the templates in <code>.forgeqe/knowledge/</code>, or add your own <code>.md</code> and <code>.txt</code> files (in
645
+ folders if you like), one topic per <code>##</code> heading.</p>
646
+ <ul>
647
+ <li>ForgeQE's agent sees the list and reads what a request needs.</li>
648
+ <li>The exploratory and API scenario planners get the sections that match their story or scenario.</li>
649
+ <li>The browser agent gets the few sections that clearly match its goal, at most <code>knowledge.browser_max_chars</code> characters
650
+ (1500 by default; 0 turns it off; in the web app, <strong>Settings › Product knowledge</strong>, <strong>Knowledge per browser run</strong>).</li>
651
+ <li>Untouched templates are left out, so their examples never reach an agent.</li>
652
+ </ul>
653
+ <p>Never put passwords or tokens there: use sign-ins and environment variables.</p>
654
+ <div class="views" data-views><div class="view-tabs" role="tablist" aria-label="Show the steps for" hidden><button type="button" role="tab" class="view-tab" data-view="web" aria-selected="true">Web app</button><button type="button" role="tab" class="view-tab" data-view="terminal" aria-selected="false">Terminal</button></div><div class="view-panel" role="tabpanel" data-view="web"><p class="view-label"><strong>Web app</strong></p>
655
+ <ol>
656
+ <li>Open <strong>Knowledge › Product understanding › Knowledge</strong>.</li>
657
+ <li>Open the <strong>Notes</strong> tab to read, edit or add a knowledge file. Pick <strong>Read</strong>, <strong>Edit</strong> or <strong>Outline</strong>.</li>
658
+ </ol>
659
+ </div><div class="view-panel" role="tabpanel" data-view="terminal"><p class="view-label"><strong>Terminal</strong></p>
660
+ <p>Edit the files in <code>.forgeqe/knowledge/</code> with any editor.</p>
661
+ </div></div></div>
532
662
  </section>
533
663
  </div>
534
- </article>
535
664
  <article class="spec feat" id="cap-product-knowledge">
536
665
  <div class="hd"><span class="mono">Setup</span><h3>Product knowledge from the product's repositories</h3></div>
537
666
  <p class="ds">Reads every repository of the product, and its documents and links (folders, docs sites, API descriptions, Confluence, and the pages ForgeQE remembers of the apps), into one knowledge graph: its services, HTTP endpoints, database tables, classes, files, documents, and tests, and how they connect, across repositories (the web app's call to the API endpoint it reaches, the code that reads or writes a table). The configured model (a GitHub Copilot seat or any llms.json profile) then writes what each part does and the product's business domains, flows, rules, glossary and roles, as a graph and as pages. Agents search it by requirement, follow a flow step by step to its code, and see what a change reaches and which tests cover it.</p>
@@ -541,19 +670,32 @@ Signing in stays <code>/auth</code> and <code>forgeqe login</code>; <code>forgeq
541
670
  <div class="fact"><span class="mono">Limits</span><ul class="plainlist"><li>Reads local clones of the repositories named in product.repos; it does not clone or pull them</li><li>A docs site is read from its link in product.docs and the pages it links to on the same site only; pages that need a browser to draw are not read</li><li>Endpoints, calls and tables come from the code's patterns (Express, NestJS, Next.js, ASP.NET Core, Spring, FastAPI, Flask, Django, SQL); a route built at run time is not seen</li><li>The model reads at most product.max_model_files changed files a build (400 by default); the rest wait for the next build</li><li>Domains, flows and rules are what the model finds in the code and documents: a hypothesis to check, not a specification</li></ul></div>
542
671
  <div class="fact"><span class="mono">Tools</span><p class="tools"><code>product_knowledge</code></p></div>
543
672
  </div>
544
- <div class="detail"><span class="mono">In detail</span>
545
- <section class="doc" id="doc-how_to_use-product-knowledge-graph">
673
+
674
+ </article>
675
+ <div class="feat-detail"><section class="doc" data-topic id="doc-how_to_use-product-knowledge-graph">
546
676
  <h4>Product knowledge graph</h4>
547
- <div class="prose"><p>ForgeQE reads every repository of your product into one knowledge graph, so its agents start from how the product works: which service serves an endpoint, which screen calls it, which tables it reads and writes, and which tests cover it.</p>
548
- <p>The quickest way is <strong>Settings › Product knowledge</strong> in <code>forgeqe web</code>, five steps in order:</p>
677
+ <div class="prose"><p>ForgeQE reads every repository of your product into one knowledge graph, so its agents start from how the product
678
+ works: which service serves an endpoint, which screen calls it, which tables it reads and writes, and which tests cover
679
+ it.</p>
680
+ <p><strong>Setting it up.</strong> You name the product's repositories, where requirements are searched, and the documents to read.</p>
681
+ <div class="views" data-views><div class="view-tabs" role="tablist" aria-label="Show the steps for" hidden><button type="button" role="tab" class="view-tab" data-view="web" aria-selected="true">Web app</button><button type="button" role="tab" class="view-tab" data-view="terminal" aria-selected="false">Terminal</button></div><div class="view-panel" role="tabpanel" data-view="web"><p class="view-label"><strong>Web app</strong></p>
682
+ <p>Open <strong>Settings › Product knowledge</strong> and go through its five steps in order:</p>
549
683
  <ol>
550
- <li><strong>Repositories.</strong> Add an account on GitHub, Azure DevOps, GitLab or Bitbucket (Cloud or Data Center), sign in in the browser or with a personal access token, then pick its repositories. In the browser, GitHub signs in with the GitHub CLI, Azure DevOps with Microsoft through the Azure CLI, and GitLab and Bitbucket with Git Credential Manager; ForgeQE fetches the repositories with the same sign-in. A local clone or a link can still be added by hand.</li>
551
- <li><strong>Search service.</strong> Where your requirements are searched (a RAG index): a service at an address, a tool of one of your MCP servers, or a local command. Try a search on the page (a command runs only on a real search).</li>
552
- <li><strong>Documents.</strong> Add Markdown files (kept in <code>.forgeqe/documents</code>), or name folders, links, Confluence spaces and web apps.</li>
553
- <li><strong>The product and its knowledge.</strong> Its industry and regulations, where the built knowledge is kept, and the team's shared knowledge pack.</li>
554
- <li><strong>Advanced.</strong> What the build leaves out and how much the model reads.</li>
684
+ <li><strong>1. Repositories.</strong> Press <strong>Add an account</strong> for GitHub, Azure DevOps, GitLab or Bitbucket (Cloud or Data Center).
685
+ Sign in in the browser or with a personal access token, then pick its repositories. In the browser, GitHub signs in
686
+ with the GitHub CLI, Azure DevOps with Microsoft through the Azure CLI, and GitLab and Bitbucket with Git Credential
687
+ Manager; ForgeQE fetches the repositories with the same sign-in. A local clone or a link can still be added by hand.
688
+ Each repository can be given its <strong>System</strong> (see the Landscape below).</li>
689
+ <li><strong>2. Search service.</strong> Where your requirements are searched (a RAG index): a service at an address, a tool of one of
690
+ your MCP servers, or a local command. <strong>Try a search</strong> on the page (a command runs only on a real search).</li>
691
+ <li><strong>3. Documents.</strong> Press <strong>Add Markdown files</strong> (kept in <code>.forgeqe/documents</code>), or name folders, links, Confluence
692
+ spaces and web apps.</li>
693
+ <li><strong>4. The product and its knowledge.</strong> Its industry and regulations, where the built knowledge is kept, the graph
694
+ store, and <strong>The team's knowledge</strong> (a shared pack).</li>
695
+ <li><strong>5. Advanced.</strong> What the build leaves out and how much the model reads.</li>
555
696
  </ol>
556
- <p>The same settings in <code>forgeqe.yaml</code>: name the repositories, each a local clone (<code>path</code>, relative to the file) or its link (<code>git</code>):</p>
697
+ </div><div class="view-panel" role="tabpanel" data-view="terminal"><p class="view-label"><strong>Terminal</strong></p>
698
+ <p>Name the repositories in <code>forgeqe.yaml</code>, each a local clone (<code>path</code>, relative to the file) or its link (<code>git</code>):</p>
557
699
  <div class="code"><div class="code-bar"><i></i><i></i><i></i><span>yaml</span><button class="copy-code" type="button">Copy</button></div><pre class="lines"><code><span class="ln"><span class="cmd">product:
558
700
  </span></span><span class="ln"><span class="cmd"> name: Shop
559
701
  </span></span><span class="ln"><span class="cmd"> repos:
@@ -571,56 +713,69 @@ Signing in stays <code>/auth</code> and <code>forgeqe login</code>; <code>forgeq
571
713
  </span></span><span class="ln"><span class="cmd"> wiki: { confluence: SHOP }
572
714
  </span></span><span class="ln"><span class="cmd"> shop: { app: shop-web }
573
715
  </span></span></code></pre></div>
574
- <div class="code"><div class="code-bar"><i></i><i></i><i></i><span>bash</span><button class="copy-code" type="button">Copy</button></div><pre class="lines"><code><span class="ln ln--pair"><span class="cmd">forgeqe knowledge build</span><span class="pad"> </span><span class="cm"><span class="h">#</span> read every repository (again: only files changed since the last build), then the model
716
+ </div></div><p><strong>Building the graph.</strong> A build reads every repository (again: only files changed since the last build), then the model
717
+ reads what changed. Before anything goes to the model, ForgeQE says how many files and requests, and the cost, and asks.</p>
718
+ <div class="views" data-views><div class="view-tabs" role="tablist" aria-label="Show the steps for" hidden><button type="button" role="tab" class="view-tab" data-view="web" aria-selected="true">Web app</button><button type="button" role="tab" class="view-tab" data-view="terminal" aria-selected="false">Terminal</button></div><div class="view-panel" role="tabpanel" data-view="web"><p class="view-label"><strong>Web app</strong></p>
719
+ <ol>
720
+ <li>Open <strong>Knowledge › Product understanding › Product</strong>.</li>
721
+ <li>Press <strong>Build</strong> (or <strong>Refresh</strong> once it is built). The page says when it was built, from how many repositories, and
722
+ when the model last read it.</li>
723
+ </ol>
724
+ </div><div class="view-panel" role="tabpanel" data-view="terminal"><p class="view-label"><strong>Terminal</strong></p>
725
+ <div class="code"><div class="code-bar"><i></i><i></i><i></i><span>bash</span><button class="copy-code" type="button">Copy</button></div><pre class="lines"><code><span class="ln ln--pair"><span class="cmd">forgeqe knowledge build</span><span class="pad"> </span><span class="cm"><span class="h">#</span> read every repository, then the model
575
726
  </span></span><span class="ln ln--pair"><span class="cmd">forgeqe knowledge build --yes</span><span class="pad"> </span><span class="cm"><span class="h">#</span> without asking first (pipelines); --no-model: structure only
576
727
  </span></span><span class="ln ln--pair"><span class="cmd">forgeqe knowledge build --repo api</span><span class="pad"> </span><span class="cm"><span class="h">#</span> just one repository or source; the others keep their last reading
577
728
  </span></span><span class="ln ln--pair"><span class="cmd">forgeqe knowledge status</span><span class="pad"> </span><span class="cm"><span class="h">#</span> what the graph holds, and when each repository was read (its link and commit)
578
- </span></span><span class="ln ln--pair"><span class="cmd">forgeqe knowledge pipeline init</span><span class="pad"> </span><span class="cm"><span class="h">#</span> the pipeline that builds the knowledge every night and shares it (see below)
579
- </span></span><span class="ln ln--pair"><span class="cmd">forgeqe knowledge pull</span><span class="pad"> </span><span class="cm"><span class="h">#</span> the team's knowledge (product.shared), without cloning any repository
580
- </span></span><span class="ln ln--pair"><span class="cmd">forgeqe knowledge systems --propose</span><span class="pad"> </span><span class="cm"><span class="h">#</span> the model proposes the systems; accept, rename or reject each (also on the page)
581
- </span></span><span class="ln ln--pair"><span class="cmd">forgeqe knowledge landscape</span><span class="pad"> </span><span class="cm"><span class="h">#</span> the product's systems and how they talk (REST, routes, events, shared data, SDK)
582
- </span></span><span class="ln ln--pair"><span class="cmd">forgeqe knowledge history</span><span class="pad"> </span><span class="cm"><span class="h">#</span> each build: the commits it read, and the endpoints, screens, tables, rules that came and went
583
- </span></span><span class="ln"><span class="cmd">forgeqe knowledge search &quot;cancel an order&quot;
729
+ </span></span></code></pre></div>
730
+ </div></div><p><strong>Exploring and asking.</strong> In the web app, the Product pages show the graph (see the Product page below). At the
731
+ terminal:</p>
732
+ <div class="code"><div class="code-bar"><i></i><i></i><i></i><span>bash</span><button class="copy-code" type="button">Copy</button></div><pre class="lines"><code><span class="ln"><span class="cmd">forgeqe knowledge search &quot;cancel an order&quot;
584
733
  </span></span><span class="ln ln--pair"><span class="cmd">forgeqe knowledge impact Services/OrderService.cs</span><span class="pad"> </span><span class="cm"><span class="h">#</span> what a change reaches: code across repositories, business flows, tests
585
734
  </span></span><span class="ln ln--pair"><span class="cmd">forgeqe knowledge path web/src/pages/Checkout.tsx api:table:orders</span><span class="pad"> </span><span class="cm"><span class="h">#</span> how one part reaches another, each step with its line
586
735
  </span></span><span class="ln ln--pair"><span class="cmd">forgeqe knowledge flow &quot;cancel an order&quot;</span><span class="pad"> </span><span class="cm"><span class="h">#</span> a business flow, step by step, with the code of each step
736
+ </span></span><span class="ln ln--pair"><span class="cmd">forgeqe knowledge landscape</span><span class="pad"> </span><span class="cm"><span class="h">#</span> the product's systems and how they talk (REST, routes, events, shared data, SDK)
737
+ </span></span><span class="ln ln--pair"><span class="cmd">forgeqe knowledge history</span><span class="pad"> </span><span class="cm"><span class="h">#</span> each build: the commits it read, and the endpoints, screens, tables, rules that came and went
587
738
  </span></span><span class="ln ln--pair"><span class="cmd">forgeqe knowledge gaps</span><span class="pad"> </span><span class="cm"><span class="h">#</span> what the build could not settle: calls no route or several fit, other hosts, unknown tables
588
739
  </span></span><span class="ln ln--pair"><span class="cmd">forgeqe knowledge check</span><span class="pad"> </span><span class="cm"><span class="h">#</span> find each quoted line again in its file: what moved, what is gone
589
740
  </span></span><span class="ln"><span class="cmd">forgeqe knowledge ask &quot;Can a customer cancel an order that has shipped?&quot;
590
741
  </span></span><span class="ln ln--pair"><span class="cmd">forgeqe knowledge findings &quot;cancel&quot;</span><span class="pad"> </span><span class="cm"><span class="h">#</span> what earlier questions found; stale ones marked
591
742
  </span></span></code></pre></div>
592
- <p><strong>Repositories from their links.</strong> You do not need every repository cloned. A repository given by <code>git</code> is fetched by
593
- ForgeQE itself into its own cache (under <code>~/.forgeqe/cache/product-repos</code>), never into your workspace: the branch's
594
- latest commit only, and only the files the graph reads (no images, archives, binaries, <code>node_modules</code> or <code>vendor</code>).
595
- Each build first asks the server for the branch's commit and fetches only when it moved; then only the files that
596
- changed are read again. It works with GitHub and GitHub Enterprise, Azure DevOps (Services and Server), GitLab,
597
- Bitbucket Cloud and Bitbucket Server / Data Center, and any git server, over https or ssh.</p>
743
+ <p><strong>Repositories from their links.</strong> You do not need every repository cloned. ForgeQE fetches a repository given by <code>git</code>
744
+ into its own cache (under <code>~/.forgeqe/cache/product-repos</code>), never into your workspace: the branch's latest commit only,
745
+ and only the files the graph reads (no images, archives, binaries, <code>node_modules</code> or <code>vendor</code>). Each build first asks the
746
+ server for the branch's commit and fetches only when it moved; then only the files that changed are read again. It works
747
+ with GitHub and GitHub Enterprise, Azure DevOps (Services and Server), GitLab, Bitbucket Cloud and Bitbucket Server /
748
+ Data Center, and any git server, over https or ssh.</p>
598
749
  <ul>
599
- <li><strong>Signing in:</strong> <code>token_env</code> names the variable that holds a token (or save it with <code>forgeqe auth login ADO_PAT</code>): a
600
- personal access token for Azure DevOps, a fine-grained or classic token for GitHub, a project or personal token for
601
- GitLab, an HTTP access token for Bitbucket Server, a repository access token for Bitbucket Cloud (or an app password
602
- with <code>user:</code>). It is sent to that host only, as a header, never in the link or a file. Without <code>token_env</code>, git signs in
603
- as it does for you (Git Credential Manager, ssh keys); it never stops at a prompt.</li>
604
- <li><strong>Pinned to a commit:</strong> <code>forgeqe knowledge status</code> shows each repository's link, branch and commit, and on the Product
605
- page a part's evidence opens the exact line on GitHub, Azure DevOps, GitLab or Bitbucket at the commit the graph was
750
+ <li><strong>Signing in.</strong> <code>token_env</code> names the variable that holds a token (save it in <strong>Settings › Secrets</strong>, or with
751
+ <code>forgeqe auth login ADO_PAT</code>): a personal access token for Azure DevOps, a fine-grained or classic token for GitHub, a
752
+ project or personal token for GitLab, an HTTP access token for Bitbucket Server, a repository access token for
753
+ Bitbucket Cloud (or an app password with <code>user:</code>). It is sent to that host only, never in the link or a file. Without
754
+ <code>token_env</code>, git signs in as it does for you (Git Credential Manager, ssh keys); it never stops at a prompt.</li>
755
+ <li><strong>Pinned to a commit.</strong> <code>forgeqe knowledge status</code> shows each repository's link, branch and commit. On the Product
756
+ page, a part's evidence opens the exact line on GitHub, Azure DevOps, GitLab or Bitbucket at the commit the graph was
606
757
  built from.</li>
607
758
  <li><strong>When a server cannot be reached,</strong> the build reads the last fetched commit and says so; a repository never fetched
608
759
  keeps its graph from the last build. Neither stops the other repositories.</li>
609
- <li><strong>What changed:</strong> every build is kept in <code>graph/history.jsonl</code>; <code>forgeqe knowledge history</code> lists the commits each
760
+ <li><strong>What changed.</strong> Every build is kept in <code>graph/history.jsonl</code>; <code>forgeqe knowledge history</code> lists the commits each
610
761
  build read and what came and went.</li>
611
- <li><strong>Safety:</strong> git runs with an argument array; repository hooks, submodules, LFS downloads and symbolic links are off;
612
- only https and ssh links are taken (never <code>ext::</code>, <code>file://</code> or a local path), and none with a password or <code>..</code> in it.</li>
762
+ <li><strong>Safety.</strong> Repository hooks, submodules, LFS downloads and symbolic links are off. Only https and ssh links are taken
763
+ (never <code>ext::</code>, <code>file://</code> or a local path), and none with a password or <code>..</code> in it.</li>
613
764
  </ul>
614
765
  <p><strong>What the runs did, against the code.</strong> Every build also reads the API calls ForgeQE's last 50 runs recorded
615
766
  (<code>network.json</code> in the reports folder: method, host, path and status; never a body, header or query value, and a path
616
- segment that is an email address or a long token is masked). A call whose route a repository declares marks that
617
- endpoint, the front end's call of it, and the screen the run was on as seen in a run, with the call as evidence. A call
618
- near a declared route but not it (one segment differs, or one more such as <code>/v2</code>) is listed as differing from the code;
619
- a call no repository declares, as shown only by the runs.</p>
767
+ segment that is an email address or a long token is masked).</p>
768
+ <ul>
769
+ <li>A call whose route a repository declares marks that endpoint, the front end's call of it, and the screen the run was
770
+ on as seen in a run, with the call as evidence.</li>
771
+ <li>A call near a declared route but not it (one segment differs, or one more such as <code>/v2</code>) is listed as differing from
772
+ the code.</li>
773
+ <li>A call no repository declares is listed as shown only by the runs.</li>
774
+ </ul>
620
775
  <div class="code"><div class="code-bar"><i></i><i></i><i></i><span>bash</span><button class="copy-code" type="button">Copy</button></div><pre class="lines"><code><span class="ln ln--pair"><span class="cmd">forgeqe knowledge runtime</span><span class="pad"> </span><span class="cm"><span class="h">#</span> what differs from the code, what only the runs show, endpoints no run reached
621
776
  </span></span></code></pre></div>
622
- <p><strong>Sharing the knowledge with the team.</strong> One machine builds the knowledge; everyone else pulls it, with no clone of
623
- any repository. Run once, in the repository that holds <code>forgeqe.yaml</code>:</p>
777
+ <p><strong>Sharing the knowledge with the team.</strong> One machine builds the knowledge; everyone else pulls it, with no clone of any
778
+ repository. Run this once, at a terminal, in the repository that holds <code>forgeqe.yaml</code>:</p>
624
779
  <div class="code"><div class="code-bar"><i></i><i></i><i></i><span>bash</span><button class="copy-code" type="button">Copy</button></div><pre class="lines"><code><span class="ln ln--pair"><span class="cmd">forgeqe knowledge pipeline init</span><span class="pad"> </span><span class="cm"><span class="h">#</span> writes .github/workflows/forgeqe-knowledge.yml and pipelines/forgeqe-knowledge.yml
625
780
  </span></span></code></pre></div>
626
781
  <p>Commit the file for your CI (and <code>forgeqe.yaml</code>, <code>llms.json</code>), add the secrets it names (each repository's <code>token_env</code>,
@@ -632,9 +787,16 @@ each document link's, and the model's key), and run it once. Every night, and wh
632
787
  <li>exports the pack (<code>forgeqe knowledge export</code>), keeps it as the run's artifact, and publishes it as the one file of
633
788
  the <code>forgeqe-knowledge</code> branch.</li>
634
789
  </ol>
635
- <p>Repositories given by <code>path</code> (a local clone) are not read by the pipeline: give them <code>git:</code>. In Azure DevOps the build
790
+ <p>Repositories given by <code>path</code> (a local clone) are not read by the pipeline: give them <code>git:</code>. In Azure DevOps, the build
636
791
  service needs Contribute on the repository to publish the branch.</p>
637
- <p>Everyone else points <code>product.shared</code> at it and pulls (or Settings, Evidence, The team's knowledge):</p>
792
+ <p><strong>Pulling the team's knowledge.</strong> Everyone else points ForgeQE at the published pack and pulls it.</p>
793
+ <div class="views" data-views><div class="view-tabs" role="tablist" aria-label="Show the steps for" hidden><button type="button" role="tab" class="view-tab" data-view="web" aria-selected="true">Web app</button><button type="button" role="tab" class="view-tab" data-view="terminal" aria-selected="false">Terminal</button></div><div class="view-panel" role="tabpanel" data-view="web"><p class="view-label"><strong>Web app</strong></p>
794
+ <ol>
795
+ <li>Open <strong>Settings › Product knowledge</strong>.</li>
796
+ <li>Under <strong>4. The product and its knowledge</strong>, <strong>The team's knowledge</strong>, fill in the <strong>Repository</strong>, <strong>Branch</strong> and <strong>Pack
797
+ in it</strong> (or <strong>Or a link</strong>).</li>
798
+ </ol>
799
+ </div><div class="view-panel" role="tabpanel" data-view="terminal"><p class="view-label"><strong>Terminal</strong></p>
638
800
  <div class="code"><div class="code-bar"><i></i><i></i><i></i><span>yaml</span><button class="copy-code" type="button">Copy</button></div><pre class="lines"><code><span class="ln"><span class="cmd">product:
639
801
  </span></span><span class="ln"><span class="cmd"> shared: { git: https://dev.azure.com/acme/Shop/_git/qa, branch: forgeqe-knowledge, file: shop.knowledge.forgeqe, token_env: ADO_PAT }
640
802
  </span></span><span class="ln ln--note"><span class="pad"> </span><span class="cm"><span class="h">#</span> or { url: https://files.acme.local/shop.knowledge.forgeqe, token_env: FILES_TOKEN }, or { path: //share/qa/shop.knowledge.forgeqe }
@@ -642,78 +804,144 @@ service needs Contribute on the repository to publish the branch.</p>
642
804
  <div class="code"><div class="code-bar"><i></i><i></i><i></i><span>bash</span><button class="copy-code" type="button">Copy</button></div><pre class="lines"><code><span class="ln ln--pair"><span class="cmd">forgeqe knowledge pull</span><span class="pad"> </span><span class="cm"><span class="h">#</span> the newest pack: the same graph, Landscape, views, history and findings
643
805
  </span></span><span class="ln ln--pair"><span class="cmd">forgeqe knowledge import shop.knowledge.forgeqe</span><span class="pad"> </span><span class="cm"><span class="h">#</span> or a pack you were given (a file or an https link)
644
806
  </span></span></code></pre></div>
645
- <p><code>forgeqe knowledge status</code> and the Product page say &quot;From the team's build of …&quot; with the commits it read; a build of
646
- your own replaces that. Your own Right/Wrong marks and questions are kept when you pull. A pack is checked before
647
- anything is written: only the knowledge folder's own files, each matching its checksum, within a size limit. It holds
648
- quotes of the code: share it only with people who may read those repositories. Without the repositories, <code>forgeqe knowledge ask</code> answers from the graph and documents but cannot open the code itself.</p>
649
- <p><strong>The Landscape.</strong> The Engineering view opens on the product's systems: CRM, Digital, Mobile, Payments, the outside
650
- services it uses, and how they talk to each other, each link summed up by kind (REST calls, gateway routes, events on a
651
- topic or queue, shared data, an outside SDK), with how often, how it is known, and examples you can trace to the code.
652
- Give each repository its system in <code>forgeqe.yaml</code> (or Settings, Evidence, Repositories):</p>
807
+ </div></div><p><strong>After a pull.</strong> <code>forgeqe knowledge status</code> and the Product page say &quot;From the team's build of …&quot; with the commits it
808
+ read; a build of your own replaces that. Your own Right/Wrong marks and questions are kept when you pull. A pack is
809
+ checked before anything is written: only the knowledge folder's own files, each matching its checksum, within a size
810
+ limit. It holds quotes of the code: share it only with people who may read those repositories. Without the
811
+ repositories, <code>forgeqe knowledge ask</code> answers from the graph and documents but cannot open the code itself.</p>
812
+ <p><strong>The Landscape.</strong> The Engineering view opens on the product's systems (CRM, Digital, Mobile, Payments), the outside
813
+ services it uses, and how they talk to each other. Each link is summed up by kind (REST calls, gateway routes, events on
814
+ a topic or queue, shared data, an outside SDK), with how often, how it is known, and examples you can trace to the
815
+ code. Select a system to see its services, with the parts of other systems they reach named with their system.</p>
816
+ <p><strong>Giving each repository its system.</strong></p>
817
+ <div class="views" data-views><div class="view-tabs" role="tablist" aria-label="Show the steps for" hidden><button type="button" role="tab" class="view-tab" data-view="web" aria-selected="true">Web app</button><button type="button" role="tab" class="view-tab" data-view="terminal" aria-selected="false">Terminal</button></div><div class="view-panel" role="tabpanel" data-view="web"><p class="view-label"><strong>Web app</strong></p>
818
+ <ol>
819
+ <li>Open <strong>Settings › Product knowledge</strong>, <strong>1. Repositories</strong>.</li>
820
+ <li>Fill in each repository's <strong>System</strong>.</li>
821
+ </ol>
822
+ </div><div class="view-panel" role="tabpanel" data-view="terminal"><p class="view-label"><strong>Terminal</strong></p>
653
823
  <div class="code"><div class="code-bar"><i></i><i></i><i></i><span>yaml</span><button class="copy-code" type="button">Copy</button></div><pre class="lines"><code><span class="ln"><span class="cmd">product:
654
824
  </span></span><span class="ln"><span class="cmd"> repos:
655
825
  </span></span><span class="ln"><span class="cmd"> crm-core: { git: https://bitbucket.acme.local/scm/crm/crm-core.git, system: CRM }
656
826
  </span></span><span class="ln"><span class="cmd"> crm-api: { git: https://bitbucket.acme.local/scm/crm/crm-api.git, system: CRM }
657
827
  </span></span><span class="ln"><span class="cmd"> shop-web: { path: ../shop-web, system: Digital }
658
828
  </span></span></code></pre></div>
659
- <p>Or let the model propose them: <code>forgeqe knowledge systems --propose</code> (asked first, like every use of the model; a
660
- build where the model reads the product also proposes one for each new repository). It reads what the graph knows of
661
- each repository (what it says it is, its frameworks, endpoints, screens, tables, the outside services it uses, the
662
- repositories it calls) and the product's documents, and names the systems in the business's words, each with why. On
663
- the Landscape, under <em>Systems proposed by the model</em>, accept each, rename it, or reject it (<code>forgeqe knowledge systems --accept orders-api</code>, <code>--accept payments --as Payments</code>, <code>--reject deploy</code>, <code>--undo deploy</code>). A system set in
664
- <code>forgeqe.yaml</code> always wins, then a person's decision, then the model's proposal; the proposal and the decisions travel
665
- in the team's pack. A repository with none of these is grouped with those that share the first word of its name
666
- (<code>crm-core</code> and <code>crm-api</code>: CRM), and the page says so. Select a system to see its services, with the parts of other systems they reach named with their
667
- system. <code>forgeqe knowledge landscape</code> prints the same, and the agents ask it through the knowledge tool.</p>
668
- <p><strong>The Product page.</strong> <code>forgeqe web</code> has a Product page (sidebar: Knowledge › Product understanding) that draws the graph as the Engineering
669
- view, in the manner of ForgeQE's own architecture map: each kind of part a tinted band (front ends, gateways, services,
670
- data and messages), the outside services in a column on the right, and wires at right angles from card to card, as
671
- wide as the page and as tall as the window. A green wire is a call a run saw, a dotted amber one a run made differently,
672
- a dashed one goes to an outside system, and a grey one is read in the code or configuration. Hover over or tab to a part
673
- to trace what it sends and receives; the How they talk tab draws every link as a relationship graph (the Personas tab's: each part coloured by its band, each line named by what it does, a part or link picked showing how it is known) and then lists them in words. These graphs are laid out in order, not by forces, so the same product always comes out the same: the product and How they talk as an architecture diagram that fills its panel: a full-width tier per band from top to bottom (front ends, gateways, services, data and messages, platform), test suites in a column at the left and outside systems at the right, each tier's parts spread evenly across it (onto more lines when crowded) and ordered so lines cross as little as they can; folders and clusters as round areas in centred rows, sibling folders side by side, each area's files packed from its middle out, the most linked in the middle and named (zoom in, point at or select a file for the others). The Code map's Graph view, at All repositories, draws the product: each repository (coloured by its band on the services map, sized by its files), the data stores and outside systems they share, and a line for each kind of connection with how many (calls, events and shared data from the services map; imports and calls in code that crosses repositories). Select a repository for what it holds (files, tests, lines, languages, main folders) and what it talks to and is used by, then open it; inside it, click a folder's name in the graph (or pick it in Folder) to open that folder, and go back by the path above the graph (All repositories › repository › folder). The side panel lists the repositories at All repositories, and inside one says what it holds and what it connects to, each other repository a link. Inside a repository, Graph's Arrange by draws it as an architecture diagram by default (Layers: a tier for each layer, front end, API and routes, services and domain, data access and other code, from top to bottom, tests at the left and shared code and config at the right; each file's layer is worked out from its folders, name and kind, a guess from names only) or as its folders (Folders). The Graph and Cluster views draw files the same way, coloured and placed by folder, repository or cluster (in Graph, each folder or repository in its named outline), a selected file's links lit and the files a change to it reaches ringed in orange; a part's evidence panel draws what the part is linked to; and the Impact page's map draws the change the same way, arranged by steps from the change by default (an architecture diagram of the change: a tier for the changed files at the top, then each step away, the files it does not reach as small dots at the bottom, tests that reach it at the left and files in other repositories at the right) or by folders (Arrange by), each file in its colour by impact, steps from the change or how often it changes (the legend in the graph, with counts), each folder in its named outline (in the Internal view in the colour of its file nearest the change; another repository's in blue), a selected or pointed-at file lighting its chain back to the change. The keys are the Personas graph's. Select a service to see it from the inside: its endpoints with the authentication
674
- they need, who calls them and what a change to one reaches; what it calls, reads, writes, publishes and uses. Each part
675
- opens its evidence (the file and line, or the run's call), and each open question has Investigate, which asks
676
- ForgeQE's agent in a chat.</p>
677
- <p>Its second view, <strong>Product</strong>, is the product as the business sees it, in its own words: what the product does (each
678
- capability with the actions people take, such as &quot;View an order&quot; and &quot;Cancel an order&quot;, what it keeps and who it shares
679
- with), journeys as a storyboard of steps (the ones ForgeQE's runs walked, and the ones the model named) with what each
680
- step causes (&quot;Saves the order&quot;, &quot;Announces “order cancelled”&quot;) and when it is not allowed, business rules as sentences
681
- (&quot;Cancel an order is refused when: Order has shipped&quot;), each record's life (placed → cancelled, with the states rules
682
- check), the glossary, and the last result of your team questions (<code>forgeqe knowledge eval</code>). Before the model has read
683
- the product these words come from the code: the action from each request, the rule from the message the product
684
- answers with, the life from the states the code sets and checks; after, the model's names and sentences, each citing
685
- what shows it. <strong>Show how it is built</strong> adds the requests, files, the capability map and the sequence of calls under
686
- each. Mark a rule, journey, capability or term <strong>Right</strong> or <strong>Wrong</strong>, with what is right instead: it is kept in
687
- <code>graph/feedback.json</code> and from the next build the agents read it as a person's word, ahead of the model's.</p>
688
- <p><strong>Asking the product a question.</strong> <code>forgeqe knowledge ask</code> hands one question to an investigator: an agent on the
689
- analysis model (llm.routing) that searches the graph, reads the code and document folders it needs, follows the
690
- question across repositories, and asks again until it can answer. Its answer is a set of findings, each quoting the
691
- lines it rests on. ForgeQE finds every quoted line again in its file before it keeps a finding: one whose quote is not
692
- there is shown as not kept. What it cannot settle it says is unknown, with what would settle it. Findings are kept in
693
- <code>graph/findings.json</code>; the next question starts from them, <code>node</code> shows them, and a build marks a finding stale when a
694
- line it quotes is gone. The investigator reads only through ForgeQE's tools: only the repositories and document
695
- folders in <code>forgeqe.yaml</code>, never a hidden or credential file, no shell and no web. When only a run can settle a fact,
696
- it may ask to run one goal in the browser; you are asked first, with the goal and what it settles, and can say no
697
- (evaluations never run one). <code>product.max_investigation_steps</code>
698
- (default 40) caps its tool calls. ForgeQE's agent asks the same way (<code>product_knowledge</code>, op <code>ask</code>).</p>
699
- <p>Besides code, the investigator reads the text of documents from links and Confluence (a build keeps it in
700
- <code>graph/texts/</code>, secrets removed) and the API calls ForgeQE's own runs recorded (method, host, path and status; never a
701
- body, header or query value). A quote from a page or a run is checked the same way as one from code, and the finding
702
- says where it came from.</p>
829
+ </div></div><p><strong>Letting the model propose the systems.</strong> The model reads what the graph knows of each repository (what it says it is,
830
+ its frameworks, endpoints, screens, tables, the outside services it uses, the repositories it calls) and the product's
831
+ documents, and names the systems in the business's words, each with why. You are asked first, as for every use of the
832
+ model; a build where the model reads the product also proposes one for each new repository.</p>
833
+ <div class="views" data-views><div class="view-tabs" role="tablist" aria-label="Show the steps for" hidden><button type="button" role="tab" class="view-tab" data-view="web" aria-selected="true">Web app</button><button type="button" role="tab" class="view-tab" data-view="terminal" aria-selected="false">Terminal</button></div><div class="view-panel" role="tabpanel" data-view="web"><p class="view-label"><strong>Web app</strong></p>
834
+ <ol>
835
+ <li>Open <strong>Knowledge › Product understanding › Product</strong>.</li>
836
+ <li>Under <strong>Systems proposed by the model</strong>, accept each, rename it, or reject it (or <strong>Accept</strong> them all).</li>
837
+ </ol>
838
+ </div><div class="view-panel" role="tabpanel" data-view="terminal"><p class="view-label"><strong>Terminal</strong></p>
839
+ <div class="code"><div class="code-bar"><i></i><i></i><i></i><span>bash</span><button class="copy-code" type="button">Copy</button></div><pre class="lines"><code><span class="ln ln--pair"><span class="cmd">forgeqe knowledge systems --propose</span><span class="pad"> </span><span class="cm"><span class="h">#</span> the model proposes the systems
840
+ </span></span><span class="ln ln--pair"><span class="cmd">forgeqe knowledge systems --accept orders-api</span><span class="pad"> </span><span class="cm"><span class="h">#</span> accept one
841
+ </span></span><span class="ln ln--pair"><span class="cmd">forgeqe knowledge systems --accept payments --as Payments</span><span class="pad"> </span><span class="cm"><span class="h">#</span> accept it under another name
842
+ </span></span><span class="ln ln--pair"><span class="cmd">forgeqe knowledge systems --reject deploy</span><span class="pad"> </span><span class="cm"><span class="h">#</span> reject one; --undo deploy takes the decision back
843
+ </span></span><span class="ln ln--pair"><span class="cmd">forgeqe knowledge landscape</span><span class="pad"> </span><span class="cm"><span class="h">#</span> the systems and how they talk
844
+ </span></span></code></pre></div>
845
+ </div></div><p><strong>Which system wins.</strong> A system set in <code>forgeqe.yaml</code> always wins, then a person's decision, then the model's proposal;
846
+ the proposal and the decisions travel in the team's pack. A repository with none of these is grouped with those that
847
+ share the first word of its name (<code>crm-core</code> and <code>crm-api</code>: CRM), and the page says so. The agents ask the Landscape
848
+ through ForgeQE's knowledge tool.</p>
849
+ <p><strong>The Product page.</strong> In the web app, <strong>Knowledge › Product understanding</strong> has the Product pages: <strong>Product</strong>,
850
+ <strong>Services</strong>, <strong>Code map</strong> and <strong>Business view</strong>. They are in the web app only. The Engineering view draws the graph as
851
+ an architecture map:</p>
852
+ <ul>
853
+ <li><strong>The parts.</strong> Each kind of part is a tinted band (front ends, gateways, services, data and messages), with the outside
854
+ services in a column on the right, and wires at right angles from card to card.</li>
855
+ <li><strong>The wires.</strong> A green wire is a call a run saw, a dotted amber one a call a run made differently, a dashed one goes to
856
+ an outside system, and a grey one is read in the code or configuration. Hover over or tab to a part to trace what it
857
+ sends and receives.</li>
858
+ <li><strong>How they talk.</strong> This tab draws every link as a relationship graph (each part coloured by its band, each line named by
859
+ what it does, a part or link picked showing how it is known), then lists them in words.</li>
860
+ <li><strong>Always the same layout.</strong> These graphs are laid out in order, not by forces, so the same product always comes out
861
+ the same: a full-width tier per band from top to bottom (front ends, gateways, services, data and messages, platform),
862
+ test suites in a column at the left and outside systems at the right, ordered so lines cross as little as they can.</li>
863
+ <li><strong>A service from the inside.</strong> Select a service to see its endpoints with the authentication they need, who calls them
864
+ and what a change to one reaches, and what it calls, reads, writes, publishes and uses.</li>
865
+ <li><strong>Evidence.</strong> Each part opens its evidence (the file and line, or the run's call), and each open question has
866
+ <strong>Investigate</strong>, which asks ForgeQE's agent in a chat.</li>
867
+ </ul>
868
+ <p><strong>The Code map.</strong> Its Graph view at All repositories draws the product: each repository (coloured by its band on the
869
+ services map, sized by its files), the data stores and outside systems they share, and a line for each kind of
870
+ connection with how many.</p>
871
+ <ul>
872
+ <li>Select a repository for what it holds (files, tests, lines, languages, main folders) and what it talks to and is used
873
+ by, then open it.</li>
874
+ <li>Inside a repository, click a folder's name in the graph (or pick it in Folder) to open that folder, and go back by the
875
+ path above the graph (All repositories › repository › folder).</li>
876
+ <li><strong>Arrange by</strong> draws a repository as an architecture diagram by default (Layers: front end, API and routes, services
877
+ and domain, data access and other code, from top to bottom, with tests at the left and shared code and config at the
878
+ right; each file's layer is a guess from its folders, name and kind) or as its folders (Folders).</li>
879
+ <li>The Graph and Cluster views colour and place files by folder, repository or cluster. A selected file's links are lit,
880
+ and the files a change to it reaches are ringed in orange.</li>
881
+ </ul>
882
+ <p>The <strong>Change impact</strong> page's map draws a change the same way: arranged by steps from the change by default, or by
883
+ folders (<strong>Arrange by</strong>), each file coloured by impact, steps from the change or how often it changes.</p>
884
+ <p><strong>The Business view.</strong> This is the product as the business sees it, in its own words:</p>
885
+ <ul>
886
+ <li>what the product does: each capability with the actions people take (&quot;View an order&quot;, &quot;Cancel an order&quot;), what it
887
+ keeps and who it shares with;</li>
888
+ <li>journeys as a storyboard of steps (the ones ForgeQE's runs walked, and the ones the model named), with what each step
889
+ causes (&quot;Saves the order&quot;, &quot;Announces “order cancelled”&quot;) and when it is not allowed;</li>
890
+ <li>business rules as sentences (&quot;Cancel an order is refused when: Order has shipped&quot;);</li>
891
+ <li>each record's life (placed → cancelled, with the states rules check);</li>
892
+ <li>the glossary, and the last result of your team questions (<code>forgeqe knowledge eval</code>).</li>
893
+ </ul>
894
+ <p>Before the model has read the product, these words come from the code: the action from each request, the rule from the
895
+ message the product answers with, the life from the states the code sets and checks. After, they are the model's names
896
+ and sentences, each citing what shows it. <strong>Show how it is built</strong> adds the requests, files, the capability map and the
897
+ sequence of calls under each.</p>
898
+ <p><strong>Correcting the graph.</strong> Mark a rule, journey, capability or term <strong>Right</strong> or <strong>Wrong</strong>, with what is right instead.
899
+ It is kept in <code>graph/feedback.json</code>, and from the next build the agents read it as a person's word, ahead of the
900
+ model's. You can also tell Librarian (see <a href="#doc-how_to_use-librarian">Librarian</a>).</p>
901
+ <p><strong>Asking the product a question.</strong> An investigator searches the graph, reads the code and document folders it needs,
902
+ follows the question across repositories, and asks again until it can answer. It runs on the analysis model (see
903
+ <a href="#doc-how_to_use-model-routing">Model routing</a>).</p>
904
+ <ul>
905
+ <li><strong>Findings with quotes.</strong> Its answer is a set of findings, each quoting the lines it rests on. ForgeQE finds every
906
+ quoted line again in its file before it keeps a finding; one whose quote is not there is shown as not kept.</li>
907
+ <li><strong>Unknowns.</strong> What it cannot settle it says is unknown, with what would settle it.</li>
908
+ <li><strong>Kept for next time.</strong> Findings are kept in <code>graph/findings.json</code>. The next question starts from them, and a build
909
+ marks a finding stale when a line it quotes is gone.</li>
910
+ <li><strong>What it may read.</strong> Only the repositories and document folders in <code>forgeqe.yaml</code>, never a hidden or credential
911
+ file, no shell and no web. It also reads the text of documents from links and Confluence (a build keeps it in
912
+ <code>graph/texts/</code>, secrets removed) and the API calls ForgeQE's runs recorded. A quote from a page or a run is checked the
913
+ same way, and the finding says where it came from.</li>
914
+ <li><strong>A browser run, if you agree.</strong> When only a run can settle a fact, it may ask to run one goal in the browser. You are
915
+ asked first, with the goal and what it settles, and can say no (evaluations never run one).</li>
916
+ <li><code>product.max_investigation_steps</code> (default 40) caps its tool calls.</li>
917
+ </ul>
918
+ <p>Ask in any chat (&quot;can a customer cancel an order that has shipped?&quot;), or at the terminal with <code>forgeqe knowledge ask</code>.</p>
703
919
  <p><strong>Checking the answers.</strong> Write questions whose answers your team knows, with the words a right answer says and the
704
- files it should quote, and score them:</p>
920
+ files it should quote, and score them. <code>evals/knowledge/shop/questions.yaml</code> shows the format. A question passes when
921
+ the answer says each group of words and a kept finding quotes one of the files named. A question the product cannot
922
+ answer passes only when the answer says it is unknown. Run it after you change the model or the setup, and compare. This
923
+ is done at a terminal only:</p>
705
924
  <div class="code"><div class="code-bar"><i></i><i></i><i></i><span>bash</span><button class="copy-code" type="button">Copy</button></div><pre class="lines"><code><span class="ln ln--pair"><span class="cmd">forgeqe knowledge eval questions.yaml</span><span class="pad"> </span><span class="cm"><span class="h">#</span> each question on its own; pass, fail and why, kept in graph/evals/
706
925
  </span></span><span class="ln ln--pair"><span class="cmd">forgeqe knowledge eval --sample</span><span class="pad"> </span><span class="cm"><span class="h">#</span> the sample product that ships with ForgeQE: 15 questions
707
926
  </span></span></code></pre></div>
708
- <p><code>evals/knowledge/shop/questions.yaml</code> shows the format. A question passes when the answer says each group of words
709
- and a kept finding quotes one of the files named; a question the product cannot answer passes only when the answer
710
- says it is unknown. Run it after you change the model or the setup, and compare.</p>
711
- <p><strong>How each part is known.</strong> Every node and link says what it rests on: the file and line it was read from, with the
712
- line itself, and whether it was read as written (a route, a table), worked out (a call matched to a route, an import,
713
- anything the model wrote), or not known. A call is never shown as seen until a run sees it. What a build could not
714
- settle is listed, not guessed: <code>forgeqe knowledge gaps</code>, and <code>status</code> says how much of the product is covered. Quotes
715
- keep no URL query and no secret-looking value.</p>
716
- <p><strong>What it reads.</strong> Each repository's files as git tracks them, less <code>.gitignore</code>, a <code>.forgeqeignore</code> in the repository (one pattern a line), and <code>product.exclude</code>. Hidden files and folders, files named like credentials (<code>appsettings.*.json</code>, <code>*.pfx</code>, <code>secrets.*</code>, <code>*.tfvars</code> …), binaries, and links that lead out of the repository are never read. From the code it takes the files, classes, functions, and tests (TypeScript, JavaScript, C#, Java, Python); the HTTP endpoints of Express, Fastify, NestJS, Next.js, ASP.NET Core, Spring, FastAPI, Flask, Django, Go (net/http, Gin, Echo, chi), Ruby on Rails (<code>config/routes.rb</code>), Laravel, Rust (axum, actix), and servers that route by hand (<code>url.pathname === &quot;/api/x&quot;</code>); the HTTP calls each file makes, in those languages too; and the tables SQL and migrations define, read and write. No model is used.</p>
927
+ <p><strong>How each part is known.</strong> Every node and link says what it rests on: the file and line it was read from, with the line
928
+ itself, and whether it was read as written (a route, a table), worked out (a call matched to a route, an import,
929
+ anything the model wrote), or not known. A call is never shown as seen until a run sees it. What a build could not settle
930
+ is listed, not guessed: <code>forgeqe knowledge gaps</code>, and <code>status</code> says how much of the product is covered. Quotes keep no
931
+ URL query and no secret-looking value.</p>
932
+ <p><strong>What it reads from the code.</strong> Each repository's files as git tracks them, less <code>.gitignore</code>, a <code>.forgeqeignore</code> in the
933
+ repository (one pattern a line), and <code>product.exclude</code>. Hidden files and folders, files named like credentials
934
+ (<code>appsettings.*.json</code>, <code>*.pfx</code>, <code>secrets.*</code>, <code>*.tfvars</code> …), binaries, and links that lead out of the repository are
935
+ never read. No model is used for this part. From the code it takes:</p>
936
+ <ul>
937
+ <li>the files, classes, functions and tests (TypeScript, JavaScript, C#, Java, Python);</li>
938
+ <li>the HTTP endpoints of Express, Fastify, NestJS, Next.js, ASP.NET Core, Spring, FastAPI, Flask, Django, Go (net/http,
939
+ Gin, Echo, chi), Ruby on Rails (<code>config/routes.rb</code>), Laravel, Rust (axum, actix), and servers that route by hand
940
+ (<code>url.pathname === &quot;/api/x&quot;</code>);</li>
941
+ <li>the HTTP calls each file makes, in those languages too;</li>
942
+ <li>the tables SQL and migrations define, read and write;</li>
943
+ <li>the front end's screens: Next.js pages, and the routes of React Router, Angular and Vue Router.</li>
944
+ </ul>
717
945
  <p><strong>How it is deployed and wired.</strong> From configuration files the build also reads, without a model:</p>
718
946
  <div class="tbl tbl--cols-2"><table>
719
947
  <thead>
@@ -727,17 +955,24 @@ keep no URL query and no secret-looking value.</p>
727
955
  <tr><td data-label="File">Terraform <code>*.tf</code></td><td data-label="What it gives">cloud resources by kind (queues, topics, databases, tables, buckets, functions, container services, API gateway routes, caches, DNS), each with its name in the cloud; a queue or topic is tied to the code that uses it, a function or service to the repository its code or image comes from, a route to the endpoint it serves</td></tr>
728
956
  </tbody>
729
957
  </table></div>
730
- <p>Only addresses and topic names are kept, an address without its user name, password or query; no other value of a
731
- setting is ever read into the graph. From Terraform only a few attributes written as plain strings are read (a name, an
732
- engine, a route, an image, the code's path); <code>*.tfvars</code> and state files are never read. A call whose URL starts with a variable (<code>${PAYMENTS_URL}/refunds</code>) then reaches the service that address names,
733
- with both lines as evidence. From the code it reads the topics and queues each file publishes to and consumes (Kafka,
734
- RabbitMQ, Azure Service Bus, SQS and SNS: a name written in the code or in a constant of the file; a name read from a
735
- setting is looked up in the repository's settings files and its deployed service's environment, and one nothing here
736
- sets is an open question), the outside services it uses (Stripe, SendGrid,
737
- Twilio, Auth0, AWS and others, by SDK or API host), and the authentication a route requires (<code>[Authorize]</code>,
738
- <code>@PreAuthorize</code>, <code>Depends(get_current_user)</code>, <code>requireAuth</code> …). A topic that is published but consumed by no repository
739
- here, and a gateway route to no known service, are open questions in <code>forgeqe knowledge gaps</code>.</p>
740
- <p><strong>Documents and links.</strong> <code>product.docs</code> adds what is written about the product, each source by name:</p>
958
+ <ul>
959
+ <li>Only addresses and topic names are kept, an address without its user name, password or query; no other value of a
960
+ setting is ever read into the graph.</li>
961
+ <li>From Terraform, only a few attributes written as plain strings are read (a name, an engine, a route, an image, the
962
+ code's path); <code>*.tfvars</code> and state files are never read.</li>
963
+ <li>A call whose URL starts with a variable (<code>${PAYMENTS_URL}/refunds</code>) reaches the service that address names, with both
964
+ lines as evidence.</li>
965
+ <li>From the code it reads the topics and queues each file publishes to and consumes (Kafka, RabbitMQ, Azure Service Bus,
966
+ SQS and SNS). A name read from a setting is looked up in the repository's settings files and its deployed service's
967
+ environment; one nothing here sets is an open question.</li>
968
+ <li>It also reads the outside services each file uses (Stripe, SendGrid, Twilio, Auth0, AWS and others, by SDK or API
969
+ host), and the authentication a route requires (<code>[Authorize]</code>, <code>@PreAuthorize</code>, <code>Depends(get_current_user)</code>,
970
+ <code>requireAuth</code> …).</li>
971
+ <li>A topic that is published but consumed by no repository here, and a gateway route to no known service, are open
972
+ questions in <code>forgeqe knowledge gaps</code>.</li>
973
+ </ul>
974
+ <p><strong>Documents and links.</strong> <code>product.docs</code> (in the web app, <strong>Settings › Product knowledge</strong>, <strong>3. Documents</strong>) adds what is
975
+ written about the product, each source by name:</p>
741
976
  <div class="tbl tbl--cols-2"><table>
742
977
  <thead>
743
978
  <tr><th>Source</th><th>What it gives</th></tr>
@@ -745,35 +980,78 @@ here, and a gateway route to no known service, are open questions in <code>forge
745
980
  <tbody>
746
981
  <tr><td data-label="Source"><code>path:</code> a folder</td><td data-label="What it gives">A document per Markdown, text, or HTML file; an <code>openapi</code>/<code>swagger</code> file in it gives its endpoints</td></tr>
747
982
  <tr><td data-label="Source"><code>url:</code> a docs site or help centre</td><td data-label="What it gives">The page and the pages it links to, <code>depth</code> links deep and <code>max_pages</code> at most, as text</td></tr>
748
- <tr><td data-label="Source"><code>url:</code> an OpenAPI, Swagger, WSDL, or GraphQL description</td><td data-label="What it gives">Its endpoints, read with ForgeQE's API readers, each joined to the code endpoint with its method and route</td></tr>
983
+ <tr><td data-label="Source"><code>url:</code> an OpenAPI, Swagger, WSDL, or GraphQL description</td><td data-label="What it gives">Its endpoints, each joined to the code endpoint with its method and route</td></tr>
749
984
  <tr><td data-label="Source"><code>confluence:</code> a space key, or a page's link</td><td data-label="What it gives">The space's pages, or the page and the pages under it, with the existing Confluence sign-in (25 at most)</td></tr>
750
985
  <tr><td data-label="Source"><code>app:</code> a web app of <code>env.yaml</code></td><td data-label="What it gives">The pages ForgeQE's runs and <code>forgeqe explore</code> remember of it, with their buttons, links and fields, each joined to the front-end screen whose route it fits</td></tr>
751
986
  </tbody>
752
987
  </table></div>
753
- <p>A document is joined to the endpoints, tables, and classes it names, so <code>impact</code> and <code>node</code> show what is written about a part, and the model reads the documents with the code. A link in the settings may be on your company network; what a page links to, and where it redirects, is followed only on that same site, so a page cannot send ForgeQE elsewhere. Only <code>http</code> and <code>https</code> links are read, never one with a user name or password in it (a token goes in <code>token_env</code>, sent as a bearer token to that site only); <code>robots.txt</code> is honoured; a page is read up to 2 MB and 20 seconds, only if it is text; and a page that did not change since the last build (its ETag or Last-Modified) is not read again. The front end's screens come from the code: Next.js pages, and the routes of React Router, Angular, and Vue Router.</p>
754
- <p><strong>What the model adds.</strong> After the structure, the model reads what changed: each file (what it does for the product), each repository (what it does, its layers), and then the whole product: an overview, the business domains with their rules and entities, the business flows step by step, a glossary, and the roles. Every flow step and domain is tied to the endpoints, files and tables that do it; a reference the model makes up is dropped. It runs on the model model routing gives the analysis area (<code>llm.routing</code>), or the active profile: a GitHub Copilot seat (<code>provider: github_copilot</code>, no token cost) or any other <code>llms.json</code> profile. It has no tools: all it reads is in its requests, and the code it is sent has secrets replaced first. Before anything is sent, ForgeQE says how many files and requests, and the cost at <code>llms.json</code>'s price, and asks; <code>--yes</code> skips the question, and without a terminal nothing is sent unless <code>--yes</code> is given. What the model wrote is kept in <code>graph/understanding.json</code> by the content it read, so a rebuild sends only new and changed files, and teammates who pull the folder do not pay again. Its prompt is <code>.forgeqe/prompts/product-knowledge.md</code>.</p>
755
- <p><strong>Pages to read.</strong> The model's work is also written as pages in <code>.forgeqe/knowledge/product/</code>: <code>overview.md</code>, one page per domain (rules, entities, each flow with the code of each step) and one per repository (layers, endpoints and their callers, tables and who reads and writes them). Being in the knowledge folder, they reach the agents with your own notes; ForgeQE writes them again on each build and removes only pages it wrote, so keep your notes in other files.</p>
756
- <p><strong>How it connects.</strong> A call in one repository is linked to the endpoint it reaches in another (by method and route), SQL to the table some repository defines, a file to what it imports, a class to the interfaces it implements, and code to the tests that import it.</p>
757
- <p><strong>Where it goes.</strong> <code>.forgeqe/knowledge/graph/</code>: <code>product-graph.json</code> (the merged graph), <code>repos/&lt;name&gt;.json</code> (one per repository) and <code>meta.json</code> (the commit each was read at), one node or edge per line so a rebuild's diff is readable. Its format is that of <a href="https://github.com/Egonex-AI/Understand-Anything" class="ext" rel="noopener">Understand-Anything</a>, so that project's dashboard can show it. Secrets that code holds in plain text (keys, <code>password=</code> values, private keys) are replaced before anything is written.</p>
758
- <p><strong>The graph store (Neo4j).</strong> ForgeQE can also keep the product graph in a Neo4j of its own, with BASAL's scenario graphs, so they are searched by meaning as well as by words. <code>forgeqe graph setup</code> sets it up after you agree: in Docker (about 600 MB, once), else a Neo4j and a Java runtime downloaded and checked by SHA-256 (about 200 MB), listening on 127.0.0.1 port 7688 only, with a password it makes and keeps in the credential store. Each <code>forgeqe knowledge build</code> then puts the product graph into it; the JSON files stay, and are used when Neo4j does not answer.</p>
988
+ <p>A document is joined to the endpoints, tables and classes it names, so <code>impact</code> and <code>node</code> show what is written about a
989
+ part, and the model reads the documents with the code.</p>
990
+ <ul>
991
+ <li>A link in the settings may be on your company network. What a page links to, and where it redirects, is followed only
992
+ on that same site, so a page cannot send ForgeQE elsewhere.</li>
993
+ <li>Only <code>http</code> and <code>https</code> links are read, never one with a user name or password in it (a token goes in <code>token_env</code>,
994
+ sent to that site only). <code>robots.txt</code> is honoured.</li>
995
+ <li>A page is read up to 2 MB and 20 seconds, only if it is text. A page that did not change since the last build (its
996
+ ETag or Last-Modified) is not read again.</li>
997
+ </ul>
998
+ <p><strong>What the model adds.</strong> After the structure, the model reads what changed: each file (what it does for the product),
999
+ each repository (what it does, its layers), and then the whole product: an overview, the business domains with their
1000
+ rules and entities, the business flows step by step, a glossary, and the roles.</p>
1001
+ <ul>
1002
+ <li>Every flow step and domain is tied to the endpoints, files and tables that do it; a reference the model makes up is
1003
+ dropped.</li>
1004
+ <li>It runs on the model routing gives the analysis area, or the model in use: a GitHub Copilot seat (no token cost) or
1005
+ any other model.</li>
1006
+ <li>It has no tools: all it reads is in its requests, and the code it is sent has secrets replaced first.</li>
1007
+ <li>Before anything is sent, ForgeQE says how many files and requests, and the cost at your model's price, and asks.
1008
+ <code>--yes</code> skips the question; without a terminal, nothing is sent unless <code>--yes</code> is given.</li>
1009
+ <li>What the model wrote is kept in <code>graph/understanding.json</code> by the content it read, so a rebuild sends only new and
1010
+ changed files, and teammates who pull the folder do not pay again.</li>
1011
+ <li>Its prompt is <code>.forgeqe/prompts/product-knowledge.md</code>.</li>
1012
+ </ul>
1013
+ <p><strong>Pages to read.</strong> The model's work is also written as pages in <code>.forgeqe/knowledge/product/</code>: <code>overview.md</code>, one page per
1014
+ domain (rules, entities, each flow with the code of each step) and one per repository (layers, endpoints and their
1015
+ callers, tables and who reads and writes them). Being in the knowledge folder, they reach the agents with your own
1016
+ notes. ForgeQE writes them again on each build and removes only pages it wrote, so keep your notes in other files.</p>
1017
+ <p><strong>How it connects.</strong> A call in one repository is linked to the endpoint it reaches in another (by method and route), SQL
1018
+ to the table some repository defines, a file to what it imports, a class to the interfaces it implements, and code to
1019
+ the tests that import it.</p>
1020
+ <p><strong>Where it goes.</strong> <code>.forgeqe/knowledge/graph/</code>: <code>product-graph.json</code> (the merged graph), <code>repos/&lt;name&gt;.json</code> (one per
1021
+ repository) and <code>meta.json</code> (the commit each was read at), one node or edge per line so a rebuild's diff is readable.
1022
+ Secrets that code holds in plain text (keys, <code>password=</code> values, private keys) are replaced before anything is written.</p>
1023
+ <p><strong>The graph store.</strong> ForgeQE can also keep the product graph, with BASAL's scenario graphs, in a graph store of its own,
1024
+ so they are searched by meaning as well as by words. Setting it up needs your agreement: in Docker (about 600 MB, once),
1025
+ or else a download checked by SHA-256 (about 200 MB). It listens on 127.0.0.1 port 7688 only, with a password ForgeQE
1026
+ makes and keeps in the credential store. Each build then puts the product graph into it; the JSON files stay, and are
1027
+ used when the store does not answer.</p>
1028
+ <div class="views" data-views><div class="view-tabs" role="tablist" aria-label="Show the steps for" hidden><button type="button" role="tab" class="view-tab" data-view="web" aria-selected="true">Web app</button><button type="button" role="tab" class="view-tab" data-view="terminal" aria-selected="false">Terminal</button></div><div class="view-panel" role="tabpanel" data-view="web"><p class="view-label"><strong>Web app</strong></p>
1029
+ <ol>
1030
+ <li>Open <strong>Settings › Product knowledge</strong>, <strong>4. The product and its knowledge</strong>, <strong>The graph store</strong>.</li>
1031
+ <li>Set <strong>Graph store</strong>, <strong>Where it runs</strong>, <strong>Address</strong> and, to search by meaning, <strong>Embedding model</strong>.</li>
1032
+ </ol>
1033
+ </div><div class="view-panel" role="tabpanel" data-view="terminal"><p class="view-label"><strong>Terminal</strong></p>
759
1034
  <div class="code"><div class="code-bar"><i></i><i></i><i></i><span>yaml</span><button class="copy-code" type="button">Copy</button></div><pre class="lines"><code><span class="ln"><span class="cmd">graph:
760
- </span></span><span class="ln ln--pair"><span class="cmd"> store: auto</span><span class="pad"> </span><span class="cm"><span class="h">#</span> auto: Neo4j when it answers, else the JSON graph | neo4j | json
1035
+ </span></span><span class="ln ln--pair"><span class="cmd"> store: auto</span><span class="pad"> </span><span class="cm"><span class="h">#</span> auto: the graph store when it answers, else the JSON graph | neo4j | json
761
1036
  </span></span><span class="ln"><span class="cmd"> neo4j:
762
1037
  </span></span><span class="ln ln--pair"><span class="cmd"> setup: auto</span><span class="pad"> </span><span class="cm"><span class="h">#</span> auto: Docker, else a native install | docker | native | server (your own)
763
1038
  </span></span><span class="ln ln--pair"><span class="cmd"> url: bolt://127.0.0.1:7688</span><span class="pad"> </span><span class="cm"><span class="h">#</span> another computer only over bolt+s:// or neo4j+s://
764
1039
  </span></span><span class="ln ln--pair"><span class="cmd"> embedding: azure-embed</span><span class="pad"> </span><span class="cm"><span class="h">#</span> a profile of llms.json that embeds; unset: search by words only
765
1040
  </span></span></code></pre></div>
766
- <div class="code"><div class="code-bar"><i></i><i></i><i></i><span>bash</span><button class="copy-code" type="button">Copy</button></div><pre class="lines"><code><span class="ln ln--pair"><span class="cmd">forgeqe graph status</span><span class="pad"> </span><span class="cm"><span class="h">#</span> what is set up, what the store holds, when it was last synced
1041
+ <div class="code"><div class="code-bar"><i></i><i></i><i></i><span>bash</span><button class="copy-code" type="button">Copy</button></div><pre class="lines"><code><span class="ln ln--pair"><span class="cmd">forgeqe graph setup</span><span class="pad"> </span><span class="cm"><span class="h">#</span> set it up, after you agree
1042
+ </span></span><span class="ln ln--pair"><span class="cmd">forgeqe graph status</span><span class="pad"> </span><span class="cm"><span class="h">#</span> what is set up, what the store holds, when it was last synced
767
1043
  </span></span><span class="ln ln--pair"><span class="cmd">forgeqe graph sync</span><span class="pad"> </span><span class="cm"><span class="h">#</span> put the product graph into it again
768
1044
  </span></span><span class="ln"><span class="cmd">forgeqe graph search &quot;cancel an order&quot;
769
- </span></span><span class="ln ln--pair"><span class="cmd">forgeqe graph stop</span><span class="pad"> </span><span class="cm"><span class="h">#</span> stop ForgeQE's Neo4j
770
- </span></span><span class="ln ln--pair"><span class="cmd">forgeqe graph reset</span><span class="pad"> </span><span class="cm"><span class="h">#</span> remove ForgeQE's Neo4j and its graphs (you type reset); never a server of yours
1045
+ </span></span><span class="ln ln--pair"><span class="cmd">forgeqe graph stop</span><span class="pad"> </span><span class="cm"><span class="h">#</span> stop ForgeQE's graph store
1046
+ </span></span><span class="ln ln--pair"><span class="cmd">forgeqe graph reset</span><span class="pad"> </span><span class="cm"><span class="h">#</span> remove ForgeQE's graph store and its graphs (you type reset); never a server of yours
771
1047
  </span></span></code></pre></div>
772
- <p><strong>How the agents use it.</strong> ForgeQE's agent has the <code>product_knowledge</code> tool: <code>search</code> for the parts a requirement is about, <code>node</code> for one part and everything linked to it, <code>flow</code> for a business flow step by step, <code>impact</code> for what a change reaches, <code>status</code>, and <code>build</code> (which asks you before the model reads anything). Names and summaries come from your repositories' text, so the agent treats them as data, never as instructions.</p>
1048
+ </div></div><p><strong>How the agents use it.</strong> ForgeQE's agent searches the graph for the parts a requirement is about, reads one part and
1049
+ everything linked to it, follows a business flow step by step, works out what a change reaches, reads the status, and
1050
+ builds the graph (asking you before the model reads anything). Names and summaries come from your repositories' text,
1051
+ so the agent treats them as data, never as instructions.</p>
773
1052
  </div>
774
1053
  </section>
775
1054
  </div>
776
- </article>
777
1055
  <article class="spec feat" id="cap-knowledge-agent">
778
1056
  <div class="hd"><span class="mono">Setup</span><h3>Librarian: what ForgeQE understood, and your corrections</h3></div>
779
1057
  <p class="ds">Says what ForgeQE has understood about the product from its knowledge notes, documents, skills, the team's prompts and the product graph, citing each source. A correction in your words becomes changes: a section of a knowledge note or a project skill, a team prompt, or Right/Wrong with what is right on a business rule, journey, capability or term of the graph. Where two sources disagree it asks which is right. Each change is shown as a diff and written only when a person approves it.</p>
@@ -783,24 +1061,55 @@ here, and a gateway route to no known service, are open questions in <code>forge
783
1061
  <div class="fact"><span class="mono">Limits</span><ul class="plainlist"><li>It changes only the project's own files: knowledge notes, project skills (a built-in skill is copied into the project first) and team prompts; ForgeQE's own prompts and skills never change</li><li>Documents of product.docs and the uploaded documents are read, never changed</li></ul></div>
784
1062
  <div class="fact"><span class="mono">Tools</span><p class="tools"><code>knowledge_agent</code></p></div>
785
1063
  </div>
786
- <div class="detail"><span class="mono">In detail</span>
787
- <section class="doc" id="doc-how_to_use-librarian">
1064
+
1065
+ </article>
1066
+ <div class="feat-detail"><section class="doc" data-topic id="doc-how_to_use-librarian">
788
1067
  <h4>Librarian</h4>
789
- <div class="prose"><p>Librarian (<code>forgeqe-knowledge-agent</code>) tells you what ForgeQE has understood about your product, and takes your corrections. Ask it on its page in the web app (Librarian), with <code>forgeqe knowledge chat</code>, or in any chat (&quot;what do you know about refunds?&quot;, &quot;that's wrong: the supervisor limit is 1000 EUR&quot;), where ForgeQE's agent hands it over.</p>
1068
+ <div class="prose"><p>Librarian tells you what ForgeQE has understood about your product, and takes your corrections. You can also ask in any
1069
+ chat (&quot;what do you know about refunds?&quot;, &quot;that's wrong: the supervisor limit is 1000 EUR&quot;), and ForgeQE's agent hands it
1070
+ over.</p>
1071
+ <ul>
1072
+ <li>
1073
+ <p><strong>What it reads.</strong> The sections of your knowledge notes, documents and skills that your words are about (found as in
1074
+ <a href="#doc-how_to_use-searching-your-documents-without-vectors">Searching your documents, without vectors</a>), the team's prompts, and the
1075
+ business rules, journeys, capabilities and terms of the product graph. Each answer names the sources it rests on.</p>
1076
+ </li>
1077
+ <li>
1078
+ <p><strong>What a correction changes.</strong> Only what is the project's own:</p>
790
1079
  <ul>
791
- <li><strong>What it reads.</strong> The sections of your knowledge notes, documents and skills that your words are about (found as in <em>Searching your documents, without vectors</em>), the team's prompts, and the business rules, journeys, capabilities and terms of the product graph. Each answer names the sources it rests on.</li>
792
- <li><strong>What a correction changes.</strong> Only what is the project's own: one section of a knowledge note (or a section added after it, or a new note), one section of a project skill (a skill of ForgeQE's or yours is copied into <code>.forgeqe/skills</code> first, and that copy is used from then on), a team prompt (<code>.forgeqe/prompts/team</code>), or Right/Wrong with what is right on a part of the product graph (<code>graph/feedback.json</code>, which outranks the model on the next build). Documents of <code>product.docs</code>, the uploaded documents and ForgeQE's own prompts are never changed.</li>
793
- <li><strong>When sources disagree.</strong> It shows both, with where each comes from, and asks which is right; it changes nothing until you say.</li>
794
- <li><strong>Nothing is written until you approve it.</strong> Each change is shown as a before-and-after, written only when you approve it, only if the file is still the one shown, never through a link, and kept in the audit log. A change that holds what looks like a password or a key is refused.</li>
1080
+ <li>one section of a knowledge note (or a section added after it, or a new note);</li>
1081
+ <li>one section of a project skill (a skill of ForgeQE's or yours is copied into <code>.forgeqe/skills</code> first, and that copy
1082
+ is used from then on);</li>
1083
+ <li>a team prompt (<code>.forgeqe/prompts/team</code>);</li>
1084
+ <li>Right or Wrong, with what is right, on a part of the product graph (<code>graph/feedback.json</code>, which outranks the model
1085
+ on the next build).</li>
1086
+ </ul>
1087
+ <p>Documents of <code>product.docs</code>, the uploaded documents and ForgeQE's own prompts are never changed.</p>
1088
+ </li>
1089
+ <li>
1090
+ <p><strong>When sources disagree.</strong> It shows both, with where each comes from, and asks which is right. It changes nothing
1091
+ until you say.</p>
1092
+ </li>
1093
+ <li>
1094
+ <p><strong>Nothing is written until you approve it.</strong> Each change is shown as a before-and-after and written only when you
1095
+ approve it, only if the file is still the one shown. It is kept in the audit log. A change that holds what looks like a
1096
+ password or a key is refused.</p>
1097
+ </li>
795
1098
  </ul>
1099
+ <p>Without a model, Librarian lists what ForgeQE has about your words.</p>
1100
+ <div class="views" data-views><div class="view-tabs" role="tablist" aria-label="Show the steps for" hidden><button type="button" role="tab" class="view-tab" data-view="web" aria-selected="true">Web app</button><button type="button" role="tab" class="view-tab" data-view="terminal" aria-selected="false">Terminal</button></div><div class="view-panel" role="tabpanel" data-view="web"><p class="view-label"><strong>Web app</strong></p>
1101
+ <ol>
1102
+ <li>Open <strong>Knowledge › Product understanding › Knowledge</strong>.</li>
1103
+ <li>On the <strong>Agent</strong> tab, ask your question or give your correction.</li>
1104
+ <li>Approve each change it shows before it is written.</li>
1105
+ </ol>
1106
+ </div><div class="view-panel" role="tabpanel" data-view="terminal"><p class="view-label"><strong>Terminal</strong></p>
796
1107
  <div class="code"><div class="code-bar"><i></i><i></i><i></i><span>bash</span><button class="copy-code" type="button">Copy</button></div><pre class="lines"><code><span class="ln ln--pair"><span class="cmd">forgeqe knowledge chat</span><span class="pad"> </span><span class="cm"><span class="h">#</span> ask, correct, approve each change with y
797
1108
  </span></span><span class="ln"><span class="cmd">forgeqe knowledge chat &quot;what do you know about refunds?&quot;
798
1109
  </span></span></code></pre></div>
799
- <p>It has no tools: ForgeQE gives it the sections, and keeps a change only for one of them. Without a model it lists what ForgeQE has about your words.</p>
800
- </div>
1110
+ </div></div></div>
801
1111
  </section>
802
1112
  </div>
803
- </article>
804
1113
  <article class="spec feat" id="cap-document-search">
805
1114
  <div class="hd"><span class="mono">Setup</span><h3>Search the project's documents, without vectors</h3></div>
806
1115
  <p class="ds">Finds the passages of the project's documents that answer a question: the team's notes, the documents added in Settings, the folders of product.docs and of rag.documents (Markdown, text, HTML, and PDF, Word and Excel once indexed). No vector database or embedding model: each document is read as a tree of its sections, ranked by keywords, and Skimmer picks the sections that answer from their outline. Each passage says its file, line and headings.</p>
@@ -810,55 +1119,92 @@ here, and a gateway route to no known service, are open questions in <code>forge
810
1119
  <div class="fact"><span class="mono">Limits</span><ul class="plainlist"><li>PDF, Word and Excel files are read only by forgeqe knowledge docs index; a scanned page with no text is not read</li><li>Without a model, only the keywords rank the sections: a question in other words than the document may miss</li></ul></div>
811
1120
  <div class="fact"><span class="mono">Tools</span><p class="tools"><code>search_documents</code></p></div>
812
1121
  </div>
813
- <div class="detail"><span class="mono">In detail</span>
814
- <section class="doc" id="doc-how_to_use-searching-your-documents-without-vectors">
1122
+
1123
+ </article>
1124
+ <div class="feat-detail"><section class="doc" data-topic id="doc-how_to_use-searching-your-documents-without-vectors">
815
1125
  <h4>Searching your documents, without vectors</h4>
816
- <div class="prose"><p>ForgeQE searches your project's own documents with no vector database, no embedding model and nothing to run beside it, the way <a href="https://github.com/VectifyAI/PageIndex" class="ext" rel="noopener">PageIndex</a> reads a long document: by its structure, not by chunks of a fixed size.</p>
1126
+ <div class="prose"><p>ForgeQE searches your project's own documents with no vector database, no embedding model and nothing to run beside
1127
+ it. It reads a long document by its structure, not by chunks of a fixed size:</p>
817
1128
  <ol>
818
- <li><strong>Each document becomes a tree of its sections</strong>: its Markdown headings (<code>#</code> or underlined), else numbered headings (<code>3.2 Refunds</code>, as PDFs and Word documents have them), else parts of about 2,400 characters at paragraph breaks. A section knows the headings it is under (&quot;Payments › Refunds › Limits&quot;) and its line.</li>
819
- <li><strong>Keywords rank the sections</strong> (BM25, as search engines rank; a heading counts three times), then a light re-rank with no model: a section that has more of the question's different words ranks higher, so &quot;refund limits&quot; finds the section on limits before one that only repeats &quot;refund&quot;.</li>
820
- <li><strong>Reasoning, when a model is set up</strong>: Skimmer (<code>forgeqe-doc-reader</code>, no tools, a fixed answer) gets your question and the outline of the documents, and picks the sections that answer it, so &quot;what can a customer get back&quot; finds the section headed &quot;Refund limits&quot;. This is the re-ranking step; no separate re-ranking model is needed. When the outline of every document fits (about 16,000 characters), the reader sees all of it, as PageIndex does; otherwise the documents step 2 found. Only ids from the outline are kept; its words reach nobody. Without a model, or when it fails, the keywords answer.</li>
1129
+ <li><strong>Each document becomes a tree of its sections</strong>: its Markdown headings (<code>#</code> or underlined), else numbered headings
1130
+ (<code>3.2 Refunds</code>, as PDFs and Word documents have them), else parts of about 2,400 characters at paragraph breaks. A
1131
+ section knows the headings it is under (&quot;Payments › Refunds › Limits&quot;) and its line.</li>
1132
+ <li><strong>Keywords rank the sections</strong>, as search engines rank them; a heading counts three times. Then a light re-rank with
1133
+ no model: a section that has more of the question's different words ranks higher, so &quot;refund limits&quot; finds the
1134
+ section on limits before one that only repeats &quot;refund&quot;.</li>
1135
+ <li><strong>Reasoning, when a model is set up.</strong> Skimmer, a model call with no tools, gets your question and the outline of the
1136
+ documents and picks the sections that answer it, so &quot;what can a customer get back&quot; finds the section headed &quot;Refund
1137
+ limits&quot;. No separate re-ranking model is needed. When the outline of every document fits (about 16,000 characters),
1138
+ Skimmer sees all of it; otherwise the documents step 2 found. Only sections from the outline are kept. Without a
1139
+ model, or when it fails, the keywords answer.</li>
821
1140
  </ol>
822
- <p><strong>What it saves.</strong> Agents get sections, not whole files:</p>
823
- <ul>
824
- <li>
825
- <p><strong>Skills.</strong> A browser skill longer than its share of <code>skills.browser_max_chars</code> is cut down to its introduction, the sections the goal needs, and a list of its other headings (before, it was left out whole). On ForgeQE's own skills that is 55–80% fewer characters. ForgeQE's agent finds a section of any skill or its references with <code>search_documents</code> and <code>in: skills</code>.</p>
826
- </li>
827
- <li>
828
- <p><strong>Knowledge.</strong> The notes in <code>.forgeqe/knowledge</code> are split at every heading level, so the planners and the browser agent get only the matching sections, even of a long file. ForgeQE's agent searches them before it reads a whole file.</p>
829
- </li>
830
- <li>
831
- <p><strong>Chat history.</strong> When a conversation continues in a new agent session (a web chat reopened, the profile switched, the settings changed), a long one is no longer sent as its last 20 turns whole: the last four turns and the earlier turns about the new message go in full, and every other turn as one line (what was asked → how the reply began), so nothing is dropped without a trace and a long chat costs a few thousand tokens. A short one is sent whole, as before. The agent runtime still summarises the live session itself when it nears the model's window.</p>
832
- </li>
833
- <li>
834
- <p><strong>Earlier chats.</strong> The web app's kept chats (<code>.forgeqe/chats</code>) and the terminal shell's (<code>.forgeqe/terminal-chats</code>, one file per <code>forgeqe start</code> session) are indexed a turn each: <code>search_documents</code> with <code>in: chats</code> (or <code>forgeqe knowledge docs search &quot;...&quot; --in chats</code>) finds what was asked and decided before. What a chat says is what was said then, not what is true now. A terminal chat is kept like a web chat: ForgeQE's secrets and remembered passwords taken out, mode 0600, git-ignored, the newest 500.</p>
835
- </li>
836
- </ul>
837
- <p><strong>What is cached, so it costs less the second time.</strong></p>
1141
+ <p><strong>What is searched.</strong></p>
838
1142
  <ul>
839
- <li>The index: a document is read and split again only when it changes.</li>
840
- <li>Skimmer's answers: the same question over the same outline with the same model gets the kept answer with no model call (<code>~/.forgeqe/cache/doc-index/picks.json</code>, 30 days). A changed document or another model asks again; <code>--no-cache</code> asks anyway.</li>
841
- <li>The provider's prompt cache: the outline comes before the question in the reader's message, and is the same text for every question while the documents do not change, so a provider that caches prompts (Anthropic, OpenAI, Azure OpenAI) charges less for it.</li>
1143
+ <li>The knowledge folder (<code>.forgeqe/knowledge</code>).</li>
1144
+ <li>The documents added in <strong>Settings › Product knowledge</strong> (<code>.forgeqe/documents</code>).</li>
1145
+ <li>Every folder of <code>product.docs</code>, and the folders <code>rag.documents.folders</code> names inside the project.</li>
842
1146
  </ul>
843
- <p>What is searched: the knowledge folder (<code>.forgeqe/knowledge</code>), the documents added in Settings › Product knowledge (<code>.forgeqe/documents</code>), every folder of <code>product.docs</code>, and the folders <code>rag.documents.folders</code> names inside the project. Markdown, text, reStructuredText, AsciiDoc and HTML files are read again whenever they change. PDF, Word and Excel files are read by Graphify's converters when you run <code>forgeqe knowledge docs index</code>, and their text is kept for later searches. A folder is listed like a product's documents: no hidden file or folder, no file named like a credential, nothing through a link out of it. The index is one JSON file in ForgeQE's cache (<code>~/.forgeqe/cache/doc-index/</code>), never in the repository.</p>
1147
+ <p>Markdown, text, reStructuredText, AsciiDoc and HTML files are read again whenever they change. PDF, Word and Excel files
1148
+ are read when you index the documents, and their text is kept for later searches. A folder is listed like a product's
1149
+ documents: no hidden file or folder, no file named like a credential, nothing through a link out of it. The index is
1150
+ kept in ForgeQE's cache (<code>~/.forgeqe/cache/doc-index/</code>), never in the repository.</p>
1151
+ <p><strong>Searching and indexing.</strong> ForgeQE's agent searches the documents by itself too (&quot;what does the spec say about
1152
+ refunds?&quot;).</p>
1153
+ <div class="views" data-views><div class="view-tabs" role="tablist" aria-label="Show the steps for" hidden><button type="button" role="tab" class="view-tab" data-view="web" aria-selected="true">Web app</button><button type="button" role="tab" class="view-tab" data-view="terminal" aria-selected="false">Terminal</button></div><div class="view-panel" role="tabpanel" data-view="web"><p class="view-label"><strong>Web app</strong></p>
1154
+ <ol>
1155
+ <li>Open <strong>Knowledge › Product understanding › Knowledge</strong>, <strong>Notes</strong> tab.</li>
1156
+ <li>Press <strong>Index PDFs, Word and Excel</strong> to read those files (it can take a few minutes).</li>
1157
+ <li>Type in <strong>Ask the documents</strong> and press <strong>Search</strong>. Turn on <strong>Let the model pick sections</strong> for Skimmer.</li>
1158
+ <li>To see one file's tree, open it and pick <strong>Outline</strong>.</li>
1159
+ </ol>
1160
+ </div><div class="view-panel" role="tabpanel" data-view="terminal"><p class="view-label"><strong>Terminal</strong></p>
844
1161
  <div class="code"><div class="code-bar"><i></i><i></i><i></i><span>bash</span><button class="copy-code" type="button">Copy</button></div><pre class="lines"><code><span class="ln ln--pair"><span class="cmd">forgeqe knowledge docs index</span><span class="pad"> </span><span class="cm"><span class="h">#</span> read the documents, PDF, Word and Excel included
845
1162
  </span></span><span class="ln ln--pair"><span class="cmd">forgeqe knowledge docs search &quot;refund limits&quot;</span><span class="pad"> </span><span class="cm"><span class="h">#</span> passages with their file, line and headings
846
1163
  </span></span><span class="ln"><span class="cmd">forgeqe knowledge docs search &quot;refund limits&quot; --no-model --limit 3 --json
847
1164
  </span></span><span class="ln ln--pair"><span class="cmd">forgeqe knowledge docs search &quot;scenario outline&quot; --in skills</span><span class="pad"> </span><span class="cm"><span class="h">#</span> a section of a skill, not the whole skill
848
1165
  </span></span><span class="ln ln--pair"><span class="cmd">forgeqe knowledge docs outline specs/payments.md</span><span class="pad"> </span><span class="cm"><span class="h">#</span> the tree of one document
849
1166
  </span></span></code></pre></div>
850
- <p>ForgeQE's agent searches them with <code>search_documents</code> (&quot;what does the spec say about refunds?&quot;). To give the passages to the test case check, story test cases and exploratory charters too, make it the <code>rag:</code> search:</p>
1167
+ </div></div><p><strong>What it saves.</strong> Agents get sections, not whole files:</p>
1168
+ <ul>
1169
+ <li><strong>Skills.</strong> A browser skill longer than its share of <code>skills.browser_max_chars</code> is cut down to its introduction, the
1170
+ sections the goal needs, and a list of its other headings. On ForgeQE's own skills that is 55–80% fewer characters.
1171
+ ForgeQE's agent can find a section of any skill or its references.</li>
1172
+ <li><strong>Knowledge.</strong> The notes in <code>.forgeqe/knowledge</code> are split at every heading level, so the planners and the browser
1173
+ agent get only the matching sections, even of a long file. ForgeQE's agent searches them before it reads a whole file.</li>
1174
+ <li><strong>Chat history.</strong> When a conversation continues in a new agent session (a web chat reopened, the model switched, the
1175
+ settings changed), a long one is not sent as its last 20 turns whole. The last four turns, and the earlier turns about
1176
+ the new message, go in full; every other turn goes as one line (what was asked → how the reply began). Nothing is
1177
+ dropped without a trace, and a long chat costs a few thousand tokens. A short one is sent whole. The live session is
1178
+ still summarised when it nears the model's window.</li>
1179
+ <li><strong>Earlier chats.</strong> The web app's chats (<code>.forgeqe/chats</code>) and the terminal shell's (<code>.forgeqe/terminal-chats</code>, one
1180
+ file per <code>forgeqe start</code> session) are indexed a turn each, so ForgeQE's agent can find what was asked and decided
1181
+ before (<code>forgeqe knowledge docs search &quot;...&quot; --in chats</code> at the terminal). What a chat says is what was said then, not
1182
+ what is true now. A terminal chat is kept like a web chat: ForgeQE's secrets and remembered passwords taken out,
1183
+ readable only by you, git-ignored, the newest 500.</li>
1184
+ </ul>
1185
+ <p><strong>What is cached, so it costs less the second time.</strong></p>
1186
+ <ul>
1187
+ <li>The index: a document is read and split again only when it changes.</li>
1188
+ <li>Skimmer's answers: the same question over the same outline with the same model gets the kept answer with no model
1189
+ call (<code>~/.forgeqe/cache/doc-index/picks.json</code>, 30 days). A changed document or another model asks again; <code>--no-cache</code>
1190
+ asks anyway.</li>
1191
+ <li>The provider's prompt cache: the outline comes before the question and is the same text for every question while the
1192
+ documents do not change, so a provider that caches prompts (Anthropic, OpenAI, Azure OpenAI) charges less for it.</li>
1193
+ </ul>
1194
+ <p><strong>Giving the passages to more agents.</strong> To give the passages to the test case check, story test cases and exploratory
1195
+ charters too, make it the <code>rag:</code> search in <code>forgeqe.yaml</code> (in the web app, <strong>Settings › Product knowledge</strong>, <strong>2. Search
1196
+ service</strong>):</p>
851
1197
  <div class="code"><div class="code-bar"><i></i><i></i><i></i><span>yaml</span><button class="copy-code" type="button">Copy</button></div><pre class="lines"><code><span class="ln"><span class="cmd">rag:
852
1198
  </span></span><span class="ln"><span class="cmd"> documents:
853
1199
  </span></span><span class="ln ln--pair"><span class="cmd"> folders: [docs/requirements]</span><span class="pad"> </span><span class="cm"><span class="h">#</span> beside the knowledge folder, the uploaded documents and product.docs
854
1200
  </span></span><span class="ln ln--pair"><span class="cmd"> reasoning: false</span><span class="pad"> </span><span class="cm"><span class="h">#</span> true: Skimmer picks sections (one model call per search)
855
1201
  </span></span><span class="ln"><span class="cmd"> top_k: 5
856
1202
  </span></span></code></pre></div>
857
- <p><code>documents: true</code> searches the default folders with keywords only. The passages are the documents' text: agents get them as data, never as instructions.</p>
1203
+ <p><code>documents: true</code> searches the default folders with keywords only. The passages are the documents' text: agents get
1204
+ them as data, never as instructions.</p>
858
1205
  </div>
859
1206
  </section>
860
1207
  </div>
861
- </article>
862
1208
  <article class="spec feat" id="cap-web-search">
863
1209
  <div class="hd"><span class="mono">Setup</span><h3>Search the web</h3></div>
864
1210
  <p class="ds">Finds what the public web says about a question: the titles, links and snippets of the top results, shown in the chat as a card, without opening a browser or any page. The results are read as data, and the answer says which site each fact came from. The query goes to DuckDuckGo; nothing else leaves the computer.</p>
@@ -868,24 +1214,32 @@ here, and a gateway route to no known service, are open questions in <code>forge
868
1214
  <div class="fact"><span class="mono">Limits</span><ul class="plainlist"><li>Titles, links and snippets only: it opens no page, so a detail not in a snippet needs the page opened from its link</li><li>One public search service (DuckDuckGo): it may refuse or slow down when asked too often</li></ul></div>
869
1215
  <div class="fact"><span class="mono">Tools</span><p class="tools"><code>web_search</code></p></div>
870
1216
  </div>
871
- <div class="detail"><span class="mono">In detail</span>
872
- <section class="doc" id="doc-how_to_use-searching-the-web">
1217
+
1218
+ </article>
1219
+ <div class="feat-detail"><section class="doc" data-topic id="doc-how_to_use-searching-the-web">
873
1220
  <h4>Searching the web</h4>
874
1221
  <div class="prose"><p>ForgeQE's agent can look something up on the public web: &quot;search the web for the latest Playwright release&quot;, typed or
875
- said aloud. It sends the words to DuckDuckGo and shows the top results in the chat (title, link and a short snippet),
876
- then answers from them and says which site each fact came from. It opens no browser and no page: a detail that is not in
877
- a snippet needs the page opened from its link. Nothing but the words of the search leaves your computer, and what comes
878
- back is read as information, never as instructions.</p>
879
- <p><strong>Reading a web page.</strong> When the agent needs a page's own text, ForgeQE decides in code whether it may read it: only an
880
- http(s) address on the public internet, with no user name or password in it. A link you typed in the chat is read
881
- without asking. For any other address you see it whole and choose <strong>Allow this once</strong> or <strong>Don't allow</strong>; with nobody
882
- to ask, it is not read. An address on this computer or your company network is refused, also when you typed it: the
883
- agent uses that system's tool or a browser run instead. Behind a company proxy, a name this computer cannot look up is
884
- left to the proxy.</p>
1222
+ said aloud, in a chat or the shell.</p>
1223
+ <ul>
1224
+ <li>It sends the words to DuckDuckGo and shows the top results in the chat (title, link and a short snippet), then answers
1225
+ from them and says which site each fact came from.</li>
1226
+ <li>It opens no browser and no page: a detail that is not in a snippet needs the page opened from its link.</li>
1227
+ <li>Nothing but the words of the search leaves your computer, and what comes back is read as information, never as
1228
+ instructions.</li>
1229
+ </ul>
1230
+ <p><strong>Reading a web page.</strong> When the agent needs a page's own text, ForgeQE decides whether it may read it:</p>
1231
+ <ul>
1232
+ <li>Only an http(s) address on the public internet, with no user name or password in it.</li>
1233
+ <li>A link you typed in the chat is read without asking.</li>
1234
+ <li>For any other address, you see it whole and choose <strong>Allow this once</strong> or <strong>Don't allow</strong>. With nobody to ask, it is
1235
+ not read.</li>
1236
+ <li>An address on this computer or your company network is refused, even when you typed it. The agent uses that system's
1237
+ tool or a browser run instead.</li>
1238
+ <li>Behind a company proxy, a name this computer cannot look up is left to the proxy.</li>
1239
+ </ul>
885
1240
  </div>
886
1241
  </section>
887
1242
  </div>
888
- </article>
889
1243
  <article class="spec feat" id="cap-setup-help">
890
1244
  <div class="hd"><span class="mono">Setup</span><h3>Setup, skills, and documentation</h3></div>
891
1245
  <p class="ds">Shows the model profiles and MCP servers, installs or repairs the browser engine, creates a forgeqe.yaml, manages skills, and answers any question about ForgeQE from its documentation, this list, and its own code (the prompts, skills, and source it runs).</p>
@@ -894,9 +1248,10 @@ left to the proxy.</p>
894
1248
  <div class="fact"><span class="mono">What it needs</span><p class="muted">Nothing beyond ForgeQE itself.</p></div>
895
1249
  <div class="fact"><span class="mono">Tools</span><p class="tools"><code>forgeqe_setup</code> <code>capabilities</code> <code>playbook</code> <code>use_capabilities</code> <code>app_action</code> <code>ui_change</code> <code>read_screen</code> <code>page_act</code> <code>hold_on</code></p></div>
896
1250
  </div>
897
- <div class="detail"><span class="mono">In detail</span>
898
- <p class="see">See <a href="../get-started/index.html#doc-how_to_use-2-scaffold-config">2. Scaffold config</a>.</p>
899
- <section class="doc" id="doc-how_to_use-11-skills">
1251
+
1252
+ </article>
1253
+ <div class="feat-detail"><p class="see">See <a href="../get-started/index.html#doc-how_to_use-2-scaffold-config">2. Scaffold config</a>.</p>
1254
+ <section class="doc" data-topic id="doc-how_to_use-11-skills">
900
1255
  <h4>Skills</h4>
901
1256
  <div class="prose"><p>A skill is a folder with a <code>SKILL.md</code>: instructions that teach ForgeQE's agents something a prompt can't know, like your repo's test conventions, a framework, or how to drive an app such as Dynamics 365. The format is the Agent Skills one (Claude Code and others use it), with one ForgeQE field, <code>agents</code>:</p>
902
1257
  <div class="code"><div class="code-bar"><i></i><i></i><i></i><span>markdown</span><button class="copy-code" type="button">Copy</button></div><pre class="lines"><code><span class="ln"><span class="cmd">---
@@ -910,10 +1265,33 @@ left to the proxy.</p>
910
1265
  </span></span></code></pre></div>
911
1266
  <p><code>name</code> is lowercase words joined by hyphens, the same as the folder. Agents choose skills by <code>description</code> alone, so name the concrete signs it applies (a framework, a config file, a host, a product). Quote it when it contains <code>: </code>.</p>
912
1267
  <p><strong>Who uses it.</strong> <code>agents</code> lists <code>forgeqe</code> (ForgeQE's agent: how to handle a kind of request), <code>scribe</code> (writing, healing, finding and reviewing tests), and <code>browser</code> (the browser agent). Without <code>agents</code>, a skill is for <code>forgeqe</code> and <code>scribe</code>; a browser skill must ask for <code>browser</code>.</p>
1268
+ <p><strong>Seeing and adding skills.</strong></p>
1269
+ <div class="views" data-views><div class="view-tabs" role="tablist" aria-label="Show the steps for" hidden><button type="button" role="tab" class="view-tab" data-view="web" aria-selected="true">Web app</button><button type="button" role="tab" class="view-tab" data-view="terminal" aria-selected="false">Terminal</button></div><div class="view-panel" role="tabpanel" data-view="web"><p class="view-label"><strong>Web app</strong></p>
1270
+ <ol>
1271
+ <li>Open <strong>Skills</strong> (under <strong>Knowledge</strong>). <strong>Show</strong> switches between <strong>By agent</strong> and <strong>All skills</strong>; <strong>Find a skill</strong> searches them.</li>
1272
+ <li>Press a skill to read it. A project skill has <strong>Edit</strong>; a built-in one has <strong>Copy to edit</strong>, which makes your own copy that replaces it in this project.</li>
1273
+ <li>Press <strong>Add</strong> to start one: fill in <strong>Name</strong>, <strong>Use when</strong> (the line the agents choose by), <strong>Who it is for</strong> and <strong>Instructions</strong>, then press <strong>Add</strong>.</li>
1274
+ <li>Turn a skill off or on with its <strong>On</strong> switch. <strong>Delete</strong> (in a project skill's editor) removes it.</li>
1275
+ </ol>
1276
+ </div><div class="view-panel" role="tabpanel" data-view="terminal"><p class="view-label"><strong>Terminal</strong></p>
1277
+ <div class="tbl tbl--cols-2"><table>
1278
+ <thead>
1279
+ <tr><th>Command</th><th>What it does</th></tr>
1280
+ </thead>
1281
+ <tbody>
1282
+ <tr><td data-label="Command"><code>forgeqe skills</code></td><td data-label="What it does">The skills each agent can use, where each comes from (and what it replaces), disabled skills, problems, and the folders read</td></tr>
1283
+ <tr><td data-label="Command"><code>forgeqe skills show &lt;name&gt;</code></td><td data-label="What it does">One skill's instructions</td></tr>
1284
+ <tr><td data-label="Command"><code>forgeqe skills new &lt;name&gt; --description &quot;Use when …&quot; [--agent browser] [--user]</code></td><td data-label="What it does">Start a skill in <code>.forgeqe/skills</code> (<code>--user</code>: <code>~/.forgeqe/skills</code>)</td></tr>
1285
+ <tr><td data-label="Command"><code>forgeqe skills check</code></td><td data-label="What it does">Validate every skill; exit 1 when one has a problem</td></tr>
1286
+ <tr><td data-label="Command"><code>forgeqe skills enable|disable &lt;name&gt;</code></td><td data-label="What it does">Edit <code>skills.disable</code> in <code>forgeqe.yaml</code>, keeping its comments</td></tr>
1287
+ <tr><td data-label="Command"><code>/skills [name]</code></td><td data-label="What it does">The same list, or one skill, in the shell</td></tr>
1288
+ </tbody>
1289
+ </table></div>
1290
+ </div></div><p><strong>Asking the agent.</strong> In a chat or the shell you can also ask: &quot;make a skill for our Dynamics date picker&quot; or &quot;teach Quill our test conventions&quot;. ForgeQE's agent gathers the facts and writes the skill into <code>.forgeqe/skills</code>; it applies from the next session. It writes skills only when you ask.</p>
913
1291
  <p><strong>How skills are used.</strong></p>
914
1292
  <ul>
915
- <li>ForgeQE's agent and Quill see the name and description of each skill meant for them, and load the ones that fit the job through the agent runtime's skill tool. A skill adds to their instructions and never overrides them. Quill can also read files next to <code>SKILL.md</code> (for example <code>references/locators.md</code>) when the skill points to them.</li>
916
- <li>Browser runs: ForgeQE's agent passes the browser skills a goal needs to <code>browser_run</code> and <code>run_test_cases</code>. For <code>forgeqe suite</code>, <code>forgeqe monitor</code> and <code>forgeqe run --direct</code>, the engine picks them from the goal with one short model call (at most three), and remembers the choice for that goal, so a monitor's later rounds and repeated cases skip it. <code>--skill NAME</code> (repeatable) fixes the list; <code>--skill none</code> runs without any. The chosen skills' text is added to the browser agent's prompt, at most <code>skills.browser_max_chars</code> (6,000) characters in total; the browser agent reads only <code>SKILL.md</code>.</li>
1293
+ <li>ForgeQE's agent and Quill see the name and description of each skill meant for them, and load the ones that fit the job. A skill adds to their instructions and never overrides them. Quill can also read files next to <code>SKILL.md</code> (for example <code>references/locators.md</code>) when the skill points to them.</li>
1294
+ <li>Browser runs: ForgeQE's agent passes the browser skills a goal needs. For <code>forgeqe suite</code>, <code>forgeqe monitor</code> and <code>forgeqe run --direct</code>, ForgeQE picks them from the goal with one short model call (at most three), and remembers the choice for that goal, so a monitor's later rounds and repeated cases skip it. <code>--skill NAME</code> (repeatable) fixes the list; <code>--skill none</code> runs without any. The chosen skills' text is added to the browser agent's instructions, at most <code>skills.browser_max_chars</code> (6,000) characters in total; the browser agent reads only <code>SKILL.md</code>.</li>
917
1295
  <li><code>run.json</code>, the <code>run.done</code> log line and the report list the skills a run used.</li>
918
1296
  </ul>
919
1297
  <p><strong>Where skills come from</strong>, lowest to highest precedence; a later source replaces a skill of the same name:</p>
@@ -922,7 +1300,7 @@ left to the proxy.</p>
922
1300
  <tr><th>Source</th><th>Folder</th></tr>
923
1301
  </thead>
924
1302
  <tbody>
925
- <tr><td data-label="Source">Built-in</td><td data-label="Folder">the <code>skills/</code> folder ForgeQE ships: <code>playwright-automation</code>, <code>bdd-gherkin</code> and <code>testcontainers</code> (Quill), <code>bdd-scenario-design</code> (ForgeQE's agent: asks about Examples, Background and Rule before a BDD test, and passes the answers to <code>write_test</code> as <code>bdd</code>), <code>azure-sdk-testing</code>, <code>aws-sdk-testing</code> and <code>gcp-sdk-testing</code> (Quill and ForgeQE's agent), <code>dynamics-365</code> (browser), <code>dynamics-365-automation</code> (Quill: D365 control names and locators, steps per control, EasyRepro), <code>web-guidance</code> (ForgeQE's agent and Quill: web platform guides from Modern Web Guidance, pinned, as advisory checks for forms, dialogs, accessibility, passkeys and speed), <code>writing-skills</code> (ForgeQE's agent)</td></tr>
1303
+ <tr><td data-label="Source">Built-in</td><td data-label="Folder">ForgeQE's own: <code>playwright-automation</code>, <code>bdd-gherkin</code> and <code>testcontainers</code> (Quill), <code>bdd-scenario-design</code> (ForgeQE's agent: asks about Examples, Background and Rule before a BDD test), <code>azure-sdk-testing</code>, <code>aws-sdk-testing</code> and <code>gcp-sdk-testing</code> (Quill and ForgeQE's agent), <code>dynamics-365</code> (browser), <code>dynamics-365-automation</code> (Quill: D365 control names and locators, steps per control, EasyRepro), <code>web-guidance</code> (ForgeQE's agent and Quill: web platform guides from Modern Web Guidance, pinned, as advisory checks for forms, dialogs, accessibility, passkeys and speed), <code>writing-skills</code> (ForgeQE's agent)</td></tr>
926
1304
  <tr><td data-label="Source">Global, only with <code>skills.external: true</code></td><td data-label="Folder"><code>~/.claude/skills</code>, <code>~/.agents/skills</code>, and the repo's <code>.claude/skills</code> and <code>.agents/skills</code></td></tr>
927
1305
  <tr><td data-label="Source">User</td><td data-label="Folder"><code>~/.forgeqe/skills</code> (or <code>$FORGEQE_HOME/skills</code>)</td></tr>
928
1306
  <tr><td data-label="Source">Project</td><td data-label="Folder"><code>.forgeqe/skills</code> next to <code>forgeqe.yaml</code>, and the repo's own <code>.forgeqe/skills</code></td></tr>
@@ -930,7 +1308,7 @@ left to the proxy.</p>
930
1308
  </tbody>
931
1309
  </table></div>
932
1310
  <p>Commit <code>.forgeqe/skills</code> so the team and CI share it. ForgeQE only ignores <code>.forgeqe/reports/</code>; if your <code>.gitignore</code> has <code>.forgeqe/</code>, replace it with <code>.forgeqe/*</code> and <code>!.forgeqe/skills/</code> (<code>forgeqe skills new</code> warns when git would ignore the new skill). To change a built-in skill, make a project skill with the same name.</p>
933
- <p>Skills from anywhere else stay out: the agent runtime's own discovery (<code>~/.claude/skills</code>, a repo's <code>.opencode/skills</code>, its built-in skills) is off, and each agent may load only the skills ForgeQE's registry gives it. Skill text is trusted like the repo's own files, so global skills are opt-in.</p>
1311
+ <p>Skills from anywhere else stay out: each agent may load only the skills ForgeQE gives it. Skill text is trusted like the repo's own files, so global skills are opt-in.</p>
934
1312
  <div class="code"><div class="code-bar"><i></i><i></i><i></i><span>yaml</span><button class="copy-code" type="button">Copy</button></div><pre class="lines"><code><span class="ln"><span class="cmd">skills:
935
1313
  </span></span><span class="ln ln--pair"><span class="cmd"> enabled: true</span><span class="pad"> </span><span class="cm"><span class="h">#</span> false (or skills: false) turns skills off
936
1314
  </span></span><span class="ln ln--pair"><span class="cmd"> dirs: [../shared-skills]</span><span class="pad"> </span><span class="cm"><span class="h">#</span> more folders, read last
@@ -938,43 +1316,44 @@ left to the proxy.</p>
938
1316
  </span></span><span class="ln ln--pair"><span class="cmd"> external: false</span><span class="pad"> </span><span class="cm"><span class="h">#</span> true: also the global folders above
939
1317
  </span></span><span class="ln ln--pair"><span class="cmd"> browser_max_chars: 6000</span><span class="pad"> </span><span class="cm"><span class="h">#</span> most skill text added to one browser run
940
1318
  </span></span></code></pre></div>
941
- <p><strong>Commands.</strong></p>
942
- <div class="tbl tbl--cols-2"><table>
943
- <thead>
944
- <tr><th>Command</th><th>What it does</th></tr>
945
- </thead>
946
- <tbody>
947
- <tr><td data-label="Command"><code>forgeqe skills</code></td><td data-label="What it does">The skills each agent can use, where each comes from (and what it replaces), disabled skills, problems, and the folders read</td></tr>
948
- <tr><td data-label="Command"><code>forgeqe skills show &lt;name&gt;</code></td><td data-label="What it does">One skill's instructions</td></tr>
949
- <tr><td data-label="Command"><code>forgeqe skills new &lt;name&gt; --description &quot;Use when …&quot; [--agent browser] [--user]</code></td><td data-label="What it does">Start a skill in <code>.forgeqe/skills</code> (<code>--user</code>: <code>~/.forgeqe/skills</code>)</td></tr>
950
- <tr><td data-label="Command"><code>forgeqe skills check</code></td><td data-label="What it does">Validate every skill; exit 1 when one has a problem</td></tr>
951
- <tr><td data-label="Command"><code>forgeqe skills enable|disable &lt;name&gt;</code></td><td data-label="What it does">Edit <code>skills.disable</code> in <code>forgeqe.yaml</code>, keeping its comments</td></tr>
952
- <tr><td data-label="Command"><code>/skills [name]</code></td><td data-label="What it does">The same list, or one skill, in the shell</td></tr>
953
- </tbody>
954
- </table></div>
955
- <p>In the shell you can also ask: &quot;make a skill for our Dynamics date picker&quot; or &quot;teach Quill our test conventions&quot;. ForgeQE's agent gathers the facts, writes the skill into <code>.forgeqe/skills</code> with <code>forgeqe_setup</code>, and it applies from the next session. It writes skills only when you ask.</p>
956
1319
  </div>
957
1320
  </section>
958
1321
  <section class="doc" id="doc-how_to_use-model-routing">
959
1322
  <h4>Model routing</h4>
960
- <div class="prose"><p><code>llm.routing</code> is <code>off</code> by default for existing projects (<code>forgeqe init</code> writes <code>auto</code>); <code>shadow</code> logs each pick in the session log but changes nothing. <code>--profile</code> and <code>code.model</code> always win, <code>llm.routes</code> limits or pins the profiles an area may use, and <code>llm.agents</code> gives one agent its own default model (ahead of the router and <code>code.model</code>; only <code>--profile</code> overrides it). ForgeQE checks and rates the models once and keeps the result in <code>.forgeqe/model-profile.json</code> (you can edit the ratings). Details: <a href="#doc-docs-model_routing-model-routing-the-right-configured-model-for-each-task">docs/MODEL_ROUTING.md</a>.</p>
961
- <p>List profiles, and the model each area gets:</p>
1323
+ <div class="prose"><p>Routing gives each area of work the configured model it needs. It is <code>off</code> by default for existing projects
1324
+ (<code>forgeqe init</code> writes <code>auto</code>); <code>shadow</code> logs each pick in the session log but changes nothing.</p>
1325
+ <ul>
1326
+ <li><code>--profile</code> and <code>code.model</code> always win.</li>
1327
+ <li><code>llm.routes</code> limits or pins the models an area may use.</li>
1328
+ <li><code>llm.agents</code> gives one agent its own default model (ahead of routing and <code>code.model</code>; only <code>--profile</code> overrides it).</li>
1329
+ <li>ForgeQE checks and rates the models once and keeps the result in <code>.forgeqe/model-profile.json</code> (you can edit the
1330
+ ratings).</li>
1331
+ </ul>
1332
+ <p>Details: <a href="#doc-docs-model_routing-model-routing-the-right-configured-model-for-each-task">docs/MODEL_ROUTING.md</a>.</p>
1333
+ <p><strong>Setting up routing.</strong></p>
1334
+ <div class="views" data-views><div class="view-tabs" role="tablist" aria-label="Show the steps for" hidden><button type="button" role="tab" class="view-tab" data-view="web" aria-selected="true">Web app</button><button type="button" role="tab" class="view-tab" data-view="terminal" aria-selected="false">Terminal</button></div><div class="view-panel" role="tabpanel" data-view="web"><p class="view-label"><strong>Web app</strong></p>
1335
+ <ol>
1336
+ <li>Open <strong>Settings › Routing</strong>.</li>
1337
+ <li>Set <strong>Routing</strong> (<strong>Off</strong>, <strong>Auto</strong> or <strong>Shadow (log only)</strong>) and its <strong>Strategy</strong> (balanced, most capable, or
1338
+ cheapest).</li>
1339
+ <li>Under <strong>Areas of work</strong>, pick the models an area may use, or an agent's own model.</li>
1340
+ <li><strong>Fall back to a working model</strong> replaces a model that does not work.</li>
1341
+ </ol>
1342
+ </div><div class="view-panel" role="tabpanel" data-view="terminal"><p class="view-label"><strong>Terminal</strong></p>
962
1343
  <div class="code"><div class="code-bar"><i></i><i></i><i></i><span>bash</span><button class="copy-code" type="button">Copy</button></div><pre class="lines"><code><span class="ln"><span class="cmd">forgeqe models
963
1344
  </span></span><span class="ln ln--pair"><span class="cmd">forgeqe models --routes</span><span class="pad"> </span><span class="cm"><span class="h">#</span> the pick per area, and why
964
1345
  </span></span><span class="ln ln--pair"><span class="cmd">forgeqe models --routes --profile-models</span><span class="pad"> </span><span class="cm"><span class="h">#</span> check and rate the models again
965
1346
  </span></span></code></pre></div>
966
- </div>
1347
+ </div></div></div>
967
1348
  </section>
968
1349
  <section class="doc" id="doc-readme-privacy">
969
1350
  <h4>Privacy</h4>
970
- <div class="prose"><p>ForgeQE sends no telemetry and turns it off in everything it starts:</p>
971
- <ul>
972
- <li>The engine: PostHog telemetry, cloud sync, and the price-list download are off, and the blank-tab logo its library loads from a CDN is replaced by ForgeQE's start page, which loads nothing.</li>
973
- <li>The agent runtime: auto-update, session sharing, OpenTelemetry spans, and the model catalogue download are off; it uses its bundled model list.</li>
974
- <li>GitHub Copilot: the Copilot SDK's session telemetry, on by default for a signed-in user, is off on every session.</li>
975
- <li>The repo's test command: <code>DO_NOT_TRACK=1</code>, plus the opt-outs for Next.js, Nuxt, Astro, Gatsby, Storybook, Turborepo, Angular, .NET, and Cypress.</li>
976
- </ul>
977
- <p><code>OTEL_EXPORTER_OTLP_*</code> variables are removed from those processes, and your environment cannot turn any of this back on. The traffic is to your model endpoint and the sites the agent visits. Besides that, ForgeQE downloads only public files: the model price lists from models.dev and LiteLLM, once a day (<code>FORGEQE_PRICES=off</code> stops them); the agent runtime from its GitHub releases, when it is not installed; and the engine's ad-block and cookie-banner extensions from the Chrome Web Store, once. Nothing about your runs is sent.</p>
1351
+ <div class="prose"><p>ForgeQE sends no telemetry, and turns it off in everything it starts: the browser, the agents, GitHub Copilot sessions,
1352
+ and your repository's test command (<code>DO_NOT_TRACK=1</code>, plus the opt-outs for Next.js, Nuxt, Astro, Gatsby, Storybook,
1353
+ Turborepo, Angular, .NET and Cypress). Your environment cannot turn any of it back on.</p>
1354
+ <p>The traffic is to your model endpoint, the systems you connect, and the sites the agents visit. Besides that, ForgeQE
1355
+ downloads only public files: the model price lists once a day (<code>FORGEQE_PRICES=off</code> stops them), what it runs on when it
1356
+ is missing, and the browser's ad-block and cookie-banner extensions, once. Nothing about your runs is sent.</p>
978
1357
  </div>
979
1358
  </section>
980
1359
  <section class="doc" id="doc-docs-model_routing-model-routing-the-right-configured-model-for-each-task">
@@ -988,13 +1367,23 @@ model can do: ForgeQE finds out.</p>
988
1367
  </section>
989
1368
  <section class="doc" id="doc-docs-model_routing-turn-it-on">
990
1369
  <h4>Turn it on</h4>
991
- <div class="prose"><p>In <code>forgeqe.yaml</code>:</p>
1370
+ <div class="prose"><p><strong>Choosing how models are routed.</strong></p>
1371
+ <div class="views" data-views><div class="view-tabs" role="tablist" aria-label="Show the steps for" hidden><button type="button" role="tab" class="view-tab" data-view="web" aria-selected="true">Web app</button><button type="button" role="tab" class="view-tab" data-view="terminal" aria-selected="false">Terminal</button></div><div class="view-panel" role="tabpanel" data-view="web"><p class="view-label"><strong>Web app</strong></p>
1372
+ <ol>
1373
+ <li>Open <strong>Settings › Routing</strong>.</li>
1374
+ <li>Set <strong>Routing</strong> to <strong>Off: the profile in use</strong>, <strong>Auto</strong> or <strong>Shadow (log only)</strong>.</li>
1375
+ <li>Set <strong>Strategy</strong> to <strong>Balanced: capability weighed against price</strong>, <strong>Most capable for every area</strong> or <strong>Cheapest:
1376
+ good enough for each area</strong>.</li>
1377
+ <li>Leave <strong>Fall back to a working model</strong> on to use a working model when one has no key or its sign-in is refused.</li>
1378
+ </ol>
1379
+ </div><div class="view-panel" role="tabpanel" data-view="terminal"><p class="view-label"><strong>Terminal</strong></p>
1380
+ <p>In <code>forgeqe.yaml</code>:</p>
992
1381
  <div class="code"><div class="code-bar"><i></i><i></i><i></i><span>yaml</span><button class="copy-code" type="button">Copy</button></div><pre class="lines"><code><span class="ln"><span class="cmd">llm:
993
1382
  </span></span><span class="ln"><span class="cmd"> models_file: ./llms.json
994
1383
  </span></span><span class="ln ln--pair"><span class="cmd"> routing: auto</span><span class="pad"> </span><span class="cm"><span class="h">#</span> off (the default for existing projects) | shadow | auto
995
1384
  </span></span><span class="ln ln--pair"><span class="cmd"> strategy: balanced</span><span class="pad"> </span><span class="cm"><span class="h">#</span> balanced (the default) | capability | cost
996
1385
  </span></span></code></pre></div>
997
- <p><code>forgeqe init</code> writes <code>routing: auto</code> for new projects. With no <code>routing</code> line it is off. <code>shadow</code> decides and logs each pick in the session log
1386
+ </div></div><p><strong>What each setting does.</strong> <code>forgeqe init</code> writes <code>routing: auto</code> for new projects. With no <code>routing</code> line it is off. <code>shadow</code> decides and logs each pick in the session log
998
1387
  (<code>model.route</code>) but changes nothing, so you can see what the router would do before you let it. Shadow still runs the
999
1388
  live checks and the rating call described below.</p>
1000
1389
  <p>Whatever <code>routing</code> says, the model an area gets must work: its key or sign-in is set and it passed a live call
@@ -1003,10 +1392,13 @@ check in <code>model-profile.json</code> is checked again). When it does not, th
1003
1392
  profile first, and ForgeQE says why and how to fix the first. When none works, the error lists each model with the fix.
1004
1393
  Only <code>--profile</code> skips this. With <code>auto</code>, a GitHub Copilot seat counts as costing nothing more per call, so it is picked
1005
1394
  whenever it is rated good enough.</p>
1006
- <p>See the picks, and every model's check with its fix:</p>
1007
- <div class="code"><div class="code-bar"><i></i><i></i><i></i><span>text</span><button class="copy-code" type="button">Copy</button></div><pre class="lines"><code><span class="ln"><span class="cmd">forgeqe models --routes
1395
+ <p><strong>Seeing the picks.</strong> Each area's pick, and every model's check with its fix.</p>
1396
+ <div class="views" data-views><div class="view-tabs" role="tablist" aria-label="Show the steps for" hidden><button type="button" role="tab" class="view-tab" data-view="web" aria-selected="true">Web app</button><button type="button" role="tab" class="view-tab" data-view="terminal" aria-selected="false">Terminal</button></div><div class="view-panel" role="tabpanel" data-view="web"><p class="view-label"><strong>Web app</strong></p>
1397
+ <p>Open <strong>Cost</strong> and look at <strong>Model router</strong>: each area's pick and the models that actually answered for it.</p>
1398
+ </div><div class="view-panel" role="tabpanel" data-view="terminal"><p class="view-label"><strong>Terminal</strong></p>
1399
+ <div class="code"><div class="code-bar"><i></i><i></i><i></i><span>bash</span><button class="copy-code" type="button">Copy</button></div><pre class="lines"><code><span class="ln"><span class="cmd">forgeqe models --routes
1008
1400
  </span></span></code></pre></div>
1009
- </div>
1401
+ </div></div></div>
1010
1402
  </section>
1011
1403
  <section class="doc" id="doc-docs-model_routing-the-areas-of-work">
1012
1404
  <h4>The areas of work</h4>
@@ -1027,8 +1419,14 @@ whenever it is rated good enough.</p>
1027
1419
  </section>
1028
1420
  <section class="doc" id="doc-docs-model_routing-a-default-model-for-each-agent">
1029
1421
  <h4>A default model for each agent</h4>
1030
- <div class="prose"><p>To give one agent its own model whatever <code>routing</code> says, name an <code>llms.json</code> profile for it under <code>llm.agents</code>
1031
- (Settings → Routing → Areas of work, under each area, does the same):</p>
1422
+ <div class="prose"><p>To give one agent its own model whatever <code>routing</code> says, name an <code>llms.json</code> profile for it.</p>
1423
+ <div class="views" data-views><div class="view-tabs" role="tablist" aria-label="Show the steps for" hidden><button type="button" role="tab" class="view-tab" data-view="web" aria-selected="true">Web app</button><button type="button" role="tab" class="view-tab" data-view="terminal" aria-selected="false">Terminal</button></div><div class="view-panel" role="tabpanel" data-view="web"><p class="view-label"><strong>Web app</strong></p>
1424
+ <ol>
1425
+ <li>Open <strong>Settings › Routing</strong>.</li>
1426
+ <li>Under <strong>Areas of work</strong>, open the area and pick the agent's model (<strong>The area's model</strong> leaves it to the area).</li>
1427
+ </ol>
1428
+ </div><div class="view-panel" role="tabpanel" data-view="terminal"><p class="view-label"><strong>Terminal</strong></p>
1429
+ <p>Name the profile under <code>llm.agents</code> in <code>forgeqe.yaml</code>:</p>
1032
1430
  <div class="code"><div class="code-bar"><i></i><i></i><i></i><span>yaml</span><button class="copy-code" type="button">Copy</button></div><pre class="lines"><code><span class="ln"><span class="cmd">llm:
1033
1431
  </span></span><span class="ln"><span class="cmd"> agents:
1034
1432
  </span></span><span class="ln ln--pair"><span class="cmd"> forgeqe: azure-gpt4o</span><span class="pad"> </span><span class="cm"><span class="h">#</span> Atlas
@@ -1036,7 +1434,7 @@ whenever it is rated good enough.</p>
1036
1434
  </span></span><span class="ln ln--pair"><span class="cmd"> forgeqe-test: claude-opus</span><span class="pad"> </span><span class="cm"><span class="h">#</span> the coding agent
1037
1435
  </span></span><span class="ln ln--pair"><span class="cmd"> forgeqe-review: azure-mini</span><span class="pad"> </span><span class="cm"><span class="h">#</span> its reviewer
1038
1436
  </span></span></code></pre></div>
1039
- <p>An agent left out uses its area's pick. The agents are <code>forgeqe</code>, <code>engine</code>, <code>forgeqe-test</code>, <code>forgeqe-heal</code>,
1437
+ </div></div><p><strong>Which agents can have their own model.</strong> An agent left out uses its area's pick. The agents are <code>forgeqe</code>, <code>engine</code>, <code>forgeqe-test</code>, <code>forgeqe-heal</code>,
1040
1438
  <code>forgeqe-migrate</code>, <code>forgeqe-api</code>, <code>forgeqe-review</code>, <code>forgeqe-pr-review</code>, <code>forgeqe-judge</code>, <code>forgeqe-defect-rca</code>,
1041
1439
  <code>forgeqe-refine</code>, <code>forgeqe-find</code>, <code>forgeqe-test-plan</code>, <code>forgeqe-api-plan</code>, <code>forgeqe-explore-plan</code>, <code>forgeqe-data</code>,
1042
1440
  <code>forgeqe-agent-builder</code> and <code>forgeqe-bug-report</code>; <code>forgeqe models --routes</code> lists each with the model it gets. An unknown agent or a profile not
@@ -1097,7 +1495,7 @@ size of the prompt change. Each pick is shown once (&quot;Model for planning: mi
1097
1495
  <h4>How ForgeQE learns the models</h4>
1098
1496
  <div class="prose"><p>The first routed call in a project with two or more usable profiles does this once:</p>
1099
1497
  <ol>
1100
- <li><strong>A live check of each model</strong> (<code>python -m forgeqe_engine probe</code>): one short structured answer and one image.
1498
+ <li><strong>A live check of each model:</strong> one short structured answer and one image.
1101
1499
  This finds a deployment that does not exist, a wrong key, and whether the model really takes images. It also
1102
1500
  measures how fast the model answers.</li>
1103
1501
  <li><strong>One rating call.</strong> The active profile's model receives the facts of every model, never a key, an endpoint or an
@@ -1110,21 +1508,28 @@ are dropped, and ratings are rounded to whole numbers from 1 to 5.</p>
1110
1508
  <p>The live checks reach every profile in <code>llms.json</code> that has a key, whatever <code>llm.routes</code> pins. A pin keeps your runs'
1111
1509
  data on one deployment; the checks carry nothing from your runs. To send nothing to the other profiles at all, use
1112
1510
  <code>routing: off</code>, keep one profile with a key, or pass <code>--profile</code>.</p>
1113
- <p>To check and rate again (for example, after a deployment changed its model):</p>
1114
- <div class="code"><div class="code-bar"><i></i><i></i><i></i><span>text</span><button class="copy-code" type="button">Copy</button></div><pre class="lines"><code><span class="ln"><span class="cmd">forgeqe models --routes --profile-models
1511
+ <p><strong>Checking and rating again</strong> (for example, after a deployment changed its model). This is done at a terminal only:</p>
1512
+ <div class="code"><div class="code-bar"><i></i><i></i><i></i><span>bash</span><button class="copy-code" type="button">Copy</button></div><pre class="lines"><code><span class="ln"><span class="cmd">forgeqe models --routes --profile-models
1115
1513
  </span></span></code></pre></div>
1116
1514
  </div>
1117
1515
  </section>
1118
1516
  <section class="doc" id="doc-docs-model_routing-limit-what-an-area-may-use">
1119
1517
  <h4>Limit what an area may use</h4>
1120
- <div class="prose"><div class="code"><div class="code-bar"><i></i><i></i><i></i><span>yaml</span><button class="copy-code" type="button">Copy</button></div><pre class="lines"><code><span class="ln"><span class="cmd">llm:
1518
+ <div class="prose"><div class="views" data-views><div class="view-tabs" role="tablist" aria-label="Show the steps for" hidden><button type="button" role="tab" class="view-tab" data-view="web" aria-selected="true">Web app</button><button type="button" role="tab" class="view-tab" data-view="terminal" aria-selected="false">Terminal</button></div><div class="view-panel" role="tabpanel" data-view="web"><p class="view-label"><strong>Web app</strong></p>
1519
+ <ol>
1520
+ <li>Open <strong>Settings › Routing</strong>.</li>
1521
+ <li>Under <strong>Areas of work</strong>, pick one or more models for the area. None picked means any configured model; one model
1522
+ picked pins the area to it.</li>
1523
+ </ol>
1524
+ </div><div class="view-panel" role="tabpanel" data-view="terminal"><p class="view-label"><strong>Terminal</strong></p>
1525
+ <div class="code"><div class="code-bar"><i></i><i></i><i></i><span>yaml</span><button class="copy-code" type="button">Copy</button></div><pre class="lines"><code><span class="ln"><span class="cmd">llm:
1121
1526
  </span></span><span class="ln"><span class="cmd"> routing: auto
1122
1527
  </span></span><span class="ln"><span class="cmd"> routes:
1123
1528
  </span></span><span class="ln ln--pair"><span class="cmd"> browser: [gpt4o, gpt54]</span><span class="pad"> </span><span class="cm"><span class="h">#</span> only these two, the router picks between them
1124
1529
  </span></span><span class="ln ln--pair"><span class="cmd"> coding: gpt54</span><span class="pad"> </span><span class="cm"><span class="h">#</span> pinned
1125
1530
  </span></span><span class="ln ln--pair"><span class="cmd"> planning: auto</span><span class="pad"> </span><span class="cm"><span class="h">#</span> any configured model (the default)
1126
1531
  </span></span></code></pre></div>
1127
- <p>A name in <code>routes</code> must be a profile in <code>llms.json</code>, and an area must be one of the six above. Anything else stops
1532
+ </div></div><p><strong>What is checked.</strong> A name in <code>routes</code> must be a profile in <code>llms.json</code>, and an area must be one of the six above. Anything else stops
1128
1533
  ForgeQE at start with a message that names it.</p>
1129
1534
  </div>
1130
1535
  </section>
@@ -1134,13 +1539,12 @@ ForgeQE at start with a message that names it.</p>
1134
1539
  <code>llm.agents</code> pin, a substitution after a model failed its check, the active profile kept because nothing else passed,
1135
1540
  or an escalation. It goes in the usage ledger beside the tokens, so the question &quot;which model wrote the tests, and
1136
1541
  what did that cost&quot; is answered from the calls themselves and not from the logs.</p>
1137
- <p>Where to see it:</p>
1542
+ <p>Where to see it, in the web app only (at a terminal, <code>forgeqe models --routes</code> shows the picks themselves):</p>
1138
1543
  <ul>
1139
- <li><strong>Cost › By area of work</strong> — what each area spent.</li>
1140
- <li><strong>Cost › Routing</strong> — each area's pick, and a <em>Ran on</em> column with the models that actually answered for it.</li>
1141
- <li><strong>Cost › What routing cost</strong> — each area against running everything on <code>llm.active</code>, which is what <code>routing: off</code>
1544
+ <li><strong>Cost › By area of work</strong>: what each area spent.</li>
1545
+ <li><strong>Cost › Model router</strong>: each area's pick, and a <strong>Ran on</strong> column with the models that actually answered for it.</li>
1546
+ <li><strong>Cost › What routing cost</strong>: each area against running everything on <code>llm.active</code>, which is what <code>routing: off</code>
1142
1547
  does. Both sides are priced at today's prices, so the difference is the models' and not a price that moved since.</li>
1143
- <li><code>forgeqe models --routes</code> still shows the picks themselves.</li>
1144
1548
  </ul>
1145
1549
  <p>Two things to read carefully:</p>
1146
1550
  <ul>
@@ -1172,14 +1576,13 @@ model that answered was the right one is what a test's result, a review and a ro
1172
1576
  </div>
1173
1577
  </section>
1174
1578
  </div>
1175
- </article>
1176
1579
 
1177
1580
  <nav class="pager" aria-label="Previous and next">
1178
1581
  <a class="prev" href="../area-mobile/index.html"><small>Previous</small><span>Mobile apps</span></a>
1179
1582
  <a class="next" href="../area-operations/index.html"><small>Next</small><span>Operations and monitoring</span></a>
1180
1583
  </nav>
1181
1584
  </main>
1182
- <aside class="docs-toc" aria-label="On this page"><p class="side-head">On this page</p><ul><li><a href="#cap-test-apps">Test environments and their apps</a></li><li><a href="#doc-how_to_use-environments-and-apps">Environments and apps</a></li><li><a href="#cap-generated-code">What ForgeQE wrote</a></li><li><a href="#doc-how_to_use-generated-code">Generated code</a></li><li><a href="#cap-forgeqe-commands">Every forgeqe command from the shell</a></li><li><a href="#doc-how_to_use-15-commands-cheat-sheet">Commands cheat sheet</a></li><li><a href="#doc-how_to_use-guardrails">Guardrails</a></li><li><a href="#doc-how_to_use-your-prompts-skills-and-product-knowledge">Your prompts, skills, and product knowledge</a></li><li><a href="#cap-product-knowledge">Product knowledge from the product's repositories</a></li><li><a href="#doc-how_to_use-product-knowledge-graph">Product knowledge graph</a></li><li><a href="#cap-knowledge-agent">Librarian: what ForgeQE understood, and your corrections</a></li><li><a href="#doc-how_to_use-librarian">Librarian</a></li><li><a href="#cap-document-search">Search the project's documents, without vectors</a></li><li><a href="#doc-how_to_use-searching-your-documents-without-vectors">Searching your documents, without vectors</a></li><li><a href="#cap-web-search">Search the web</a></li><li><a href="#doc-how_to_use-searching-the-web">Searching the web</a></li><li><a href="#cap-setup-help">Setup, skills, and documentation</a></li><li><a href="#doc-how_to_use-11-skills">Skills</a></li><li><a href="#doc-how_to_use-model-routing">Model routing</a></li><li><a href="#doc-readme-privacy">Privacy</a></li><li><a href="#doc-docs-model_routing-model-routing-the-right-configured-model-for-each-task">Model routing: the right configured model for each task</a></li><li><a href="#doc-docs-model_routing-turn-it-on">Turn it on</a></li><li><a href="#doc-docs-model_routing-the-areas-of-work">The areas of work</a></li><li><a href="#doc-docs-model_routing-a-default-model-for-each-agent">A default model for each agent</a></li><li><a href="#doc-docs-model_routing-how-a-model-is-picked">How a model is picked</a></li><li><a href="#doc-docs-model_routing-how-forgeqe-learns-the-models">How ForgeQE learns the models</a></li><li><a href="#doc-docs-model_routing-limit-what-an-area-may-use">Limit what an area may use</a></li><li><a href="#doc-docs-model_routing-what-routing-cost-and-what-it-saved">What routing cost, and what it saved</a></li><li><a href="#doc-docs-model_routing-what-it-does-not-do">What it does not do</a></li></ul></aside>
1585
+ <aside class="docs-toc" aria-label="On this page"><p class="side-head">On this page</p><ul><li><a href="#cap-test-apps">Test environments and their apps</a></li><li><a href="#cap-generated-code">What ForgeQE wrote</a></li><li><a href="#cap-forgeqe-commands">Every forgeqe command from the shell</a></li><li><a href="#doc-how_to_use-guardrails">Guardrails</a></li><li><a href="#doc-how_to_use-your-prompts-skills-and-product-knowledge">Your prompts, skills, and product knowledge</a></li><li><a href="#cap-product-knowledge">Product knowledge from the product's repositories</a></li><li><a href="#cap-knowledge-agent">Librarian: what ForgeQE understood, and your corrections</a></li><li><a href="#cap-document-search">Search the project's documents, without vectors</a></li><li><a href="#cap-web-search">Search the web</a></li><li><a href="#cap-setup-help">Setup, skills, and documentation</a></li><li><a href="#doc-how_to_use-model-routing">Model routing</a></li><li><a href="#doc-readme-privacy">Privacy</a></li><li><a href="#doc-docs-model_routing-model-routing-the-right-configured-model-for-each-task">Model routing: the right configured model for each task</a></li><li><a href="#doc-docs-model_routing-turn-it-on">Turn it on</a></li><li><a href="#doc-docs-model_routing-the-areas-of-work">The areas of work</a></li><li><a href="#doc-docs-model_routing-a-default-model-for-each-agent">A default model for each agent</a></li><li><a href="#doc-docs-model_routing-how-a-model-is-picked">How a model is picked</a></li><li><a href="#doc-docs-model_routing-how-forgeqe-learns-the-models">How ForgeQE learns the models</a></li><li><a href="#doc-docs-model_routing-limit-what-an-area-may-use">Limit what an area may use</a></li><li><a href="#doc-docs-model_routing-what-routing-cost-and-what-it-saved">What routing cost, and what it saved</a></li><li><a href="#doc-docs-model_routing-what-it-does-not-do">What it does not do</a></li></ul></aside>
1183
1586
  </div>
1184
1587
  <footer class="foot">
1185
1588
  <div class="container foot__row">