@capagents/forgeqe 3.1.1 → 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 (258) hide show
  1. package/HOW_TO_USE.md +5152 -1869
  2. package/README.md +155 -434
  3. package/THIRD_PARTY_NOTICES.md +210 -1
  4. package/dist/docs-site/CREDITS.md +6 -0
  5. package/dist/docs-site/architecture-map/index.html +1 -1
  6. package/dist/docs-site/docs/app-theme.css +126 -13
  7. package/dist/docs-site/docs/architecture/index.html +56 -530
  8. package/dist/docs-site/docs/architecture-reference/index.html +1781 -0
  9. package/dist/docs-site/docs/area-api/index.html +491 -0
  10. package/dist/docs-site/docs/area-automated-tests/index.html +1777 -0
  11. package/dist/docs-site/docs/area-browser/index.html +472 -0
  12. package/dist/docs-site/docs/area-data/index.html +595 -0
  13. package/dist/docs-site/docs/area-desktop/index.html +802 -0
  14. package/dist/docs-site/docs/area-mobile/index.html +683 -0
  15. package/dist/docs-site/docs/area-operations/index.html +1243 -0
  16. package/dist/docs-site/docs/area-pull-requests/index.html +290 -0
  17. package/dist/docs-site/docs/area-quality/index.html +427 -0
  18. package/dist/docs-site/docs/area-release/index.html +435 -0
  19. package/dist/docs-site/docs/area-setup/index.html +1595 -0
  20. package/dist/docs-site/docs/area-systems/index.html +191 -0
  21. package/dist/docs-site/docs/area-test-cases/index.html +927 -0
  22. package/dist/docs-site/docs/containers/index.html +168 -189
  23. package/dist/docs-site/docs/cost-architecture/index.html +110 -113
  24. package/dist/docs-site/docs/custom-agents-first-run/index.html +121 -67
  25. package/dist/docs-site/docs/desktop/index.html +363 -373
  26. package/dist/docs-site/docs/desktop-ci/index.html +39 -36
  27. package/dist/docs-site/docs/docs-tabs.js +56 -0
  28. package/dist/docs-site/docs/evidence/index.html +297 -300
  29. package/dist/docs-site/docs/feature-test-prompts/index.html +79 -73
  30. package/dist/docs-site/docs/get-started/index.html +791 -0
  31. package/dist/docs-site/docs/graphify/index.html +45 -48
  32. package/dist/docs-site/docs/guardrails/index.html +35 -23
  33. package/dist/docs-site/docs/index.html +18 -6729
  34. package/dist/docs-site/docs/mobile/index.html +223 -210
  35. package/dist/docs-site/docs/model-routing/index.html +84 -65
  36. package/dist/docs-site/docs/overview/index.html +192 -0
  37. package/dist/docs-site/docs/product-graph/index.html +60 -62
  38. package/dist/docs-site/docs/product-knowledge/index.html +24 -17
  39. package/dist/docs-site/docs/product-views/index.html +57 -60
  40. package/dist/docs-site/docs/reference/index.html +409 -0
  41. package/dist/docs-site/docs/search.js +1 -1
  42. package/dist/docs-site/docs/using/index.html +798 -0
  43. package/dist/docs-site/docs/web-app/index.html +168 -111
  44. package/dist/docs-site/security/index.html +930 -0
  45. package/dist/docs-site/security/security-theme.css +161 -0
  46. package/dist/docs-site/security/security.js +1465 -0
  47. package/dist/docs-site/vendor/react-18.3.1.production.min.js +31 -0
  48. package/dist/docs-site/vendor/react-dom-18.3.1.production.min.js +267 -0
  49. package/dist/docs-site/vendor/reactflow-11.11.4.umd.js +10 -0
  50. package/dist/forgeqe.js +1903 -1896
  51. package/dist/web/THIRD_PARTY_NOTICES.md +0 -136
  52. package/dist/web/assets/Agent-3pV8Rwap.js +8 -0
  53. package/dist/web/assets/AgentWork-DAnmH0My.js +2 -0
  54. package/dist/web/assets/ApiTests-DW4MRFzG.js +10 -0
  55. package/dist/web/assets/Browse-Bd0ZZfc2.js +1 -0
  56. package/dist/web/assets/Chat-DnBUm_97.js +3 -0
  57. package/dist/web/assets/CommandPalette-B1O9aDTk.js +1 -0
  58. package/dist/web/assets/Compare-1v7_ca7z.js +1 -0
  59. package/dist/web/assets/Cost-CWrc4McH.js +1 -0
  60. package/dist/web/assets/Data-rWSiG4Cq.js +6 -0
  61. package/dist/web/assets/Desktop-3x6EQqos.js +1 -0
  62. package/dist/web/assets/DesktopReview-cSA10Rm3.js +1 -0
  63. package/dist/web/assets/Evidence-CKy3o7cw.js +1 -0
  64. package/dist/web/assets/Explore-CMAxWE_8.js +2 -0
  65. package/dist/web/assets/Features-haQchkhA.js +1 -0
  66. package/dist/web/assets/Flags-BaQjYi_t.js +2 -0
  67. package/dist/web/assets/Flaky-DUuC0qTn.js +1 -0
  68. package/dist/web/assets/Impact-CP0H8ygo.js +3 -0
  69. package/dist/web/assets/Jobs-cYxoYd3i.js +5 -0
  70. package/dist/web/assets/KindPage-DWW8gN5_.js +6 -0
  71. package/dist/web/assets/Migration-Bsm7WU1d.js +2 -0
  72. package/dist/web/assets/PageAgent-c95zT2PJ.js +1 -0
  73. package/dist/web/assets/Product-BQSiR28a.js +7 -0
  74. package/dist/web/assets/Production-CAv0Vtoy.js +1 -0
  75. package/dist/web/assets/Quality-aQPaPYQc.js +1 -0
  76. package/dist/web/assets/Readiness-CkknP87n.js +1 -0
  77. package/dist/web/assets/Record-09IsC9U-.js +1 -0
  78. package/dist/web/assets/Regression-BL4MfN47.js +5 -0
  79. package/dist/web/assets/RelationGraph-Dg4fqt7l.js +1 -0
  80. package/dist/web/assets/Reports-CMV1l-iS.js +2 -0
  81. package/dist/web/assets/Response-DTBFBeKB.js +9 -0
  82. package/dist/web/assets/Responsive-DBRQ9FUO.js +3 -0
  83. package/dist/web/assets/RunDiff-CMDrnsA3.js +1 -0
  84. package/dist/web/assets/Runs-Dkeu6_vZ.js +2 -0
  85. package/dist/web/assets/Settings-KjKm8h-_.js +21 -0
  86. package/dist/web/assets/Steps-HYHK9psI.js +2 -0
  87. package/dist/web/assets/TestCases-Cv6-OSv0.js +1 -0
  88. package/dist/web/assets/TestData-DbEfNlUE.js +2 -0
  89. package/dist/web/assets/TestDebt-DzHQIU4X.js +1 -0
  90. package/dist/web/assets/TestManagement-BgRTGHMT.js +1 -0
  91. package/dist/web/assets/Tosca-DZpHAtnH.js +3 -0
  92. package/dist/web/assets/WhatsNew-jp0c4WSV.js +1 -0
  93. package/dist/web/assets/agents-C0Jg2pN8.js +1 -0
  94. package/dist/web/assets/coverage-BB9BLjGz.js +5 -0
  95. package/dist/web/assets/dataParts-DEPK4eQE.js +3 -0
  96. package/dist/web/assets/diff-CcNwLCX6.js +2 -0
  97. package/dist/web/assets/families-gkpkloLT.js +1 -0
  98. package/dist/web/assets/filters-C7phIFfd.js +1 -0
  99. package/dist/web/assets/fold-i73P-EDV.js +1 -0
  100. package/dist/web/assets/head-BtTqyLlj.js +1 -0
  101. package/dist/web/assets/highlight-DZI39CzZ.js +4 -0
  102. package/dist/web/assets/index-ClFOh63x.css +2 -0
  103. package/dist/web/assets/index-YGWJEkAT.js +64 -0
  104. package/dist/web/assets/input-C2vQ9O3a.js +1 -0
  105. package/dist/web/assets/jsx-runtime-LKYXHABd.js +1 -0
  106. package/dist/web/assets/logos-BmbNTDu2.js +1 -0
  107. package/dist/web/assets/palette-XFlqvgZl.js +1 -0
  108. package/dist/web/assets/paletteCommands-DsbD2ASU.js +1 -0
  109. package/dist/web/assets/parts-DEVx2Sea.js +1 -0
  110. package/dist/web/assets/productParts-Bi-XjszL.js +1 -0
  111. package/dist/web/assets/qualityParts-Dbu01g7G.js +1 -0
  112. package/dist/web/assets/recordTest--Wr40QdN.js +1 -0
  113. package/dist/web/assets/rolldown-runtime-XKyaHtl9.js +1 -0
  114. package/dist/web/assets/route-Dg53WdFu.js +1 -0
  115. package/dist/web/index.html +11 -6
  116. package/docs/ARCHITECTURE.md +50 -563
  117. package/docs/ARCHITECTURE_REFERENCE.md +1484 -0
  118. package/docs/BASAL.md +1 -1
  119. package/docs/CONTAINERS.md +87 -87
  120. package/docs/CUSTOM_AGENTS_FIRST_RUN.md +125 -43
  121. package/docs/DESKTOP-CI.md +18 -3
  122. package/docs/DESKTOP.md +306 -286
  123. package/docs/EVIDENCE.md +1 -1
  124. package/docs/MOBILE.md +107 -75
  125. package/docs/MODEL_ROUTING.md +48 -15
  126. package/docs/PRODUCT_KNOWLEDGE.md +2 -0
  127. package/docs/WEB_APP.md +143 -75
  128. package/docs/feature-test-prompts.md +29 -16
  129. package/docs/user-guide.html +5402 -2269
  130. package/forgeqe.example.yaml +3 -3
  131. package/guardrails/README.md +22 -2
  132. package/knowledge/README.md +15 -2
  133. package/package.json +1 -1
  134. package/prompts/brain.md +1 -0
  135. package/prompts/page-differs.md +1 -1
  136. package/prompts/requests-rule.md +1 -1
  137. package/prompts/test-reviewer.md +1 -1
  138. package/prompts/test-rules.md +3 -4
  139. package/py/forgeqe_engine/recordsession.py +100 -24
  140. package/skills/web-guidance/LICENSE +202 -0
  141. package/skills/web-guidance/SKILL.md +76 -0
  142. package/skills/web-guidance/UPSTREAM +67 -0
  143. package/skills/web-guidance/references/accessibility/accessibility.md +585 -0
  144. package/skills/web-guidance/references/accessibility/accessible-error-announcement.md +302 -0
  145. package/skills/web-guidance/references/accessibility/accessible-generated-content.md +41 -0
  146. package/skills/web-guidance/references/accessibility/respect-os-text-scale.md +127 -0
  147. package/skills/web-guidance/references/css/responsive-design.md +16 -0
  148. package/skills/web-guidance/references/forms/autofill-address-form.md +86 -0
  149. package/skills/web-guidance/references/forms/autofill-payment-form.md +142 -0
  150. package/skills/web-guidance/references/forms/autofill-sign-in-form.md +145 -0
  151. package/skills/web-guidance/references/forms/autofill-sign-up-form.md +155 -0
  152. package/skills/web-guidance/references/forms/forms.md +415 -0
  153. package/skills/web-guidance/references/forms/ime-safe-enter-submit.md +115 -0
  154. package/skills/web-guidance/references/forms/required-field-feedback.md +317 -0
  155. package/skills/web-guidance/references/forms/select-menu-interaction.md +310 -0
  156. package/skills/web-guidance/references/forms/slider.md +184 -0
  157. package/skills/web-guidance/references/forms/sms-otp-form.md +208 -0
  158. package/skills/web-guidance/references/forms/switch.md +60 -0
  159. package/skills/web-guidance/references/forms/validate-input-after-interaction.md +406 -0
  160. package/skills/web-guidance/references/performance/break-up-long-tasks.md +64 -0
  161. package/skills/web-guidance/references/performance/identify-heavy-scripts.md +69 -0
  162. package/skills/web-guidance/references/performance/identify-inp-causes.md +105 -0
  163. package/skills/web-guidance/references/performance/interaction-paint-timing.md +200 -0
  164. package/skills/web-guidance/references/performance/optimize-image-priority.md +73 -0
  165. package/skills/web-guidance/references/performance/performance.md +384 -0
  166. package/skills/web-guidance/references/privacy/privacy.md +247 -0
  167. package/skills/web-guidance/references/security/passkey-authentication.md +218 -0
  168. package/skills/web-guidance/references/security/passkey-management.md +310 -0
  169. package/skills/web-guidance/references/security/passkey-reauthentication.md +142 -0
  170. package/skills/web-guidance/references/security/passkey-registration.md +186 -0
  171. package/skills/web-guidance/references/security/passkeys.md +39 -0
  172. package/skills/web-guidance/references/security/sanitize-untrusted-html.md +105 -0
  173. package/skills/web-guidance/references/security/secure-external-subresources.md +202 -0
  174. package/skills/web-guidance/references/security/security.md +390 -0
  175. package/skills/web-guidance/references/security/trusted-types.md +141 -0
  176. package/skills/web-guidance/references/security/validate-origins.md +197 -0
  177. package/skills/web-guidance/references/security/verify-email-ownership.md +235 -0
  178. package/skills/web-guidance/references/ui-atoms/position-aware-tooltips.md +173 -0
  179. package/skills/web-guidance/references/ui-atoms/responsive-table.md +122 -0
  180. package/skills/web-guidance/references/ui-atoms/viewport-aware-dropdowns.md +178 -0
  181. package/skills/web-guidance/references/ui-behaviors/drag-and-drop.md +108 -0
  182. package/skills/web-guidance/references/ui-behaviors/light-dismiss-a-dialog.md +89 -0
  183. package/skills/web-guidance/references/ui-behaviors/motion.md +97 -0
  184. package/skills/web-guidance/references/ui-behaviors/platform-controls-dismiss-dialog.md +40 -0
  185. package/skills/web-guidance/references/ui-behaviors/prevent-page-scroll-under-modal-dialog.md +59 -0
  186. package/skills/web-guidance/references/ui-behaviors/search-hidden-content.md +141 -0
  187. package/skills/web-guidance/references/ui-behaviors/sortable-table.md +140 -0
  188. package/skills/web-guidance/references/ui-components/accordion.md +343 -0
  189. package/skills/web-guidance/references/ui-components/breadcrumbs.md +168 -0
  190. package/skills/web-guidance/references/ui-components/carousel.md +206 -0
  191. package/skills/web-guidance/references/ui-components/checkbox.md +144 -0
  192. package/skills/web-guidance/references/ui-components/dialog.md +218 -0
  193. package/skills/web-guidance/references/ui-components/hovercard.md +391 -0
  194. package/skills/web-guidance/references/ui-components/menu.md +415 -0
  195. package/skills/web-guidance/references/ui-components/navbar.md +281 -0
  196. package/skills/web-guidance/references/ui-components/navigation-drawer.md +429 -0
  197. package/skills/web-guidance/references/ui-components/persistent-toast-notifications.md +185 -0
  198. package/skills/web-guidance/references/ui-components/progress.md +181 -0
  199. package/skills/web-guidance/references/ui-components/spinner.md +179 -0
  200. package/skills/web-guidance/references/ui-components/tabs.md +371 -0
  201. package/skills/web-guidance/references/ui-components/toolbar.md +277 -0
  202. package/skills/web-guidance/references/user-experience/form-factor-adaptation.md +120 -0
  203. package/skills/web-guidance/references/user-experience/natural-interactions.md +155 -0
  204. package/skills/web-guidance/references/visual-design/color.md +43 -0
  205. package/skills/web-guidance/references/visual-design/dark-mode.md +350 -0
  206. package/dist/web/assets/AgentWork-DwAI0_Of.js +0 -2
  207. package/dist/web/assets/ApiTests-C0vFSHmM.js +0 -10
  208. package/dist/web/assets/Browse-5jfdtRc5.js +0 -2
  209. package/dist/web/assets/Chat-B3uhI94O.js +0 -3
  210. package/dist/web/assets/CommandPalette-D2J4nf5y.js +0 -1
  211. package/dist/web/assets/Compare-CN75w1p9.js +0 -1
  212. package/dist/web/assets/Cost-QoxyjR95.js +0 -1
  213. package/dist/web/assets/Data-BAvkcBVt.js +0 -6
  214. package/dist/web/assets/Desktop-BXdOIalN.js +0 -1
  215. package/dist/web/assets/DesktopReview-Bl2SrPP0.js +0 -1
  216. package/dist/web/assets/Evidence-BJ_I52CD.js +0 -1
  217. package/dist/web/assets/Explore-D9AuyTip.js +0 -2
  218. package/dist/web/assets/Features-CusGMDR9.js +0 -1
  219. package/dist/web/assets/Flags-CycGFuUP.js +0 -2
  220. package/dist/web/assets/Flaky-BcSzJogN.js +0 -1
  221. package/dist/web/assets/Impact-CJHnyZ21.js +0 -3
  222. package/dist/web/assets/Jobs-4xcFzEFo.js +0 -5
  223. package/dist/web/assets/KindPage-BielEIej.js +0 -6
  224. package/dist/web/assets/Migration-NwanKpJg.js +0 -2
  225. package/dist/web/assets/PageAgent-CNw4NXva.js +0 -1
  226. package/dist/web/assets/Product-DS3LJZ4P.js +0 -7
  227. package/dist/web/assets/Production-D3zsyNIS.js +0 -1
  228. package/dist/web/assets/Quality-Ctj2YpC4.js +0 -1
  229. package/dist/web/assets/Readiness-DGcRr_co.js +0 -1
  230. package/dist/web/assets/Record-Cc-wGe_Y.js +0 -1
  231. package/dist/web/assets/Regression-DcsbrRa1.js +0 -5
  232. package/dist/web/assets/Reports-BkCn0-Sf.js +0 -2
  233. package/dist/web/assets/Response-BP0UwQcW.js +0 -9
  234. package/dist/web/assets/Responsive-C8U7dumd.js +0 -3
  235. package/dist/web/assets/RunDiff-BhABuhF_.js +0 -1
  236. package/dist/web/assets/Runs-OwdWEYBv.js +0 -2
  237. package/dist/web/assets/Steps-BvzbQyoD.js +0 -2
  238. package/dist/web/assets/TestCases-CLq_6JA5.js +0 -1
  239. package/dist/web/assets/TestData-B0oKAhp6.js +0 -2
  240. package/dist/web/assets/TestDebt-8NLQ5YV_.js +0 -1
  241. package/dist/web/assets/TestManagement-2LYQ7vsN.js +0 -1
  242. package/dist/web/assets/Tosca-DfvMpPTG.js +0 -3
  243. package/dist/web/assets/WhatsNew-BGFNGwqN.js +0 -1
  244. package/dist/web/assets/families-DYlN5v0i.js +0 -1
  245. package/dist/web/assets/filters-faaSnoIq.js +0 -1
  246. package/dist/web/assets/fold-CUjwWAK3.js +0 -1
  247. package/dist/web/assets/frame-BLPdAXUq.js +0 -13
  248. package/dist/web/assets/head-CsTxBsO0.js +0 -1
  249. package/dist/web/assets/index-CxiCvGZq.js +0 -78
  250. package/dist/web/assets/index-dOIsrzhD.css +0 -2
  251. package/dist/web/assets/line-icons-CwZWt93L.js +0 -1
  252. package/dist/web/assets/logos-dGuc1jIM.js +0 -1
  253. package/dist/web/assets/markdown-BI3F-SJ1.js +0 -10
  254. package/dist/web/assets/paletteCommands-QJiCuUEr.js +0 -1
  255. package/dist/web/assets/parts-CdF1f7yS.js +0 -1
  256. package/dist/web/assets/productParts-hNLD9fN0.js +0 -1
  257. package/dist/web/assets/qualityParts-CT25lBWU.js +0 -1
  258. package/dist/web/assets/recordTest-P792aBUt.js +0 -1
@@ -0,0 +1,1595 @@
1
+ <!doctype html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="utf-8">
5
+ <meta name="viewport" content="width=device-width, initial-scale=1">
6
+ <title>Setup and configuration · ForgeQE docs</title>
7
+ <meta name="description" content="How to use ForgeQE: set it up, configure it, and every feature in detail, with what it needs and how to ask for it.">
8
+ <meta name="theme-color" content="#ffffff">
9
+ <link rel="canonical" href="https://forgeqe.qualityai.co.uk/docs/">
10
+ <link rel="icon" type="image/png" href="../../img/favicon.png">
11
+ <link rel="stylesheet" href="../docs.css">
12
+ <script src="../search.js" defer></script>
13
+ <script src="../docs.js" defer></script>
14
+ <script src="../docs-tabs.js" defer></script>
15
+ <link rel="stylesheet" href="../../app-look.css">
16
+ <link rel="stylesheet" href="../app-theme.css">
17
+ </head>
18
+ <body class="docs">
19
+ <svg aria-hidden="true" style="position:absolute;width:0;height:0;overflow:hidden" xmlns="http://www.w3.org/2000/svg"><!-- Phosphor Duotone (MIT), from web/src/flatIcons.ts --><symbol id="ph-context-engine" viewBox="0 0 256 256"><g fill="currentColor"><path d="m195.88 195.88l-39.6-39.6a40 40 0 0 0 0-56.56l39.6-39.6a96 96 0 0 1 0 135.76M60.12 60.12a96 96 0 0 0 0 135.76l39.6-39.6a40 40 0 0 1 0-56.56Z" opacity=".2"/><path d="M128 24a104 104 0 1 0 104 104A104.11 104.11 0 0 0 128 24m39.1 131.79a47.84 47.84 0 0 0 0-55.58l28.5-28.49a87.83 87.83 0 0 1 0 112.56ZM96 128a32 32 0 1 1 32 32a32 32 0 0 1-32-32m88.28-67.6l-28.49 28.5a47.84 47.84 0 0 0-55.58 0L71.72 60.4a87.83 87.83 0 0 1 112.56 0M60.4 71.72l28.5 28.49a47.84 47.84 0 0 0 0 55.58l-28.5 28.49a87.83 87.83 0 0 1 0-112.56M71.72 195.6l28.49-28.5a47.84 47.84 0 0 0 55.58 0l28.49 28.5a87.83 87.83 0 0 1-112.56 0"/></g></symbol><symbol id="ph-wikis" viewBox="0 0 256 256"><g fill="currentColor"><path d="M224 128a96 96 0 1 1-96-96a96 96 0 0 1 96 96" opacity=".2"/><path d="M140 180a12 12 0 1 1-12-12a12 12 0 0 1 12 12M128 72c-22.06 0-40 16.15-40 36v4a8 8 0 0 0 16 0v-4c0-11 10.77-20 24-20s24 9 24 20s-10.77 20-24 20a8 8 0 0 0-8 8v8a8 8 0 0 0 16 0v-.72c18.24-3.35 32-17.9 32-35.28c0-19.85-17.94-36-40-36m104 56A104 104 0 1 1 128 24a104.11 104.11 0 0 1 104 104m-16 0a88 88 0 1 0-88 88a88.1 88.1 0 0 0 88-88"/></g></symbol><symbol id="ph-shield" viewBox="0 0 256 256"><g fill="currentColor"><path d="M216 56v56c0 96-88 120-88 120s-88-24-88-120V56a8 8 0 0 1 8-8h160a8 8 0 0 1 8 8" opacity=".2"/><path d="M208 40H48a16 16 0 0 0-16 16v56c0 52.72 25.52 84.67 46.93 102.19c23.06 18.86 46 25.26 47 25.53a8 8 0 0 0 4.2 0c1-.27 23.91-6.67 47-25.53C198.48 196.67 224 164.72 224 112V56a16 16 0 0 0-16-16m0 72c0 37.07-13.66 67.16-40.6 89.42a129.3 129.3 0 0 1-39.4 22.2a128.3 128.3 0 0 1-38.92-21.81C61.82 179.51 48 149.3 48 112V56h160ZM82.34 141.66a8 8 0 0 1 11.32-11.32L112 148.69l50.34-50.35a8 8 0 0 1 11.32 11.32l-56 56a8 8 0 0 1-11.32 0Z"/></g></symbol><symbol id="ph-architecture" viewBox="0 0 256 256"><g fill="currentColor"><path d="m224 80l-96 56l-96-56l96-56Z" opacity=".2"/><path d="M230.91 172a8 8 0 0 1-2.91 10.91l-96 56a8 8 0 0 1-8.06 0l-96-56A8 8 0 0 1 36 169.09l92 53.65l92-53.65a8 8 0 0 1 10.91 2.91M220 121.09l-92 53.65l-92-53.65a8 8 0 0 0-8 13.82l96 56a8 8 0 0 0 8.06 0l96-56a8 8 0 1 0-8.06-13.82M24 80a8 8 0 0 1 4-6.91l96-56a8 8 0 0 1 8.06 0l96 56a8 8 0 0 1 0 13.82l-96 56a8 8 0 0 1-8.06 0l-96-56A8 8 0 0 1 24 80m23.88 0L128 126.74L208.12 80L128 33.26Z"/></g></symbol><symbol id="ph-mail" viewBox="0 0 256 256"><g fill="currentColor"><path d="m224 56l-96 88l-96-88Z" opacity=".2"/><path d="M224 48H32a8 8 0 0 0-8 8v136a16 16 0 0 0 16 16h176a16 16 0 0 0 16-16V56a8 8 0 0 0-8-8m-20.57 16L128 133.15L52.57 64ZM216 192H40V74.19l82.59 75.71a8 8 0 0 0 10.82 0L216 74.19z"/></g></symbol><symbol id="ph-healer" viewBox="0 0 256 256"><g fill="currentColor"><path d="M224 72v128a8 8 0 0 1-8 8H40a8 8 0 0 1-8-8V72a8 8 0 0 1 8-8h176a8 8 0 0 1 8 8" opacity=".2"/><path d="M216 56h-40v-8a24 24 0 0 0-24-24h-48a24 24 0 0 0-24 24v8H40a16 16 0 0 0-16 16v128a16 16 0 0 0 16 16h176a16 16 0 0 0 16-16V72a16 16 0 0 0-16-16M96 48a8 8 0 0 1 8-8h48a8 8 0 0 1 8 8v8H96Zm120 152H40V72h176zm-56-64a8 8 0 0 1-8 8h-16v16a8 8 0 0 1-16 0v-16h-16a8 8 0 0 1 0-16h16v-16a8 8 0 0 1 16 0v16h16a8 8 0 0 1 8 8"/></g></symbol></svg>
20
+ <svg aria-hidden="true" style="position:absolute;width:0;height:0;overflow:hidden" xmlns="http://www.w3.org/2000/svg"><!-- Lucide icons v0.454.0, ISC licence (https://lucide.dev) -->
21
+ <symbol id="i-monitor" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><rect width="20" height="14" x="2" y="3" rx="2" />
22
+ <line x1="8" x2="16" y1="21" y2="21" />
23
+ <line x1="12" x2="12" y1="17" y2="21" /></symbol>
24
+ <symbol id="i-smartphone" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><rect width="14" height="20" x="5" y="2" rx="2" ry="2" />
25
+ <path d="M12 18h.01" /></symbol>
26
+ <symbol id="i-braces" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><path d="M8 3H7a2 2 0 0 0-2 2v5a2 2 0 0 1-2 2 2 2 0 0 1 2 2v5c0 1.1.9 2 2 2h1" />
27
+ <path d="M16 21h1a2 2 0 0 0 2-2v-5c0-1.1.9-2 2-2a2 2 0 0 1-2-2V5a2 2 0 0 0-2-2h-1" /></symbol>
28
+ <symbol id="i-container" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><path d="M22 7.7c0-.6-.4-1.2-.8-1.5l-6.3-3.9a1.72 1.72 0 0 0-1.7 0l-10.3 6c-.5.2-.9.8-.9 1.4v6.6c0 .5.4 1.2.8 1.5l6.3 3.9a1.72 1.72 0 0 0 1.7 0l10.3-6c.5-.3.9-1 .9-1.5Z" />
29
+ <path d="M10 21.9V14L2.1 9.1" />
30
+ <path d="m10 14 11.9-6.9" />
31
+ <path d="M14 19.8v-8.1" />
32
+ <path d="M18 17.5V9.4" /></symbol>
33
+ <symbol id="i-shield-check" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><path d="M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z" />
34
+ <path d="m9 12 2 2 4-4" /></symbol>
35
+ <symbol id="i-file-text" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><path d="M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z" />
36
+ <path d="M14 2v4a2 2 0 0 0 2 2h4" />
37
+ <path d="M10 9H8" />
38
+ <path d="M16 13H8" />
39
+ <path d="M16 17H8" /></symbol>
40
+ <symbol id="i-terminal" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><polyline points="4 17 10 11 4 5" />
41
+ <line x1="12" x2="20" y1="19" y2="19" /></symbol>
42
+ <symbol id="i-brain" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><path d="M12 5a3 3 0 1 0-5.997.125 4 4 0 0 0-2.526 5.77 4 4 0 0 0 .556 6.588A4 4 0 1 0 12 18Z" />
43
+ <path d="M12 5a3 3 0 1 1 5.997.125 4 4 0 0 1 2.526 5.77 4 4 0 0 1-.556 6.588A4 4 0 1 1 12 18Z" />
44
+ <path d="M15 13a4.5 4.5 0 0 1-3-4 4.5 4.5 0 0 1-3 4" />
45
+ <path d="M17.599 6.5a3 3 0 0 0 .399-1.375" />
46
+ <path d="M6.003 5.125A3 3 0 0 0 6.401 6.5" />
47
+ <path d="M3.477 10.896a4 4 0 0 1 .585-.396" />
48
+ <path d="M19.938 10.5a4 4 0 0 1 .585.396" />
49
+ <path d="M6 18a4 4 0 0 1-1.967-.516" />
50
+ <path d="M19.967 17.484A4 4 0 0 1 18 18" /></symbol>
51
+ <symbol id="i-git-branch" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><line x1="6" x2="6" y1="3" y2="15" />
52
+ <circle cx="18" cy="6" r="3" />
53
+ <circle cx="6" cy="18" r="3" />
54
+ <path d="M18 9a9 9 0 0 1-9 9" /></symbol>
55
+ <symbol id="i-database" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><ellipse cx="12" cy="5" rx="9" ry="3" />
56
+ <path d="M3 5V19A9 3 0 0 0 21 19V5" />
57
+ <path d="M3 12A9 3 0 0 0 21 12" /></symbol>
58
+ <symbol id="i-zap" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><path d="M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z" /></symbol>
59
+ <symbol id="i-scan-search" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><path d="M3 7V5a2 2 0 0 1 2-2h2" />
60
+ <path d="M17 3h2a2 2 0 0 1 2 2v2" />
61
+ <path d="M21 17v2a2 2 0 0 1-2 2h-2" />
62
+ <path d="M7 21H5a2 2 0 0 1-2-2v-2" />
63
+ <circle cx="12" cy="12" r="3" />
64
+ <path d="m16 16-1.9-1.9" /></symbol>
65
+ <symbol id="i-bug" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><path d="m8 2 1.88 1.88" />
66
+ <path d="M14.12 3.88 16 2" />
67
+ <path d="M9 7.13v-1a3.003 3.003 0 1 1 6 0v1" />
68
+ <path d="M12 20c-3.3 0-6-2.7-6-6v-3a4 4 0 0 1 4-4h4a4 4 0 0 1 4 4v3c0 3.3-2.7 6-6 6" />
69
+ <path d="M12 20v-9" />
70
+ <path d="M6.53 9C4.6 8.8 3 7.1 3 5" />
71
+ <path d="M6 13H2" />
72
+ <path d="M3 21c0-2.1 1.7-3.9 3.8-4" />
73
+ <path d="M20.97 5c0 2.1-1.6 3.8-3.5 4" />
74
+ <path d="M22 13h-4" />
75
+ <path d="M17.2 17c2.1.1 3.8 1.9 3.8 4" /></symbol>
76
+ <symbol id="i-repeat" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><path d="m17 2 4 4-4 4" />
77
+ <path d="M3 11v-1a4 4 0 0 1 4-4h14" />
78
+ <path d="m7 22-4-4 4-4" />
79
+ <path d="M21 13v1a4 4 0 0 1-4 4H3" /></symbol>
80
+ <symbol id="i-code" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><polyline points="16 18 22 12 16 6" />
81
+ <polyline points="8 6 2 12 8 18" /></symbol>
82
+ <symbol id="i-lock" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><rect width="18" height="11" x="3" y="11" rx="2" ry="2" />
83
+ <path d="M7 11V7a5 5 0 0 1 10 0v4" /></symbol>
84
+ <symbol id="i-plug" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><path d="M12 22v-5" />
85
+ <path d="M9 8V2" />
86
+ <path d="M15 8V2" />
87
+ <path d="M18 8v5a4 4 0 0 1-4 4h-4a4 4 0 0 1-4-4V8Z" /></symbol>
88
+ <symbol id="i-layers" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><path d="m12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83Z" />
89
+ <path d="m22 17.65-9.17 4.16a2 2 0 0 1-1.66 0L2 17.65" />
90
+ <path d="m22 12.65-9.17 4.16a2 2 0 0 1-1.66 0L2 12.65" /></symbol>
91
+ <symbol id="i-chevron-right" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><path d="m9 18 6-6-6-6" /></symbol>
92
+ <symbol id="i-copy" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><rect width="14" height="14" x="8" y="8" rx="2" ry="2" />
93
+ <path d="M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2" /></symbol>
94
+ <symbol id="i-play" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><polygon points="6 3 20 12 6 21 6 3" /></symbol>
95
+ <symbol id="i-maximize" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><polyline points="15 3 21 3 21 9" /><polyline points="9 21 3 21 3 15" /><line x1="21" x2="14" y1="3" y2="10" /><line x1="3" x2="10" y1="21" y2="14" /></symbol>
96
+ <symbol id="i-x" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><path d="M18 6 6 18" /><path d="m6 6 12 12" /></symbol>
97
+ <symbol id="i-mail" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><rect width="20" height="16" x="2" y="4" rx="2" /><path d="m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7" /></symbol>
98
+ <symbol id="i-message-square" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><path d="M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z" /></symbol>
99
+ </svg>
100
+
101
+ <a class="skip" href="#main">Skip to content</a>
102
+ <header class="nav" id="navigation">
103
+ <div class="nav__bar">
104
+ <a class="nav__logo" href="https://forgeqe.github.io/" aria-label="ForgeQE by Capgemini, home"><picture><source srcset="../../img/wordmark-white.webp" media="(prefers-color-scheme: dark)"><img src="../../img/wordmark.webp" alt="" width="160" height="76"></picture><span class="nav__by">by <img src="../../img/capgemini-color.svg" alt="" width="92" height="21"></span></a>
105
+ <nav aria-label="Main"><ul class="nav__links"><li><a href="https://forgeqe.github.io/"><svg class="pix pix--nav ph" aria-hidden="true" focusable="false"><use href="#ph-context-engine"/></svg>Product</a></li><li><a href="../index.html" aria-current="page"><svg class="pix pix--nav ph" aria-hidden="true" focusable="false"><use href="#ph-wikis"/></svg>Docs</a></li><li><a href="../../security/index.html"><svg class="pix pix--nav ph" aria-hidden="true" focusable="false"><use href="#ph-shield"/></svg>Security</a></li><li><a href="../../architecture-map/index.html"><svg class="pix pix--nav ph" aria-hidden="true" focusable="false"><use href="#ph-architecture"/></svg>Architecture</a></li><li><a href="https://forgeqe.github.io/contact/"><svg class="pix pix--nav ph" aria-hidden="true" focusable="false"><use href="#ph-mail"/></svg>Contact us</a></li></ul></nav>
106
+ <div class="nav__end">
107
+ <button class="search-open" type="button" aria-haspopup="dialog"><svg class="icon" aria-hidden="true"><use href="#i-scan-search"></use></svg><span>Search</span><kbd>/</kbd></button>
108
+ <button class="nav__menu" type="button" aria-expanded="false" aria-controls="menu"><span class="sr-only">Open the menu</span><svg viewBox="0 0 24 24" aria-hidden="true"><path d="M4 8h16M4 16h16"/></svg></button>
109
+ </div>
110
+ </div>
111
+ <div class="menu" id="menu" hidden><ul><li><a href="https://forgeqe.github.io/"><svg class="pix pix--nav ph" aria-hidden="true" focusable="false"><use href="#ph-context-engine"/></svg>Product</a></li><li><a href="../index.html" aria-current="page"><svg class="pix pix--nav ph" aria-hidden="true" focusable="false"><use href="#ph-wikis"/></svg>Docs</a></li><li><a href="../../security/index.html"><svg class="pix pix--nav ph" aria-hidden="true" focusable="false"><use href="#ph-shield"/></svg>Security</a></li><li><a href="../../architecture-map/index.html"><svg class="pix pix--nav ph" aria-hidden="true" focusable="false"><use href="#ph-architecture"/></svg>Architecture</a></li><li><a href="https://forgeqe.github.io/contact/"><svg class="pix pix--nav ph" aria-hidden="true" focusable="false"><use href="#ph-mail"/></svg>Contact us</a></li></ul></div>
112
+ </header>
113
+ <div class="container docs-layout">
114
+ <nav class="docs-side" aria-label="Docs">
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>
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>
117
+ </nav>
118
+ <main id="main" class="docs-main guide chapter-page">
119
+ <p class="crumbs"><a href="../index.html">Docs</a><span>/</span>Setup and operations</p>
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>
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>
122
+ <p class="guide-lead">Configuration, skills, and help</p>
123
+ <article class="spec feat" id="cap-test-apps">
124
+ <div class="hd"><span class="mono">Setup</span><h3>Test environments and their apps</h3></div>
125
+ <p class="ds">Knows the test environments in env.yaml (QA, UAT, …) and each one's apps: web apps and APIs by URL, Windows desktop apps, and mobile apps, with what each is for. Every agent works from the active one; switches environment on request, picks the apps a scenario needs, and carries values such as an order number from one app to the next.</p>
126
+ <div class="facts">
127
+ <div class="fact"><span class="mono">Ask it</span><ul class="asks"><li>Place an order in the shop, then check its invoice in Billing, in UAT</li><li>Which apps can you test in QA?</li><li>From now on, use the UAT environment</li></ul></div>
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>
129
+ <div class="fact"><span class="mono">Tools</span><p class="tools"><code>test_apps</code> <code>use_environment</code></p></div>
130
+ </div>
131
+
132
+ </article>
133
+ <div class="feat-detail"><section class="doc" data-topic id="doc-how_to_use-environments-and-apps">
134
+ <h4>Environments and apps</h4>
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>
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
144
+ </span></span><span class="ln"><span class="cmd">environments:
145
+ </span></span><span class="ln"><span class="cmd"> qa:
146
+ </span></span><span class="ln"><span class="cmd"> start_app: shop
147
+ </span></span><span class="ln"><span class="cmd"> apps:
148
+ </span></span><span class="ln"><span class="cmd"> shop: { kind: web, url: &quot;https://qa.shop.example.com&quot;, description: Customer web shop where orders are placed }
149
+ </span></span><span class="ln"><span class="cmd"> orders: { kind: api, url: &quot;https://qa.api.example.com/v1&quot;, description: Orders REST API }
150
+ </span></span><span class="ln"><span class="cmd"> billing: { kind: desktop, path: 'C:\Program Files\Contoso\Billing\Billing.exe', args: [&quot;--server&quot;, &quot;qa-db01&quot;], description: Back-office invoicing }
151
+ </span></span><span class="ln"><span class="cmd"> variables: { company: Contoso QA }
152
+ </span></span><span class="ln"><span class="cmd"> secrets: [BILLING_PASSWORD_QA]
153
+ </span></span><span class="ln"><span class="cmd"> uat:
154
+ </span></span><span class="ln"><span class="cmd"> apps: { ... }
155
+ </span></span></code></pre></div>
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>
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
172
+ </span></span><span class="ln"><span class="cmd">password=test@123
173
+ </span></span><span class="ln ln--note"><span class="pad"></span><span class="cm"><span class="h">#</span> env.yaml
174
+ </span></span><span class="ln"><span class="cmd">environments:
175
+ </span></span><span class="ln"><span class="cmd"> QA:
176
+ </span></span><span class="ln"><span class="cmd"> variables:
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;
178
+ </span></span></code></pre></div>
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>
180
+ <ul>
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>
185
+ </ul>
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 }
187
+ </span></span><span class="ln"><span class="cmd">qa:
188
+ </span></span><span class="ln"><span class="cmd"> url: https://qa.shop.example.com
189
+ </span></span><span class="ln"><span class="cmd"> orders_api: https://qa.api.example.com/v1
190
+ </span></span><span class="ln"><span class="cmd"> billing_exe: 'C:\Program Files\Contoso\Billing\Billing.exe'
191
+ </span></span><span class="ln"><span class="cmd"> db_password: ${BILLING_DB_PW_QA}
192
+ </span></span><span class="ln"><span class="cmd">uat:
193
+ </span></span><span class="ln"><span class="cmd"> url: https://uat.shop.example.com
194
+ </span></span></code></pre></div>
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>
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:
203
+ </span></span><span class="ln"><span class="cmd"> qa:
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
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>
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
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)
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
216
+ </span></span></code></pre></div>
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>
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:
220
+ </span></span><span class="ln"><span class="cmd"> qa:
221
+ </span></span><span class="ln"><span class="cmd"> data:
222
+ </span></span><span class="ln ln--pair"><span class="cmd"> customers: test-data/qa/customers.csv</span><span class="pad"> </span><span class="cm"><span class="h">#</span> FORGEQE_DATA_CUSTOMERS
223
+ </span></span><span class="ln ln--pair"><span class="cmd"> orders: test-data/qa/orders.json</span><span class="pad"> </span><span class="cm"><span class="h">#</span> FORGEQE_DATA_ORDERS
224
+ </span></span><span class="ln"><span class="cmd"> uat:
225
+ </span></span><span class="ln"><span class="cmd"> data:
226
+ </span></span><span class="ln"><span class="cmd"> customers: test-data/uat/customers.csv
227
+ </span></span></code></pre></div>
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>
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:
231
+ </span></span><span class="ln"><span class="cmd"> qa:
232
+ </span></span><span class="ln"><span class="cmd"> cloud:
233
+ </span></span><span class="ln"><span class="cmd"> azure: { subscription: 00000000-0000-0000-0000-000000000000, tenant: 00000000-0000-0000-0000-000000000000, resource_group: rg-shop-qa }
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
235
+ </span></span><span class="ln"><span class="cmd"> gcp: { project: shop-qa-123, region: europe-west1 }
236
+ </span></span></code></pre></div>
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>
258
+ <div class="tbl tbl--cols-2"><table>
259
+ <thead>
260
+ <tr><th>Agent</th><th>What it uses</th></tr>
261
+ </thead>
262
+ <tbody>
263
+ <tr><td data-label="Agent">ForgeQE's agent</td><td data-label="What it uses">The environment, its apps (with descriptions), values and cloud accounts in its session notes; plans scenarios across apps from them and carries values (an order number) between them</td></tr>
264
+ <tr><td data-label="Agent">WebPilot</td><td data-label="What it uses">Starts at <code>start_app</code> when no URL is given; knows the environment's web apps by name and stays on their hosts; its values</td></tr>
265
+ <tr><td data-label="Agent">API tests</td><td data-label="What it uses">Call each API's own address: the app of the environment whose URL the API was made from (so it follows the environment picked), else the API's own base URL, never simply <code>api_app</code>'s when that is another API; or, on the workbench, another web or API app a call or the API names as <code>{{app.NAME}}</code>. An API with no usable address on an environment says why and sends nothing</td></tr>
266
+ <tr><td data-label="Agent">DeskPilot</td><td data-label="What it uses">Starts the environment's desktop apps; types only its <code>secrets</code></td></tr>
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>
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>
269
+ <tr><td data-label="Agent">Reports</td><td data-label="What it uses">Every run's report names the test environment</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>
271
+ </tbody>
272
+ </table></div>
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>
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}}
275
+ </span></span><span class="ln"><span class="cmd"> steps:
276
+ </span></span><span class="ln"><span class="cmd"> - action: Open {{app.CorporatePortal}} and sign in
277
+ </span></span><span class="ln"><span class="cmd"> expected: The dashboard shows {{var.employer_name}}
278
+ </span></span></code></pre></div>
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>
290
+ </div>
291
+ </section>
292
+ </div>
293
+ <article class="spec feat" id="cap-generated-code">
294
+ <div class="hd"><span class="mono">Setup</span><h3>What ForgeQE wrote</h3></div>
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>
296
+ <div class="facts">
297
+ <div class="fact"><span class="mono">Ask it</span><ul class="asks"><li>How much of the code ForgeQE wrote is still there?</li><li>Write the commit message for these tests</li></ul></div>
298
+ <div class="fact"><span class="mono">What it needs</span><p class="muted">Nothing beyond ForgeQE itself.</p></div>
299
+ <div class="fact"><span class="mono">Tools</span><p class="tools"><code>generated_attribution</code></p></div>
300
+ </div>
301
+
302
+ </article>
303
+ <div class="feat-detail"><section class="doc" data-topic id="doc-how_to_use-generated-code">
304
+ <h4>Generated code</h4>
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>
327
+ </section>
328
+ </div>
329
+ <article class="spec feat" id="cap-forgeqe-commands">
330
+ <div class="hd"><span class="mono">Setup</span><h3>Every forgeqe command from the shell</h3></div>
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>
332
+ <div class="facts">
333
+ <div class="fact"><span class="mono">Ask it</span><ul class="asks"><li>Show me the context budget</li><li>Add a guardrail: never delete test data in prod</li><li>Diff the brain prompt against ForgeQE's</li><li>Is there a new version of ForgeQE?</li><li>Run the mobile doctor</li><li>Build the BI site</li></ul></div>
334
+ <div class="fact"><span class="mono">What it needs</span><p class="muted">Nothing beyond ForgeQE itself.</p></div>
335
+ <div class="fact"><span class="mono">Tools</span><p class="tools"><code>forgeqe_command</code></p></div>
336
+ </div>
337
+
338
+ </article>
339
+ <div class="feat-detail"><section class="doc" data-topic id="doc-how_to_use-15-commands-cheat-sheet">
340
+ <h4>Commands cheat sheet</h4>
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
344
+ files, installs, costs model calls, or sends anything out shows you the exact command and runs only when you agree.
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
346
+ <code>/logs</code> there.</p>
347
+ </div>
348
+ <section class="doc sub" id="doc-how_to_use-setup"><h5>Setup</h5><div class="prose"><div class="tbl tbl--cols-2"><table>
349
+ <thead>
350
+ <tr><th>Command</th><th>What it does</th></tr>
351
+ </thead>
352
+ <tbody>
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>
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>
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>
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>
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>
358
+ <tr><td data-label="Command"><code>forgeqe models</code></td><td data-label="What it does">List the profiles in <code>llms.json</code> and the active one</td></tr>
359
+ <tr><td data-label="Command"><code>forgeqe models --routes [--profile-models]</code></td><td data-label="What it does">The model each area of work gets (<code>llm.routing</code>) and why; <code>--profile-models</code> checks and rates the models again (see <a href="#doc-docs-model_routing-model-routing-the-right-configured-model-for-each-task">docs/MODEL_ROUTING.md</a>)</td></tr>
360
+ <tr><td data-label="Command"><code>forgeqe features</code></td><td data-label="What it does">What ForgeQE can do, and what each capability still needs in this setup (works without a model)</td></tr>
361
+ <tr><td data-label="Command"><code>forgeqe docs [--guide|--open] [--copy DIR]</code></td><td data-label="What it does">The bundled docs; <code>--guide</code> opens the docs pages (as on forgeqe.github.io/docs/, offline), <code>--open</code> the architecture page</td></tr>
362
+ <tr><td data-label="Command"><code>forgeqe mcp list</code></td><td data-label="What it does">The MCP servers ForgeQE's agent gets from your settings</td></tr>
363
+ <tr><td data-label="Command"><code>forgeqe models --copilot [--add MODEL [--as NAME] [--engine-model MODEL] [--default]]</code></td><td data-label="What it does">Your Copilot seat's models and their premium requests; <code>--add</code> keeps one as a profile (see <a href="../get-started/index.html#doc-how_to_use-github-copilot-seats-as-the-model">GitHub Copilot seats as the model</a>)</td></tr>
364
+ <tr><td data-label="Command"><code>forgeqe web [--port N] [--no-open]</code></td><td data-label="What it does">The web app on 127.0.0.1 (see <a href="../using/index.html#doc-how_to_use-the-web-app">The web app</a>; <code>--url</code> and <code>--public-url</code> are in docs/WEB_APP.md)</td></tr>
365
+ <tr><td data-label="Command"><code>forgeqe context</code></td><td data-label="What it does">What each agent loads on every model call, against its budget (exit 1 over budget)</td></tr>
366
+ <tr><td data-label="Command"><code>forgeqe guardrails [add &quot;rule&quot;]</code></td><td data-label="What it does">The team's rules every agent follows, or add one (see <a href="#doc-how_to_use-guardrails">Guardrails</a>)</td></tr>
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>
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>
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>
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>
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>
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>
373
+ </tbody>
374
+ </table></div>
375
+ </div></section>
376
+ <section class="doc sub" id="doc-how_to_use-run"><h5>Run</h5><div class="prose"><div class="tbl tbl--cols-2"><table>
377
+ <thead>
378
+ <tr><th>Command</th><th>What it does</th></tr>
379
+ </thead>
380
+ <tbody>
381
+ <tr><td data-label="Command"><code>forgeqe start [--repo DIR] [--headed]</code></td><td data-label="What it does">The shell</td></tr>
382
+ <tr><td data-label="Command"><code>forgeqe run &quot;&lt;request&gt;&quot; [--plain]</code></td><td data-label="What it does">One request without the shell</td></tr>
383
+ <tr><td data-label="Command"><code>forgeqe run --direct &quot;&lt;goal&gt;&quot; [--skill NAME]</code></td><td data-label="What it does">One browser goal, no agent</td></tr>
384
+ <tr><td data-label="Command"><code>forgeqe chat --jsonl [--carry-over FILE]</code></td><td data-label="What it does">One live agent for a program, in JSON lines (see <a href="../using/index.html#doc-how_to_use-a-live-agent-for-programs-forgeqe-chat---jsonl">A live agent for programs</a>)</td></tr>
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>
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>
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>
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>
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>
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>
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>
392
+ <tr><td data-label="Command"><code>forgeqe jobs add &lt;name&gt; [--every 15m | --cron &quot;…&quot;] [--now] -- &lt;command...&gt;</code>, <code>forgeqe jobs [list|status|logs|run|stop|remove] &lt;name&gt;</code></td><td data-label="What it does">Commands on a schedule or now, in the jobs service</td></tr>
393
+ <tr><td data-label="Command"><code>forgeqe pipeline watch --github owner/repo --workflow ci.yml | --ado-project NAME --pipeline ID</code></td><td data-label="What it does">The latest run of a CI pipeline; exit 1 while it is failed</td></tr>
394
+ <tr><td data-label="Command"><code>forgeqe investigate &lt;run folder&gt;</code></td><td data-label="What it does">Heal a job run's handed-over failures, each on a local branch</td></tr>
395
+ <tr><td data-label="Command"><code>forgeqe evidence [record|runs|show|check|contract|…]</code></td><td data-label="What it does">An AI agent's runs as evidence</td></tr>
396
+ </tbody>
397
+ </table></div>
398
+ </div></section>
399
+ <section class="doc sub" id="doc-how_to_use-tests"><h5>Tests</h5><div class="prose"><div class="tbl tbl--cols-2"><table>
400
+ <thead>
401
+ <tr><th>Command</th><th>What it does</th></tr>
402
+ </thead>
403
+ <tbody>
404
+ <tr><td data-label="Command"><code>forgeqe code [run-dir] --repo DIR</code></td><td data-label="What it does">Quill writes a test for a run (default: the latest)</td></tr>
405
+ <tr><td data-label="Command"><code>forgeqe heal [&quot;&lt;test command&gt;&quot;] --repo DIR</code></td><td data-label="What it does">Fix tests the app has outgrown, or report app bugs</td></tr>
406
+ <tr><td data-label="Command"><code>forgeqe visual [run] | approve [run] [--page p]</code></td><td data-label="What it does">Each page against its approved screenshot; approve an intended change as the new baseline</td></tr>
407
+ <tr><td data-label="Command"><code>forgeqe quality [run] | trends [page]</code></td><td data-label="What it does">A run's WCAG rules and Core Web Vitals against the budgets; per page over time</td></tr>
408
+ <tr><td data-label="Command"><code>forgeqe explore &lt;story&gt; [--url URL] [--roles a,b]</code></td><td data-label="What it does">Exploratory testing of a story: charters beyond the scripted cases, confirmed defects, proposed cases</td></tr>
409
+ <tr><td data-label="Command"><code>forgeqe record [APP | --url URL] [--case REF] [--name TEXT] [--repo DIR]</code></td><td data-label="What it does">Do a web test's steps yourself; ForgeQE records them and Quill writes the test (see <a href="../area-browser/index.html#doc-how_to_use-recording-a-web-test-by-hand">Recording a web test by hand</a>)</td></tr>
410
+ <tr><td data-label="Command"><code>forgeqe desktop explore|record|replay|setup|apps|doctor|validate …</code></td><td data-label="What it does">Windows apps (see <a href="../area-desktop/index.html#doc-how_to_use-desktop-apps-windows">Desktop apps</a>)</td></tr>
411
+ <tr><td data-label="Command"><code>forgeqe mobile explore|replay|maestro|upload|setup|apps|doctor …</code></td><td data-label="What it does">Android and iOS apps (see <a href="../area-mobile/index.html#doc-how_to_use-mobile-apps-android-ios">Mobile apps</a>)</td></tr>
412
+ <tr><td data-label="Command"><code>forgeqe migrate plan --to &lt;target&gt; [--from DIR] | confirm &lt;plan&gt; | run &lt;plan&gt; | show | list | targets</code></td><td data-label="What it does">Move a test suite to another framework (see <a href="../area-automated-tests/index.html#doc-how_to_use-migrating-a-test-suite">Migrating a test suite</a>)</td></tr>
413
+ <tr><td data-label="Command"><code>forgeqe tosca inspect &lt;file.tsu&gt; | plan &lt;file.tsu&gt; --to &lt;target&gt; | confirm | run | verify | fix …</code></td><td data-label="What it does">Convert Tosca test cases (see <a href="../area-automated-tests/index.html#doc-how_to_use-converting-tosca-tests">Converting Tosca tests</a>)</td></tr>
414
+ <tr><td data-label="Command"><code>forgeqe pack build|run|triage|heal|list|show …</code>, <code>forgeqe pack pipeline init [--github] [--azure-devops]</code></td><td data-label="What it does">Regression packs for a release (see <a href="../area-automated-tests/index.html#doc-how_to_use-regression-packs-for-a-release">Regression packs for a release</a>)</td></tr>
415
+ <tr><td data-label="Command"><code>forgeqe pr-tests [pr] [--base BRANCH] [--run] [--post]</code></td><td data-label="What it does">The tests a pull request can break; <code>--run</code> makes it a CI gate (see <a href="../area-pull-requests/index.html#doc-how_to_use-tests-for-a-pull-request">Tests for a pull request</a>)</td></tr>
416
+ <tr><td data-label="Command"><code>forgeqe impact &lt;repo&gt; &lt;base&gt; &lt;head&gt; | &lt;repo&gt; --pr LINK [--gate] [--post] [--json] [--quick]</code></td><td data-label="What it does">What a change in a product repository reaches, and whether it is ready; <code>--gate</code> exits 1 when it is blocked</td></tr>
417
+ <tr><td data-label="Command"><code>forgeqe report &lt;file|folder&gt;... [--title T] [--out DIR]</code>, <code>forgeqe report setup [--repo DIR]</code></td><td data-label="What it does">report.html from JUnit XML or TRX run outside ForgeQE (see <a href="../area-automated-tests/index.html#doc-how_to_use-reports-for-tests-run-outside-forgeqe">Reports for tests run outside ForgeQE</a>)</td></tr>
418
+ <tr><td data-label="Command"><code>forgeqe a11y &quot;&lt;goal&gt;&quot; --persona a,b [--url URL]</code>, <code>forgeqe a11y personas</code></td><td data-label="What it does">Accessibility testing as personas (see <a href="../area-quality/index.html#doc-how_to_use-accessibility-testing-with-personas">Accessibility testing with personas</a>)</td></tr>
419
+ <tr><td data-label="Command"><code>forgeqe persona [list] | show | create | export | import</code></td><td data-label="What it does">Business personas (see <a href="../area-test-cases/index.html#doc-how_to_use-business-personas">Business personas</a>)</td></tr>
420
+ <tr><td data-label="Command"><code>forgeqe flags list [--env NAME]</code>, <code>forgeqe flags run &lt;pack&gt; &lt;flag=v1,v2&gt; --env NAME</code></td><td data-label="What it does">A regression pack once per feature-flag combination (see <a href="../area-release/index.html#doc-how_to_use-feature-flag-matrix">Feature-flag matrix</a>)</td></tr>
421
+ <tr><td data-label="Command"><code>forgeqe defects [--folder DIR]</code>, <code>forgeqe defects predict [--repo DIR] [--base REF] [--head REF]</code></td><td data-label="What it does">Defect trends, and where a change is likely to cause defects</td></tr>
422
+ <tr><td data-label="Command"><code>forgeqe api load|mock|security|heal|list [SET] …</code></td><td data-label="What it does">Load and latency, a mock server, OWASP API checks, re-learn failing contracts, the saved sets</td></tr>
423
+ <tr><td data-label="Command"><code>forgeqe testmgmt sync | schedule [off|hourly|daily HH:MM]</code></td><td data-label="What it does">Read the test plans of Test management now; set when they are read again (see <a href="../area-automated-tests/index.html#doc-how_to_use-test-management">Test management</a>)</td></tr>
424
+ <tr><td data-label="Command"><code>forgeqe basal [list | new &quot;&lt;question&gt;&quot; … | show &lt;id&gt; | approve &lt;id&gt; | act &lt;id&gt; …]</code></td><td data-label="What it does">BASAL business tests (see <a href="../area-test-cases/index.html#doc-how_to_use-basal-business-testing">BASAL</a>)</td></tr>
425
+ <tr><td data-label="Command"><code>forgeqe api contracts --spec &lt;link|file&gt;</code></td><td data-label="What it does">API contracts from OpenAPI/Swagger, WSDL, GraphQL, .proto, or grpc://</td></tr>
426
+ <tr><td data-label="Command"><code>forgeqe api contracts --run [RUN]</code></td><td data-label="What it does">API contracts from the calls a browser run saw the app make</td></tr>
427
+ <tr><td data-label="Command"><code>forgeqe api run [SET] [--base-url URL]</code></td><td data-label="What it does">Run contracts against the API, no browser; exit 1 on a failure</td></tr>
428
+ <tr><td data-label="Command"><code>forgeqe api tests [SET] --repo DIR</code></td><td data-label="What it does">Quill writes contracts as API tests in the repo</td></tr>
429
+ <tr><td data-label="Command"><code>forgeqe api scenarios --run | --spec &lt;link&gt; | --cases &lt;refs&gt; | --text &quot;...&quot;</code></td><td data-label="What it does">End-to-end API scenarios: chained from a run, lifecycles and negative cases from a description, or planned from test cases or plain English</td></tr>
430
+ <tr><td data-label="Command"><code>forgeqe api run-scenarios [SET] [--allow-writes]</code></td><td data-label="What it does">Run them against the API; exit 1 on a failure</td></tr>
431
+ <tr><td data-label="Command"><code>forgeqe api tests --scenarios --repo DIR</code></td><td data-label="What it does">Scenario tests on the repo's existing API helpers</td></tr>
432
+ <tr><td data-label="Command"><code>forgeqe generated [--repo DIR] [--json]</code></td><td data-label="What it does">How much of the code ForgeQE wrote, and how much is still there</td></tr>
433
+ <tr><td data-label="Command"><code>forgeqe eval domain [--only id,id] [--repeat N] [--min 0.8]</code></td><td data-label="What it does">Whether the agent applies domain and regulatory knowledge, with the domain declared and without; <code>--min</code> makes it a CI gate (see <a href="../area-test-cases/index.html#doc-how_to_use-16-domain-and-regulations">Domain and regulations</a>)</td></tr>
434
+ </tbody>
435
+ </table></div>
436
+ </div></section>
437
+ <section class="doc sub" id="doc-how_to_use-data"><h5>Data</h5><div class="prose"><div class="tbl tbl--cols-2"><table>
438
+ <thead>
439
+ <tr><th>Command</th><th>What it does</th></tr>
440
+ </thead>
441
+ <tbody>
442
+ <tr><td data-label="Command"><code>forgeqe db [list]</code>, <code>forgeqe db test|tables|refresh|batches|examples [name] [words]</code></td><td data-label="What it does">The databases set up here; connect to one, its tables, read its schema again, test data batches, remembered queries (see <a href="../area-data/index.html#doc-how_to_use-databases">Databases</a>)</td></tr>
443
+ <tr><td data-label="Command"><code>forgeqe db query &lt;name&gt; &quot;&lt;sql&gt;&quot; [--dry-run] [--max-rows N] [--json]</code></td><td data-label="What it does">One checked read; writes go through the agent</td></tr>
444
+ <tr><td data-label="Command"><code>forgeqe db ask &quot;&lt;question&gt;&quot; [--db NAME] [--run] [--save FILE.sql]</code></td><td data-label="What it does">ForgeQE's agent writes the SQL; prints only the SQL</td></tr>
445
+ <tr><td data-label="Command"><code>forgeqe data gen &lt;spec.yaml&gt; [--db NAME] [--format csv|json|sql] [--out DIR] [--insert --yes] [--seed N]</code></td><td data-label="What it does">Test data from a spec (see <a href="../area-data/index.html#doc-how_to_use-test-data">Test data</a>)</td></tr>
446
+ <tr><td data-label="Command"><code>forgeqe data batches [--db NAME]</code>, <code>forgeqe data clean &lt;batch&gt; [--db NAME] --yes</code></td><td data-label="What it does">The batches inserted; remove one</td></tr>
447
+ <tr><td data-label="Command"><code>forgeqe flows [list]|map|impact &lt;db.table[.column]&gt;</code></td><td data-label="What it does">The data flows in <code>flows.yaml</code>, what feeds what, everything downstream (see <a href="../area-data/index.html#doc-how_to_use-data-flows">Data flows</a>)</td></tr>
448
+ <tr><td data-label="Command"><code>forgeqe flows check [name ...] [--junit FILE] [--post-ado]</code></td><td data-label="What it does">Check each hop: arrived, complete, correct, on time</td></tr>
449
+ <tr><td data-label="Command"><code>forgeqe flows trace &lt;db.table|flow,flow&gt; &lt;key&gt; [--wait SECONDS]</code></td><td data-label="What it does">Follow one record hop by hop</td></tr>
450
+ <tr><td data-label="Command"><code>forgeqe data request &quot;&lt;need&gt;&quot; [--db NAME] [--kind existing|new|auto]</code>, <code>forgeqe data fetch &lt;name&gt;</code>, <code>forgeqe data requests</code>, <code>forgeqe data log</code></td><td data-label="What it does">Ask Miner for test data; a kept request's data again, no model</td></tr>
451
+ <tr><td data-label="Command"><code>forgeqe data ask &quot;&lt;question&gt;&quot; --as query|checks|script</code>, <code>forgeqe data checks &lt;name&gt;</code></td><td data-label="What it does">A question as a query, data checks or a database test script; kept checks run again</td></tr>
452
+ </tbody>
453
+ </table></div>
454
+ </div></section>
455
+ <section class="doc sub" id="doc-how_to_use-memory-logins-monitoring"><h5>Memory, logins, monitoring</h5><div class="prose"><div class="tbl tbl--cols-2"><table>
456
+ <thead>
457
+ <tr><th>Command</th><th>What it does</th></tr>
458
+ </thead>
459
+ <tbody>
460
+ <tr><td data-label="Command"><code>forgeqe memory [show &lt;host&gt;] [flows]</code></td><td data-label="What it does">What page memory knows</td></tr>
461
+ <tr><td data-label="Command"><code>forgeqe memory clear [host|app] --yes</code></td><td data-label="What it does">Forget a host, an app, or everything</td></tr>
462
+ <tr><td data-label="Command"><code>forgeqe memory stats [--json]</code></td><td data-label="What it does">How often memory stood in for the model, per area</td></tr>
463
+ <tr><td data-label="Command"><code>forgeqe login &lt;name&gt;</code> / <code>forgeqe logins</code></td><td data-label="What it does">Sign in by hand once; list or clear saved sessions</td></tr>
464
+ <tr><td data-label="Command"><code>forgeqe login code &lt;name&gt; [--since TIME]</code></td><td data-label="What it does">The one-time code the login's site sent; only the code is printed</td></tr>
465
+ <tr><td data-label="Command"><code>forgeqe services [status|up|down|logs] [name ...]</code></td><td data-label="What it does">The services forgeqe.yaml declares, in Docker or Podman (see <a href="../area-operations/index.html#doc-how_to_use-containers-and-mock-services">Containers and mock services</a>)</td></tr>
466
+ <tr><td data-label="Command"><code>forgeqe monitor [--once] [--test-alerts]</code></td><td data-label="What it does">Checks on a schedule, with Teams and email alerts</td></tr>
467
+ <tr><td data-label="Command"><code>forgeqe notify test [channel]</code></td><td data-label="What it does">Send a test card to the notification channels (see <a href="../area-operations/index.html#doc-how_to_use-17-notifications">Notifications</a>)</td></tr>
468
+ <tr><td data-label="Command"><code>forgeqe mcp [--repo DIR]</code></td><td data-label="What it does">ForgeQE's tools as an MCP server for other agents</td></tr>
469
+ <tr><td data-label="Command"><code>forgeqe skills [show|new|check|enable|disable]</code></td><td data-label="What it does">The skills each agent can use; start, validate, or turn one off</td></tr>
470
+ <tr><td data-label="Command"><code>forgeqe logs [bundle] [--shots]</code></td><td data-label="What it does">Recent session logs; one archive of the newest to share</td></tr>
471
+ <tr><td data-label="Command"><code>forgeqe update [version] [--check]</code></td><td data-label="What it does">Update every forgeqe on PATH, waiting while the registries catch up</td></tr>
472
+ </tbody>
473
+ </table></div>
474
+ </div></section>
475
+ <section class="doc sub" id="doc-how_to_use-in-the-shell-1"><h5>In the shell</h5><div class="prose"><div class="tbl tbl--cols-2"><table>
476
+ <thead>
477
+ <tr><th>Input</th><th>Action</th></tr>
478
+ </thead>
479
+ <tbody>
480
+ <tr><td data-label="Input">A request, then Enter</td><td data-label="Action">ForgeQE's agent works it out</td></tr>
481
+ <tr><td data-label="Input"><code>/stop</code> or Esc</td><td data-label="Action">Stop what is running</td></tr>
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>
483
+ <tr><td data-label="Input"><code>/headed on|off</code></td><td data-label="Action">Show the browser window</td></tr>
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>
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>
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>
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>
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>
489
+ <tr><td data-label="Input"><code>/logs [shots]</code></td><td data-label="Action">Save this session's log and runs in one archive to share</td></tr>
490
+ <tr><td data-label="Input"><code>/features</code></td><td data-label="Action">What ForgeQE can do here: ✓ ready, ◐ works with some parts to set up, ○ needs setup, with the fix (works without a model)</td></tr>
491
+ <tr><td data-label="Input"><code>/init</code></td><td data-label="Action">Set ForgeQE up in this folder, as <code>forgeqe init</code> does: <code>forgeqe.yaml</code>, <code>llms.json</code>, and editable prompts, skills, and knowledge; the session reads them at once</td></tr>
492
+ <tr><td data-label="Input"><code>/skills [name]</code></td><td data-label="Action">The skills each agent can use, or one skill's instructions</td></tr>
493
+ <tr><td data-label="Input"><code>/generated</code></td><td data-label="Action">How much of this repository's code ForgeQE wrote, and how much is still there</td></tr>
494
+ <tr><td data-label="Input"><code>/db [test|tables|refresh|batches|examples|add] [name]</code></td><td data-label="Action">The databases set up here; <code>/db add</code> sets one up with the agent</td></tr>
495
+ <tr><td data-label="Input"><code>/report</code>, <code>/report export</code>, <code>/report &lt;ask&gt;</code></td><td data-label="Action">The team report; your bundle to share; ask the agent for a report</td></tr>
496
+ <tr><td data-label="Input"><code>/auth [system]</code>, <code>/auth logout &lt;system&gt;</code></td><td data-label="Action">Sign in to a system in the browser (the token is typed unseen), forget one; <code>/auth</code> alone shows what is signed in</td></tr>
497
+ <tr><td data-label="Input"><code>/clear</code>, <code>/help</code>, <code>/exit</code></td><td data-label="Action">Clear the transcript, show help, quit</td></tr>
498
+ <tr><td data-label="Input">Drag with the mouse</td><td data-label="Action">Copy the selected text</td></tr>
499
+ <tr><td data-label="Input">Ctrl-P</td><td data-label="Action">Command palette: actions, commands, profiles, example requests</td></tr>
500
+ <tr><td data-label="Input">Ctrl-R</td><td data-label="Action">Refine the request before sending it</td></tr>
501
+ <tr><td data-label="Input"><code>/</code>, <code>@</code></td><td data-label="Action">Suggest commands; suggest runs, files, and work items to reference</td></tr>
502
+ <tr><td data-label="Input">Shift-Tab</td><td data-label="Action">Move between the chat and the Plan, Activity, and Files panels</td></tr>
503
+ <tr><td data-label="Input">Cmd/Ctrl-click a path</td><td data-label="Action">Open a report, file, or web address</td></tr>
504
+ </tbody>
505
+ </table></div>
506
+ <hr />
507
+ </div></section>
508
+ </section>
509
+ <section class="doc" id="doc-how_to_use-guardrails">
510
+ <h4>Guardrails</h4>
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>
540
+ </section>
541
+ <section class="doc" id="doc-how_to_use-your-prompts-skills-and-product-knowledge">
542
+ <h4>Your prompts, skills, and product knowledge</h4>
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>
544
+ <div class="tbl tbl--cols-2"><table>
545
+ <thead>
546
+ <tr><th>Folder</th><th>What it holds</th></tr>
547
+ </thead>
548
+ <tbody>
549
+ <tr><td data-label="Folder"><code>.forgeqe/prompts/</code></td><td data-label="What it holds">Every prompt ForgeQE's agents work from, one markdown file each: ForgeQE's agent (<code>brain.md</code>), Quill (<code>test-agent.md</code>, <code>test-rules.md</code>), the reviewer, healing, finding tests, pull request review, API tests and scenarios, exploratory charters, and the browser agent (<code>browser-*.md</code>, plus <code>browser-extra.md</code> for your own instructions).</td></tr>
550
+ <tr><td data-label="Folder"><code>.forgeqe/skills/</code></td><td data-label="What it holds">The built-in skills (framework and app playbooks), to adapt to your project; add your own next to them.</td></tr>
551
+ <tr><td data-label="Folder"><code>.forgeqe/knowledge/</code></td><td data-label="What it holds">Product knowledge templates: the product and its flows, roles, glossary, business rules, test data, environments.</td></tr>
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>
553
+ </tbody>
554
+ </table></div>
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>
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">---
587
+ </span></span><span class="ln"><span class="cmd">name: tag-work-items
588
+ </span></span><span class="ln"><span class="cmd">description: &quot;Tests carry the work item they cover&quot;
589
+ </span></span><span class="ln"><span class="cmd">for: test-agent, browser-extra
590
+ </span></span><span class="ln"><span class="cmd">---
591
+ </span></span><span class="ln"><span class="cmd">Tag every test with the Azure DevOps work item it covers.
592
+ </span></span><span class="ln"><span class="cmd">If the request names no work item, ask for it.
593
+ </span></span></code></pre></div>
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
603
+ </span></span></code></pre></div>
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>
606
+ <div class="tbl tbl--cols-5"><table>
607
+ <thead>
608
+ <tr><th>Kind</th><th>Prompts</th><th>Structure</th><th>Few-shot examples</th><th>Execution contract</th></tr>
609
+ </thead>
610
+ <tbody>
611
+ <tr><td data-label="Kind">agent: works with tools over many steps</td><td data-label="Prompts">brain, test-agent, heal, api-tests, pr-review, find-tests</td><td data-label="Structure">Role, Objective, Execution contract, Rules, Output</td><td data-label="Few-shot examples">where routing or reply format varies</td><td data-label="Execution contract">Preconditions, Tools, Procedure, Stop when, On failure, Evidence</td></tr>
612
+ <tr><td data-label="Kind">structured: one answer in a fixed shape</td><td data-label="Prompts">refine, api-scenarios, explore-charters, eval-judge, test-reviewer, browser-skill-select</td><td data-label="Structure">Role, Objective, Inputs, Rules, Output, Examples</td><td data-label="Few-shot examples">two or more worked examples</td><td data-label="Execution contract">–</td></tr>
613
+ <tr><td data-label="Kind">fragment: rules included in other prompts</td><td data-label="Prompts">test-rules, domain-rule, skill-rule, conventions, the browser agent's rules</td><td data-label="Structure">rules only</td><td data-label="Few-shot examples">–</td><td data-label="Execution contract">–</td></tr>
614
+ </tbody>
615
+ </table></div>
616
+ <ul>
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>
636
+ </ul>
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>
662
+ </section>
663
+ </div>
664
+ <article class="spec feat" id="cap-product-knowledge">
665
+ <div class="hd"><span class="mono">Setup</span><h3>Product knowledge from the product's repositories</h3></div>
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>
667
+ <div class="facts">
668
+ <div class="fact"><span class="mono">Ask it</span><ul class="asks"><li>How does the product cancel an order? Show the endpoints and tables involved</li><li>What does a change to OrderService reach, and which tests cover it?</li><li>Which repository serves POST /api/orders?</li><li>Build the product knowledge graph</li><li>Walk me through the checkout flow, step by step</li></ul></div>
669
+ <div class="fact"><span class="mono">What it needs</span><ul class="needs"><li><span class="need req">Required</span><span>The product's repositories: product.repos in forgeqe.yaml, a name and the path of a local clone each</span></li></ul></div>
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>
671
+ <div class="fact"><span class="mono">Tools</span><p class="tools"><code>product_knowledge</code></p></div>
672
+ </div>
673
+
674
+ </article>
675
+ <div class="feat-detail"><section class="doc" data-topic id="doc-how_to_use-product-knowledge-graph">
676
+ <h4>Product knowledge graph</h4>
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>
683
+ <ol>
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>
696
+ </ol>
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>
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:
700
+ </span></span><span class="ln"><span class="cmd"> name: Shop
701
+ </span></span><span class="ln"><span class="cmd"> repos:
702
+ </span></span><span class="ln"><span class="cmd"> web: { path: ../shop-web }
703
+ </span></span><span class="ln"><span class="cmd"> orders: { git: https://dev.azure.com/acme/Shop/_git/orders, branch: main, token_env: ADO_PAT }
704
+ </span></span><span class="ln"><span class="cmd"> crm: { git: https://bitbucket.acme.local/scm/crm/crm-core.git, token_env: BITBUCKET_TOKEN }
705
+ </span></span><span class="ln ln--pair"><span class="cmd"> mobile: { git: git@github.com:acme/shop-app.git }</span><span class="pad"> </span><span class="cm"><span class="h">#</span> ssh signs in with your ssh keys
706
+ </span></span><span class="ln"><span class="cmd"> exclude: [&quot;**/generated/**&quot;]
707
+ </span></span><span class="ln ln--pair"><span class="cmd"> model: true</span><span class="pad"> </span><span class="cm"><span class="h">#</span> false: structure only, nothing goes to a model
708
+ </span></span><span class="ln ln--pair"><span class="cmd"> max_model_files: 400</span><span class="pad"> </span><span class="cm"><span class="h">#</span> most changed files the model reads in one build
709
+ </span></span><span class="ln ln--pair"><span class="cmd"> docs:</span><span class="pad"> </span><span class="cm"><span class="h">#</span> documents and links, by name: one of path, url, confluence, or app each
710
+ </span></span><span class="ln"><span class="cmd"> handbook: { path: ../shop-docs }
711
+ </span></span><span class="ln"><span class="cmd"> help: { url: https://help.shop.example/, depth: 1, max_pages: 100 }
712
+ </span></span><span class="ln"><span class="cmd"> api: { url: https://api.shop.example/openapi.json }
713
+ </span></span><span class="ln"><span class="cmd"> wiki: { confluence: SHOP }
714
+ </span></span><span class="ln"><span class="cmd"> shop: { app: shop-web }
715
+ </span></span></code></pre></div>
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
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
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
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)
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;
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
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
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
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
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
740
+ </span></span><span class="ln"><span class="cmd">forgeqe knowledge ask &quot;Can a customer cancel an order that has shipped?&quot;
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
742
+ </span></span></code></pre></div>
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>
749
+ <ul>
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
757
+ built from.</li>
758
+ <li><strong>When a server cannot be reached,</strong> the build reads the last fetched commit and says so; a repository never fetched
759
+ keeps its graph from the last build. Neither stops the other repositories.</li>
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
761
+ build read and what came and went.</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>
764
+ </ul>
765
+ <p><strong>What the runs did, against the code.</strong> Every build also reads the API calls ForgeQE's last 50 runs recorded
766
+ (<code>network.json</code> in the reports folder: method, host, path and status; never a body, header or query value, and a path
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>
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
776
+ </span></span></code></pre></div>
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>
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
780
+ </span></span></code></pre></div>
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>,
782
+ each document link's, and the model's key), and run it once. Every night, and when you start it, the pipeline:</p>
783
+ <ol>
784
+ <li>installs ForgeQE at this exact version;</li>
785
+ <li>starts from the last pack, so only what changed is read again and the history goes on;</li>
786
+ <li>runs <code>forgeqe knowledge build --yes</code> (with the model, unless you untick it);</li>
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
788
+ the <code>forgeqe-knowledge</code> branch.</li>
789
+ </ol>
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
791
+ service needs Contribute on the repository to publish the branch.</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>
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:
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 }
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 }
803
+ </span></span></code></pre></div>
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
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)
806
+ </span></span></code></pre></div>
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>
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:
824
+ </span></span><span class="ln"><span class="cmd"> repos:
825
+ </span></span><span class="ln"><span class="cmd"> crm-core: { git: https://bitbucket.acme.local/scm/crm/crm-core.git, system: CRM }
826
+ </span></span><span class="ln"><span class="cmd"> crm-api: { git: https://bitbucket.acme.local/scm/crm/crm-api.git, system: CRM }
827
+ </span></span><span class="ln"><span class="cmd"> shop-web: { path: ../shop-web, system: Digital }
828
+ </span></span></code></pre></div>
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>
919
+ <p><strong>Checking the answers.</strong> Write questions whose answers your team knows, with the words a right answer says and the
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>
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/
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
926
+ </span></span></code></pre></div>
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>
945
+ <p><strong>How it is deployed and wired.</strong> From configuration files the build also reads, without a model:</p>
946
+ <div class="tbl tbl--cols-2"><table>
947
+ <thead>
948
+ <tr><th>File</th><th>What it gives</th></tr>
949
+ </thead>
950
+ <tbody>
951
+ <tr><td data-label="File"><code>docker-compose*.yml</code>, <code>compose*.yml</code></td><td data-label="What it gives">each service, the repository it is built from (<code>build: ../payments</code>), its ports, and the addresses in its environment</td></tr>
952
+ <tr><td data-label="File">Kubernetes manifests (<code>k8s/</code>, <code>deploy/</code>, <code>manifests/</code> …)</td><td data-label="What it gives">Deployments and their image and addresses, Ingress routes, ConfigMap addresses</td></tr>
953
+ <tr><td data-label="File"><code>kong.yml</code>, nginx <code>*.conf</code></td><td data-label="What it gives">gateway routes to the services behind them, and the authentication plugins on them</td></tr>
954
+ <tr><td data-label="File"><code>appsettings.json</code>, <code>application*.yml</code>, <code>application*.properties</code></td><td data-label="What it gives">base URLs the service is given, and topic and queue names (<code>topics.cancelled: order.cancelled</code>)</td></tr>
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>
956
+ </tbody>
957
+ </table></div>
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>
976
+ <div class="tbl tbl--cols-2"><table>
977
+ <thead>
978
+ <tr><th>Source</th><th>What it gives</th></tr>
979
+ </thead>
980
+ <tbody>
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>
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>
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>
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>
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>
986
+ </tbody>
987
+ </table></div>
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>
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:
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
1036
+ </span></span><span class="ln"><span class="cmd"> neo4j:
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)
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://
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
1040
+ </span></span></code></pre></div>
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
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
1044
+ </span></span><span class="ln"><span class="cmd">forgeqe graph search &quot;cancel an order&quot;
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
1047
+ </span></span></code></pre></div>
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>
1052
+ </div>
1053
+ </section>
1054
+ </div>
1055
+ <article class="spec feat" id="cap-knowledge-agent">
1056
+ <div class="hd"><span class="mono">Setup</span><h3>Librarian: what ForgeQE understood, and your corrections</h3></div>
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>
1058
+ <div class="facts">
1059
+ <div class="fact"><span class="mono">Ask it</span><ul class="asks"><li>What do you know about refunds?</li><li>That's wrong: the supervisor limit is 1000 EUR, not 500</li><li>Remember that every test must carry its work item</li></ul></div>
1060
+ <div class="fact"><span class="mono">What it needs</span><ul class="needs"><li><span class="need req">Required</span><span>A live model profile in llms.json (an API key or Microsoft Entra ID sign-in)</span></li></ul></div>
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>
1062
+ <div class="fact"><span class="mono">Tools</span><p class="tools"><code>knowledge_agent</code></p></div>
1063
+ </div>
1064
+
1065
+ </article>
1066
+ <div class="feat-detail"><section class="doc" data-topic id="doc-how_to_use-librarian">
1067
+ <h4>Librarian</h4>
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>
1079
+ <ul>
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>
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>
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
1108
+ </span></span><span class="ln"><span class="cmd">forgeqe knowledge chat &quot;what do you know about refunds?&quot;
1109
+ </span></span></code></pre></div>
1110
+ </div></div></div>
1111
+ </section>
1112
+ </div>
1113
+ <article class="spec feat" id="cap-document-search">
1114
+ <div class="hd"><span class="mono">Setup</span><h3>Search the project's documents, without vectors</h3></div>
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>
1116
+ <div class="facts">
1117
+ <div class="fact"><span class="mono">Ask it</span><ul class="asks"><li>What does the payments spec say about refund limits?</li><li>Which document describes the password rules?</li><li>Search our documents for the checkout requirements</li></ul></div>
1118
+ <div class="fact"><span class="mono">What it needs</span><ul class="needs"><li><span class="need opt">Optional</span><span>A live model profile in llms.json (an API key or Microsoft Entra ID sign-in)</span></li></ul></div>
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>
1120
+ <div class="fact"><span class="mono">Tools</span><p class="tools"><code>search_documents</code></p></div>
1121
+ </div>
1122
+
1123
+ </article>
1124
+ <div class="feat-detail"><section class="doc" data-topic id="doc-how_to_use-searching-your-documents-without-vectors">
1125
+ <h4>Searching your documents, without vectors</h4>
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>
1128
+ <ol>
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>
1140
+ </ol>
1141
+ <p><strong>What is searched.</strong></p>
1142
+ <ul>
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>
1146
+ </ul>
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>
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
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
1163
+ </span></span><span class="ln"><span class="cmd">forgeqe knowledge docs search &quot;refund limits&quot; --no-model --limit 3 --json
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
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
1166
+ </span></span></code></pre></div>
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>
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:
1198
+ </span></span><span class="ln"><span class="cmd"> documents:
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
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)
1201
+ </span></span><span class="ln"><span class="cmd"> top_k: 5
1202
+ </span></span></code></pre></div>
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>
1205
+ </div>
1206
+ </section>
1207
+ </div>
1208
+ <article class="spec feat" id="cap-web-search">
1209
+ <div class="hd"><span class="mono">Setup</span><h3>Search the web</h3></div>
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>
1211
+ <div class="facts">
1212
+ <div class="fact"><span class="mono">Ask it</span><ul class="asks"><li>Search the web for the latest Playwright release</li><li>Search online for what WCAG 2.2 says about focus</li><li>Look up Cypress component testing online</li></ul></div>
1213
+ <div class="fact"><span class="mono">What it needs</span><p class="muted">Nothing beyond ForgeQE itself.</p></div>
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>
1215
+ <div class="fact"><span class="mono">Tools</span><p class="tools"><code>web_search</code></p></div>
1216
+ </div>
1217
+
1218
+ </article>
1219
+ <div class="feat-detail"><section class="doc" data-topic id="doc-how_to_use-searching-the-web">
1220
+ <h4>Searching the web</h4>
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
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>
1240
+ </div>
1241
+ </section>
1242
+ </div>
1243
+ <article class="spec feat" id="cap-setup-help">
1244
+ <div class="hd"><span class="mono">Setup</span><h3>Setup, skills, and documentation</h3></div>
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>
1246
+ <div class="facts">
1247
+ <div class="fact"><span class="mono">Ask it</span><ul class="asks"><li>What can you do?</li><li>Which model am I using?</li><li>How do I set up email alerts?</li><li>Show me the icons of all agents</li><li>Which version of ForgeQE is this?</li></ul></div>
1248
+ <div class="fact"><span class="mono">What it needs</span><p class="muted">Nothing beyond ForgeQE itself.</p></div>
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>
1250
+ </div>
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">
1255
+ <h4>Skills</h4>
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>
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">---
1258
+ </span></span><span class="ln"><span class="cmd">name: contoso-erp
1259
+ </span></span><span class="ln"><span class="cmd">description: &quot;Use when the site is the Contoso ERP (erp.contoso.com): the order grid, the customer lookup, and saving orders.&quot;
1260
+ </span></span><span class="ln"><span class="cmd">agents: [browser]
1261
+ </span></span><span class="ln"><span class="cmd">---
1262
+ </span></span><span class="ln ln--gap">
1263
+ </span><span class="ln"><span class="cmd">- The customer lookup opens a list after three letters; click the row whose name matches exactly.
1264
+ </span></span><span class="ln"><span class="cmd">- Save with the floppy icon in the toolbar; wait until &quot;Saved&quot; shows in the status bar.
1265
+ </span></span></code></pre></div>
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>
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>
1291
+ <p><strong>How skills are used.</strong></p>
1292
+ <ul>
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>
1295
+ <li><code>run.json</code>, the <code>run.done</code> log line and the report list the skills a run used.</li>
1296
+ </ul>
1297
+ <p><strong>Where skills come from</strong>, lowest to highest precedence; a later source replaces a skill of the same name:</p>
1298
+ <div class="tbl tbl--cols-2"><table>
1299
+ <thead>
1300
+ <tr><th>Source</th><th>Folder</th></tr>
1301
+ </thead>
1302
+ <tbody>
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>
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>
1305
+ <tr><td data-label="Source">User</td><td data-label="Folder"><code>~/.forgeqe/skills</code> (or <code>$FORGEQE_HOME/skills</code>)</td></tr>
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>
1307
+ <tr><td data-label="Source">Extra</td><td data-label="Folder">each folder in <code>skills.dirs</code></td></tr>
1308
+ </tbody>
1309
+ </table></div>
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>
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>
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:
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
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
1315
+ </span></span><span class="ln ln--pair"><span class="cmd"> disable: [dynamics-365]</span><span class="pad"> </span><span class="cm"><span class="h">#</span> leave these out
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
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
1318
+ </span></span></code></pre></div>
1319
+ </div>
1320
+ </section>
1321
+ <section class="doc" id="doc-how_to_use-model-routing">
1322
+ <h4>Model routing</h4>
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>
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
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
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
1346
+ </span></span></code></pre></div>
1347
+ </div></div></div>
1348
+ </section>
1349
+ <section class="doc" id="doc-readme-privacy">
1350
+ <h4>Privacy</h4>
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>
1357
+ </div>
1358
+ </section>
1359
+ <section class="doc" id="doc-docs-model_routing-model-routing-the-right-configured-model-for-each-task">
1360
+ <h4>Model routing: the right configured model for each task</h4>
1361
+ <div class="prose"><p>With more than one model in <code>llms.json</code>, ForgeQE can give each kind of work the model it needs. The most capable model
1362
+ plans the work and leads the chat, then hands the tasks to the agents, each on the model that suits it: a strong model
1363
+ writes code and finds root causes, a cheaper one that is good enough reviews. A model that takes screenshots
1364
+ drives the browser, and a model with a large window reads a large pull request. You do not need to know what each
1365
+ model can do: ForgeQE finds out.</p>
1366
+ </div>
1367
+ </section>
1368
+ <section class="doc" id="doc-docs-model_routing-turn-it-on">
1369
+ <h4>Turn it on</h4>
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>
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:
1382
+ </span></span><span class="ln"><span class="cmd"> models_file: ./llms.json
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
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
1385
+ </span></span></code></pre></div>
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
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
1388
+ live checks and the rating call described below.</p>
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
1390
+ (one per model, kept for a day in <code>.forgeqe/model-checks.json</code> once it passes; a failed one is never kept, and a failed
1391
+ check in <code>model-profile.json</code> is checked again). When it does not, the next model that works is used, a GitHub Copilot
1392
+ profile first, and ForgeQE says why and how to fix the first. When none works, the error lists each model with the fix.
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
1394
+ whenever it is rated good enough.</p>
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
1400
+ </span></span></code></pre></div>
1401
+ </div></div></div>
1402
+ </section>
1403
+ <section class="doc" id="doc-docs-model_routing-the-areas-of-work">
1404
+ <h4>The areas of work</h4>
1405
+ <div class="prose"><div class="tbl tbl--cols-3"><table>
1406
+ <thead>
1407
+ <tr><th>Area</th><th>What runs in it</th><th>Needs</th></tr>
1408
+ </thead>
1409
+ <tbody>
1410
+ <tr><td data-label="Area"><code>agent</code></td><td data-label="What runs in it">ForgeQE's agent: the shell, <code>forgeqe run</code>, <code>forgeqe mcp</code> (plans and hands out work: <strong>lead</strong>)</td><td data-label="Needs">tool calls; rated 4+</td></tr>
1411
+ <tr><td data-label="Area"><code>browser</code></td><td data-label="What runs in it">Browser, desktop and mobile runs, from screenshots</td><td data-label="Needs">images; rated 4+</td></tr>
1412
+ <tr><td data-label="Area"><code>coding</code></td><td data-label="What runs in it">Quill writing and healing tests, API tests</td><td data-label="Needs">tool calls; rated 5</td></tr>
1413
+ <tr><td data-label="Area"><code>review</code></td><td data-label="What runs in it">Test reviewer, pull-request review, evaluation judge</td><td data-label="Needs">tool calls; rated 3+</td></tr>
1414
+ <tr><td data-label="Area"><code>analysis</code></td><td data-label="What runs in it">Root cause of defects</td><td data-label="Needs">tool calls; rated 5</td></tr>
1415
+ <tr><td data-label="Area"><code>planning</code></td><td data-label="What runs in it">Refine, finding tests, API scenarios, exploratory charters (<strong>lead</strong>)</td><td data-label="Needs">tool calls; rated 3+</td></tr>
1416
+ </tbody>
1417
+ </table></div>
1418
+ </div>
1419
+ </section>
1420
+ <section class="doc" id="doc-docs-model_routing-a-default-model-for-each-agent">
1421
+ <h4>A default model for each agent</h4>
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>
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:
1431
+ </span></span><span class="ln"><span class="cmd"> agents:
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
1433
+ </span></span><span class="ln ln--pair"><span class="cmd"> engine: azure-gpt4o</span><span class="pad"> </span><span class="cm"><span class="h">#</span> the browser agent: pick a model that takes images
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
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
1436
+ </span></span></code></pre></div>
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>,
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>,
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>,
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
1441
+ in <code>llms.json</code> is an error when ForgeQE loads <code>forgeqe.yaml</code>. The model must still work: with <code>fallback</code> on, one that
1442
+ fails its check is replaced as for any area. <code>--profile</code> still names the model for everything.</p>
1443
+ </div>
1444
+ </section>
1445
+ <section class="doc" id="doc-docs-model_routing-how-a-model-is-picked">
1446
+ <h4>How a model is picked</h4>
1447
+ <div class="prose"><ol>
1448
+ <li>
1449
+ <p><strong>Your choices win.</strong> <code>--profile</code> (or <code>WP_LLM_PROFILE</code>) comes first. Then an agent's own model in <code>llm.agents</code>
1450
+ (below), which also comes ahead of <code>code.model</code> and <code>code.review_profile</code> for that agent. <code>code.model</code> keeps the router out. A profile pinned in
1451
+ <code>llm.routes</code> is used for its area. <code>code.review_profile</code> still sets the reviewer.</p>
1452
+ </li>
1453
+ <li>
1454
+ <p><strong>Facts rule models out.</strong> The router never picks a model that:</p>
1455
+ <ul>
1456
+ <li>has no key, or failed its live check;</li>
1457
+ <li>takes no images, for browser work;</li>
1458
+ <li>takes no tool calls, for agent work;</li>
1459
+ <li>has a window too small for the prompt (a large pull-request diff, for example).</li>
1460
+ </ul>
1461
+ <p>The facts come from <code>llms.json</code>, a live check, and the public model lists (models.dev and LiteLLM) that ForgeQE
1462
+ already downloads for prices. A fact that nobody knows never rules a model out.</p>
1463
+ </li>
1464
+ <li>
1465
+ <p><strong>Ratings and the strategy pick among the rest.</strong> Only models rated at the area's bar are considered. Writing code
1466
+ and finding root causes ask for 5, because a weaker model there costs more in failed attempts than it saves. Among
1467
+ them, <code>llm.strategy</code> picks:</p>
1468
+ <div class="tbl tbl--cols-3"><table>
1469
+ <thead>
1470
+ <tr><th>Strategy</th><th>Lead areas (<code>agent</code>, <code>planning</code>)</th><th>The other areas</th></tr>
1471
+ </thead>
1472
+ <tbody>
1473
+ <tr><td data-label="Strategy"><code>balanced</code> (the default)</td><td data-label="Lead areas (agent, planning)">the most capable model; the cheapest only among equally rated ones</td><td data-label="The other areas">the best value: a higher rating is worth paying for, up to 4× the price per rating point</td></tr>
1474
+ <tr><td data-label="Strategy"><code>capability</code></td><td data-label="Lead areas (agent, planning)">the most capable model</td><td data-label="The other areas">the most capable model</td></tr>
1475
+ <tr><td data-label="Strategy"><code>cost</code></td><td data-label="Lead areas (agent, planning)">the cheapest model rated at the bar</td><td data-label="The other areas">the cheapest model rated at the bar</td></tr>
1476
+ </tbody>
1477
+ </table></div>
1478
+ <p>So with <code>balanced</code>, the planner is never a weak model because it was cheap, and a worker gets a stronger model when
1479
+ the extra capability costs little more. For example, for review (bar 3) a model rated 5 at 3× the price of one rated
1480
+ 4 is picked; at 8× the price, the one rated 4 is. A GitHub Copilot seat counts only its premium requests per call as
1481
+ price. If no model reaches the bar, the best-rated one is picked. With no ratings yet, the active profile is kept
1482
+ unless a fact rules it out. To keep a fast model for one agent, give it its own model under <code>llm.agents</code>.</p>
1483
+ </li>
1484
+ <li>
1485
+ <p><strong>A failed answer escalates once.</strong> When a root-cause analysis finds nothing, or finds a cause with low confidence
1486
+ although it could read the product's code, it runs again on a stronger model: one rated higher for the area, or rated
1487
+ the same and priced higher. Both runs are counted in its cost.</p>
1488
+ </li>
1489
+ </ol>
1490
+ <p>The same configuration and task always give the same model. A pick changes only when the models, the ratings or the
1491
+ size of the prompt change. Each pick is shown once (&quot;Model for planning: mini (…)&quot;) and is written to the session log.</p>
1492
+ </div>
1493
+ </section>
1494
+ <section class="doc" id="doc-docs-model_routing-how-forgeqe-learns-the-models">
1495
+ <h4>How ForgeQE learns the models</h4>
1496
+ <div class="prose"><p>The first routed call in a project with two or more usable profiles does this once:</p>
1497
+ <ol>
1498
+ <li><strong>A live check of each model:</strong> one short structured answer and one image.
1499
+ This finds a deployment that does not exist, a wrong key, and whether the model really takes images. It also
1500
+ measures how fast the model answers.</li>
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
1502
+ account. It rates each model 1–5 for each area and gives it a tier (fast, balanced or strong).</li>
1503
+ </ol>
1504
+ <p>The result is kept in <code>.forgeqe/model-profile.json</code> next to <code>forgeqe.yaml</code>. ForgeQE uses it until the profiles in
1505
+ <code>llms.json</code> change (provider, model, deployment or endpoint). You can edit the ratings. ForgeQE keeps your edits while
1506
+ the profiles stay the same. It checks the file every time it reads it: names that are not profiles and unknown areas
1507
+ are dropped, and ratings are rounded to whole numbers from 1 to 5.</p>
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'
1509
+ data on one deployment; the checks carry nothing from your runs. To send nothing to the other profiles at all, use
1510
+ <code>routing: off</code>, keep one profile with a key, or pass <code>--profile</code>.</p>
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
1513
+ </span></span></code></pre></div>
1514
+ </div>
1515
+ </section>
1516
+ <section class="doc" id="doc-docs-model_routing-limit-what-an-area-may-use">
1517
+ <h4>Limit what an area may use</h4>
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:
1526
+ </span></span><span class="ln"><span class="cmd"> routing: auto
1527
+ </span></span><span class="ln"><span class="cmd"> routes:
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
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
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)
1531
+ </span></span></code></pre></div>
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
1533
+ ForgeQE at start with a message that names it.</p>
1534
+ </div>
1535
+ </section>
1536
+ <section class="doc" id="doc-docs-model_routing-what-routing-cost-and-what-it-saved">
1537
+ <h4>What routing cost, and what it saved</h4>
1538
+ <div class="prose"><p>Every model call is recorded with the area it was made for and what chose its model — the router's own pick, an
1539
+ <code>llm.agents</code> pin, a substitution after a model failed its check, the active profile kept because nothing else passed,
1540
+ or an escalation. It goes in the usage ledger beside the tokens, so the question &quot;which model wrote the tests, and
1541
+ what did that cost&quot; is answered from the calls themselves and not from the logs.</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>
1543
+ <ul>
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>
1547
+ does. Both sides are priced at today's prices, so the difference is the models' and not a price that moved since.</li>
1548
+ </ul>
1549
+ <p>Two things to read carefully:</p>
1550
+ <ul>
1551
+ <li><strong>An area can cost more, on purpose.</strong> <code>coding</code> and <code>analysis</code> are routed to a model rated 5, which is usually the
1552
+ dearest one configured. Measured against a cheap active profile, those areas show as costing <em>more</em>, and the total
1553
+ can be negative. That is routing working, not a fault: the cheaper model there costs more in failed attempts than
1554
+ it saves.</li>
1555
+ <li><strong>It is price arithmetic only.</strong> Nothing in it checked that the cheaper model would have reached the same answer,
1556
+ written a test that passed, or found the same root cause. A saving is what the tokens would have cost at another
1557
+ price, nothing more.</li>
1558
+ </ul>
1559
+ <p>Calls that cannot be compared are counted and named rather than folded in: a model with no known price, an active
1560
+ profile with no known price, or a price in another currency, which there is no rate to convert with. Calls recorded
1561
+ before ForgeQE kept the area, and any the router never touched, are their own <strong>Not attributed</strong> row.</p>
1562
+ </div>
1563
+ </section>
1564
+ <section class="doc" id="doc-docs-model_routing-what-it-does-not-do">
1565
+ <h4>What it does not do</h4>
1566
+ <div class="prose"><ul>
1567
+ <li>The lead model does not choose the workers' models itself: each agent's model is picked by code, from the ratings
1568
+ and the strategy, so the same configuration always gives the same models.</li>
1569
+ <li>ForgeQE's agent picks its model when its session starts and keeps it for the whole conversation. Changing the model
1570
+ mid-conversation would drop the prompt cache and make every later turn cost more. The agent hands heavy work to the
1571
+ other agents, and those are routed.</li>
1572
+ <li>A rating is one model's judgement. It is kept in a file that you can read and correct.</li>
1573
+ <li>It does not judge whether a cheaper model was good enough. The saving it reports is a price difference; whether the
1574
+ model that answered was the right one is what a test's result, a review and a root cause tell you.</li>
1575
+ </ul>
1576
+ </div>
1577
+ </section>
1578
+ </div>
1579
+
1580
+ <nav class="pager" aria-label="Previous and next">
1581
+ <a class="prev" href="../area-mobile/index.html"><small>Previous</small><span>Mobile apps</span></a>
1582
+ <a class="next" href="../area-operations/index.html"><small>Next</small><span>Operations and monitoring</span></a>
1583
+ </nav>
1584
+ </main>
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>
1586
+ </div>
1587
+ <footer class="foot">
1588
+ <div class="container foot__row">
1589
+ <a class="foot__brand" href="https://forgeqe.github.io/"><picture><source srcset="../../img/wordmark-white.webp" media="(prefers-color-scheme: dark)"><img src="../../img/wordmark.webp" alt="ForgeQE" width="160" height="76"></picture><span>AI writes the code. <em>ForgeQE proves it works.</em></span></a>
1590
+ <nav aria-label="Footer"><ul><li><a href="https://forgeqe.github.io/">Product</a></li><li><a href="../index.html">Docs</a></li><li><a href="../../security/index.html">Security</a></li><li><a href="../../architecture-map/index.html">Architecture</a></li><li><a href="https://forgeqe.github.io/contact/">Contact us</a></li><li><a href="https://forgeqe.github.io/sample-report/">Sample report</a></li></ul></nav>
1591
+ </div>
1592
+ <p class="container foot__legal">© 2026 Capgemini · forgeqe.qualityai.co.uk · Built from ForgeQE's own docs</p>
1593
+ </footer>
1594
+ </body>
1595
+ </html>