@capagents/forgeqe 2.6.9 → 2.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/HOW_TO_USE.md +5 -3
- package/README.md +2 -1
- package/dist/docs-site/docs/index.html +7 -4
- package/dist/docs-site/docs/search.js +1 -1
- package/dist/forgeqe.js +1270 -1270
- package/dist/web/assets/{Agent-BM6E-VB0.js → Agent-CTf8KPLI.js} +1 -1
- package/dist/web/assets/{ApiTests-C5d7bkXm.js → ApiTests-8frnNIDb.js} +1 -1
- package/dist/web/assets/{Chat-D9JQ9cu_.js → Chat-Dj_ewn_H.js} +1 -1
- package/dist/web/assets/{Data-DDbhee1a.js → Data-rQIV2OfV.js} +1 -1
- package/dist/web/assets/{Evidence-_lZ3esVH.js → Evidence-Dn4Uyakw.js} +1 -1
- package/dist/web/assets/{Features-B66ac5MV.js → Features-BHbDkY6d.js} +1 -1
- package/dist/web/assets/{Jobs-DYk-sYUM.js → Jobs-1kD96CNp.js} +1 -1
- package/dist/web/assets/{KindPage-CxnmiL82.js → KindPage-zoTK8F69.js} +1 -1
- package/dist/web/assets/{Migration-B_U_b1nf.js → Migration-BZcHKmJc.js} +1 -1
- package/dist/web/assets/{Product-DGNdstwf.js → Product-DDFGmWxZ.js} +1 -1
- package/dist/web/assets/{Quality-B4EhNeTq.js → Quality-CopMddhf.js} +1 -1
- package/dist/web/assets/{Record-CVMQ4Hjt.js → Record-DrgYte-f.js} +1 -1
- package/dist/web/assets/{Regression-CvHEFhiq.js → Regression-Cvj1amuO.js} +1 -1
- package/dist/web/assets/{Reports-BHaomqX9.js → Reports-BCZeHlgo.js} +1 -1
- package/dist/web/assets/{Response-DW5m211p.js → Response-wbe7YDRm.js} +1 -1
- package/dist/web/assets/{Runs-hbJakq0Q.js → Runs-C-U8Zto_.js} +1 -1
- package/dist/web/assets/{Shell-S47lWQWa.js → Shell-CUmMbYAE.js} +3 -3
- package/dist/web/assets/{TestCases-DYCsex4G.js → TestCases-D_WpgWxA.js} +1 -1
- package/dist/web/assets/{TestData-C7_npkCW.js → TestData-B5gzaqO3.js} +1 -1
- package/dist/web/assets/{WhatsNew-BnuvSOPs.js → WhatsNew-BD1_wOmf.js} +1 -1
- package/dist/web/assets/{arrow-down-dgw_SWAN.js → arrow-down-I4TbiZy1.js} +1 -1
- package/dist/web/assets/{arrow-right-NAWkj6gQ.js → arrow-right-vf1aUPQ0.js} +1 -1
- package/dist/web/assets/circle-DdyoI0MW.js +1 -0
- package/dist/web/assets/{circle-dashed-CBDGSDRm.js → circle-dashed-D-xCti8W.js} +1 -1
- package/dist/web/assets/{circle-dot-KBCD8ZM0.js → circle-dot-__mRW42w.js} +1 -1
- package/dist/web/assets/{dataParts-RK75MdJ3.js → dataParts-Pr6w8WFl.js} +1 -1
- package/dist/web/assets/dataverse-CH0w-aF1.png +0 -0
- package/dist/web/assets/{index-Dxug1-bt.js → index-mdr9iNZb.js} +25 -25
- package/dist/web/assets/{keyboard-D1hh9hbZ.js → keyboard-yInSyaVv.js} +1 -1
- package/dist/web/assets/{pencil-BgW3hRhM.js → pencil-wafYzIpD.js} +1 -1
- package/dist/web/assets/{productParts-E2GeSekc.js → productParts-96V-QyCQ.js} +1 -1
- package/dist/web/assets/{qualityParts-ejfvRM41.js → qualityParts-CQ_0RsYl.js} +1 -1
- package/dist/web/assets/{segmented-DkcA7fWs.js → segmented-OwL-zu4L.js} +1 -1
- package/dist/web/assets/{thread-D64HDvgz.js → thread-Jysn_9Ki.js} +1 -1
- package/dist/web/assets/{upload-a2jTB_Hi.js → upload-CXgoFfF6.js} +1 -1
- package/dist/web/assets/{usePageChat-cEyYdC42.js → usePageChat-DOel8PVW.js} +1 -1
- package/dist/web/assets/zephyr-BNWDPG5u.png +0 -0
- package/dist/web/index.html +2 -2
- package/docs/user-guide.html +7 -4
- package/forgeqe.example.yaml +2 -0
- package/package.json +1 -1
- package/dist/web/assets/circle-Cg6_419C.js +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
(function () {
|
|
2
2
|
var base = new URL("..", document.currentScript.src)
|
|
3
|
-
window.FORGEQE_SEARCH = [{"t":"Overview","u":"docs/index.html#overview","g":"User guide","h":[],"x":"01 Overview What ForgeQE is, and everything it can do ForgeQE is a browser agent CLI. Say what you want in plain language: a goal to carry out in a browser, test cases to run from Jira, Azure DevOps, Xray or a file, a test to write, or a CI pipeline to set up. ForgeQE's agent works out what that needs, the ForgeQE engine drives a local Chrome or Chromium by default or BrowserStack or TestMu AI/LambdaTest when configured, and a run that passes becomes a test in your repo, written by Scribe , ForgeQE's coding agent. No server, database, or Docker. You configure a model and run it from the terminal. Doc Purpose This guide Setup and how to run docs/user-guide.html This guide as one page, with every feature: what it needs, how to ask for it, and its details docs/WEB_APP.md The web app ( forgeqe web ): setting up, the chat, every page, and Settings forgeqe-architecture.html Single-view map: subagents, tools, and capabilities docs/ARCHITECTURE.md Architecture reference: modules, protocols, and loops README.md Overview After install: bash Copy forgeqe docs # print the paths of the bundled docs forgeqe docs --guide # open the docs in the browser, offline: the pages of forgeqe.github.io/docs/, with search, and the architecture map forgeqe docs --open # open the architecture page in the browser forgeqe docs --copy ./docs # copy the guide, the architecture page, the reference and the docs pages into a folder Every feature Browser Run any goal in a real browser Go to booking.com and search hotels in Mumbai for next weekend Saved logins for the application under test Sign in to the admin site and keep the session Record a web test by hand I'll show you the checkout steps in the shop: record them Test cases Run manual test cases in browsers Run SHOP-12 and SHOP-14 from Jira, two browsers at once Check and improve test cases Are the cases in test plan 12 good enough to run? Write test cases from a story Write test cases for story 1234 and save them Domain and regulatory test design Write test cases for story 1234, covering our DORA and PSD2 obligations Exploratory testing of a story Explore story 1234 and find bugs Setup Test environments and their apps Place an order in the shop, then check its invoice in Billing, in UAT What ForgeQE wrote How much of the code ForgeQE wrote is still there? Every forgeqe command from the shell Show me the context budget Product knowledge from the product's repositories How does the product cancel an order? Show the endpoints and tables involved Setup, skills, and documentation What can you do? Desktop Automate Windows desktop apps Create an invoice for Contoso in the Billing app and save it as a test Mobile Automate Android and iOS apps Sign in to the courier app and accept the first delivery, and save it as a test Operations Services, mocks, workspace and browser in Docker or Podman Start the database and the queue in Docker Scheduled monitoring with alerts Check the login flow every 15 minutes and alert Teams Background jobs on a schedule Run the release-2.3 pack every weekday at 2am in the background Your team's custom agents Ask our custom agent checkout-guard to check the basket on QA Teams and email notifications Post the results to the QA channel CI pipelines Add a GitHub Actions workflow that runs tests/cases.yaml on every PR, and make it green Data Ask a database in plain language Which customers in India have paid orders? Ask the orders database Test data on demand Generate test data: 20 customers with 1 to 3 orders each in the shop database Data flows between systems Check that customers from the digital database reach the CRM correctly Automated tests Turn a passed run into an automated test Write a Playwright test for that run in ../app Heal failing tests Heal the failing tests in ../app Migrate a test suite Migrate the Selenium tests in tests/ to Playwright TypeScript Find and run existing tests Run the checkout tests Regression packs for a release Build a regression pack for sprint 12 and run it on TestMu Flaky test detection and quarantine Which tests are flaky? Pull requests Review pull requests Review PR 42 and focus on error handling Pull request impact and test selection What does PR 42 impact? API API and contract testing Turn the last run's API calls into tests Quality Accessibility and page performance Is the checkout page accessible? Accessibility testing with personas Act as a blind person and use the website to find accessibility issues Visual comparison with baselines What changed visually since the last run? Defect intelligence: trends and prediction Which defects keep coming back? Release Requirement coverage and release readiness Are we ready to release? Reports you can share Create a release report for all projects Systems Work with Azure DevOps, Jira, GitHub, and Confluence Show the open bugs in this sprint Read any data in Azure DevOps, Jira, Xray, and Confluence, and open Azure DevOps pull requests Are there open pull requests in any repository of QI-Claims? Not supported Load, stress, or soak testing with many simultaneous users . Instead: per-page Core Web Vitals with budgets. Penetration testing or dynamic security scanning . Instead: security findings in pull request reviews."},{"t":"Get started","u":"docs/index.html#get-started","g":"User guide","h":[],"x":"02 Get started Install, configure a model, and sign in to your tools"},{"t":"What you need to run","u":"docs/index.html#doc-how_to_use-what-you-need-to-run","g":"User guide · Get started","h":[],"x":"What you need to run"},{"t":"Required","u":"docs/index.html#doc-how_to_use-required","g":"User guide · Get started","h":[],"x":"Required Requirement Notes A terminal macOS Terminal, iTerm2, VS Code or Cursor's terminal, Windows Terminal A model A profile in llms.json with a working key, or Microsoft Entra ID sign-in for Azure (Azure OpenAI, OpenAI, an OpenAI-compatible gateway, or Ollama), or a GitHub Copilot seat (see GitHub Copilot seats as the model ) Internet access on first use ForgeQE downloads Bun, the agent runtime, uv, Python, and the engine into ~/.forgeqe once"},{"t":"Optional","u":"docs/index.html#doc-how_to_use-optional","g":"User guide · Get started","h":[],"x":"Optional Optional Why Google Chrome Used when installed; otherwise ForgeQE installs Chromium. Or set browser.provider to BrowserStack or TestMu AI/LambdaTest A repo with tests Where passed runs become tests ( --repo , or code.repo ); without one, tests go in the current folder Jira, Azure DevOps, Xray, TestRail, Zephyr Scale, qTest, Confluence Sources of test cases and requirements, and where results go back gh or az For pipelines: pushing, secrets, and triggering runs Teams webhook or SMTP Monitoring alerts"},{"t":"Not required","u":"docs/index.html#doc-how_to_use-not-required","g":"User guide · Get started","h":[],"x":"Not required Installing Python, Bun, browsers, or agent runtimes yourself: ForgeQE downloads what it needs, without admin rights and without touching PATH A server, database, or Docker"},{"t":"Quick start","u":"docs/index.html#doc-how_to_use-quick-start","g":"User guide · Get started","h":[],"x":"Quick start bash Copy forgeqe init # forgeqe.yaml, llms.json, and .forgeqe/ (prompts, skills, knowledge) in this folder export WP_AZURE_API_KEY=... # the key your llms.json profile names forgeqe models # check the profiles forgeqe start # the shell With GitHub Copilot licences instead of a model key, sign in rather than exporting one. The sign-in lists your seat's models, recommends one (it takes screenshots and, where the plan has one, uses no premium requests), and writes your choice to llms.json as the copilot profile, made the default. Everything then runs on your Copilot seat: ForgeQE's agent, Scribe, and the browser, desktop and mobile engines. No other model is needed: bash Copy forgeqe setup # the engine and GitHub's Copilot SDK forgeqe auth login copilot # opens GitHub in your browser to sign in, then pick the model forgeqe doctor # checks the engine, the SDK, the agent runtime, the sign-in and each model In the shell, type a request and press Enter: text Copy Go to booking.com and search for hotels in Mumbai for next weekend Run SHOP-12 and SHOP-14 from Jira, two browsers at once Write a Playwright test for that run in ../app Or in your browser, with the same agents, a page for each kind of work, and every setting as a form: bash Copy forgeqe web # opens http://127.0.0.1:…/#token=… in your browser: start at Settings › Set up Without the shell: bash Copy forgeqe run \"Search hotels in Mumbai on booking.com\" --plain forgeqe suite cases.yaml --parallel 3 # what pipelines call forgeqe models lists the profiles ForgeQE sees and marks the active one. With no profile set up, the shell's footer reads Model none set up and any request explains how to add one. With more than one profile, llm.routing: auto gives each kind of work (agent, browser, coding, review, analysis, planning) the configured model it needs; forgeqe models --routes shows the picks. See docs/MODEL_ROUTING.md ."},{"t":"Get ForgeQE","u":"docs/index.html#doc-how_to_use-1-install","g":"User guide · Get started","h":[],"x":"Get ForgeQE ForgeQE is set up with your team by Capgemini: we bring it to your project, connect your models and tools, and run the first proven tests with you. Contact us to get started."},{"t":"Scaffold config","u":"docs/index.html#doc-how_to_use-2-scaffold-config","g":"User guide · Get started","h":[],"x":"Scaffold config bash Copy bun src/index.ts init # or bun src/index.ts init --global --profile azure-gpt4o Edit llms.json endpoints, then give ForgeQE the keys its profiles name ( WP_AZURE_API_KEY , OPENAI_API_KEY , WP_API_KEY ): forgeqe auth login \u003cNAME\u003e saves one in your system's credential store, or put them in a .env next to forgeqe.yaml ; the engine process inherits them."},{"t":"Signing in to the model without a key (Microsoft Entra ID)","u":"docs/index.html#doc-how_to_use-signing-in-to-the-model-without-a-key-microsoft-entra-id","g":"User guide · Get started","h":[],"x":"Signing in to the model without a key (Microsoft Entra ID) Where keys are turned off ( disableLocalAuth on the Azure OpenAI or Foundry resource, managed identities, zero trust), set auth: entra on an azure profile instead of api_key_env . Key profiles keep working, and both kinds can sit side by side in one llms.json : json Copy \"azure-entra\": { \"provider\": \"azure\", \"model\": \"gpt-4o\", \"deployment\": \"gpt-4o\", \"endpoint\": \"https://YOUR_RESOURCE.openai.azure.com/\", \"auth\": \"entra\", \"managed_identity_client_id\": \"00000000-0000-0000-0000-000000000000\" } ForgeQE asks Microsoft Entra ID for a token wherever it runs, trying in this order: Where ForgeQE runs Identity it uses An Azure VM, VM scale set, self-hosted agent, App Service, Functions, Container Apps The user-assigned managed identity named by managed_identity_client_id (or AZURE_CLIENT_ID ); without one, the system-assigned identity AKS Workload identity ( AZURE_FEDERATED_TOKEN_FILE , set by the webhook) Azure Pipelines An AzureCLI@2 task on a service connection with workload identity federation: ForgeQE uses that task's sign-in, with no secret GitHub Actions azure/login with OIDC, then ForgeQE in the same job Your machine az login Anything else A service principal in AZURE_TENANT_ID , AZURE_CLIENT_ID and AZURE_CLIENT_SECRET (or AZURE_CLIENT_CERTIFICATE_PATH ) Give that identity the Cognitive Services OpenAI User role on the resource. Tokens are renewed before they expire, so long suites and coding sessions keep running. The browser engine signs in itself; the coding agent's runtime only takes a key, so ForgeQE gives it a gateway on 127.0.0.1 that accepts a one-time random key and passes each request on with a current token. No key is stored anywhere. auth: entra also works on an openai_compatible profile, for a gateway such as API Management that checks Entra ID tokens: set token_scope to the scope it expects (for example api://\u003capp id\u003e/.default ; the default is https://cognitiveservices.azure.com/.default ). The engine needs the azure-identity package, which forgeqe setup installs (and adds to environments set up before it was needed); with FORGEQE_PYTHON , install it there yourself."},{"t":"GitHub Copilot seats as the model","u":"docs/index.html#doc-how_to_use-github-copilot-seats-as-the-model","g":"User guide · Get started","h":[],"x":"GitHub Copilot seats as the model With GitHub Copilot licences (Pro, Pro+, Business or Enterprise), a github_copilot profile runs the browser engine and the desktop and mobile agents on your Copilot seat, through GitHub's Copilot SDK . Copilot gives other tools no model API of its own, so ForgeQE starts a small gateway on 127.0.0.1 that runs the SDK and speaks the OpenAI chat API to the engine. It signs in with a GitHub token, so no other app is authorized on your GitHub account. json Copy \"copilot\": { \"provider\": \"github_copilot\", \"model\": \"gpt-4.1\" } Field What it is model The Copilot model, as the Copilot SDK names it ( gpt-4.1 , claude-sonnet-4.6 ). It must take screenshots. The sign-in lists your seat's models and which of them take images. engine_model Optional. Another Copilot model for the browser engine and the desktop agent. reasoning_effort Optional. How hard a reasoning model thinks: low , medium , high , xhigh or max . Sent only to a model your seat says takes one; unset, the model's default. api_key_env Optional. A variable that must hold the GitHub token for this profile. Without it ForgeQE uses COPILOT_GITHUB_TOKEN , then a token forgeqe auth login copilot saved, then the browser sign-in. Sign in once per machine (Windows, macOS or Linux): bash Copy forgeqe auth login copilot It offers two ways, the ones GitHub's Copilot SDK recommends: Sign in with GitHub in the browser (recommended on your own computer). ForgeQE runs GitHub's own Copilot sign-in ( copilot login from GitHub's Copilot CLI, downloaded once into ~/.forgeqe/tools and checked against GitHub's checksums). Your browser opens GitHub; approve GitHub Copilot CLI there and you are signed in. GitHub's CLI keeps the sign-in in your system's credential store (Windows Credential Manager, the macOS Keychain); ForgeQE never sees a token. On a remote machine it shows a code to enter at github.com/login/device instead. A fine-grained token , for machines without a browser. ForgeQE opens GitHub's token page: set Resource owner to your personal account and add the Copilot Requests permission, then paste the token ( github_pat_... ). Each character shows as * , and ForgeQE confirms what it got ( github_pat_11AB…Wz9Q (93 characters) ). The token goes to your system's credential store like ForgeQE's other secrets. Classic tokens ( ghp_ ) do not work with Copilot. Either way ForgeQE checks the sign-in by asking Copilot for your seat's models, then asks which one to use (recommended first; models your seat has but has not turned on are named, with the settings page) and writes it to llms.json ; the first time, the Copilot SDK downloads Copilot's runtime from GitHub (checked against GitHub's checksums). forgeqe auth shows the sign-in on its Copilot line; forgeqe auth logout copilot signs out: Copilot removes the browser sign-in from this computer, the system's credential store included (GitHub keeps the authorization until you revoke GitHub Copilot CLI at github.com/settings/applications). GitHub Enterprise Cloud (a ghe.com address, with data residency): pick Sign in to your company's GitHub Enterprise and type the address ( acme.ghe.com ). ForgeQE keeps it with the sign-in as COPILOT_GH_HOST , which Copilot's sign-in and every Copilot call use; an exported COPILOT_GH_HOST or GH_HOST works the same. Signing in to github.com again forgets it. Choosing the model. forgeqe models --copilot lists your seat's models: whether each takes screenshots, its premium requests per call (0 is included in your plan) and the profiles that use it. bash Copy forgeqe models --copilot # the seat's models forgeqe models --copilot --add claude-sonnet-4.6 --as sonnet # keep one as a profile in llms.json forgeqe start --model claude-sonnet-4.6 # another Copilot model for this session only (also run, chat) --add takes --engine-model (a model that takes screenshots, for the browser, desktop and mobile agents) and --default . --model changes the model of the profile in use, which must be a github_copilot one. Every profile is then in the model picker ( /model , or the model menu of forgeqe web ), and in Settings, Models a Copilot profile's Model and Engine model are picked from your seat's list. Premium requests. Every Copilot call is one premium request times the model's multiplier. The usage ledger records them with each call, the router prefers a model with fewer per call when its rating is good enough, and budget.premium_requests in forgeqe.yaml ( run , day , month ) warns at 80, 90 and 100 percent like the money budgets. A rate limit or a used-up allowance is reported as such (HTTP 429), so the agents wait or stop rather than retry. If your organization uses SAML single sign-on, GitHub asks you to authorize the organization during the browser sign-in. A Copilot Business or Enterprise seat needs your organization to allow Copilot CLI in its Copilot policies. A token reaches only the gateway's process. The engine gets the gateway's address and a one-time key that works nowhere else; the gateway refuses requests without that key and any request a web page sends. Model-run shell commands never see the token or the key. Which part uses what: Part Model Signs in with The browser engine (every browser run: run --direct , suites, monitoring) engine_model or model , on the Copilot seat forgeqe auth login copilot The desktop and mobile agents engine_model or model , on the Copilot seat forgeqe auth login copilot ForgeQE's agent and Scribe model , on the Copilot seat forgeqe auth login copilot Copilot runs one SDK session per model request, with none of Copilot's own tools and your request's system prompt in place of Copilot's. The agent's tools are offered to the model as the session's only tools; when it calls one, the gateway ends the turn and hands the call back to ForgeQE's agent runtime, which runs it (with the same permissions as on any other model) and sends the result with the next request. The gateway itself runs nothing. With Copilot and a key-based mod"},{"t":"Evidence: what an agent did, decided and used","u":"docs/index.html#doc-how_to_use-evidence-what-an-agent-did-decided-and-used","g":"User guide · Get started","h":[],"x":"Evidence: what an agent did, decided and used Evidence records what an AI agent did, how, what it decided and the reason it gave, and what data it used, so it can be checked rather than taken on its word: ForgeQE's own agents, or any other team's or platform's. It receives an agent's OpenTelemetry traces while it runs, and reads OpenTelemetry exports (generative AI conventions), Langfuse and LangSmith exports, an agent's own JSON log with a mapping file (which field says what), and ForgeQE's own sessions. A record is written once to .forgeqe/evidence/runs/ ; what the source does not say is listed as a gap, never guessed. What the agent took in is kept as a fingerprint unless you ask for its content ( --content , with secrets cut out). bash Copy forgeqe evidence receive # an agent's traces as it runs: prints the OTEL_* settings to give it forgeqe evidence record langfuse-trace.json # a Langfuse trace (GET /api/public/traces/\u003cid\u003e) or observations forgeqe evidence record langsmith-runs.json # LangSmith runs (list_runs, or read_run with child runs) forgeqe evidence record --latest # ForgeQE's own last session (--latest 5 for five) forgeqe evidence record trace.json # an OpenTelemetry export: one record per trace forgeqe evidence record agent.jsonl --mapping mapping.yaml --content forgeqe evidence runs # what is recorded, newest first forgeqe evidence show \u003cid\u003e # one run: steps, inputs, decisions, statements, gaps forgeqe evidence contract new \"claims-agent\" # a contract to edit: what was agreed for the agent forgeqe evidence contract approve claims-agent # a person types its name; only then can its checks fail a run forgeqe evidence check --all # each run against its agent's contract (exit 1 when one fails) forgeqe evidence measure # how well each check is measured on labelled runs forgeqe evidence findings \u003cid\u003e # the findings as a file the agent reads to fix them forgeqe evidence check \u003cid2\u003e --attempt-of \u003cid\u003e # a fix attempt (two at most, then a person takes over) forgeqe evidence overrule \u003cid\u003e \u003cfinding\u003e --reason \"why\" # a person overrules one finding (at a terminal) forgeqe evidence judge \u003cid\u003e # a model reads the answer: grounded in its inputs, and the owner's rubric forgeqe evidence grade \u003cid\u003e R2 misses --reason \"why\" # a person grades the answer (at a terminal, or on its page) forgeqe evidence calibrate claims-agent # how often the rubric's judge agrees with people's grades forgeqe evidence dashboard claims-agent # per version: verdicts, checks, what keeps going wrong, by week; each number with its runs forgeqe evidence causes \u003cid\u003e # where each open finding may come from: its instructions, a tool, its data forgeqe evidence replay-kit \u003cid\u003e H1 # the change to make for a replay, as data for your harness forgeqe evidence replay \u003cid\u003e H1 \u003cr1\u003e \u003cr2\u003e \u003cr3\u003e # the replays: proven when the finding is gone in 3 and nothing else broke forgeqe evidence learn claims-agent # proposals: guidance from rules broken again and again, fixes from proven causes forgeqe evidence decide claims-agent \u003cproposal\u003e approve --reason \"why\" # a person decides (at a terminal) forgeqe evidence guidance claims-agent # what was approved, as Markdown to put into the agent forgeqe evidence baseline claims-agent --reason \"released 2.2.0\" # a person keeps the baseline (at a terminal) forgeqe evidence drift --all --notify # the nightly job: what changed since each baseline (exit 1 on an alert) forgeqe evidence trust claims-agent assist --reason \"why\" # grant a level, never above what its evidence supports forgeqe evidence audit claims-agent --out claims.audit.json # every decision with its evidence and approver forgeqe evidence inventory # every agent evaluated: versions, models, tools, contract, trust, alerts forgeqe evidence harness approve claims-agent # a person approves the commands ForgeQE runs the agent with forgeqe evidence run-suite claims-agent --version 2.2.0 --live 2.1.0 --repeats 3 # ForgeQE runs both versions on the suite, then the gate forgeqe evidence instrument # how an agent's OpenTelemetry sends its runs to ForgeQE forgeqe evidence verify approve orders-api # a person approves how a repository is built and tested clean forgeqe evidence build-check orders-api --base main --head agent/fix-123 --run \u003cid\u003e # the change built and tested, test by test forgeqe evidence trajectory claims-agent storm-roof --version 2.2.0 # each run's path against the scenario's, step by step forgeqe evidence release claims-agent --candidate 2.2.0 --live 2.1.0 # scenario by scenario, with run-to-run noise said forgeqe evidence draft claims-agent --from jira:SHOP-12 --defect jira:SHOP-40 # scenarios drafted from acceptance criteria and defects forgeqe evidence draft --run \u003cid\u003e # a run that failed, drafted as a scenario by code forgeqe evidence draft support-agent --from-product --about shipped,refund # scenarios from the product graph's business rules forgeqe evidence drafts accept \u003cdraft\u003e --reason \"why\" # a person adds a draft to the suite (or reject), typing its id forgeqe evidence fix \u003cid\u003e H1 # the cause's instruction added to a copy of the agent's prompt, proven by the harness forgeqe evidence fix apply \u003cfix\u003e --reason \"why\" # a person applies a proven fix (typing its id); nothing is committed forgeqe evidence demo ~/evidence-demo # a demo project: made-up agents' runs filling every Evidence page, agents being built run by the harness, and reports/ (then forgeqe web there) forgeqe evidence ci orders-api --base origin/main --report report.md --sarif out.sarif # the pull request check forgeqe evidence ci init github # the pipeline that runs it on every pull request (or azure) forgeqe evidence scenarios claims-agent # the scenario suite's requests, to run through a version forgeqe evidence release claims-agent --candidate 2.2.0 --live 2.1.0 # the release gate (exit 1 when held) forgeqe evidence product-check orders-api --base main --run \u003cid\u003e # an agent's change against the product graph (rules, architecture, # dependencies, regression, secur"},{"t":"The model's context window","u":"docs/index.html#doc-how_to_use-the-models-context-window","g":"User guide · Get started","h":[],"x":"The model's context window Each agent has its own context: ForgeQE's agent, Scribe, the reviewer, and the browser agent each keep their own conversation with the model. The Context panel shows the working agent's (or the last one to call the model), named on its Agent row, as a share of what it can hold before the agent runtime compacts it. When it compacts, the runtime summarises the conversation so far to make room, Activity says so, and details from early on may be gone. The browser agent never compacts: it keeps its last steps only. ForgeQE takes each model's window from its name (GPT-5: 400K, of which a prompt may take 272K; GPT-4.1: 1M; GPT-4o: 128K; o-series and Claude: 200K; Gemini: 1M; anything else: 200K) and gives it to the agent runtime, which compacts at that window less room for the answer. Where a deployment or server allows less, say so with \"context\" in the profile in llms.json : json Copy \"ollama-llama\": { \"provider\": \"ollama\", \"model\": \"llama3.2\", \"endpoint\": \"http://127.0.0.1:11434/v1\", \"context\": 32768 } For Ollama this matters: a prompt longer than the server's context length is cut from the start without an error. Without \"context\" ForgeQE assumes 32K for an Ollama profile; start the server with OLLAMA_CONTEXT_LENGTH set to the same number."},{"t":"Signing in to your tools","u":"docs/index.html#doc-how_to_use-signing-in-to-your-tools","g":"User guide · Get started","h":[],"x":"Signing in to your tools Instead of copying tokens into .env , sign in once and ForgeQE saves the token in your system's credential store: the macOS Keychain, Windows Credential Manager, or the Secret Service keyring on Linux. On a machine without one, such as a headless Linux box, it uses ~/.forgeqe/credentials.json , readable only by you. bash Copy forgeqe auth login # pick a system forgeqe auth login jira # or name it: azure_devops, github, copilot, jira, confluence, testrail, zephyr, qtest, xray, # browserstack, testmu, gitlab, postman, sentry, azure, dataverse forgeqe auth # what is signed in, and how forgeqe auth logout jira In the shell, type /auth jira (or /auth alone for the status). Tokens are typed into the prompt box unseen, shown as dots, and never sent to the agent. In the web app, every system's card in Settings (Integrations, and MCP servers) has the same sign-in under Edit: its questions are answered on the page, a token goes into a password field and never comes back, and the page to open is shown as a link. System How you sign in Azure DevOps Sign in with Microsoft in the browser through the Azure CLI ( az login ); ForgeQE saves nothing, and the Azure CLI renews the sign-in. Or paste a personal access token: the token page opens with the scopes to tick. Azure DevOps Server (on-premises) uses a personal access token. GitHub Sign in with GitHub in the browser through the GitHub CLI ( gh auth login ): ForgeQE shows the one-time code and opens the page. Or paste a token. Needs gh installed. forgeqe auth login copilot can use this sign-in for a github_copilot profile. GitHub Copilot forgeqe auth login copilot : Sign in with GitHub in the browser (GitHub's own Copilot sign-in), or paste a fine-grained token with the Copilot Requests permission. ForgeQE checks it with Copilot and lists the models your seat has. For a github_copilot profile; see GitHub Copilot seats as the model . Jira, Confluence Jira Cloud: Sign in with Atlassian in the browser , for Atlassian's Rovo MCP server (Jira and Confluence tools for ForgeQE's agent), or an API token. ForgeQE's own Jira calls (finding and running test cases, posting results) still need the API token. Otherwise your Atlassian API tokens page opens (Cloud) or your personal access tokens page (Server/Data Center); create one and paste it. Confluence on the same Cloud site as Jira reuses the Jira sign-in. GitLab, Sentry, Postman, BrowserStack Sign in in the browser , with the system's own sign-in, for its MCP server; or paste a token or key. The browser sign-in is GitLab's (GitLab.com or your own), Sentry's (sentry.io), Postman's (US) and BrowserStack's: self-hosted Sentry and Postman's EU server take a token only. BrowserStack's remote browsers still need the user name and access key. Azure Sign in with Microsoft in the browser through the Azure CLI ( az login ), for Microsoft's Azure MCP server. Dataverse Sign in with Microsoft in the browser through the Dataverse CLI ( npx @microsoft/dataverse auth create ), for the environment integrations.dataverse.url names. TestRail, Zephyr Scale, qTest, Xray Cloud The page with your API key opens, or ForgeQE says where to find it; paste it. Anything else forgeqe auth login OPENAI_API_KEY (any variable name) saves that one secret: a model key, a Teams webhook URL, an SMTP or saved-login password. Browser sign-ins of MCP servers. GitLab, Sentry, Postman, BrowserStack and Atlassian's Rovo server sign ForgeQE in as the MCP authorization spec has it: ForgeQE reads the server's OAuth metadata, registers itself as a public client, opens the system's sign-in page with PKCE, and takes the answer on a one-time listener on 127.0.0.1 . Every address involved must be https. The tokens are kept in the credential store and renewed before each session; a sign-in is used only with the server it was given for, so changing the GitLab address needs a new sign-in. forgeqe auth logout \u003csystem\u003e removes it (the system may still list ForgeQE among your authorized apps until you revoke it there). A token variable, when set, is used instead. Atlassian's OAuth sign-in for its REST API needs a client secret, which a command-line tool cannot keep secret, so ForgeQE's own Jira and Confluence calls use API tokens: they are what Atlassian recommends for scripts and tools. Each token is checked against the system before it is saved, and the system is switched on: a saved Jira sign-in sets the site URL too, so sources.jira is not needed in forgeqe.yaml . Saved values go in under the variable names the config already reads ( JIRA_API_TOKEN , ADO_PAT , ...). A variable exported in the terminal is used before a saved sign-in, and a saved sign-in before a .env file, so pipelines keep using their secrets. The shell commands the agents run never see the saved secrets."},{"t":"Choosing the model and the browser","u":"docs/index.html#doc-how_to_use-choosing-the-model-and-the-browser","g":"User guide · Get started","h":[],"x":"Choosing the model and the browser forgeqe.yaml selects the active profile: yaml Copy llm: models_file: ./llms.json active: azure-gpt4o routing: auto # off | shadow | auto: each area of work gets the model it needs # routes: # limit or pin an area: browser: [gpt4o, gpt54], coding: gpt54 # agents: # an agent's own default model: forgeqe: gpt54, engine: gpt4o, forgeqe-test: gpt54 browser: headless: true max_steps: 40 # a checkpoint: a run still making progress carries on, up to 3x timeout_seconds: 600 vision_detail: low allowed_hosts: [] judge: false # true: a second model call checks each finished run and can fail it overlay: true window: maximized # visible browser: maximized | viewport (a window of viewport's size) video: true # video.mp4 of each run, shown in its report # start_url: https://staging.example.com Reaching a limit. A run that reaches max_steps (after carrying on while it makes progress) or timeout_seconds asks whether to carry on when someone can answer: in a chat, on the web app's pages, or in a terminal ( --yes does not ask). Carry on gives it as many steps, or as long, again; the browser stays open and paused while it asks, and the time spent waiting does not count. Stop ends it there, keeping everything it did (its steps, screenshots, report and what it recorded, such as an accessibility persona's barriers). No answer in 10 minutes is a stop. A run nobody can be asked about (a schedule, CI, --yes ) stops at its limit as before. A run that stops at a limit is not counted as passed. A run that has made no progress by a max_steps checkpoint (its recent steps all failed) asks the same way before it stops, instead of ending there: you may know the page is slow or the form is long. code.max_tokens asks the same way for the coding agent and the API test writer. forgeqe suite in a terminal asks too, for each case's browser run and coding job, one question at a time when cases run side by side. judge is off by default. When it is on, one more model call reads the finished run's steps and screenshots and can fail a run the agent completed, for example when five scores were read off one results page rather than one step per item. That strictness sent runs into loops of re-checking, so turn it on only when you want that second opinion. Each step waits for the tab the agent is on to finish loading (up to 8 seconds, 3 for a tab that stays blank) before the page is read, so a result that opens in a new tab is not mistaken for a blank page. With a visible browser ( headless: false or --headed ), ForgeQE opens on its own start page, and every page it drives gets a glowing edge and a bar along the bottom showing, in plain words, what the step is for and what the agent is doing (\"Step 19 · Check whether the results can be sorted by Fastest · Looking through the page's buttons\"). Your mouse and keyboard are locked while the agent thinks and unlocked while it clicks and types, so a stray click can't change the test. None of this appears in the screenshots the model sees or in the report. overlay: false turns it off. forgeqe login \u003cname\u003e shows the same bar without the lock, since you are the one signing in. A visible browser opens maximized. window: viewport opens it at viewport 's width and height instead; a headless page is always that size (1280×800 by default). Each run is recorded to video.mp4 in its run folder, and the report plays it on the run's page; video: false turns recording off. The video needs packages that forgeqe setup adds to the engine (an engine set up before this version gets them on its next run). start_url is optional. Leave it out and the agent picks the site from the goal; ForgeQE never guesses a URL from the goal text. allowed_hosts empty allows every host. Set [\"example.com\"] to keep the browser on that domain and its subdomains. prompts.step_instruction is appended to the engine's system prompt; the lines of prompts.guiderails are guardrails for every agent (see Guardrails above)."},{"t":"Using ForgeQE","u":"docs/index.html#using","g":"User guide","h":[],"x":"03 Using ForgeQE The shell, its commands, and running without it"},{"t":"Shell","u":"docs/index.html#doc-how_to_use-3-shell","g":"User guide · Using ForgeQE","h":[],"x":"Shell bash Copy bun src/index.ts start Type what you want and press Enter. The prompt wraps long text and grows as you type; Ctrl+J (or Shift+Enter, Alt+Enter where the terminal reports it) starts a new line, so you can paste or write several steps at once: text Copy Go to booking.com and search for hotels in Mumbai Run SHOP-12 and SHOP-14 from Jira, two browsers at once Run test plan 12 suite 34 from Azure DevOps and don't post results Write a Playwright test for that run Add a GitHub Actions workflow that runs tests/cases.yaml on every PR, and make it green ForgeQE's agent reads the message and decides what it needs: a browser run, test cases from Jira, Azure DevOps, Xray, a file, or steps you pasted, a test, or a pipeline. There is no command to pick one. When a reference is ambiguous (is 12 a work item or a test plan?), it asks, and you answer in the next message; the session remembers the conversation. Its replies appear in the transcript, and so does everything its tools do: browser steps, suite progress, and the test commands ForgeQE runs. For a browser goal, the browser starts blank and the browser agent decides where to go, then works through cookie banners, sign-in prompts, and forms on the page. The transcript shows each step's goal and the actions it took ( navigate … , click \"Accept\" , input \"Mumbai\" → \"Where are you going?\" ), with ✗ and the error when an action fails. Everything the other forgeqe commands do is also a tool the agent can call, so you can ask for it here instead of leaving the shell: Ask for Tool Same as \"Run SHOP-12 and SHOP-14\", \"what's in test plan 12?\" run_test_cases , find_test_cases forgeqe suite , forgeqe cases \"Write a Playwright test for that run\" write_test forgeqe code \"The checkout tests are failing, fix them\" heal_tests forgeqe heal \"Run all tests related to login\", \"run the tests added this sprint\", \"which tests cover checkout?\" find_tests , run_tests , list_sprints (shell and forgeqe run only) \"Check the smoke cases once\", \"monitor them every 10 minutes\", \"is anything failing?\", \"stop monitoring\", \"send a test alert\" monitor forgeqe monitor , --once , --test-alerts \"Sign in to shop\", \"which logins do I have?\", \"forget the shop session\" logins forgeqe login , forgeqe logins , forgeqe logins clear \"What flows does page memory know?\", \"forget what you learned about shop.test\" page_memory forgeqe memory \"What can you do?\", \"can you do API testing?\", \"do you support DORA?\" capabilities forgeqe features \"Which profiles do I have?\", \"which MCP servers will you use?\", \"how do email alerts work?\", \"install the engine\", \"scaffold a config in ./demo\" forgeqe_setup forgeqe models , forgeqe mcp list , forgeqe docs , forgeqe setup , forgeqe init Only browser runs of the app under test become tests. When the agent uses the browser for a task, such as checking whether a story is linked to a test case in Azure DevOps or Jira, that run is marked as a task and no test is written for it, even if write_test is called on it. write_test and heal_tests run the same loops as the commands: ForgeQE runs the test command itself and a test only counts as passing when ForgeQE saw it pass. Their results, and each monitor round, appear as a card in the transcript. When a step needs you, such as signing in by hand in the browser window, a Your turn prompt shows what to do, and ForgeQE waits until you pick Done, continue (save the session) or Cancel . The slash commands control the session and show a few things directly ( /help lists them): Command Action /stop Stop what is running (or press Esc) /rerun [last|run] Run a passed run again as recorded, without ForgeQE's agent (the last one, a run folder, or its goal) /headed on|off Show the browser window (live profiles) /theme light|dark|auto 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. FORGEQE_THEME=light (or dark ) sets it at start; /theme alone says which is in use /details [on|off] Show everything the agents do while they work: the browser agent's reasoning, page memory, engine logs, every file the coding agent reads (off by default: step results, files written, test results, problems). --verbose or FORGEQE_VERBOSE=1 starts with it on, for start , run , suite , code , and heal too /model Pick the model from the profiles in llms.json (or click the model ▾ in the status line; Tab switches to the next one) /profile \u003cname\u003e Switch LLM profile (or press Tab); from your next message the agent goes on with it in the same session, or, for a profile it cannot switch to, starts again with the conversation so far /env [name] The test environments in env.yaml and their apps, or switch to one /logs [shots] Save this session's log and runs in one archive to share ( shots : with screenshots) /features What ForgeQE can do, and what each capability still needs here /runs The Runs page: every run with its result, steps and what page memory replayed; the week as a chart; click a run (or ↑↓) to see how it ended and every step it took: by page memory or the model, the page, what it did, how long it took, and the step that failed with its error. enter opens its report, f its folder, r runs it again /reports The Reports page: every report ForgeQE wrote here (suites, pipelines, /report ), newest first, each with open ↗ to view it in the browser and a short summary of the chosen one. / searches by title, kind and summary (esc clears). A single run's report is on the Runs page. f opens its folder, b builds a new report /jobs The Jobs screen: every scheduled job with its next run, last result and recent runs; the week's runs as a chart; the chosen job's runs and output. ↑↓ choose, r runs now, p pauses or resumes, s stops, l opens the log, esc goes back /knowledge The Knowledge page: what ForgeQE has kept here as it works (run history, page memory, defect history, the code it wrote and how much is still there, product knowle"},{"t":"The screen","u":"docs/index.html#doc-how_to_use-the-screen","g":"User guide · Using ForgeQE","h":[],"x":"The screen The start screen. Before your first request, the screen is one column under the logo: text Copy playwright-csharp-pom-framework · .NET · Azure DevOps ┃ Describe what you want to test… ✦ Refine ctrl+r ⌕ Search ctrl+p ? shortcuts ctrl+c close Start with ▸ Run test cases Run test plan 12 suite 34 from Azure DevOps… alt+1 ▸ Check release readiness Are we ready to release? alt+2 Recent runs and reports ▤ Report QI-Payments pipeline status report 18 min ago open ✓ Run Search hotels in Mumbai on booking.com 2 days ago open rerun Setup ▰▰▰▱▱ 3 of 5 · Domain and Notifications are not set up ▸ how to set up ● Tip Press Tab to switch LLM profile azure/gpt-5.4 (default) ▾ · ForgeQE The line under the logo is what ForgeQE works with here: the folder, what it is built with (from its files, such as a .sln or playwright.config.ts ), the systems that are set up. The model and its profile are in the footer, the status line on every screen; click the model ▾ (or type /model ) to pick another, or press Tab for the next one. The prompt starts five rows high and grows with a long request, up to nearly half the screen, before it scrolls; the sections below give way, last first, to make room. Start with offers up to four things to ask, from the capabilities that work in this setup, each with an example in the words of your setup. Click one, or press Alt-1 to Alt-4, to put it in the prompt to adjust and send. In a folder without forgeqe.yaml , or without a live model, the line under the logo says so and Get started takes its place: Set up ForgeQE in this folder (runs /init ), Add a model , and Sign in to Azure DevOps or Jira (runs /auth ). Start ForgeQE in your test project's folder to work with its settings. Recent runs ( Recent runs and reports when there are reports) lists the newest runs and reports in the reports folder: open opens the report, rerun puts the run's goal in the prompt. Setup shows how much is set up and what is missing (see the setup checklist below); it goes away once everything is set up. The tip in the footer changes every few seconds. Press ? on an empty prompt for every key; Esc closes the list. The conversation. Once you send a request, the screen is one column that reads top to bottom, as in Claude Code: text Copy \u003e get the current release details from all projects ⏺ Azure DevOps · pipelines build (action list, project QI-Payments, top 1) ⏺ ForgeQE · query_api (azure_devops, vsrm.dev.azure.com/…/_apis/release/releases) ⎿ No classic releases came back, so I will confirm on the Releases page. ⏺ Browser: Open Autothon › Pipelines › Releases ⎿ Step 1 · Open the Autothon project ✓ navigate https://dev.azure.com/devcgazuredevops/Autothon ⏺ No classic releases exist in any of the seven projects. … ⠹ Acting in the browser (step 3)… (24s · step 3/40 · 57.4K tokens · esc to interrupt) ╭──────────────────────────────────────────────────────────╮ │ \u003e Ask ForgeQE… (/ for commands, @ to reference a run…) │ ╰──────────────────────────────────────────────────────────╯ ✦ Refine ctrl+r ⌕ Search ctrl+p ▦ Panels ctrl+o ctrl+c close ~/playwright-csharp-pom-framework azure/gpt-5.4 (default) ▾ · 57.4K tokens · ForgeQE \u003e is what you asked. ⏺ starts each reply, tool call, browser run, test case, and result; calls in a row sit together, with the arguments dimmed. What came of a call is indented under it after ⎿ : the agent's notes, each browser step and its actions (✓ or ✗), and a result's details. While a request runs, one line above the input says what is happening, for how long, how far a browser run or suite has got, and with how many tokens. The footer is the status line, and the one place for the folder, the model and its profile, and what the session used. PgUp and PgDn scroll the conversation from the prompt (the mouse wheel works too); PgDn back at the end follows new lines again. A long request you sent (a refined one, a pasted spec) shows its first lines and … 27 more lines, sent in full . Prices are not shown in the conversation; reports and forgeqe models have them. A result that made nothing (a run that only looked something up) adds no card. The panels. ▦ Panels (Ctrl-O) splits the screen in half on a terminal 120 columns wide or more: the Activities column on the right, and the conversation with the files, context, and tokens panels on the left. On a narrower terminal the panels take the conversation's place. Ctrl-O again, or ✕ Close , closes them. The Activities column shows what the agents do as they do it: the status line: who is working, a progress bar for the plan or a suite's cases, for how long, and ■ Stop ; under it, the whole width, what is happening now ( Agent: Azure DevOps API · QI-Payments/_apis/build/builds… ); Plan : the agent's own task list as soon as it writes one, then each browser step or suite case: ○ pending, a spinner while in progress, ✓ done, ✗ failed and why. ForgeQE's agent writes a plan for any request of three steps or more and updates it as it goes; Activity : Now (the task in progress) and Next (the next task), then every tool call, browser step, and note. A call shows a spinner the moment it starts and becomes ✓ or ✗ in the same row when it ends, so a long API query or test run is never invisible. Reads and searches that the conversation leaves out at the brief detail level are listed here. A call takes one row and a note up to three; focus the panel to scroll through everything or filter it. Each request starts under a line with its time and what you asked ( ── 14:02 can you generate a defect report… ── ) and ends with how it went ( ✓ Done in 1m 12s · 16 activities , or ✗ Failed, ■ Stopped, ? Waiting for your answer), so one request's activities are never read as another's; earlier requests stay above, to scroll back to. The Plan shows the current request only. Over the conversation: Files (each file read ◉, written ✚, or edited ✎, newest first), Context (how full the model's context window is, and the skills, product knowledge, domain, and MCP servers"},{"t":"The web app","u":"docs/index.html#doc-how_to_use-the-web-app","g":"User guide · Using ForgeQE","h":[],"x":"The web app forgeqe web is the shell in your browser: a chat on Home with the plan, each agent's steps and handoffs, the live activity, and the results (tests, reports, diffs) as they happen; pages for recording, regression packs, API tests, quality, data, runs, reports, schedules and agent evidence; and every setting as a form, with keys kept in your credential store. It listens on 127.0.0.1 only and needs the token in the address it opens and prints. bash Copy forgeqe web # a free port, opened in your browser forgeqe web --port 4711 # a fixed port forgeqe web --no-open # only print the address The first page is Settings › Set up: the project folder (an existing clone, or a new folder), ForgeQE in it (the same as forgeqe init ), what this computer needs, and a model. See docs/WEB_APP.md for every page."},{"t":"Without the shell","u":"docs/index.html#doc-how_to_use-4-without-the-shell","g":"User guide · Using ForgeQE","h":[],"x":"Without the shell bash Copy forgeqe run \"Search hotels in Mumbai on booking.com\" --profile azure-gpt4o --plain forgeqe run \"Run the cases in smoke.yaml and don't post results\" --plain forgeqe run sends the request to the same agent and prints its tool work and its final reply. Exit codes: 0 done, 1 failed, 2 stopped (Ctrl-C), 3 the agent needs more information; run again with the details. --direct skips the agent and runs the text as one browser goal, which is also what happens without the agent runtime: bash Copy forgeqe run --direct \"Search hotels in Mumbai on booking.com\" --profile azure-gpt4o --plain --out ./.forgeqe/reports/demo Exit codes for a direct run: 0 complete, 1 failed, 2 stopped. For test cases in a pipeline, use forgeqe suite (section 7), which runs the same way every time. Each run gets its own folder, named by its run id (the start time), under .forgeqe/reports/ ( export.out_dir ). forgeqe init adds .forgeqe/reports/ to .gitignore , and so does the first agent command in a project set up before that. A live run's folder contains: run.json : result, summary, token counts, visited URLs, the judge's check of the result (when judge: true ), and how the browser was set up workflow.yaml : compact steps ( forgeqe-v2-compact ) with semantic locators trace.md : task, per-step result, failure trace steps.json and steps/ : each step with a screenshot report.html : the run's report failure.png : last screenshot, only when the run failed"},{"t":"A live agent for programs ( forgeqe chat --jsonl )","u":"docs/index.html#doc-how_to_use-a-live-agent-for-programs-forgeqe-chat---jsonl","g":"User guide · Using ForgeQE","h":[],"x":"A live agent for programs ( forgeqe chat --jsonl ) A program that needs what the shell has (one live agent per conversation, follow-ups, credentials remembered for the session, Your turn and questions, stop), such as a web UI or an IDE, starts forgeqe chat --jsonl and talks to it in JSON lines. It is the shell's agent and the shell's events, not a screen to scrape. ForgeQE serves no HTTP here: the program that starts the process owns transport, users, and sign-in. bash Copy forgeqe chat --jsonl [--repo DIR | --no-code] [--profile NAME] [--url URL] [--headed] [--browser-provider local|docker|browserstack|testmu] [--devices a,b] [--max-steps N] [--replay MODE] [--no-memory] [--carry-over FILE] [--config forgeqe.yaml] [--verbose] [--debug] The flags mean what they mean for forgeqe run and forgeqe start . --jsonl is required (the only format so far). --carry-over FILE is a JSON list [{\"user\": \"...\", \"reply\": \"...\"}, ...] : the turns of an earlier conversation whose process has gone (a server closing idle chats). The first message then reaches the agent with those turns before it, as when you switch profiles in the shell. To change the model mid-chat, send a model line: the same agent session goes on with the new model (below). --verbose also writes readable event lines to stderr. The process opens ForgeQE's agent on the first message and keeps it for every later one; it ends it on close , the end of stdin, or a signal. It works like the shell: background monitors are allowed and stop when it exits, and passed runs become tests unless --no-code . A request that was run before and passed is run again as recorded, without the agent, as in the shell (Tier 0, registry.mode ); its turn ends with the result as the reply. When the agent cannot run (no model, no agent runtime), the process writes fatal and exits 1 before it reads anything: it never falls back to a browser goal. stdout carries only JSON lines: one object per line, UTF-8, ending in \\n . Logs, warnings, and anything a library prints go to stderr. Lines can be long (a card, a suite result); do not assume a maximum length. Every line has \"v\": 1 , \"seq\" (1, 2, 3, … in this process), and \"t\" (ISO time). Every string is passed through the session's secret redaction, so a password given in a message never comes back out, not even inside a tool result; profile keys and the values of ForgeQE's own secret variables never appear. Input (stdin), one JSON object per line: type Fields Meaning message id (your turn id), text A new user message. Refused with error busy while a turn runs answer id (from an ask ), choice (an option id, or null to cancel) Answers the pending question continue id (from a wait ), ok ( true = Done, continue; false = Cancel) Ends the pending wait stop Stops the running turn (Esc or /stop in the shell). Nothing when idle settings headed and/or writeTests (each true or false , nothing else) Changes the chat's choices from now on: whether browser runs are shown (as --headed ), and whether passed runs become tests (as --no-code , off). The next browser run uses them; the agent is told of a change with your next message. Answered with settings model profile (a profile name, nothing else) The chat's model from the next message, as a model picker does: the same agent session goes on, with the conversation, its tools and files, and the agent is told of the change with your next message; ForgeQE's tools use that profile too. Before the agent opens, any profile of llms.json; after, one of the models line. Refused with error busy while a turn runs, bad_input for anything else. Answered with model close Stops any turn, closes the agent, stops monitors and the containers it started, writes closed , exits 0 A line that is not JSON, has an unknown type , or misses a field gets error bad_input with the reason and the first 200 characters of the line; the process goes on. The end of stdin is the same as close . Output (stdout): type Fields When ready protocol (1), version , cwd , writeTests , headed , profile ( name and provider , never a key) Once, after the config is loaded and checked, before stdin is read models profile ( name , provider : the one answering), models (each name and provider , its own first; empty when it cannot switch) When the agent opens: the profiles a model line may name. A custom agent's chat, and one with code.model , offer none model profile ( name , provider ) After a model line: the profile answering from the next message turn_start id A message was accepted settings headed , writeTests After a settings line: the choices now in force agent id , event : a CodeEvent ( stream , say , start , tool , plan , usage , context , test , info , …) While the turn runs tool id , event : a ToolEvent ( run-start , run-event , run-done , suite-* , card , info , agent , code-* , …) While the turn runs; id is null for a background monitor between turns ask id ( ask-N ), turn , question ( title , detail , lines , options[{id, label}] ) A tool asks you to choose wait id ( wait-N ), turn , prompt A tool waits for you to do something by hand turn_done id , outcome ( done , failed , needs_input , stopped ), reply (the visible reply), next (follow-ups), error (when there is one), usage (the agent's usage so far, null before it opened) The turn ended, whatever the way error code ( bad_input , busy , unknown_id , model , internal ), message , turn (when one runs) A problem that does not end the process fatal message The process cannot go on; exit code 1 follows closed The last line before a clean exit CodeEvent and ToolEvent are passed through as they are: their types in src/types.ts and src/mcp/tools.ts are the contract. Rules: Every turn that got turn_start gets exactly one turn_done , also after an error ( outcome: \"failed\" with the error ). One ask and one wait can be pending at a time. answer or continue with an id that is not pending gets error unknown_id , and nothing else happens. stop and close answer a pending ask with null and "},{"t":"Browser","u":"docs/index.html#area-browser","g":"User guide","h":[],"x":"04 Browser Goals carried out in a real browser, and the logins they use"},{"t":"Run any goal in a real browser","u":"docs/index.html#cap-browser-goals","g":"User guide · Browser","h":[],"x":"Browser Run any goal in a real browser Carries out a plain-language goal in a real browser one step at a time and verifies the outcome, with screenshots, a report, and the steps it took. The browser comes from forgeqe.yaml: local Chrome or Chromium by default, or BrowserStack or TestMu AI/LambdaTest when configured. Page memory replays steps that already worked on a site, so repeat runs are faster and cheaper. Ask it Go to booking.com and search hotels in Mumbai for next weekend What does ForgeQE know about the checkout page? Add Chrome on Windows 11 and Chrome 128 on Windows 10 as TestMu devices, then run SHOP-12 on both What it needs Required A live model profile in llms.json (an API key or Microsoft Entra ID sign-in) Limits Web applications only: local Chrome or Chromium, or configured remote web grids such as BrowserStack and TestMu AI/LambdaTest; not native mobile or desktop applications. Tools browser_run run_details page_memory browser_devices In detail See 4. Without the shell ."},{"t":"Page memory","u":"docs/index.html#doc-how_to_use-5-page-memory","g":"User guide · Browser","h":[],"x":"Page memory Live runs build a memory of the pages they visit, next to forgeqe.yaml . With no config file it goes to ~/.forgeqe/memory (under FORGEQE_HOME when that is set), so runs from any folder share one memory. yaml Copy memory: enabled: true dir: ./.forgeqe/memory replay: verify # verify | trust | off text Copy .forgeqe/memory/ pages/\u003chost\u003e/\u003cpath\u003e.json every interactive element on the page and its locators flows/\u003cgoal\u003e-\u003chash\u003e.json the steps of a goal that passed, for replay scribe-notes.json what the coding agent learned about each repo, and the tests it wrote there Each page file lists its elements with every locator ForgeQE can build for them: test id, id, role and name, label, placeholder, alt, title, href, text, CSS, and XPath. Each locator has a Playwright string, a confidence %, and its evidence: how many visits it matched on, how often it went missing, and how often it worked or failed when used. Elements and pages carry first_seen , last_seen , last_used , and last_updated . Paths with ids in them share one file ( /hotel/* ), and query strings are ignored. Confidence starts from the locator kind (a test id or role and name ranks above text, CSS, and XPath). It is lower when the locator matches more than one element or looks generated ( #ember123 , hashed class names). It rises as the locator keeps matching over visits and works when used, and it drops when the locator goes missing or fails. How memory saves time and tokens: Replay. Running a goal that passed before replays its recorded steps directly in the browser, with no model calls. A different goal replays nothing: the agent gets the steps of earlier runs on the site, and the controls that worked there, as hints, and decides itself which of them (a banner, a sign-in, a search form) apply to its task, so a new task does not re-explore the setup. Each step finds its element by the highest-confidence locator that still matches exactly one element, then by the element's fingerprint, so a renamed button or a changed id still resolves. The transcript marks these steps ↻ and shows the locator used ( click \"Search\" [role 88%] ). The site's rulebook. Page memory keeps what worked; the rulebook keeps what did not. When an action fails during a run and the agent then finds one that works, it may end its answer with a line or two starting Lesson: (\"On the booking page, type the date in the Check-in field; clicking a day in the calendar does nothing\"). ForgeQE keeps a lesson only when that run passed, in rules/\u003chost\u003e.json in page memory, and every later run that starts on that site gets the rules, so it does not spend steps on the same dead end. The lesson lines are taken out of the run's summary. The book works like Scribe's rulebook (under Keeping Scribe's cost down): at most 15 one-line rules, merged when learned again, the least confirmed and oldest dropped first, expired after 180 days unconfirmed, and a rule with a link, a token, a destructive command, or wording that drops instructions is refused. ForgeQE says each new rule ( Learned for this site: … ). browser.rulebook: false turns it off; with page memory off there is none. Hand-off. With replay: verify (the default) the agent then looks at the page once and confirms the result. replay: trust finishes without the model when every step of this same task replayed. When a step cannot be found, the agent continues from that point instead of starting over. replay: off records memory but never replays. Failed runs. A run that fails keeps the steps that worked before it went wrong ( resume.json in its run folder, and in the task's flow). Running the same task again replays them and the agent picks up at the point of failure, told what went wrong last time. When ForgeQE's agent retries a failed goal with different wording, it passes the failed run ( resume_from ), so the retry starts from the same point instead of step 1. Cut-off runs. After every step, a run saves the steps that worked so far and the page memory it has learned, so nothing is lost if ForgeQE is closed, the machine restarts, or the run is stopped. Running the same task again replays those steps and the agent carries on from there; the folder of the cut-off run also has resume.json , so resume_from works with it too. When the model can't be reached (the connection dropped), the run ends as failed and keeps its steps the same way. A run that finishes removes the saved point. Hints. The agent's prompt includes the steps that worked last time on the same site and the controls those runs used, and tells the agent to do them in one turn instead of exploring the page. Tests. The coding agent gets each element's best locator from memory in handoff.md . A run that fails keeps the last good flow and counts the failure. A stopped run changes nothing. Password fields are never stored, and a value typed from FORGEQE_ENGINE_DEFAULT_LOGIN_USERNAME or FORGEQE_ENGINE_DEFAULT_LOGIN_PASSWORD is stored as the variable name and read from the environment on replay. Replay also stops before a step whose value cannot be restored, and the agent does it. bash Copy forgeqe memory # hosts with page, element, and flow counts forgeqe memory show booking.com # the host's pages forgeqe memory show https://app.test/login # elements, confidence, best locator forgeqe memory show https://app.test/login --locators --all forgeqe memory flows --steps forgeqe memory clear booking.com # prints what it would delete forgeqe memory clear booking.com --yes forgeqe memory clear courier --yes # a mobile or desktop app's memory forgeqe memory stats # how often memory stood in for the model, per area In the shell, ask (\"what does page memory know about booking.com?\") and the agent looks it up. For one run, --replay verify|trust|off overrides the config and --no-memory turns memory off. Commit .forgeqe/memory to share it with a team or CI, or add .forgeqe/ to .gitignore to keep it local."},{"t":"Saved logins for the application under test","u":"docs/index.html#cap-logins","g":"User guide · Browser","h":[],"x":"Browser Saved logins for the application under test Signs the browser agent in with saved credentials (including TOTP) and reuses the session; a user can also sign in by hand once in a browser. Ask it Sign in to the admin site and keep the session Forget the saved session for shop.example.com What it needs Nothing beyond ForgeQE itself. Tools logins In detail"},{"t":"Signing in","u":"docs/index.html#doc-how_to_use-signing-in","g":"User guide · Browser","h":[],"x":"Signing in yaml Copy logins: shop: url: https://staging.shop.test/login # or domains: [https://staging.shop.test, https://*.shop.test] username_env: SHOP_USER password_env: SHOP_PASSWORD totp_env: SHOP_TOTP_SECRET # optional: the authenticator secret (base32), for 2FA codes # save_session: false # sign in on every run The browser agent is told which placeholders exist ( shop_username , shop_password , shop_bu_2fa_code ) and types them; the engine swaps in the real values only on the matching domains and masks them in everything the model sees. For TOTP, a fresh code is computed at the moment it is typed. After each step ForgeQE saves the site's cookies and local storage to .forgeqe/sessions/\u003cname\u003e.json (private to your user, with its own .gitignore ), and the next run starts signed in. Page memory records the variable names, not the values, so replays type the current values and fresh codes, and tests the coding agent writes read SHOP_PASSWORD from the environment. Credentials in a message or test case. Paste a test case that says \"log in as svc@corp.test with password …\" and you do not need logins: at all. Before the first browser run, ForgeQE's agent remembers the credentials as a login for that site and its sign-in hosts (for Dynamics, the CRM host and login.microsoftonline.com ). From then on: goals say \"sign in with the saved login dynamics\" and never contain the password, so it is not in run.json , trace.md , report.html , or workflow.yaml ; the browser agent types the exact value from a placeholder, so quotes or a full stop around the password in the test case cannot end up in the password field; the signed-in session is saved in .forgeqe/sessions/ , so follow-up runs (\"now open the latest case\") start signed in; tests Scribe writes read FORGEQE_\u003cNAME\u003e_USERNAME and FORGEQE_\u003cNAME\u003e_PASSWORD , and ForgeQE sets them when it runs those tests in this session. ForgeQE keeps the values in memory for the session only: it does not write them to disk or put them in the agent runtime's environment. Your message itself is still part of the conversation, which the agent runtime keeps locally like any chat, and which the model provider receives. Close ForgeQE and the remembered values are gone (the saved session stays until it expires or you clear it). Ask \"which logins do I have?\" to see them, or \"forget the dynamics login\" to drop them. For pipelines and later sessions, use logins: with environment variables. Single sign-on, captchas, and security keys need a person: forgeqe login shop opens a browser on the login page, you sign in, press Enter in the terminal, and the session is saved. forgeqe logins lists logins, which variables are missing, and when each session was saved; forgeqe logins clear shop (or --all ) forgets sessions. In the shell, \"sign in to shop\" does the same: the browser opens, a Your turn prompt waits while you sign in, and Done, continue saves the session. forgeqe run asks you to press Enter instead, and forgeqe mcp cannot wait for a person, so it tells the calling agent to have you run forgeqe login shop . In a pipeline, set the login variables as secrets."},{"t":"Record a web test by hand","u":"docs/index.html#cap-record-web","g":"User guide · Browser","h":[],"x":"Browser Record a web test by hand Opens a browser with the Recorder panel docked in the page while the user does the steps of a web test themself, and saves their clicks, typing, choices and keys in order as a run, with the checks, kept values, test data and notes they add; the coding agent then turns it into a test in the repository's framework. Ask it I'll show you the checkout steps in the shop: record them Record my steps on the cart page and make a test of it What it needs Optional The coding agent, Scribe: a live model profile (or code.model) and the agent runtime, which forgeqe setup installs Limits Local Chrome or Chromium only, one recording at a time; drag and drop and steps inside iframes are not recorded yet Tools web_record In detail"},{"t":"Recording a web test by hand","u":"docs/index.html#doc-how_to_use-recording-a-web-test-by-hand","g":"User guide · Browser","h":[],"x":"Recording a web test by hand When you would rather show the steps than describe them, record them. ForgeQE opens Chrome on the app's page with the Recorder panel docked in a corner of the page, in the same window: you click, type and choose as usual, and each action is listed in the panel as a numbered step, in order. Drag the panel by its title to another corner, or make it small (a pill that shows the step count); it comes back where you left it on every page. bash Copy forgeqe record shop --name \"Apply a coupon at checkout\" # a web app from env.yaml forgeqe record --url https://staging.shop.test/cart # or any page In the shell, say \"I'll show you the checkout, record it\" (or /record shop ). What you can add while recording: In the panel In the page: Ctrl+Shift+Space, then What it adds Check, then click an element A A check: its text, or its value for a field, or checked for a checkbox. Change the kind (text, visible, hidden, value) and mark live data (check the pattern, not this value) in the panel Variable, then click an element V Keeps the element's text for later steps: typing the same text later is written as {{name}} Wait for, then click an element W The test waits for the element to show Test data D The last value you typed becomes test data the test reads from its data note: … in the box N A note on the last step: \"this is the cart page object\" Pause / Undo / Stop, ✕ on a step P / Z / S Pause records nothing until you resume; ✕ removes that step Type a check in words in the panel's box, or in the terminal: the total shows \"$40.00\" . Quoted text the page shows becomes a check on the element showing it; without quotes, one model call finds the text that shows it on the page. A check the page cannot show yet is kept in your words, and the coding agent writes it. In the terminal, undo , pause , delete 4 and stop work too. What is recorded: clicks (a double click as one step), the final text of each field you typed in (not each key), choices in drop-downs, Enter and Escape, key chords, pages you open from the address bar, and Back. A click on a menu item that opened when the pointer went over its trigger gets a hover on the trigger first. Password fields are written as an environment variable (the saved login's password_env , or \u003cSITE\u003e_PASSWORD ), and text equal to a saved login's value as its variable: what you type in them is never stored. A file you choose for an upload is recorded by its path in the working folder; one outside it, a hidden file ( .env , anything under .git ), or one named like credentials or keys is listed as not recorded. Drag and drop is listed as not recorded. --signed-in starts with the saved sessions of logins: ; without it, record the sign-in too. Data that changes from run to run. A test that spells out this recording's price, date, or order number fails on the next run, so ForgeQE keeps what holds and makes the rest a pattern, a variable, or a value made fresh: In the recording In the test A check of a price, date, time, order number, or count (\"$14.15\", \"2,463 found\") A check of its pattern: /^\\$\\d[\\d,]*\\.\\d{2}$/ The same value checked again later (the product's price, then the cart total) The first check keeps it as {{price}} ; the later one checks {{price}} A link or button named with such data (\"Combination Pliers $14.15\") Found by the part that holds: getByRole(\"link\", { name: /Combination Pliers/ }) A date you typed The date the same number of days from today: {{$date:+3:%Y-%m-%d}} A value the app refuses twice (a new account's email) A part new on each run: alice+{{$unique}}@example.com Prices, dates, times, ids, and long numbers are found by their form; a small number on its own (\"1\" in the cart) stays exact, as it is usually what the check is about. When you stop, one model call sorts the values the forms cannot tell (a new account's email, \"today's deal\"); without a model, those stay as recorded. Each change shows in the panel with a tick box: untick it to keep the value as recorded. Recording a test case. forgeqe record --case SHOP-12 (any source ForgeQE reads cases from: Jira, Azure DevOps, Xray, TestRail, a file) starts on the case's page and shows its steps as a checklist in the panel. Click the step you are on (or Next case step ): what you record belongs to it, and a check you add there takes its expected result. Each expected result shows ✓ checked or no check yet ; Stop warns once about the ones with no check, and a second Stop stops. The test is named and tagged for the case, and mapped to it once it passes. When you stop, the run folder holds workflow.yaml and trace.md as for any run. With a repository ( --repo , or code.repo ), ForgeQE asks whether to turn it into a test. First a planner reads the repository and shows the plan: text Copy Test tests/add-to-cart.spec.ts › adds pliers to the cart Steps 2. search: HomePage.searchFor() 4. open the product: new HomePage.product(name) 6. add to the cart: new ProductPage.addToCart() New code ProductPage in pages/ProductPage.ts Checks after step 5: expect(product.price).toHaveText(/^\\$\\d+\\.\\d{2}$/) after step 6: expect(product.cartQuantity).toHaveText(\"1\") It asks at most three questions where the repository allows two good answers (a new file, or the existing spec?), then Write it , Change the plan (say what to change, in your words), or Cancel . The coding agent replays the recording in Playwright, writes the test to the plan you agreed in the repository's framework, and asserts each check at the step where you added it. In the shell, \"change the plan\" comes back to ForgeQE's agent, which asks you what to change. --no-plan (or --yes ) skips the plan. Later: forgeqe code \u003crun folder\u003e . The recorder runs in an isolated world in each page, so the page's own scripts can neither see it nor add steps, and it records only real input: clicks and keys a script fakes are ignored. The panel's own clicks and keys never reach the page and are never recorded, and it stays above the page's dialogs. Record"},{"t":"Test cases","u":"docs/index.html#area-test-cases","g":"User guide","h":[],"x":"05 Test cases Run, check, write, and explore manual test cases"},{"t":"Run manual test cases in browsers","u":"docs/index.html#cap-run-test-cases","g":"User guide · Test cases","h":[],"x":"Test cases Run manual test cases in browsers Reads test cases from Azure DevOps, Jira, Xray, TestRail, Zephyr Scale, qTest, a file, or pasted text, runs each in a real browser with a verdict per step, writes report.html and junit.xml, posts results back, and files or updates bugs for failures. Ask it Run SHOP-12 and SHOP-14 from Jira, two browsers at once Run test plan 12 suite 34 from Azure DevOps and don't post results What it needs Required A live model profile in llms.json (an API key or Microsoft Entra ID sign-in) Optional Azure DevOps or Jira or Xray or TestRail or Zephyr Scale or qTest, to read cases from a test management system and post results back (files and pasted text work without one): set up under sources: in forgeqe.yaml, or sign in with /auth Optional Bug filing: sources.bugs in forgeqe.yaml (Jira or Azure DevOps) Tools find_test_cases run_test_cases In detail"},{"t":"Test cases and suites","u":"docs/index.html#doc-how_to_use-7-test-cases-and-suites","g":"User guide · Test cases","h":[],"x":"Test cases and suites Test cases you already have can be run two ways. In the shell or with forgeqe run , ask in plain words (\"run SHOP-12 and SHOP-14\", \"run test plan 12 suite 34\", \"run the cases in smoke.yaml\") or paste the cases, and the agent works out the source. forgeqe suite takes explicit references and runs the same way every time, with no agent involved, which is what pipelines call. Each case is one goal: ForgeQE tells the agent to do the steps in order and to check every expected result, and the agent's verdict decides whether the case passed. A case with no steps (plain text, a Jira story) is run from its description."},{"t":"API steps in a test case","u":"docs/index.html#doc-how_to_use-api-steps-in-a-test-case","g":"User guide · Test cases","h":[],"x":"API steps in a test case A test case can mix API and UI steps (\"add three products with POST /add_to_cart/{id}, then remove the first one in the cart, then pay\"). The browser agent makes each API step with its api_request action, from the page, in the browser's own session: the logged-in user's cookies go with the call, and the CSRF token comes from the cookie or the page's form when the site needs one. So what an API step changes (a cart, an order) is what the next UI step sees. The verdict of an API step rests on the status the server answered, not on the agent's account of it. The run records it as an api step in workflow.yaml : method, URL, body, CSRF source, and the status and final URL the server gave. ForgeQE's replay repeats it the same way, and fails that step when the server answers differently (403 where the run got 200), so the replay and the test get past it instead of stalling on an empty cart. Scribe's handoff lists each API step with what was sent and answered, and tells Scribe to make it through the framework's API request context that shares the browser's cookies (Playwright's page.request ), asserting the status. Kept for reuse : the calls are saved as an API scenario, one per test case ( out/api/case-ado-2287/ , updated by each run), which forgeqe api and the API tools run again without a browser. The run's card says where ( API 2 calls saved as a reusable API scenario ). URLs the case gives are opened exactly as given: when the model adds a trailing slash ( /login/ , a 404 on many sites), ForgeQE opens and records the URL from the case. When a run finds a test case does not fit the application, the agent drafts the steps as they should be, from what the run found, and offers to save them. update_test_case shows the current and the new steps and asks before it changes the Azure DevOps Test Case; the reason goes into the work item's history, where the old steps stay."},{"t":"When a case fails","u":"docs/index.html#doc-how_to_use-when-a-case-fails","g":"User guide · Test cases","h":[],"x":"When a case fails The browser run of a test case is the test, so when a case does not pass, ForgeQE works out what kind of failure it was and acts on it. The browser agent reports a cause for each failed step (it saw the page); clear evidence in the run, such as an unreachable site or a 503 page, overrides \"I could not operate it\". Failure What it means Bug Automation script Functional defect Every step was done and the application behaves wrong (a wrong total, no confirmation) Filed straight away Written for the correct behaviour (the test case's expected results) and marked as an expected failure naming the bug: Playwright test.fail() , pytest xfail(strict=True) . It passes while the defect is there and fails once it is fixed, telling you to remove the marker Test case needs updating The test case does not fit the application (a field or page it names is not there) No No: update the test case. The report and the comment on the test case say what the application shows instead Environment problem The application or something it needs was unavailable (an error page, a 5xx, a network failure, sign-in or test data missing, a bot check) No No. The case runs once more straight away; if it still fails, check the environment first Automation problem A control that is there could not be operated, or the run ran out of steps No Not yet: page memory keeps the steps that worked and the next run resumes from them In Azure DevOps a test plan point is recorded as Blocked, not Failed, for the last three, so the plan's failures are product defects, and the comment on the test case names the kind of failure. Tests that need attention. A coding job that ends without a passing, approved test does not leave a failing test among your tests. The files it created move to a needs-attention/\u003ccase id\u003e/ folder beside the test, with their relative imports fixed, and a README says which test case it is for, why it stopped (the last failure, the reviewer's issues), and how to pick it up; needs-attention/README.md lists them all. The job's edits to files that were committed before it are saved as changes.patch in that folder and taken out of the files; files you had already changed are left as they are. The folder is kept out of test runs and builds: Playwright's config gets testIgnore: ['**/needs-attention/**'] , TypeScript files a // @ts-nocheck line, a Python folder a conftest.py that collects nothing, and C#, Java, or Kotlin files a .txt suffix. code.needs_attention: false leaves unfinished tests where they are. Running a case again. A case that already has a test (in .forgeqe/test-cases.json ) does not get a new one: after its browser run, ForgeQE runs the existing test first. When it passes, there is no coding job at all. When it fails, the coding agent updates that test (with the failure and the new verified run) instead of writing one from scratch. A known-defect test whose defect is fixed (the case now passes) is updated to drop its expected-failure marker; a test that passes although the run found a defect gets the defect's assertion and the marker. Mapping tests to test cases. Each test written for a test case is named \u003ccase id\u003e \u003ctitle\u003e and tagged with the case id and link in the framework's own way (Playwright tags and annotations, a pytest marker, an NUnit property). .forgeqe/test-cases.json in the repository maps every test case to its test, with its status ( automated , known_defect with the bug, or needs_attention with the folder); commit it with the tests. For Azure DevOps test cases, a passing test is also set as the work item's Associated Automation (test name, file, type, and a stable id, with Automation status Automated), so the test plan shows the case as automated."},{"t":"In the shell","u":"docs/index.html#doc-how_to_use-in-the-shell","g":"User guide · Test cases","h":[],"x":"In the shell Ask for the cases in plain words, for example \"run SHOP-12 and SHOP-14, two at a time\" or \"show me what's in test plan 12 without running it\". The transcript shows each case's steps as it runs, and a suite card at the end: text Copy ┃ ✗ Suite failed 1/2 passed · 1m 12s · 48.2K tokens ┃ ┃ ✓ SF-1 Search Mumbai 38s ┃ ✗ SF-2 Open a hotel 34s ┃ No hotel link on the results page ┃ ┃ Report .forgeqe/reports/suites/20260928-215438/report.html ┃ JUnit .forgeqe/reports/suites/20260928-215438/junit.xml"},{"t":"Where cases come from","u":"docs/index.html#doc-how_to_use-where-cases-come-from","g":"User guide · Test cases","h":[],"x":"Where cases come from bash Copy forgeqe cases cases.yaml # list them forgeqe cases cases.yaml --goal # and the exact goal each one runs Plain text. A quoted string is one case: forgeqe suite \"Log in as the demo user and open Invoices\" . Text or Markdown file. Each block between --- lines is a case, its first line the title: text Copy Search for hotels in Mumbai and check at least one result is shown --- Open the Deals page Check every deal has a price YAML or JSON. A list, or {cases: [...]} : yaml Copy - id: SHOP-12 title: Valid login url: https://staging.shop.test/login # start page (optional) preconditions: [The demo user exists] steps: - action: Sign in as demo@shop.test data: password from DEMO_PASSWORD expected: The dashboard greets the user by name - Open the Orders page # a step can be a plain string group: Accounts # optional: area for the Coverage page (or suite, area) requirements: [SHOP-3, SHOP-4] # optional: stories it covers (or refs) CSV. Header row, then a row per case. A row with an empty id (or the id above) adds a step to that case: csv Copy id,title,url,action,expected SHOP-12,Valid login,https://staging.shop.test/login,Sign in as demo,Dashboard shows ,,,Open Orders,Orders list shows Columns: id (or key ), title (or name , summary ), url , description , preconditions , tags , group (or suite , area ), requirements (or refs ), action (or step ), data , expected (or expected_result , result ). Lists in a cell are separated by ; . Gherkin. Each Scenario in a .feature file is a case, and each Examples row of a Scenario Outline is its own case. Background steps come first, and Then steps are the expected results of the step before them. Azure DevOps. Set the organization, and a PAT with Test Management and Work Items (read and write) in ADO_PAT . The MCP server is the whole organization. Leave project unset (or set it to * or all ) and ForgeQE's own calls cover every project; set project only to limit those calls to one. yaml Copy sources: azure_devops: org_url: https://dev.azure.com/acme # project: Shop # optional ado:123,456 reads test case work items: their steps and expected results (HTML turned into text), shared steps inlined, and one case per parameter row with @param values filled in. Work item ids are unique in the organization, so they do not need a project. ado:plan=12 reads every suite in a test plan and ado:plan=12/suite=34 one suite, with each test point's configuration. With no project configured, the plan is looked up in every project. ado:project=Shop/plan=12 names one. Jira. jira:SHOP-1,SHOP-2 or jira:jql=project = SHOP AND labels = e2e . The summary is the title and the description holds the steps. Jira Cloud ( *.atlassian.net ) needs JIRA_EMAIL and an API token in JIRA_API_TOKEN ; Server and Data Center use a personal access token in JIRA_API_TOKEN . yaml Copy sources: jira: url: https://acme.atlassian.net Xray. xray:SHOP-1 , xray:jql=\u003cquery\u003e , or xray:plan=SHOP-100 for a test plan's tests, with Xray's own steps, data, and expected results. Xray Cloud needs an API key pair in XRAY_CLIENT_ID and XRAY_CLIENT_SECRET . Xray Server and Data Center go through the Jira settings above. TestRail. testrail:C12,C13 reads cases by id, testrail:run=45 the tests of a run (results go back to that run), testrail:plan=7 every run in a plan, and testrail:suite=3 a suite (needs project_id ). Separated steps ( custom_steps_separated ) become steps with expected results; the text template's steps become one step. It needs the user's email in TESTRAIL_EMAIL and an API key in TESTRAIL_API_KEY . yaml Copy sources: testrail: url: https://acme.testrail.io project_id: 1 # needed for suites, and to create a run for cases read by id Zephyr Scale (Cloud). zephyr:SHOP-T1,SHOP-T2 , zephyr:cycle=SHOP-R5 (results go back to that cycle), or zephyr:folder=12 (needs project_key ). Call-to-test steps are inlined. It needs an API access token in ZEPHYR_API_TOKEN ; setting the variable is enough to turn it on. qTest. qtest:1234 reads test cases by the id in their URL, qtest:cycle=88 and qtest:suite=9 the test runs under a cycle or suite (results go back to those runs). It needs url , project_id , and an API token in QTEST_TOKEN . Result statuses are the automation status names your qTest uses; the defaults are PASS, FAIL, and BLOCKED: yaml Copy sources: qtest: url: https://acme.qtestnet.com project_id: 12345 statuses: { passed: PASS, failed: FAIL, error: BLOCKED } Several sources can be mixed: forgeqe suite smoke.yaml jira:SHOP-7 testrail:C12 . From requirements. Ask the agent to test a Confluence page, a story, or a spec file (\"write and run test cases for the refund rules page in Confluence\"). It reads the requirements, writes one case per rule or acceptance criterion with the main negative paths, shows them, and runs them as text cases. It saves them into a test system only when you ask. Confluence needs sources.confluence : yaml Copy sources: confluence: true # the wiki on the Jira Cloud site above, same account # or confluence: url: https://confluence.acme.com # Cloud: https://acme.atlassian.net/wiki token_env: CONFLUENCE_TOKEN # Server/DC personal access token; Cloud also email_env space: QA # optional: keep searches in one space"},{"t":"Running","u":"docs/index.html#doc-how_to_use-running","g":"User guide · Test cases","h":[],"x":"Running bash Copy forgeqe suite cases.yaml # one case at a time forgeqe suite ado:plan=12 --parallel 3 # three browsers at once forgeqe suite cases.yaml --repo ../app # passed cases get a test in ../app forgeqe suite cases.yaml --no-code --no-write-back --out .forgeqe/reports/smoke yaml Copy suite: parallel: 1 # browsers at once code: true # with a repo set, passed cases go to Scribe restore_sessions: false # true: each case starts signed in from the saved logins' sessions out_dir: ./.forgeqe/reports/suites Browser runs happen parallel at a time and share page memory safely. Each passed case goes to the coding agent as soon as its own browser run ends, and its test is written and run before that browser slot starts the next case: explore, hand off, code, next case. Coding jobs run one after another, so two never edit the repo at once. A case with no test says why in the report (it failed, or no model is set up). With --parallel above 1, each line of output starts with the case id. Ctrl-C stops the suite: cases already running finish closing their browsers, and cases that never started are reported as not run. At the end, ForgeQE prints the result of every case and writes to .forgeqe/reports/suites/\u003ctime\u003e/ : report.html : a single file with every screenshot embedded; open it from disk, no server needed. Its menu has three groups. This run : Overview : the verdict, totals, step checks, browser steps, tokens, cost, what page memory saved, browser errors, accessibility issues, tests written and bugs filed; what changed since the last run; results over the earlier runs in .forgeqe/reports/suites/ ; the cases that need attention and why; results by source and by tag; the slowest cases; and what was posted where. Test results : search and filter the cases. For each case: its step table (action, expected, the agent's verdict, what it actually saw), why it failed (the failed step, the agent's last evaluation, failed actions, the screenshot), last good vs now (the same page from the case's last passing run beside this run's, and where their browser steps start to differ), the browser errors per step (console errors, uncaught exceptions, failed and slow requests), page memory (steps replayed, tokens and time saved against the last run where the agent took every step, locators that healed, flows repaired), the browser agent's steps (goal, actions, errors, time and model time, a screenshot each with the element it acted on outlined), a timing waterfall (waiting for the model, acting in the browser, replayed from memory), the accessibility issues of each page, a screenshot gallery, and its trace, workflow and handoff to read in place. Run history links to earlier reports. Failures : each failed case with what the agent reported, the evidence (including browser errors), its last passing screenshot, its bug, and text to copy into a bug report. Defects : failures grouped by what caused them, so one fix clears every case it breaks, most cases broken first, with each defect's root-cause hypothesis when there is one; it downloads as Markdown. Since last run : new failures, fixes, cases still failing, cases at least 5 s and 25% slower or faster, and new or dropped cases, against the previous run in the folder. Analysis : Trends and Flaky tests : pass rate, outcomes, duration, tokens and cost per run; cases whose result keeps changing, and cases that started failing. Both need earlier suite runs in the same folder. Time and cost : where the time went (model, browser, page memory), a timeline of the cases on each parallel worker, page memory savings per case, and tokens and cost per case. Coverage : results by requirement (a requirement fails when any case covering it fails), by group, by tag and by source. Groups and requirements come from the source: the area path in Azure DevOps, the section and refs in TestRail, the folder in Zephyr Scale, components (or the parent issue) and \"tests\" links in Jira, and group / requirements in case files. Accessibility : the WCAG rules of the standard you chose, checked by axe-core on every page the agent visited: the rules that passed, each rule that failed with its success criterion, level, impact, the elements and a link to how to fix it, and any accessibility budget exceeded. Automated checks are a pre-check, not conformance. Visual : every page against its approved baseline: baseline, this run, and the difference side by side, changed pages first, with the share of pixels changed and the visual budget. Performance : each page's Core Web Vitals (LCP, CLS, INP, FCP, TTFB) and load time, coloured good / needs improvement / poor by Google's thresholds, with the budgets each page went over. Tokenomics (reports with token usage): Usage : a usage summary, tokens by case, tokens over the run, and the calls that used the most tokens. Breakdown : what the tokens paid for, by agent, job, task, purpose, model, user and machine. Model calls : every request the agents sent to a model. Models : the models behind the calls, and what the listed alternatives would cost. Trends and forecast : model spend on this machine so far, and the next days at the recent pace, against the budget. Calculator : estimate what a suite will cost before you run it, starting from this run's real numbers. Optimise : where the report could have spent less on models, by how much, and what to change. Environment opens from the model card at the foot of the menu: model, browser, the model's price, start URL, ForgeQE version, machine, CI build, branch, commit, and the sites visited. It exports Markdown and JSON and prints cleanly. Up to 40 MB of screenshots are embedded, failed cases first; beyond that they load from the run folders next to the report. junit.xml : for CI test reporting; a failed case is a \u003cfailure\u003e , a crash an \u003cerror\u003e , a case not run \u003cskipped\u003e ; step verdicts are in system-out suite.json : everything above as data 01-SHOP-12/ , 02-… : each case's normal run folder (with its own report.html , s"},{"t":"Results back in the source","u":"docs/index.html#doc-how_to_use-results-back-in-the-source","g":"User guide · Test cases","h":[],"x":"Results back in the source Test cases the agent writes from an Azure DevOps or Jira story are saved there with save_test_cases , linked to the story, and the reply lists them as links; set sources.save_cases: false to keep them in the reply only. Replies in the shell render as markdown (headings, lists, tables, links). A story often changes a feature that already has test cases, linked to an older story. Map where those cases live in forgeqe.yaml , and saving reuses or extends them instead of writing new ones: yaml Copy sources: azure_devops: test_cases: # the story's area path (or a parent of it) = where its cases are Shop\\Checkout: plan=12/suite=34 # a suite; plan=12 alone is every suite of the plan (the first 25) \"*\": area=Shop\\Regression # Test Cases under an area path; * is every other story jira: test_cases: # the story's project key = where its cases are SHOP: label=regression; component=Checkout # also project= and type= (default Test) ForgeQE reads that one place itself, at most 300 cases by title and the steps of only the few closest to each new case, so the agent never searches for cases and spends nothing on it. Each case the agent wrote is then: reuse when a case there has the same steps; extends when a case there has all of its steps in order and this one adds some; differs or similar as for linked cases; otherwise created . Nothing is written to an existing case until you agree. For reuse the agent offers link_test_case , which shows each case with the other stories it tests and asks before linking. For extends it offers update_test_case with only the added steps ( insert ): the question shows just those steps and where they go, links the case to the story in the same answer, and names the other stories the case tests, since the change applies to them too; when the old steps must stay for those, the agent saves your case as a new one instead. A case is linked only when it is a test case of the story's project (in Jira, or of the project its test_cases names), at most 20 at once. With no test_cases , only the cases linked to the story are compared. Settings › Integrations has the same field for each system. More of managing test cases, each set in forgeqe.yaml (and Settings › Integrations): Where new cases go. When test_cases maps a story to a suite ( plan=12/suite=34 ), new Azure DevOps cases are added to that suite, and run from it, so their results are recorded as a test run in the plan rather than as comments. Other systems: save_test_cases writes Xray tests with their steps in Xray ( sources.xray.save_steps: true , Cloud and Server/DC), TestRail cases in sources.testrail.section_id with the story in refs, and Zephyr Scale cases (in sources.zephyr.folder_id ) linked to the Jira story. qTest is not written to: linking a case to a story there goes through qTest requirements and its Jira integration. Fields on new cases. new_cases gives every new case a priority, tags or labels, and in Azure DevOps a state: state: Design makes each case wait for a person to mark it Ready. The agent may give a case its own priority and tags. Shared steps and data. sources.azure_devops.shared_steps lists Shared Steps work items; a new case that has their steps in a row refers to them instead of copying them. A case run with several sets of data gets parameters ( @user ) and a data table. Cases left behind by a story change. story_test_cases reads the story's history and marks the linked cases last changed before its title, description or acceptance criteria were (stale), with what changed. The agent offers to update each one the change affects, or to retire one that tests behaviour the story no longer has. Retiring a case. retire_test_case asks first, then closes it (Azure DevOps retire_state , default Closed) or labels it (Jira retire_label , default obsolete), with the reason. Nothing is deleted, and retired cases are not offered for reuse. Duplicates before saving. check_test_cases with against (a story) compares the cases with the story's linked cases and its scope: the same steps is a duplicate naming the existing case, more steps or a close title an overlap. Cases with no story. Cases written from a page, a spec or a file are saved in an Azure DevOps area path or a Jira or Zephyr Scale project you name, compared with that area's or project's scope. The feature's other stories. sibling_cases: true also compares with the cases of the other stories under the story's feature or epic (the first 30 stories; in Jira, the parent field Jira Cloud uses for epics). Automation on Jira and Xray. A test that passes for a Jira or Xray case labels it automated and records the test on the issue, as Azure DevOps cases get their Associated Automation; a comment is added only when the test is new. Release readiness in Jira. release_readiness with system: jira reads a sprint, a fix version, an epic or story keys: each story's tests, which are automated, their last results (ForgeQE's runs, Xray test runs and Zephyr Scale executions, the newest of them), open bugs by priority, and the same verdict. Matching by steps. Saving keeps an index of the scope's cases in .forgeqe/cases-index/ (git-ignored): every case's steps read once, then only those changed since, 40 per save. A case with the same steps is found whatever its title, and a slightly reworded step still counts for extends. Several changes at once. apply_case_changes links, extends, updates and retires several cases with one question, every change checked and read first. What ForgeQE changed. Every case it creates, links, updates or retires is logged in .forgeqe/history/case-changes.jsonl ; story_test_cases and the readiness report list the changes for their stories. Acceptance criteria traced to cases. Saved cases carry the criteria they cover ( covers ), and trace_criteria records which linked cases cover which; story_test_cases lists each criterion with its cases, and readiness names the criteria no traced case covers. Healing and test cases. When h"},{"t":"Bugs for failures","u":"docs/index.html#doc-how_to_use-bugs-for-failures","g":"User guide · Test cases","h":[],"x":"Bugs for failures yaml Copy sources: bugs: system: jira # or azure_devops project: SHOP # Jira project key; Azure DevOps uses azure_devops.project type: Bug # issue type or work item type labels: [forgeqe] # Jira labels or Azure DevOps tags # area_path: Shop\\Web # Azure DevOps # on_error: true # also for cases that could not run # group_by: defect # defect (default): cases failing the same way share a bug; case: a bug per case When results are posted, each case that failed with a functional defect (below) gets a bug: the title is [ForgeQE] \u003ccase id\u003e: \u003ctitle\u003e , the description has the result, the steps with verdicts, the preconditions, where the run ended, the build link, and the run folder, and the last screenshot is attached. In Jira the bug is linked to the Jira or Xray test (\"relates to\"); in Azure DevOps it is \"tested by\" the test case work item. Each bug carries a label or tag that fingerprints the case ( forgeqe- and ten hex digits), so the next failure comments \"Still failing\" on the open bug instead of filing a new one, and a pass adds a note that it passes again. A closed bug is not reopened: a new failure after that files a new bug, titled [ForgeQE] Regression: … , that says when the old one was closed and links to it (Jira \"relates to\", Azure DevOps \"Related\", a mention on GitHub; a GitHub issue closed as not planned does not count). One bug per defect. Cases that fail the same way share one bug ( group_by: defect , the default). ForgeQE gives each failing case a signature from the strongest evidence its run recorded: a failed request (a 5xx before a 4xx) by its route and status, then an uncaught page error, then a console error, with ids, numbers and times taken out, so POST /api/cart/123 → 500 and /api/cart/456 → 500 match. Errors that the suite's passing runs show too (an analytics call, a missing favicon) are noise and do not count. The first case of a defect files the bug, titled after the defect ( [ForgeQE] shop.example.com/api/cart/:id returns 500 ) and labelled with the defect's fingerprint ( forgeqe-d- and ten hex digits) as well as the case's; every other case failing the same way is added as a comment and gets its own case label on that bug. The next run finds the open bug by either label. A failure with no browser evidence is matched by its page and what the agent saw, within one run only, and its bug is titled after the case as before. group_by: case files one bug per failing case. The report's Defects page, the terminal summary and the CI job summary list every defect with the cases it breaks. Defect history. Each suite adds its defects to defect-history.json next to the suite folders (keep it between CI runs as a cache, like the suite folders, to track a pipeline's defects). A defect is new the first time, then known (\"seen in 3 earlier runs since 2 Oct\"). It went away when a run did not see it while a case it broke passed; seen again after that, or matching a closed bug in the tracker, it is a regression . A defect whose cases keep changing between passing and failing across the last 20 suites (pass, fail, pass) is marked intermittent : it still gets a bug, which says so. When a new bug is filed, ForgeQE also searches the tracker once for open bugs people filed about the same route or error ( /api/cart , price is undefined ) and lists them on the bug as possibly related; it never merges them. Only defects found by browser evidence are kept in the history: a defect matched by the agent's words gets new words every run. The Defects page shows the history and filters new defects and regressions; the summaries say it next to each defect. Reproducing and root cause. Each defect gets a repro file, defects/\u003cdefect id\u003e.md in the suite folder, and the same steps go in its bug: how reproducible it is, the case's steps with the agent's verdicts, what the browser did, where it ended, the environment (browser, device, build, commit), the failing request as a curl command with its response (the engine takes credentials out of the requests it records), and the run's files (screenshot, replay flow, every step, every API call). The first case of a new product defect runs once more into its reproduce/ folder: failing the same way makes it always reproducible, not failing again makes it intermittent ; a defect seen in earlier runs is not run again. Then the root cause, always as a hypothesis: From the evidence, at no cost: the layer (the server, the front end, access, a route that is not there, the environment) and the component (the route or the script). With defects.product_repo set: suspect commits , made since the defect's cases last passed, whose changes mention its route or error ( git log -G ), or whose files are named after it. For new defects and regressions, a read-only agent (prompt defect-rca ) reads the evidence, the suspect commits and the product's code, and writes a hypothesis with its confidence (high only when it read the code that fails and the change that broke it), what it rests on, and checks to confirm it. The hypothesis is added to the bug as a comment and shown on the Defects page. It runs for at most max_analyses defects per suite; each is one agent session (about 90K–120K tokens with gpt-5.4 in our runs), shown on its own line under Usage. yaml Copy defects: product_repo: ../shop # the application's repository: suspect commits, and the code the analysis reads # reproduce: true # run the first case of each new defect once more # analyze: true # a model writes a root-cause hypothesis for new defects and regressions # max_analyses: 3 # most analyses per suite"},{"t":"Check and improve test cases","u":"docs/index.html#cap-test-case-quality","g":"User guide · Test cases","h":[],"x":"Test cases Check and improve test cases Checks test cases before they run (vague or missing expected results, missing test data, placeholders, duplicates) against the story, feature, and epic they test, then rewrites Azure DevOps or Jira cases in place once the user agrees. Ask it Are the cases in test plan 12 good enough to run? Fix the expected results of case 4512 What it needs Optional Azure DevOps or Jira, to rewrite cases in place: set up under sources: in forgeqe.yaml, or sign in with /auth Tools check_test_cases update_test_case retire_test_case In detail"},{"t":"Checking test cases before they run","u":"docs/index.html#doc-how_to_use-checking-test-cases-before-they-run","g":"User guide · Test cases","h":[],"x":"Checking test cases before they run run_test_cases checks the cases before it runs them, and check_test_cases checks them without running anything (\"are these test cases ready?\", \"check test plan 12 against its stories\"). A check uses everything ForgeQE can know about a case: Source What it finds Cost Rules on the case's text No steps or expected results; vague expected results (\"works correctly\", \"submitted successfully\"); steps that need values the case does not give (\"enter valid user details\"); placeholders ( TBD , \u003cusername\u003e ); passwords in the case; several actions in one step; no start page; duplicate cases None Page memory Steps that name a field or control earlier runs never saw on that page (\"email\" on a form that has no email field), with what the page does have None The requirements it tests Azure DevOps: the story or PBI the case tests (\"Tests\" link), then its feature and epic, with descriptions and acceptance criteria. Jira: the issues the test is linked to, then their parents A few API calls, each requirement read once per check Linked documents Confluence pages linked from the case or its requirements A few API calls A RAG service (optional) Passages your own search finds for the case Your service Each case is ready , to review , or not runnable , shown as a card with what it tests ( tests PBI 2211 \"Contact Us form\" ← Feature 300 ← Epic 12 ) and the acceptance criteria no step seems to cover. ForgeQE's agent then judges each case against its requirements: criteria no step covers, steps no requirement asks for, expected results that contradict the requirement, controls the application does not have. The check before a run uses the rules and page memory only (no reads); check_test_cases with depth: quick does the same. RAG, plug and play. Point forgeqe.yaml at any search service over your requirements (Confluence, a wiki, specs) and the check adds its passages: yaml Copy rag: url: http://localhost:8080/search # POST {\"query\": \"...\", \"top_k\": 5}; answers a list of {text, source, score} token_env: RAG_TOKEN # optional, sent as a bearer token top_k: 5 # or a local command: gets {\"query\", \"top_k\"} on stdin, prints the list on stdout # rag: # command: [\"python\", \"rag/search.py\"] The answer can also be an object with results , passages , documents , or hits , and a passage's text can be text , content , or page_content (LangChain's shape). A RAG server with an MCP interface works through mcp: instead: ForgeQE's agent calls its tools. suite.case_check decides what happens before a run: warn (the default) shows the findings and runs every case, block leaves out the cases that cannot run as written, off skips the check. Ask to run a case and it runs, whatever the check found; ForgeQE's agent reports the findings with the result instead of refusing. A case whose steps have no expected results runs too: it passes when every step can be done, and the check lists it to review , since it checks no result the page should show."},{"t":"Write test cases from a story","u":"docs/index.html#cap-write-test-cases","g":"User guide · Test cases","h":[],"x":"Test cases Write test cases from a story Writes test cases from an understanding of the feature, not only a story's acceptance criteria: it reads the feature and epic above the story, their other stories, linked Confluence pages, the RAG service, product knowledge, the app's pages and flows in page memory, and the area's past defects (from earlier runs and the tracker's bugs), then analyses each criterion before it designs cases. Each case names what it covers, and nothing is saved while a criterion has no case or reason. Saves them in Azure DevOps or Jira, linked to the story. Reads the cases already linked first, so asking again adds only what is missing and updates cases in place instead of duplicating them; plans end-to-end journeys from the existing cases. Ask it Write test cases for story 1234 and save them Build an end-to-end journey from story 1234's cases What it needs Required Azure DevOps or Jira: set up under sources: in forgeqe.yaml, or sign in with /auth Tools story_test_cases save_test_cases link_test_case apply_case_changes trace_criteria requirements_file e2e_journey In detail See Where cases come from ."},{"t":"Domain and regulatory test design","u":"docs/index.html#cap-domain-compliance","g":"User guide · Test cases","h":[],"x":"Test cases Domain and regulatory test design Every agent works as an expert in the product's industry would, automatically: the risks the industry is known for and the obligations of its regulations and standards (for example DORA, PSD2, GDPR, ISO 27001), declared in forgeqe.yaml or worked out from the story and the application. It applies to analysing requirements, writing and checking test cases, exploration, writing, reviewing, and healing test code, API tests, finding tests, and pull request reviews, labelled so coverage can be traced and citing only the control ids in the team's compliance file. forgeqe eval domain measures how well the agent does it. Ask it Write test cases for story 1234, covering our DORA and PSD2 obligations Which GDPR obligations do these cases miss? What it needs Optional The product's industry and regulations: domain: in forgeqe.yaml, with your applicable controls in .forgeqe/knowledge/compliance.md Limits Designs and checks tests for regulatory obligations; it does not certify compliance or replace an audit. Cites control or article ids only from the team's compliance file, never from memory. Tools In detail"},{"t":"Domain and regulations","u":"docs/index.html#doc-how_to_use-16-domain-and-regulations","g":"User guide · Test cases","h":[],"x":"Domain and regulations ForgeQE's agents already know the common industries and regulations: banking, insurance, lending, retail; DORA, PSD2, GDPR, ISO 27001, SOX, IDD, and more. Every agent applies that knowledge to its own job, automatically: analysing requirements, writing and checking test cases, planning exploration, writing test code (Scribe), reviewing it, healing it, writing and planning API tests, finding tests, and reviewing pull requests. Without a declaration, each works out the industry and regulations from the story, the product knowledge, and the application, and says what it assumed. Declaring yours removes the guesswork: yaml Copy domain: industry: retail banking regulations: [DORA, PSD2, GDPR, ISO 27001] notes: Payments to UK and EU accounts; customers are consumers and small businesses. The agents add the risks the industry is known for (duplicate submissions, limits, cut-off times, effective dates, recalculated premiums) and the obligations of each regulation a feature touches (audit trail, segregation of duties, data protection, incident logging, resilience), and label each test case, charter, test, or finding with what it covers, for example Domain: duplicate payment or GDPR: right to erasure . What that means for each job: Agent What it does with the domain ForgeQE's agent Adds domain and regulatory cases when it writes test cases or tests from requirements, and judges cases and release readiness against them Exploratory charters Plans charters for the domain's risks and obligations Scribe (writing tests) Asserts a covered risk or obligation explicitly (the amount, the approval, the audit entry), and carries its label into the test's name or tag Test reviewer Treats a test that drops or weakens such an assertion as a correctness issue Healing Never makes a test pass by loosening such an assertion: if the app no longer meets it, it is an app bug API tests and scenarios Idempotent money-moving calls, access per role, no excess personal data in responses, no leaked internals, audited changes Finding tests \"The DORA tests\" matches tests by their labels and what they assert Pull request review A change that weakens a domain safeguard or an obligation is at least a major finding Every agent session gets the domain in its instructions from one place, and the rule is domain-rule.md in .forgeqe/prompts/ , included in every agent that analyses requirements or designs, writes, reviews, or heals tests. Which requirements apply to your product, and the ids your auditors use, are your organisation's decision: list them in .forgeqe/knowledge/compliance.md ( forgeqe init adds a template), with what is out of scope. Agents cite a control, article, or clause id only when it is listed there, and name the obligation in words otherwise, so nothing in a test traces to an id recalled from memory. ForgeQE designs and checks tests for these obligations; it does not certify compliance or replace an audit."},{"t":"Evaluating the agent's domain knowledge","u":"docs/index.html#doc-how_to_use-evaluating-the-agents-domain-knowledge","g":"User guide · Test cases","h":[],"x":"Evaluating the agent's domain knowledge forgeqe eval domain measures whether the agent applies all this, with your model. Each evaluation case is a realistic story whose acceptance criteria leave the industry's risks and the regulations' obligations unstated, with what a domain expert expects its test cases to check. ForgeQE's own agent writes test cases for each story twice, with the domain declared (and a compliance file) and without, and a separate read-only judge decides, expectation by expectation, whether a test case actually checks it, and lists every id the cases cite. bash Copy forgeqe eval domain # the bundled cases: banking, insurance, access control, data protection, lending forgeqe eval domain --only banking-payment-transfer --repeat 3 forgeqe eval domain --cases ./evals/our-domain # your own cases forgeqe eval domain --judge-profile judge # judge with another llms.json profile forgeqe eval domain --variant declared --min 0.8 # exit 1 under 80% coverage, or on any invented id: a CI gate The report ( .forgeqe/reports/evals/domain/\u003ctime\u003e/report.md and report.json ) shows coverage of the story's own expectations, the industry's, and the regulations', for each variant, the expectations each run missed with the judge's reason, and any invented ids (cited, but not in the compliance file). The gap between the two variants is what declaring the domain adds; the declared coverage is what you can rely on. Model answers vary, so use --repeat before drawing conclusions from one case. A case is a YAML file: yaml Copy id: banking-payment-transfer title: Send money to a saved beneficiary domain: { industry: retail banking, regulations: [PSD2, DORA, GDPR] } compliance: | # the team's compliance file for this product (optional) - CTL-AUD-01 (DORA): every payment is written to the audit log with who, when, and the values. story: title: Pay a saved beneficiary description: As a customer I want to send money to a beneficiary I saved earlier. acceptance: | - The customer picks a saved beneficiary, enters an amount and a reference, and confirms. expect: # source: story, domain, or regulation - { id: duplicate, source: domain, covers: Submitting twice does not create a second payment. } - { id: sca, source: regulation, covers: Confirming the payment requires strong customer authentication. }"},{"t":"Exploratory testing of a story","u":"docs/index.html#cap-exploratory-testing","g":"User guide · Test cases","h":[],"x":"Test cases Exploratory testing of a story Explores a story in real browsers beyond its scripted cases (edge cases, invalid input, boundaries, roles, state), confirms each defect by reproducing it, proposes test cases, and files bugs once the user agrees. Ask it Explore story 1234 and find bugs Test this feature beyond the test cases What it needs Required A live model profile in llms.json (an API key or Microsoft Entra ID sign-in) Optional Azure DevOps or Jira, to read the story and file bugs: set up under sources: in forgeqe.yaml, or sign in with /auth Tools explore_story In detail"},{"t":"Exploratory testing from a story","u":"docs/index.html#doc-how_to_use-exploratory-testing-from-a-story","g":"User guide · Test cases","h":[],"x":"Exploratory testing from a story \"Explore story 1234\" (or forgeqe explore ado:1234 ) tests a story's feature beyond its scripted test cases, in real browsers: Reads the story: description and acceptance criteria, the feature and epic above it, the test cases that already script it (Azure DevOps \"Tested By\", Jira test links), and passages from the requirements search when one is set up. A Jira key, a link, or the story's text with its acceptance criteria works too. Plans charters (6 by default, --charters N , at most 12), each with a mission, concrete steps and data, and an expected result per step: other paths and valid data, edge cases (empty, long, special characters, duplicates), invalid input, the boundaries the story states, role differences , state (refresh, back, double submit, a second tab, an expired session), and what must not happen. Expected results come from the acceptance criteria; where the story says nothing, from what a well-behaved application does, and the charter says so. Nothing irreversible beyond test data is planned, and charters that create or change data are marked. You see the charters and choose to run them all, only those that change no data, or none. Explores: each charter is a browser run, and the browser agent judges each expected result on the page and lists anything else that looks wrong. Roles are your saved logins ( logins: in forgeqe.yaml ; by default every one when there are two or more, or --roles admin,viewer ): a role's charter signs in with only that role's login on the site. Confirms: a charter that finds a functional defect runs a second time. It counts as a confirmed defect only when it fails the same way again. The failure classification decides what is a defect: an environment problem (run once more), a test that could not be done, or a charter that does not fit the application are reported as \"could not explore\", not as defects. Reports in .forgeqe/reports/explore/\u003cid\u003e/exploration.md (and .json ): each charter's result, the confirmed defects with both runs' evidence, and observations : defects that did not reproduce, browser errors (failed requests, console errors), and what the agent noticed beyond the steps. Observations are never filed as bugs. Bugs for confirmed defects only , through the bug tracker set up under bugs: (Jira or Azure DevOps), after you agree ( --file-bugs where nobody can be asked). A bug filed before for the same charter gets a comment instead of a duplicate. Proposed test cases: the charters that ran clean become regression cases, and each confirmed defect becomes a case that checks the correct behaviour (it fails until the defect is fixed). The agent offers to save the ones you pick to the story ( save_test_cases ). bash Copy forgeqe explore ado:1234 --url https://staging.shop.example/orders forgeqe explore SHOP-12 --charters 8 --roles shop_admin,shop_viewer --focus \"the address form\" forgeqe explore \"Change the delivery address Customers can change the address of an open order. Acceptance criteria: - Postcode is required and validated\" --url https://staging.shop.example Each charter is a browser run (two for a possible defect), so a session takes several minutes and costs about as much as running that many test cases. forgeqe explore exits 1 when a defect is confirmed."},{"t":"Setup","u":"docs/index.html#area-setup","g":"User guide","h":[],"x":"06 Setup Configuration, skills, and help"},{"t":"Test environments and their apps","u":"docs/index.html#cap-test-apps","g":"User guide · Setup","h":[],"x":"Setup Test environments and their apps 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. Ask it Place an order in the shop, then check its invoice in Billing, in UAT Which apps can you test in QA? From now on, use the UAT environment What it needs You give env.yaml with the environments and apps (forgeqe init writes one) Tools test_apps use_environment In detail"},{"t":"Environments and apps","u":"docs/index.html#doc-how_to_use-environments-and-apps","g":"User guide · Setup","h":[],"x":"Environments and apps env.yaml (written by forgeqe init , named in forgeqe.yaml environments.file ) lists your test environments and the apps in each: web apps by URL, APIs by base URL, Windows desktop apps by .exe , and mobile apps by package id, each with a short description of what it is for. Plain values go under variables ; secrets never do, only the names of the environment variables that hold them, under secrets . yaml Copy default: qa environments: qa: start_app: shop apps: shop: { kind: web, url: \"https://qa.shop.example.com\", description: Customer web shop where orders are placed } orders: { kind: api, url: \"https://qa.api.example.com/v1\", description: Orders REST API } billing: { kind: desktop, path: 'C:\\Program Files\\Contoso\\Billing\\Billing.exe', args: [\"--server\", \"qa-db01\"], description: Back-office invoicing } variables: { company: Contoso QA } secrets: [BILLING_PASSWORD_QA] uat: apps: { ... } 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. Any layout works. The layout above is ForgeQE's own, but an env.yaml your team already keeps is read as it is: environments under environments: / envs: , as a list with a name each, or as top-level keys ( qa: , uat: ); or one file per environment with environments.dir in forgeqe.yaml a common: / defaults: / shared: block merged into each environment any http(s) URL becomes a web app (an API when its key or path says api); an absolute .exe becomes a desktop app (with a sibling args ); other values become variables secrets: keys like password , token or api_key are never shown to a model. A reference ( ${BILLING_PW} , env:BILLING_PW , %BILLING_PW% ) is recorded as a secret name; a literal value is replaced with \u003credacted\u003e yaml Copy common: { company: Contoso } qa: url: https://qa.shop.example.com orders_api: https://qa.api.example.com/v1 billing_exe: 'C:\\Program Files\\Contoso\\Billing\\Billing.exe' db_password: ${BILLING_DB_PW_QA} uat: url: https://uat.shop.example.com ForgeQE's agent also sees the environment as written (secrets replaced), so a request can name anything in it (\"log in as the admin_user of UAT\"). Link, import or paste the team's file. An environment can be read from a YAML file the team keeps elsewhere in the repository, as it is now each run ( file: , with this project's description and data added), or converted once into ForgeQE's layout: yaml Copy environments: qa: file: config/qa-portal.yaml # linked: read every run, any layout; a file of several picks qa from it bash Copy forgeqe env import config/uat.yaml # shows it in ForgeQE's layout forgeqe env import config/uat.yaml --write # adds it (--name NAME, --replace to overwrite one already there) forgeqe env link qa config/qa-portal.yaml # links it In the shell, /env import config/uat.yaml shows the conversion and /env import config/uat.yaml --write adds it. In the web app, Settings › Environments › Add or Edit has Paste , Import a file and Link a project file . A secret value written in the file is never copied: it is listed so you can move it to an environment variable. Test data per environment. The same test often needs other rows in each environment: QA's customers are not UAT's. List the files under data: (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 FORGEQE_DATA_\u003cNAME\u003e , and the agents are told to read it from there, never from a fixed path. yaml Copy environments: qa: data: customers: test-data/qa/customers.csv # FORGEQE_DATA_CUSTOMERS orders: test-data/qa/orders.json # FORGEQE_DATA_ORDERS uat: data: customers: test-data/uat/customers.csv forgeqe apps and /env list each environment's data files, and mark one that is not there yet. Pick the environment with --env uat on any command ( forgeqe start , run , suite , monitor , mcp , …) or FORGEQE_ENV=uat ; otherwise default is used. In the shell, /env lists them and /env uat switches; asked in plain language (\"from now on, use UAT\"), ForgeQE's agent switches with use_environment , and any single request can name an environment (\"run the checkout tests in UAT\"): each test tool takes an env for that call only. forgeqe apps lists the environments and the active one's apps. What each agent gets from the active environment: Agent What it uses ForgeQE's agent The environment, its apps (with descriptions) and values in its session notes; plans scenarios across apps from them and carries values (an order number) between them Browser agent Starts at start_app when no URL is given; knows the environment's web apps by name and stays on their hosts; its values API tests Call api_app 's URL Desktop agent Starts the environment's desktop apps; types only its secrets Scribe, the healer, the reviewer Write tests that read FORGEQE_APP_\u003cAPP\u003e_URL (or the repository's own settings), never a fixed environment URL; the reviewer flags one Tests ForgeQE runs, pack pipelines FORGEQE_ACTIVE_ENV , FORGEQE_APP_\u003cAPP\u003e_URL / _PATH / _ID , FORGEQE_VAR_\u003cNAME\u003e , FORGEQE_DATA_\u003cNAME\u003e (pipelines written by forgeqe pack pipeline init take them as the env_vars input) Reports Every run's report names the test environment There is no scenario file to write: ask in plain language (\"place an order in the shop, then check its invoice in Billing, in UAT\") and ForgeQE's agent picks the apps from their descriptions, shows the plan, runs each step with the right engine, and carries values from one app to the next."},{"t":"What ForgeQE wrote","u":"docs/index.html#cap-generated-code","g":"User guide · Setup","h":[],"x":"Setup What ForgeQE wrote 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. Ask it How much of the code ForgeQE wrote is still there? Write the commit message for these tests What it needs Nothing beyond ForgeQE itself. Tools generated_attribution In detail"},{"t":"Generated code","u":"docs/index.html#doc-how_to_use-generated-code","g":"User guide · Setup","h":[],"x":"Generated code Generated code. What ForgeQE writes is marked, so the team can see it and measure it. A file ForgeQE created starts with one line in that language's comment, such as // Generated with ForgeQE · fq:k3x7m2qa4bdi · run 20261019-162847 ; the fq: id is a hash of the file's contents without that line, so it shows whether the file was changed since ( code.header: false leaves the line out; a JSON file never gets one). Files it only edited get no header. Every file it created or edited is recorded per run in .forgeqe/generated.jsonl (commit it with the code): the lines it added, as short hashes, never their text. forgeqe generated (or /generated in the shell, --json for a pipeline) says how many lines ForgeQE wrote, how many are still in the code, its share of the files it touched, and which created files are as it wrote them. Commit messages ForgeQE's agent writes end with a Generated-by: ForgeQE (fq:…) trailer, and its pull request descriptions with a line naming the runs' fq: ids and how much they wrote. The ids are plain hashes anyone can recompute: they show what ForgeQE wrote, not who owns the code."},{"t":"Every forgeqe command from the shell","u":"docs/index.html#cap-forgeqe-commands","g":"User guide · Setup","h":[],"x":"Setup Every forgeqe command from the shell 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. Ask it Show me the context budget Add a guardrail: never delete test data in prod Diff the brain prompt against ForgeQE's Is there a new version of ForgeQE? Run the mobile doctor Build the BI site What it needs Nothing beyond ForgeQE itself. Tools forgeqe_command In detail"},{"t":"Commands cheat sheet","u":"docs/index.html#doc-how_to_use-15-commands-cheat-sheet","g":"User guide · Setup","h":[],"x":"Commands cheat sheet Every command below also works from the shell in plain words (\"show the context budget\", \"diff the brain prompt\", \"upload builds/app.apk to TestMu for the courier app\"). ForgeQE's agent uses the tool made for it, or forgeqe_command for the commands no other tool covers. A command that only reads runs at once. One that changes files, installs, costs model calls, or sends anything out shows you the exact command and runs only when you agree. Signing in stays /auth and forgeqe login ; forgeqe bi export and forgeqe logs bundle are /report export and /logs there."},{"t":"Setup","u":"docs/index.html#doc-how_to_use-setup","g":"User guide · Setup","h":[],"x":"Setup Command What it does forgeqe init [--global] [--profile NAME] Write forgeqe.yaml , llms.json , and .forgeqe/ with the prompts, skills, and product knowledge templates forgeqe setup [--force] Download the agent runtime and the engine now ( --force rebuilds the engine) forgeqe models List the profiles in llms.json and the active one forgeqe models --routes [--profile-models] The model each area of work gets ( llm.routing ) and why; --profile-models checks and rates the models again (see docs/MODEL_ROUTING.md ) forgeqe features What ForgeQE can do, and what each capability still needs in this setup (works without a model) forgeqe docs [--guide|--open] [--copy DIR] The bundled docs; --guide opens the docs pages (as on forgeqe.github.io/docs/, offline), --open the architecture page forgeqe mcp list The MCP servers ForgeQE's agent gets from your settings forgeqe auth login [system|NAME] Sign in to Azure DevOps, GitHub, GitHub Copilot ( copilot ), Jira, Confluence, TestRail, Zephyr, qTest, or Xray in the browser, or save one secret, in the system's credential store forgeqe auth [status] , forgeqe auth logout \u003csystem\u003e What is signed in; forget a sign-in"},{"t":"Run","u":"docs/index.html#doc-how_to_use-run","g":"User guide · Setup","h":[],"x":"Run Command What it does forgeqe start [--repo DIR] [--headed] The shell forgeqe run \"\u003crequest\u003e\" [--plain] One request without the shell forgeqe run --direct \"\u003cgoal\u003e\" [--skill NAME] One browser goal, no agent forgeqe chat --jsonl [--carry-over FILE] One live agent for a program, in JSON lines (see A live agent for programs ) forgeqe suite \u003csource...\u003e [--parallel N] [--skill NAME] Run test cases the same way every time (pipelines) forgeqe cases \u003csource...\u003e List the cases a source gives, without running them forgeqe bi [build] [--from FILE|DIR]... [--static|--evidence] The team report of every run here and the shared bundles (see Team report ) forgeqe bi init|sync Scaffold the Evidence project; refresh its datasets and pages without building forgeqe bi export [--out FILE|DIR] This machine's runs and readiness reports in one file to share"},{"t":"Tests","u":"docs/index.html#doc-how_to_use-tests","g":"User guide · Setup","h":[],"x":"Tests Command What it does forgeqe code [run-dir] --repo DIR Scribe writes a test for a run (default: the latest) forgeqe heal [\"\u003ctest command\u003e\"] --repo DIR Fix tests the app has outgrown, or report app bugs forgeqe visual [run] | approve [run] [--page p] Each page against its approved screenshot; approve an intended change as the new baseline forgeqe quality [run] | trends [page] A run's WCAG rules and Core Web Vitals against the budgets; per page over time forgeqe explore \u003cstory\u003e [--url URL] [--roles a,b] Exploratory testing of a story: charters beyond the scripted cases, confirmed defects, proposed cases forgeqe api contracts --spec \u003clink|file\u003e API contracts from OpenAPI/Swagger, WSDL, GraphQL, .proto, or grpc:// forgeqe api contracts --run [RUN] API contracts from the calls a browser run saw the app make forgeqe api run [SET] [--base-url URL] Run contracts against the API, no browser; exit 1 on a failure forgeqe api tests [SET] --repo DIR Scribe writes contracts as API tests in the repo forgeqe api scenarios --run | --spec \u003clink\u003e | --cases \u003crefs\u003e | --text \"...\" End-to-end API scenarios: chained from a run, lifecycles and negative cases from a description, or planned from test cases or plain English forgeqe api run-scenarios [SET] [--allow-writes] Run them against the API; exit 1 on a failure forgeqe api tests --scenarios --repo DIR Scenario tests on the repo's existing API helpers forgeqe generated [--repo DIR] [--json] How much of the code ForgeQE wrote, and how much is still there forgeqe eval domain [--only id,id] [--repeat N] [--min 0.8] Whether the agent applies domain and regulatory knowledge, with the domain declared and without; --min makes it a CI gate (see Domain and regulations )"},{"t":"Data","u":"docs/index.html#doc-how_to_use-data","g":"User guide · Setup","h":[],"x":"Data Command What it does forgeqe db [list] , forgeqe db test|tables|refresh|batches|examples [name] [words] The databases set up here; connect to one, its tables, read its schema again, test data batches, remembered queries (see Databases ) forgeqe db query \u003cname\u003e \"\u003csql\u003e\" [--dry-run] [--max-rows N] [--json] One checked read; writes go through the agent forgeqe db ask \"\u003cquestion\u003e\" [--db NAME] [--run] [--save FILE.sql] ForgeQE's agent writes the SQL; prints only the SQL forgeqe data gen \u003cspec.yaml\u003e [--db NAME] [--format csv|json|sql] [--out DIR] [--insert --yes] [--seed N] Test data from a spec (see Test data ) forgeqe data batches [--db NAME] , forgeqe data clean \u003cbatch\u003e [--db NAME] --yes The batches inserted; remove one forgeqe flows [list]|map|impact \u003cdb.table[.column]\u003e The data flows in flows.yaml , what feeds what, everything downstream (see Data flows ) forgeqe flows check [name ...] [--junit FILE] [--post-ado] Check each hop: arrived, complete, correct, on time forgeqe flows trace \u003cdb.table|flow,flow\u003e \u003ckey\u003e [--wait SECONDS] Follow one record hop by hop"},{"t":"Memory, logins, monitoring","u":"docs/index.html#doc-how_to_use-memory-logins-monitoring","g":"User guide · Setup","h":[],"x":"Memory, logins, monitoring Command What it does forgeqe memory [show \u003chost\u003e] [flows] What page memory knows forgeqe memory clear [host|app] --yes Forget a host, an app, or everything forgeqe memory stats [--json] How often memory stood in for the model, per area forgeqe login \u003cname\u003e / forgeqe logins Sign in by hand once; list or clear saved sessions forgeqe monitor [--once] [--test-alerts] Checks on a schedule, with Teams and email alerts forgeqe notify test [channel] Send a test card to the notification channels (see Notifications ) forgeqe mcp [--repo DIR] ForgeQE's tools as an MCP server for other agents forgeqe skills [show|new|check|enable|disable] The skills each agent can use; start, validate, or turn one off forgeqe logs [bundle] [--shots] Recent session logs; one archive of the newest to share forgeqe update [version] [--check] Update every forgeqe on PATH, waiting while the registries catch up"},{"t":"In the shell","u":"docs/index.html#doc-how_to_use-in-the-shell-1","g":"User guide · Setup","h":[],"x":"In the shell Input Action A request, then Enter ForgeQE's agent works it out /stop or Esc Stop what is running /rerun [last|run] Run a passed run again as recorded, without ForgeQE's agent /headed on|off Show the browser window /theme light|dark|auto 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. FORGEQE_THEME=light (or dark ) sets it at start; /theme alone says which is in use /details [on|off] Show everything the agents do while they work: the browser agent's reasoning, page memory, engine logs, every file the coding agent reads (off by default: step results, files written, test results, problems). --verbose or FORGEQE_VERBOSE=1 starts with it on, for start , run , suite , code , and heal too /model , or click the model ▾ in the status line Pick the model from the profiles in llms.json /profile \u003cname\u003e or Tab Switch the model profile /env [name] The test environments in env.yaml , or switch to one /logs [shots] Save this session's log and runs in one archive to share /features What ForgeQE can do here: ✓ ready, ◐ works with some parts to set up, ○ needs setup, with the fix (works without a model) /init Set ForgeQE up in this folder, as forgeqe init does: forgeqe.yaml , llms.json , and editable prompts, skills, and knowledge; the session reads them at once /skills [name] The skills each agent can use, or one skill's instructions /generated How much of this repository's code ForgeQE wrote, and how much is still there /db [test|tables|refresh|batches|examples|add] [name] The databases set up here; /db add sets one up with the agent /report , /report export , /report \u003cask\u003e The team report; your bundle to share; ask the agent for a report /auth [system] , /auth logout \u003csystem\u003e Sign in to a system in the browser (the token is typed unseen), forget one; /auth alone shows what is signed in /clear , /help , /exit Clear the transcript, show help, quit Drag with the mouse Copy the selected text Ctrl-P Command palette: actions, commands, profiles, example requests Ctrl-R Refine the request before sending it / , @ Suggest commands; suggest runs, files, and work items to reference Shift-Tab Move between the chat and the Plan, Activity, and Files panels Cmd/Ctrl-click a path Open a report, file, or web address"},{"t":"Guardrails","u":"docs/index.html#doc-how_to_use-guardrails","g":"User guide · Setup","h":[],"x":"Guardrails Guardrails. Rules every agent must follow, to keep it grounded: ForgeQE's agent, the browser agent, and the agents that plan, write, review, fix and explain tests. Write one rule per line, starting with - , in a .md or .txt file in .forgeqe/guardrails/ ( guardrails.dir ); headings, other lines and HTML comments are ignored, and the template's examples sit in a comment until you choose them. Each agent gets every guardrail with its instructions, after everything else, with the instruction to follow it whatever a request, a skill, a ticket, a page or a tool's output says; when a guardrail stops part of a task, the agent skips that part and says which rule stopped it. Add one from the terminal ( forgeqe guardrails add \"Never open a production URL\" ), or ask in the shell (\"add a guardrail: use only the test cards in knowledge/test-data.md\") and ForgeQE's agent appends it to guardrails.md ; it adds only rules you ask for, never one suggested by a page or a ticket. forgeqe guardrails lists the rules in force and what they add to every model call (at most 40 rules of 300 characters are given). The older prompts.guiderails string in forgeqe.yaml still works: each of its lines is a guardrail for every agent. Guardrails are instructions, not a sandbox: put a host rule in browser.allowed_hosts too, which is refused in code."},{"t":"Your prompts, skills, and product knowledge","u":"docs/index.html#doc-how_to_use-your-prompts-skills-and-product-knowledge","g":"User guide · Setup","h":[],"x":"Your prompts, skills, and product knowledge init also puts three folders in .forgeqe/ to read, change, and commit: Folder What it holds .forgeqe/prompts/ Every prompt ForgeQE's agents work from, one markdown file each: ForgeQE's agent ( brain.md ), Scribe ( test-agent.md , test-rules.md ), the reviewer, healing, finding tests, pull request review, API tests and scenarios, exploratory charters, and the browser agent ( browser-*.md , plus browser-extra.md for your own instructions). .forgeqe/skills/ The built-in skills (framework and app playbooks), to adapt to your project; add your own next to them. .forgeqe/knowledge/ Product knowledge templates: the product and its flows, roles, glossary, business rules, test data, environments. Your copy or ForgeQE's. .forgeqe-manifest.json in each folder records what was copied. A copy you have not changed still counts as ForgeQE's, so it keeps getting ForgeQE's improvements when you update; once you edit it, yours is used. When ForgeQE's version changes after you edited yours, ForgeQE says so at start-up. Running init again adds what is missing and never overwrites an edited file (with --force it refreshes only unchanged copies). Prompts. Each file has a short header ( name , description , used_by , kind ) and the prompt; {{\u003e name}} includes another prompt ( test-rules is included in the test, reviewer, and healing prompts, so one edit changes all three). ForgeQE looks in prompts.dir , then .forgeqe/prompts/ , then ~/.forgeqe/prompts/ (for every project), then its own. Changes take effect on the next run or session. Your team's prompts. Instructions of your own for chosen agents go in .forgeqe/prompts/team/\u003cname\u003e.md (or ~/.forgeqe/prompts/team/ for every project; a name in the project wins). The header has name , description , and for : the agents' prompts it joins ( brain for ForgeQE's agent, test-agent for Scribe, browser-extra for the browser agent, and so on). Its text is added at the end of those prompts, under \"Your team's instructions\", as written: it is not a template and includes nothing. The web app's Prompts page adds, edits and removes them, and shows each agent's whole prompt with them included; forgeqe prompts show \u003cprompt\u003e shows it in the terminal. markdown Copy --- name: tag-work-items description: \"Tests carry the work item they cover\" for: test-agent, browser-extra --- Tag every test with the Azure DevOps work item it covers. If the request names no work item, ask for it. bash Copy forgeqe prompts # every prompt, what it is for, and where it comes from forgeqe prompts show test-agent # the prompt as the agent gets it (includes expanded; --raw for the file) forgeqe prompts diff test-rules # how your copy differs from ForgeQE's forgeqe prompts reset test-rules # back to ForgeQE's (yours is kept as test-rules.md.bak) forgeqe prompts check # each prompt against the prompting standard for its kind (exits 1 when one falls short) forgeqe prompts check brain # what to fix in one prompt: sections, rules, examples, contract, sentences forgeqe prompts eval # run the evaluation cases with the live model; pass rates against the last run forgeqe prompts eval refine --runs 3 # one prompt, three runs of each case The prompting standard. Every prompt follows one standard, and each technique is used where it fits the kind of prompt ( kind: in its header): Kind Prompts Structure Few-shot examples Execution contract agent: works with tools over many steps brain, test-agent, heal, api-tests, pr-review, find-tests Role, Objective, Execution contract, Rules, Output where routing or reply format varies Preconditions, Tools, Procedure, Stop when, On failure, Evidence structured: one answer in a fixed shape refine, api-scenarios, explore-charters, eval-judge, test-reviewer, browser-skill-select Role, Objective, Inputs, Rules, Output, Examples two or more worked examples – fragment: rules included in other prompts test-rules, domain-rule, skill-rule, conventions, the browser agent's rules rules only – – ASD-STE100 Simplified Technical English everywhere, so each agent reads one clear instruction at a time: an instruction has 20 words or fewer and a description 25 or fewer, one instruction per sentence, the active voice, and approved words (\"make sure\", not \"ensure\"). At least 80% of sentences. The check covers the rules that can be measured in text and a list of common words the standard does not approve; the standard's full dictionary is licensed and not included. RFC 2119 key words state the strength of every rule: MUST / MUST NOT are absolute, SHOULD / SHOULD NOT are strong defaults the agent may break only for a reason it states, MAY is a free choice, and a numbered procedure step is a MUST. A lower-case \"must\" or \"should\" is flagged as ambiguous. conventions.md says this at the top of every agent and structured prompt, and the browser engine adds it to the browser agent's instructions. Structured prompting and few-shot examples make the output predictable: the same sections in the same order, and worked examples where the shape of the answer matters. Execution contracts tell a tool-using agent what must be true before it starts, which tools it uses and in what order (for systems: MCP tools, then query_api , then the browser), its procedure, when it stops, what it does when something fails, and what evidence its answer gives. Evaluation-driven prompting measures reliability: forgeqe prompts eval runs cases (an input and checks decided by code: a field matches or is empty, a tool was or was not used, the text keeps ASD-STE100) and compares each pass rate with the last run. ForgeQE's cases cover brain, refine, and explore-charters; add your own as .forgeqe/evals/prompts/\u003cprompt\u003e/\u003ccase\u003e.yaml (the same id replaces ForgeQE's). Results are kept in \u003creports\u003e/evals/prompts/ . forgeqe prompts check applies the standard to each prompt in use, ForgeQE's or your edited copy; ForgeQE's own meet it in its tests. Write your edits the same way, and run forgeqe prompts e"},{"t":"Product knowledge from the product's repositories","u":"docs/index.html#cap-product-knowledge","g":"User guide · Setup","h":[],"x":"Setup Product knowledge from the product's repositories 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. Ask it How does the product cancel an order? Show the endpoints and tables involved What does a change to OrderService reach, and which tests cover it? Which repository serves POST /api/orders? Build the product knowledge graph Walk me through the checkout flow, step by step What it needs Required The product's repositories: product.repos in forgeqe.yaml, a name and the path of a local clone each Limits Reads local clones of the repositories named in product.repos; it does not clone or pull them 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 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 The model reads at most product.max_model_files changed files a build (400 by default); the rest wait for the next build Domains, flows and rules are what the model finds in the code and documents: a hypothesis to check, not a specification Tools product_knowledge In detail"},{"t":"Product knowledge graph","u":"docs/index.html#doc-how_to_use-product-knowledge-graph","g":"User guide · Setup","h":[],"x":"Product knowledge graph ForgeQE reads every repository of your product into one knowledge graph, so its agents start from how the product works: which service serves an endpoint, which screen calls it, which tables it reads and writes, and which tests cover it. Name the repositories in forgeqe.yaml , each a local clone ( path , relative to the file) or its link ( git ): yaml Copy product: name: Shop repos: web: { path: ../shop-web } orders: { git: https://dev.azure.com/acme/Shop/_git/orders, branch: main, token_env: ADO_PAT } crm: { git: https://bitbucket.acme.local/scm/crm/crm-core.git, token_env: BITBUCKET_TOKEN } mobile: { git: git@github.com:acme/shop-app.git } # ssh signs in with your ssh keys exclude: [\"**/generated/**\"] model: true # false: structure only, nothing goes to a model max_model_files: 400 # most changed files the model reads in one build docs: # documents and links, by name: one of path, url, confluence, or app each handbook: { path: ../shop-docs } help: { url: https://help.shop.example/, depth: 1, max_pages: 100 } api: { url: https://api.shop.example/openapi.json } wiki: { confluence: SHOP } shop: { app: shop-web } bash Copy forgeqe knowledge build # read every repository (again: only files changed since the last build), then the model forgeqe knowledge build --yes # without asking first (pipelines); --no-model: structure only forgeqe knowledge build --repo api # just one repository or source; the others keep their last reading forgeqe knowledge status # what the graph holds, and when each repository was read (its link and commit) forgeqe knowledge pipeline init # the pipeline that builds the knowledge every night and shares it (see below) forgeqe knowledge pull # the team's knowledge (product.shared), without cloning any repository forgeqe knowledge systems --propose # the model proposes the systems; accept, rename or reject each (also on the page) forgeqe knowledge landscape # the product's systems and how they talk (REST, routes, events, shared data, SDK) forgeqe knowledge history # each build: the commits it read, and the endpoints, screens, tables, rules that came and went forgeqe knowledge search \"cancel an order\" forgeqe knowledge impact Services/OrderService.cs # what a change reaches: code across repositories, business flows, tests forgeqe knowledge flow \"cancel an order\" # a business flow, step by step, with the code of each step forgeqe knowledge gaps # what the build could not settle: calls no route or several fit, other hosts, unknown tables forgeqe knowledge check # find each quoted line again in its file: what moved, what is gone forgeqe knowledge ask \"Can a customer cancel an order that has shipped?\" forgeqe knowledge findings \"cancel\" # what earlier questions found; stale ones marked Repositories from their links. You do not need every repository cloned. A repository given by git is fetched by ForgeQE itself into its own cache (under ~/.forgeqe/cache/product-repos ), never into your workspace: the branch's latest commit only, and only the files the graph reads (no images, archives, binaries, node_modules or vendor ). Each build first asks the server for the branch's commit and fetches only when it moved; then only the files that changed are read again. It works with GitHub and GitHub Enterprise, Azure DevOps (Services and Server), GitLab, Bitbucket Cloud and Bitbucket Server / Data Center, and any git server, over https or ssh. Signing in: token_env names the variable that holds a token (or save it with forgeqe auth login ADO_PAT ): a personal access token for Azure DevOps, a fine-grained or classic token for GitHub, a project or personal token for GitLab, an HTTP access token for Bitbucket Server, a repository access token for Bitbucket Cloud (or an app password with user: ). It is sent to that host only, as a header, never in the link or a file. Without token_env , git signs in as it does for you (Git Credential Manager, ssh keys); it never stops at a prompt. Pinned to a commit: forgeqe knowledge status shows each repository's link, branch and commit, and on the Product page a part's evidence opens the exact line on GitHub, Azure DevOps, GitLab or Bitbucket at the commit the graph was built from. When a server cannot be reached, the build reads the last fetched commit and says so; a repository never fetched keeps its graph from the last build. Neither stops the other repositories. What changed: every build is kept in graph/history.jsonl ; forgeqe knowledge history lists the commits each build read and what came and went. Safety: git runs with an argument array; repository hooks, submodules, LFS downloads and symbolic links are off; only https and ssh links are taken (never ext:: , file:// or a local path), and none with a password or .. in it. What the runs did, against the code. Every build also reads the API calls ForgeQE's last 50 runs recorded ( network.json in the reports folder: method, host, path and status; never a body, header or query value, and a path segment that is an email address or a long token is masked). A call whose route a repository declares marks that endpoint, the front end's call of it, and the screen the run was on as seen in a run, with the call as evidence. A call near a declared route but not it (one segment differs, or one more such as /v2 ) is listed as differing from the code; a call no repository declares, as shown only by the runs. bash Copy forgeqe knowledge runtime # what differs from the code, what only the runs show, endpoints no run reached Sharing the knowledge with the team. One machine builds the knowledge; everyone else pulls it, with no clone of any repository. Run once, in the repository that holds forgeqe.yaml : bash Copy forgeqe knowledge pipeline init # writes .github/workflows/forgeqe-knowledge.yml and pipelines/forgeqe-knowledge.yml Commit the file for your CI (and forgeqe.yaml , llms.json ), add the secrets it names (each repository's token_env , each document link's, and the model's key), and run it"},{"t":"Setup, skills, and documentation","u":"docs/index.html#cap-setup-help","g":"User guide · Setup","h":[],"x":"Setup Setup, skills, and documentation 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). Ask it What can you do? Which model am I using? How do I set up email alerts? Show me the icons of all agents Which version of ForgeQE is this? What it needs Nothing beyond ForgeQE itself. Tools forgeqe_setup capabilities playbook use_capabilities In detail See 2. Scaffold config ."},{"t":"Skills","u":"docs/index.html#doc-how_to_use-11-skills","g":"User guide · Setup","h":[],"x":"Skills A skill is a folder with a SKILL.md : 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, agents : markdown Copy --- name: contoso-erp description: \"Use when the site is the Contoso ERP (erp.contoso.com): the order grid, the customer lookup, and saving orders.\" agents: [browser] --- - The customer lookup opens a list after three letters; click the row whose name matches exactly. - Save with the floppy icon in the toolbar; wait until \"Saved\" shows in the status bar. name is lowercase words joined by hyphens, the same as the folder. Agents choose skills by description alone, so name the concrete signs it applies (a framework, a config file, a host, a product). Quote it when it contains : . Who uses it. agents lists forgeqe (ForgeQE's agent: how to handle a kind of request), scribe (writing, healing, finding and reviewing tests), and browser (the browser agent). Without agents , a skill is for forgeqe and scribe ; a browser skill must ask for browser . How skills are used. ForgeQE's agent and Scribe see the name and description of each skill meant for them, and load the ones that fit the job through the agent runtime's skill tool. A skill adds to their instructions and never overrides them. Scribe can also read files next to SKILL.md (for example references/locators.md ) when the skill points to them. Browser runs: ForgeQE's agent passes the browser skills a goal needs to browser_run and run_test_cases . For forgeqe suite , forgeqe monitor and forgeqe run --direct , the engine picks them from the goal with one short model call (at most three), and remembers the choice for that goal, so a monitor's later rounds and repeated cases skip it. --skill NAME (repeatable) fixes the list; --skill none runs without any. The chosen skills' text is added to the browser agent's prompt, at most skills.browser_max_chars (6,000) characters in total; the browser agent reads only SKILL.md . run.json , the run.done log line and the report list the skills a run used. Where skills come from , lowest to highest precedence; a later source replaces a skill of the same name: Source Folder Built-in the skills/ folder ForgeQE ships: playwright-typescript and dotnet-nunit-playwright (Scribe), dynamics-365 (browser), writing-skills (ForgeQE's agent) Global, only with skills.external: true ~/.claude/skills , ~/.agents/skills , and the repo's .claude/skills and .agents/skills User ~/.forgeqe/skills (or $FORGEQE_HOME/skills ) Project .forgeqe/skills next to forgeqe.yaml , and the repo's own .forgeqe/skills Extra each folder in skills.dirs Commit .forgeqe/skills so the team and CI share it. ForgeQE only ignores .forgeqe/reports/ ; if your .gitignore has .forgeqe/ , replace it with .forgeqe/* and !.forgeqe/skills/ ( forgeqe skills new warns when git would ignore the new skill). To change a built-in skill, make a project skill with the same name. Skills from anywhere else stay out: the agent runtime's own discovery ( ~/.claude/skills , a repo's .opencode/skills , its built-in skills) is off, and each agent may load only the skills ForgeQE's registry gives it. Skill text is trusted like the repo's own files, so global skills are opt-in. yaml Copy skills: enabled: true # false (or skills: false) turns skills off dirs: [../shared-skills] # more folders, read last disable: [dynamics-365] # leave these out external: false # true: also the global folders above browser_max_chars: 6000 # most skill text added to one browser run Commands. Command What it does forgeqe skills The skills each agent can use, where each comes from (and what it replaces), disabled skills, problems, and the folders read forgeqe skills show \u003cname\u003e One skill's instructions forgeqe skills new \u003cname\u003e --description \"Use when …\" [--agent browser] [--user] Start a skill in .forgeqe/skills ( --user : ~/.forgeqe/skills ) forgeqe skills check Validate every skill; exit 1 when one has a problem forgeqe skills enable|disable \u003cname\u003e Edit skills.disable in forgeqe.yaml , keeping its comments /skills [name] The same list, or one skill, in the shell In the shell you can also ask: \"make a skill for our Dynamics date picker\" or \"teach Scribe our test conventions\". ForgeQE's agent gathers the facts, writes the skill into .forgeqe/skills with forgeqe_setup , and it applies from the next session. It writes skills only when you ask."},{"t":"Model routing","u":"docs/index.html#doc-how_to_use-model-routing","g":"User guide · Setup","h":[],"x":"Model routing llm.routing is off by default for existing projects ( forgeqe init writes auto ); shadow logs each pick in the session log but changes nothing. --profile and code.model always win, llm.routes limits or pins the profiles an area may use, and llm.agents gives one agent its own default model (ahead of the router and code.model ; only --profile overrides it). ForgeQE checks and rates the models once and keeps the result in .forgeqe/model-profile.json (you can edit the ratings). Details: docs/MODEL_ROUTING.md . List profiles, and the model each area gets: bash Copy bun src/index.ts models bun src/index.ts models --routes # the pick per area, and why bun src/index.ts models --routes --profile-models # check and rate the models again"},{"t":"Privacy","u":"docs/index.html#doc-readme-privacy","g":"User guide · Setup","h":[],"x":"Privacy ForgeQE sends no telemetry and turns it off in everything it starts: The engine: PostHog telemetry, cloud sync, and the price-list download are off, and the blank-tab logo its library loads from a CDN is replaced by ForgeQE's start page, which loads nothing. The agent runtime: auto-update, session sharing, OpenTelemetry spans, and the model catalogue download are off; it uses its bundled model list. GitHub Copilot: the Copilot SDK's session telemetry, on by default for a signed-in user, is off on every session. The repo's test command: DO_NOT_TRACK=1 , plus the opt-outs for Next.js, Nuxt, Astro, Gatsby, Storybook, Turborepo, Angular, .NET, and Cypress. OTEL_EXPORTER_OTLP_* variables are removed from those processes, and your environment cannot turn any of this back on. The traffic is to your model endpoint and the sites the agent visits. Besides that, ForgeQE downloads only public files: the model price lists from models.dev and LiteLLM, once a day ( FORGEQE_PRICES=off stops them); the agent runtime from its GitHub releases, when it is not installed; and the engine's ad-block and cookie-banner extensions from the Chrome Web Store, once. Nothing about your runs is sent."},{"t":"Model routing: the right configured model for each task","u":"docs/index.html#doc-docs-model_routing-model-routing-the-right-configured-model-for-each-task","g":"User guide · Setup","h":[],"x":"Model routing: the right configured model for each task With more than one model in llms.json , ForgeQE can give each kind of work the model it needs. A small, fast, cheap model can plan and review. A strong model can write code and find root causes. A model that takes screenshots drives the browser, and a model with a large window reads a large pull request. You do not need to know what each model can do: ForgeQE finds out."},{"t":"Turn it on","u":"docs/index.html#doc-docs-model_routing-turn-it-on","g":"User guide · Setup","h":[],"x":"Turn it on In forgeqe.yaml : yaml Copy llm: models_file: ./llms.json routing: auto # off (the default for existing projects) | shadow | auto forgeqe init writes routing: auto for new projects. With no routing line it is off. shadow decides and logs each pick in the session log ( model.route ) but changes nothing, so you can see what the router would do before you let it. Shadow still runs the live checks and the rating call described below. Whatever routing says, the model an area gets must work: its key or sign-in is set and it passed a live call (one per model, kept for a day in .forgeqe/model-checks.json once it passes; a failed one is never kept, and a failed check in model-profile.json is checked again). When it does not, the next model that works is used, a GitHub Copilot profile first, and ForgeQE says why and how to fix the first. When none works, the error lists each model with the fix. Only --profile skips this. With auto , a GitHub Copilot seat counts as costing nothing more per call, so it is picked whenever it is rated good enough. See the picks, and every model's check with its fix: text Copy forgeqe models --routes"},{"t":"The areas of work","u":"docs/index.html#doc-docs-model_routing-the-areas-of-work","g":"User guide · Setup","h":[],"x":"The areas of work Area What runs in it Needs agent ForgeQE's agent: the shell, forgeqe run , forgeqe mcp tool calls; rated 4+ browser Browser, desktop and mobile runs, from screenshots images; rated 4+ coding Scribe writing and healing tests, API tests tool calls; rated 5 review Test reviewer, pull-request review, evaluation judge tool calls; rated 3+ analysis Root cause of defects tool calls; rated 5 planning Refine, finding tests, API scenarios, exploratory charters tool calls; rated 3+"},{"t":"A default model for each agent","u":"docs/index.html#doc-docs-model_routing-a-default-model-for-each-agent","g":"User guide · Setup","h":[],"x":"A default model for each agent To give one agent its own model whatever routing says, name an llms.json profile for it under llm.agents (Settings → Routing → Areas of work, under each area, does the same): yaml Copy llm: agents: forgeqe: azure-gpt4o # the Orchestrator engine: azure-gpt4o # the browser agent: pick a model that takes images forgeqe-test: claude-opus # the coding agent forgeqe-review: azure-mini # its reviewer An agent left out uses its area's pick. The agents are forgeqe , engine , forgeqe-test , forgeqe-heal , forgeqe-migrate , forgeqe-api , forgeqe-review , forgeqe-pr-review , forgeqe-judge , forgeqe-defect-rca , forgeqe-refine , forgeqe-find , forgeqe-test-plan , forgeqe-api-plan , forgeqe-explore-plan , forgeqe-data and forgeqe-agent-builder ; forgeqe models --routes lists each with the model it gets. An unknown agent or a profile not in llms.json is an error when ForgeQE loads forgeqe.yaml . The model must still work: with fallback on, one that fails its check is replaced as for any area. --profile still names the model for everything."},{"t":"How a model is picked","u":"docs/index.html#doc-docs-model_routing-how-a-model-is-picked","g":"User guide · Setup","h":[],"x":"How a model is picked Your choices win. --profile (or WP_LLM_PROFILE ) comes first. Then an agent's own model in llm.agents (below), which also comes ahead of code.model and code.review_profile for that agent. code.model keeps the router out. A profile pinned in llm.routes is used for its area. code.review_profile still sets the reviewer. Facts rule models out. The router never picks a model that: has no key, or failed its live check; takes no images, for browser work; takes no tool calls, for agent work; has a window too small for the prompt (a large pull-request diff, for example). The facts come from llms.json , a live check, and the public model lists (models.dev and LiteLLM) that ForgeQE already downloads for prices. A fact that nobody knows never rules a model out. Ratings pick among the rest. The cheapest model rated at the area's bar is picked. Writing code and finding root causes ask for 5, because a weaker model there costs more in failed attempts than it saves. If no model reaches the bar, the best-rated one is picked. With no ratings yet, the active profile is kept unless a fact rules it out. A failed answer escalates once. When a root-cause analysis finds nothing, or finds a cause with low confidence although it could read the product's code, it runs again on a stronger model: one rated higher for the area, or rated the same and priced higher. Both runs are counted in its cost. The same configuration and task always give the same model. A pick changes only when the models, the ratings or the size of the prompt change. Each pick is shown once (\"Model for planning: mini (…)\") and is written to the session log."},{"t":"How ForgeQE learns the models","u":"docs/index.html#doc-docs-model_routing-how-forgeqe-learns-the-models","g":"User guide · Setup","h":[],"x":"How ForgeQE learns the models The first routed call in a project with two or more usable profiles does this once: A live check of each model ( python -m forgeqe_engine probe ): one short structured answer and one image. This finds a deployment that does not exist, a wrong key, and whether the model really takes images. It also measures how fast the model answers. One rating call. The active profile's model receives the facts of every model, never a key, an endpoint or an account. It rates each model 1–5 for each area and gives it a tier (fast, balanced or strong). The result is kept in .forgeqe/model-profile.json next to forgeqe.yaml . ForgeQE uses it until the profiles in llms.json change (provider, model, deployment or endpoint). You can edit the ratings. ForgeQE keeps your edits while the profiles stay the same. It checks the file every time it reads it: names that are not profiles and unknown areas are dropped, and ratings are rounded to whole numbers from 1 to 5. The live checks reach every profile in llms.json that has a key, whatever llm.routes pins. A pin keeps your runs' data on one deployment; the checks carry nothing from your runs. To send nothing to the other profiles at all, use routing: off , keep one profile with a key, or pass --profile . To check and rate again (for example, after a deployment changed its model): text Copy forgeqe models --routes --profile-models"},{"t":"Limit what an area may use","u":"docs/index.html#doc-docs-model_routing-limit-what-an-area-may-use","g":"User guide · Setup","h":[],"x":"Limit what an area may use yaml Copy llm: routing: auto routes: browser: [gpt4o, gpt54] # only these two, the router picks between them coding: gpt54 # pinned planning: auto # any configured model (the default) A name in routes must be a profile in llms.json , and an area must be one of the six above. Anything else stops ForgeQE at start with a message that names it."},{"t":"What it does not do","u":"docs/index.html#doc-docs-model_routing-what-it-does-not-do","g":"User guide · Setup","h":[],"x":"What it does not do ForgeQE's agent picks its model when its session starts and keeps it for the whole conversation. Changing the model mid-conversation would drop the prompt cache and make every later turn cost more. The agent hands heavy work to the other agents, and those are routed. A rating is one model's judgement. It is kept in a file that you can read and correct."},{"t":"Desktop","u":"docs/index.html#area-desktop","g":"User guide","h":[],"x":"07 Desktop Windows thick-client apps: explore a goal, record by hand, replay the saved workflow"},{"t":"Automate Windows desktop apps","u":"docs/index.html#cap-desktop-apps","g":"User guide · Desktop","h":[],"x":"Desktop Automate Windows desktop apps Carries out a plain-language goal in a Windows thick-client app with UFO² and saves it as a workflow with checks of the outcome, or records the steps a tester does by hand, with no model; replays saved workflows with no model, healing a step whose control moved, and fixes a workflow from chat (a timeout, a wait, a dialog to dismiss) after showing the change. Apps and the secrets they may type come from env.yaml or forgeqe.yaml desktop:. Ask it Create an invoice for Contoso in the Billing app and save it as a test I'll show you the steps in Billing: record them Replay the billing workflow with customer Fabrikam Step 4 timed out while the list loaded: fix the workflow What it needs Optional A live model profile in llms.json (an API key or Microsoft Entra ID sign-in) Required Windows desktop apps: env.yaml (kind: desktop) or desktop.apps in forgeqe.yaml You give a Windows machine, and the app in forgeqe.yaml desktop.apps Limits Windows only, one run at a time per desktop Apps whose controls UI Automation cannot see (Citrix, some Java and custom-drawn apps) are not supported yet Tools desktop_explore desktop_record desktop_replay desktop_edit_workflow In detail"},{"t":"Desktop apps (Windows)","u":"docs/index.html#doc-how_to_use-desktop-apps-windows","g":"User guide · Desktop","h":[],"x":"Desktop apps (Windows) ForgeQE also automates Windows thick-client apps (Win32, WinForms, WPF). In the shell, ask for a goal in the app (\"create an invoice for Contoso in Billing\") and ForgeQE's agent uses UFO² to do it, saves the run as a workflow with checks of the outcome, and can replay it with no model. The same from the command line: bash Copy forgeqe desktop setup --ufo forgeqe desktop explore \"Create an invoice for Contoso, net 30\" --app billing forgeqe desktop record --app billing # or do the steps yourself; no model forgeqe desktop replay \u003crun folder\u003e/workflow.yaml customer=Fabrikam forgeqe desktop replay workflow.yaml --data customers.csv # once per row; columns are variable names forgeqe desktop replay desktop-tests/ --junit results.xml # every workflow in a folder, results for CI forgeqe desktop doctor # can this machine replay unattended? Workflows wait for slow apps without fixed sleeps: a timeout and retries for the workflow or a step, wait_for a control to appear, show a text or go away (a splash screen), and a dismiss list of dialog buttons to click whenever they are in the way. expect_image compares a control or window with a baseline image (saved on the first run, kept next to the workflow), with a tolerance and regions to ignore. When you know the steps, forgeqe desktop record (or \"I'll show you, record it\" in the shell) saves what you do by hand: Ctrl+Shift+F11 over a control adds a check of its text, Ctrl+Shift+F12 finishes. After a failed replay, ForgeQE's agent can fix the workflow (a longer timeout, a wait_for , a dialog to dismiss): it shows the diff and writes it only when you agree. For nightly runs on a machine of your own, see docs/DESKTOP-CI.md . Apps come from desktop.apps in forgeqe.yaml (an absolute .exe and an argument list), and {{secret:NAME}} reads only the variables listed in desktop.secrets . Explore and replay take over the desktop's mouse and keyboard and ask first; use a test machine and a test account. Details: docs/DESKTOP.md ."},{"t":"ForgeQE desktop: thick-client automation","u":"docs/index.html#doc-docs-desktop-forgeqe-desktop-thick-client-automation","g":"User guide · Desktop","h":[],"x":"ForgeQE desktop: thick-client automation Status: runs on Windows. The desktop job of .github/workflows/ci.yml (GitHub's windows-2022 ) installs the engine and the pinned UFO², replays Notepad live with the pywinauto driver and through forgeqe desktop replay , heals a moved control from the live window, and runs a whole explore: UFO² drives Notepad with a scripted model behind an OpenAI-compatible server, the action is recorded with the control's AutomationId, and the recording replays. Not yet run: explore with a real model (the job has no key), and your own apps. See Before first use on Windows . ForgeQE drives web apps through Chrome. The desktop engine does the same for Windows thick clients (Win32, WinForms, WPF, and the native parts of Electron and WebView2 apps): say what you want in plain language, UFO² does it on the live app, and the run is saved as a YAML workflow that replays later without a model."},{"t":"Use","u":"docs/index.html#doc-docs-desktop-use","g":"User guide · Desktop","h":[],"x":"Use bash Copy forgeqe desktop setup --ufo # once, on Windows: the engine, pywinauto, and the pinned UFO² forgeqe desktop apps # what forgeqe.yaml allows forgeqe desktop explore \"Create an invoice for Contoso, net 30\" --app billing forgeqe desktop record --app billing # or do the steps yourself: no model, no UFO forgeqe desktop replay .forgeqe/reports/desktop-explore-…/workflow.yaml customer=Fabrikam forgeqe desktop replay workflow.yaml --data customers.csv # once per row; the header names the variables forgeqe desktop replay desktop-tests/ --junit results.xml # every workflow in a folder, results for CI forgeqe desktop replay workflow.yaml --update-baselines # save new baselines for its expect_image steps forgeqe desktop doctor # can this machine run replay unattended? forgeqe desktop validate workflow.yaml # any OS Or ask ForgeQE's agent in the shell or forgeqe run : \"create an invoice for Contoso in Billing and save it as a test\", or \"I'll show you the steps in Billing, record them\". Its tools are test_apps , desktop_explore , desktop_record , desktop_replay and desktop_edit_workflow . It asks before it starts the app or takes over the desktop, and before it changes a workflow. Where it cannot ask (an MCP client), the call answers needs_confirmation until the user agrees. Desktop apps come from the active environment in env.yaml (see HOW_TO_USE.md, \"Environments and apps\"), or from desktop.apps in forgeqe.yaml , which works without environments: yaml Copy desktop: apps: billing: path: C:\\Program Files\\Contoso\\Billing\\Billing.exe args: [\"--profile\", \"test\"] # window: \"Billing.*\" # for a launcher that starts the real app and exits: connect by title secrets: [BILLING_PASSWORD] # the only environment variables {{secret:…}} may read heal: true # replay asks the model to re-find a control that moved (default on) screenshots: true # one screenshot per replayed step (default on) Each run writes a folder under the reports folder ( desktop-explore-… or desktop-replay-… ): run.json , report.html , steps/NNN.png , and for explore workflow.yaml , trace.json and UFO's own logs in ufo/ . A replay whose steps were healed also writes heals.json and asks whether to write the new locators into the workflow ( --accept-heals writes them without asking; with no terminal they are never written)."},{"t":"How a run flows","u":"docs/index.html#doc-docs-desktop-how-a-run-flows","g":"User guide · Desktop","h":[],"x":"How a run flows text Copy forgeqe desktop explore ──► src/desktop/bridge.ts ──JSON lines──► python -m forgeqe_desktop serve │ start the app from desktop.apps (no shell) │ UFO² in-process: model = llms.json profile, │ UI tools only, every action traced with its ▼ control's UIA properties record.py ──► workflow.yaml forgeqe desktop replay ───► bridge ──► serve (replay.py on pywinauto, no model) │ a control is not found ▼ heal.py: the model picks one of the window's real controls, by number ▼ proposed locator → heals.json, written into the workflow only when accepted"},{"t":"One model config: llms.json → UFO","u":"docs/index.html#doc-docs-desktop-one-model-config-llmsjson--ufo","g":"User guide · Desktop","h":[],"x":"One model config: llms.json → UFO UFO picks its model client by API_TYPE through ufo.llm.base.BaseService.get_service , which every model call goes through ( ufo/llm/llm_call.py ). The adapter adds the type forgeqe : write_ufo_config writes UFO's config/ufo/agents.yaml from its template, with API_TYPE: forgeqe , the model's name, and no endpoint and no key, for HOST_AGENT , APP_AGENT , BACKUP_AGENT and EVALUATION_AGENT . ufo_bridge.install makes get_service(\"forgeqe\", …) return ForgeQEService , which calls the profile through the openai SDK ( models.py ): azure (key or auth: entra ), openai , openai_compatible (key or Entra), and ollama through its OpenAI-compatible /v1 . Keys, Azure endpoints and Entra use the browser engine's own helpers ( forgeqe_engine.llm ), so a profile means the same thing in both. Keys stay in environment variables. Each call's time and tokens go to ForgeQE's usage ledger as the \"desktop agent\" (counts only, never the prompt). Explore sends screenshots, so its profile must take images: \"vision\": true or false on the profile says so; without it, ollama profiles are refused and others accepted. Healing sends a screenshot only to a profile that takes images. The request parameters suit the model by themselves: a reasoning model (o1, o3, o4, gpt-5, by the profile's model or deployment name, or \"reasoning\": true on the profile) gets max_completion_tokens and no temperature from the first call, and when the API refuses a parameter ( max_tokens , temperature , frequency_penalty , response_format , …) the call is sent again without it, and later calls to that model leave it out ( py/forgeqe_engine/model_params.py ). The browser agent does the same."},{"t":"Workflow YAML ( forgeqe-desktop-v1 )","u":"docs/index.html#doc-docs-desktop-workflow-yaml-forgeqe-desktop-v1","g":"User guide · Desktop","h":[],"x":"Workflow YAML ( forgeqe-desktop-v1 ) yaml Copy format: forgeqe-desktop-v1 name: Create an invoice app: billing # a name from forgeqe.yaml desktop.apps, never a path or a command variables: customer: Contoso steps: - op: launch - op: click target: {automation_id: btnNewInvoice, control_type: Button, name: New invoice} - op: type target: {automation_id: txtCustomer, control_type: Edit} text: \"{{customer}}\" - op: type target: {automation_id: txtPassword, control_type: Edit} text: \"{{secret:BILLING_PASSWORD}}\" - op: select target: {automation_id: cmbTerms, control_type: ComboBox} value: Net 30 - op: keys keys: ctrl+s - op: expect target: {automation_id: lblStatus} text: Saved - op: close Ops: launch , click , double_click , type , select , keys , expect , expect_image , wait (at most 60 s), wait_for , close . Locators use UIA properties, never screen coordinates: automation_id , name , control_type , class_name , index (when several match), and path (the ancestors' control_type and name ). A target needs an automation_id or a name . Replay looks in the launched app's own windows only. Variables: {{name}} from the workflow's variables or name=value on the command line; {{secret:NAME}} from the environment, only for names in desktop.secrets . A secret ForgeQE itself uses (a model key, a tracker token) is refused there. Values are substituted once and never expanded again. Targets take {{name}} too (a CSV row's {{customer}} as the control to click), never a secret. Keys: ctrl , shift and alt with one named key or character ( ctrl+s , alt+f4 , enter , f5 ). The Windows and context-menu keys are refused: Win+R followed by typing runs any command. Typing is literal: pywinauto's key syntax ( ^ , % , + , ~ , {ENTER} ) in the text is escaped."},{"t":"Recording by hand","u":"docs/index.html#doc-docs-desktop-recording-by-hand","g":"User guide · Desktop","h":[],"x":"Recording by hand When you know the steps, do them yourself instead of describing a goal: no model and no UFO are involved, so it costs nothing and does exactly what you did. bash Copy forgeqe desktop record --app billing --name \"Create an invoice\" ForgeQE starts the app and watches the mouse and keyboard (low-level Windows hooks), asking UI Automation which control each click and key went to. Do the steps, then: Ctrl+Shift+F11 with the mouse over a control adds a check: an expect step with the text it shows now (a status message, a saved total). Add one at the end, so the replay tests the outcome, not only the steps. Ctrl+Shift+F12 , or closing the app, finishes. The console shows each step as it is recorded. What becomes a step: You do Step Click a control (two quick clicks: double_click ) click with its AutomationId, name and control type Pick an item in a drop-down select on the drop-down, with the item's name Type into a field (corrections and pastes included) one type with the field's text when you move on, read from the field A key chord outside a text field ( ctrl+s , enter , f5 ) keys Ctrl+Shift+F11 over a control expect with its text Passwords: a password field is never read; its step types {{secret:NAME}} (the one name in desktop.secrets , or \u003cAPP\u003e_PASSWORD , which the result tells you to set). Text equal to a desktop.secrets value is written as its placeholder. The typed characters themselves are never kept, only the field's text when you move on. Only the app: clicks and keys outside the app's own process are not recorded; nor are the Windows and menu keys, or controls with neither an AutomationId nor a name. The result lists what was left out. The run folder has workflow.yaml , run.json and report.html , like explore. Replay it with forgeqe desktop replay ."},{"t":"Fixing a workflow from chat","u":"docs/index.html#doc-docs-desktop-fixing-a-workflow-from-chat","g":"User guide · Desktop","h":[],"x":"Fixing a workflow from chat When a replayed step fails because the app was slow or a dialog was in the way, ForgeQE's agent fixes the workflow with desktop_edit_workflow : it proposes the change (a longer timeout or retries on the step, a wait_for before it, a dialog button in dismiss , a healed locator, a corrected text), shows you the diff, and writes the file only when you agree. For example, after \"step 4 timed out while the invoice list loaded\": text Copy Change invoice.yaml? • new wait_for step before step 4 • step 4: retries 2 - op: click + target: {automation_id: btnPost} + retries: 2 Each change has a fixed shape ( set , unset , set_step , add_dismiss , insert_step , remove_step , set_variable ); step numbers are the replay report's. Anything else is refused. The changed workflow is checked by the engine's own validator before it is shown; one that would not run is not offered. Comments and layout are kept. The old text is kept in the reports folder ( desktop-edits/ ), and a file that changed since the edit was proposed is not overwritten. The workflow must be a .yaml inside the working folder or the reports folder."},{"t":"Waits, retries and dialogs","u":"docs/index.html#doc-docs-desktop-waits-retries-and-dialogs","g":"User guide · Desktop","h":[],"x":"Waits, retries and dialogs Real apps are slow in places: a splash screen, a form that loads its data, a \"Tip of the day\" or \"Save changes?\" dialog. A workflow says how to wait for them, without fixed wait steps: yaml Copy timeout: 20 # seconds a step waits for its control (default 10, at most 300) retries: 1 # tries a failed action again, after a short pause (default 0, at most 5) dismiss: # clicked whenever one of them is in the way - {name: OK, control_type: Button, automation_id: btnTipClose} - {name: \"Don't Save\", control_type: Button} steps: - op: launch timeout: 90 # a slow start: how long to wait for the app's window - op: wait_for # the splash screen goes away target: {automation_id: splashForm} gone: true timeout: 120 - op: wait_for # the form has loaded its data target: {automation_id: lblStatus} text: Ready - op: click target: {automation_id: btnPost} timeout: 60 # per step, over the workflow's timeout retries: 3 Each step waits for its control up to its timeout . click , type and select also wait until the control is enabled and visible (a form that is still loading greys its buttons out). wait_for waits until a control is there, shows a text , or with gone: true has gone. retries applies to click , double_click , type , select , keys , expect and expect_image . Between tries, replay pauses (1 s, 2 s, … up to 5 s) and closes any dismiss dialog. An error in the workflow itself (a missing variable) is not retried. dismiss lists at most 10 targets, checked like any target. When a control is not found, or something waits to go away, replay clicks the dismiss controls that are on screen and looks again, up to 3 times per lookup. The report and the console name every dialog closed, and how many tries a step took."},{"t":"Visual checks ( expect_image )","u":"docs/index.html#doc-docs-desktop-visual-checks-expect_image","g":"User guide · Desktop","h":[],"x":"Visual checks ( expect_image ) expect compares text. When what matters is drawn (a chart, a signature, a colour, a layout), expect_image compares pixels with a baseline image: yaml Copy - op: expect_image target: {automation_id: chartRevenue} # without a target: the app's top window image: revenue-chart.png # a file name in \u003cworkflow name\u003e.baselines/ next to the workflow tolerance: 0.01 # share of pixels that may differ (default 0.01, i.e. 1%) ignore: [[0, 0, 120, 24]] # regions [x, y, width, height] that change every run (a date, a clock) The first run with no baseline saves what it captured and passes; the report says so. Commit the baselines folder with the workflow. --update-baselines replaces them after an intended change. A pixel counts as different when a colour channel differs by more than 32 of 255, so anti-aliasing and ClearType do not fail a check. A different size (another screen scale or window size) fails with both sizes named. The report shows the baseline, what was captured, and the differences in red, with the share of pixels that differ ( images/NNN-baseline|actual|diff.png in the run folder). Image names are file names only (letters, digits, _ , - , ending .png ). A path, .. , or a link that leads out of the baselines folder is refused. Run visual checks on one machine with a fixed resolution and scale (see DESKTOP-CI.md )."},{"t":"Unattended runs","u":"docs/index.html#doc-docs-desktop-unattended-runs","g":"User guide · Desktop","h":[],"x":"Unattended runs Replay needs a signed-in, unlocked Windows session. Before it starts the app, it checks the session and fails at once with the reason if it is a Windows service (session 0), a locked screen, or a disconnected Remote Desktop session. forgeqe desktop doctor runs the same check. To run the suite every night on a machine of your own, see DESKTOP-CI.md : a runner set up in the user's session ( ci/desktop-runner/prepare-runner.ps1 ), a nightly workflow ( ci/desktop-runner/desktop-nightly.example.yml ), and --junit results."},{"t":"Updating UFO²","u":"docs/index.html#doc-docs-desktop-updating-ufo²","g":"User guide · Desktop","h":[],"x":"Updating UFO² UFO² is pinned to one commit. Moving it is checked before it is pinned: The ufo-update job of .github/workflows/ci.yml runs weekly, or by hand (Run workflow, job ufo-update ) with a commit. It sets up that UFO on Windows ( FORGEQE_UFO_COMMIT , which takes a full 40-character commit id only), runs the adapter tests against its real code and a scripted explore of Notepad, and says in the job summary whether it passed. When it passed: bun scripts/ufo-bump.ts \u003ccommit\u003e writes the new pin into src/desktop/setup.ts , py/forgeqe_desktop/ufo_runner.py and this page. Run the tests and push; the Windows CI job tests the pin again. When it fails, the failing step names what changed in UFO (usually the action executor or the config layout that the adapter wraps). Keep the pin until the adapter is updated for it."},{"t":"Checks of the outcome","u":"docs/index.html#doc-docs-desktop-checks-of-the-outcome","g":"User guide · Desktop","h":[],"x":"Checks of the outcome A recording of actions only proves the steps run. When UFO has finished, and before the app closes, explore shows the model the goal and the app's controls with the text each shows now, and the model picks up to three whose text proves the goal (a status message, a saved value), by number, with the part of the text to expect. A check is kept only when that text really is in that control, so the model can choose among what is on screen but never invent it; text holding a desktop.secrets value is never offered. The checks are saved as expect steps at the end of the workflow, and the report says how many there are. With none, the report and the agent say so: add expect steps by hand."},{"t":"Recording","u":"docs/index.html#doc-docs-desktop-recording","g":"User guide · Desktop","h":[],"x":"Recording UFO's own step log names the control and a per-step id, not its AutomationId, so the adapter wraps UFO's ActionExecutor.execute and records each action with the UIA properties of the control it acted on. record.py turns that trace into steps: click_input → click / double_click , set_edit_text → type , keyboard_input → keys (one allowed chord) or type , select → select . Coordinate clicks, scrolls and anything else are listed as not recorded in the report. A typed value equal to a desktop.secrets value is written as its placeholder; typed text that only looks like {{…}} is kept literal, so a model told to type {{secret:X}} cannot make replay type the secret."},{"t":"Security","u":"docs/index.html#doc-docs-desktop-security","g":"User guide · Desktop","h":[],"x":"Security The YAML, the trace, the app's screen text and the model's replies can all be written by someone else. The rules in the repository's CLAUDE.md apply; for this engine: No command in the workflow. app: names a desktop.apps entry: an absolute .exe (a .bat or .cmd would run through cmd.exe , which reparses its arguments) and an argument list, started with subprocess.Popen([path, *args]) . UFO gets UI tools only. Each explore writes UFO's mcp.yaml with UICollector , HostUIExecutor and AppUIExecutor . UFO's default CommandLineExecutor , which runs shell commands, and its Word, Excel, PowerPoint and PDF executors are left out. The adapter starts the app, so UFO never launches a program. Keys: during explore the adapter refuses UFO's Windows and menu keys too, and the report lists what it refused. No one at the console: UFO's safe guard asks before sensitive actions; explore answers no, since nobody is there. Environment: the engine process gets system settings, the profile's key variable (or Entra's) and desktop.secrets , nothing else ( desktopEnvNames ). Explore controls the real mouse and keyboard. It asks before starting ( --yes to skip; required with no terminal). Use a test machine or VM and a test account. Agent tools: a workflow path the agent gives must be a .yaml inside the working folder or the reports folder (real path, so a link out is refused); variables are names and text only; heals are reported, never written. Healing: the model picks one of the window's real controls by number; control text is passed as data, and any other answer heals nothing. Heals are written into the workflow only when accepted. Report: every value is escaped; images are only the engine's own steps/NNN.png and images/NNN-baseline|actual|diff.png . Baselines: expect_image names are file names, and their real path must be inside the workflow's baselines folder, so a workflow cannot read or overwrite another file. Unattended machines: prepare-runner.ps1 never handles a password; automatic sign-in uses Sysinternals Autologon, which stores it encrypted. Install: UFO is cloned and checked out at the pinned commit (or FORGEQE_UFO_COMMIT , a full commit id only), and the checkout's HEAD is verified; replay's packages are pinned to exact versions."},{"t":"Before first use on Windows","u":"docs/index.html#doc-docs-desktop-before-first-use-on-windows","g":"User guide · Desktop","h":[],"x":"Before first use on Windows Verified in CI: setup with and without --ufo , replay, healing, the CLI, and UFO's own code with the adapter (its config, its model calls routed to the profile, the action trace, UI tools only). Still to check, on a Windows test machine with your apps: UIA coverage: Inspect.exe shows the controls that matter with stable AutomationId s. Custom grids, Java (needs Java Access Bridge), Delphi, SAP GUI and Citrix (vision only) are where UIA falls short. Explore with your model: one goal with an Azure profile and one with auth: entra ; trace.json has the controls' AutomationIds, and ufo/ has UFO's logs. Replay: the recorded workflow passes 10 runs out of 10; a renamed control is healed. Cost and time of one explore, from forgeqe usage. Found by the Windows runs and fixed: UFO's pins need Python 3.10 (pandas 1.4.3); UFO prints emoji panels to stdout, which is the engine's event stream and crashed on the cp1252 console (now sent to stderr, characters replaced); an error in UFO's own evaluation lost the recorded actions (the trace is now kept and saved)."},{"t":"Next steps","u":"docs/index.html#doc-docs-desktop-next-steps","g":"User guide · Desktop","h":[],"x":"Next steps The checks above. forgeqe suite and test cases from Azure DevOps, Jira and Xray for desktop workflows, with results written back. Scribe: export a workflow as pywinauto code (or C# with FlaUI) in the user's repo. App adapters where UIA falls short: Java Access Bridge, SAP GUI scripting, vision-only for Citrix. A pipeline template for a self-hosted Windows runner signed in to a desktop session."},{"t":"Running desktop workflows unattended (nightly CI)","u":"docs/index.html#doc-docs-desktop-ci-running-desktop-workflows-unattended-nightly-ci","g":"User guide · Desktop","h":[],"x":"Running desktop workflows unattended (nightly CI) Desktop replay clicks and types into real windows. It needs what a person at the machine would have: a signed-in Windows session, unlocked, with a screen. GitHub's hosted windows-2022 runners have that, and ForgeQE's own CI runs Notepad there. Your own apps usually need a machine of your own, with the app installed, its test database, and a network route to its servers. This page sets one up as a GitHub Actions self-hosted runner. The same rules apply to Azure DevOps agents and Jenkins nodes."},{"t":"What breaks a desktop run, and how ForgeQE tells you","u":"docs/index.html#doc-docs-desktop-ci-what-breaks-a-desktop-run-and-how-forgeqe-tells-you","g":"User guide · Desktop","h":[],"x":"What breaks a desktop run, and how ForgeQE tells you Situation Effect Fix The runner is a Windows service Session 0 has no desktop; every control lookup times out Run the runner in the user's session (below) The screen is locked Windows sends no input to apps No inactivity lock, no screen-saver lock A Remote Desktop session was disconnected The session is locked Leave Remote Desktop with tscon (below), or don't use it on the test machine The machine slept or the screen turned off Input and screenshots stop Power plan: never sleep, never turn off the screen After a restart nobody signs in No session at all Sysinternals Autologon Before each replay or explore, the engine checks the session ( py/forgeqe_desktop/session.py ). On a session it cannot drive, the run fails at once with the reason, instead of timing out step by step. forgeqe desktop doctor runs the same check from a shell or a job: text Copy engine ready (C:\\Users\\qa\\.forgeqe\\desktop\\.venv\\Scripts\\python.exe) explore not set up (forgeqe desktop setup --ufo) session 1, screen 1920x1080 desktop logged in and unlocked It exits with 1 when the desktop cannot be driven, so a job stops before the suite runs."},{"t":"Set up the test machine","u":"docs/index.html#doc-docs-desktop-ci-set-up-the-test-machine","g":"User guide · Desktop","h":[],"x":"Set up the test machine Use a test machine or VM, and a test account: the runner's jobs control its mouse and keyboard. Sign in as the account the tests will run as. Install the runner (GitHub: Settings → Actions → Runners → New self-hosted runner). Give it the label forgeqe-desktop . When config.cmd asks whether to run as a service, answer no . Run ci/desktop-runner/prepare-runner.ps1 in an elevated PowerShell ( -WhatIf first to see the changes): powershell Copy .\\prepare-runner.ps1 -RunnerDir C:\\actions-runner -WhatIf .\\prepare-runner.ps1 -RunnerDir C:\\actions-runner It stops sleep, screen-off and the screen-saver lock. It turns the inactivity lock off and registers a logon task that starts run.cmd in this account's session. It warns you if the runner is also installed as a service. It never handles a password. Sign in automatically after a restart with Sysinternals Autologon , run as the test account. It stores the password encrypted by Windows. Never put the password in a script, a registry value you write yourself, or the repository. Fix the screen size. A visual check ( expect_image ) compares pixels, so the resolution and scale (100%, 125%) must match the machine where its baselines were saved. Set them once and leave them. Restart and check that the runner shows as idle on GitHub. Then run forgeqe desktop doctor from a job."},{"t":"Leaving Remote Desktop without locking the session","u":"docs/index.html#doc-docs-desktop-ci-leaving-remote-desktop-without-locking-the-session","g":"User guide · Desktop","h":[],"x":"Leaving Remote Desktop without locking the session Closing a Remote Desktop window disconnects the session, and Windows locks it. To leave it running instead, hand the session back to the machine's console. In an elevated prompt inside the Remote Desktop session: bat Copy for /f \"skip=1 tokens=3\" %s in ('query user %USERNAME%') do tscon %s /dest:console On a VM, the hypervisor's console (Hyper-V, VMware, VirtualBox) needs no such step."},{"t":"The nightly job","u":"docs/index.html#doc-docs-desktop-ci-the-nightly-job","g":"User guide · Desktop","h":[],"x":"The nightly job ci/desktop-runner/desktop-nightly.example.yml is a ready workflow. Copy it into .github/workflows/ in the repository that holds your desktop workflows. It: runs at night on [self-hosted, windows, forgeqe-desktop] , one run at a time; installs a pinned ForgeQE and runs forgeqe desktop setup and forgeqe desktop doctor ; replays every workflow in a folder: forgeqe desktop replay desktop-tests/ --junit results/desktop.xml ; keeps the reports, screenshots and image diffs as an artifact. --junit writes one test case per workflow (and per CSV row with --data ), which CI servers show as test results. runs.json in the output folder has the same, with the path of each report. Secrets the workflows type ( {{secret:NAME}} ) come from the CI's secret store as environment variables, and must be listed in desktop.secrets or the environment's secrets in env.yaml . Pick the environment with FORGEQE_ENV or --env . Healing calls the model. In a nightly run, either give the job the model's key so moved controls are healed and reported in heals.json (never written into the workflow without --accept-heals ), or pass --no-heal so a moved control fails the run."},{"t":"Mobile","u":"docs/index.html#area-mobile","g":"User guide","h":[],"x":"08 Mobile Android and iOS apps through Appium or Maestro: explore a goal, replay, run the team's flows"},{"t":"Automate Android and iOS apps","u":"docs/index.html#cap-mobile-apps","g":"User guide · Mobile","h":[],"x":"Mobile Automate Android and iOS apps Carries out a plain-language goal in an Android or iOS app through Appium and saves it as a mobile workflow with checks of the outcome; replays workflows with no model on Appium (healing a moved control) or Maestro; runs the team's own Maestro flows after checking them against an allowlist; uploads an app build to TestMu AI and saves its lt:// id as the app's build. Apps come from env.yaml (kind: mobile) or forgeqe.yaml mobile:. Ask it Sign in to the courier app and accept the first delivery, and save it as a test Replay the courier login on Maestro Run our Maestro flows in .maestro/ Upload builds/courier.apk to TestMu for the courier app What it needs Optional A live model profile in llms.json (an API key or Microsoft Entra ID sign-in) Required Mobile apps: env.yaml (kind: mobile) or mobile.apps in forgeqe.yaml You give an Appium server with a device or emulator (or a device cloud), or Maestro installed; the app in env.yaml or forgeqe.yaml mobile.apps Limits Explore runs on Appium only Maestro replays do not heal moved controls or compare images (expect_image) On TestMu AI, Maestro (through HyperExecute) refuses workflows that type secrets; replay those there with --driver appium Tools mobile_explore mobile_replay mobile_maestro mobile_upload In detail"},{"t":"Mobile apps (Android, iOS)","u":"docs/index.html#doc-how_to_use-mobile-apps-android-ios","g":"User guide · Mobile","h":[],"x":"Mobile apps (Android, iOS) ForgeQE drives Android and iOS apps two ways: through Appium , step by step (it can explore a goal with the model, and heals a control that moved), and through Maestro (fast replays, and your team's own Maestro flows). In the shell, ask for a goal in the app (\"sign in to the courier app and accept the first delivery\") and ForgeQE's agent explores it on your device or emulator and saves a workflow with checks of the outcome. The same from the command line: bash Copy forgeqe mobile doctor # does the Appium server answer, is maestro installed? forgeqe mobile explore \"Sign in and accept the first delivery\" --app courier forgeqe mobile replay \u003crun folder\u003e/workflow.yaml # on Appium (mobile.driver), healing moved controls forgeqe mobile replay workflow.yaml --driver maestro # the same workflow as a Maestro flow forgeqe mobile replay mobile-tests/ --junit results.xml # every workflow in a folder, results for CI forgeqe mobile maestro .maestro/ # your team's Maestro flows, checked first forgeqe mobile flow workflow.yaml \u003e login.flow.yaml # a workflow as a Maestro flow, to keep Apps come from env.yaml ( kind: mobile , platform: android or ios , app_id , and optionally activity and an app build to install) or mobile.apps in forgeqe.yaml. mobile.appium names the Appium server (default http://127.0.0.1:4723 , or a device cloud's hub with its user and key in environment variables), and {{secret:NAME}} reads only mobile.secrets (and the environment's secrets). A flow kept with forgeqe mobile flow reads each secret as ${MAESTRO_\u003cNAME\u003e} , never its value, so set MAESTRO_\u003cNAME\u003e when you run it outside ForgeQE; a workflow that types a secret not listed there is refused. Team Maestro flows run only with UI commands: scripts, JavaScript in ${…} , Maestro's AI commands and file writes are refused. Details: docs/MOBILE.md . On TestMu AI (formerly LambdaTest) Both drivers run on TestMu AI's devices. Upload the app build once, then use the lt:// id it prints as the app's app (in env.yaml or mobile.apps ; ForgeQE adds it to Appium's LT:Options itself): bash Copy forgeqe mobile upload courier.apk # prints lt://APP…, for TestMu's real devices forgeqe mobile upload courier.apk --virtual # for TestMu's emulators and simulators instead forgeqe mobile upload courier.apk --name courier-nightly # the name TestMu shows for the build The user name and access key come from LT_USERNAME and LT_ACCESS_KEY (or the variables username_env and access_key_env name), for example in a .env file in the project folder. They go only to the mobile engine, never to a flow or a model, and a user or key in the hub URL is refused. yaml Copy mobile: apps: courier: { platform: android, app_id: com.contoso.courier, app: \"lt://APP1016…\" } appium: # Appium on TestMu's mobile hub url: https://mobile-hub.lambdatest.com/wd/hub username_env: LT_USERNAME access_key_env: LT_ACCESS_KEY capabilities: \"LT:Options\": { w3c: true, isRealMobile: true, deviceName: \"Pixel 6\", platformVersion: \"14\" } maestro: testmu: # Maestro on TestMu, through HyperExecute cli: ./hyperexecute # TestMu's hyperexecute CLI devices: [\"Pixel 6-14\"] # name-version, or a pattern such as \".*-.*\" real_device: true # false: TestMu's emulators Appium needs nothing else: it talks to the hub with the user and key from the two variables. Maestro runs through HyperExecute. mobile.maestro.testmu names TestMu's hyperexecute CLI ( cli ), the devices to run on ( devices ), and real devices or emulators ( real_device ). ForgeQE writes a HyperExecute project in the run folder (the flows in their folder layout, so runFlow still works, the app, fixed setup and run scripts, and hyperexecute.yaml ) and starts the CLI. Team flows are checked against the allowlist first, as always. The access key is removed from the CLI's output and from every file in the run folder; the run prints the HyperExecute job link. Secrets: a workflow that types a secret is refused on Maestro on TestMu (HyperExecute would need the value in its own vault). Replay it on TestMu with --driver appium instead. Maestro on TestMu runs Android apps; run iOS apps there through Appium. In the shell, ask in words: \"upload builds/courier.apk to TestMu for the courier app\". After you agree, ForgeQE uploads it and writes the lt:// id into that app's app: in forgeqe.yaml (an app from env.yaml gets the id to set there). The build must be inside the working folder; hidden folders and files named like credentials are refused. samples/mobile-testmu is a ready project with TestMu's Wikipedia sample app: copy .env.example to .env , upload the app with forgeqe mobile upload sample.apk , put the id in its forgeqe.yaml , download the hyperexecute CLI into the folder, then run forgeqe mobile replay wiki.yaml --driver appium , --driver maestro , and forgeqe mobile maestro .maestro . Details: docs/MOBILE.md ."},{"t":"ForgeQE mobile: Android and iOS apps","u":"docs/index.html#doc-docs-mobile-forgeqe-mobile-android-and-ios-apps","g":"User guide · Mobile","h":[],"x":"ForgeQE mobile: Android and iOS apps Status: the engine and its tests run on any OS, against a fake Appium server and a stand-in for Maestro. The CI job The android job of .github/workflows/ci.yml runs it on an Android emulator: Appium explores and replays the emulator's Settings app, and Maestro replays the same workflow. iOS runs the same code with the XCUITest driver, but no CI job tests it yet (it needs a macOS runner with a simulator). ForgeQE drives mobile apps two ways, and one workflow format runs on both: Appium Maestro Runs step by step, through an Appium server (yours or a device cloud's) the whole workflow as one Maestro flow Explore a goal with the model yes no Heal a control that moved yes, one model call, reported for review no Visual checks ( expect_image ) yes no Your team's own flows n/a forgeqe mobile maestro , checked against an allowlist Needs appium with UiAutomator2 (Android) or XCUITest (iOS), a device or emulator maestro and a device or emulator"},{"t":"Use","u":"docs/index.html#doc-docs-mobile-use","g":"User guide · Mobile","h":[],"x":"Use bash Copy forgeqe mobile doctor # does the Appium server answer, is maestro installed? (or, with # mobile.maestro.testmu: is the hyperexecute CLI there, are the user and key set?) forgeqe mobile apps # the mobile apps of the active environment forgeqe mobile devices --like \"Pixel 8-14\" # the devices TestMu or BrowserStack has, most like one first forgeqe mobile explore \"Sign in as the courier and accept the first delivery\" --app courier forgeqe mobile replay .forgeqe/reports/mobile-explore-…/workflow.yaml forgeqe mobile replay workflow.yaml --driver maestro forgeqe mobile replay mobile-tests/ --data couriers.csv --junit results.xml forgeqe mobile maestro .maestro/ # the team's flows forgeqe mobile flow workflow.yaml # print a workflow as a Maestro flow forgeqe mobile validate workflow.yaml Or ask ForgeQE's agent in the shell or forgeqe run : \"sign in to the courier app and save it as a test\", \"replay the courier login on Maestro\", \"run our Maestro flows\". Its tools are mobile_explore , mobile_replay and mobile_maestro . It asks before each one starts, and desktop_edit_workflow fixes a mobile workflow after a failed replay, the same way as a desktop one."},{"t":"Apps and settings","u":"docs/index.html#doc-docs-mobile-apps-and-settings","g":"User guide · Mobile","h":[],"x":"Apps and settings Mobile apps come from the active environment in env.yaml, or from mobile.apps in forgeqe.yaml: yaml Copy # env.yaml environments: qa: apps: courier: kind: mobile platform: android # or ios app_id: com.contoso.courier # Android package or iOS bundle id activity: .MainActivity # Android only, optional app: /builds/courier-qa.apk # optional: install this build (.apk/.aab/.ipa/.app/.zip, https URL, bs://…) description: Driver app that confirms delivery secrets: [COURIER_PASSWORD_QA] yaml Copy # forgeqe.yaml mobile: driver: appium # appium | maestro: the default for replays appium: url: http://127.0.0.1:4723 capabilities: # added to every session appium:udid: emulator-5554 # username_env: BROWSERSTACK_USERNAME # access_key_env: BROWSERSTACK_ACCESS_KEY maestro: command: [maestro] # device: emulator-5554 secrets: [COURIER_PASSWORD] heal: true screenshots: true Each run writes a folder under the reports folder ( mobile-explore-… , mobile-replay-… , mobile-maestro-… ) with run.json , report.html , step screenshots, and for Maestro runs the flow, maestro.log and Maestro's JUnit report."},{"t":"Workflow YAML ( forgeqe-mobile-v1 )","u":"docs/index.html#doc-docs-mobile-workflow-yaml-forgeqe-mobile-v1","g":"User guide · Mobile","h":[],"x":"Workflow YAML ( forgeqe-mobile-v1 ) yaml Copy format: forgeqe-mobile-v1 name: Courier signs in app: courier timeout: 20 dismiss: - {name: Allow, control_type: android.widget.Button} # permission dialogs, when they are in the way steps: - op: launch - op: type target: {automation_id: username} text: \"{{courier}}\" - op: type target: {automation_id: password} text: \"{{secret:COURIER_PASSWORD}}\" - op: tap target: {name: Sign in} - op: wait_for target: {automation_id: progress} gone: true - op: scroll_to target: {name: Deliveries} - op: expect target: {automation_id: status} text: Welcome Ops: launch , tap , double_tap , long_press , type , expect , expect_image , swipe ( direction up, down, left or right, optionally on a target ), scroll_to (scrolls until the target is on screen), back , hide_keyboard , keys ( enter , back , tab , delete , search ), wait , wait_for , close . Timeouts, retries and dismiss work as in desktop workflows. Explore saves a tap on a system dialog (another package's control, such as Android's notification prompt) under dismiss , not as a step, so the workflow still runs where the dialog never shows; on Maestro, each dismiss target is tapped after a launch if it is there. Targets use the desktop keys, mapped per platform: automation_id is the Android resource-id (with or without the package:id/ prefix) or the iOS accessibility identifier; name is the Android text or content-desc, or the iOS label; control_type is the Android class ( android.widget.Button ) or the iOS type ( XCUIElementTypeButton ); index picks one of several matches."},{"t":"Explore","u":"docs/index.html#doc-docs-mobile-explore","g":"User guide · Mobile","h":[],"x":"Explore The model sees the goal, its steps so far, the numbered controls on screen with the text each shows, and a screenshot when the profile takes images. It answers with one action on a control by its number (tap, long press, type), a swipe or scroll, back, or done. So it can only act on a control that is on screen. When it says done, it picks checks of the outcome from the controls' current text, kept only when that text is really there, as on the desktop. The app's text is passed as data."},{"t":"Maestro","u":"docs/index.html#doc-docs-mobile-maestro","g":"User guide · Mobile","h":[],"x":"Maestro ForgeQE workflows on Maestro. --driver maestro writes the workflow as a Maestro flow ( flow.yaml in the run folder) and runs maestro test . Maestro's debug output gives each workflow step its result. Variables are filled in first. Values are matched literally, so Maestro's regular expressions never see them as patterns. A secret becomes ${MAESTRO_NAME} , which Maestro reads from the environment ForgeQE gives it, so a secret's value never lands in the flow file or on a command line. A value holding ${…} is refused, because Maestro would run it as JavaScript. Your team's flows. forgeqe mobile maestro \u003cfiles or folders\u003e checks each flow, and every flow it runs, before Maestro gets it: Only UI commands pass: launchApp , tapOn , inputText , assertVisible , scrollUntilVisible , swipe , extendedWaitUntil , runFlow , repeat , retry and the like. These are refused: runScript , evalScript and assertTrue , which run JavaScript. Maestro's AI commands, which send screenshots to a service. takeScreenshot , recordings and addMedia , which read or write files. ${…} may only name a variable ( ${USERNAME} ), never an expression. when: {true: …} is refused, because it is JavaScript. openLink takes http(s) or the app's own deep links, never javascript: , file: or intent: . runFlow files must be .yaml inside the working folder; links out of it are refused too. Nesting stops at 5 levels. A refused flow does not run, and the error names the command."},{"t":"TestMu AI (formerly LambdaTest)","u":"docs/index.html#doc-docs-mobile-testmu-ai-formerly-lambdatest","g":"User guide · Mobile","h":[],"x":"TestMu AI (formerly LambdaTest) Both drivers run on TestMu's devices. Upload the app once, then use the lt:// id it returns as the app's app : bash Copy forgeqe mobile upload courier.apk # → lt://APP… (--virtual for TestMu's emulators) From the shell, ask in words (\"upload builds/courier.apk to TestMu for courier\"): mobile_upload asks first, uploads the build (it must be inside the working folder), and saves the lt:// id as that app's app: in forgeqe.yaml. The user and key come from LT_USERNAME and LT_ACCESS_KEY (or the variables the config names), for example in a .env file in the project folder. samples/mobile-testmu/ is a ready project with TestMu's Wikipedia sample app. yaml Copy mobile: apps: courier: { platform: android, app_id: com.contoso.courier, app: \"lt://APP1016…\" } appium: # Appium on TestMu's mobile hub url: https://mobile-hub.lambdatest.com/wd/hub username_env: LT_USERNAME access_key_env: LT_ACCESS_KEY capabilities: \"LT:Options\": { w3c: true, isRealMobile: true, deviceName: \"Pixel 8\", platformVersion: \"14\", build: nightly } # app: added from the app's own maestro: testmu: # Maestro on TestMu, through HyperExecute cli: /opt/hyperexecute # TestMu's hyperexecute CLI devices: [\"Pixel 8-14\"] # name-version, or a pattern such as \".*-.*\" real_device: true # false: TestMu's emulators # username_env: LT_USERNAME # the defaults # access_key_env: LT_ACCESS_KEY Appium needs nothing else: the Appium driver talks to the hub with the user and key from the two variables. Maestro runs through HyperExecute. ForgeQE writes a HyperExecute project in the run folder and starts the CLI. The project holds the flows in their folder layout (so runFlow still works), the app (an lt:// id is passed as the device's appId ; a build file is uploaded with the project), a fixed setup script (Android platform tools 35.0.2 and Maestro 2.6.1 from its release, both checked against their SHA-256) and a fixed run script, and hyperexecute.yaml . Team flows are checked against the allowlist first, as always. Flow file names may only use letters, digits and _ . - / , because HyperExecute's shell reads them, and no folder or file may be hidden except a top-level .maestro/ (hidden files of the working folder never leave the machine). After the job, ForgeQE downloads its artifacts (Maestro's command results and JUnit reports), so each step gets its own result in the report. A job on several devices (more than one entry in devices , or a pattern) brings back one run per device: the steps show the first device that failed, or the first device when all passed, and the job's page has each one. The job's link is printed from either hyperexecute.lambdatest.com or hyperexecute.testmu.ai . Devices are checked first. On TestMu (Appium or Maestro) and BrowserStack (Appium), replay , maestro and explore read the cloud's device list before they start (TestMu's list for the region, BrowserStack's devices.json ) and check each configured device, exact or a pattern. A device the cloud does not have would wait in its queue and time out ( QUEUE_TIMEOUT_DEVICE_UNAVAILABLE ), so ForgeQE offers the devices most like it instead: the same model on other OS versions, then the same family. In a terminal you pick one for this run; without one it stops and names them. --device \"Pixel 8-13\" runs on another device this time (several, comma-separated, for Maestro), --no-device-check skips the check, and forgeqe mobile devices lists what the cloud has. The list says what a cloud offers in the region, not whether a device is free this minute. TestMu's emulators ( real_device: false , isRealMobile: false ) are not in it and are not checked. Videos. TestMu records each Maestro flow as an App Automation session (its dashboard, not the HyperExecute job page, shows the video). Each run is its own build there, and after the job ForgeQE saves each flow's recording as videos/\u003cflow\u003e.mp4 in the run folder, plays it in the report's Artifacts tab, and prints it with the session's TestMu page. A video TestMu has not finished is waited for briefly; a run never fails for want of one. Secrets on Maestro on TestMu: a workflow that types a secret is refused there for now (HyperExecute would need the value in its own vault). Replay it on TestMu with --driver appium . For the same reason, a team flow that reads a ${NAME} variable its own env: blocks do not set is refused on TestMu (locally it could come from the environment); run it with a local maestro . The access key is passed to the CLI as an argument. It is removed from the CLI's output and from every file in the run folder. Neither the user name nor the key is passed to the flows' environment. maestro and the hyperexecute CLI are started without ForgeQE's own secrets (the model's key, service tokens) in their environment; only the mobile engine itself holds them. The testmu job of .github/workflows/ci.yml (Run workflow, job testmu ) runs all three on TestMu (Appium, Maestro with a workflow, a team flow) with TestMu's Wikipedia sample app, once the repository has the secrets LT_USERNAME and LT_ACCESS_KEY ."},{"t":"Security","u":"docs/index.html#doc-docs-mobile-security","g":"User guide · Mobile","h":[],"x":"Security No commands from the workflow or the model. app: names a configured app (a platform and an id). Appium is spoken to over HTTP, and maestro is started with an argument list, never a shell. Locators go into XPath as quoted literals, so a target cannot change the query. Secrets: {{secret:NAME}} reads only mobile.secrets and the environment's secrets, and ForgeQE's own keys are refused there. Explore types a secret from its placeholder, so the model never sees the value. The engine's environment holds system settings, the profile's key, the listed secrets, the cloud's user and key, and JAVA_HOME / ANDROID_HOME , nothing else. Cloud credentials come from the variables mobile.appium.username_env and access_key_env name; a user or key in the URL is refused. TLS is verified as usual. App builds are absolute paths to an app file, https URLs, or a device cloud's own upload ids ( bs:// , lt:// , storage:filename= ); file:// and other schemes are refused."},{"t":"Operations","u":"docs/index.html#area-operations","g":"User guide","h":[],"x":"09 Operations Monitoring and CI pipelines"},{"t":"Services, mocks, workspace and browser in Docker or Podman","u":"docs/index.html#cap-containers","g":"User guide · Operations","h":[],"x":"Operations Services, mocks, workspace and browser in Docker or Podman Starts the services a test run needs (a database, a queue, the API under test) in Docker or Podman, as forgeqe.yaml declares them, and waits until each is ready; stops them, and shows their status and logs. Starts mocks of an API on WireMock, from the calls a browser run recorded or from an OpenAPI description, and can point an API app of the environment at the mock for the session. With containers.workspace, the coding agents' shell commands (build, restore, run) and every test ForgeQE runs go to a container of the project's image; with browser.provider docker, the browser agent, the replay and the coding agent's live browser use Chromium in a container. Ask it Start the database and the queue in Docker Start the services from our docker-compose file Mock the payments API from the last run Create a mock service from openapi.yaml and point order-api at it Show the logs of the db container What it needs Required Docker or Podman on PATH; the services to start in containers.services in forgeqe.yaml (mocks need none) Limits Starts only services declared in forgeqe.yaml containers.services; it never runs an image, flag or mount from a request No privileged containers, host network, or access to the container runtime's socket; ports on 127.0.0.1 only; mounts read-only from inside the project Mocks answer REST calls (WireMock); GraphQL, SOAP and gRPC are not mocked Reads docker-compose files only for their services' image, ports, environment, bind mounts, command and depends_on; refuses build, privileged, network_mode, cap_add, devices and env_file; leaves named volumes out The workspace mounts the repository with its credential files (.env, .npmrc, keys) covered; the agents and the model key stay on this machine; ForgeQE's own agent keeps this machine's shell A browser in a container reaches this machine's apps as host.docker.internal, not localhost; it is headless, or visible on a virtual display, never on this screen Tools services mock_service In detail"},{"t":"Containers and mock services","u":"docs/index.html#doc-how_to_use-containers-and-mock-services","g":"User guide · Operations","h":[],"x":"Containers and mock services When Docker or Podman is installed, ForgeQE can start the services a test run needs, and mock an API the tests should not call. Ask in the shell: \"start the database and the queue\", \"mock the payments API from the last run\", \"make a mock from openapi.yaml and point order-api at it\", \"show the db logs\". Full reference: docs/CONTAINERS.md . The project declares its services in forgeqe.yaml. ForgeQE starts only these, and builds each command itself: yaml Copy containers: # runtime: podman # default: docker, else podman, on PATH services: db: image: postgres:16.4 # an exact version or a digest; never latest ports: [5432] # or \"15432:5432\" (this machine:container); always 127.0.0.1 env: { POSTGRES_DB: shop, POSTGRES_USER: shop } secrets: [POSTGRES_PASSWORD] # names of environment variables (.env works), passed by name volumes: [\"./db/init:/docker-entrypoint-initdb.d\"] # read-only, inside the project ready: { tcp: 5432 } # or { http: /health, port: 8080 } timeout: 90 bash Copy forgeqe services # declared services, what runs, whether Docker answers forgeqe services up db # start and wait until ready; keeps running after the command forgeqe services logs db --lines 50 forgeqe services down # stop this project's containers, mocks included Mocks: mock_service builds WireMock stubs. From a run, they answer what the app really got. From an OpenAPI or Swagger description, or a contract set, they answer with its examples, or values made from its schemas. The mock runs on a free port of 127.0.0.1 ( wiremock/wiremock:3.9.1 , or containers.mock.image ), and its stubs are in .forgeqe/mocks/\u003cname\u003e/mappings . With for_app , an API app of the active environment points at the mock for the rest of the session, so API tests and the tests ForgeQE runs ( FORGEQE_APP_\u003cAPP\u003e_URL ) use it. Session: what the agent starts (services or mocks) stops when the shell, forgeqe run , or forgeqe mcp ends. forgeqe services up keeps its services running until forgeqe services down . Asked first: services up and mock_service ask before they start anything. Guard rails: Fixed run settings: every container gets no new privileges, a process limit, ports on 127.0.0.1, read-only mounts, and labels with the project, so ForgeQE stops only its own containers. Refused service settings: privileged , network , cap_add , devices , user , and anything else that is not a service setting. Also refused: a port bound to another address, an image without an exact version, and a secret that is one of ForgeQE's own keys. Mounts: inside the project only. A mount that is or holds a hidden file ( .env , .git ), a file named like a key, or a link is refused, because a container can send what it reads anywhere. The docker, podman and compose programs only see the variables they need to find their daemon, plus the service's listed secrets. Not in the agents' shell: docker , podman , nerdctl and compose commands are refused for ForgeQE's agent and Scribe. Containers start only through these tools. Compose files. containers.compose: docker-compose.yml reads the file's services into the same list, checked by the same rules (forgeqe.yaml's own declaration of a service wins): Translated: image , ports , environment , bind mounts, command and depends_on . A ${NAME} value becomes a secret passed by name. Left out: named volumes. Mounts made read-only are listed in the notes. Ignored: container_name , restart , healthcheck and networks . Refused: build , privileged , network_mode , cap_add , devices , pid and env_file . x-forgeqe: { ready: … } sets the ready check. Without it, a service is ready when its first port takes connections. The project's containers share their own network, so services reach each other by name ( db:5432 ). Docker as the workspace and the browser. Two settings move the rest of the work into containers: yaml Copy browser: provider: docker # the browser agent, the replay and Scribe's live browser use Chromium in a container containers: workspace: # Scribe's shell commands and every test ForgeQE runs use this image image: mcr.microsoft.com/playwright/dotnet:v1.63.0-noble env: { NEXUS_ENVIRONMENT: CI } browser: # optional headless: false # visible on a virtual display inside the container (some sites refuse headless) Workspace: Scribe builds, restores, runs and fixes tests in a Linux container of the project's image, with the repository at the same path. Each test run gets its own container from that image, and HOME is a volume of the project's, so package caches outlive the session. The agents and the model key stay on this machine, and ForgeQE's own agent keeps this machine's shell. .env , keys and other credential files in the repository are covered inside the containers. Browser: each browser run gets a fresh container, reached through a gateway that wants a random token. A declared service is reached by its name; an app on this machine is host.docker.internal , not localhost . --browser-provider docker picks it for one run. FORGEQE_HOST_RUN=1 runs Scribe's commands and the tests on this machine for a session. Tests in a container. With containers.tests , run_tests runs the repository's tests in that image instead of on this machine, after starting the services it lists: yaml Copy containers: tests: image: mcr.microsoft.com/playwright:v1.48.2-jammy services: [db] secrets: [TEST_DB_PASSWORD] What runs: the command you confirmed, inside the container, in the repository (mounted at its own path, so the result files land where ForgeQE reads them). User: your user. Variables: only the environment's FORGEQE_* variables, the saved logins' variables, and the listed env and secrets. To run on this machine instead: ask to run the tests on this machine ( in_container: false ). Machines: Linux and macOS. Testcontainers. When a test needs a real database or queue, or the repository already uses Testcontainers, Scribe's testcontainers skill writes the test to start it from code. It reuses the repository's fixtures, pins ima"},{"t":"ForgeQE containers: services and mocks in Docker or Podman","u":"docs/index.html#doc-docs-containers-forgeqe-containers-services-and-mocks-in-docker-or-podman","g":"User guide · Operations","h":[],"x":"ForgeQE containers: services and mocks in Docker or Podman Status: the tests run against a fake runtime on any OS. They check the commands ForgeQE builds, the checks on config, compose files, mounts and secrets, the mock stubs, and tests in a container. tests/containers.live.test.ts runs on real Docker (and is skipped without it): Postgres from forgeqe.yaml and from a compose file. A WireMock mock that answers a recorded run's calls. A tests container that reaches the database by name and writes its results into the repository as this machine's user. The containers job of .github/workflows/ci.yml runs both on GitHub's Docker. There, a skipped live test fails the job. ForgeQE uses Docker or Podman, when one is installed, for five jobs: Services a test run needs: a database, a queue, a cache, or the API under test. The project declares them in forgeqe.yaml, or in a docker-compose file that forgeqe.yaml names. Mocks of an API: WireMock stubs made from the calls a browser run recorded, or from an OpenAPI description, so the tests can run without the real service. The repository's tests in a container: run_tests runs the command the user confirmed in an image, instead of on this machine, after starting the services the tests need. A workspace for the coding agents: with containers.workspace , Scribe's shell commands (build, restore, run, git) and every test ForgeQE runs for it go to a container of the project's image. The agents stay on this machine. A browser in a container: with browser.provider: docker , the browser agent, the replay and Scribe's live browser drive Chromium in a container of Microsoft's Playwright image. Scribe also has a testcontainers skill, for tests that start their own services from code (below). ForgeQE's agent uses them through two tools, services and mock_service . The CLI has forgeqe services . When neither Docker nor Podman is on PATH, the agent isn't offered these tools."},{"t":"Use","u":"docs/index.html#doc-docs-containers-use","g":"User guide · Operations","h":[],"x":"Use bash Copy forgeqe services # the declared services, what runs, whether the runtime answers forgeqe services up # start every declared service and wait until each is ready forgeqe services up db queue # just these forgeqe services logs db --lines 50 # last lines, secrets removed forgeqe services down # stop and remove this project's containers (mocks included) In the shell or forgeqe run , you can ask, for example: \"start the database\" \"is the queue up?\" \"mock the payments API from the last run\" \"make a mock service from openapi.yaml and point order-api at it\" \"stop the services\" The agent asks before it starts anything."},{"t":"Declaring services","u":"docs/index.html#doc-docs-containers-declaring-services","g":"User guide · Operations","h":[],"x":"Declaring services yaml Copy # forgeqe.yaml containers: runtime: docker # docker | podman; default: docker, else podman, on PATH services: db: description: Orders database for the API tests image: postgres:16.4 # an exact version, or name@sha256:\u003cdigest\u003e ports: [5432] # 127.0.0.1:5432 -\u003e 5432; \"15432:5432\" maps another port of this machine env: # plain values only POSTGRES_DB: shop POSTGRES_USER: shop secrets: [POSTGRES_PASSWORD] # environment variable names; their values come from the environment or .env volumes: - ./db/init:/docker-entrypoint-initdb.d # read-only; a folder or file inside the project command: [\"-c\", \"log_statement=all\"] # arguments for the image's entrypoint ready: { tcp: 5432 } # or { http: /health, port: 8080 }; without it: the container runs timeout: 90 # seconds to wait until ready (default 60) queue: image: rabbitmq:3.13.7-management ports: [5672, 15672] ready: { http: /, port: 15672 } mock: image: wiremock/wiremock:3.9.1 # the default Setting Rule Service name Lower-case letters, digits and - , starting with a letter. Names starting with mock- are kept for mocks. image Must have an exact tag or a digest. An untagged image or latest is refused, because it changes under the same name. ports Always bound to 127.0.0.1. An address such as 0.0.0.0:5432:5432 is refused. env Plain values on one line. Secrets go under secrets . secrets Variable names. They are passed to the runtime by name ( --env NAME ), so the value is never on a command line. One of ForgeQE's own keys (a model key, a tracker token) is refused. volumes Always read-only. Must be inside the folder of forgeqe.yaml, and can't be the whole folder. command A list of arguments, never one command string. depends_on Services to start first. Anything else Refused with an error, not ignored. That includes privileged , network , cap_add , devices , user , pid and the socket. Every service, whether from forgeqe.yaml or a compose file, can list depends_on . up starts a service after the ones it depends on; a circle is refused."},{"t":"Compose files","u":"docs/index.html#doc-docs-containers-compose-files","g":"User guide · Operations","h":[],"x":"Compose files yaml Copy containers: compose: docker-compose.yml # or a list; inside the project ForgeQE reads each service of the file and translates it into a forgeqe.yaml service. The same rules then check it, and a service declared in forgeqe.yaml wins over the compose file's service of the same name. Compose itself never runs. Compose ForgeQE image Required; an exact version or a digest. build is refused: build and tag the image first. ports \"5432\" , \"15432:5432\" , \"127.0.0.1:15432:5432\" , or the long form; always bound to 127.0.0.1. Any other address, and UDP, are refused. environment Plain values are passed as they are. KEY: ${KEY} , KEY alone in the list form, and KEY: ${KEY:-default} pass the variable by name as a secret. ${OTHER} under another name, and values that mix text and ${…} , are refused. volumes Bind mounts ( ./db/init:/docker-entrypoint-initdb.d ) are mounted read-only, and :rw is noted. Named and anonymous volumes are left out, so the container keeps no data between runs. A path outside the project is refused when the service starts. command A list, or a string split into arguments (compose uses no shell, and neither does ForgeQE). depends_on List or map form: the start order. condition is not used; ForgeQE waits until each service is ready. x-forgeqe ready , timeout , description , as in forgeqe.yaml. Without ready , a service with ports is ready when its first port takes connections. container_name , restart , labels , healthcheck , networks , expose , deploy , profiles , … Ignored: ForgeQE names, labels and networks the containers itself. privileged , network_mode , cap_add , devices , pid , ipc , user , security_opt , volumes_from , env_file , entrypoint , extends , … Refused, and the error names the setting. What was left out (a named volume, a mount made read-only) is listed in notes ."},{"t":"The project network","u":"docs/index.html#doc-docs-containers-the-project-network","g":"User guide · Operations","h":[],"x":"The project network Each project's containers join their own network, forgeqe-\u003cproject\u003e , under their service name. So the API container reaches the database as db:5432 , and the tests container reaches both. No other container joins the network, and no container is on the host's network. forgeqe services down with no names also removes the network."},{"t":"Tests in a container","u":"docs/index.html#doc-docs-containers-tests-in-a-container","g":"User guide · Operations","h":[],"x":"Tests in a container yaml Copy containers: tests: image: mcr.microsoft.com/playwright:v1.48.2-jammy # an exact version; the tests' toolchain services: [db, order-api] # started first (when not running yet); the tests reach them by name env: { DB_HOST: db } secrets: [TEST_DB_PASSWORD] With containers.tests set, run_tests runs the tests in that image unless it is called with in_container: false . Its confirmation says where the tests will run. The container: Runs the command the user confirmed with the image's own shell, sh -c \"\u003ccommand\u003e\" , inside the container, never on this machine. Mounts the repository read-write at its own path and works in it, so results land where ForgeQE reads them. On this machine, the tests already have the whole disk. A folder outside the repository that the results go to is mounted the same way. Runs as this machine's user ( --user uid:gid ), so files it writes are yours. It also gets --security-opt no-new-privileges , --pids-limit 4096 and --rm , and it is removed by name when the run ends or is stopped. Gets only these variables: CI=1 , NO_COLOR , HOME=/tmp , the environment's FORGEQE_ACTIVE_ENV , FORGEQE_APP_* and FORGEQE_VAR_* , the saved logins' variables, and containers.tests env and secrets . Secrets are passed by name. ForgeQE's own keys are never passed. Has secret values removed from its output , as on this machine. This needs a Linux or macOS machine, because the repository is mounted at its own path."},{"t":"The workspace","u":"docs/index.html#doc-docs-containers-the-workspace","g":"User guide · Operations","h":[],"x":"The workspace yaml Copy containers: workspace: image: mcr.microsoft.com/playwright/dotnet:v1.63.0-noble # an exact version; the project's toolchain services: [db] # started first; reached by name env: { NEXUS_ENVIRONMENT: CI, DOTNET_ROLL_FORWARD: Major } secrets: [TEST_DB_PASSWORD] # by name; values from the environment or .env With containers.workspace set: Scribe's shell runs in the container. The agent runtime runs each command as $SHELL -c \u003ccommand\u003e . ForgeQE sets SHELL to a script that runs the same command with docker exec … sh -c \u003ccommand\u003e , in the same folder, in the workspace container. A folder outside the repository is refused, since the container has only the repository. The agent is told its commands run in a Linux container of that image. Every test ForgeQE runs goes to the same image: the coding loop's runs, heal , suite 's existing tests and run_tests . Each run gets its own container ( docker run --rm ), so stopping a run removes it. Browsers the test starts are found with docker top , as ForgeQE finds them on this machine. What stays on this machine: the agent runtime, the model key, ForgeQE's other secrets, the file tools (read, edit, write; the repository is the same folder in both places), and ForgeQE's own agent, which works with you on this machine and keeps its shell here. FORGEQE_HOST_RUN=1 runs everything on this machine for a session. The container: one per ForgeQE process and project, forgeqe-\u003cproject\u003e-workspace-\u003cid\u003e , removed when ForgeQE ends; the repository mounted read-write at its own path; credential files in it ( .env , .env.* except templates, .npmrc , .netrc , *.pem , *.key , id_* keys) covered with an empty read-only file, and .ssh , .aws , .azure , .docker , .kube and .forgeqe/sessions with an empty folder; HOME on the project's volume forgeqe-\u003cproject\u003e-home , so NuGet, npm and pip caches outlive the session. Docker creates the volume for root, so ForgeQE runs chown in it once, with a fixed command; this machine's user ( --user uid:gid ), no-new-privileges , --pids-limit 4096 , the project network; only CI=1 , HOME , the env and secrets listed, and, in each command, the environment's FORGEQE_APP_* and FORGEQE_VAR_* and the saved logins' variables, by name. containers.tests still names the image run_tests uses when it is set. Without it, run_tests uses the workspace's image. This needs a Linux or macOS machine, as tests in a container do."},{"t":"The browser in a container","u":"docs/index.html#doc-docs-containers-the-browser-in-a-container","g":"User guide · Operations","h":[],"x":"The browser in a container yaml Copy browser: provider: docker # or per run: --browser-provider docker containers: browser: # optional image: mcr.microsoft.com/playwright:v1.63.0-noble # default; needs Node.js and /ms-playwright headless: false # default: browser.headless; a visible browser runs on a virtual display (Xvfb) One container per use: each browser run (a suite runs suite.parallel at once) gets its own, and a coding job gets one that its replay and live browser share. Each is removed when its run or job ends. Connection: Chromium listens on 127.0.0.1 inside the container. CDP has no authentication of its own, so a small gateway in front of it ( BROWSER_SERVER in src/containers/browser.ts , run with the image's Node.js) accepts a connection only with a random 48-character token in its path, compared in constant time, and refuses a browser Origin that is not local. The port is published on 127.0.0.1 only. The token reaches the engine, the replay and the live browser's MCP server through the environment, never a file or a command line. Visible or headless: a visible browser runs on Xvfb inside the container. Sites that turn headless browsers away see an ordinary one, but you do not see it on your screen. Runs keep screenshots and traces as usual. Reaching the app: the container joins the project network, so a declared service is reached by its name ( http://order-api:8080 ). An app this machine serves is http://host.docker.internal:\u003cport\u003e ; localhost is the container itself, and ForgeQE warns when a run starts there. Replay: one pass, in a new browser context. The second pass (without Playwright's automation switches) needs a launch, which a running browser does not have. A run explored in a container is replayed in one even when the provider is changed back later ( run.json )."},{"t":"Testcontainers (Scribe)","u":"docs/index.html#doc-docs-containers-testcontainers-scribe","g":"User guide · Operations","h":[],"x":"Testcontainers (Scribe) When a test needs a real service, or the repository already uses Testcontainers (Java, .NET, Node, Python, Go), Scribe loads the testcontainers skill. It reuses the repository's containers and fixtures, pins images, waits for readiness, uses the mapped port, and sets the app's own configuration from it. It never uses privileged mode, the host network, the Docker socket, or a docker command from a test. These containers belong to the tests in the repository: the tests start and stop them, wherever they run."},{"t":"Mocks","u":"docs/index.html#doc-docs-containers-mocks","g":"User guide · Operations","h":[],"x":"Mocks mock_service builds WireMock stubs and runs WireMock on a free port of 127.0.0.1: From a run (the default: the latest run, or run_dir ): One stub per method, path and query of the app's own API calls, answering with the last status, content type and body the app got. Other sites' calls are left out unless third_party is set. Failed calls are left out. Answers that were cut when recorded are listed under skipped . From a description ( spec : OpenAPI 3 or Swagger 2, a link or a file): One stub per REST operation. Each stub answers with the operation's first success status and a body from the schema's examples, or values made from its types. A path parameter ( /orders/{id} ) matches any one path segment. Instead of a description, you can give a contract set from api_contracts ( set_id ). GraphQL, SOAP and gRPC are listed under skipped , not mocked. A spec given as a link is fetched by ForgeQE itself, with no credentials, as api_contracts does. The stubs are written to .forgeqe/mocks/\u003cname\u003e/mappings/ . You can read and edit them there. The folder is mounted read-only at /home/wiremock/mappings . WireMock runs with --enable-stub-cors , so a web app on another local port can call it. With for_app: \u003capi app\u003e , the active environment's API app points at the mock for the rest of the session. That covers the API tools, and the tests ForgeQE runs, which read FORGEQE_APP_\u003cAPP\u003e_URL . env.yaml itself is not changed."},{"t":"Lifetime","u":"docs/index.html#doc-docs-containers-lifetime","g":"User guide · Operations","h":[],"x":"Lifetime Services and mocks the agent starts are removed when the shell, forgeqe run , or forgeqe mcp ends, as are the workspace and browser containers ( forgeqe.kind workspace and browser ). The home volume stays. forgeqe services up keeps its services running after the command ends, until forgeqe services down . Container names are forgeqe-\u003cproject\u003e-\u003cservice\u003e . \u003cproject\u003e is a hash of the project folder, so two projects never share a container. Starting a service replaces its earlier container. Removing a container also removes the anonymous volumes its image declares (a database's data folder), so nothing is left on the machine. A container is never reused with old settings. Labels: each container carries forgeqe=1 , forgeqe.project , forgeqe.service and forgeqe.kind . down and status look only at this project's containers."},{"t":"Security","u":"docs/index.html#doc-docs-containers-security","g":"User guide · Operations","h":[],"x":"Security ForgeQE's agent reads text other people control: tickets, web pages, repositories. A container command built from that text could mount the whole disk or run privileged, so: No commands from the model. The agent names services that forgeqe.yaml declares, and ForgeQE builds the argument array ( docker run … ). It never uses a shell. Images, flags and mounts never come from a request. The same restrictions for every container: --security-opt no-new-privileges , --pids-limit 1024 , ports on 127.0.0.1, and read-only mounts. There is no setting to turn these off. Mounts are checked like uploads (except a mock's stubs folder, which ForgeQE writes itself and mounts read-only). The path is resolved with realpath and must be inside the project. A mount that is or holds a hidden file or folder ( .env , .git , .npmrc ), a file named like a key ( *.pem , id_rsa , llms.json ) or a link is refused. A container can send what it reads anywhere. Environment: The docker and podman programs see only the system settings and the variables they need to find their daemon ( DOCKER_HOST , DOCKER_CONTEXT , CONTAINER_HOST , …), plus the service's listed secrets. A container gets only its env and secrets . Logs and errors have secret values replaced with *** . Not in the agents' shell: docker , podman , nerdctl , docker-compose and podman-compose are denied in the shell of ForgeQE's agent and of Scribe. So the only way to start a container is these tools. Asked first: services up and mock_service ask the user before starting, as run_tests does."},{"t":"Scheduled monitoring with alerts","u":"docs/index.html#cap-monitoring","g":"User guide · Operations","h":[],"x":"Operations Scheduled monitoring with alerts Runs checks on a schedule and alerts Teams or email when one keeps failing, and again when it recovers. Ask it Check the login flow every 15 minutes and alert Teams What it needs Required A live model profile in llms.json (an API key or Microsoft Entra ID sign-in) Optional Alert channels: monitor.alerts.teams or monitor.alerts.email in forgeqe.yaml Tools monitor In detail"},{"t":"Monitoring","u":"docs/index.html#doc-how_to_use-9-monitoring","g":"User guide · Operations","h":[],"x":"Monitoring forgeqe monitor runs a set of checks on a schedule and alerts Microsoft Teams and email when one breaks. A check is any test case forgeqe suite takes (section 7): a YAML or Gherkin file, a folder, Jira keys or JQL, an Azure DevOps plan, TestRail, and so on. yaml Copy monitor: checks: [checks/smoke.yaml] every: 15m # 30s, 15m, 1h, 1h30m; at least 10s replay: verify # verify | trust | off parallel: 1 fail_after: 1 # failing rounds in a row before the first alert remind_every: 2h # repeat while it keeps failing; default: never keep: 100 # round folders kept write_back: false # post each round's results to the source system # out_dir: ./.forgeqe/reports/monitor # report_url: https://reports.example.com/monitor alerts: teams: webhook_env: TEAMS_WEBHOOK_URL email: host: smtp.office365.com # or SMTP_HOST port: 587 # STARTTLS; 465 is TLS from the start (secure: true) username_env: SMTP_USERNAME password_env: SMTP_PASSWORD # from: ForgeQE \u003cqa-bot@example.com\u003e to: [qa-team@example.com, oncall@example.com] bash Copy forgeqe monitor --test-alerts # send a sample alert through every channel forgeqe monitor # monitor.checks every monitor.every, until Ctrl+C forgeqe monitor checks/checkout.yaml --every 5m forgeqe monitor --once # one round, then exit (cron, scheduled pipelines) Each round runs the checks like a suite, without writing tests, and replays the flows from page memory (section 5). A flow that passed before costs one model call to confirm the expected results ( replay: verify ), or none ( replay: trust , which trusts the replay without checking). A new or changed flow falls back to the full agent. Rounds start every apart; a round that overruns is followed by the next one straight away. Alerts go out when something changes, not every round: A check that fails fail_after rounds in a row gets an alert. With fail_after: 2 a single flaky failure is never reported. While it keeps failing, nothing more is sent, unless remind_every is set. When it passes again, a recovery alert says how long it was down. A round that cannot run at all (a test system is down, a source is empty, the engine will not start) alerts as the check \"ForgeQE monitor\", and the other checks keep their state. All changes in one round go out as one message. Teams gets an Adaptive Card with each check, why it failed and at which step, a link to the test case, and an \"Open report\" button. Email gets the same as text and HTML, with the failing checks' last screenshots attached (up to five). For Teams, create an incoming webhook on the channel, or a Workflows flow with the trigger \"When a Teams webhook request is received\" and the action \"Post card in a chat or channel\"; both take the card as it is. Put the URL in TEAMS_WEBHOOK_URL . For email, any SMTP server works: Office 365 ( smtp.office365.com:587 , with SMTP AUTH allowed for the mailbox), Gmail with an app password, SendGrid, or a relay on your network (no username needed). The webhook URL and the SMTP password stay in the environment; if a send fails, the error never contains them. The terminal shows one block per round: text Copy Monitoring checks/smoke.yaml every 15m · replay verify · alerts: Teams, email to qa-team@example.com · Ctrl+C stops [14:15] ✗ 4/5 passing · 38s · 6.2K tokens ✗ SHOP-12 Checkout: failing since 14:15 The Pay button is missing on the payment page ↑ Alert sent: Teams, email Report .forgeqe/reports/monitor/20260929-141500/report.html Next round at 14:30 [14:30] ✗ 4/5 passing · 35s · 5.9K tokens ✗ SHOP-12 Checkout: failing since 14:15 (2 rounds, already alerted) Report .forgeqe/reports/monitor/20260929-143000/report.html Next round at 14:45 Files. Each round is a suite folder in .forgeqe/reports/monitor/\u003ctime\u003e/ ( report.html , junit.xml , suite.json , the runs, and alerts.json when it alerted), so the report's trends and flaky tests cover the rounds. Folders beyond keep are deleted. state.json in .forgeqe/reports/monitor/ remembers which checks are failing, since when, and when they were last alerted; delete it to start fresh. Set report_url to where you publish .forgeqe/reports/monitor/ and alerts link \u003creport_url\u003e/\u003cround\u003e/report.html ; without it they name the local file. Scheduling. Run forgeqe monitor in a long-lived session (tmux, a service, a container), or forgeqe monitor --once from cron or a scheduled pipeline. --once exits 0 when every check passed, 1 when any failed, and 2 when stopped. In a pipeline, cache .forgeqe/reports/monitor/state.json between runs; without it every run starts fresh, and a failure alerts every time. Only one monitor can use an out_dir at a time, so an overlapping cron run exits instead of racing. You can also ask ForgeQE's agent. In the shell, \"check the smoke cases once\" runs one round and shows it as a card, and \"monitor the smoke cases every 10 minutes\" starts a monitor in the background: you keep working, each round appears as a card, \"is anything failing?\" shows the state, and \"stop monitoring\" ends it. A background monitor lives as long as the shell (or forgeqe mcp ) and stops when it closes; forgeqe run refuses to start one, because it would stop when the command exits. While one is running, a one-off round on the same out_dir is refused rather than run twice. For monitoring that keeps going after you close the shell, \"monitor the smoke cases every 10 minutes and alert the QA channel in Teams, always on\" makes the agent set up monitor: in forgeqe.yaml , send a test alert, and tell you how to keep forgeqe monitor running (or add a scheduled pipeline)."},{"t":"Background jobs on a schedule","u":"docs/index.html#cap-jobs","g":"User guide · Operations","h":[],"x":"Operations Background jobs on a schedule Runs ForgeQE commands (suites, monitor rounds, regression packs, healing, pull-request tests, browser goals) on a schedule or once in the jobs service, apart from the conversation and after it closes, and watches an existing GitHub Actions or Azure DevOps pipeline (read-only). A failed pipeline run or pack run is investigated: the healing agent works on each failure on a local branch of its own (a fix for review, or an app bug), never pushing. Says how each job goes when asked, shows runs as they end, and sends failures, recoveries and findings to Teams or email. Ask it Run the release-2.3 pack every weekday at 2am in the background Watch the pipeline in the background and investigate failures How are my jobs doing? What it needs Optional A notification channel: notify.channels in forgeqe.yaml, each a Teams Workflows webhook (in an environment variable) or email Tools jobs In detail"},{"t":"The jobs service: scheduled and long jobs apart from the shell","u":"docs/index.html#doc-how_to_use-the-jobs-service-scheduled-and-long-jobs-apart-from-the-shell","g":"User guide · Operations","h":[],"x":"The jobs service: scheduled and long jobs apart from the shell forgeqe jobs runs ForgeQE commands on a schedule, or once, in a service of their own, so they keep going while you work on something else in the shell, or with the shell closed. Each run is its own forgeqe process with its own output and session log; you ask how a job is going at any time, and its failures and recoveries go to Teams. bash Copy forgeqe jobs add nightly-pack --cron \"0 2 * * 1-5\" -- pack run release-2.3 # weekdays at 02:00, this machine's time forgeqe jobs add smoke --every 30m -- suite checks/smoke.yaml forgeqe jobs add heal-login --now -- heal --focus login # once, now forgeqe jobs # every job: running or how its last run ended, and when it runs next forgeqe jobs status nightly-pack # its last runs, and the last lines of the latest forgeqe jobs logs nightly-pack --tail 100 forgeqe jobs run nightly-pack # run it now as well forgeqe jobs stop nightly-pack # stop the run that is going forgeqe jobs disable|enable|remove nightly-pack forgeqe jobs shutdown # stop the service; scheduled jobs wait until it starts again What a job runs. One ForgeQE command: suite , monitor , run , heal , pr-tests , pack run , pack triage or pipeline watch , with its arguments after -- . Nobody is there to answer a question while a job runs, so a run job is a browser run of the goal ( --direct ), and a pack run job carries --yes : adding the job is your approval, and the command you agree to shows it. It runs with the project's own forgeqe.yaml , model profile and approvals: a job cannot set --config , --profile or --yes , and nothing else is started (no shell, no other program). A monitor job runs one round each time it is due ( --once ), on the job's schedule; it sends its own monitor.alerts , so its job is quiet unless you add it with notices on. When. --every 15m (at least 1m), --cron \"0 2 * * 1-5\" (minute hour day month weekday, local time), or neither: it runs when asked, and add starts it at once. --now also runs a scheduled job straight away. A run missed while the service was down starts once when it is back. When several are due, the one that has waited longest goes first. How many. jobs.parallel in forgeqe.yaml (default 2) runs at once over all jobs, and never two runs of one job. A run past --timeout (default 6h, at most 24h) is stopped and marked timed out. The service. forgeqe jobs add and forgeqe jobs run start it when it is not running, as a process of its own that outlives the command and the shell; forgeqe jobs serve runs it in the foreground (for a container or a system service). It is one per project, on this machine, until you stop it or the machine restarts. It listens on 127.0.0.1 only, with a random token kept in your own ForgeQE folder ( ~/.forgeqe/jobs/ , readable by your user only, never in the project, which others may read), and refuses requests from web pages. A second service for the same project is refused. .forgeqe/jobs/ and .forgeqe/pipelines/ get their own .gitignore , so runs and logs are never committed. Files. .forgeqe/jobs/\u003cjob\u003e/job.json and, for each of its last 50 runs, runs/\u003crun\u003e/run.json and output.log ; .forgeqe/jobs/events.jsonl lists what happened; .forgeqe/jobs/service.log is the service's own output. A run that was going when the service stopped is marked interrupted. Watching a CI pipeline. forgeqe jobs add ci --every 10m -- pipeline watch --github org/app --workflow ci.yml --branch main (or --ado-project Shop --pipeline 12 ) looks at the pipeline's latest completed run each time, read-only: it starts, re-runs and changes nothing. A new failed run is triaged like a pack's (the JUnit or TRX files in its artifacts on GitHub, the Test Runs API on Azure DevOps; without results, the job and step that failed), in .forgeqe/reports/pipelines/ . The job fails while the latest run is failed, so the team hears once when the pipeline breaks and once when it is green again; a cancelled run changes nothing. forgeqe pipeline watch … on its own does one look. GitHub needs the gh CLI signed in; Azure DevOps the same sign-in as the rest of ForgeQE. Investigating failures. When a pipeline watch or pack run job fails, the failures that healing can decide (an element not found, an expected value that does not hold; not the environment, flaky tests or broken test code, and nothing while the environment is down) are investigated, at most 3 a run, jobs.parallel at once. Each goes to the healing agent in a git worktree of its own, on a new local branch forgeqe/investigate/\u003ctest\u003e-\u003ctime\u003e-\u003cn\u003e , from the commit the failing run tested when this clone has it (fetched when it can be, else HEAD , which the finding says). The agent re-runs the flow in the browser: when the flow works it heals the test, and the fix is committed on that branch for you to review; when the browser fails at the same step it is an app bug, and no branch is kept. Your checkout, its branch and its files are never touched; nothing is pushed or merged; the worktree is removed at the end. node_modules , .venv and venv from your checkout are linked into the worktree so the tests can run, and never committed. The failure is told at once ( job_failed ), the findings when they are in ( job_investigated ); forgeqe jobs status lists them, .forgeqe/jobs/\u003cjob\u003e/runs/\u003crun\u003e/investigations.json and investigate.log have the detail, and forgeqe investigate \u003crun folder\u003e runs an investigation by hand. --no-investigate turns it off for a job. From the shell. Ask ForgeQE's agent: \"run the release-2.3 pack every weekday at 2am in the background\" makes it propose the job, and ForgeQE asks you to agree to its exact command and schedule before adding it ( Add the job / Don't add it ). You keep working; when a job's run ends, a line says so in the conversation (\"Job nightly-pack failed: …\"), and \"how are my jobs?\" or \"show the end of the nightly-pack log\" get answers from the service. The agent adds a job only when you ask for one, and never one that runs anything but the"},{"t":"Your team's custom agents","u":"docs/index.html#cap-custom-agents","g":"User guide · Operations","h":[],"x":"Operations Your team's custom agents Hands a request to one of the team's custom agents: ForgeQE's agent configured for one job in .forgeqe/agents, held in code to the environments, tools and actions its approved version allows. It runs in a session of its own and answers with its reply; each run is kept in the agent's history. Also makes a new one with the user from what it is for: it picks what the agent needs from what the project has, says why, and saves a draft when the user agrees. Ask it Ask our custom agent checkout-guard to check the basket on QA Which custom agents do we have? Make an agent that checks the checkout on QA every night What it needs Required A live model profile in llms.json (an API key or Microsoft Entra ID sign-in) Limits A custom agent runs only a version a person approved (forgeqe agent approve), and does only what that version allows; it cannot hand work to another custom agent. ForgeQE's agent drafts and saves an agent only after the user agrees; it never approves one. Tools custom_agent request_approval In detail"},{"t":"Custom agents","u":"docs/index.html#doc-how_to_use-custom-agents","g":"User guide · Operations","h":[],"x":"Custom agents A custom agent is ForgeQE's agent configured by your team for one job, kept in the repository as .forgeqe/agents/\u003cid\u003e.yaml . It uses ForgeQE's own agents, capabilities, skills, knowledge and environments, and is held in code, on every tool call, to what its manifest allows: which environments and addresses, which capabilities, which agents it may start, which kinds of action (read, run, change, external) and which a person approves first. An environment named like production is never allowed. It has no shell, web fetch or web search, and connects no other system's MCP server. Writing tests and healing are not available to custom agents yet. yaml Copy id: checkout-guard name: Checkout guard agent version: 1.0.0 description: Watches the checkout on QA and explains what broke. instructions: Focus on the basket, payment and order confirmation. scope: agents: [engine, forgeqe-heal] capabilities: [browser-goals, regression-packs] environments: [qa] permissions: actions: [read, run] approve: [run] What runs is a version a person approved. Editing the manifest changes nothing that runs: the agent shows as changed, keeps running its approved version, and the change waits for approval. Approvals are kept, with every approval, disabling and rollback, in .forgeqe/agents/.releases/\u003cid\u003e , so the team reviews them with the code. bash Copy forgeqe agent list # each agent and its state: draft, active, changed, disabled, broken forgeqe agent check \u003cid\u003e # what it may reach, what its capabilities still need, what changed forgeqe agent try \u003cid\u003e \"request\" # the manifest as it is now: read and run only, every run asked first forgeqe agent approve \u003cid\u003e # a person at the terminal approves this exact version forgeqe agent run \u003cid\u003e \"request\" # its approved version forgeqe agent disable \u003cid\u003e | enable \u003cid\u003e # also on its page; several at once on Agents, Custom agents (Select agents) forgeqe agent rollback \u003cid\u003e \u003cversion\u003e # an earlier approved version runs again forgeqe agent history \u003cid\u003e # its versions and its runs, with every tool call and the policy's decision forgeqe agent export \u003cid\u003e --out a.jsonl # its whole record as JSON lines, for audit (also on its page: Download audit record) forgeqe agent run \u003cid\u003e \"request\" --unattended # as a schedule runs it: what it may not do alone waits for a person forgeqe agent approvals [\u003cid\u003e] # what agents running with nobody watching wait for; answer: approvals \u003cid\u003e \u003capproval\u003e allow | allow_run | deny A custom agent may be given anything ForgeQE's agent has: every capability, other systems' tools, the coding agent, jobs, ForgeQE's own commands and settings, the shell ( permissions.shell: true ), and production. What goes beyond its limits call by call (the coding agent, ForgeQE commands and settings, a shell command, a change in production) is approved by a person each time. In production, what a call does decides: a read goes ahead without asking; a run (a browser run, a test, an API call) is asked unless permissions.production: [run] says otherwise; every change is asked, on a schedule too, where it waits for a person and the team is told. A question about a read or a run offers Allow for the rest of this run (that tool, in that environment); a change is asked each time. The agent also asks you itself ( request_approval ) before a step there that could reach real customers, such as an order or a payment: it can add a question, never skip one. A tool ForgeQE adds later reaches custom agents at once, asking a person each call until it says what it does. permissions.trust lifts ForgeQE's own question where you choose: external lets it change other systems without asking, and a coding agent's tool ( write_test , heal_tests , write_api_tests ) lets it write and heal tests without asking. The tests a coding agent runs can reach any address, so before such a call ForgeQE looks in the test project's config and env files ( playwright.config.* , .env* , *.yaml and the like), its tests ( *.spec.ts , test_*.py , *Test.java , .feature files…) and the code in its test folders (page objects, fixtures, helpers), and asks after all when they name an address of an environment the agent does not have. An address built at run time from pieces is not seen. A change in production, ForgeQE's own commands and settings, and jobs are always asked. With nobody watching, a trusted tool still runs only when permissions.unattended lists it. An agent with a schedule ( every: 1d or cron: \"0 7 * * 1-5\" , and the request it is given) runs as a job of the jobs service once approved, always its approved version; disabling it pauses the job. With nobody watching, it does without asking only what permissions.unattended lists (kinds of action, or tools by name), and in production only reads, and runs if permissions.production lists them; anything else, and anything it judges should be a person's decision, waits for a person: the team's channels are told ( agent_waiting ), and the agent's page shows it with Allow, Deny and, for a read or a run, Allow for the rest of this run. No answer in four hours is a no. One run nobody watches of an agent goes at a time: a schedule that fires while the last run still waits does not start, and its history says so. runtime.max_tokens sets a budget per run: the run stops when it has used that many model tokens. When someone is watching ( forgeqe agent run in a terminal, a chat, the agent's page), the run asks first: carry on with as much again (each yes is in its history), or stop. A run nobody watches is never asked, and stops. Other systems' tools (Azure DevOps, Jira, GitHub…) come through ForgeQE with their names as \u003csystem\u003e_\u003ctool\u003e (a dot in a name becomes _ ; a name too long for MCP clients, or not a plain name, is left out). Every page of a server's tool list is read; a tool is read-only only when the server marks it readOnlyHint and not also destructiveHint ; a server's own requests (ping) are answered and never taken for an answer; and a refused sign-in says to c"},{"t":"Teams and email notifications","u":"docs/index.html#cap-notifications","g":"User guide · Operations","h":[],"x":"Operations Teams and email notifications Tells the team in Microsoft Teams channels or by email when a suite fails or passes, when a release readiness verdict is in, and when the domain evaluation falls below its gate, with the failing cases, their bugs, and links to the report and the CI build. Each channel picks its events; the agent also posts a summary to a channel when asked. Ask it Post the results to the QA channel Tell the release channel the verdict is NO-GO What it needs Required A notification channel: notify.channels in forgeqe.yaml, each a Teams Workflows webhook (in an environment variable) or email Limits Automatic notifications come from runs nobody is watching (forgeqe suite, forgeqe run, pipelines, the MCP server), not from the interactive shell, where the agent posts only when asked. Tools notify In detail"},{"t":"Notifications","u":"docs/index.html#doc-how_to_use-17-notifications","g":"User guide · Operations","h":[],"x":"Notifications ForgeQE tells the team in Microsoft Teams channels, or by email, when something they should know happens. Each channel picks its events: yaml Copy notify: report_url: https://reports.example.com/forgeqe # where .forgeqe/reports is published, so cards link to each report channels: qa: teams: { webhook_env: TEAMS_WEBHOOK_URL } on: [suite_failed, eval_failed] release: teams: { webhook_env: TEAMS_RELEASE_WEBHOOK } on: [release] leads: email: { host: smtp.office365.com, port: 587, username_env: SMTP_USERNAME, password_env: SMTP_PASSWORD, to: [qa-leads@example.com] } on: [suite_failed, release] Event When The card shows suite_failed A suite ends with a case that did not pass, or a test that did not Each failing case (up to 10) with its kind of failure, the test case and bug links, tests written, and the report and build suite_passed Every case passed The count, how long it took, where it ran release A release readiness verdict GO, GO WITH RISKS, or NO-GO, the counts, every blocker and risk, and the wiki page when published eval_failed forgeqe eval domain --min falls below its gate Coverage for each variant and invented ids job_failed A job of the jobs service fails or runs out of time, after passing or for the first time (not again while it keeps failing) The job, its command and schedule, how long it ran, its last lines of output, and where its output is job_recovered A job passes again after failing The same, for the run that passed job_done A job that runs only when asked ends The same, whether it passed or failed job_investigated The investigation of a job's failed run is done Each failure: a test out of date with its fix on a branch, an app bug, or not decided, with the agent's reasons agent_waiting A custom agent running with nobody watching waits for a person's approval What it wants to do and why, until when it waits, and how to answer evidence_drift forgeqe evidence drift --notify finds an agent changed since its baseline (a model, tool, document, check, its contract or judge), or trusted above what its evidence supports Each alert, with the runs it rests on (only channels that list it get it) A channel without on gets suite_failed , release , eval_failed , job_failed , job_recovered , job_investigated , and agent_waiting . Email adds the failure screenshots. A stopped suite is not announced. Monitoring keeps its own monitor.alerts , with the same cards. Events are sent from runs nobody is watching: forgeqe suite in a pipeline or on a schedule, forgeqe run , and the MCP server. In the shell, where people try things out, nothing is sent on its own; ask instead (\"post the results to the QA channel\", \"tell the release channel the verdict\"), and ForgeQE's agent posts a card with notify . Links: with report_url , cards open the report where the reports folder is published. In Azure Pipelines and GitHub Actions they also open the build, where the report is an artifact. Without either, the card names the report's path. Setting up a Teams channel: In the channel, open Workflows and choose Post to a channel when a webhook request is received , then copy the URL it gives you. Microsoft is retiring the older Office 365 \"Incoming Webhook\" connectors; Workflows webhooks take the same cards. The URL is the secret (anyone with it can post): keep it in the environment, the system's credential store ( forgeqe auth login TEAMS_WEBHOOK_URL ), or a pipeline secret, never in forgeqe.yaml . Create the workflow with a shared or service account: a workflow belongs to whoever made it and stops when they leave. Your tenant must allow the Workflows app. forgeqe notify test [channel] sends a test card to check it arrives."},{"t":"CI pipelines","u":"docs/index.html#cap-pipelines","g":"User guide · Operations","h":[],"x":"Operations CI pipelines Writes a GitHub Actions or Azure Pipelines workflow that runs ForgeQE, stores the secrets it needs, pushes a branch, and makes the pipeline green. Ask it Add a GitHub Actions workflow that runs tests/cases.yaml on every PR, and make it green What it needs Required git on PATH Required gh on PATH, for GitHub Actions; or az on PATH, for Azure Pipelines Tools push_branch set_ci_secret In detail"},{"t":"Pipelines","u":"docs/index.html#doc-how_to_use-8-pipelines","g":"User guide · Operations","h":[],"x":"Pipelines ForgeQE's agent writes, runs, and fixes GitHub Actions and Azure Pipelines. Run it in the repo (or pass --repo ) and ask: bash Copy forgeqe run \"Add a GitHub Actions workflow that runs the smoke cases in cases.yaml on every pull request\" forgeqe run \"Set up an Azure DevOps pipeline that runs test plan 12 every night and posts results back\" forgeqe run \"The ForgeQE workflow is failing, fix it\" What it does: Works out the platform from the git remote (github.com, or dev.azure.com / visualstudio.com) and reads the repo's existing CI, so it can add a job to it or write a new file. Writes the pipeline so it installs Bun and uv, runs and forgeqe setup , then forgeqe suite \u003csource...\u003e --no-code --plain --out \u003cdir\u003e , and publishes junit.xml and the report folder. On GitHub the suite adds a results table to the job summary. Validates it (actionlint when installed, otherwise by parsing the YAML) and commits it. Pushes to a new branch named forgeqe/ci-\u003ctopic\u003e with ForgeQE's push_branch tool. That tool refuses the default branch, main , and master , and never forces; git push itself is blocked for the agent. Merging stays with you. Stores the keys the pipeline needs (the model's key from llms.json , and ADO_PAT , JIRA_EMAIL and JIRA_API_TOKEN , or XRAY_CLIENT_ID and XRAY_CLIENT_SECRET ) with ForgeQE's set_ci_secret tool. The agent only names the variable; ForgeQE passes the value from its own environment to gh secret set (on stdin) or az pipelines variable (through the environment), and never shows it. A variable that is not set in ForgeQE's environment is reported, not guessed. Triggers the run with gh workflow run or az pipelines run , watches it, reads the logs of failed steps, fixes the pipeline (or the code), pushes again, and repeats until the run passes or code.max_attempts runs have failed. It reports the run link and the result. It needs gh logged in for GitHub, or az with the azure-devops extension logged in for Azure DevOps. Without them it still writes, validates, and commits the pipeline, then tells you the commands to run. Set llm.active to a live profile in the committed forgeqe.yaml . With a github_copilot profile the pipeline needs a GitHub token for Copilot in COPILOT_GITHUB_TOKEN (see In pipelines )."},{"t":"Data","u":"docs/index.html#area-data","g":"User guide","h":[],"x":"10 Data Databases: their schema, and SQL from plain language, checked before it runs"},{"t":"Ask a database in plain language","u":"docs/index.html#cap-databases","g":"User guide · Data","h":[],"x":"Data Ask a database in plain language Connects to the project's databases (PostgreSQL, MySQL and MariaDB, SQL Server and Azure SQL, Oracle, Snowflake, Redshift, CockroachDB, SQLite, DuckDB, and MongoDB) from a connection string or host and user, signing in with a password, Microsoft Entra ID or AWS IAM. Reads the schema through DB-GPT's connectors and turns questions into SQL that is checked before it runs: reads in a read-only session that is rolled back, writes only on a database marked writable, after you confirm them. Ask it Which customers in India have paid orders? Ask the orders database Show me the tables in the shop database Write the SQL for revenue per country last month and run it Check the connection to the reporting database What it needs Required A database under databases: in forgeqe.yaml or env.yaml: a connection string in an environment variable (url_env), or host, database, user and password_env; auth: azure or aws_iam for token sign-in Limits One statement at a time: SELECT (with CTEs and set operations), SHOW, DESCRIBE and EXPLAIN SELECT anywhere; INSERT, and UPDATE or DELETE with a WHERE clause, only on databases marked writable and after you confirm Never DDL (CREATE, ALTER, DROP, TRUNCATE), procedures, or functions that read files, sleep or reach other servers MongoDB is queried with find, aggregate, count and distinct (JSON operations); its test data is not made yet; other non-SQL stores are not supported Tools databases database_schema run_sql In detail"},{"t":"Databases","u":"docs/index.html#doc-how_to_use-databases","g":"User guide · Data","h":[],"x":"Databases ForgeQE's agent can read your databases and answer questions from them in plain language: \"which customers in India have paid orders?\", \"show me the tables in the shop database\", \"write the SQL for revenue per country and run it\". It reads the schema first (through DB-GPT 's connectors), writes SQL in the database's own dialect, runs it, and shows you the rows and the SQL. Supported: PostgreSQL, MySQL, MariaDB, SQL Server and Azure SQL, Oracle, Snowflake, Redshift, CockroachDB, SQLite, DuckDB, and MongoDB. The first use sets up the data engine (its own Python, in ~/.forgeqe/data ) and that database's driver. MongoDB ( engine: mongodb , or url_env with a mongodb:// or mongodb+srv:// string): the agent lists the collections with the fields of a sample of documents, and queries with find, aggregate, count and distinct, written as JSON. Operators that run code on the server or write elsewhere ( $where , $function , $accumulator , $out , $merge ) and system.* collections are refused; inserts, updates and deletes need writable: true and your confirmation, and an update or delete needs a filter. MongoDB has no read-only session, so connect as a read-only user. Test data is made for the SQL databases only. Add the databases under databases: in forgeqe.yaml, or under an environment in env.yaml (the active environment's entries win by name). No secret goes in either file: name the environment variables that hold them. yaml Copy databases: orders: # a whole connection string in a variable: URI, JDBC, or ADO.NET as Azure shows it url_env: ORDERS_DB_URL description: Orders written by the checkout app reporting: # or the parts engine: postgres # postgres, mysql, mariadb, mssql, oracle, snowflake, redshift, cockroachdb, sqlite, duckdb host: reporting.postgres.database.azure.com database: reporting user: qa_reader auth: azure # a Microsoft Entra ID token (az login, managed identity, service principal) billing: engine: mysql host: billing.abc123.eu-west-1.rds.amazonaws.com database: billing user: qa_iam auth: aws_iam # an RDS IAM token from your AWS profile; the region is read from the host fixtures: engine: postgres host: localhost port: 5432 database: test user: qa password_env: FIXTURES_DB_PASSWORD writable: true # allows confirmed INSERT, and UPDATE or DELETE with a WHERE clause Save a secret once with /auth ORDERS_DB_URL in the shell (or set it in the environment). In the shell, /db lists the databases, /db test \u003cname\u003e connects, /db tables \u003cname\u003e [words] shows the tables (or those whose names, comments or columns hold the words), /db refresh \u003cname\u003e reads the schema again, /db batches shows test data batches, and /db examples \u003cname\u003e the remembered queries. /db add sets one up with the agent: it asks how to connect, writes the entry, and has you save the secret with /auth , so no password goes through the chat. The same commands work outside the shell ( forgeqe db test orders ), and for scripts: bash Copy forgeqe db query orders \"SELECT status, COUNT(*) FROM orders GROUP BY status\" --json # one checked read forgeqe db query orders \"SELECT ...\" --dry-run # the database checks every name; no rows are read forgeqe db query orders \"SELECT * FROM orders\" --max-rows 1000 # rows to read (default 200, at most 5000) forgeqe db ask \"paid revenue per country last month\" --db orders --save queries/revenue.sql # the agent writes and validates it; stdout is only the SQL Drafts, files and examples. Ask for a query without running it (\"write the SQL for ...\") and the agent validates it with a dry run: the database resolves every table and column (and shows its plan where it can) without reading or writing anything. Ask it to keep a query and it saves a .sql file in the project with the question as a comment. When you confirm a result is right, the agent remembers the question and its SQL for that database ( .forgeqe/data/\u003cname\u003e/examples.jsonl ) and follows it for similar questions: your names for things and your filters. Other settings: schema (default: the user's), port , path (sqlite, duckdb), timeout_seconds (default 30), ssl ( verify , the default for Azure, AWS and GCP hosts; require ; disable ), ssl_ca (a CA file), region (aws_iam), sample_rows (0 to 5 sample rows per table shown to the model; default 0), mask (more column name patterns to hide), and options ( warehouse and role for Snowflake; odbc_driver for SQL Server with auth: azure , which needs Microsoft's ODBC Driver 18). What ForgeQE does with them: Reads run in a read-only session where the database has one (PostgreSQL, MySQL, Oracle, SQLite, DuckDB), with a statement timeout and a row cap (200 by default), and are rolled back. Use a read-only login all the same; SQL Server and Snowflake have no read-only session, so there the login is the limit. Every statement is checked first. One statement only: SELECT (with CTEs, joins and set operations), SHOW, DESCRIBE, or EXPLAIN of a SELECT. Refused: DDL, procedures, SELECT INTO, FOR UPDATE, MySQL's executable comments, and functions that read files, sleep, or reach other sessions or servers ( pg_read_file , LOAD_FILE , xp_cmdshell , OPENROWSET , UTL_HTTP , ...). Writes run only on a database marked writable: true , and only after you confirm the exact statement: one INSERT, or one UPDATE or DELETE with a WHERE clause. Masked values: columns named like passwords, tokens, hashes, card numbers, IBANs and tax ids show as ••• . What the model sees: table and column names, types, keys and comments, and the rows of the queries it runs. Passwords and tokens never reach it, its shell, or the tests. ForgeQE's agent cannot run database clients ( psql , mysql , sqlcmd , sqlplus , ...) in its shell. The schema is read once and kept in .forgeqe/data/\u003cname\u003e/catalog.json . ForgeQE checks a cheap fingerprint of the schema (its tables, columns and types) every few minutes and reads it again when a migration changed it, or after a week; /db refresh \u003cname\u003e reads it at once. For a large database the agent gets the table"},{"t":"Test data on demand","u":"docs/index.html#cap-test-data","g":"User guide · Data","h":[],"x":"Data Test data on demand Makes realistic test data from a spec that fits the database's schema (types, sizes, NOT NULL, unique keys, CHECK lists, enums), parents before children, the same rows for the same seed. Or takes a masked subset of a real database: the rows you pick and every row they need, with names, emails, phones, addresses and other personal columns replaced the same way every time. Shows a preview, writes CSV, JSON or SQL files for automation, or inserts the rows into a database marked writable after you confirm, as a batch that can be removed again. Specs live in the project, so tests and pipelines make the same data with forgeqe data gen. Every agent can ask the DB agent for the data it needs before it runs: the rows themselves, found with a read-only query or made from a spec, and the SQL or INSERT script that gets them again, kept for forgeqe data fetch. Ask it Generate test data: 20 customers with 1 to 3 orders each in the shop database Make test data for the orders tables as CSV files for our automation Insert 50 test users into the fixtures database Copy 100 paid orders from prod into fixtures as a masked subset Remove the test data batch we inserted yesterday Ask the DB agent for a customer with two paid orders for the checkout test What it needs Required A database under databases: in forgeqe.yaml or env.yaml: a connection string in an environment variable (url_env), or host, database, user and password_env; auth: azure or aws_iam for token sign-in Limits Inserts only into databases marked writable, after you confirm; removes only rows of a batch it inserted A subset reads its source in read-only sessions; its start condition is a filter of one table, and personal columns are found by name (mask: adds others) Simple CHECK constraints (a list of values, bounds) are read; other rules the database enforces may refuse rows, and then nothing is kept Tools generate_test_data test_data_batches request_test_data In detail"},{"t":"Test data","u":"docs/index.html#doc-how_to_use-test-data","g":"User guide · Data","h":[],"x":"Test data ForgeQE makes test data that fits your schema: ask \"generate 20 customers with 1 to 3 orders each in the shop database\", \"make the orders tables as CSV for our automation\", or \"insert 50 test users into fixtures\". The agent reads the schema, writes a spec, shows you a preview, and then writes files or inserts the rows. A spec is YAML you can keep in the project, so tests and pipelines make the same data again: yaml Copy database: fixtures # optional: else --db, or the only database seed: 42 # the same seed makes the same rows locale: en_IN # Faker's locale for names, addresses, phone numbers edge_cases: true # a few rows per table at the limits: longest text, unicode, nulls where allowed tables: customers: rows: 20 columns: email: {faker: email, unique: true} country: {one_of: [IN, UK, US], weights: [5, 3, 2]} orders: per: {customers: [1, 3]} # each customer gets 1 to 3 orders columns: status: {one_of: [NEW, PAID, SHIPPED]} total: {range: [5, 500], decimals: 2} placed_at: {date_between: [\"-90d\", \"today\"]} reference: {sequence: \"ORD-{n:05d}\"} order_items: per: {orders: [1, 4]} columns: product_id: {ref: products.id} # rows already in the database Rules: a plain value, faker (a Faker method, with args ), one_of (with weights ), range (with decimals ), date_between (dates, today , or -30d , -6m , +1y ), sequence ( {n} counts from 1), bothify ( # a digit, ? a letter), ref ( table.column ), null_ratio , and unique . Two rules keep a row consistent: {ref: products.price, via: product_id} takes the price of the very product the row points at, and {template: \"{first_name}.{last_name}@shop.test\"} builds a value from the row's other columns. Columns without a rule are filled from the schema: their type and size, NOT NULL, unique keys, a CHECK constraint's list of values or bounds, enum types, and their name ( email , phone , city , created_at , ...). Keys the database makes (serial, identity, auto-increment) are left to it, and foreign keys point at rows the spec makes or rows already in the database. A schema without declared foreign keys is matched by name ( orders.customer_id to customers ). From the command line, for automation and pipelines (no model): bash Copy forgeqe data gen test-data/shop.yaml # what it makes forgeqe data gen test-data/shop.yaml --format csv --out test-data/shop # csv, json or sql (INSERTs in the database's dialect) forgeqe data gen test-data/shop.yaml --insert --yes --json # into a writable database; prints the batch id forgeqe data batches --db fixtures forgeqe data clean 20261019-173810-9f5b5f --db fixtures --yes # removes exactly that batch, children first Inserts go only into a database marked writable: true , in one transaction: if the database refuses a row, none are kept. In the shell, ForgeQE asks first; on the command line, --yes is needed. Batches: every insert records the keys it made in .forgeqe/data/\u003cdatabase\u003e/batches/ , so clean removes those rows and nothing else. Files are written inside the project only, never to a hidden folder. Test data in test cases and suites. A test case in a YAML or JSON case file can bring its own data: the rows go in before the case runs and come out after it (and after the test ForgeQE writes for it), and the case's text uses their values: yaml Copy - id: CHECKOUT-7 title: A returning customer pays by card data: test-data/checkout.yaml # or {spec: ..., database: fixtures, keep: true} steps: - action: Log in as {{data.customers.0.email}} - action: Open order {{data.orders.0.reference}} and pay it expected: The order page shows Paid for {{data.customers.0.name}} {{data.\u003ctable\u003e.\u003crow\u003e.\u003ccolumn\u003e}} takes a value of the rows as inserted, keys the database made included ( {{data.customers.email}} is row 0). A whole suite can have data too: forgeqe suite cases.yaml --data test-data/shop.yaml ( --data-db NAME , --keep-data to leave it for a look), or data_spec when the agent runs cases. The data goes only into a database marked writable ; these hooks do not ask first, because the team wrote them. In automation scripts. The tests ForgeQE runs, and the tests it writes, read the inserted rows from the JSON file FORGEQE_DATA_FILE names. In a pipeline, make that file with the same spec: bash Copy forgeqe data gen test-data/checkout.yaml --insert --yes --json --export test-data/.run/checkout.json \u003e batch.json FORGEQE_DATA_FILE=test-data/.run/checkout.json npx playwright test forgeqe data clean \"$(jq -r .batch batch.json)\" --db fixtures --yes # in an always() step Scribe, ForgeQE's coding agent, writes tests that read their data from that file (its test-data skill), and can look at the databases and preview test data through ForgeQE's data tools; it never changes a database itself. A masked subset of real data. Instead of tables: , a spec can take real rows from another database: the rows you pick, every row they point at (and the rows those point at), and the child tables you name, with personal data replaced: yaml Copy database: fixtures # where the rows go (or --db); leave it out for files seed: 7 # the same seed masks the same way subset: from: prod_copy # a databases: entry, read in read-only sessions start: {table: orders, where: \"status = 'PAID' AND created_at \u003e= '2026-01-01'\", limit: 100} children: [order_items, payments] mask: # more columns to mask: a Faker method, or null to empty them customers.notes: paragraph keep: [customers.country] # columns whose names look personal but are not Masked by name: names (in tables of people: customers, users, employees, contacts, ...), emails, phones, addresses, post codes, cities, birth dates, national and tax ids, card numbers, IBANs, IP addresses, and passwords, hashes and tokens. Keys are never masked. The same everywhere: a value always becomes the same fake value, in every table and every run, so joins on a masked column still match; a masked value in a unique column stays unique. The start condition is a filter of the start table only: one condition, no UNION, and only tables of t"},{"t":"Data flows between systems","u":"docs/index.html#cap-data-flows","g":"User guide · Data","h":[],"x":"Data Data flows between systems Checks the data that passes between your systems' databases (the digital channel, CRM, billing, a warehouse), by batch ETL or in real time: each hop's rows arrived, complete, with every mapped column right after its rule, on time for its SLA, without duplicates. Follows one record end to end, says what a change to a table or column reaches downstream, and writes the flows from your mapping documents wherever they are, or suggests them from the schemas. Ask it Check that customers from the digital database reach the CRM correctly Trace customer 42 from digital through CRM to billing What does a change to digital.customers.email affect downstream? Write the data flows from mapping.xlsx Reconcile yesterday's orders between the ERP and the warehouse What it needs Required A database under databases: in forgeqe.yaml or env.yaml: a connection string in an environment variable (url_env), or host, database, user and password_env; auth: azure or aws_iam for token sign-in Limits Hops between SQL tables, Kafka topics, and APIs (a target by key, a source by its list; GET or POST only); MongoDB is not checked At most 200,000 source rows a flow per check, compared by key Reads only; flows are written into flows.yaml, and nothing in the databases changes Tools data_flows check_flows trace_record read_mapping_file In detail"},{"t":"Data flows","u":"docs/index.html#doc-how_to_use-data-flows","g":"User guide · Data","h":[],"x":"Data flows When your systems pass data to each other (a customer signs up in the digital channel's database, the CRM gets a contact, billing gets an account), ForgeQE checks each hop: ask \"check that customers reach the CRM correctly\", \"trace customer 42 from digital to billing\", or \"what does a change to digital.customers.email affect downstream?\". The hops are in flows.yaml , beside forgeqe.yaml. ForgeQE writes it from your mapping documents, wherever they are (a spreadsheet in the project, a Confluence page, a Jira or Azure DevOps item, a text file), or suggests flows from the schemas and a sample of keys when there are none; it shows you each flow and saves the ones you confirm. You can write it by hand too: yaml Copy flows: signup_to_crm: from: {db: digital, table: customers, key: id, changed: updated_at} to: {db: crm, table: contacts, key: source_customer_id} # the target column that holds the source key mode: realtime # it moves as it changes (API, queue, CDC) sla: 15m # a source row changed longer ago than this must have arrived extra: true # also report target rows with no source row columns: email: {to: email_address, rule: lower} full_name: {to: full_name, template: \"{first_name} {last_name}\"} country: {to: country_code, map: {India: IN, United Kingdom: GB}} orders_to_crm: from: {db: digital, table: orders, key: id} to: {db: crm, table: crm_orders, key: source_order_id} mode: batch # an ETL job copies it ready: {sql: \"SELECT MAX(finished_at) FROM etl_runs WHERE job = 'orders'\", wait: 10m} # wait for a run to finish since: 7d # only rows changed in the last week (needs from.changed) columns: total: {to: amount, rule: \"round(2)\"} status: {to: status_code, map: {PAID: P, NEW: N}} Rules: same (the default), lower , upper , trim , round(n) (half up, as databases round), date , number , string , map , template (from the source row's columns), and default (for a null). Kafka and APIs. A hop's side can also be a Kafka topic or an API: yaml Copy databases: events: engine: kafka host: broker1:9092,broker2:9092 user: qa-reader # SASL; leave out for a broker without sign-in password_env: KAFKA_PASSWORD options: {security_protocol: SASL_SSL, sasl_mechanism: SCRAM-SHA-512} yaml Copy flows: signup_events: from: {db: digital, table: customers, key: id, changed: updated_at} to: {db: events, topic: customer-created, key: customerId} # a field of the message; $key for the message key mode: realtime sla: 5m columns: email: {to: email, rule: lower} country: {to: address.country, map: {India: IN}} # nested fields by their dotted names contacts_api: from: {db: crm, table: contacts, key: contact_id} to: {api: crm_api, path: \"/contacts/{key}\", key: id} # an API app of the environment (kind: api) columns: email_address: email web_signups: from: {api: web_api, path: \"/signups?status=new\", key: id, items: data.items, next: links.next, changed: createdAt} to: {db: crm, table: contacts, key: contact_id} columns: email: email_address contacts_graphql: from: {db: digital, table: customers, key: id} to: api: crm_api path: /graphql method: POST # a lookup or a search: GET or POST only body: {query: \"query($id: ID!) { contact(id: $id) { id email } }\", variables: {id: \"{key}\"}} items: data.contact key: id columns: email: email Topics are read without a consumer group, so no offset is committed and no other consumer is affected; a read stops at the end of the topic as it was when the check began. A topic can be a source (its message time is when a record changed) or a target. /db test events checks the brokers, and /db tables events lists the topics with the fields of their latest messages. APIs are called at the base URL of the environment's API app, with the headers api.headers gives in forgeqe.yaml ( Authorization: Bearer ${CRM_API_TOKEN} ). As a target , an API answers for one key: {key} goes in its path ( /contacts/{key} ) or its body, one call a key; a 404 counts as missing; at most 500 keys a check, so narrow a large source with since: . As a source , it is a list endpoint (no {key} ), read page by page through the response's next link; changed names the field that says when a record changed, for since: and SLAs. A record can be followed ( flows trace , trace: ) from an API list too. items says where the records are in a response ( data.items ); without it, ForgeQE takes the response itself, or its first list among items , data , results , value , records and content . Calls are GET or POST (a lookup, a search, a GraphQL query): a check never changes data, so PUT, PATCH and DELETE are refused. Redirects are not followed, and a next link that leaves the API's host is refused, so the headers never reach another server. What a check reports for each flow: Missing: source rows whose key is not in the target. For a realtime flow, a row is late once its change is older than the SLA, and still in flight before that (not a failure). Wrong: rows where a mapped column does not hold the expected value, with the key, the source value, the value expected after the rule, and the value found. Numbers compare as numbers (12.5 and 12.50), date-times to the second, and trailing spaces of fixed-width text do not count. Duplicated: target keys that appear more than once; with extra: true , target rows with no source row. Batch: with ready , the check waits for a run of the job that finished after it began (up to wait ), and says so when it had to check the last run's rows. Following what a test case created. A case in a case file can follow the record its steps made through the flows; the case passes only when the record arrived, right, at every hop: yaml Copy - id: SIGNUP-3 title: A new customer reaches the CRM and billing steps: - action: Sign up with the email qa+{{unique}}@shop.test expected: The welcome page shows trace: from: digital.customers # or flows: [signup_to_crm, crm_to_billing] where: {email: \"qa+{{unique}}@shop.test\"} wait: 120 # seconds each hop may take {{unique}} is a token made for each run of the case, so"},{"t":"Automated tests","u":"docs/index.html#area-automated-tests","g":"User guide","h":[],"x":"11 Automated tests Write, heal, find, run, and stabilise tests in your repository"},{"t":"Turn a passed run into an automated test","u":"docs/index.html#cap-write-tests","g":"User guide · Automated tests","h":[],"x":"Automated tests Turn a passed run into an automated test Scribe, the coding agent, writes a test for a passed browser run in the repository's own framework, page objects, and helpers; ForgeQE runs it until it passes and a reviewer approves it. Ask it Write a Playwright test for that run in ../app What it needs Required The coding agent, Scribe: a live model profile (or code.model) and the agent runtime, which forgeqe setup installs You give a repository to write the test in (default: the working directory) Tools write_test run_test In detail"},{"t":"Tests","u":"docs/index.html#doc-how_to_use-6-tests","g":"User guide · Automated tests","h":[],"x":"Tests After a run passes, Scribe , ForgeQE's coding agent, turns it into a test in your repo. In the shell and forgeqe run , every passed run then becomes a test, and so does each test case that passes when you ask the shell to run test cases: in the current folder, or in the repo you give per run or in forgeqe.yaml . --no-code turns it off; you can still ask for a test (\"write a Playwright test for that run\"). bash Copy forgeqe run \"Log in and open the invoices page on staging.app.test\" --repo ../app yaml Copy code: repo: ../app # relative to forgeqe.yaml max_attempts: 5 # test runs before giving up test_timeout_seconds: 600 # per test run stall_after: 5 # stop the agent's turn when one command it runs has failed this many times replay: true # before the agent starts, run the steps as a Playwright script and hand over what worked live_browser: true # once a step fails, the agent looks at that page in a Playwright browser graph: true # the code graph: find page objects without reading files, and reuse what already locates an element # model: anthropic/claude-sonnet-4-5 # runtime: /path/to/agent-runtime # default: the runtime ForgeQE downloads What happens after the run passes: ForgeQE writes handoff.md into the run directory: the goal and result, how ForgeQE's browser was set up (browser and version, headless or headed, user agent, navigator.webdriver , launch switches, extra headers, language, time zone, viewport), every step in order with the value typed (secrets as process.env.NAME ) and the JavaScript the browser agent ran, the browser agent's own note before each group of steps (what it saw and why it acted, so a sign-in pop-up it closed or steps it redid after a banner covered the page read as such), each element's best locator and the others with their confidence %, and a short table of each visited page's other elements for assertions (weak locators under 30% are left out, and elements the steps already use are listed with the steps, so the handoff stays small; the full lists are in the page-memory files it points to). The agent's result and the final URL are marked as coming from one run on live data, to be checked as rules (the results load, the order holds, the fields have the right format), not copied as expected values. Pop-ups and banners the run met are handled wherever they appear (Playwright's locator handlers or the repository's helper), since the next run can show them at another moment or not at all; the agent's retries are not copied. A site can also serve different versions of a page to different visits (A/B tests, such as a classic search box or a free-text one), so the test handles every version the run or the agent saw, or waits for one control from either version. The handoff also lists the browser agent's checks : before it finishes, the browser agent records each result the goal asks to verify with the exact text the page showed ( record_check ; a text the page does not show is refused). They are saved in workflow.yaml under checks: . The test asserts these and nothing else. ForgeQE replays the run's steps as a Playwright script ( \u003crun\u003e/replay/flow.mjs ), in the run's browser setup (channel, headless or headed, user agent, language, time zone, viewport), with 10 seconds per step. Text is typed key by key, as the browser agent typed it, so search suggestions and other typing handlers fire. If the replay does not reach the run's final page, it runs again without Playwright's automation switches ( navigator.webdriver false, as in ForgeQE's browser). The handoff gets the result: which steps worked, and for each failed step, Playwright's reason (for example a dialog that intercepts the click), the page, the dialogs open on it, how many elements each of the element's other locators matched, and a screenshot and page snapshot. It also saves Playwright's page snapshot of each page the replay visited (roles, accessible names, and text, as the replay left the page; the last page once it stops changing), so Scribe takes locators for its steps and assertions from real pages instead of guessing them. On the last page it looks up each of the browser agent's checks and puts the Playwright locator that matched its text into the handoff (a heading or text match, the container it sits in when there are several, or the form field that holds it), so assertions come with a locator that worked. For a heading it also gives the part of the page the heading names (an element labelled by it, the section it heads, or the element right after it), with its locator and how many links and list items it holds, so a check such as \"an In the news section with at least one item\" is asserted inside that part, not on the heading alone. A step that fails while every step after it still works and the replay reaches the final page (a click that did nothing on the run, or a control this version of the page doesn't have) doesn't count as a failed replay: Scribe decides from the step whether the goal needs it and ports the rest as it is. When only the second launch got through, the handoff says the browser setup is the difference and which launch settings fix it. The first time, Playwright (about 13 MB) is downloaded into ~/.forgeqe/tools ; it drives the installed Chrome. A run that only opened a page still replays when it recorded checks, to look them up; with neither it skips this, and replay: false turns it off. Scribe first reads the repo (as a read-only agent: it cannot change files or use the live browser yet), while the replay runs when there is one, so the two overlap. What it learns (the framework, the command that runs one test, where page objects and config live, the conventions) is saved with page memory in scribe-notes.json , with the tests each job writes there. The next job in the same repo starts from those notes and that list instead of reading the repo again, and extends those tests' page objects when its flow overlaps; notes older than 30 days are read again. Scribe starts in the rep"},{"t":"How Scribe writes a test","u":"docs/index.html#doc-how_to_use-how-scribe-writes-a-test","g":"User guide · Automated tests","h":[],"x":"How Scribe writes a test Reuse before rebuild, extend before duplicate. Before Scribe writes anything, write_test measures what the repository's tests already cover of the run, from evidence rather than guesswork: each step and check the browser agent made on an element is matched, through page memory, to the page-object member that locates it, and the code graph says which tests reach that member (through the page methods they call, or a property they assert, such as Expect(practicePage.AjaxStatus) ). Steps on elements no page object locates yet are listed as not measured, since a test may do them its own way. Then: What it finds What happens One test covers every measured step and check Reuse : Scribe only finds the command that runs it, and changes nothing. If it fails, nothing is changed: you are asked whether to update it or write a new test. One test covers most (40% or more) Extend : Scribe adds only the missing steps and checks to that test, keeping every step and assertion it has; the reviewer rejects a removed or weakened assertion, or the steps copied into a new file Two or more tests cover most of it You choose : the evidence and the options (reuse, extend with how many steps it adds, a new test, cancel) Nothing covers much New : a new test, reusing the page objects and helpers as before A card says which it did and why ( Extending PracticeTests.Flow · covers 12 of 15; only 3 are missing ). Say how when you know (\"extend the login test\", \"write a separate test\", \"update it\") and ForgeQE's agent passes that on without asking. In every mode Scribe adds page-object members rather than changing what an existing member does for the other tests that use it. Copied code is measured. Before Scribe starts, ForgeQE notes the copies the repository already has (jscpd). When the test passes, its reviewer is told of each copy the job made since, such as a page-object method or a login written again in the test ( tests/checkout.spec.ts:12-30 copies existing code at pages/login.ts:8-26 ), and judges it by the test rules: a copy that should reuse what is there is an issue Scribe fixes. code.duplicates: false turns it off. The same flow asked again. When a session writes tests and you ask for a flow an earlier job already wrote a test for, ForgeQE runs that test first, before any browser run. If it passes in a real browser, that is the answer: no browser run, no Scribe, and no new test file, in the seconds the test takes ( ✓ Existing test passed · 19s · no browser run or new test needed ). If it fails, the flow runs in the browser and Scribe updates that test instead of writing another. ForgeQE's agent rewords a goal a little each time, so goals count as the same flow when they share their content words (endings, case, and phrasing aside) and the new goal keeps everything the earlier one checked; the same steps with a different final check, a shorter flow, or another site are a new flow. The agent also compares the earlier goal with your request and runs fresh when you ask for a check the earlier test does not have. Ask for \"a fresh run\" or \"a new test\" to skip the reuse. The run as a test would do it. The browser agent works through the same page a test meets, and the handoff tells Scribe everything it did on the way: A click on an element something covers (a confirmation after Add to cart, a pop-up) fails and names what covers it, so the agent closes it as a user would and that step is in the flow; the step after says what covered it, and \"What covered the page before a click\" lists them. The engine library would otherwise click the element from JavaScript, which a test cannot do. What it still does from a script (a click, typing to the page) is named on its step. Locators are the ones Playwright finds: no link role for an \u003ca\u003e without href (Chrome calls it a link, Playwright does not), icon-font characters kept out of names (a name with one becomes a role_pattern ), and a control that repeats on every row or card gets a locator scoped to its row ( #product-1 a.cart_quantity_delete ). An element in a frame says which frame, and the replay reaches it through frameLocator . Advertisements (Google's full-page ads, ad frames) are marked, left out of the replay, and \"Ads on these pages\" says to block the ad hosts in the test instead of closing them. A suite case runs from the state its test starts from: without the saved logins' sessions, so the agent signs in as the test will ( suite.restore_sessions: true keeps them; a login with no username and password to sign in with keeps its session, the only way in) and from the case's own start page (its URL, first step, description, or preconditions). When a run did start with saved sessions, \"State the run started with\" says so. When the flow cannot be reproduced. If ForgeQE's own replay of the run could not reach the run's final page and Scribe's test fails too, Scribe is told where the replay stopped and what was open on the page, since that is usually a pop-up, consent banner or ad the browser agent closed, or state its browser already had (signed in, items in a cart), and gets another attempt to handle it. The job stops, saying which replayed step failed and why, only when the test then fails the same way again, instead of spending its remaining attempts on a flow no script can repeat as recorded. Why a test failed. When ForgeQE's run of Scribe's test fails, the ✗ line and the next attempt say why in the test's own words: dotnet test's Error Message, pytest's E lines, or the error with its Expected and Received values (Playwright, Jest, JUnit), not the runner's summary line. Keeping Scribe's cost down. ForgeQE reads the repository's test setup itself before Scribe starts (stack, settings files and their browser values, the test id attribute, base classes, page objects and their methods, one test command) and hands it over, so Scribe does not discover it with dozens of file reads. Each attempt after the first starts a fresh session from a summary of "},{"t":"Heal failing tests","u":"docs/index.html#cap-heal-tests","g":"User guide · Automated tests","h":[],"x":"Automated tests Heal failing tests Runs a repository's tests and updates the ones the application has outgrown against the live app, or reports a real application bug instead. Ask it Heal the failing tests in ../app What it needs Required The coding agent, Scribe: a live model profile (or code.model) and the agent runtime, which forgeqe setup installs You give a repository with tests Tools heal_tests In detail"},{"t":"Fixing broken tests","u":"docs/index.html#doc-how_to_use-fixing-broken-tests","g":"User guide · Automated tests","h":[],"x":"Fixing broken tests When a redesign or a renamed button breaks tests, forgeqe heal fixes them, or tells you the app is what broke: bash Copy forgeqe heal --repo ../app # the command from code.test_command, or the agent finds it forgeqe heal \"npx playwright test tests/checkout\" --repo ../app forgeqe heal -- npx playwright test --project=chromium # everything after -- is the command yaml Copy code: repo: ../app test_command: npx playwright test # optional ForgeQE runs the command. If it passes, there is nothing to heal and no model is called. Scribe starts in the repo as a healing agent, with the failing output. For each failing test it reads the test and the page objects it uses, then re-runs the test's flow in the real browser with ForgeQE's browser_run (the goal in plain words, not the old selectors). If the browser run passes, the test is out of date. The agent reads that run's steps and locators with run_details , updates the test (in the page object when the locators live there), and runs it with run_test . If the browser run fails at the step where the test fails, the app is broken there. The test is left as it is and the failure is reported as an app bug. It never deletes or skips a test, loosens an assertion, or raises a timeout to make a test pass. ForgeQE runs each healed test's own command, then the whole command. A healed test that still fails goes back to the agent with the output, and so does any other failure left in the whole run, until everything passes or code.max_attempts rounds are used. Limits. A heal is capped by code.max_attempts , by each attempt's deadline (one browser run and two test runs), and by code.max_tokens for the whole job, as a coding job is. At each of these, and at a browser run's steps or time, it asks whether to carry on when someone can answer: in a terminal, in a chat, or on the Regression page for forgeqe pack heal (the question shows under the job's output, with Carry on and Stop here). At the deadline or the token budget the agent carries on in the same session, keeping what it worked out; after the last attempt, a yes gives it as many attempts again, from what it changed so far. Stop keeps its changes. No answer in 10 minutes on the page is a stop; --yes , a schedule or CI stops at the limit as before. text Copy ▸ ForgeQE runs the tests: npx playwright test ✗ Tests failed, exit 1 (41s) ▸ Scribe (azure/gpt-5.4) is healing the failing tests in app ⚙ read tests/pages/LoginPage.ts ▸ Browser: Sign in to staging.app.test and open the invoices page ✓ Task complete · 9 steps ⚙ edit tests/pages/LoginPage.ts ▸ ForgeQE runs: npx playwright test tests/login.spec.ts ✓ login › signs in passed in 6s ▸ ForgeQE runs the tests: npx playwright test ✗ Tests still fail, exit 1 (39s) ┃ ┃ ✗ Tests still failing 2/5 attempts · 2m 40s · 61.2K tokens · azure/gpt-5.4 ┃ ┃ ✓ login › signs in healed ┃ The Sign in button is now \"Log in\"; LoginPage uses the new label ┃ ! invoices › totals app bug ┃ The total column is empty; the browser run failed at the same step ┃ ┃ 1 failure is in the app, not the tests; the tests were left as they are. ┃ Command npx playwright test (exit 1 after 39s) ┃ Changed tests/pages/LoginPage.ts ┃ Report .forgeqe/reports/heal/20260929-101500/heal.md The report is heal.md and heal.json in .forgeqe/reports/heal/\u003ctime\u003e/ : each test's verdict and reason, the files changed, the browser runs (their folders sit next to the report), and the test output before and after. Exit codes: 0 the tests pass (or nothing needed healing), 1 some still fail, 2 stopped. In the shell or with forgeqe run , \"the checkout tests are failing after the redesign, fix them\" does the same through ForgeQE's agent."},{"t":"Migrate a test suite","u":"docs/index.html#cap-migrate-tests","g":"User guide · Automated tests","h":[],"x":"Automated tests Migrate a test suite Moves a repository's automated tests to another framework or language (Selenium, Cypress, Protractor, WebdriverIO, Puppeteer, TestCafe, Nightwatch, Robot Framework or Playwright to Playwright, Cypress, WebdriverIO or Selenium), after a plan that says first what is possible and what is not and that the user confirms; ForgeQE runs each migrated test itself, in a job if the user wants to keep working. Ask it Migrate the Selenium tests in tests/ to Playwright TypeScript What it needs Required The coding agent, Scribe: a live model profile (or code.model) and the agent runtime, which forgeqe setup installs You give a git repository with the tests to migrate Tools migrate_tests In detail"},{"t":"Migrating a test suite","u":"docs/index.html#doc-how_to_use-migrating-a-test-suite","g":"User guide · Automated tests","h":[],"x":"Migrating a test suite forgeqe migrate moves a test suite to another framework or language: Selenium (Java, C#, Python, JavaScript, Ruby), Selenide, Cypress, Protractor, WebdriverIO, Puppeteer, TestCafe, Nightwatch, Robot Framework or Playwright, to Playwright (TypeScript, JavaScript, Python, Java, C#), Cypress, WebdriverIO or Selenium (Python, Java, C#). forgeqe migrate targets lists them. It always starts with a plan, which writes nothing: bash Copy forgeqe migrate plan --from tests --to playwright-typescript # the source stack is detected forgeqe migrate plan --from e2e --stack protractor-typescript --to playwright-typescript --only \"checkout/**\" \\ --instructions \"Page objects go in pages/, one class per page\" forgeqe migrate confirm mig-20261103-101500-ab12 --accept-limits # a person at a terminal types the plan's id forgeqe migrate run mig-20261103-101500-ab12 # here, or as a job: forgeqe jobs add migrate-ui --now -- migrate run mig-20261103-101500-ab12 forgeqe migrate plan --git https://github.com/org/ui-tests.git --branch main --token-var GIT_TOKEN --to playwright-python forgeqe migrate plan --source-folder ~/projects/shop-ui-tests --to cypress-typescript forgeqe migrate verify mig-… [--workspace ws-…] # run every migrated test again (no model) forgeqe migrate fix mig-… --unit u006 --note \"The payment page opens in a new tab\" # the fixing agent on one file The tests can come from this project, a git repository (https or ssh; a token only by the name of the credential that holds it, passed to git through its environment and never in the URL, the command line or the clone's config), a folder anywhere on this computer, or files uploaded or pasted on the Migration page. A source outside the project is copied into a workspace of its own under ForgeQE's home and migrated there; the original is never changed. Links, hidden files and dependency folders are not copied. Plan. ForgeQE reads the source folder with no model: regular files only (a symbolic link is skipped and listed, never followed), test files, the support code they import, feature files, and test data. It orders the files so support code comes before the tests that use it, names each target file by the target's conventions ( test_login.py for pytest, LoginTest.java for JUnit, login.cy.ts for Cypress), and checks what is possible. What is possible. A blocker stops the plan: an unknown source stack, a mobile Appium suite to a browser framework, nothing to migrate, a target folder that already has files, no git repository, or the target's program (npx, python, mvn, dotnet) missing on this computer. A limit is something the target does differently: Cypress drives one tab and has no built-in iframes, Selenium cannot stub network calls, Protractor's Angular locators have no equivalent, a grid or cloud set-up is not carried over, BDD features need a BDD runner, code imported from outside the source folder is not migrated. Each limit names the files it affects; confirming accepts them all. Confirm. A person confirms the plan: at a terminal by typing its id, or on the Migration page of forgeqe web . The confirmation is kept under ForgeQE's home, by the plan's digest, so a plan file that comes with a repository is never already confirmed, and a plan edited after it was confirmed is refused. When the run starts, ForgeQE builds the plan again from the source and refuses it if the files, targets or limits changed. Run. The setup step makes the target folder a project of its own ( package.json and playwright.config.ts , requirements.txt and conftest.py , pom.xml , a .csproj ). Then a fresh agent session per file writes its target version. The agent may edit only the target folder. After each reply ForgeQE puts back any change outside it, removes symbolic links, and checks the file is at the planned path. For a test it also checks that every test of the source file is there, none is skipped or focused, and the assertions were kept. Then ForgeQE runs that one test with its own command, built from the plan ( npx playwright test login.spec.ts , python3 -m pytest test_login.py , mvn -q test -Dtest=LoginTest ) and started without a shell. A failure goes back to the agent with the output, up to code.max_attempts times. Validate and fix. When every file is done, ForgeQE runs each migrated test again with all files in place, and counts its tests and assertion lines against the source. Each test that fails goes to the fixing agent with its output, then runs again. From the page or with forgeqe migrate fix , you can send a test to the fixing agent yourself with a note. Report. A test is migrated only when ForgeQE's run of it passed. A support file is migrated when a test that uses it passed, and written otherwise. A file the agent could not do is failed or cannot be migrated , with why. The run is migrated (every test), partial or failed . A model error never counts as a migrated file. The source tests are never changed. migrate.md and result.json are in .forgeqe/migrations/\u003cplan\u003e/ , and the results are saved after each file, so running the plan again carries on and leaves finished files alone while they are unchanged. Exit codes of migrate run : 0 every test migrated, 1 some or none, 2 stopped. The Migration page of forgeqe web does all of this in four steps (source, target, instructions, review), then follows the job: its stages, every file, the tests with Fix, the source and target side by side, and the activity as it happens. In the shell, \"migrate our Selenium tests to Playwright\" makes the plan and shows it. You confirm it yourself, and ForgeQE's agent can then run it or add the job."},{"t":"Find and run existing tests","u":"docs/index.html#cap-find-run-tests","g":"User guide · Automated tests","h":[],"x":"Automated tests Find and run existing tests Finds the automated tests that match a feature, tags, ids, a folder, or a sprint, confirms the selection, and runs it once the user agrees, with a verdict per test. Ask it Run the checkout tests Run the tests added in sprint 12 What it needs Required The coding agent, Scribe: a live model profile (or code.model) and the agent runtime, which forgeqe setup installs You give a repository with tests Optional Azure DevOps or Jira, to pick tests by sprint: set up under sources: in forgeqe.yaml, or sign in with /auth Tools find_tests run_tests list_sprints In detail"},{"t":"Finding and running existing tests","u":"docs/index.html#doc-how_to_use-finding-and-running-existing-tests","g":"User guide · Automated tests","h":[],"x":"Finding and running existing tests Ask for the tests you want in your own words, in the shell or with forgeqe run : text Copy Run all test cases related to login Run the tests added this sprint Which tests cover checkout? Don't run them Run the tests added since 2026-09-01 Scribe starts read-only in the repo. It works out the test framework and decides each test by reading it: its body, and the page objects and helpers it calls. A test named guest can pay that signs in through LoginPage counts as a login test; a test that only mentions login in its name but checks something else does not. For a date range or sprint, it reads git history and selects the tests added in that range, including new test functions in files that already existed. It cannot change files or run anything. It gives two commands in the framework's own terms: one that lists exactly those tests ( playwright test --list , pytest --collect-only , dotnet test --list-tests , …) and one that runs them and writes JUnit XML or TRX results. ForgeQE runs the list command, and Scribe checks the listing is exactly its selection, fixing the command when it is not (up to three rounds). The list appears as a card: each test with its file and why it matches, the near misses that were left out, and the commands. Nothing runs until you say so. ForgeQE asks Run N tests? with Run and Don't run (in the shell a dialog; with forgeqe run a numbered prompt in the terminal). When you only asked which tests exist, it stops at the list. ForgeQE runs the tests itself and reads their results: a card with ✓ or ✗ for each test and the failure message, then the command, the result files, and the output. When tests fail, ForgeQE's agent offers to heal them with heal_tests . text Copy ┃ ▸ 3 tests found for \"tests related to login\" · Playwright (TypeScript) ┃ ┃ • login › signs in with a valid user ┃ tests/login.spec.ts · Fills the sign-in form and checks the account menu ┃ • login › rejects a wrong password ┃ tests/login.spec.ts · Submits a bad password and checks the error ┃ • checkout › guest can pay ┃ tests/checkout.spec.ts · Signs in through LoginPage before paying ┃ ┃ Left out: ┃ • signup › creates an account · Signs up; never signs in ┃ ┃ List npx playwright test --list --grep \"login|guest can pay\" (ForgeQE ran it: lists exactly these) ┃ Run npx playwright test --grep \"login|guest can pay\" --reporter=junit This sprint. For \"tests added this sprint\" or \"last sprint\", ForgeQE fetches the sprints from the Azure DevOps team ( sources.azure_devops , iterations of the project's default team unless you name one) and the Jira scrum boards ( sources.jira ), and asks which one you mean: the current, the three latest past, and the next sprint of each team or board, with their dates. The sprint's start and end dates become the range. Name a sprint (\"tests added in Sprint 41\") and it is matched without asking; give dates (\"since 2026-09-01\") and no sprint is fetched. The selection, the output, and the results are saved in .forgeqe/reports/tests/\u003ctime\u003e/ : selection.json , output.log , results.json , and the JUnit or TRX file. When a framework cannot write results (for example Jest without jest-junit ), the exit code decides and the card shows the end of the output instead. Through forgeqe mcp , ForgeQE cannot ask you, so run_tests returns the list and runs only when called again with confirmed: true ; the MCP client should ask you first."},{"t":"Reports for tests run outside ForgeQE","u":"docs/index.html#doc-how_to_use-reports-for-tests-run-outside-forgeqe","g":"User guide · Automated tests","h":[],"x":"Reports for tests run outside ForgeQE ForgeQE's HTML report is not only for runs it makes. run_tests and pr-tests --run write one, and so can any run in a terminal, an IDE's test runner, or CI: bash Copy forgeqe report test-results/junit.xml # from JUnit XML or TRX: any framework, after the run forgeqe report setup # a report after every Playwright or pytest run, automatically forgeqe report reads JUnit XML or TRX files, or the folder they are in (Playwright --reporter=junit , pytest --junitxml=results.xml , dotnet test --logger trx ), and exits 1 when a test failed. Each report is saved in \u003cout_dir\u003e/results/\u003ctime\u003e/ , so its Trends and Flaky tests pages cover the earlier runs, whoever ran them. JUnit carries one line per failure; a skipped test is counted, not shown. forgeqe report setup sets up the framework the repository uses: Playwright : it copies a reporter to .forgeqe/playwright-reporter.mjs (commit it) and prints the line to add to playwright.config : reporter: [[\"list\"], [\"./.forgeqe/playwright-reporter.mjs\"]] . Every run then ends with a report, from npx playwright test , the VS Code Playwright extension, or CI. With screenshot: \"only-on-failure\" and trace: \"retain-on-failure\" , each failure shows its screenshot, the full error and stack, and the trace. pytest : install ForgeQE in the environment that runs the tests. Its plugin loads by itself, from the terminal, VS Code's test explorer, or CI, in a folder with forgeqe.yaml or .forgeqe/ (elsewhere with pytest --forgeqe-report ). A test that passes when pytest-rerunfailures runs it again is reported as flaky. FORGEQE_REPORT=0 turns the reporters off for a run (ForgeQE's own run_tests does this, as it writes its own report). The reporters call forgeqe on PATH, or FORGEQE_BIN ; without it they keep the results file and print the command that builds the report. Screenshots and traces are copied into the report only from the working folder, never from a hidden folder or a file named like a key."},{"t":"Regression packs for a release","u":"docs/index.html#cap-regression-packs","g":"User guide · Automated tests","h":[],"x":"Automated tests Regression packs for a release Builds a regression pack from what goes into a release (an Azure DevOps sprint or work items, a commit range, pull requests, or changes read from any connected tool): the tests those changes can break, each with why, plus risk-area and smoke tests, and the changes no test covers. Runs it locally, on TestMu AI, or in a pipeline, compares each run with the last, and triages each failure: flaky, environment, broken test code, heal, or an AI browser re-run to tell a test the app outgrew from an app bug. Ask it Build a regression pack for sprint 12 and run it on TestMu Which tests should we run for the PRs merged this week? What it needs You give a repository with tests Optional Azure DevOps or Jira, to read a sprint's or release's work items: set up under sources: in forgeqe.yaml, or sign in with /auth Tools build_regression_pack run_regression_pack list_regression_packs regression_sources edit_regression_pack In detail"},{"t":"Regression packs for a release","u":"docs/index.html#doc-how_to_use-regression-packs-for-a-release","g":"User guide · Automated tests","h":[],"x":"Regression packs for a release A regression pack is the set of your repository's tests that a release's changes can break, saved under a name so you can run it again (here, on TestMu AI, or in a pipeline) and compare runs. Ask in your own words: text Copy Build a regression pack for sprint 12 and run it on TestMu Which tests should we run for the PRs merged this week? Build a pack for Jira fix version 2.4 and the commits since release/2.3 in ../shop-app Where the changes come from. Any mix of: an Azure DevOps sprint, area, epic or feature, or work item ids: their stories and bugs, the test cases each is tested by, and the files their linked pull requests changed; the commits between two refs of a repository ( from and to ): the product's repository, or the test repository's own; work items the commit messages name ( AB#123 , #123 , PAY-12 ) are read too; pull requests by number or URL, or the ones merged in the last N days (Azure DevOps or GitHub); anything ForgeQE's agent can read through its connected tools (a Jira release, GitHub issues, a Confluence release note): it reads the items and passes them in with their text and links. Why each test is in. A test can be in for more than one reason, and the card and \u003cname\u003e.md say each one: Reason Meaning linked it automates a test case that tests a changed work item ( .forgeqe/test-cases.json , or a case id in the test's attributes) test code changed the change is in the test repository, in code the test uses matches a change the work item's or pull request's words name what the test does: the elements it uses, its page, its name risk area the release touches an area with defects or failures before, and the test works there smoke the test is tagged smoke, so it is in every pack Gaps. Changes no test is in for are listed as not covered , each with the closest existing test and what it lacks, so you can extend that test rather than write a new one. The plan: what the release needs. Besides the tests to run, a pack is a plan in four groups, so what is ready is never mixed up with what someone still has to do: Group What it is Its script A Automated tests of the repository the pack found (the reasons above) checked only while its file is in the repository and still names the test; otherwise missing (moved, renamed or deleted since) B Manual test cases linked to a changed work item that no automated test runs run by a person C New automation changes no test covers: a test to write, or the closest one to extend to write D Exploratory the risk areas the release touches a session for a person Each entry has a priority, says where it came from ( found in the sources and the code, or suggested by ForgeQE or its agent) and keeps its evidence (the work item, pull request or defect history, with links). Change it in your words (\"take out the flaky ones\", \"add a manual check of the invoice PDF\", \"why is this in?\") or on the page: priority, take out and put back, move between B, C and D, add an entry. An automated test is added only when its file is in the test repository (no hidden file) and names the test, so the pack never claims a script it has not found. Every change is kept in the pack's history, with who made it. A pack starts as a draft ; save it (a name, the release) when it is right, then run it now or on a schedule (a job that runs forgeqe pack run ). Reuse it: Refresh : the same changes read again ( forgeqe pack build --refresh release-22 ); your edits and its runs stay. The next release : a new pack from new changes that keeps the edits of an earlier one ( --based-on release-22 ). Compare two releases: what each has ready, manual, to automate and exploratory, the tests and changes one has and the other not, and their last runs. --release \"Release 22\" names the release a pack is for. On the Regression page there are two tabs. On Agent you ask for a pack in a sentence (\"Create a regression pack for Release 22\"). The agent reads which sources the project is connected to (the test and product repositories, Azure DevOps, Jira, GitHub, test management, docs, a pipeline: the line at the top says which), says what a missing one would add and offers to connect it, and asks for the details it still needs, one or two at a time: the release, where its changes are, what to leave out, then whether to save it and run it now or on a schedule. Above the message box, The pack needs ticks off each detail as it is given (sources, release, changes, plan, saved, run); click a missing one to start your answer to it. The tab looks and works like the API page's Agent tab. None of the sources is required, and nothing runs until you say so. On Packs the packs are a table, newest first: each with how many entries are ready to run, scripts missing, manual, to automate and exploratory, and its last run. A row opens the pack's page: one strip of numbers (ready to run, script missing, the four groups, high priority, coverage of the release's changes, the last run; click one to show those entries), the plan as a table (all or one group, high priority, script missing, flaky or taken out, a search over tests, files and features, 50 rows a page with the highest priority first; a row opens its evidence), and beside it the release's changes, risk areas, runs and triage, history and a comparison with another release. Without a model set up, Choose the changes picks the sprint, commits or pull requests yourself. Running it. ForgeQE asks before it runs anything. This machine : ForgeQE builds one command for exactly the pack's tests, the way the repository already runs a test (for .NET, a --filter with each test, the settings an earlier job used, TRX results), runs it, and reads each result. A failed test runs once more; one that then passes is flaky. TestMu AI : the same command, with the variable FORGEQE_PW_WS_ENDPOINT set to TestMu AI's Playwright endpoint for the browser and platform in testmu.yaml (the access key goes in the variable, never in the command, and is removed from the "},{"t":"Flaky test detection and quarantine","u":"docs/index.html#cap-flaky-tests","g":"User guide · Automated tests","h":[],"x":"Automated tests Flaky test detection and quarantine Finds tests that flip between passing and failing in the repository's run history, with their likely cause, and quarantines them once the user agrees. Ask it Which tests are flaky? Quarantine the flaky login test What it needs You give a repository whose tests ForgeQE has run Tools flaky_tests quarantine_tests In detail"},{"t":"Flaky tests","u":"docs/index.html#doc-how_to_use-flaky-tests","g":"User guide · Automated tests","h":[],"x":"Flaky tests Every run_tests and pr-tests run keeps each test's result in .forgeqe/test-history.json in the repository (commit it to share the history, or keep it between CI runs as a cache). A test that fails runs once more in the same run, with the framework's own option (Playwright --last-failed , pytest --lf , Jest --onlyFailures ; otherwise the whole command again when the selection is small): when it then passes it is flaky , not failed, and the run does not fail because of it. \"Which tests are flaky?\" ( flaky_tests ) reads the history: each test's last results ( ✓✗✓↻✓ , where ↻ means it passed only when run again), its pass rate, a flakiness score (passes on retry plus pairs of flip-flops in the last 20 runs), and the likely cause from its failure messages, with an example: Cause From messages like Timing timeouts, waiting for an element, detached or stale elements An overlay another element intercepts the click, the element is covered or not visible Data expected one value, received another Network net::ERR_… , resets, 5xx responses Environment the browser closed or crashed, the server was not ready A test that only fails is broken, not flaky. Quarantine keeps a flaky test running, so its history goes on, but its failures stop failing the run and CI ( pr-tests --run exits 0 when only quarantined tests fail); no test code changes. A quarantined test that passes 5 runs in a row is offered for release. The agent offers quarantine_tests (it asks you first) and heal_tests to fix the cause. yaml Copy flaky: retries: 1 # runs of a failed test in the same run (0 to 3) quarantine: suggest # suggest (the agent asks), auto (ForgeQE quarantines), or off (history only) flaky_after: 2 # flakiness score from which a test counts as flaky"},{"t":"Pull requests","u":"docs/index.html#area-pull-requests","g":"User guide","h":[],"x":"12 Pull requests Reviews, impact, and the tests a change can break"},{"t":"Review pull requests","u":"docs/index.html#cap-pr-review","g":"User guide · Pull requests","h":[],"x":"Pull requests Review pull requests Reviews an Azure DevOps or GitHub pull request from the local clone for bugs, security, requirements, and tests, and posts the review once the user agrees. Ask it Review PR 42 and focus on error handling What it needs Required The coding agent, Scribe: a live model profile (or code.model) and the agent runtime, which forgeqe setup installs You give a local clone of the repository Required Azure DevOps, for Azure DevOps pull requests: set up under sources: in forgeqe.yaml, or sign in with /auth; or gh on PATH, for GitHub pull requests Tools review_pull_request post_pr_review In detail"},{"t":"Reviewing pull requests","u":"docs/index.html#doc-how_to_use-reviewing-pull-requests","g":"User guide · Pull requests","h":[],"x":"Reviewing pull requests Ask for a review with the pull request's link or its number in the repo you are in: text Copy Review PR 42 Review https://dev.azure.com/acme/Shop/_git/web/pullrequest/42 and focus on error handling Review my open pull requests ForgeQE reads the pull request: title, description, source and target branch, and the linked work items with their acceptance criteria (Azure DevOps, through its REST API with sources.azure_devops ), or the linked issues (GitHub, through gh , which must be signed in with gh auth login ). It fetches both branches from your clone's remote and checks the pull request's head out in a temporary worktree. Your branch, your working tree, and your uncommitted changes are not touched, and the worktree and fetched refs are removed afterwards. The working directory (or repo ) must be a clone of the pull request's repository. The reviewer's skills come from that clone and your own skill folders, never from the pull request, so a skill the pull request adds cannot steer its own review. Scribe reviews the diff read-only, reading the code around each change: bugs, security, what the linked work items ask for, missing tests, performance, and compatibility. Each finding has a severity (blocker, major, minor, nit), the file and line, the problem, and a suggestion. code.review_profile picks a cheaper model for it, as for test reviews. Before it starts, ForgeQE's copy-paste check ( jscpd , installed with ForgeQE) compares the pull request's head with the merge base and lists the code the change copies, from code already there or within itself (5 lines and 50 tokens or more). Scribe gets that list as measured evidence and raises a finding only where the copies must stay the same; review.md lists them under Copied code . The check uses ForgeQE's own settings, never the repository's .jscpd.json , and leaves out hidden files, dependencies and build output. code.duplicates: false turns it off; without jscpd's binary for your machine it is skipped. The findings appear as a card, and are saved in .forgeqe/reports/reviews/\u003ctime\u003e/ as review.md and review.json . Nothing is posted yet. To post, say so. ForgeQE asks Post the review? with Post review and Don't post . Findings on a changed line become comments on that line; the rest go in one summary comment with the verdict. On GitHub this is one review with event COMMENT : ForgeQE never approves, requests changes, or votes in your name. If the pull request got new commits after the review, posting is refused; review it again. Through forgeqe mcp , post_pr_review posts only when called again with confirmed: true ; the MCP client should ask you first."},{"t":"Pull request impact and test selection","u":"docs/index.html#cap-pr-impact","g":"User guide · Pull requests","h":[],"x":"Pull requests Pull request impact and test selection Works out which product areas, pages, requirements, and tests a pull request touches, picks the tests it can break, runs them, and posts the impact or results on the pull request once the user agrees. Ask it What does PR 42 impact? Run the tests PR 42 can break What it needs You give a local clone of the repository Required Azure DevOps, for Azure DevOps pull requests and their linked work items: set up under sources: in forgeqe.yaml, or sign in with /auth; or gh on PATH, for GitHub pull requests Tools analyze_pr_impact select_pr_tests post_pr_test_results comment_on_pr In detail"},{"t":"What a pull request impacts in the product","u":"docs/index.html#doc-how_to_use-what-a-pull-request-impacts-in-the-product","g":"User guide · Pull requests","h":[],"x":"What a pull request impacts in the product \"What does PR 57 impact?\" (or analyze_pr_impact ) says which parts of the product a pull request touches and what to test, also when the product's code is in another repository than the tests. Run it from the automation repository; give product_repo (a local clone of the product) when you have one, or just the pull request's link. Reading the pull request: from a clone of the product repository (its diff, and its imports, so a change to a shared component counts for every page that uses it), or, without one, through the GitHub ( gh pr diff ) or Azure DevOps API (the changed files and their contents). Work items: the ones the pull request is linked to, up through feature and epic, with their Area Paths. Pages: the test ids, ids, labels, placeholders, button and link texts, and routes in the changed code, matched against page memory (every element ForgeQE met on each page of the application). A changed data-testid=\"submit-order\" leads to every page that shows it; a changed route to the pages on that path; with a clone, a changed shared component to the page files that import it, then to their routes. Tests: in the automation repository, the tests that visit those pages (by path, page title, or a changed selector they use, directly or through a page object), the test cases they automate, and the stories those test cases test. Manual tests: the test cases of the impacted stories that no automated test covers yet. ForgeQE's agent writes the impact report from this: the areas with their evidence and a risk, side effects the diff suggests, the automated and manual tests to run, and the areas with no test; comment_on_pr posts it on the pull request after you agree. Page memory is what ties code to pages, so the more of the application ForgeQE has run, the more it can tie; changed UI files it cannot tie to a page are listed. Backend-only changes are tied through their work items and the agent's reading of the diff."},{"t":"Tests for a pull request","u":"docs/index.html#doc-how_to_use-tests-for-a-pull-request","g":"User guide · Pull requests","h":[],"x":"Tests for a pull request \"Run the tests for PR 42\" (or select_pr_tests ) picks the automated tests a pull request can break, so only those run: the test files it changes; the tests that import a changed file, following imports through page objects and helpers (JavaScript, TypeScript, Python); the tests that name a changed class or page object (every language, C# and Java included); the tests mapped in .forgeqe/test-cases.json to the test cases of the work items the pull request is linked to (Azure DevOps \"Tested By\"). Each test comes with why it was picked, and the changed files no test reaches are listed as a coverage gap. With a model, Scribe checks the candidates by reading the tests, adds tests that drive the changed behaviour through the UI, and gives the exact list and run commands; run_tests then runs them after you agree, and post_pr_test_results puts the results on the pull request (it asks first). The tests run from your working tree: check out the pull request's branch to run its versions of the tests. In CI, without a model: bash Copy forgeqe pr-tests --base origin/main --run # exit 0: passed or nothing affected; 1: a test failed forgeqe pr-tests 42 --run --post # and post the results on pull request 42 Without --agent , the impacted files run as they are; this builds the command for Playwright and pytest projects (for other frameworks add --agent , or run the listed files)."},{"t":"API","u":"docs/index.html#area-api","g":"User guide","h":[],"x":"13 API Contracts and end-to-end scenarios, without a browser"},{"t":"API and contract testing","u":"docs/index.html#cap-api-testing","g":"User guide · API","h":[],"x":"API API and contract testing Builds API contracts (status, schema, key fields) from the calls a browser run saw or from an API description (OpenAPI, Swagger, WSDL, GraphQL, .proto, gRPC reflection), and end-to-end API scenarios from runs, descriptions, test cases, or plain English. Runs them straight against the API without a browser, or writes them as tests in the repository. REST, GraphQL, SOAP, and gRPC. Ask it Turn the last run's API calls into tests Test the API in openapi.yaml Write API scenario tests for the order lifecycle Import our Postman collection and send its calls Add these cURL calls to the shop API What it needs Optional The coding agent, Scribe: a live model profile (or code.model) and the agent runtime, which forgeqe setup installs Limits Functional API testing, not load or stress testing. Tools api_contracts run_api_contracts api_scenarios run_api_scenarios write_api_tests api_new_set api_add_calls api_import_collection In detail"},{"t":"API and contract tests","u":"docs/index.html#doc-how_to_use-api-and-contract-tests","g":"User guide · API","h":[],"x":"API and contract tests ForgeQE tests APIs directly too: REST, GraphQL, SOAP, and gRPC. API tests check the same logic as UI tests in a fraction of the time, and they do not break when the page changes. Contracts come from two places: A browser run. Every browser run records the application's own API calls (XHR, fetch, event streams) in network.json in the run folder: method, URL, status, timing, and the request and response bodies when they are JSON, XML, or text. Secrets never reach the file: Authorization , cookies, and API key headers are dropped (only the kind of auth is kept, e.g. bearer), and fields named like a password, token, key, session, or card number are redacted in bodies and query strings. Analytics and monitoring calls are left out. \"Turn the last run's API calls into tests\" ( api_contracts from run ) groups the calls into operations: one per method and path, with ids in paths turned into {id} ( GET /api/orders/{id} ), GraphQL by operation name, SOAP by action, gRPC-web by method. Several calls to one operation make a better contract: a field in every answer is required, a value that differs between calls is not pinned. No model is used. An API description, by link or file: OpenAPI 3 or Swagger 2 (JSON or YAML, or the Swagger UI page, which ForgeQE looks behind for the document), WSDL for SOAP, a GraphQL endpoint (read by introspection) or an SDL or introspection file, .proto files, or grpc://host:port for a gRPC server with reflection (through grpcurl ). Each operation gets an example call from the description's examples; values it gives no example for are made up and the contract is marked as needing real values. Each contract has one example call and what its answer must have: the status , the content type , the body's schema , and key fields (ids, statuses, names, totals: present, with their type; a value only where it does not change between calls, like a status). GraphQL answers must have no errors ; SOAP answers no Fault and the expected elements; gRPC calls the OK status. Contract sets are saved in .forgeqe/reports/api/\u003cid\u003e/ : contracts.json (edit the examples freely, e.g. to give real ids) and api.md . Then: Run them now ( run_api_contracts , or forgeqe api run ): ForgeQE makes each call and checks the answer, without a browser or a model. Calls that change data (POST, PUT, PATCH, DELETE, mutations, SOAP and gRPC calls not named like reads) are left out unless you allow them, on a test environment; the agent asks first. Calls with made-up values are skipped until you give real ones. Results go to results.json and junit.xml , with report.html (each contract a case, its checks the steps, with what the API answered) and suite.json beside them; a 401 or 403 says which header the call needs. Write them as tests ( write_api_tests , or forgeqe api tests ): Scribe writes them in the repository's own framework and HTTP client (Playwright's request fixture, pytest with requests, REST Assured, RestSharp or HttpClient, supertest...) with the base URL from configuration and credentials from environment variables, and ForgeQE runs them until they pass. Credentials for API calls go in forgeqe.yaml , as references to environment variables; the values are sent, never stored or shown to a model: yaml Copy api: capture: true # record the application's API calls in every browser run (default) base_url: https://staging.shop.example # where contracts run when not where they were recorded or described headers: Authorization: Bearer ${API_TOKEN} X-Tenant: ${API_TENANT} third_party: false # keep calls to other sites than the page's (sign-in providers, CDNs) timeout_seconds: 30 bash Copy forgeqe api contracts --spec https://petstore3.swagger.io/api/v3/openapi.json forgeqe api contracts --run # the latest browser run's API calls forgeqe api run --base-url https://qa.shop.example # exit 1 when a contract fails: a CI gate forgeqe api tests --repo ../app # Scribe writes them as tests The Agent tab of the API tests page is a conversation: paste a link (an API description, a Postman collection, the docs), cURL commands, or tell it about the API in your words, and attach a file (a Postman collection is imported at once; an API description is kept in .forgeqe/specs/ for the agent to read). The agent makes the API and its calls in folders, as Postman would ( api_new_set , api_add_calls , api_import_collection , api_contracts ), sends them, and says what it found; each API it made shows as a card to open on the Workbench tab. It never puts a credential in a call: you set the API's sign-in on the Workbench. Postman collections (v2.0 and v2.1) come in from Add an API or the Agent tab, and go out with Export as a Postman collection : requests become calls in their folders, a saved example's status what each call must answer; only requests to the collection's own address are kept, and credentials (headers, secret variables, auth values) never are. An exported collection has a test of what each call must answer and {{variables}} where credentials go. On the API tests page's Workbench tab ( forgeqe web ), it works like Postman, with an agent beside it. The APIs are on the left, each with its calls (contracts) and flows (scenarios). Open a call to see and change its request (method, path, params, headers, a JSON body), Send it and see what came back (body, headers, the checks that passed or failed), Save it, and set what it must answer (the status, the statuses that also pass, fields with their type or value), or take it from a right answer with Use as what it must answer . Pick the environment from env.yaml at the top: calls go to its API app's address, and Run runs every call and then every flow there ( forgeqe api run-all ). A call that changes data asks first: Send it once , or Always on that environment (remembered for the API, never for an environment named like production). Sign in once per API: a bearer token, an API key in a header, or a user name and password; the value you type goes to the cred"},{"t":"End-to-end API scenarios","u":"docs/index.html#doc-how_to_use-end-to-end-api-scenarios","g":"User guide · API","h":[],"x":"End-to-end API scenarios A scenario is API calls in order, where later calls use values earlier answers gave: create a cart, add an item to {{cartId}} , place the order, read {{orderId}} . Each step has its own checks (status, schema, key fields). {{$unique}} is new on every run, for emails, usernames, and references that must not clash; {{$uuid}} , {{$now}} , and {{$randomInt}} are there too. Scenarios are saved in the contract set's contracts.json (edit them freely) and listed in api.md . There are four ways to make them ( api_scenarios ): From How Model A browser run ( --run ) The calls the application made, in order. A value an answer gave (an order id) that a later request sends, in its path, query, or body, becomes a variable: saved from that answer, used in that request. A GET made again (polling) is kept once. Emails and usernames sent to sign-up endpoints get {{$unique}} . The UI flow becomes the same flow at the API level. no An API description ( --spec , or a saved set) For each resource with an item path ( /pets and /pets/{petId} ): its lifecycle (create, read, update, read, delete, then read gives 404), browsing (the list, then its first item), the description's OpenAPI links , and negative cases : an id that does not exist gives 404, no credentials give 401 or 403, an empty body gives 400 or 422. The id comes from the links, else the field named like the path parameter, else id . no Test cases ( --cases ado:2238,jira:SHOP-12 ) One scenario per test case, planned by the model against the set's operations: the calls, the data, the values to carry, and the case's expected results as checks. Cases with nothing to test are left out with the reason (the same rules as the test case check). The scenario keeps its test case. yes Plain English ( --text \"...\" ) or a story \"Create a user, log in, add two items, check out, verify the order total.\" Planned the same way. yes The planner only uses operations the set has: a step no operation does is listed as unmatched, never invented. Give it the API's operations with --spec (an OpenAPI or Swagger link or file) or a saved set; without a description, make contracts from a browser run first. Every plan is checked before it is saved (each operation exists, each variable is saved before it is used) and shown step by step; nothing runs until you run it. run_api_scenarios (or forgeqe api run-scenarios ) runs them against the API, without a browser or a model: each step in order, the values passed on, every step's checks. A failed step stops its scenario, and the scenario's cleanup steps (deleting what it created) run, those whose values exist. Scenarios that change data run only after you agree (in CI: --allow-writes ), on a test environment. Results go to scenario-results.json and scenarios-junit.xml , with report.html (each scenario a case, its calls the steps) and suite.json beside them. API runs count in the team report . On your existing API automation. write_api_tests with scenarios (or forgeqe api tests --scenarios ) has Scribe write each scenario as an end-to-end test in the repository, built on what is already there: It maps the repository's API layer first: clients, request helpers, auth and base URL fixtures, data builders, schemas. Each step calls the helper that already calls that operation; only operations without one get a new helper, in the same style. It reuses helpers, never tests: a scenario never runs another test as a step, and sets up its own data. A shared helper is only added to, never changed in a way its tests rely on. When Scribe changes one, ForgeQE also runs the tests that use it, and sends any failure back until both pass. A scenario test for a test case is named after it and recorded in .forgeqe/test-cases.json , and set as the Azure DevOps test case's Associated Automation when write-back is on. bash Copy forgeqe api scenarios --run # the latest browser run's flow, chained forgeqe api scenarios --spec https://shop.test/openapi.json # lifecycles, browsing, links, negative cases forgeqe api scenarios --cases ado:2238,ado:2239 --spec openapi.yaml forgeqe api scenarios --text \"create a user, add two items, check out, the total is the sum\" --spec openapi.yaml forgeqe api run-scenarios --allow-writes --base-url https://qa.shop.test # exit 1 when one fails forgeqe api tests --scenarios --repo ../api-tests # on the repo's existing helpers"},{"t":"Quality","u":"docs/index.html#area-quality","g":"User guide","h":[],"x":"14 Quality Accessibility, page performance, and visual changes"},{"t":"Accessibility and page performance","u":"docs/index.html#cap-accessibility-performance","g":"User guide · Quality","h":[],"x":"Quality Accessibility and page performance Checks every page a run visits against WCAG rules (axe-core) and measures its Core Web Vitals, against budgets, with trends over time per page. Ask it Is the checkout page accessible? Did page performance get worse this week? What it needs You give a browser run (from browser_run or run_test_cases); new runs need a live model Limits Per-page Core Web Vitals, not load testing under many users. Tools quality_report quality_trends In detail"},{"t":"Accessibility and performance budgets","u":"docs/index.html#doc-how_to_use-accessibility-and-performance-budgets","g":"User guide · Quality","h":[],"x":"Accessibility and performance budgets Every browser run checks each page it visits and times it, with no extra step: Accessibility: axe-core (installed with ForgeQE) runs the rules of the standard you choose on each page as the agent finds it. The report lists the rules that passed and each rule that failed , with its WCAG success criterion and level, its impact (critical, serious, moderate, minor), the elements, and how to fix it. Automated checks find a part of the WCAG problems (often 30–50%): they are a pre-check, not conformance, and a manual review still matters. quality.accessibility.engine: basic uses ForgeQE's own smaller set of checks instead. Performance: each page's Core Web Vitals, measured in the browser the agent drives: LCP (largest contentful paint), CLS (layout shift), INP (the slowest interaction the agent made), FCP , TTFB , load time, requests and transfer size. These are lab values from one visit, not field data from real users. A run fails on them only when a budget is exceeded . Without budgets they are reported and tracked, never failed. When a budget is exceeded, the run's steps still passed: forgeqe run exits 1, the browser run says budget_exceeded , a suite case counts as failed (a bug is filed when bugs are set up), and a test is still written for the flow. yaml Copy quality: accessibility: standard: wcag21aa # wcag2a, wcag21aa (default), wcag22aa, wcag21aaa, section508, en301549, best-practice best_practice: false # also axe-core's best-practice rules budgets: accessibility: # most violations per page by impact; unset impacts have no limit (or: accessibility: true for 0 critical, 0 serious) critical: 0 serious: 0 rules: [color-contrast, label] # must pass everywhere ignore: [region] # not counted performance: # or: performance: web-vitals (LCP 2.5s, CLS 0.1, INP 200ms, FCP 1.8s, TTFB 800ms) preset: web-vitals lcp_ms: 3000 load_ms: 5000 pages: # by path prefix; the longest match wins /search: { lcp_ms: 4000 } Over time: every run adds each page's violations and timings to .forgeqe/reports/quality-history.json (keep it between CI runs as a cache). \"Did accessibility regress?\" or \"is checkout getting slower?\" ( quality_trends , or forgeqe quality trends [page] ) shows each page's violations over the last runs, the rules that newly fail or were fixed since the previous run, and each timing against its usual value (the median of the last 10 runs; slower or faster only beyond noise). forgeqe quality [run] ( quality_report ) shows one run's WCAG results, timings and budgets. bash Copy forgeqe quality # the latest run: WCAG rules passed and failed, Core Web Vitals, budgets forgeqe quality trends shop.test # per page over time; exits 1 when a page got worse"},{"t":"Accessibility testing with personas","u":"docs/index.html#cap-accessibility-personas","g":"User guide · Quality","h":[],"x":"Quality Accessibility testing with personas A browser agent does a goal as a person with a disability would (a blind screen reader user, keyboard only, low vision, colour blind, cognitive, or the project's own personas) and records each barrier with its WCAG criterion and severity. Not functional testing. Ask it Act as a blind person and use the website to find accessibility issues Can a keyboard-only user check out? What it needs Required A live model profile in llms.json (an API key or Microsoft Entra ID sign-in) Limits A simulated persona and automated checks are a first pass, not a conformance claim or a test with real users. Tools accessibility_test accessibility_personas In detail"},{"t":"Accessibility testing with personas","u":"docs/index.html#doc-how_to_use-accessibility-testing-with-personas","g":"User guide · Quality","h":[],"x":"Accessibility testing with personas The accessibility agent does a goal on your site as a person with a disability would , and records each barrier that person meets. It is not functional testing: whether the feature works is not judged, only whether this person can perceive, operate and understand it. Ask the agent (\"act as a blind person and use the website to find accessibility issues\", \"can a keyboard-only user check out?\"), or from a terminal: bash Copy forgeqe a11y \"find running shoes and add a pair to the basket\" --persona blind,keyboard-only --url https://shop.test bash Copy forgeqe a11y personas Each persona is one browser run. The agent works the way the person does: Persona How the agent uses the page blind Screen reader: no screenshots. It reads the page only through the accessibility tree (headings, landmarks, links, form fields, each with its role, name and state) and what each key press puts in focus. Keyboard only. keyboard-only Sees the page, but has no mouse: Tab, Shift+Tab, arrows, Enter, Space, Escape. Each key press says what has focus and whether a focus indicator shows. low-vision The page zoomed to 200% (it reflows as at that zoom). colour-blind Chrome's deuteranopia emulation: the screenshots show the page as the person sees it. cognitive Plain language, clear errors, time limits, consistency. reduced-motion The browser asks for reduced motion. deaf Captions, transcripts, sound-only information. high-contrast Forced colours (a high contrast theme). For each persona the report ( .forgeqe/reports/accessibility/\u003ctime\u003e-\u003cgoal\u003e/accessibility.md ) says whether they reached the goal, each barrier with its severity (critical: stops them; serious; moderate; minor) and WCAG success criterion, and the automated rule checks (axe-core) of the pages they visited. The run folders keep the evidence: steps, screenshots, video when on. A run as a persona uses no page memory, site rulebook or skills, since those hold how to click through the site. Your own personas are .forgeqe/personas/\u003cid\u003e.yaml . Ask the agent to save one (\"add a persona: an older user with a hand tremor who zooms to 150%\": it shows the persona and asks first), or write the file: yaml Copy id: older-tremor name: Older user with a hand tremor description: 78, uses a laptop with a large font, finds small targets hard to hit and gives up on long forms. perception: sight # sight, or screen_reader (no screenshots, keyboard only) input: keyboard # any, or keyboard (the mouse actions are taken away) vision: none # none, blurred, reduced_contrast, achromatopsia, deuteranopia, protanopia, tritanopia zoom: 1.5 # 1 to 4 media: [reduced_motion] # reduced_motion, forced_colors, more_contrast, dark watch_for: - small click targets close together - forms that time out A persona file can come from the repository, so ForgeQE reads it strictly: only these keys, each setting from its list, no YAML aliases. Its text describes the person to the browser model; what the browser does comes only from the settings. A simulated persona is not a real user, and automated checks find only part of the problems: treat the result as a first pass, and confirm important barriers with people who use assistive technology."},{"t":"Visual comparison with baselines","u":"docs/index.html#cap-visual-comparison","g":"User guide · Quality","h":[],"x":"Quality Visual comparison with baselines Compares each page a run captures with its approved baseline and shows what changed; intended changes become the new baseline once the user agrees. Ask it What changed visually since the last run? Approve the new header What it needs You give a browser run (from browser_run or run_test_cases); new runs need a live model Tools visual_compare visual_approve In detail"},{"t":"Visual comparison","u":"docs/index.html#doc-how_to_use-visual-comparison","g":"User guide · Quality","h":[],"x":"Visual comparison Every browser run also captures each page it visits and compares it, pixel by pixel, with that page's approved baseline : Capture: the state the flow leaves each page in, with animations and transitions frozen, the text caret hidden, and the regions you mask hidden (their space kept), so a page compares on what changed, not on what moves. ForgeQE's own overlay is never in the picture. The viewport by default; full_page: true captures the whole page (up to 8000 px tall). Baselines: in .forgeqe/visual-baselines/ next to forgeqe.yaml (commit them to share), one per page, screen size and operating system, since fonts render differently. A page's first capture becomes its baseline ( auto_baseline: false turns that off), and baselines.json records which run each baseline came from and why. Compare: each page is same , changed (the share of pixels that differ, and a diff image with the changed pixels in red), or new . Anti-aliasing is ignored; threshold sets how different two colours must be to count. A taller or wider page counts its new area as changed. Budget: a run fails only when quality.budgets.visual is set and a page changes by more than that share of its pixels (a page can have its own limit). Without it, changes are reported, never failed. Approve: when a change is intended, \"approve the new home page\" ( visual_approve , or forgeqe visual approve [run] --page /home ) makes the run's capture the new baseline, after you agree. An unintended change is a visual defect. The report's Visual page shows the baseline, this run, and the difference side by side for every page, changed pages first; click any image to see it full size. yaml Copy quality: visual: mask: [\".clock\", \"#ad-slot\", \"[data-testid=carousel]\"] # hidden on every page pages: /news: { mask: [\".ticker\"], max_diff_percent: 5 } # by path prefix full_page: false threshold: 0.1 # colour difference that counts (0–1) auto_baseline: true budgets: visual: 0.5 # most a page may change, in percent of its pixels (or: visual: true for 0.1%) bash Copy forgeqe visual # the latest run's pages against their baselines forgeqe visual approve --page /home # make this run's /home the baseline (asks first; --yes to skip)"},{"t":"Defect intelligence: trends and prediction","u":"docs/index.html#cap-defect-intelligence","g":"User guide · Quality","h":[],"x":"Quality Defect intelligence: trends and prediction Groups failures into defects, keeps their history across suites (new, known, gone, back again), and gives defect trends and where a change is likely to cause defects, with the cases to run first. Ask it Which defects keep coming back? What can the changes since main break? What it needs You give suites run into one folder (suite.out_dir) Optional git on PATH, for predictions from the product's repository Limits Prediction is a heuristic from the saved suites and the change, not a trained model; its accuracy shows once suites have scored it. Tools defect_trends predict_defects In detail See Bugs for failures ."},{"t":"Defect trends and prediction","u":"docs/index.html#doc-how_to_use-defect-trends-and-prediction","g":"User guide · Quality","h":[],"x":"Defect trends and prediction forgeqe defects (or \"which defects keep coming back?\") reads the suites saved in suite.out_dir and their defect-history.json , and writes defect-trends.md next to them: how many defects are still there, gone, or came back after a fix; the time they took to go away; the most seen ones with their bugs; defects by area (a page or an API route, by its path without ids); defects per suite; and how often predictions were right. The report's Defects page shows the same under Across runs . forgeqe defects predict [--repo DIR] [--base REF] [--head REF] (or \"what can the changes since main break?\") says where a change is likely to cause defects. It reads the change between the merge base of base (default: the remote's default branch, else main or master ) and head in defects.product_repo (else the working directory). A change touches an area when it changes a file named after it ( server/cart.ts for /api/cart/:id ) or its diff mentions the route. Each touched area gets a score from what the saved suites know: Signal Score The diff mentions the area's route +3 A changed file is named after it +2 Each earlier defect there (three at most) +2 Defects there came back after a fix +2 A defect there is still open +1 Its cases failed in 20% (50%) of recent runs +1 (+2) 6 or more is high, 3 or more medium. It lists the cases that ended on the high and medium areas as the ones to run first, and the changed product code that no case reaches. It is a heuristic, not a trained model: each prediction is saved in defect-predictions.json , and the first suite after it scores it (did its defects fall in the areas rated medium or high; did the high areas get one), so forgeqe defects gives its accuracy. Release readiness uses the defects too: a regression on a case in scope blocks the release (NO-GO), and a new defect with no bug is a risk."},{"t":"Release","u":"docs/index.html#area-release","g":"User guide","h":[],"x":"15 Release Requirement coverage and a release verdict"},{"t":"Requirement coverage and release readiness","u":"docs/index.html#cap-release-readiness","g":"User guide · Release","h":[],"x":"Release Requirement coverage and release readiness Gives requirement coverage and a GO / GO WITH RISKS / NO-GO verdict for a sprint, area, epic, or stories, from test cases, results, bugs, and flaky tests; can publish it to the wiki. Ask it Are we ready to release? Coverage of sprint 12 What it needs Required Azure DevOps or Jira: set up under sources: in forgeqe.yaml, or sign in with /auth Tools release_readiness In detail"},{"t":"Requirement coverage and release readiness","u":"docs/index.html#doc-how_to_use-requirement-coverage-and-release-readiness","g":"User guide · Release","h":[],"x":"Requirement coverage and release readiness \"Are we ready to release sprint 12?\", \"coverage of epic 300\" (or release_readiness ) builds the coverage matrix for an Azure DevOps scope: a sprint ( current or a name), an area path, an epic or feature and every story under it, or story ids. Each story with the test cases that test it (\"Tested By\"), whether each is automated (Automation status, or .forgeqe/test-cases.json ), and its last result: the newest test point outcome in Azure DevOps, or, where no plan has run it, ForgeQE's own runs (suite reports, then the automated test's history). Gaps: stories with no test case, test cases nobody automated, cases that have not run. Open bugs in the scope and linked to its stories, by severity. Flaky and quarantined tests from the test history. The verdict: NO-GO when something blocks (open critical or high bugs past the limit, a story with a failing test case, the pass rate below the minimum), GO WITH RISKS when something is missing (stories without test cases, cases not run or blocked, flaky or quarantined tests, other open bugs), else GO; each with its reasons. The report is saved as readiness.md (and readiness.json ) under .forgeqe/reports/readiness/ , shown as a card, and published to the project wiki with publish: \"/Release readiness/Sprint 12\" after you agree. The agent can also build an Azure DevOps dashboard for it with create_ado_dashboard . yaml Copy release: max_critical: 0 # open severity-1 bugs allowed max_high: 0 # open severity-2 bugs allowed min_pass_rate: 95 # percent of executed test cases that must pass require_tests: true # a story without a test case is a risk"},{"t":"Reports you can share","u":"docs/index.html#cap-reports","g":"User guide · Release","h":[],"x":"Release Reports you can share Writes up what the Orchestrator found, such as open defects across projects, release status, or pipeline health, as a page with filters (project, state, priority, assignee, …), charts, and a sortable table, plus Markdown and CSV. Every table is built from evidence: the results of the tool calls the agent made, or a read-only query ForgeQE runs itself, listed on the page's Sources with each raw result kept beside the report. Ask it Create a release report for all projects Write up the open defects as a report I can share What it needs Required A live model profile in llms.json (an API key or Microsoft Entra ID sign-in) Limits Rows come only from tool results in the session or a query ForgeQE runs; the agent writes only the summary, which is not checked figure by figure. A WIQL query reads up to 1000 work items; the page says when a query matched more. The page is not published anywhere unless the reports folder is served (notify.report_url). Tools write_report In detail"},{"t":"Reports from the agent","u":"docs/index.html#doc-how_to_use-reports-from-the-agent","g":"User guide · Release","h":[],"x":"Reports from the agent Ask for a report and ForgeQE's agent writes one you can share: \"generate a defect report for all open defects\", \"create a release report for all projects\", \"summarise this sprint's test results as a report\". Every table in it is built from evidence , not typed by the model: ForgeQE keeps the result of every tool call in the session (its own tools, and the Azure DevOps and Jira MCP servers). A dataset of the report names the calls it comes from, and ForgeQE takes the rows from their results. Or the dataset is a read-only query that ForgeQE runs itself when it writes the report: a WIQL query reads up to 1000 work items with their project, type, state, priority, severity, assignee, area, iteration, dates, and a link. The agent uses this for \"all\" of something. Or the dataset is ForgeQE's own past results ( history: ): suites (one row per run, with its run type in suite_scope ), case_results , step_results , writebacks , readiness , readiness_stories , or readiness_cases , from every run on this machine and the bundles teammates shared with forgeqe bi export (see Team report ). Every row has user and machine . The agent writes only the summary paragraph. The report goes to the reports folder ( export.out_dir , .forgeqe/reports/ by default): text Copy .forgeqe/reports/open-defects-all-projects-20261013-101512/ report.html # one file: Overview (summary, analytics, charts), the rows (filters, sortable table), Sources report.md # the same, to edit, paste into a wiki, or attach open-defects.csv # each dataset's rows evidence/E1.json # the raw result of each tool call the report used The page has three parts in its menu: Overview : the summary, then what the data says. When the rows are work items (defects, bugs, tickets), it works out from them: how many are open, critical and high, unassigned (and how many of those are critical or high), their median and oldest age, and how many had no change in 30 days; Needs someone now , the critical and high ones with nobody on them or untouched for 30 days; severity by project, who has them (the same person written \"Khan, Javed\" or \"Javed Khan\" counted once), how old they are, how many were opened each week, and the most used tags. Other data gets a count by each of its columns. Click a bar to see its rows. The rows (named after the data, such as Open defects): filters for the columns that are in the data (Project, State, Type, Priority, Severity, Assigned To, Area, Iteration, …, and other columns with a short list of values), a search, a table sorted by any column, 50 rows at a time, and Export CSV for the rows you filtered. Sources : each tool call, when it ran, and how many rows it gave, with a link to its raw result. The analytics are arithmetic on the rows, worked out in the page; the model writes none of them. The chat gets a short summary and a card with the paths as links, and Open the report appears as a next step. To post it, ask for it (\"post the report to the release channel\") once notify.channels is set up; the reports folder is linked when it is served ( notify.report_url )."},{"t":"Team report","u":"docs/index.html#doc-how_to_use-team-report","g":"User guide · Release","h":[],"x":"Team report forgeqe bi builds one report from every run in the reports folder: browser suites, monitor rounds, release readiness, single browser runs, desktop and mobile runs, exploratory testing, and API runs, each tagged with its run type. It builds an Evidence site (needs Node.js); without Node.js, or when Evidence fails, it writes ForgeQE's own page, which opens straight from disk ( bi: in forgeqe.yaml ; see README.md ). bash Copy forgeqe bi init # scaffold the Evidence project and install its packages forgeqe bi build # refresh the data and build (ForgeQE's own page if Evidence cannot build) forgeqe bi build --static # ForgeQE's own page only, no Node.js needed forgeqe bi sync # refresh the datasets and pages, without building forgeqe bi export [--out FILE|DIR] # your runs, in one file to share forgeqe bi build --from //share/qa-reports # this machine's runs plus every bundle there (repeatable) For one report across the team, each person runs forgeqe bi export , which writes their runs and readiness reports to one file in .forgeqe/reports/shared/ . Whoever builds puts the files in \u003cout_dir\u003e/collected/ ( .forgeqe/reports/collected/ by default), or lists shared folders under bi.collect , or passes --from , and runs forgeqe bi build . Every table gets user and machine columns; the report adds Results by run type and Case results by person tables. A run that arrives twice (in two bundles, or a bundle and this machine) counts once. A bundle is read as data only: a file that is not one, or is larger than 64 MB, is skipped with a note. In the shell, /report builds ForgeQE's own page from the same data, /report export writes your bundle, and /report \u003cwhat\u003e asks the agent for a report (see Reports from the agent )."},{"t":"Static BI","u":"docs/index.html#doc-readme-static-bi","g":"User guide · Release","h":[],"x":"Static BI forgeqe bi adds an offline BI layer on top of those reports. It exports curated CSV datasets from ForgeQE's own suite history and release-readiness reports, plus optional Azure DevOps WIQL and Jira JQL datasets from bi.datasets in forgeqe.yaml , into an Evidence project that reads them through its CSV source, then runs evidence sources and evidence build to produce a static site in the configured build directory. ForgeQE uses the open-source Evidence line ( @evidence-dev/evidence 40.x, pinned in the generated package.json ), because the newer Evidence Studio CLI has no local build and keeps data in its cloud. Building it needs Node.js 18 or later; serve the folder to view it ( npx serve ), since it cannot load its data when opened from disk. When Node.js is missing or the Evidence build fails, forgeqe bi build writes ForgeQE's own self-contained page from the same data instead, which opens straight from disk, and says why; --static always does that, and --evidence fails instead of falling back. Dataset ids become table names ( forgeqe.\u003cid\u003e ), so they use letters, digits, and _ . Pages ForgeQE generates carry a \"Managed by forgeqe bi\" comment in their front matter; a page without it is yours and is never overwritten. Tables with no rows yet stay out of the Evidence project (Evidence cannot build over an empty table), and their sections read \"None yet.\" No backend service stays up between runs. yaml Copy bi: title: ForgeQE BI datasets: ado_current_sprint: kind: ado_wiql project: Shop wiql: | SELECT [System.Id] FROM WorkItems WHERE [System.TeamProject] = @project AND [System.WorkItemType] IN GROUP 'Microsoft.RequirementCategory' jira_open_bugs: kind: jira_jql jql: project = SHOP AND issuetype = Bug AND statusCategory != Done bash Copy forgeqe bi init # scaffold the Evidence project and install its packages forgeqe bi build # refresh the data and build the site (ForgeQE's own page if Evidence cannot build) forgeqe bi build --static # ForgeQE's own page only, no Node.js needed"},{"t":"One report for the whole team","u":"docs/index.html#doc-readme-one-report-for-the-whole-team","g":"User guide · Release","h":[],"x":"One report for the whole team Each person runs forgeqe bi export , which writes every kind of run they have (suites, monitor rounds, single browser runs, desktop, mobile, exploratory and API runs, and release-readiness reports) to one JSON file in .forgeqe/reports/shared/ , each run tagged with its run type. Whoever builds the report puts the files they receive in .forgeqe/reports/collected/ (or lists shared folders under bi.collect in forgeqe.yaml , or passes --from FILE|DIR , repeatable) and runs forgeqe bi build . Every table gets user and machine columns, the home page and ForgeQE's own page gain \"Results by run type\" and \"Case results by person\" tables, and a run that arrives twice (from two bundles, or a bundle and this machine) counts once. A bundle is read as data only: anything that is not one, or is larger than 64 MB, is skipped with a note, and a malformed run inside one is skipped whole. In the shell, /report builds ForgeQE's own page from the same data, /report export writes your bundle, and /report \u003cwhat you want\u003e asks the agent, which can now build write_report datasets from these past results ( history: case_results , suites , readiness , …) as well as from live Azure DevOps or Jira queries. bash Copy forgeqe bi export # your runs, in one file to share forgeqe bi build --from //share/qa-reports # this machine's runs plus every bundle in that folder"},{"t":"Model prices and usage","u":"docs/index.html#doc-how_to_use-model-prices-and-usage","g":"User guide · Release","h":[],"x":"Model prices and usage Prices. ForgeQE prices every model call at the model's list price , from two public price lists: models.dev (the list the agent runtime uses) and LiteLLM's model price list, which also has Azure's Data Zone prices. It keeps the few fields it needs in ~/.forgeqe/prices.json , waits a few seconds for it the first time, refreshes it once a day in the background, and uses the last copy offline; only the public lists are downloaded, nothing about your runs is sent ( FORGEQE_PRICES=off stops the downloads). Costs at list price say so: $1.73 (list price of gpt-5.4 (Azure Global) from models.dev, 2026-10-06) . For an Azure Data Zone deployment, which costs about 10% more, set \"deployment_type\": \"data_zone\" on the profile. Model parameters. Models differ in what a request may carry: reasoning models (o1, o3, o4, gpt-5) take max_completion_tokens instead of max_tokens and only the default temperature, and some OpenAI-compatible servers refuse max_completion_tokens , reasoning_effort or response_format . ForgeQE works this out by itself. A profile is a reasoning model when its model or deployment name says so (an Azure deployment called chat-prod with \"model\": \"gpt-5.4\" counts), or when it sets \"reasoning\": true ; \"reasoning\": false says it is not. When the API still refuses a parameter, the browser, desktop and mobile agents send the call again without it and leave it out of later calls to that model. Nothing needs setting for a new model. A profile's own \"price\": { \"input\": 2.5, \"output\": 15, \"cached_input\": 0.25 } (per million tokens) wins, for a negotiated or enterprise rate. Leave currency out and reports use this machine's currency, or set \"currency\": \"USD\" . Without cached_input , cached input gets the model's cache discount from its list price, and the cost is marked as an estimate ( ≈$1.52 ); with no list price for the model either, cached input is charged at the full rate and the cost is an upper bound ( up to $6.11 ). When your price differs from the list price, ForgeQE says so ( forgeqe models , the shell, and the start of each command), since that is usually a typo or an old price. Anthropic's cache writes are priced at their own rate. A provisioned (PTU) deployment is billed per hour, not per token, so its costs are what the tokens would cost at list price. Requests over a model's long-context threshold (272K tokens for GPT-5.4) cost more and are priced at the normal rate. Usage after every job. Every browser run, Scribe job, heal, suite, and monitor round ends with a Usage line: tokens in (and how many of them were cached), tokens out, and the cost at the profile's price. A request to ForgeQE's agent in the shell, and every forgeqe run , code , suite , and heal command, ends with the total for everything it started, by role: text Copy This request used 1.1M tokens (1.1M in, 30.0K of it cached · 34.7K out) · $3.07 — ForgeQE's agent 42.0K · $0.12, browser agent 52.7K · $0.15, Scribe 1.0M · $2.80"},{"t":"Spending budgets","u":"docs/index.html#doc-how_to_use-spending-budgets","g":"User guide · Release","h":[],"x":"Spending budgets A budget warns you before model spend gets out of hand. Set it under budget: in forgeqe.yaml , in the currency of your prices (see Model prices and usage ): yaml Copy budget: run: 2 # one browser run day: 25 month: 400 # currency: USD # default: the currency of the model's price Set any of the three. A budget only warns; it never stops a run . Each budget warns once at 80%, once at 90%, and once at 100%. When spend jumps past more than one of these at once, you get one warning, for the highest: text Copy Budget: this month's model spend is at $245.10, 82% of the $300.00 month budget (budget.month in forgeqe.yaml). Nothing is stopped. Where you see it. In the shell, the warning is a line in the conversation. Every other forgeqe command writes it to the terminal's error output. What counts. run is the spend of one browser run. day and month add up every ForgeQE process on this machine (days and months are in UTC). Runs that the agent starts through the MCP server count too, because every process writes its model calls to the usage ledger in ~/.forgeqe/usage/ ( FORGEQE_USAGE_DIR moves it). The ledger holds counts, times, and names, never prompt or response text. With FORGEQE_USAGE=off , nothing is kept on disk, and a budget counts only the calls of the process that warns. What does not count. A call with no price, such as a github_copilot profile without a price , and a call priced in a different currency than the budget. Spend from before. If you start ForgeQE when the day or month is already past 80%, it does not repeat that warning. It warns only for a threshold that spend passes from then on. In reports. The Trends and forecast page of a report's Tokenomics shows spend on this machine and the next days at the recent pace, against the budget."},{"t":"Systems","u":"docs/index.html#area-systems","g":"User guide","h":[],"x":"16 Systems Azure DevOps, Jira, and Confluence"},{"t":"Work with Azure DevOps, Jira, GitHub, and Confluence","u":"docs/index.html#cap-systems","g":"User guide · Systems","h":[],"x":"Systems Work with Azure DevOps, Jira, GitHub, and Confluence Reads anything in the configured systems (work items, issues, queries, boards, pages), makes changes the user asks for, puts run evidence (screenshots, reports) on work items and issues as attachments or comments, and builds Azure DevOps dashboards and wiki pages. Ask it Show the open bugs in this sprint Read the checkout requirements from Confluence Make a dashboard of this sprint's test results Add the last screenshot of that run to ADO 256 as a comment Run the GitHub issues labelled login as test cases What it needs Required Azure DevOps or Jira or Xray or Confluence: set up under sources: in forgeqe.yaml, or sign in with /auth Tools read_confluence create_ado_dashboard write_ado_wiki_page attach_to_work_item In detail"},{"t":"Azure DevOps, Jira, and other systems","u":"docs/index.html#doc-readme-azure-devops-jira-and-other-systems","g":"User guide · Systems","h":[],"x":"Azure DevOps, Jira, and other systems ForgeQE's agent connects to each system's MCP server, configured from the same sources: settings in forgeqe.yaml : organization, site URL, and the names of the environment variables that hold the tokens. You don't write any MCP config yourself. Azure DevOps's server is the organization, so a project is optional and only limits ForgeQE's own test, sprint, and bug calls. System MCP server Needs Azure DevOps Services Microsoft's Azure DevOps MCP server ( npx @azure-devops/mcp ), with all its tools, each turn getting the groups it needs: work items, boards, test plans, pipelines, repos, wiki pages, search, and security alerts Node.js, and ADO_PAT or az login Jira Cloud, Server/Data Center mcp-atlassian ( uvx ), with issues, JQL search, comments, and transitions. mcp: rovo uses Atlassian's hosted server instead (Cloud, and an admin must allow API tokens) uv; JIRA_EMAIL and JIRA_API_TOKEN (Cloud) or a personal access token (Server/DC) Confluence mcp-atlassian, shared with Jira (or its own when Jira isn't set up); Atlassian's hosted server covers it on the same site confluence: true on a Jira Cloud site, or confluence.url + tokens GitHub GitHub's hosted MCP server with every toolset, each turn getting the groups of tools it needs ( sources.github.toolsets limits them), on in a repository with a GitHub remote or when sources.github is set. GitHub issues are also a test case source ( github:#12 , github:acme/shop#12,#13 , github:label=login , github:q=login in:title ): results go back as issue comments, and sources.bugs.system: github files bugs as issues. GitHub has no API to upload a screenshot to an issue, so a bug names the run folder instead GITHUB_TOKEN , or the GitHub CLI's sign-in ( forgeqe auth login github ) Xray, TestRail, Zephyr Scale, qTest none; ForgeQE's API XRAY_CLIENT_ID / XRAY_CLIENT_SECRET , TESTRAIL_EMAIL / TESTRAIL_API_KEY , ZEPHYR_API_TOKEN , QTEST_TOKEN GitLab (GitLab.com or self-managed) GitLab's built-in MCP server ( \u003curl\u003e/api/v4/mcp ): projects, issues and work items, merge requests, pipelines. integrations.gitlab.toolsets limits it GITLAB_TOKEN : a fine-grained personal access token with the MCP permission BrowserStack BrowserStack's MCP server ( npx @browserstack/mcp-server ): sessions, App Automate, accessibility scans, test management Node.js; BROWSERSTACK_USERNAME and BROWSERSTACK_ACCESS_KEY Postman Postman's hosted MCP server (US or EU; full, minimal or code tools): workspaces, collections, environments, mocks POSTMAN_API_KEY Azure Microsoft's Azure MCP server ( npx @azure/mcp ), read-only unless read_only: false , all services or namespaces Node.js; az login or another Azure sign-in Microsoft Dataverse Microsoft's Dataverse MCP server ( npx @microsoft/dataverse mcp \u003curl\u003e ): tables and records Node.js; sign in once with npx @microsoft/dataverse auth create --environment \u003curl\u003e , and an admin enables the server and its CLI client Sentry (sentry.io or self-hosted) Sentry's MCP server ( npx @sentry/mcp-server ): issues, events, stack traces, releases Node.js; SENTRY_ACCESS_TOKEN (a user auth token) Anything else servers you add under mcp: yaml Copy sources: azure_devops: { org_url: https://dev.azure.com/acme } # every project; token in ADO_PAT. project: Shop limits ForgeQE's own calls jira: { url: https://acme.atlassian.net } # JIRA_EMAIL + JIRA_API_TOKEN integrations: # vendors' own MCP servers for systems that are not test case sources gitlab: true # GitLab.com, token in GITLAB_TOKEN sentry: { organization: acme } # SENTRY_ACCESS_TOKEN dataverse: { url: https://acme.crm.dynamics.com } mcp: github: url: https://api.githubcopilot.com/mcp/ headers: { Authorization: \"Bearer {env:GITHUB_TOKEN}\" } Tokens never go into the config: servers get them through {env:NAME} references that the agent runtime fills in, and the agent never sees them. GitLab, Sentry, Postman, BrowserStack and Atlassian's Rovo server can instead be signed in to in the browser ( forgeqe auth login \u003csystem\u003e , or Sign in on its card in Settings), with the system's own sign-in; Azure and Dataverse sign in through their CLIs. forgeqe mcp list shows what your settings give. When the agent starts, the shell and forgeqe run print which servers connected. Whatever has no MCP server, or whose server didn't connect, goes through ForgeQE's own tools, which call the REST APIs directly: find_test_cases and run_test_cases for test cases and posting results back, read_confluence for Confluence pages, and query_api to read anything else from Azure DevOps, Jira, Xray, or Confluence. query_api only reads (GET requests and Xray GraphQL queries) and only reaches the configured hosts. sources.azure_devops.mcp: false or sources.jira.mcp: false uses the API only. Microsoft's Azure DevOps server can't create dashboards, so \"create a dashboard in QI-Payments with all defects and this sprint's stories\" goes through ForgeQE's create_ado_dashboard : one shared query per widget under Shared Queries/ForgeQE , then a dashboard with a work item list or count tile for each. Your ADO_PAT needs Work Items (read and write) and permission to edit dashboards. Chart widgets aren't made through the API; for those the agent uses the browser, signed in to dev.azure.com with a saved login. Its wiki tools can only write into a wiki that already exists, so wiki pages go through ForgeQE's write_ado_wiki_page . If the project has no wiki yet, that tool creates the project wiki first, along with any missing parent pages. The PAT needs Wiki (read and write). Pull requests are opened with ForgeQE's create_ado_pull_request (\"create a PR from feature/cart to main in the shop repository\"), since the repositories tool group is not loaded by default. It checks that both branches exist, and returns an active pull request between the same branches instead of opening a second one. The PAT needs Code (read and write). Requirements work too: \"write and run test cases for the checkout rules page in Confluence\" makes the agent "},{"t":"Read any data in Azure DevOps, Jira, Xray, and Confluence, and open Azure DevOps pull requests","u":"docs/index.html#cap-system-data","g":"User guide · Systems","h":[],"x":"Systems Read any data in Azure DevOps, Jira, Xray, and Confluence, and open Azure DevOps pull requests Reads through a system's REST API what its MCP tools do not cover: pull requests and repositories, test plans and suites, classic releases, and anything else in Azure DevOps, Jira, Xray, or Confluence. Opens Azure DevOps pull requests, which the API reads cannot. Sets a pull request reviewer as required, which the MCP server's update_reviewers cannot. Given on every turn once a system is set up, so the agent never turns to the browser or the shell for them. Ask it Are there open pull requests in any repository of QI-Claims? List the test plans in QI-MobileBanking with their suites Create a pull request from demo_mai_qiclaims to main in the QI-Claims Typescript repository Add javed@example.com as a required reviewer on PR 55 What it needs Required Azure DevOps or Jira or Xray or Confluence: set up under sources: in forgeqe.yaml, or sign in with /auth Tools query_api create_ado_pull_request set_ado_pr_reviewer In detail See Azure DevOps, Jira, and other systems (from the README)."},{"t":"Reference","u":"docs/index.html#reference","g":"User guide","h":[],"x":"17 Reference MCP, tuning, logs, environment variables, and every command"},{"t":"MCP","u":"docs/index.html#doc-how_to_use-10-mcp","g":"User guide · Reference","h":[],"x":"MCP"},{"t":"Servers ForgeQE's agent connects to","u":"docs/index.html#doc-how_to_use-servers-forgeqes-agent-connects-to","g":"User guide · Reference","h":[],"x":"Servers ForgeQE's agent connects to When ForgeQE's agent starts, it connects to an MCP server for each system set up under sources: . The server settings come from the same place as everything else: the organization and project, the site URL, and the names of the environment variables that hold the tokens. You don't write MCP config for these. Every tool, without paying for every tool. Each server is started with everything it has: Azure DevOps with all its tool groups, Jira and Confluence with TOOLSETS=all , GitHub with every toolset. Every tool given to the model is sent with each of its requests (GitHub's are about 79K tokens, Jira's and Confluence's about 29K, Azure DevOps' about 21K), so a turn gets only the groups of tools its request needs, the way it gets ForgeQE's own capabilities: ForgeQE asks each server for its tools when the session starts and keeps the list for a week ( ~/.forgeqe/cache/mcp-tools ), then groups them by their names. No server needs a table of its own: tools named by prefix ( repo_… , wit_… , jira_… ) are grouped by prefix, and a large prefix again by what its tools are about (Jira's sprints, boards, versions); tools named verb first ( list_pull_requests ) by what they act on (pull requests, issues, Dependabot alerts). A group is named \u003cserver\u003e:\u003cgroup\u003e , such as github:pull-request or atlassian:jira-sprint . A turn gets a group when its request names what the group is about (\"create a PR\", \"the current sprint\", \"dependabot alerts\"), when its tools ran in the last turns, or when the agent asks for it with use_capabilities : every group is in the list of capabilities the agent has, so none is out of reach and the browser is never the way round a missing tool. A request that names a system (\"the GitHub repository\", \"in Azure DevOps\") gets that system's groups from its words, not another's. A small server (under about 3K tokens) is one group, on every turn. A server ForgeQE could not ask keeps all its tools on every turn, as before. agent.capabilities.always and off take group ids too: always: [github:issue] , off: [github:copilot] . Azure DevOps. Microsoft's Azure DevOps MCP server , run with every tool group it has: projects and teams ( azure-devops:core ), iterations and boards ( azure-devops:work ), work items ( azure-devops:wit ), pipelines ( azure-devops:pipeline ), repositories and pull requests ( azure-devops:repo ), wiki ( azure-devops:wiki ), test plans ( azure-devops:testplan ), search ( azure-devops:search ), and security alerts ( azure-devops:advsec ). The first four are on every turn (about 21 tools, roughly 10.7K tokens); the others come as described above. ForgeQE's own tools cover dashboards, wiki pages in a project without a wiki, and opening pull requests ( create_ado_pull_request ) and reviewing them, and query_api reads anything else, such as classic releases. The organization comes from org_url ( https://dev.azure.com/acme or https://acme.visualstudio.com ). ForgeQE passes the PAT from token_env (default ADO_PAT ) the way the server wants it; without a PAT it uses your az login session. Its tools are azure_devops_* . mcp_domains says which groups are on every turn (default [core, work, work-items, pipelines] ; [all] for every group, at about 21K tokens a request); agent.capabilities.off switches a group off for good ( [azure-devops:advsec] ). It needs Node.js. Azure DevOps Server (on-premises) isn't supported by Microsoft's server, so it uses ForgeQE's API. yaml Copy sources: azure_devops: org_url: https://dev.azure.com/acme # the MCP server takes the organization, not a project # project: Shop # optional: limit ForgeQE's own API calls to one project token_env: ADO_PAT mcp: true # false: API only mcp_domains: [core, work, work-items, pipelines, repositories] # optional: groups on every turn; the others come when needed Microsoft's server has no dashboard tools and can't save queries. Ask for a dashboard (\"create a dashboard in QI-Payments with all defects in every state and the current sprint's stories\") and ForgeQE's own create_ado_dashboard tool does it through the REST API with ADO_PAT : it runs each WIQL query once to check it, saves it as a shared query under Shared Queries/ForgeQE (updating one of the same name), and creates a team or project dashboard with a work item list or count tile per query, plus optional markdown text. The PAT needs Work Items (read and write) and permission to edit dashboards. Chart widgets are not made through the API; for those the agent uses the browser, which has to be signed in to dev.azure.com ( forgeqe login \u003cname\u003e with a login for it under logins: ). Microsoft's wiki tools ( azure_devops_wiki , azure_devops_wiki_upsert_page ) only work in a wiki that already exists. In a project without one they answer \"No wiki found\". Ask for a wiki page and ForgeQE's write_ado_wiki_page tool writes it through the REST API instead. If the project has no wiki, the tool creates the project wiki ( \u003cProject\u003e.wiki ) first, then any missing parent pages (empty), then the page itself. A page that already exists is replaced. Code wikis are written on their published branch. The PAT needs Wiki (read and write). A login added to forgeqe.yaml while ForgeQE is running is picked up the next time the agent lists logins or signs in. Jira. mcp-atlassian , run with uvx mcp-atlassian , for Jira Cloud ( JIRA_EMAIL and an API token in JIRA_API_TOKEN ) and Server/Data Center (a personal access token in token_env ). Its tools are atlassian_jira_* : get and search issues (JQL), create and update issues, comments, transitions, and fields. It needs uv, which ForgeQE's engine uses anyway. For Jira Cloud you can use Atlassian's hosted Rovo MCP server instead with mcp: rovo . It authenticates with your email and API token, but an organization admin must first turn on API token authentication for it. yaml Copy sources: jira: url: https://acme.atlassian.net mcp: mcp-atlassian # rovo | false Xray. Xray has no official MCP server, so ForgeQE's own t"},{"t":"ForgeQE as an MCP server","u":"docs/index.html#doc-how_to_use-forgeqe-as-an-mcp-server","g":"User guide · Reference","h":[],"x":"ForgeQE as an MCP server forgeqe mcp serves ForgeQE's tools to other agents over stdio (MCP): json Copy { \"mcpServers\": { \"forgeqe\": { \"command\": \"forgeqe\", \"args\": [\"mcp\", \"--repo\", \"/path/to/app\"] } } } Tool What it does browser_run Carry out a goal in a real browser and report pass or fail, steps, and the run folder find_test_cases Read cases from Azure DevOps, Jira, Xray, TestRail, Zephyr Scale, qTest, files, or text without running them run_test_cases Run cases as a suite: step verdicts, reports, JUnit, write-back, and bugs run_details A run's steps and locators with confidence, for writing a test run_test ForgeQE runs a test command and returns the exit code and output page_memory What page memory knows about a host or page, the recorded flows, or clear a host's memory (clear asks first; confirmed: true over MCP, only after the user agreed) read_confluence Confluence pages as text, by id, link, or CQL query_api Read anything from Azure DevOps, Jira, Xray, or Confluence through their APIs, with ForgeQE's credentials push_branch Push to a new branch; never the default branch, never forced set_ci_secret Store an environment variable as a GitHub or Azure Pipelines secret without revealing it write_test Turn a passed run into a test in the repo; ForgeQE runs it until it passes in a browser and a reviewer approves it (up to code.max_attempts ) heal_tests forgeqe heal : fix out-of-date tests, report app bugs, and confirm by running the tests find_tests Find a repository's existing tests that match a request, a date range, or a sprint, confirmed with the framework's list command; nothing runs run_tests Run a find_tests selection after the user confirms ( confirmed: true over MCP), with a result per test list_sprints Recent sprints from Azure DevOps and Jira with their dates monitor One monitor round, start/stop/status of a background monitor, or a test alert logins List logins, forget sessions, or sign in by hand (not over stdio, which has no one to wait for) forgeqe_setup Profiles, MCP servers, the docs by topic, installing the engine, scaffolding a config, and listing, showing, or creating skills databases The databases set up for the project (never passwords or connection strings); with test , connect to one database_schema What a database holds: its tables, or the tables a question needs with their columns and joins run_sql One checked SQL statement: reads in a read-only session with a row cap; a write only on a writable database, after the user agrees ( confirmed: true over MCP) generate_test_data Test data from a spec that fits the schema, or a masked subset of real rows: previewed, written to files, or inserted after the user agrees test_data_batches The batches generate_test_data inserted; remove one again after the user confirms request_test_data Ask the DB agent for the test data a test needs: existing rows by a read-only query, or new rows from a spec, with the SQL or INSERT script kept in test-data/requests/ for forgeqe data fetch data_flows The data flows in flows.yaml : list, map, impact of a table or column, or suggest, validate and save a flow check_flows Check each hop of the flows: every row arrived, mapped columns hold the expected values, no duplicates, on time trace_record Follow one record through the flows, hop by hop read_mapping_file Read a mapping sheet in the project (.xlsx, .xlsm, .csv, .tsv), to write data flows from mobile_upload Upload an Android or iOS build to TestMu AI (LambdaTest) after the user agrees; returns its lt:// id generated_attribution The footer for a pull request and the trailer for a commit that include ForgeQE's code: the runs' fq: ids and how much they wrote forgeqe_command A forgeqe command no other tool covers, in an allowlisted shape; reading commands run at once, the others after the user agrees ( confirmed: true over MCP) --repo sets the working directory (default: where it starts), and --profile , --url , and --headed apply to browser runs. Progress goes to stderr; stdout carries only MCP messages. Long calls send progress notifications, and a cancelled call stops its browser. The shell and forgeqe run use the same tools, served to the agent runtime over local HTTP with a one-time token."},{"t":"Engine tuning","u":"docs/index.html#doc-how_to_use-12-engine-tuning","g":"User guide · Reference","h":[],"x":"Engine tuning Engine settings are FORGEQE_ENGINE_* variables. Set them in the shell or .env ; they win over forgeqe.yaml : Variable Default Effect FORGEQE_ENGINE_TIMEOUT_SECONDS timeout_seconds (600) Whole-run limit FORGEQE_ENGINE_STEP_TIMEOUT 180 Per-step limit FORGEQE_ENGINE_FAST_MODE true Flash mode, no planning FORGEQE_ENGINE_FULL_AGENT_MODE false The engine's full agent mode instead of fast mode FORGEQE_ENGINE_MAX_ACTIONS_PER_STEP engine default Actions per model call FORGEQE_ENGINE_MAX_FAILURES engine default Consecutive failures before stopping FORGEQE_ENGINE_LOW_VISION_DETAIL from vision_detail Low-detail screenshots FORGEQE_ENGINE_CONTROL_LOOP_MAX_RETRIES 4 Repeats of the same click, input, search, or select before the agent is told to change approach; the same number again after that stops the run FORGEQE_ENGINE_CHANNEL / FORGEQE_ENGINE_EXECUTABLE_PATH chrome Browser to launch FORGEQE_ENGINE_SKIP_ERROR_RECOVERY_PROMPT false Drop the recovery instructions"},{"t":"Logs for debugging","u":"docs/index.html#doc-how_to_use-13-logs-for-debugging","g":"User guide · Reference","h":[],"x":"Logs for debugging Every session ( forgeqe start , run , suite , heal , monitor , code , mcp , login , setup ) writes a log to .forgeqe/logs/ next to forgeqe.yaml (the newest 30 are kept). It has the versions and settings in use, what you asked, ForgeQE's agent's answers and every tool call with its result, every browser step and result, the browser engine's own log lines, and errors. Secrets are replaced before anything is written: API keys, tokens and passwords from the environment, keys in llms.json , and credentials you gave in a message. Each session has two files with the same events: \u003ctime\u003e-\u003ccommand\u003e.log , to read: a header with what ran, where, with which model and settings, then one entry per event with the time on this computer, where it came from ( BROWSER , AGENT , TOOL , MODEL , RUN , ERROR …) and what happened in words, its details indented below. Paths inside the project are written from it, and errors stand apart with a blank line around them: text Copy 15:58:44 BROWSER Step 2 · Checkout Page https://shop.example.com/checkout Goal Pay with the saved card Action CLICK #pay 15:58:46 BROWSER ✗ Step 2 failed Error #pay not found \u003ctime\u003e-\u003ccommand\u003e.jsonl , the same events as data, one {\"at\", \"kind\", \"data\"} object a line, for scripts and tools (and what ForgeQE's own pages read). Logs written before this change are one file with a line of data each, and are still read. To share a session, type /logs in the shell ( /logs shots adds screenshots), or run forgeqe logs bundle afterwards. Either writes one .tar.gz with the session log, the run folders it mentions ( run.json , steps.json , trace.md , resume.json , workflow.yaml , the failure screenshot), your forgeqe.yaml , your profiles without keys, and the versions. forgeqe logs lists recent logs. Start with --debug (or set FORGEQE_DEBUG=1 ) for more: the browser engine logs at debug level, and long values such as tool results are kept whole instead of cut at 8,000 characters."},{"t":"Which tools ForgeQE's agent gets","u":"docs/index.html#doc-how_to_use-which-tools-forgeqes-agent-gets","g":"User guide · Reference","h":[],"x":"Which tools ForgeQE's agent gets Every model call carries the definitions of the tools the agent has, so it does not get all of them. Each turn gets: the core: help, setup, use_capabilities , and the test environments and their apps; the capabilities the request is about , picked without a model call from its words (each capability's keywords in src/capabilities/registry.ts ), the apps of the environment it names (a mobile app means the mobile tools), and links (the browser); capabilities used in the last few turns , so a conversation keeps its tools. A capability this project cannot use yet (no mobile apps, no Jira) is not picked from words alone. When a request needs a capability the turn did not get, the agent calls use_capabilities , and ForgeQE continues the same request with its tools. With fewer tools in view, the agent also cannot mix up similar ones ( browser_run , desktop_explore , mobile_explore ). forgeqe context shows what a turn carries, and what each capability adds. The session log ( /logs ) records which capabilities each turn got and why ( agent.scope ). Pin capabilities on, or switch them off for a project, in forgeqe.yaml (ids from forgeqe features ): yaml Copy agent: capabilities: always: [regression-packs] off: [desktop-apps] FORGEQE_TOOL_SCOPE=off gives every tool on every turn. MCP clients of forgeqe mcp (Claude Desktop, Cursor, Claude Code) list tools once rather than per turn, so they get the core and every capability this project can use (no desktop tools without desktop apps, no tracker tools without a tracker). use_capabilities adds others and sends notifications/tools/list_changed , which tells the client to read the list again. For a client that ignores it, forgeqe mcp --all-tools lists every tool."},{"t":"Env overrides","u":"docs/index.html#doc-how_to_use-14-env-overrides","g":"User guide · Reference","h":[],"x":"Env overrides Variable Effect WP_CONFIG Path to forgeqe.yaml WP_LLMS_JSON Path to llms.json WP_LLM_PROFILE Active profile, unless --profile is set WP_AZURE_API_KEY / OPENAI_API_KEY / WP_API_KEY Keys referenced by profiles COPILOT_GITHUB_TOKEN A github_copilot profile's GitHub token (fine-grained, with the Copilot Requests permission), unless the profile's api_key_env names another; else the saved token, then the browser sign-in ( forgeqe auth login copilot ) FORGEQE_COPILOT_TOKEN The token forgeqe auth login copilot saves; set by ForgeQE from the credential store, not by hand FORGEQE_CONFIG_DIR Global config folder (default ~/.config/forgeqe ): forgeqe.yaml , llms.json and .env used when a project has none FORGEQE_PYTHON A Python that already has the engine's libraries, used instead of the managed venv (skipped, with a note, when it cannot run the engine) FORGEQE_DEBUG 1 logs at debug level, like --debug FORGEQE_TOOL_SCOPE off gives ForgeQE's agent every tool on every turn, instead of the tools of the capabilities each request is about FORGEQE_ROUTING off also puts every playbook in the agent's prompt (for comparing, or ruling out a routing fault) FORGEQE_HOME Where the managed engine lives, user skills ( skills/ ), and page memory when there is no config file (default ~/.forgeqe ) ADO_ORG_URL / ADO_PROJECT / ADO_PAT Azure DevOps organization, project, and token when sources.azure_devops doesn't set them JIRA_URL / JIRA_EMAIL / JIRA_API_TOKEN Jira site and credentials when sources.jira doesn't set them XRAY_URL / XRAY_CLIENT_ID / XRAY_CLIENT_SECRET Xray Cloud endpoint and API key pair CONFLUENCE_URL / CONFLUENCE_EMAIL / CONFLUENCE_TOKEN Confluence site and credentials when sources.confluence doesn't set them TESTRAIL_URL / TESTRAIL_EMAIL / TESTRAIL_API_KEY TestRail site, user, and API key ZEPHYR_API_TOKEN / ZEPHYR_URL Zephyr Scale Cloud token (turns Zephyr on) and API base QTEST_URL / QTEST_PROJECT_ID / QTEST_TOKEN qTest site, project, and API token TEAMS_WEBHOOK_URL Teams webhook for monitoring alerts ( monitor.alerts.teams.webhook_env names another) SMTP_HOST / SMTP_PORT / SMTP_USERNAME / SMTP_PASSWORD / ALERT_EMAIL_TO SMTP server, login, and recipients for monitoring email when monitor.alerts.email doesn't set them See 15. Commands cheat sheet ."},{"t":"The web app","u":"docs/web-app/index.html","g":"More documentation","h":[["Starting it","starting-it"],["The first time: Set up","the-first-time-set-up"],["The layout","the-layout"],["Home and a chat","home-and-a-chat"],["The pages","the-pages"],["Reports the agent writes","reports-the-agent-writes"],["Settings","settings"],["Safe by design","safe-by-design"],["When something is wrong","when-something-is-wrong"]],"x":"forgeqe web opens ForgeQE in your browser: the same agents as the shell, with a chat on Home, pages for recordings, runs, reports, API tests, quality, data, regression packs and schedules, and every setting as a form. It runs on your computer only and works on one project folder at a time, as the CLI works in the folder it is started in. Starting it It opens in your default browser and prints its address, such as http://127.0.0.1:53817/ token=… . In CI, on a Linux machine without a desktop, or with no open , it only prints the address: open it yourself. When it does not open the browser, or the browser could not be opened, the next line says why. The page keeps the token for that browser tab only; another tab, or the page after the token is gone, says it is signed out: open the printed address again. Ctrl+C in the terminal stops it. Option What it does port N A fixed port instead of a free one, for a bookmark or when a port is taken. config forgeqe.yaml Work on the folder of that file. no open Print the address without opening the browser. The first time: Set up The first page is Settings › Set up , in four steps. Until the folder has a forgeqe.yaml , the other sections of Settings are locked. 1. Project folder. The folder ForgeQE works on: browse to it, type its path, or make a new folder. It can be a clone of your test repository tests written from passed runs go there , a clone of the application, or an empty folder to try ForgeQE in. ForgeQE does not clone repositories: clone with git first, then pick the folder. 2. ForgeQE in this folder. The same as forgeqe init : forgeqe.yaml , llms.json , the environment files and a .forgeqe folder with prompts, skills and guardrails to change. Files already there are kept, and .forgeqe/reports/ is added to .gitignore . 3. This computer. What ForgeQE runs with the browser engine and the agent runtime , with Install what's missing , which runs forgeqe setup and shows its output. 4. A model. At least one model with its key or sign in, under Models . For a GitHub Copilot seat, sign in here or in Models below . Dark mode. Each person chooses for their own browser: Dark/Light in the sidebar's footer moves through System as the computer is set , Light and Dark, and Settings › Appearance › Colour mode has all three. In dark mode the page and the sidebar go dark, links and the accent are lightened so they read, code is coloured for a dark page, and logos drawn in black turn white. A project's own sidebar colour Appearance is for light mode. Signing in to GitHub Copilot Set up, and Settings › Models › Sign ins does what forgeqe auth login copilot does. Sign in with GitHub runs GitHub's own Copilot CLI sign in downloaded the first time : the page shows GitHub's link with Open GitHub and the one time code with Copy , and waits while you approve on GitHub; the sign in stays in the system's credential store, and ForgeQE handles no token. Use a token is for a machine without a browser: a fine grained github pat token with the Copilot Requests permission, typed into a password field and kept in the credential store; no response shows it back, and a classic ghp token is refused. Either way ForgeQE then lists your seat's models, you pick one, and the Copilot profile in llms.json becomes the default. The card says who is signed in and how, with Sign out . Next time, forgeqe web opens the folder it is started in when ForgeQE is set up there, else the last project opened it keeps the last ten . For a team. One person sets ForgeQE up in the shared test repository and commits what it made: forgeqe.yaml , the environment files, llms.json , and the team's guardrails, prompts and skills under .forgeqe/ . Everyone else clones the repository, runs forgeqe web in it, and adds their own keys in Settings. Keys and passwords never go in those files: each person's are in their own credential store. The layout The sidebar, on the left. New chat opens Home, where a chat starts; earlier chats are in Runs ; Agents : a page for each of ForgeQE's agents Orchestrator, Browser, Exploration, Planning, Coding, Search, Healing, API, API planning, Review, PR review, Root cause, Refine, Evaluation, Model rating, and the Research and Helper agents the others call , in categories that fold on their own: Lead, Browser, Test code, API, Review and diagnosis, Support; Context what the agents know and follow : Knowledge, Memory, Guardrails, Skills, Prompts; Test : Record, Regression, API tests, Quality, Data; Results : Runs, Reports, Jobs. Each group folds from its title Agents starts folded , and the group of the page you are on stays open; and at the bottom What's ready, Help the docs, the same pages as forgeqe.github.io/docs/ with the architecture map, served by ForgeQE itself, so they work offline and Settings. It closes to a narrow rail of its icons each named when you point at it , with the small logo on top, to give the page the width; on a phone it is a drawer. The workspace panel, on the right. The project, its repository and branch, and the test environment; the context and tokens of the chat and of the project, in your local currency pounds in the UK, from the European Central Bank's daily rates ; the background tasks running now; the files a chat changed, with Create pull request ; and what it produced reports, tests, recordings , under the Capgemini logo. It sits beside the page on a wide screen 1600 pixels and up ; on a laptop it opens over the page, so the page keeps its width. Where it is not beside the page, a narrow rail shows the Capgemini mark and its sections' icons: one opens the panel at that section. Home and a chat Home is one box: say what to test, in your words. Under it, suggestions Run test cases, Explore a journey, Write a test, Review requirements fill the box with an example; they do not send. The Agents page is one directory of every agent in four columns side by side, one per category AI assisted, AI native, Agentic, Custom agents , each with its count, a few words of what it holds and a bar of how much its agents act on their own; the favourites come first in each. A column shows its first six agents and More agents the rest a search or a filter shows every match . Each agent is a row of the same size: its icon, its name with a dot of its status, what it does in a few words, and its star; hovering it says more what it does, why its status is what it is, and what it reaches and may do: Browser, Repository, Databases, the systems it signs in to; Read only, Writes files, Runs commands or Acts on pages . The statuses are Ready; Partly set up parts it can use are off ; Needs attention it cannot work without something missing, such as the test repository ; Unavailable no model is ready, or the engine or agent runtime is not installed , and the chips above filter by them or by Favourites. An agent's page Agents, in the sidebar is the same box with the agent's icon, its name and what it does on top, suggestions of its own, Tools it can use the first five groups, folded, with Show all to its tools page, /agents/\u003cagent /tools , which lists every group and tool open; its own tools with what its permissions take away, and each tool server its session gets: the live browser, the code map, databases, ForgeQE's tools, and for the Orchestrator agent every capability and your systems' MCP servers; a group it cannot use here says why , Connected to the test repository, databases, test environments and systems it reaches , its instructions the prompt it starts from, changed in Prompts and its recent runs. A request sent from there goes to the Orchestrator agent with the agent's name before it, so it is handed on. Every page and agent in the sidebar has one kind of icon, ForgeQE's 3D pixel icons; a page's is never an agent's. Sidebar icons in Appearance says how they sit on the sidebar's colour: Auto measures every icon against it and keeps them as they are when each stands out 2:1 , or puts them all on tiles in a tint of the sidebar when the colour hides any; or a brand chooses one look: Plain, On tiles, Outlined, or One colour the icons' shapes in the sidebar's text colour . The row previews the look and names the icons that fade. In the box: Tools : whether this chat writes the test into the repository and shows the browser, and what comes from the settings where browsers run, where test cases come from . They can be changed in a chat that has started. The model : Auto routing, or one of your models. In a chat that has started it can be changed between messages, as in Cursor: the same conversation goes on with the new model its history, tools and files stay , and the activity log notes the change. It offers your models that can answer there their key set; a GitHub Copilot one when Copilot is already running ; a custom agent's chat keeps its model. Attach : the paperclip, a drop on the box, or @ then a file name. @ finds files in the folder the agent works in: code.repo when the chat writes tests, otherwise the project folder an open chat keeps the folder it started in . A drop stays in the box until you send; then it is saved under that folder's .forgeqe/inbox git ignored for the agent to read. Removing a chip takes its @name out of the text, and deleting the @name removes the chip. Removing the chip, or starting over without sending, does not keep a drop. Images, PDFs and text or code files are taken, up to 8 a message; hidden files and anything named like credentials are refused. A folder can be named too @tests/ , and a name with a space is written in quotes @\"login page.png\" . A file on a sent message opens in a new tab when clicked. Drops older than 14 days are removed from the inbox. Images : drop, paste each paste is its own pasted \u003ctime file or pick any image the browser can draw: PNG, JPEG, WebP, GIF, BMP, AVIF, SVG, ICO, and HEIC or TIFF where the browser reads them. Before it leaves the browser it is turned as the camera held it, shrunk to at most 2048 pixels across, and drawn anew as PNG, WebP or JPEG a photo as JPEG , so no location, camera or other details go with it; an SVG's scripts never run. A small GIF stays as it is, frames and all. An image may be up to 5 MB once made ready. Its chip shows a small picture; click it to see the picture as it will be sent. An image from the repository @ that models cannot take as it is, over 5 MB or in another format, gets a converted copy in the inbox, \u003cname picture.png , which goes as the picture; the note names both. Up to 8 pictures go with a message, 20 MB together, when the model takes images a profile's vision in llms.json ; a local Ollama model does not unless it says so . If it does not, or turns them down, the agent gets the paths only and the activity says so. Refine : rewrites your request precisely against what ForgeQE knows here, in the same box, without running anything; Undo puts your words back. A reply shows the work as it happens: The plan as a chain: what is done a tick , what is being worked on now, and what is next. The agents : each step under the agent doing it the Orchestrator agent, the Browser agent, the Coding agent , and each handoff from one to another. The latest activity , live, with the full log a click away. The result : each test with its status, file and the command to run it; reports as links; every file changed with its diff. Next steps as buttons run it on another browser, open a pull request, investigate a failure , each a new request in the chat. Stop ends the work in progress. While the agent works the page follows the latest step; scroll up and it stops following, and Latest activity takes you back. All chats /chats , and each web chat from Runs lists every chat since forgeqe web started, newest first, grouped by day: Working, Needs you, Your turn and Ended as filters, a search, and 50 at a time. The pages Page What it is for Record Do a test's steps yourself in a browser or a Windows app ForgeQE opens; each click, entry and choice is recorded, with nothing to describe first: no panel in the page, only a small badge, with Pause, Undo and Stop on the Record page. A web recording is then reviewed with clicks: its name written from what you did , steps to drop or add in your words, a page to open, go back , notes on steps, instructions for the Coding agent, checks suggested from what each step brought to the page or picked on its picture a text, a field's value, the page it leads to, or in your words , and where each typed value comes from as typed, test data, new on each run, or a secret read from the environment, its typed text removed from the recording . Every change is a version to go back to. Steps used in many tests are kept as a block , put into another recording, or played first when one starts Start from a block . Record more from here plays the steps up to one and records what comes next. Checks of the page's own server calls, and Suggest with the model one call . ForgeQE makes the usual choices first, and finds saved blocks in the steps. Try it replays the steps with Playwright, on another environment or with other test data if you like. Write the test tries the steps first, then the Coding agent writes it in the review, asking nothing: the plan and where the test goes follow the repository, and a block becomes one helper. A desktop recording replays with no model. The recordings, searched and paged, each with Review . Regression Regression packs for a release, in two tabs. Agent : a conversation where the agent reads the connected sources, says what is missing, asks for the details it needs ticked off above the message box , and builds the pack. Packs : a table of the packs; a row opens the pack's page, with its numbers in one strip, the plan as a table automated, manual, new automation, exploratory; filters, search, 50 rows a page, each row's evidence and the release's changes, risk areas, runs and triage, history and a comparison beside it; save it, run it now or schedule it, refresh it, reuse it for the next release. API tests Two tabs. Agent : a conversation where you paste links, cURL or details or attach a Postman collection or an API description and the agent makes the API's calls in folders, sends them and says what it found, each API as a card to open. Workbench : like Postman, with an agent: APIs from a description, a Postman collection, or the calls a recorded run saw with their calls in folders and flows on the left, exported as a Postman collection; a call open to edit and Send , its answer, and what it must answer; an environment from env.yaml and one Run . Calls that change data ask first once, or always on a test environment . Sign in once per API, the value kept as a secret. Flows built from the API's calls, passing values on. Ask the agent writes the tests or explains a failure, on the page. Quality What each browser run measured, as a table of runs rules failed, critical and serious violations, slow pages, visual changes, budgets exceeded , with Trends beside it. A row opens the run's page: its numbers in one strip and three tabs, Accessibility every failed WCAG rule with its criterion, level, elements and pages, each opening on the elements and how to fix it; the rules that passed , Performance every page's Core Web Vitals, requests and size against the thresholds and budgets and Visual every page against its baseline, with the baseline, this run and the difference, and Approve as the new baseline . Data Databases connection, tables, read only queries , Ask a question in words turned by the DB agent into a query and its rows, test data, a pytest or Playwright test script, or data checks, each kept to run again , and data flows. Agents › DB agent The databases the DB agent is connected to test each one , each one's schema as a diagram of its tables and foreign keys, Ask, every request the agents made of it, and its tools and runs, under the composer every agent's page has. Test data Every request for test data, from any agent, a test case, the web app or a terminal: who asked, what for, when, and the answer; kept requests fetched again; specs preview, files, insert after your confirmation and the batches inserted. Runs Every ForgeQE session in the project, from here, a schedule or the terminal: 25 to a page with filters. A run shows its summary, the conversation, its activity, and its details. Reports Every report ForgeQE wrote, each opening as its HTML report in a new tab; and the project report: every run together, with pass rate by day, what fails most, flaky cases and defects. Jobs Scheduled and long jobs the jobs service , in two tabs. Agent : say what should run and when; the agent asks for what it still needs what runs, when, its name, alerts , shows the job and adds it once you confirm its exact command and schedule. Jobs : a table of the jobs what each runs, when in words, its last run and next run ; a row opens the job with its runs, logs and alerts. Add one yourself is the form. Evidence › Overview Every AI agent whose runs are recorded here ForgeQE's own and others': OpenTelemetry traces, received as they run or exported, Langfuse and LangSmith exports, JSON logs : its versions, runs, decisions and what its records cannot say. Runs are recorded with forgeqe evidence receive or record EVIDENCE.md EVIDENCE.md . An agent opens as its dashboard: per version its runs by verdict, each check's outcomes, what keeps going wrong, week by week, and its versions side by side check by check. Every number opens the runs it counts. Evidence › Agent runs Every recorded run, newest first, searched and filtered by agent. A run opens as its timeline: each step with the data it took in its content where the record keeps it, else a fingerprint , what it decided with the options it had and the reason it gave, what it said about its own work, and what the record cannot say. An agent's reasons and statements are marked as claims, not facts. Above the timeline, whether it worked the agreed way, decided on the right grounds with data it may use, and when its change was checked with forgeqe evidence product check run whether its change was right for the product: each check of its agent's contract with what it found, each finding opening its step. When its contract has a content section, whether its answer was right its rules, whether it rests on what the run took in, the owner's rubric , and Grade the answer : meets or misses for each criterion of the rubric, with a reason, kept with your name and in the audit log; these grades calibrate the rubric's judge. Evidence › Contracts Each agent's contract: what it agrees line by line steps it must take, what it may and may never do, limits, what a person decides, what its statements need behind them , whether it is approved, and which checks can fail a run under it; and how well each check is measured on labelled runs. Read only: a person approves a contract at a terminal forgeqe evidence contract approve . Evidence › Review queue Runs whose findings are still open the failed first, then work whose two fix attempts are used, where a person takes over ; answers the rubric's judge could not settle not yet calibrated, or it disagreed with itself , to grade; and every finding people overruled, with who, when and why. On a run's page each finding has Overrule : a reason is required, it is kept with your name and in the audit log, and the finding stops counting. Evidence › Learn What to change in an agent, from what its runs got wrong. Proposals : guidance from a rule broken in three runs of its latest version, and fixes from causes proven by replay; Approve or Decline each with a reason, kept with your name and in the audit log Evidence changes nothing itself: forgeqe evidence guidance writes what was approved . Causes of its findings : each run with open findings, each possible cause its instructions, a tool, its data with the change to try, its replays and whether it is proven; Link replays picks among runs of the same agent and request recorded after it. Evidence › Monitor Every agent evaluated its versions, models, tools, contract, trust, alerts . An agent opens its drift since its baseline a model, tool or document it did not have, a check doing worse, its contract or judge changed , each alert with its runs, and Set the baseline ; the trust its evidence supports, criterion by criterion, and Grant a level never above what is supported ; and Download the audit : every decision people made about it, with its evidence and approver. Setting a baseline and granting trust need a reason and the agent's name typed, and are kept in the audit log. Evidence › Releases Each agent's scenario suite: pick a candidate version and the live one, and see the release gate held or ready, and why , every scenario's result on both versions, each lens's count of scenarios passed, the owners' expectations met, and the gates kept. Read only: forgeqe evidence release keeps a gate. Knowledge What the agents know about your product, and adding to it. Memory What ForgeQE learned from runs that passed, by site: flows replayed without a model, and pages with their elements. Clearing a site's memory asks first. Guardrails The rules every agent follows. Skills What the agents know how to do, by the agents that use them; add, edit and remove the project's own. Prompts The instructions each agent starts from, with the agents that use each; edit one, or add your team's own for chosen agents. What's ready Each capability, whether it is ready here, and what it still needs. Reports the agent writes Ask for a report in a chat \"a report of all open defects\", \"release status for all projects\" and the agent writes one from the results of the calls it made. The report has three pages: Overview the summary, and when the rows are work items: how many are open, critical and high, unassigned, how old, untouched for 30 days, the ones that need someone now, and charts by project, person, age and week , the rows with filters and a CSV export, and Sources , each call the rows came from. The analytics are worked out from the rows; the model writes none of them. See Reports from the agent ../HOW TO USE.md reports from the agent . Settings Settings takes over the window: one menu on the left, with Back and Search settings by name or forgeqe.yaml key , and the sections under General, AI, Testing, Activity and Advanced. Each setting shows its forgeqe.yaml key under its help. Appearance gives the web app the project's look, for everyone who opens it: a logo PNG, JPEG, WebP or SVG and a name for the sidebar, the sidebar's colour primary, with an optional second colour it fades into , the colour of buttons, links and selection secondary , with lighter and darker shades made from it, and, in light mode, the page's background a light colour . Dark mode keeps its dark page and sidebar. Text on each colour turns white or dark so it reads; the Preview row says only when a colour makes some text hard to read below WCAG's 4.5:1 . A square or round logo shows with the name beside it, a wide one alone; Logo frame keeps it as it is, rounds its corners, cuts a square one to a circle, or puts it on a white tile for a dark logo on a dark sidebar ; Logo size Large gives a wide logo the whole top of the sidebar, for one whose words are small. Small logo is the square or round one the narrow sidebar shows; without one, a square logo is used, else the name's first letter. When the logo is the sidebar's colour its own background, or a shape's ink , it sits on a plate that stands out from the sidebar, and the section suggests another sidebar colour. Under Import colours , From a website reads a public site's page and stylesheets and suggests its colours its header or brand colour for the sidebar, its buttons' for the buttons, its body's light background for the page; never its logo ; nothing changes until Use these . Only sites on the internet are read, never this computer or a private network; the reader says what it is, and a site that accepts only a person's browser turns it away the section then says to pick the colours by hand or from a DESIGN.md . From a DESIGN.md fills the colours from a design file. It is saved under theme: in forgeqe.yaml ; Reset colours clears the colours the logo and name stay and Reset all removes the whole theme. Environments lists each environment with Edit and Remove; adding or editing one opens a panel with its name, apps, values, secrets and Test data the files its tests read, through FORGEQE DATA \u003cNAME . Start from your team's YAML fills the panel from YAML in any layout: Paste it, Import a file from your computer copied into the fields , or Link a project file read from that file every run; the panel shows what ForgeQE reads from it, and Copy into fields instead converts it . Secret values in the YAML are never copied. Changes save themselves. A key or password typed in Settings goes to your credential store under its variable's name, never into a settings file, and is never shown again. Files shows each settings file as text for what the forms do not cover. Every option in forgeqe.example.yaml has a field. Safe by design It listens on 127.0.0.1 only, with a random token checked on every call, and refuses requests from other sites. Nothing a page shows is taken as HTML: replies, tickets and reports are drawn as text and links, and a link opens only when it is a web or mail address. A file a reply names opens through a short lived link in its own sandbox, so a report's scripts never reach the app. Commands the pages start are built from fixed lists of what is allowed; anything that changes data, costs model calls or posts outside asks first. When something is wrong You see What to do The page says it is signed out Open the address forgeqe web printed again; each tab needs it once. The port is in use forgeqe web port 4711 any free port . Settings sections are locked Set up ForgeQE in the project folder first Settings › Set up, step 2 . A chat cannot start Settings › Set up, steps 3 and 4: install what is missing, and add a model with its key."},{"t":"Desktop apps","u":"docs/desktop/index.html","g":"More documentation","h":[["Use","use"],["Decisions","decisions"],["How a run flows","how-a-run-flows"],["One model config: llms.json → UFO","one-model-config-llmsjson--ufo"],["Workflow YAML (forgeqe-desktop-v1)","workflow-yaml-forgeqe-desktop-v1"],["Recording by hand","recording-by-hand"],["Fixing a workflow from chat","fixing-a-workflow-from-chat"],["Waits, retries and dialogs","waits-retries-and-dialogs"],["Visual checks (expect_image)","visual-checks-expect_image"],["Unattended runs","unattended-runs"],["Updating UFO²","updating-ufo²"],["Checks of the outcome","checks-of-the-outcome"],["Recording","recording"],["Security","security"],["Code","code"],["Before first use on Windows","before-first-use-on-windows"],["Next steps","next-steps"]],"x":"Status: runs on Windows. The desktop job of .github/workflows/ci.yml GitHub's windows 2022 installs the engine and the pinned UFO², replays Notepad live with the pywinauto driver and through forgeqe desktop replay , heals a moved control from the live window, and runs a whole explore: UFO² drives Notepad with a scripted model behind an OpenAI compatible server, the action is recorded with the control's AutomationId, and the recording replays. Not yet run: explore with a real model the job has no key , and your own apps. See Before first use on Windows before first use on windows . ForgeQE drives web apps through Chrome. The desktop engine does the same for Windows thick clients Win32, WinForms, WPF, and the native parts of Electron and WebView2 apps : say what you want in plain language, UFO² does it on the live app, and the run is saved as a YAML workflow that replays later without a model. Use Or ask ForgeQE's agent in the shell or forgeqe run : \"create an invoice for Contoso in Billing and save it as a test\", or \"I'll show you the steps in Billing, record them\". Its tools are test apps , desktop explore , desktop record , desktop replay and desktop edit workflow . It asks before it starts the app or takes over the desktop, and before it changes a workflow. Where it cannot ask an MCP client , the call answers needs confirmation until the user agrees. Desktop apps come from the active environment in env.yaml see HOW TO USE.md, \"Environments and apps\" , or from desktop.apps in forgeqe.yaml , which works without environments: Each run writes a folder under the reports folder desktop explore … or desktop replay … : run.json , report.html , steps/NNN.png , and for explore workflow.yaml , trace.json and UFO's own logs in ufo/ . A replay whose steps were healed also writes heals.json and asks whether to write the new locators into the workflow accept heals writes them without asking; with no terminal they are never written . Decisions Question Decision Why Agent that explores an app Microsoft UFO² microsoft/UFO , MIT , pinned to commit eae3c0a8d168 and never edited, behind one adapter ufo runner.py It already solves UI Automation UIA control detection, merging it with vision, and the per app agent loop. Behind the adapter it can be swapped for our own engine without touching the CLI, the YAML or replay. Saved scripts ForgeQE's own YAML forgeqe desktop v1 , replayed on pywinauto UIA backend UFO calls a model at every step. Replay must be fast, free, repeatable and fit for CI, so no model runs unless a step needs healing. Models llms.json , the same profiles as the browser engine. UFO never gets its own model config One place to configure models, keys and Microsoft Entra ID. Python environment Its own ~/.forgeqe/desktop/.venv , Python 3.10 , not the browser engine's UFO pins openai==1.66.2 and pydantic , which the browser engine's library does not run with, and pandas==1.4.3 , which has Windows wheels up to Python 3.10. Replay's packages use UFO's pins, so one environment runs both. Not chosen: windowsagent Reference only Very early v0.1.0 , replay not built, and it exposes a model driven /shell endpoint. How a run flows One model config: llms.json → UFO UFO picks its model client by API TYPE through ufo.llm.base.BaseService.get service , which every model call goes through ufo/llm/llm call.py . The adapter adds the type forgeqe : write ufo config writes UFO's config/ufo/agents.yaml from its template, with API TYPE: forgeqe , the model's name, and no endpoint and no key, for HOST AGENT , APP AGENT , BACKUP AGENT and EVALUATION AGENT . ufo bridge.install makes get service \"forgeqe\", … return ForgeQEService , which calls the profile through the openai SDK models.py : azure key or auth: entra , openai , openai compatible key or Entra , and ollama through its OpenAI compatible /v1 . Keys, Azure endpoints and Entra use the browser engine's own helpers forgeqe engine.llm , so a profile means the same thing in both. Keys stay in environment variables. Each call's time and tokens go to ForgeQE's usage ledger as the \"desktop agent\" counts only, never the prompt . Explore sends screenshots, so its profile must take images: \"vision\": true or false on the profile says so; without it, ollama profiles are refused and others accepted. Healing sends a screenshot only to a profile that takes images. The request parameters suit the model by themselves: a reasoning model o1, o3, o4, gpt 5, by the profile's model or deployment name, or \"reasoning\": true on the profile gets max completion tokens and no temperature from the first call, and when the API refuses a parameter max tokens , temperature , frequency penalty , response format , … the call is sent again without it, and later calls to that model leave it out py/forgeqe engine/model params.py . The browser agent does the same. Workflow YAML forgeqe desktop v1 Ops: launch , click , double click , type , select , keys , expect , expect image , wait at most 60 s , wait for , close . Locators use UIA properties, never screen coordinates: automation id , name , control type , class name , index when several match , and path the ancestors' control type and name . A target needs an automation id or a name . Replay looks in the launched app's own windows only. Variables: {{name}} from the workflow's variables or name=value on the command line; {{secret:NAME}} from the environment, only for names in desktop.secrets . A secret ForgeQE itself uses a model key, a tracker token is refused there. Values are substituted once and never expanded again. Targets take {{name}} too a CSV row's {{customer}} as the control to click , never a secret. Keys: ctrl , shift and alt with one named key or character ctrl+s , alt+f4 , enter , f5 . The Windows and context menu keys are refused: Win+R followed by typing runs any command. Typing is literal: pywinauto's key syntax ^ , % , + , ~ , {ENTER} in the text is escaped. Recording by hand When you know the steps, do them yourself instead of describing a goal: no model and no UFO are involved, so it costs nothing and does exactly what you did. ForgeQE starts the app and watches the mouse and keyboard low level Windows hooks , asking UI Automation which control each click and key went to. Do the steps, then: Ctrl+Shift+F11 with the mouse over a control adds a check: an expect step with the text it shows now a status message, a saved total . Add one at the end, so the replay tests the outcome, not only the steps. Ctrl+Shift+F12 , or closing the app, finishes. The console shows each step as it is recorded. What becomes a step: You do Step Click a control two quick clicks: double click click with its AutomationId, name and control type Pick an item in a drop down select on the drop down, with the item's name Type into a field corrections and pastes included one type with the field's text when you move on, read from the field A key chord outside a text field ctrl+s , enter , f5 keys Ctrl+Shift+F11 over a control expect with its text Passwords: a password field is never read; its step types {{secret:NAME}} the one name in desktop.secrets , or \u003cAPP PASSWORD , which the result tells you to set . Text equal to a desktop.secrets value is written as its placeholder. The typed characters themselves are never kept, only the field's text when you move on. Only the app: clicks and keys outside the app's own process are not recorded; nor are the Windows and menu keys, or controls with neither an AutomationId nor a name. The result lists what was left out. The run folder has workflow.yaml , run.json and report.html , like explore. Replay it with forgeqe desktop replay . Fixing a workflow from chat When a replayed step fails because the app was slow or a dialog was in the way, ForgeQE's agent fixes the workflow with desktop edit workflow : it proposes the change a longer timeout or retries on the step, a wait for before it, a dialog button in dismiss , a healed locator, a corrected text , shows you the diff, and writes the file only when you agree. For example, after \"step 4 timed out while the invoice list loaded\": Each change has a fixed shape set , unset , set step , add dismiss , insert step , remove step , set variable ; step numbers are the replay report's. Anything else is refused. The changed workflow is checked by the engine's own validator before it is shown; one that would not run is not offered. Comments and layout are kept. The old text is kept in the reports folder desktop edits/ , and a file that changed since the edit was proposed is not overwritten. The workflow must be a .yaml inside the working folder or the reports folder. Waits, retries and dialogs Real apps are slow in places: a splash screen, a form that loads its data, a \"Tip of the day\" or \"Save changes?\" dialog. A workflow says how to wait for them, without fixed wait steps: Each step waits for its control up to its timeout . click , type and select also wait until the control is enabled and visible a form that is still loading greys its buttons out . wait for waits until a control is there, shows a text , or with gone: true has gone. retries applies to click , double click , type , select , keys , expect and expect image . Between tries, replay pauses 1 s, 2 s, … up to 5 s and closes any dismiss dialog. An error in the workflow itself a missing variable is not retried. dismiss lists at most 10 targets, checked like any target. When a control is not found, or something waits to go away, replay clicks the dismiss controls that are on screen and looks again, up to 3 times per lookup. The report and the console name every dialog closed, and how many tries a step took. Visual checks expect image expect compares text. When what matters is drawn a chart, a signature, a colour, a layout , expect image compares pixels with a baseline image: The first run with no baseline saves what it captured and passes; the report says so. Commit the baselines folder with the workflow. update baselines replaces them after an intended change. A pixel counts as different when a colour channel differs by more than 32 of 255, so anti aliasing and ClearType do not fail a check. A different size another screen scale or window size fails with both sizes named. The report shows the baseline, what was captured, and the differences in red, with the share of pixels that differ images/NNN baseline actual diff.png in the run folder . Image names are file names only letters, digits, , , ending .png . A path, .. , or a link that leads out of the baselines folder is refused. Run visual checks on one machine with a fixed resolution and scale see DESKTOP CI.md DESKTOP CI.md . Unattended runs Replay needs a signed in, unlocked Windows session. Before it starts the app, it checks the session and fails at once with the reason if it is a Windows service session 0 , a locked screen, or a disconnected Remote Desktop session. forgeqe desktop doctor runs the same check. To run the suite every night on a machine of your own, see DESKTOP CI.md DESKTOP CI.md : a runner set up in the user's session ci/desktop runner/prepare runner.ps1 , a nightly workflow ci/desktop runner/desktop nightly.example.yml , and junit results. Updating UFO² UFO² is pinned to one commit. Moving it is checked before it is pinned: 1. The ufo update job of .github/workflows/ci.yml runs weekly, or by hand Run workflow, job ufo update with a commit. It sets up that UFO on Windows FORGEQE UFO COMMIT , which takes a full 40 character commit id only , runs the adapter tests against its real code and a scripted explore of Notepad, and says in the job summary whether it passed. 2. When it passed: bun scripts/ufo bump.ts \u003ccommit writes the new pin into src/desktop/setup.ts , py/forgeqe desktop/ufo runner.py and this page. Run the tests and push; the Windows CI job tests the pin again. When it fails, the failing step names what changed in UFO usually the action executor or the config layout that the adapter wraps . Keep the pin until the adapter is updated for it. Checks of the outcome A recording of actions only proves the steps run. When UFO has finished, and before the app closes, explore shows the model the goal and the app's controls with the text each shows now, and the model picks up to three whose text proves the goal a status message, a saved value , by number, with the part of the text to expect. A check is kept only when that text really is in that control, so the model can choose among what is on screen but never invent it; text holding a desktop.secrets value is never offered. The checks are saved as expect steps at the end of the workflow, and the report says how many there are. With none, the report and the agent say so: add expect steps by hand. Recording UFO's own step log names the control and a per step id, not its AutomationId, so the adapter wraps UFO's ActionExecutor.execute and records each action with the UIA properties of the control it acted on. record.py turns that trace into steps: click input → click / double click , set edit text → type , keyboard input → keys one allowed chord or type , select → select . Coordinate clicks, scrolls and anything else are listed as not recorded in the report. A typed value equal to a desktop.secrets value is written as its placeholder; typed text that only looks like {{…}} is kept literal, so a model told to type {{secret:X}} cannot make replay type the secret. Security The YAML, the trace, the app's screen text and the model's replies can all be written by someone else. The rules in the repository's CLAUDE.md apply; for this engine: No command in the workflow. app: names a desktop.apps entry: an absolute .exe a .bat or .cmd would run through cmd.exe , which reparses its arguments and an argument list, started with subprocess.Popen path, args . UFO gets UI tools only. Each explore writes UFO's mcp.yaml with UICollector , HostUIExecutor and AppUIExecutor . UFO's default CommandLineExecutor , which runs shell commands, and its Word, Excel, PowerPoint and PDF executors are left out. The adapter starts the app, so UFO never launches a program. Keys: during explore the adapter refuses UFO's Windows and menu keys too, and the report lists what it refused. No one at the console: UFO's safe guard asks before sensitive actions; explore answers no, since nobody is there. Environment: the engine process gets system settings, the profile's key variable or Entra's and desktop.secrets , nothing else desktopEnvNames . Explore controls the real mouse and keyboard. It asks before starting yes to skip; required with no terminal . Use a test machine or VM and a test account. Agent tools: a workflow path the agent gives must be a .yaml inside the working folder or the reports folder real path, so a link out is refused ; variables are names and text only; heals are reported, never written. Healing: the model picks one of the window's real controls by number; control text is passed as data, and any other answer heals nothing. Heals are written into the workflow only when accepted. Report: every value is escaped; images are only the engine's own steps/NNN.png and images/NNN baseline actual diff.png . Baselines: expect image names are file names, and their real path must be inside the workflow's baselines folder, so a workflow cannot read or overwrite another file. Unattended machines: prepare runner.ps1 never handles a password; automatic sign in uses Sysinternals Autologon, which stores it encrypted. Install: UFO is cloned and checked out at the pinned commit or FORGEQE UFO COMMIT , a full commit id only , and the checkout's HEAD is verified; replay's packages are pinned to exact versions. Code File Contents src/desktop/command.ts forgeqe desktop : setup, apps, doctor, validate, explore, record, replay folders, data , junit , update baselines ; heal acceptance src/desktop/junit.ts JUnit XML for a suite src/desktop/edit.ts Changes to a workflow from chat: shapes, applied with comments kept, validated, diff, backup src/desktop/run.ts Explore and replay as the CLI and the agent's tools run them; variables, CSV rows, workflow paths src/mcp/desktoptools.ts ForgeQE's agent's test apps , desktop explore , desktop record , desktop replay , desktop edit workflow src/desktop/bridge.ts Starts python m forgeqe desktop serve , passes events on, records model calls in the usage ledger src/desktop/setup.ts The desktop environment, the pinned UFO checkout ufoCommit , desktopDoctor scripts/ufo bump.ts Pins a new UFO commit in every place that names it ci/desktop runner/ prepare runner.ps1 and the nightly workflow example for unattended runs src/desktop/report.ts report.html for a run py/forgeqe desktop/service.py serve : the JSON lines protocol, replay and explore runs, run.json py/forgeqe desktop/workflow.py Load, validate and save workflows; variables and secrets; the key chord grammar py/forgeqe desktop/apps.py desktop.apps : the app allowlist and the argument array a launch uses py/forgeqe desktop/models.py The profile through the openai SDK; image checks py/forgeqe desktop/ufo bridge.py UFO's model blocks, and the forgeqe model service py/forgeqe desktop/ufo runner.py UFO's config, the action trace and key guard, running UFO in process py/forgeqe desktop/record.py Trace to workflow steps py/forgeqe desktop/replay.py Runs a workflow on a Driver : timeouts, retries, wait for , dismissing dialogs, heal and stop py/forgeqe desktop/handrecord.py Recording by hand: clicks, typing, chords and checks as steps; secrets py/forgeqe desktop/handhooks.py The Windows hooks and UI Automation lookups that feed it py/forgeqe desktop/visual.py expect image : baselines, pixel comparison, diff images py/forgeqe desktop/session.py Whether this Windows session can be driven service, locked, no screen py/forgeqe desktop/heal.py One model call to re find a moved control py/forgeqe desktop/memory.py App memory: an explore replays what earlier ones did before calling the model, and a heal found once is reused mobile too py/forgeqe desktop/checks.py One model call for checks of the outcome, kept only when on screen py/forgeqe desktop/pywinauto driver.py The Windows Driver Tests: bun test tests/desktop.test.ts , and \u003cengine python m pytest tests/desktop q needs openai==1.66.2 and PyYAML; they use a fake driver and a fake UFO, so they run on any OS . Before first use on Windows Verified in CI: setup with and without ufo , replay, healing, the CLI, and UFO's own code with the adapter its config, its model calls routed to the profile, the action trace, UI tools only . Still to check, on a Windows test machine with your apps: 1. UIA coverage: Inspect.exe shows the controls that matter with stable AutomationId s. Custom grids, Java needs Java Access Bridge , Delphi, SAP GUI and Citrix vision only are where UIA falls short. 2. Explore with your model: one goal with an Azure profile and one with auth: entra ; trace.json has the controls' AutomationIds, and ufo/ has UFO's logs. 3. Replay: the recorded workflow passes 10 runs out of 10; a renamed control is healed. 4. Cost and time of one explore, from forgeqe usage. Found by the Windows runs and fixed: UFO's pins need Python 3.10 pandas 1.4.3 ; UFO prints emoji panels to stdout, which is the engine's event stream and crashed on the cp1252 console now sent to stderr, characters replaced ; an error in UFO's own evaluation lost the recorded actions the trace is now kept and saved . Next steps 1. The checks above. 2. forgeqe suite and test cases from Azure DevOps, Jira and Xray for desktop workflows, with results written back. 3. Scribe: export a workflow as pywinauto code or C with FlaUI in the user's repo. 4. App adapters where UIA falls short: Java Access Bridge, SAP GUI scripting, vision only for Citrix. 5. A pipeline template for a self hosted Windows runner signed in to a desktop session."},{"t":"Desktop in CI","u":"docs/desktop-ci/index.html","g":"More documentation","h":[["What breaks a desktop run, and how ForgeQE tells you","what-breaks-a-desktop-run-and-how-forgeqe-tells-you"],["Set up the test machine","set-up-the-test-machine"],["Leaving Remote Desktop without locking the session","leaving-remote-desktop-without-locking-the-session"],["The nightly job","the-nightly-job"]],"x":"Desktop replay clicks and types into real windows. It needs what a person at the machine would have: a signed in Windows session, unlocked, with a screen. GitHub's hosted windows 2022 runners have that, and ForgeQE's own CI runs Notepad there. Your own apps usually need a machine of your own, with the app installed, its test database, and a network route to its servers. This page sets one up as a GitHub Actions self hosted runner. The same rules apply to Azure DevOps agents and Jenkins nodes. What breaks a desktop run, and how ForgeQE tells you Situation Effect Fix The runner is a Windows service Session 0 has no desktop; every control lookup times out Run the runner in the user's session below The screen is locked Windows sends no input to apps No inactivity lock, no screen saver lock A Remote Desktop session was disconnected The session is locked Leave Remote Desktop with tscon below , or don't use it on the test machine The machine slept or the screen turned off Input and screenshots stop Power plan: never sleep, never turn off the screen After a restart nobody signs in No session at all Sysinternals Autologon Before each replay or explore, the engine checks the session py/forgeqe desktop/session.py . On a session it cannot drive, the run fails at once with the reason, instead of timing out step by step. forgeqe desktop doctor runs the same check from a shell or a job: It exits with 1 when the desktop cannot be driven, so a job stops before the suite runs. Set up the test machine Use a test machine or VM, and a test account: the runner's jobs control its mouse and keyboard. 1. Sign in as the account the tests will run as. 2. Install the runner GitHub: Settings → Actions → Runners → New self hosted runner . Give it the label forgeqe desktop . When config.cmd asks whether to run as a service, answer no . 3. Run ci/desktop runner/prepare runner.ps1 in an elevated PowerShell WhatIf first to see the changes : It stops sleep, screen off and the screen saver lock. It turns the inactivity lock off and registers a logon task that starts run.cmd in this account's session. It warns you if the runner is also installed as a service. It never handles a password. 4. Sign in automatically after a restart with Sysinternals Autologon https://learn.microsoft.com/sysinternals/downloads/autologon , run as the test account. It stores the password encrypted by Windows. Never put the password in a script, a registry value you write yourself, or the repository. 5. Fix the screen size. A visual check expect image compares pixels, so the resolution and scale 100%, 125% must match the machine where its baselines were saved. Set them once and leave them. 6. Restart and check that the runner shows as idle on GitHub. Then run forgeqe desktop doctor from a job. Leaving Remote Desktop without locking the session Closing a Remote Desktop window disconnects the session, and Windows locks it. To leave it running instead, hand the session back to the machine's console. In an elevated prompt inside the Remote Desktop session: On a VM, the hypervisor's console Hyper V, VMware, VirtualBox needs no such step. The nightly job ci/desktop runner/desktop nightly.example.yml is a ready workflow. Copy it into .github/workflows/ in the repository that holds your desktop workflows. It: runs at night on self hosted, windows, forgeqe desktop , one run at a time; installs a pinned ForgeQE and runs forgeqe desktop setup and forgeqe desktop doctor ; replays every workflow in a folder: forgeqe desktop replay desktop tests/ junit results/desktop.xml ; keeps the reports, screenshots and image diffs as an artifact. junit writes one test case per workflow and per CSV row with data , which CI servers show as test results. runs.json in the output folder has the same, with the path of each report. Secrets the workflows type {{secret:NAME}} come from the CI's secret store as environment variables, and must be listed in desktop.secrets or the environment's secrets in env.yaml . Pick the environment with FORGEQE ENV or env . Healing calls the model. In a nightly run, either give the job the model's key so moved controls are healed and reported in heals.json never written into the workflow without accept heals , or pass no heal so a moved control fails the run."},{"t":"Mobile apps","u":"docs/mobile/index.html","g":"More documentation","h":[["Use","use"],["Apps and settings","apps-and-settings"],["Devices","devices"],["Workflow YAML (forgeqe-mobile-v1)","workflow-yaml-forgeqe-mobile-v1"],["Explore","explore"],["Maestro","maestro"],["TestMu AI (formerly LambdaTest)","testmu-ai-formerly-lambdatest"],["Security","security"],["Code","code"]],"x":"Status: the engine and its tests run on any OS, against a fake Appium server and a stand in for Maestro. The CI job The android job of .github/workflows/ci.yml runs it on an Android emulator: Appium explores and replays the emulator's Settings app, and Maestro replays the same workflow. iOS runs the same code with the XCUITest driver, but no CI job tests it yet it needs a macOS runner with a simulator . ForgeQE drives mobile apps two ways, and one workflow format runs on both: Appium Maestro Runs step by step, through an Appium server yours or a device cloud's the whole workflow as one Maestro flow Explore a goal with the model yes no Heal a control that moved yes, one model call, reported for review no Visual checks expect image yes no Your team's own flows n/a forgeqe mobile maestro , checked against an allowlist Needs appium with UiAutomator2 Android or XCUITest iOS , a device or emulator maestro and a device or emulator Use Or ask ForgeQE's agent in the shell or forgeqe run : \"sign in to the courier app and save it as a test\", \"replay the courier login on Maestro\", \"run our Maestro flows\". Its tools are mobile explore , mobile replay and mobile maestro . It asks before each one starts, and desktop edit workflow fixes a mobile workflow after a failed replay, the same way as a desktop one. Apps and settings Mobile apps come from the active environment in env.yaml, or from mobile.apps in forgeqe.yaml: Each run writes a folder under the reports folder mobile explore … , mobile replay … , mobile maestro … with run.json , report.html , step screenshots, and for Maestro runs the flow, maestro.log and Maestro's JUnit report. Devices Say what each device is and where it runs; Settings → Mobile edits all of it. ForgeQE builds what Appium, Maestro and the cloud need from that and the app: the W3C capabilities platformName , appium:udid , bstack:options , LT:Options , … , the cloud's hub address, Maestro's device , and TestMu's HyperExecute YAML. Nobody types capabilities. Devices on this computer are in forgeqe.yaml: Devices on TestMu AI or BrowserStack are in that cloud's own file, the one browser.providers links .forgeqe/testmu.yaml , .forgeqe/browserstack.yaml , beside its browsers and with the same sign in. Settings → Mobile shows each file's devices and edits them; Integrations edits the file's browsers and its browser devices. A file with only mobile devices sets up no browser on that cloud. Which devices run. Every device with enabled on the default , of the app's platform: an Android workflow skips the iOS devices. devices pixel8,galaxy or the agent's devices names some for one run. At once. mobile.parallel of them at a time. Devices on this computer running at once get their own driver ports appium:systemPort 8200+, appium:wdaLocalPort 8100+, appium:mjpegServerPort 9100+ on the one Appium server. On TestMu, mobile.parallel also caps HyperExecute's concurrency. Maestro runs on each device on this computer, and as one HyperExecute job for TestMu's real devices and one for its emulators . It does not run on BrowserStack here: replay those with Appium. Results. Each device's run is in a folder of its own inside the run's folder, with devices.json listing each one's result and report. The run passes only when every device passes; junit has one case per device. The cloud check. Before a run, ForgeQE asks each cloud whether it has the real devices listed; for one it does not, it offers the most similar in a terminal and swaps only that device, this run only. explore works through a goal once, on the first device in use. mobile.appium.capabilities is still added to every session, for the rare setting ForgeQE does not make. Without mobile.devices , the device is the one mobile.appium its URL and capabilities and mobile.maestro device , testmu name, as before. Workflow YAML forgeqe mobile v1 Ops: launch , tap , double tap , long press , type , expect , expect image , swipe direction up, down, left or right, optionally on a target , scroll to scrolls until the target is on screen , back , hide keyboard , keys enter , back , tab , delete , search , wait , wait for , close . Timeouts, retries and dismiss work as in desktop workflows. Explore saves a tap on a system dialog another package's control, such as Android's notification prompt under dismiss , not as a step, so the workflow still runs where the dialog never shows; on Maestro, each dismiss target is tapped after a launch if it is there. Targets use the desktop keys, mapped per platform: automation id is the Android resource id with or without the package:id/ prefix or the iOS accessibility identifier; name is the Android text or content desc, or the iOS label; control type is the Android class android.widget.Button or the iOS type XCUIElementTypeButton ; index picks one of several matches. Explore The model sees the goal, its steps so far, the numbered controls on screen with the text each shows, and a screenshot when the profile takes images. It answers with one action on a control by its number tap, long press, type , a swipe or scroll, back, or done. So it can only act on a control that is on screen. When it says done, it picks checks of the outcome from the controls' current text, kept only when that text is really there, as on the desktop. The app's text is passed as data. Maestro ForgeQE workflows on Maestro. driver maestro writes the workflow as a Maestro flow flow.yaml in the run folder and runs maestro test . Maestro's debug output gives each workflow step its result. Variables are filled in first. Values are matched literally, so Maestro's regular expressions never see them as patterns. A secret becomes ${MAESTRO NAME} , which Maestro reads from the environment ForgeQE gives it, so a secret's value never lands in the flow file or on a command line. A value holding ${…} is refused, because Maestro would run it as JavaScript. Your team's flows. forgeqe mobile maestro \u003cfiles or folders checks each flow, and every flow it runs, before Maestro gets it: Only UI commands pass: launchApp , tapOn , inputText , assertVisible , scrollUntilVisible , swipe , extendedWaitUntil , runFlow , repeat , retry and the like. These are refused: runScript , evalScript and assertTrue , which run JavaScript. Maestro's AI commands, which send screenshots to a service. takeScreenshot , recordings and addMedia , which read or write files. ${…} may only name a variable ${USERNAME} , never an expression. when: {true: …} is refused, because it is JavaScript. openLink takes http s or the app's own deep links, never javascript: , file: or intent: . runFlow files must be .yaml inside the working folder; links out of it are refused too. Nesting stops at 5 levels. A refused flow does not run, and the error names the command. TestMu AI formerly LambdaTest Both drivers run on TestMu's devices. Upload the app once, then use the lt:// id it returns as the app's app : From the shell, ask in words \"upload builds/courier.apk to TestMu for courier\" : mobile upload asks first, uploads the build it must be inside the working folder , and saves the lt:// id as that app's app: in forgeqe.yaml. The user and key come from LT USERNAME and LT ACCESS KEY or the variables the config names , for example in a .env file in the project folder. samples/mobile testmu/ is a ready project with TestMu's Wikipedia sample app. Appium needs nothing else: the Appium driver talks to the hub with the user and key from the two variables. Maestro runs through HyperExecute. ForgeQE writes a HyperExecute project in the run folder and starts the CLI. The project holds the flows in their folder layout so runFlow still works , the app an lt:// id is passed as the device's appId ; a build file is uploaded with the project , a fixed setup script Android platform tools 35.0.2 and Maestro 2.6.1 from its release, both checked against their SHA 256 and a fixed run script, and hyperexecute.yaml . Team flows are checked against the allowlist first, as always. Flow file names may only use letters, digits and . / , because HyperExecute's shell reads them, and no folder or file may be hidden except a top level .maestro/ hidden files of the working folder never leave the machine . After the job, ForgeQE downloads its artifacts Maestro's command results and JUnit reports , so each step gets its own result in the report. A job on several devices more than one entry in devices , or a pattern brings back one run per device: the steps show the first device that failed, or the first device when all passed, and the job's page has each one. The job's link is printed from either hyperexecute.lambdatest.com or hyperexecute.testmu.ai . Devices are checked first. On TestMu Appium or Maestro and BrowserStack Appium , replay , maestro and explore read the cloud's device list before they start TestMu's list for the region, BrowserStack's devices.json and check each configured device, exact or a pattern. A device the cloud does not have would wait in its queue and time out QUEUE TIMEOUT DEVICE UNAVAILABLE , so ForgeQE offers the devices most like it instead: the same model on other OS versions, then the same family. In a terminal you pick one for this run; without one it stops and names them. device \"Pixel 8 13\" runs on another device this time several, comma separated, for Maestro , no device check skips the check, and forgeqe mobile devices lists what the cloud has. The list says what a cloud offers in the region, not whether a device is free this minute. TestMu's emulators real device: false , isRealMobile: false are not in it and are not checked. Videos. TestMu records each Maestro flow as an App Automation session its dashboard, not the HyperExecute job page, shows the video . Each run is its own build there, and after the job ForgeQE saves each flow's recording as videos/\u003cflow .mp4 in the run folder, plays it in the report's Artifacts tab, and prints it with the session's TestMu page. A video TestMu has not finished is waited for briefly; a run never fails for want of one. Secrets on Maestro on TestMu: a workflow that types a secret is refused there for now HyperExecute would need the value in its own vault . Replay it on TestMu with driver appium . For the same reason, a team flow that reads a ${NAME} variable its own env: blocks do not set is refused on TestMu locally it could come from the environment ; run it with a local maestro . The access key is passed to the CLI as an argument. It is removed from the CLI's output and from every file in the run folder. Neither the user name nor the key is passed to the flows' environment. maestro and the hyperexecute CLI are started without ForgeQE's own secrets the model's key, service tokens in their environment; only the mobile engine itself holds them. The testmu job of .github/workflows/ci.yml Run workflow, job testmu runs all three on TestMu Appium, Maestro with a workflow, a team flow with TestMu's Wikipedia sample app, once the repository has the secrets LT USERNAME and LT ACCESS KEY . Security No commands from the workflow or the model. app: names a configured app a platform and an id . Appium is spoken to over HTTP, and maestro is started with an argument list, never a shell. Locators go into XPath as quoted literals, so a target cannot change the query. Secrets: {{secret:NAME}} reads only mobile.secrets and the environment's secrets, and ForgeQE's own keys are refused there. Explore types a secret from its placeholder, so the model never sees the value. The engine's environment holds system settings, the profile's key, the listed secrets, the cloud's user and key, and JAVA HOME / ANDROID HOME , nothing else. Cloud credentials come from the variables mobile.appium.username env and access key env name; a user or key in the URL is refused. TLS is verified as usual. App builds are absolute paths to an app file, https URLs, or a device cloud's own upload ids bs:// , lt:// , storage:filename= ; file:// and other schemes are refused. Code File Contents src/mobile/command.ts forgeqe mobile : apps, doctor, explore, replay folders, data , junit , driver , maestro, flow, validate src/mobile/run.ts Requests to the mobile engine, its environment, Maestro flow paths, the doctor src/mcp/mobiletools.ts ForgeQE's agent's mobile explore , mobile replay , mobile maestro py/forgeqe mobile/appium driver.py The Appium driver: W3C WebDriver over HTTP, the replay Driver py/forgeqe mobile/maestro.py Workflows as Maestro flows, the allowlist for team flows, running maestro test py/forgeqe mobile/hyperexecute.py Maestro on TestMu: the HyperExecute project and running its CLI py/forgeqe mobile/explore.py The model's action loop on Appium py/forgeqe mobile/service.py serve : replay, explore and maestro runs, run.json py/forgeqe mobile/apps.py The mobile app allowlist and its capabilities The rest is shared with the desktop engine: forgeqe desktop.workflow validates both formats, and replay.py , heal.py , checks.py and visual.py run on either driver. memory.py app memory, under \u003cmemory dir /mobile/ lets an explore replay what earlier explores of the app did before it calls the model, and a replay reuse a target an earlier heal found. Tests: \u003cengine python m pytest tests/desktop/test mobile.py q a fake Appium server and a stand in Maestro; any OS , and bun test tests/mobile.test.ts ."},{"t":"Containers","u":"docs/containers/index.html","g":"More documentation","h":[["Use","use"],["Declaring services","declaring-services"],["Compose files","compose-files"],["The project network","the-project-network"],["Tests in a container","tests-in-a-container"],["The workspace","the-workspace"],["The browser in a container","the-browser-in-a-container"],["Testcontainers (Scribe)","testcontainers-scribe"],["Mocks","mocks"],["Lifetime","lifetime"],["Security","security"],["Code","code"]],"x":"Status: the tests run against a fake runtime on any OS. They check the commands ForgeQE builds, the checks on config, compose files, mounts and secrets, the mock stubs, and tests in a container. tests/containers.live.test.ts runs on real Docker and is skipped without it : Postgres from forgeqe.yaml and from a compose file. A WireMock mock that answers a recorded run's calls. A tests container that reaches the database by name and writes its results into the repository as this machine's user. The containers job of .github/workflows/ci.yml runs both on GitHub's Docker. There, a skipped live test fails the job. ForgeQE uses Docker or Podman, when one is installed, for five jobs: Services a test run needs: a database, a queue, a cache, or the API under test. The project declares them in forgeqe.yaml, or in a docker compose file that forgeqe.yaml names. Mocks of an API: WireMock stubs made from the calls a browser run recorded, or from an OpenAPI description, so the tests can run without the real service. The repository's tests in a container: run tests runs the command the user confirmed in an image, instead of on this machine, after starting the services the tests need. A workspace for the coding agents: with containers.workspace , Scribe's shell commands build, restore, run, git and every test ForgeQE runs for it go to a container of the project's image. The agents stay on this machine. A browser in a container: with browser.provider: docker , the browser agent, the replay and Scribe's live browser drive Chromium in a container of Microsoft's Playwright image. Scribe also has a testcontainers skill, for tests that start their own services from code below . ForgeQE's agent uses them through two tools, services and mock service . The CLI has forgeqe services . When neither Docker nor Podman is on PATH, the agent isn't offered these tools. Use In the shell or forgeqe run , you can ask, for example: \"start the database\" \"is the queue up?\" \"mock the payments API from the last run\" \"make a mock service from openapi.yaml and point order api at it\" \"stop the services\" The agent asks before it starts anything. Declaring services Setting Rule Service name Lower case letters, digits and , starting with a letter. Names starting with mock are kept for mocks. image Must have an exact tag or a digest. An untagged image or latest is refused, because it changes under the same name. ports Always bound to 127.0.0.1. An address such as 0.0.0.0:5432:5432 is refused. env Plain values on one line. Secrets go under secrets . secrets Variable names. They are passed to the runtime by name env NAME , so the value is never on a command line. One of ForgeQE's own keys a model key, a tracker token is refused. volumes Always read only. Must be inside the folder of forgeqe.yaml, and can't be the whole folder. command A list of arguments, never one command string. depends on Services to start first. Anything else Refused with an error, not ignored. That includes privileged , network , cap add , devices , user , pid and the socket. Every service, whether from forgeqe.yaml or a compose file, can list depends on . up starts a service after the ones it depends on; a circle is refused. Compose files ForgeQE reads each service of the file and translates it into a forgeqe.yaml service. The same rules then check it, and a service declared in forgeqe.yaml wins over the compose file's service of the same name. Compose itself never runs. Compose ForgeQE image Required; an exact version or a digest. build is refused: build and tag the image first. ports \"5432\" , \"15432:5432\" , \"127.0.0.1:15432:5432\" , or the long form; always bound to 127.0.0.1. Any other address, and UDP, are refused. environment Plain values are passed as they are. KEY: ${KEY} , KEY alone in the list form, and KEY: ${KEY: default} pass the variable by name as a secret. ${OTHER} under another name, and values that mix text and ${…} , are refused. volumes Bind mounts ./db/init:/docker entrypoint initdb.d are mounted read only, and :rw is noted. Named and anonymous volumes are left out, so the container keeps no data between runs. A path outside the project is refused when the service starts. command A list, or a string split into arguments compose uses no shell, and neither does ForgeQE . depends on List or map form: the start order. condition is not used; ForgeQE waits until each service is ready. x forgeqe ready , timeout , description , as in forgeqe.yaml. Without ready , a service with ports is ready when its first port takes connections. container name , restart , labels , healthcheck , networks , expose , deploy , profiles , … Ignored: ForgeQE names, labels and networks the containers itself. privileged , network mode , cap add , devices , pid , ipc , user , security opt , volumes from , env file , entrypoint , extends , … Refused, and the error names the setting. What was left out a named volume, a mount made read only is listed in notes . The project network Each project's containers join their own network, forgeqe \u003cproject , under their service name. So the API container reaches the database as db:5432 , and the tests container reaches both. No other container joins the network, and no container is on the host's network. forgeqe services down with no names also removes the network. Tests in a container With containers.tests set, run tests runs the tests in that image unless it is called with in container: false . Its confirmation says where the tests will run. The container: Runs the command the user confirmed with the image's own shell, sh c \"\u003ccommand \" , inside the container, never on this machine. Mounts the repository read write at its own path and works in it, so results land where ForgeQE reads them. On this machine, the tests already have the whole disk. A folder outside the repository that the results go to is mounted the same way. Runs as this machine's user user uid:gid , so files it writes are yours. It also gets security opt no new privileges , pids limit 4096 and rm , and it is removed by name when the run ends or is stopped. Gets only these variables: CI=1 , NO COLOR , HOME=/tmp , the environment's FORGEQE ACTIVE ENV , FORGEQE APP and FORGEQE VAR , the saved logins' variables, and containers.tests env and secrets . Secrets are passed by name. ForgeQE's own keys are never passed. Has secret values removed from its output , as on this machine. This needs a Linux or macOS machine, because the repository is mounted at its own path. The workspace With containers.workspace set: Scribe's shell runs in the container. The agent runtime runs each command as $SHELL c \u003ccommand . ForgeQE sets SHELL to a script that runs the same command with docker exec … sh c \u003ccommand , in the same folder, in the workspace container. A folder outside the repository is refused, since the container has only the repository. The agent is told its commands run in a Linux container of that image. Every test ForgeQE runs goes to the same image: the coding loop's runs, heal , suite 's existing tests and run tests . Each run gets its own container docker run rm , so stopping a run removes it. Browsers the test starts are found with docker top , as ForgeQE finds them on this machine. What stays on this machine: the agent runtime, the model key, ForgeQE's other secrets, the file tools read, edit, write; the repository is the same folder in both places , and ForgeQE's own agent, which works with you on this machine and keeps its shell here. FORGEQE HOST RUN=1 runs everything on this machine for a session. The container: one per ForgeQE process and project, forgeqe \u003cproject workspace \u003cid , removed when ForgeQE ends; the repository mounted read write at its own path; credential files in it .env , .env. except templates, .npmrc , .netrc , .pem , .key , id keys covered with an empty read only file, and .ssh , .aws , .azure , .docker , .kube and .forgeqe/sessions with an empty folder; HOME on the project's volume forgeqe \u003cproject home , so NuGet, npm and pip caches outlive the session. Docker creates the volume for root, so ForgeQE runs chown in it once, with a fixed command; this machine's user user uid:gid , no new privileges , pids limit 4096 , the project network; only CI=1 , HOME , the env and secrets listed, and, in each command, the environment's FORGEQE APP and FORGEQE VAR and the saved logins' variables, by name. containers.tests still names the image run tests uses when it is set. Without it, run tests uses the workspace's image. This needs a Linux or macOS machine, as tests in a container do. The browser in a container One container per use: each browser run a suite runs suite.parallel at once gets its own, and a coding job gets one that its replay and live browser share. Each is removed when its run or job ends. Connection: Chromium listens on 127.0.0.1 inside the container. CDP has no authentication of its own, so a small gateway in front of it BROWSER SERVER in src/containers/browser.ts , run with the image's Node.js accepts a connection only with a random 48 character token in its path, compared in constant time, and refuses a browser Origin that is not local. The port is published on 127.0.0.1 only. The token reaches the engine, the replay and the live browser's MCP server through the environment, never a file or a command line. Visible or headless: a visible browser runs on Xvfb inside the container. Sites that turn headless browsers away see an ordinary one, but you do not see it on your screen. Runs keep screenshots and traces as usual. Reaching the app: the container joins the project network, so a declared service is reached by its name http://order api:8080 . An app this machine serves is http://host.docker.internal:\u003cport ; localhost is the container itself, and ForgeQE warns when a run starts there. Replay: one pass, in a new browser context. The second pass without Playwright's automation switches needs a launch, which a running browser does not have. A run explored in a container is replayed in one even when the provider is changed back later run.json . Testcontainers Scribe When a test needs a real service, or the repository already uses Testcontainers Java, .NET, Node, Python, Go , Scribe loads the testcontainers skill. It reuses the repository's containers and fixtures, pins images, waits for readiness, uses the mapped port, and sets the app's own configuration from it. It never uses privileged mode, the host network, the Docker socket, or a docker command from a test. These containers belong to the tests in the repository: the tests start and stop them, wherever they run. Mocks mock service builds WireMock stubs and runs WireMock on a free port of 127.0.0.1: From a run the default: the latest run, or run dir : One stub per method, path and query of the app's own API calls, answering with the last status, content type and body the app got. Other sites' calls are left out unless third party is set. Failed calls are left out. Answers that were cut when recorded are listed under skipped . From a description spec : OpenAPI 3 or Swagger 2, a link or a file : One stub per REST operation. Each stub answers with the operation's first success status and a body from the schema's examples, or values made from its types. A path parameter /orders/{id} matches any one path segment. Instead of a description, you can give a contract set from api contracts set id . GraphQL, SOAP and gRPC are listed under skipped , not mocked. A spec given as a link is fetched by ForgeQE itself, with no credentials, as api contracts does. The stubs are written to .forgeqe/mocks/\u003cname /mappings/ . You can read and edit them there. The folder is mounted read only at /home/wiremock/mappings . WireMock runs with enable stub cors , so a web app on another local port can call it. With for app: \u003capi app , the active environment's API app points at the mock for the rest of the session. That covers the API tools, and the tests ForgeQE runs, which read FORGEQE APP \u003cAPP URL . env.yaml itself is not changed. Lifetime Services and mocks the agent starts are removed when the shell, forgeqe run , or forgeqe mcp ends, as are the workspace and browser containers forgeqe.kind workspace and browser . The home volume stays. forgeqe services up keeps its services running after the command ends, until forgeqe services down . Container names are forgeqe \u003cproject \u003cservice . \u003cproject is a hash of the project folder, so two projects never share a container. Starting a service replaces its earlier container. Removing a container also removes the anonymous volumes its image declares a database's data folder , so nothing is left on the machine. A container is never reused with old settings. Labels: each container carries forgeqe=1 , forgeqe.project , forgeqe.service and forgeqe.kind . down and status look only at this project's containers. Security ForgeQE's agent reads text other people control: tickets, web pages, repositories. A container command built from that text could mount the whole disk or run privileged, so: No commands from the model. The agent names services that forgeqe.yaml declares, and ForgeQE builds the argument array docker run … . It never uses a shell. Images, flags and mounts never come from a request. The same restrictions for every container: security opt no new privileges , pids limit 1024 , ports on 127.0.0.1, and read only mounts. There is no setting to turn these off. Mounts are checked like uploads except a mock's stubs folder, which ForgeQE writes itself and mounts read only . The path is resolved with realpath and must be inside the project. A mount that is or holds a hidden file or folder .env , .git , .npmrc , a file named like a key .pem , id rsa , llms.json or a link is refused. A container can send what it reads anywhere. Environment: The docker and podman programs see only the system settings and the variables they need to find their daemon DOCKER HOST , DOCKER CONTEXT , CONTAINER HOST , … , plus the service's listed secrets. A container gets only its env and secrets . Logs and errors have secret values replaced with . Not in the agents' shell: docker , podman , nerdctl , docker compose and podman compose are denied in the shell of ForgeQE's agent and of Scribe. So the only way to start a container is these tools. Asked first: services up and mock service ask the user before starting, as run tests does. Code File Contents src/containers/config.ts containers: in forgeqe.yaml: services, images, ports, env, secrets, mounts, ready checks src/containers/run.ts The runtime docker or podman , run arguments, mount and secret checks, start and wait, status, logs, stop, the session's containers src/containers/mock.ts WireMock stubs from run traffic and from contract sets; values from JSON schemas src/containers/compose.ts docker compose files as services: what is translated, ignored, left out or refused src/containers/tests.ts run tests in a container: arguments, environment, mounts, output, browsers from docker top src/containers/workspace.ts containers.workspace : the container, its home volume, the agent's shell script, its test runner src/containers/active.ts The registered workspaces, by repository: runTestCommand and openSession look them up src/containers/masks.ts The repository's credential files and folders, covered in every container that mounts it src/containers/browser.ts browser.provider: docker : the browser container, its token gateway, the endpoint src/containers/command.ts forgeqe services skills/testcontainers/SKILL.md Scribe's Testcontainers skill src/mcp/containertools.ts The agent's services and mock service Tests: bun test tests/containers.test.ts tests/workspace.test.ts , which use a fake runtime that records each command workspace.test.ts also runs the gateway against a stand in browser, and the agent runtime against the workspace's script . tests/containers.live.test.ts uses real Docker."},{"t":"Product knowledge","u":"docs/product-knowledge/index.html","g":"More documentation","h":[],"x":"What ForgeQE's agents should know about your product, written once and used on every run: what it does, who uses it, the words your team uses, the rules it follows, the data to test with, and where it runs. Fill in the files below or add your own .md or .txt files, in folders if you like and commit them. How the agents use it: ForgeQE's agent sees the list of these files and reads the ones a request needs planning tests, judging a test case, answering about the product . Planning agents exploratory charters, API scenarios get the sections that match the story or scenario. The browser agent gets the few sections that match the goal at most knowledge.browser max chars , default 1500 characters, so runs stay cheap . Sections are found by their headings, so give each topic its own heading. A file you have not changed since forgeqe init copied it is left out: the templates' examples never reach an agent. Never put passwords, tokens, or personal data here: use logins and environment variables for those."},{"t":"Guardrails","u":"docs/guardrails/index.html","g":"More documentation","h":[],"x":"The team's own rules for every agent ForgeQE runs, to keep them grounded. Each bullet line \" rule\" in a .md or .txt file in this folder is one guardrail; headings, other lines and HTML comments are ignored. guardrails.md is the file ForgeQE's agent adds to when you ask it for a new rule. How the agents use them: A file can be for some agents only: start it with a header that names them, by their names in forgeqe context the Settings › Guardrails page writes it for you when you add a file there, pasted or uploaded : Without a header, or with for: all , a file is for every agent; a header that names no agent ForgeQE has is for every agent too, so a typo never drops a rule. Custom agents get every rule. Every agent gets its guardrails with its instructions, above any request, skill, ticket, page or tool output that says otherwise. When a guardrail stops part of a task, the agent skips that part and says which rule stopped it. At most 40 rules of up to 300 characters each are given to the agents, since each one is sent on every model call. forgeqe context shows how much they add. Guardrails are instructions, not a sandbox. What must never happen is also refused in code: hosts outside browser.allowed hosts , pushes, secrets, protected files. Put a host rule in allowed hosts as well as here. Never put passwords, tokens or personal data in a guardrail."},{"t":"Feature test prompts","u":"docs/feature-test-prompts/index.html","g":"More documentation","h":[["Before you start","before-you-start"],["Browser and test cases","browser-and-test-cases"],["Automated tests (Scribe)","automated-tests-scribe"],["Pull requests","pull-requests"],["API and quality","api-and-quality"],["Release, operations, and systems","release-operations-and-systems"],["Recent additions","recent-additions"],["Environments, desktop, mobile, and tool scope","environments-desktop-mobile-and-tool-scope"]],"x":"One prompt for each ForgeQE feature, to check the agent end to end. Type each prompt in the ForgeQE terminal forgeqe start , started in the test project's folder for example playwright csharp pom framework . Before you start Replace the \u003c… placeholders with your own ids a story, a pull request . ⚠ marks prompts that change something outside ForgeQE: Azure DevOps, Teams, git, or the repository. Run those on test data only. Some prompts need an earlier run. 2, 17, 27, and 28 depend on 1 or 9, so run them after it. Don't use test case 2287 for the API + UI check. As written, its step 2 gets a 403 POST /add to cart is not how that site adds to the cart , and it signs in to a personal account. Use 26 instead. Browser and test cases Feature Prompt What to check 1 Browser goals Go to https://www.playwrightautomation.com, open the Practice tab, fill the Text Inputs with realistic values and check they are accepted Steps appear live; the run ends with a pass verdict and a report link 2 Page memory Run 1 again, then: What does ForgeQE know about the Practice page? The rerun replays from memory, faster and with fewer tokens; the answer lists locators 3 Saved logins Sign in to https://www.automationexercise.com/login with the test account and keep the session The login is saved; the password never appears in the chat or the logs 4 Run test cases Run test case 2287 from QI Claims and don't post results Each step has a verdict; report.html and junit.xml are written; nothing is posted to Azure DevOps 5 Test case quality Is test case 2287 in QI Claims good enough to run? Check it against PBI 2286 The card says \"to review\", not \"not runnable\"; the missing expected results are listed 6 ⚠ Write test cases Write test cases for PBI 2286 in QI Claims and show them before saving Each case has expected results and links to PBI 2286; ForgeQE asks before saving 7 Domain and regulatory design Write test cases for PBI 2286 covering PCI DSS obligations for card payments Cases cover card data and masking, and name the regulation 8 Exploratory testing Explore PBI 2286 on automationexercise.com and find bugs beyond the test cases A charter, findings with evidence, and suggested bugs Automated tests Scribe Feature Prompt What to check 9 ⚠ Turn a run into a test Write a Playwright test for the last passed run A handoff; a C test that uses the repository's page objects; ForgeQE runs the test; the reviewer gives a verdict 10 ⚠ Heal failing tests Heal the failing tests in tests/PlaywrightPom.Web.Tests Each failure is healed or reported as an application bug; no test is deleted or skipped 11 Find and run tests Run the Wikipedia tests in this repo The right dotnet test filter command; a pass or fail for each test 12 Flaky tests Which tests in this repo are flaky? Tests ranked, each with evidence retries, mixed results Pull requests Feature Prompt What to check 13 Pull request review Review PR \u003cn in QI Claims and focus on test coverage Findings with file and line, and a verdict 14 Impact and test selection What does PR \u003cn impact, and run only the tests it can break The test list comes from the code graph; only those tests run API and quality Feature Prompt What to check 15 API and contract tests Turn the last run's API calls into contract tests and run them Contracts are saved and run without a browser; a JUnit file is written 16 Accessibility and performance Is the automationexercise.com checkout page accessible, and how fast is it? WCAG findings by severity; LCP, CLS, and INP figures 17 Visual comparison Run 1 twice, then: What changed visually since the last run? Each page is marked same or changed, with diff images Release, operations, and systems Feature Prompt What to check 18 Defect intelligence Which defects in QI Claims keep coming back? Recurring defects, with counts and areas 19 Release readiness Are we ready to release QI Claims? Give requirement coverage A coverage table and a GO, GO WITH RISKS, or NO GO verdict 20 ⚠ Scheduled monitoring Check the automationexercise.com login every 15 minutes and alert Teams if it fails The monitor is scheduled and /monitor lists it; the alert text is clear 21 ⚠ Notifications Post the last suite's results to the Teams QA channel A message arrives in Teams, with a link to the report 22 Reports Write up the open defects in QI Claims as a report I can share report.html and report.md, linked from the card 23 ⚠ CI pipelines Add an Azure Pipelines workflow that runs tests/cases.yaml on every PR, and make it green A pipeline file, the secrets it needs stored, a pushed branch never main 24 Azure DevOps List the last 3 pipeline runs in QI Claims and QI Payments and which failed The agent's plan shows; calls appear in Activity; failure causes are given 25 Setup help What can you do here, and what is still not set up? The features, each with what it still needs Recent additions Feature Prompt What to check 26 API and UI steps in one case Run a case with these steps: 1. Open https://automationexercise.com/products 2. Call POST https://automationexercise.com/api/searchProduct with form body search product=top, expect 200 3. Search \"top\" in the UI, expect \"Searched Products\" api request is used and the server answers 200; workflow.yaml has an api step; the card says \"API … saved as a reusable API scenario\"; the replay passes 27 Reuse or extend existing tests Run 9's flow again with one extra check added ForgeQE offers reuse, extend, or new, with coverage evidence; no duplicate test file appears 28 Reviewer exchange Any Scribe job that needs two or more attempts for example 9 on a new flow \"Reviewer asked for changes\" lists each issue with its fix; \"Scribe tries again\" shows the real error; then the verdict 29 Activities panel During 24, press ctrl+o Activity takes half the width: the plan with spinners, Now and Next, each call shown as it starts; each request has a header row and a result row 30 Refine Type run 2287 and write automation , then press ctrl+r The panel scrolls with ↑↓ and PgUp/PgDn; open questions come first; Use, Edit, and Keep stay visible Environments, desktop, mobile, and tool scope These need an env.yaml with the apps named. The desktop prompts need Windows with a signed in, unlocked desktop. The mobile prompts need an emulator or device with Appium or Maestro , or TestMu credentials in .env . Feature Prompt What to check 31 Environments Which environments and apps do we have? , then Run the smoke cases on uat The apps of each environment are listed by kind; the run opens uat's URLs, not the default environment's 32 Desktop explore In \u003cdesktop app , create a new record named ForgeQE test and save it as a test ⚠ ForgeQE asks before it takes over the mouse and keyboard; a forgeqe desktop v1 workflow is saved with checks of the outcome 33 Desktop replay and heal Replay the last desktop workflow It runs with no model calls; a moved control is healed and listed for review, not saved silently 34 Record by hand Record a desktop test in \u003cdesktop app while I do it Your clicks and typing become steps; a secret you type is saved as {{secret:NAME}} 35 Edit a workflow from chat In that workflow, make step 3 wait up to 20 seconds for the Save button A diff is shown and nothing changes until you confirm; the workflow still validates 36 Visual check Add an image check of the chart to the last desktop workflow An expect image step and a baseline in \u003cworkflow .baselines/ 37 Mobile explore Open \u003cmobile app , sign in as the test user, and save it as a test Runs through Appium; a forgeqe mobile v1 workflow is saved; the password is typed from its placeholder 38 Mobile on Maestro Replay that mobile workflow on Maestro A Maestro flow is written in the run folder with secrets as ${MAESTRO …} , not values; each step has its result 39 Team Maestro flows Run our Maestro flows in .maestro/ Flows with runScript , evalScript or AI commands are refused, and the error names the command 40 TestMu In samples/mobile testmu see its README : forgeqe mobile upload sample.apk , then Replay wiki.yaml on TestMu with Appium, then with Maestro An lt:// id comes back; the run shows on TestMu; the access key appears in no file in the run folder 41 Tool scope /logs after 31 and 37 Each turn's agent.scope lists only the capabilities it was about browser for 31, mobile for 37 , with the reason for each 42 use capabilities Check the accessibility of the home page, then file a bug for the worst issue When the turn did not get the bug tools, the agent calls use capabilities and carries on without asking you again 43 Services in Docker Start the database with containers.services.db in forgeqe.yaml , then is it up? ForgeQE asks first; the card shows db ready on 127.0.0.1; forgeqe services lists it; it stops when the shell closes 44 Mock service Mock the orders API from the last run and point orders at it WireMock starts on a free 127.0.0.1 port; the stubs are in .forgeqe/mocks/orders/mappings ; API tests now call the mock 45 Container guard rails Run docker run v /:/host alpine The shell refuses it; the agent offers the services tool instead 46 Compose file With containers.compose: docker compose.yml : Start the services from our compose file Services start in depends on order; named volumes and read only mounts are listed in notes; a privileged or build service is refused by name 47 Tests in a container With containers.tests set: Run the checkout tests The confirmation says \"in a container image \"; services start first; results are read as usual; files in the repo belong to you 48 Testcontainers Scribe Write an integration test for the order repository against a real Postgres in a repo with Testcontainers Scribe reuses the repo's container fixture, pins the image, and uses the mapped port; no docker command in the test"},{"t":"Architecture","u":"docs/architecture/index.html","g":"More documentation","h":[["Engine (py/forgeqe_engine)","engine-pyforgeqe_engine"],["The path a test follows (capture.py)","the-path-a-test-follows-capturepy"],["Page memory (memory.py, replay.py)","page-memory-memorypy-replaypy"],["Bridge (src/engine)","bridge-srcengine"],["ForgeQE's agent (src/brain, src/mcp)","forgeqes-agent-srcbrain-srcmcp"],["Tool scope (src/mcp/scope.ts, src/capabilities)","tool-scope-srcmcpscopets-srccapabilities"],["Scribe, the coding agent (src/code)","scribe-the-coding-agent-srccode"],["Skills (src/skills)","skills-srcskills"],["Healing (src/heal)","healing-srcheal"],["Finding and running existing tests (src/code/find.ts, src/mcp/repotests.ts, src/cases/sprints.ts)","finding-and-running-existing-tests-srccodefindts-srcmcprepoteststs-srccasessprintsts"],["Test cases and suites (src/cases, src/suite)","test-cases-and-suites-srccases-srcsuite"],["Environments (src/environments.ts)","environments-srcenvironmentsts"],["Desktop apps (src/desktop, py/forgeqe_desktop)","desktop-apps-srcdesktop-pyforgeqe_desktop"],["Mobile apps (src/mobile, py/forgeqe_mobile)","mobile-apps-srcmobile-pyforgeqe_mobile"],["App memory (py/forgeqe_desktop/memory.py)","app-memory-pyforgeqe_desktopmemorypy"],["Memory across every kind of run","memory-across-every-kind-of-run"],["Containers (src/containers)","containers-srccontainers"],["Databases, test data and data flows (src/data, py/forgeqe_data)","databases-test-data-and-data-flows-srcdata-pyforgeqe_data"],["Model router (src/router)","model-router-srcrouter"],["Generated code (src/provenance.ts)","generated-code-srcprovenancets"],["Every other command, from the shell (src/mcp/clitools.ts)","every-other-command-from-the-shell-srcmcpclitoolsts"],["Reports for every kind of run (src/report/runs.ts, src/report/collect.ts, src/api/report.ts)","reports-for-every-kind-of-run-srcreportrunsts-srcreportcollectts-srcapireportts"],["Monitoring (src/monitor)","monitoring-srcmonitor"],["Telemetry (src/privacy.ts)","telemetry-srcprivacyts"],["Profiles and the offline test double","profiles-and-the-offline-test-double"],["Artifacts","artifacts"],["Tests","tests"]],"x":"Three processes. The Bun CLI owns the shell, config, profiles, and ForgeQE's tools. ForgeQE's agent runs on the agent runtime, reads each request, and calls those tools over MCP. Scribe, the coding agent, runs on the same runtime and writes, heals, and reviews tests. A Python engine drives Chrome; three more drive Windows apps py/forgeqe desktop , on UFO² and pywinauto , Android and iOS apps py/forgeqe mobile , on Appium and Maestro , and the team's databases py/forgeqe data , on SQLAlchemy, sqlglot and DB GPT, in its own environment . There is no FastAPI server, and ForgeQE keeps no database of its own: the databases it reads, and writes to when one is marked writable and the user confirms, are the ones databases: names. The single view map of subagents, tools, and capabilities is forgeqe architecture.html ../forgeqe architecture.html forgeqe docs open . Suite report.html includes the browser agent's token counts, and a cost in the machine's currency when the profile has a price. Engine py/forgeqe engine Copied from test agent nexus and trimmed to what a CLI run needs: Module From nexus Contents service.py nexus browser service RunRequest , run browser task memory replay, Agent construction fallbacks, the step callbacks, timeout and stop handling, one save for every way a run ends , error recovery system prompt, MemoryRun , artifact writing llm.py nexus browser service LLM construction azure, openai, openai compatible, ollama , model call timing, token usage browser.py nexus browser service Chrome launch kwargs, waiting for a page to settle, browser and agent shutdown, the browser profile recorded in run.json settings.py nexus browser service Fast mode tuning, headless mode, the default login block urls.py nexus browser service Start URL normalisation and the allowed hosts checks loops.py nexus browser service Progress checks, the repeated control nudge then stop, and the resume point after a failure capture.py new Live capture for the test the run becomes: what each action changed on the page install effects wraps the agent's tools.act , the control a user acts on actionable node , locators checked on the live page verify locators : role and name through Chrome's accessibility tree, the rest in the page , the element and section behind each check locate check , and click selector , a real mouse click on a CSS selected element summary.py nexus browser service Result markdown the agent's own final answer and the checks it recorded; no filtering of what it read , fallback summaries, failure trace and screenshot, the judge's verdict workflow yaml.py browser workflow yaml.py forgeqe v2 compact steps from history or the live trace after a stop , semantic locators, execution metadata cli.py new The stdin/stdout protocol above memory.py new Page memory: element facts from the engine library's DOM, ranked locators with confidence, element identity across visits, recorded flows, prompt hints. Locators follow Playwright: playwright role ok no link role for an \u003ca without href , strip icons icon font characters out of names and text; such a name becomes a role pattern , a scope the nearest ancestor id for a css locator scoped to a repeating item, and the frame an element sits in userlike.py new The agent clicks as a user can: the library's occlusion check raises Covered with what covers the element instead of clicking it from JavaScript, and script clicks this.click through Runtime.callFunctionOn and page typing type to page it still makes are recorded. install effects puts take on each action; record memory results keeps covered by for the click that then worked, and bypass and frame on the step replay.py new Replays a recorded flow through the engine library's Tools and writes the hand off task for the agent logins.py new Saved logins: the engine library's sensitive data per domain, TOTP codes, session files load, split by host, save when changed , and the interactive login command report.py new CaseReport per step verdicts through the engine library's output model schema and steps.json with step screenshots checks.py new record check , the browser agent's action for each result the goal asks to verify: expected and the exact text on the page, refused when the page visible text or form values, over CDP does not show it; service.py registers it on the agent's Tools , adds CHECKS SYSTEM MESSAGE , and on success passes the checks to run.json and workflow.yaml checks diagnostics.py new Console errors, uncaught exceptions, failed and slow requests, and accessibility checks per page, over CDP skills.py new Browser skills: choose skills one structured model call picks at most 3 by name and description; never raises and skills block the chosen skills' text under a header, within skills max chars . run browser task appends the block to the extended system prompt and records what it decided in run.json skills ; the choice's tokens are added to the run's usage brand.py , brand assets.py new ForgeQE start page and overlay in a visible browser; the icon made by scripts/brand.py from assets/forgeqe icon.png Saved logins. The request carries each login's name, domains, and environment variable names; values cross stdin only for logins remembered this session values , and are never logged. use logins builds the engine library's domain scoped sensitive data {domain: {shop username: …, shop password: …, shop bu 2fa code: \u003cTOTP secret }} , so the model sees placeholders, the engine fills values only on matching domains, masks them in page text, and turns bu 2fa code into a fresh pyotp code when typed. Session files for the run's logins are merged into Browser storage state=… . Because the agent closes the browser when run returns, on step end saves each login's cookies and origins cdp get storage state , split by host whenever they change, mode 0600, with a .gitignore in the folder. Page memory records text env / totp env instead of values, so replays and the handoff to the coding agent process.env.X use the current secrets. Session logins src/sessionLogins.ts . Credentials the user gives in a message or test case become a login through the logins tool's remember action: the site and its sign in hosts as domains, FORGEQE \u003cNAME USERNAME / PASSWORD / TOTP as env names, a session file in .forgeqe/sessions/ , and the values held in ForgeQE's process only. executeRun sends allLogins config forgeqe.yaml's plus these, a remembered one replacing a configured one of the same name and passes the goal through redactSecrets , which replaces each remembered password or secret with \" the password of saved login NAME \". runTestCommand puts the values under their env names for ForgeQE's own test runs and redacts them from the output. The brain's notes list remembered logins; its prompt says to remember credentials before the first run and never put them in goals. Step budget. max steps is a checkpoint, not a wall. The library's run gets 3 × max steps , so its budget warning at 75% and forced last step done come at the cap. At each multiple of max steps , on step end looks at the last 10 steps step outcomes : the step's actions ran without an error and the agent's own evaluation at the next step did not call it a failure and carries on when at least 3 worked making progress , logging \"Reached N steps and still making progress\"; otherwise it stops the agent and the summary starts \"Stopped at N steps: the last 10 steps made no progress.\" Page loading. on step start calls settle page before every step after the first: it reads location.href , document.readyState , and the body's text length over CDP every 0.25 s until the page is complete , or interactive with content, for up to 8 s 3 s while the tab stays about:blank , and logs a debug line when it waited a second or more. The library switches to a tab a click opened 50 ms after the click and waits at most 0.3 s before reading the page, so a heavy page used to be read blank and cost a step. The agent's own note actions write file , replace file , read file are in READ ONLY ACTIONS , so they are neither recorded nor stop a replay. Repeated controls. control loop exceeded counts the same click, input, search, or select by element index or text in the last 8 steps. The first time one reaches 4, the agent is not stopped: install nudges wraps the library's inject loop detection nudge , which runs after the library clears its per step context, and the next step's prompt gets \"you have done click \"One way\" 4 times… work out why the earlier attempts did not stick… take a different approach\". Counting restarts after the nudge; reaching 4 again stops the run \"…after the agent had already been told to change approach\" . With a library that has no such hook, the first loop stops the run as before. Resuming a failed run. Each recorded step keeps the agent step it came from MemoryRun.step of ; 0 for replayed steps and the opening navigate . On a failure other than a user stop, resume point picks the step where the run went wrong: where a repeated control loop began, where the last progress window of a stalled run began, or the trailing streak of failed steps. resume steps keeps the recorded steps from before it not only navigation and waits . They go to resume.json in the run folder and under resume in the task's flow file; a later success removes them. Replay then picks, in order: the request's resume from browser run 's resume from , the task's successful flow, the task's resume . handoff task kind=\"resume\" tells the agent where the earlier run went wrong and to take a different approach there. A run that failed because an expected result did not hold outcome: assertion failed keeps the steps up to that check instead assertion resume : MemoryRun.first failed check finds the earliest check recorded with holds: false , by the flow steps done and the agent step when it was recorded , marked assertion: true ; the next run replays them and the handoff tells the agent to check that result again on the page as it is, record it as not holding if it still does not, and not to redo the steps or try other ways to make it true. That is what a reproduce run or a rerun of a failing case needs: the way to the failing check, not another exploration. The resume also keeps that check check : expected, and the text the page showed instead unless a passing check of the run found the same text. With checks first and replay: verify , reproduced by check lets the run look for that text right after the replay with no model: found, the run ends assertion failed with 0 tokens trace source memory reproduced and keeps the resume; not found, the agent takes over with the handoff above. Checkpoints. After each step on step end calls MemoryRun.checkpoint : the steps so far resume steps with no cut off go to checkpoints/\u003cflow file name in the memory folder a separate folder, so recent flows never lists them with the run id and interrupted: true , the same data goes to the run folder's resume.json , and page memory is flushed. MemoryRun.finish removes the checkpoint when this run or the run it picked up wrote it, except for a stopped run; write artifacts removes the checkpoint resume.json from a run that did not fail and was not stopped. The lookup takes the checkpoint after the task's successful flow and before its saved resume , as kind=\"interrupted\" , and handoff task then says the earlier run was cut off and to carry on without repeating the steps. Stopped runs report tokens from the library's token counter, since history.usage is only filled when run returns. Session login values are also set in the engine process's environment one process per run , so a replayed sign in step finds them by env name. Session log src/sessionLog.ts . main opens one log per session for the commands that run something startSessionLog , in the logs folder next to sessions . Lines are \u003cISO time \u003ckind \u003cJSON : session versions, argv, profile, browser and memory settings, login names , agent.ask / agent.turn written after the turn, so credentials the message gave are remembered and redacted , agent.event the agent runtime's events , tool.call / tool.result from createMcpServer , with duration , tool.event what a tool reports while it runs: the coding and healing agents' reads, commands, edits, and test runs, suites, cards; browser run events are left to engine.event , engine.request / engine.event / engine.log every stderr line / engine.exit from runEngine , run.done from executeRun , and error . serialize hides fields named like api key , password , token , or values , clips strings at 8,000 characters 200,000 with debug , and redactForLog replaces remembered login values, secret looking environment variables name parts KEY, TOKEN, SECRET, PASSWORD, PAT, CREDENTIALS, values of 8+ characters , and API keys from llms.json . debug / FORGEQE DEBUG also sets the engine's logging level to debug; debug level engine events go to the log only. bundleLogs forgeqe logs bundle , /logs stages the log, the run folders named by out dir / runDir / run dir in it text files redacted, screenshots only with shots , forgeqe.yaml , profiles without keys, and versions, then tar czf s them. Updating src/update.ts , forgeqe update . findInstalls walks PATH for forgeqe executables, resolves pyenv shims with pyenv which , and classifies each by what it resolves to: a package folder named ForgeQE under .bun bun or elsewhere npm , or a script whose shebang is a Python that imports forgeqe cli pip . latestVersion reads the registry's latest tag with a cache busting query; npmReady needs the version document and a HEAD of the tarball to answer 200, pypiReady the PyPI version JSON, because both registries accept an upload minutes before they serve it. update waits for them waitUntil , every 15 s, 20 minutes by default , then runs and,, or, and reads the installs again to confirm. scripts/publish.sh waits the same way after uploading before it prints Done . Step verdicts. When the goal came from a test case with steps, CASE REPORT INSTRUCTION goes into the system prompt and output model schema=CaseReport makes the engine library's done action return {summary, steps: {step, status, actual} } ; history.structured output becomes case report in the result. If the Agent rejects the schema, the run continues without it. Finishing and the judge. GOAL VERIFICATION SYSTEM MESSAGE is added to every agent's system prompt: done with success only when every field holds exactly what the goal asked for pre filled or extra values in multi value fields removed , every setting the goal names is applied through the page's own controls and shown by the page, and findings are read from the page, items a list already shows are read from it in one step, and a tab that looks blank right after opening is still loading. The engine library's judge use judge is off by default: browser.judge: true passed to the engine as its judge setting or FORGEQE ENGINE USE JUDGE=1 turns it on, and it then makes one model call over the steps and screenshots. It was turned off because it failed completed runs whose answer came from one screenshot five result scores instead of one step per item, and ForgeQE's agent then retried with ever stricter goals. When the agent says success and the judge's verdict is false, the run fails with the judge's failure reason ahead of the agent's report; the verdict goes into run.json as judge . A judge call that errors leaves the agent's result as it was. Window and video. window launch kwargs sizes a local browser from browser.viewport : the page when headless, the window with browser.window: viewport . Otherwise a visible window opens screen sized the engine library's default and, before the first page, maximize window sets windowState: maximized over CDP. With browser.video on the default , the browser is started before the replay or the agent, and start video starts the library's recording watchdog on \u003crun /video.mp4 ; stop video finishes it before the browser closes, and run with events adds it to the run's files. The watchdog encodes Chrome's screencast frames at 30 fps as they arrive, so the video's timing follows how often the page repaints, not the clock. The encoder browser use video : imageio with ffmpeg, numpy is installed with the engine, and added to an engine set up before it. The report lists video.mp4 among the run's files and plays it on the Artifacts tab. Browser profile. At the end of the first step or before writing a trust mode replay , browser profile reads how the browser was set up: the engine's driver, channel and executable, headless, the default switches removed, extra HTTP headers none , Browser.getVersion , and from the page navigator.userAgent , navigator.webdriver , language, time zone, and viewport. It goes into run.json as browser , and the handoff shows it so the coding agent can compare its test's browser with it. Timeline. build timeline writes steps.json from the history and the replayed steps : URL, title, the model's evaluation, memory and next goal, each action with its error, start time t0 and duration, the part of it spent waiting for the model model ms , from wrapping llm.ainvoke and overlapping the calls with the step's step start time / step end time , and a JPEG of the page max 1280 wide under steps/ , subject to report.screenshots . Each action on an element carries box : the element's absolute position from the DOM snapshot the model saw, minus the page's scroll, as fractions of the viewport, so the report can outline it on that step's screenshot. Timeouts, stops, and crashes still write it from the partial history. Diagnostics. Diagnostics registers Runtime.consoleAPICalled , Runtime.exceptionThrown and Log.entryAdded on the engine library's CDP client cdp use allows one handler per event, and the engine library's own watchdogs don't use these three; Network.responseReceived belongs to the downloads watchdog, so failed and slow requests come from the page's resource timing entries, responseStatus and duration, at each sample . It samples at every step start and end and after each replayed step. Each new page by URL without the hash, up to 25 is checked once: Accessibility.getFullAXTree for unnamed buttons, links, fields and images, heading order and the document title, plus a page script for lang , text contrast WCAG ratios, skipping text over images and zoom blocking viewports, with up to five examples each from DOM.getOuterHTML . A request counts as slow from 3 s. assign problems attaches each event to the step it happened in by t0 , at most 25 per step; run.json gets the totals as diagnostics , and the pages go to accessibility.json . report.accessibility: false skips the page checks. Overlay. With a visible browser and browser.overlay on, brand.Overlay puts a \u003cforgeqe overlay element on each page: a shadow root page CSS can't reach it with an edge glow, a bottom bar icon, the step from step text : its intent from next goal , or the \"next goal\" sentence in the model's memory, and its actions in words from plain action , never raw tool parameters; a Thinking / Acting / From memory chip , and a transparent blocker. Window capture listeners, added before the page's scripts, drop trusted mouse, wheel and key events while it is locked. It locks in on step end and replay's gaps between steps, and unlocks in on new step which the engine library calls after the model answers and before the actions run and around each replayed action, so the agent's own CDP input always gets through. Each page gets it from Page.addScriptToEvaluateOnNewDocument on its own target the engine library's cdp add init script covers only the focused one , with the current text baked in and the lock off, since a page can load halfway through a step's actions. The host carries the library's DOM exclude attribute left out of the DOM the model reads , aria hidden , and attached outside \u003cbody , so the accessibility checks skip it. brand.install wraps ScreenshotWatchdog.on ScreenshotEvent to hide it for every screenshot the model's and the report's and replaces the about:blank watchdog's animation, which loads a logo from the library's CDN, with a start page. The status bar's icon is raw pixels on a canvas, so a page's img src policy can't block it or log an error; the start page only appears on about:blank, which has no policy. Headless runs skip all of it. Left out: Mongo persistence, LangGraph, Scrum Studio, and video recording. Nexus's Mongo site memory and compact replay are replaced by the file based page memory below. The model decides everything about navigation. With no pinned URL the browser starts blank and the agent opens the site itself, even when the goal names one. Nexus's infer initial url from goal regex is removed, and the engine library's own URL guessing from the task directly open url is turned off. Only a pinned start URL url , start url , or the start url argument the agent passes when the user named a page is opened before the agent's first step. fd 1 inside the engine is redirected to stderr at start up, so library prints cannot corrupt the event stream. The path a test follows capture.py A passed run becomes a test, so the run records the path that worked, checked while the page is still there, not every attempt. What changed. install effects wraps the agent's tools.act . Around each click, key press, script, and click selector it takes a fingerprint of what a user could notice address, visible text, element count, open menus and dialogs, form values, selected and pressed states and polls for up to 1.5 s for a change. record memory results leaves an action that changed nothing out of the flow a click on a decorative node, a retry that missed, a script that only read the page and lists it in run.json memory.left out ; fills and selects always stay. A script that did change the page stays, marked scripted , and the handoff asks for the page's own control instead. The control, and locators checked on the live page. Before the step's actions run the library's new step callback comes before multi act , point at controls re points each element action from the node under the pointer to the control a user acts on an icon inside a label or button becomes the label or button and verify locators checks each candidate on the live page: role and name through Accessibility.queryAXTree the accessible names Playwright's getByRole uses , ids, CSS, attributes, text, and XPath in the page. A locator is verified when it finds exactly that element or something inside it . Verified locators come first, so best locator is one that worked. Real clicks, not scripts. The agent's prompt CAPTURE SYSTEM MESSAGE asks it to act only through browser actions, and click selector gives it a real mouse click scroll into view, refuse when covered, Input.dispatchMouseEvent on an element it found by CSS, captured like any click. Checks with their element. record check finds the smallest visible element showing the text and the section it sits in, each with verified locators element , container in workflow.yaml checks , and takes dynamic for live data today's date, a price, a count . The handoff lists the path with ✓ on verified locators, says how many actions were left out, gives each check its locator and section, and leaves out page memory when every step and check is verified. Scribe is told to use ✓ locators as given and not to look for those elements again. Page memory memory.py , replay.py Files under memory.dir default .forgeqe/memory next to forgeqe.yaml , or ~/.forgeqe/memory when there is no config file , written atomically at the end of a run: pages/\u003chost /\u003cpath .json : one per page template. The key is host plus port and path; segments that are numbers or look generated become , and the query string is dropped. Each element stores tag, role, accessible name, text, stable attributes never value , its locators, best , confidence , visit and use counts, and first seen / last seen / last used / last updated . Pages keep at most 400 elements; past that, elements never used and least recently seen go first. flows/\u003cgoal \u003chash .json : keyed by the normalised goal and start URL. It holds the steps of the last successful run, each with the element's top locators and a fingerprint, plus pass, fail, and replay counts. scribe notes.json : written by the coding side src/code/notes.ts , not the engine: per repository, Scribe's notes from its reading turn and the tests jobs wrote there. Observe. Before each agent step, on new step passes the engine library's selector map EnhancedDOMTreeNode s to MemoryStore.observe . For every element it builds the locator candidates, counts how many elements on the page each one matches, and merges them into the page file. An element keeps its identity across visits through a strong locator test id, id, name, role, label, placeholder, href , then its XPath, then a hash of tag and anchor text. An XPath match counts only when the role and accessible name or text agree too, because sites reuse one popup container for different widgets; an element whose label changed becomes a new entry. When replay resolves a step on a different entry than the one recorded, record stale marks the recorded entry's dead locators as missed and failed, and the flow is saved against the new entry. flow step lists the locators that matched on the page at that moment ahead of those only seen on earlier visits. Confidence is 100 × base × uniqueness × stability × reliability , clamped to 1–99: Factor Value base by kind: test id .96, id .90, role .88, name .86, label .84, placeholder .82, alt .78, href .74, title .72, text .70, CSS .50, XPath .30; ×0.4 when the value looks generated uniqueness 1 when it matches one element, else 0.5 / matches − 1 stability 0.75 + 0.25 × min seen, 4 / 4 × seen / seen + missed reliability successes + 1 / successes + failures + 1 Record. on step end pairs each action's result with the element it targeted. It records success or failure against the element and the locator, and adds non read only actions to the run's flow. At the end, a complete run replaces the flow's steps, a failed run only counts a failure, and a stopped run leaves the flow alone. Replay. Before the agent is built, replay flow runs the stored steps with Tools .act , the same actions the agent would call. In order, the run replays the exact goal's flow, a failed run's resume steps, a cut off run's checkpoint, or an edited case's unchanged steps. A goal with none of these gets the start it shares with another task on the host MemoryStore.shared start , kind shared : flowmatch.shared start py/forgeqe engine/flowmatch.py , no model ranks the host's passing flows by the content words their goals share with this one, and of the three most similar keeps the longest leading run of steps this task may borrow. A step is borrowed when this goal names its control or the value it types; when it signs in with a saved secret and the click that submits that sign in ; when it clears a cookie banner or pop up; or, while the flow is still in its opening, when another recorded task on the host took the same step without a value. Values another task typed, page scripts, uploads and API calls are never borrowed, a flow that opens another URL than this task's start is not used, and the first step that fails these rules ends what is borrowed. handoff task kind=\"shared\" names the task they came from and tells the agent to check the page fits and carry on. prompt hints still lists the steps of up to 2 recent flows of other tasks and the controls that worked there. Element steps take a fresh snapshot retrying briefly while the page loads and resolve the element by the store's current best locator, then the step's own locators, then the fingerprint. Read only actions extract , find text , done , … are skipped. Replay stops at a step it cannot resolve or restore: password fields, file uploads, tab switches, evaluate . An api request step is replayed with the same call in the page's session register api request on replay's own tools , and stands only when the server answers with the recorded status api mismatch ; otherwise replay stops there and the agent judges the answer. handoff task then tells the agent what was already done: check and finish verify , or continue from the stopped step. trust returns success with no agent only when every step of this same task ran. Replayed steps are emitted as step events with \"source\": \"memory\" , before any agent steps. A replayed step whose recorded locators no longer match anything on the page, but that still resolved through another locator, is recorded as a heal {step, line, label, stale, used} ; when replay stops and the agent then finishes the case, run.json notes repaired with the step and reason. Both go under memory in run.json for the report. Parallel runs. flush and save flow result hold an fcntl lock on \u003cmemory /.lock . Each page file has a revision counter. If the file on disk has moved on since this run loaded it, the run merges instead of overwriting: every visit, match, miss, success, and failure counter becomes the saved value plus this run's own change, elements this run never saw keep the saved copy, and the revision becomes one past the higher of the two. Two runs on the same page a suite with parallel above 1 therefore both count. Hints. prompt hints adds the last successful steps on the same host, and the controls those runs actually used, to the agent's extended system prompt, capped at 2,500 characters, and tells the agent to act on them in one turn. The system prompt cannot name an element's index, which changes with every page load, so on its own it left the agent reading the whole element list anyway. Known controls per step. install known controls wraps the library agent's prepare context : after the library has built the step's page message, MemoryStore.observe records the page once the snapshot is shared with the step callback through step seen , so a step is observed once , and MemoryStore.known controls adds a context message naming up to 10 controls on this page that earlier runs acted on with success, each with its index in this step's element list 12 Email address textbox, worked 2× , told to act on them by index in this turn. A page memory has never acted on adds nothing. Context messages are the library's own per step channel its loop nudge uses it , cleared before each step. In run history. Fast mode passes max history items=8 and turns message compaction off. Each later step of an exploration keeps the first step and the most recent ones, instead of resending the whole transcript or pausing for a summary model call. FORGEQE ENGINE MAX HISTORY ITEMS overrides the cap minimum 6, which is the engine library's own floor . Workflow steps. compact step gives each workflow step its best locator and ranked locators with css / attr where the locator needs them , evaluate steps their code , and every step the browser agent's note , which the handoff passes to the coding agent. on step end passes agent note model output the step's evaluation, memory, and next goal, each once to record memory results , which stores it on each flow step that step recorded; flows keep it, so replayed steps carry the note of the run that first took them. The engine writes no test script: the coding agent writes the test in the repository's language, and ForgeQE runs it. Bridge src/engine The launchers bin/forgeqe.js for npm, py/forgeqe cli/launcher.py for pip use a Bun 1.3+ from FORGEQE BUN , PATH or ~/.bun/bin , else download the pinned BUN VERSION from Bun's GitHub releases into ~/.forgeqe/tools/bun \u003cversion after checking it against SHASUMS256.txt . Both pin the same version a test checks this . The pip launcher runs the checkout's src/index.ts when it sits in the repo, else bun x ForgeQE@\u003cits version . src/tools.ts downloads a release archive into ~/.forgeqe/tools/\u003cname \u003cversion , checks its SHA 256 from the release's checksum file, or the digest GitHub's release API records , unpacks it with tar System32's bsdtar on Windows, which reads zip , and removes older versions. uv and the agent runtime use it; the launchers carry their own copy for Bun because they run before any TypeScript. code/runtime.ts uses the runtime from code.runtime , PATH, or an existing install, else downloads the pinned runtime, whose version matches the agent runtime SDK in package.json a test checks this . forgeqe setup calls it, and so does every command that can start the agent. setup.ts finds or creates the engine environment: FORGEQE PYTHON when that Python passes the engine check otherwise it logs why and skips it , else ~/.forgeqe/engine/.venv , which is rebuilt when its engine check fails created with uv venv python \" =3.11\" , or python3.11+ m venv when no uv can be found or downloaded . uv is the system one, else the pinned UV VERSION downloaded from uv's GitHub releases into ~/.forgeqe/tools/uv \u003cversion checked against its .sha256 , unpacked with tar , which on Windows is System32's bsdtar . A downloaded uv keeps the Pythons it fetches in ~/.forgeqe/tools/python . It installs the engine's pinned Python libraries and records the version in installed.json , so later runs skip setup. When Google Chrome is missing it installs Chromium through Playwright. bridge.ts spawns the engine with PYTHONPATH pointing at the packaged py/ , sends the request goal, profile, start URL, headed, max steps, allowed hosts, extra system prompt, browser skills with skills pick and skills max chars , and maps events: Engine event Transcript log grey line memory ↻ line, e.g. Replaying 4 remembered steps step step counter, the model's next goal; memory for replayed steps result ✓ / ✗ per action, e.g. click \"Search\": element not found usage token counter done final status, summary, artifact list, memory counts Memory row in the summary Esc or /stop writes stop ; the engine stops the agent and still writes artifacts from the live trace. An engine still running STOP GRACE MS 30 s later gets SIGTERM, then SIGKILL KILL AFTER MS 10 s after that, and the run reports stopped with a note that its artifacts may be incomplete. executeRun also gives the bridge a hard deadline engineDeadlineMs : twice browser.timeout seconds plus five minutes , because the engine's own timeout covers only the agent, not browser start up, skill choice itself capped at 60 s , or memory replay; a run past it is stopped the same way and reported as failed. Environment. The engine is spawned with an allow list allowListEnv in src/childEnv.ts : system settings PATH, HOME, locale, display, temp folders, proxies, certificates, Windows system variables , BROWSER USE , FORGEQE ENGINE , Python and uv settings, the key variable of the profile the run uses the active one, or the router's pick for browser , and the saved logins' variables. Other secrets in the terminal, such as tracker tokens, never reach the browser agent. ForgeQE's agent src/brain , src/mcp Every message in the shell and every forgeqe run \"\u003crequest \" goes to one agent runtime session running the forgeqe agent. Nothing is parsed before it: the agent decides whether the text is a browser goal, test case references, a test to write, or a pipeline task, and asks outcome needs input when it cannot tell. The only slash commands left are session controls src/commands.ts : /stop , /headed , /profile , /logs , /skills , /clear , /help , /exit ; any other line, including one starting with / , is text for the agent. Module Contents brain/prompt.ts BRAIN PROMPT : the tools every CLI command is one, so the agent uses the tool instead of telling the user to run a command , how to choose a source, find vs run, signing in, writing tests write test ; small hand edits verified with run test , the CI pipeline procedure, fixing broken tests heal tests , running existing repo tests find tests then run tests , never without the user's confirmation; sprint dates only from sprint , monitoring, ForgeQE's own docs and setup, and the rules no secret values, push only with push branch , stay in the working directory . The reply is plain text, so it streams to the shell as it is written the runtime's message.part.delta events, relayed as stream events ; it ends with a hidden line \u003c! forgeqe {\"outcome\": done \\ failed \\ needs input, \"next\": … } that splitReply reads and visibleReply holds back while the reply streams brain/index.ts openBrain starts the MCP server on 127.0.0.1 with a random token localToolServer , then an agent runtime session with the prompt, the session notes, the schema, and the server as a remote MCP entry 6 h tool timeout . ask returns the reply and outcome, abort stops the session and every running tool call. brainUnavailable is why it cannot run no model set up and no code.model , or no agent runtime ; callers then run the text as one browser goal. sessionSetup picks the working directory and whether passed runs become tests from repo , no code , and code.repo default: tests in the current folder mcp/tools.ts TOOLS and environmentNotes working directory, run and memory folders, configured test case systems, suite defaults, timeouts, the profile, and the names, never values, of keys set in the environment . Each tool reports ToolEvent s run start/event/done, suite start/event/done, info, agent for a nested coding or healing session's events, card for a result panel to whoever shows them. ToolContext carries session shell , once for forgeqe run , server for forgeqe mcp , waitForUser and ask when a person can answer, and openSession so tests can script the nested agent runtime sessions cases/save.ts save test cases : saveAdoCases creates Test Case work items adoStepsXml writes Microsoft.VSTS.TCM.Steps the way adoCases reads it linked to the story with TestedBy Reverse in its area and iteration; saveJiraCases creates issues type Test by default with the steps in the description and an issue link. Both reuse a case already linked to the story under the same title, then compare with the story's scope cases/scope.ts : test cases maps an area path or project to a plan, suite, area or JQL filter, values checked before they reach WIQL or JQL, at most MAX SCOPE cases read, steps only for the shortlist : the same steps are reuse , a case adding steps is extends with its insert ; nothing is written to an existing case there. planLinks checks ids, type and project before link test case or update test case 's story asks; insertSteps applies an insert . saveTestrailCases , saveZephyrCases , Xray mode in saveJiraCases createXrayTest , setXraySteps in cases/xray.ts , saveAdoCasesInArea and saveJiraCasesInProject for cases with no story, and existingCases for check test cases ' against . cases/fields.ts checks new cases ; cases/adodata.ts writes shared steps references and parameters; cases/staleness.ts reads a story's history; cases/retire.ts retires a case; cases/jirareadiness.ts is release readiness for Jira. cases/caseindex.ts keeps a project's index of scope cases' steps; cases/bulk.ts prepares several changes for one question apply case changes and the web gateway web/testcases.ts ; cases/targets.ts names a case's system by its id; cases/changelog.ts , cases/trace.ts and cases/proposals.ts keep the project's change log, criteria trace and pending proposals; cases/requirementsfile.ts reads Requirements Agent's requirements.json; cases/scopecheck.ts checks the settings Settings saves and tries a test cases line. On unless sources.save cases: false ; environmentNotes tells the agent which mcp/commands.ts COMMAND TOOLS , one tool per CLI command, appended to TOOLS . write test runs the coding loop runCodeAgent and heal tests runs runHeal , forwarding their events as agent events and ending with a card; each opens its own agent runtime server on port 0, so it nests inside the brain's session. monitor : round one runMonitor once , refused while a background monitor uses the folder , start / stop / status background monitors, only in shell and server sessions , test alerts . browser run takes purpose test or task ; taskReason treats a task , or a run that starts on, ends on, or names a configured source system's host Azure DevOps, Jira, Confluence, TestRail, Zephyr, qTest, Xray , as a task: it writes task.json TASK FILE in the run folder, returns no write test next step, and write test refuses that folder. browser run also takes resume from a failed run's folder or name, read by loadResume in run.ts and, after a failure with resume steps, returns them with a next step naming the folder; the brain's prompt says to retry with it and say what to do differently. logins : remember session logins , list configured and remembered , clear a saved session, and a remembered login's credentials and session file , and sign in through signIn and ctx.waitForUser refused without it . forgeqe setup : profiles, MCP servers, docsAbout README and HOW TO USE split at headings and scored against the topic, since the agent's external directory rule keeps it out of the package folder , install engine , init , skills op list, show, or new: newSkill into the project's or the user's skills folder card.ts Card status , title , stats , body and cardText . codeCard , healCard , and roundCard build cards from the same lines as the terminal summaries mcp/server.ts JSON RPC for MCP by hand: initialize protocol 2025 06 18, 2025 03 26, 2024 11 05, with instructions , ping , tools/list , tools/call , notifications/cancelled . serveHttp : Streamable HTTP on 127.0.0.1, checking the bearer token in constant time tokenMatches and refusing requests whose Origin is not this machine originAllowed , so a web page cannot call the tools; tool calls answer as an event stream with a progress notification every 10 s and a keep alive every 15 s, so the agent runtime's per call timeout which resets on progress never fires during a long suite. serveStdio : newline delimited JSON RPC for forgeqe mcp ; closing stdin aborts running calls. localToolServer : a server over HTTP with a fresh token and the agent runtime's MCP entry for it, shared by the brain and the healing session mcp/git.ts pushBranch : finds the default branch symbolic ref refs/remotes/\u003cremote /HEAD , else ls remote symref , refuses it and main / master , checks the name with git check ref format , and runs git push set upstream \u003cremote HEAD:refs/heads/\u003cname without force. setCiSecret : gh secret set NAME with the value on stdin, or az pipelines variable create\\ update secret true with the value in AZURE DEVOPS EXT PIPELINE VAR \u003cNAME ; the value is scrubbed from any error auth/mcpOAuth.ts Browser sign in to an MCP server oauthSignIn : protected resource metadata RFC 9728 → authorization server metadata RFC 8414, issuer checked, S256 required → dynamic client registration as a public client RFC 7591 → the authorization page with PKCE, state and resource → the code on a one time Bun.serve listener on 127.0.0.1:0 /callback , state compared in constant time, plain text page → token exchange. Every endpoint must be https. The grant is one credential store entry FORGEQE MCP OAUTH \u003cSYSTEM , with mcp:\u003csystem in auth.json. refreshMcpSignIns runs when a session opens openBrain , for forgeqe mcp list and when the web app starts: it clears FORGEQE \u003cSYSTEM MCP OAUTH , then exports a current access token renewed within a minute of expiry only for the server the settings name now oauthResource , auth/oauthNames.ts . external.ts and integrations.ts use that variable when no token variable is set web/signins.ts Settings' sign in for every system but Copilot: signIn with the page as its terminal one job at a time, an id of SIGNIN SYSTEMS only, answers only to the question waiting, typed secrets scrubbed from lines, links only https . Routes /api/signin , /api/signin/answer , /api/signin/cancel , /api/signout mcp/external.ts externalMcp turns sources: and mcp: into agent runtime MCP entries: azure devops npx y @azure devops/mcp \u003corg a pat\\ azcli d \u003cevery group in ADO GROUPS , with hints from adoHints : each prefix's words and keywords, and the mcp domains prefixes on every turn , atlassian uvx mcp atlassian with JIRA URL and JIRA USERNAME + JIRA API TOKEN or JIRA PERSONAL TOKEN , plus CONFLUENCE when sources.confluence is set, TOOLSETS=all ; or the hosted Rovo server at mcp.atlassian.com/v2/mcp with Basic auth, which also covers Confluence on the same site , confluence uvx mcp atlassian for Confluence alone when Jira's server doesn't cover it , the servers of integrations: mcp/integrations.ts : integrationsConfig checks each block, integrationServers gives gitlab remote \u003curl /api/v4/mcp , Bearer {env:token env} , postman remote mcp.postman.com or mcp.eu.postman.com , and browserstack , azure read only by default, namespace per service , dataverse and sentry started by npx with credentials as {env:} references , and every mcp: server, which replaces a built in one of the same name. Secrets are {env:NAME} references that the agent runtime substitutes; values that must be derived base64 of forgeqe:\u003cPAT for Azure DevOps, of email:token for Rovo are put in FORGEQE variables of ForgeQE's own environment before the agent runtime server starts. A system whose server can't start here no npx or uvx, missing token, Azure DevOps Server, Rovo on Server/DC is listed with the reason. The servers get a 120 s timeout, which also covers the first npx / uvx download cases/dashboards.ts createAdoDashboard for the create ado dashboard tool, since Microsoft's Azure DevOps MCP server has no dashboard or saved query tools: runs each widget's WIQL once $top=1 so a bad query fails before anything is written, saves it under Shared Queries/ForgeQE creating the folder, PATCHing a query of the same name , then POSTs the dashboard 7.1 preview.3 , team scoped when a team is given with count tiles QueryScalarWidget , {queryId, queryName} across the top, then work item lists WitViewWidget , {query: {queryId, queryName}} and markdown two to a row. Widget settings are JSON strings, as the API requires cases/adopr.ts createAdoPullRequest for the create ado pull request tool, since the default MCP tool groups leave out repositories and query api only reads: branchRef checks each branch against git's ref name rules before anything is sent, the repository is read by name or id, both refs must exist refs?filter=heads/… , an active pull request between the same refs is returned existing: true instead of a second one, then it POSTs pullrequests with a default title of \"Merge \u003csource into \u003ctarget \" cases/wiki.ts writeAdoWikiPage for the write ado wiki page tool, since the MCP server's wiki tools need an existing wiki: picks the named wiki or the project wiki, creating \u003cProject .wiki type: projectWiki , project id from apis/projects when the project has none, PUTs missing parent pages empty, then PUTs the page with If Match set to its ETag when it already exists. Code wikis get versionDescriptor for their first published branch cases/api.ts queryApi for the query api tool: GET under the Azure DevOps organization and its vsrm / vssps / almsearch hosts, with api version=7.1 added or the Jira site, and Xray Cloud GraphQL queries mutations refused . Absolute URLs on other hosts are refused, so credentials only go to their own system. Answers over 40,000 characters are cut After the session opens, openBrain reads client.mcp.status and reports each external server as connected, failed with the error , or needing a browser sign in; skipped systems are reported with their reason. The agent's session notes list the servers and say that a server whose tools are missing did not connect, so the agent falls back to query api . Tools take structured arguments. run test cases and find test cases get a list of CaseSelector s {source: azure devops \\ jira \\ xray \\ testrail \\ zephyr \\ qtest \\ file \\ text, ids, plan, suite, run, cycle, folder, jql, paths, text} that casesFrom reads directly, so the model's choice of source is never re parsed. Permissions. The agent's bash is allowed except git push , git push so git C . push is caught too , and gh repo delete , each also with a leading so a push wrapped in another command env git push , sh c 'git push' is caught; the agent runtime matches each command of a chain on its own and applies the last matching rule. These rules are guard rails, not a sandbox. forgeqe tools are allowed. external directory allows only the run and memory folders. Tool calls to forgeqe are hidden from the ⚙ lines because their ToolEvent s already render richer output browser steps, suite cards . Callers. The TUI opens the brain on the first message and keeps it for the session, so follow up answers and \"write a test for that run\" have context; /profile or Tab switches the model in the same session before the next message Brain.setModel : one agent runtime holds every usable profile, and each prompt names its model , with a one line note to the agent; a profile the session does not offer a custom agent's, code.model , one that could not answer when it opened closes it and keeps the turns so far: the next agent session's first prompt is carryOver turns, text , the last 20 turns with remembered secrets redacted, so switching models does not lose the conversation. It renders card events as result panels and agent events as ⚙ and test lines with their own token counter, and its waitForUser pushes the prompt into the transcript and opens a Your turn dialog Done, continue / Cancel ; opening another dialog or Esc settles it as cancelled. forgeqe run opens the brain for one request, prints tool events cards as cardText and the reply as plain lines, waits for Enter in waitForUser when stdin is a terminal, and exits 0 done, 1 failed, 2 stopped, 3 needs input. forgeqe run direct and a missing agent runtime run browser run directly. forgeqe mcp serves the same TOOLS on stdio and logs ToolEvent s to stderr; it has no waitForUser . forgeqe chat jsonl src/chat/jsonl.ts is the TUI's agent for a program: like the TUI, it opens the brain on the first message, keeps it for every message, runs with session: \"shell\" , runs Tier 0 requests as recorded before asking the agent, and continues an earlier conversation with carryOver carry over FILE , with its own reason sentence ; like forgeqe run , it takes its flags repoFlag , memoryFlags , … and writes one session log; like forgeqe mcp , it is a machine interface, with stdout claimed for the protocol and every other print sent to stderr. It writes each CodeEvent and ToolEvent unchanged as a JSON line agent , tool , turns ask and waitForUser into ask and wait lines answered on stdin, ends every turn with one turn done , and passes every outgoing string through redactSecrets and the values of privateEnvNames and profile keys. The protocol is in HOW TO USE.md. forgeqe start , forgeqe mcp , and forgeqe chat stop background monitors when they return, because src/index.ts calls process.exit . Tool scope src/mcp/scope.ts , src/capabilities Every model call carries the definitions of the tools the agent has, so the agent does not get every tool on every turn. The registry capabilities/registry.ts groups the tools into capabilities. Each capability has its tools, the requirements it needs a model, a runtime, an app kind, a tracker , and keywords. Module Contents mcp/scope.ts CapabilityScope , one per agent session. beginTurn text picks the turn's capabilities and returns the per prompt tools switches forgeqe \u003ctool : true\\ false . The picks are: the core setup help , test apps , agent.capabilities.always , the ones use capabilities asked for, those used in the last STICKY TURNS 3 turns, and up to MAX PICKED 4 from scoreRequest . scoreRequest makes no model call: it matches keywords and tool names, URLs the browser , issue keys test cases , and the names of the active environment's apps by kind . A capability whose required apps or system are missing usableCapabilities is not picked from words alone, and nothing is picked from agent.capabilities.off . When nothing matches, browser goals is the fallback. request from use capabilities refuses unknown and switched off ids and queues the added ones in takePending . listedTools is the list for MCP clients. capabilityIndex is the short list of capabilities in the agent's prompt. Other MCP servers' ToolGroup s are switched the same way: always ones every turn, a group whose keywords match the request as whole words they do not count against MAX PICKED ; when the request names a system, by a group's system words such as \"github\" or \"azure devops\", only that system's groups , the ones use capabilities asked for, and one whose tool ran in the last turns used takes the runtime name, from onToolResult . toggles adds a switch per tool of each group; opencode applies a prompt's tools to MCP tools by name, so a switched off group's definitions are not sent tests/brain groups.e2e.test.ts mcp/discover.ts discoverTools asks every server for its tools initialize, tools/list as the runtime starts it: a local command through spawnPlan an argument list; cmd.exe quoting on Windows with its {env:} values filled in and ForgeQE's private variables left out, or a remote address streamable HTTP, JSON or SSE . The list is kept in ~/.forgeqe/cache/mcp tools/\u003chash .json mode 0600 for LIST TTL MS a week ; the hash is of what the server runs and the names of its variables, never a value or the server's name. serverGroups groups each list; a server that does not answer is left out, so its tools stay on mcp/toolgroups.ts groupTools makes a server's groups from its tool names alone. Words of a name are split snake and camel case , made singular, and verbs and fillers dropped; two words that only ever come together are one \"pull request\" . A server whose tools mostly share a first word is split by it; otherwise, and for a prefix group over MAX GROUP tools or MAX GROUP TOKENS , each tool goes to the rarest word at least 3 of them share, then the rest to words 2 share, the remainder to a catch all whose keywords are its members' words. Keywords are the group's word or phrase, phrases from its names, plurals, and SPELLED wit: work item ; broad words WEAK are never one alone. A server under SMALL SERVER TOKENS is one group, always on. ServerHints only add titles, keywords and the always on groups mcp/adogroups.ts for Azure DevOps mcp/captools.ts use capabilities : adds capabilities for the rest of the session mcp/routing.ts createRouter passes every ForgeQE tool that runs to scope.used brain/index.ts ask starts each turn with beginTurn and prompts with its switches. When use capabilities added capabilities during the turn, it continues the same request with them, at most MAX SCOPE CONTINUATIONS 2 times. FORGEQE TOOL SCOPE=off turns the scope off mcp/server.ts With a scope, tools/list returns listedTools , the server advertises listChanged , and after a call that added capabilities it sends notifications/tools/list changed . forgeqe mcp all tools serves without a scope context.ts , agents.ts forgeqe context : the fixed context and what each capability adds. Budgets: 10000 tokens for the forgeqe agent's fixed context, 2500 per capability CAPABILITY TOOL BUDGET The tools stay registered with the agent runtime for the whole session; only the switches change, so the conversation is never restarted. tests/scope.test.ts covers routing, gating, sticky turns, config, hostile ids, and the MCP list change. tests/brain.e2e.test.ts checks against the real agent runtime that a turn sees only its tools and that use capabilities continues the request. Scribe, the coding agent src/code The test writing loop used by forgeqe code , by forgeqe suite with a repo, and by the write test tool, which is how ForgeQE's agent writes tests in the shell and forgeqe run . It uses the agent runtime SDK and the runtime binary that code/runtime.ts finds. Module Contents handoff.ts Builds handoff.md from run.json , workflow.yaml , and the page memory files for every page the run visited: the result and final URL labelled as one run's live data, the judge's reasoning, the browser the run used run.json browser , steps in order with values and the JavaScript the agent ran, each group led by the browser agent's note from that step process.env.NAME for secrets , best and ranked locators with confidence at most MAX LOCATORS = 4, under MIN CONFIDENCE = 30% dropped unless nothing else is left , and a table of each page's other elements up to MAX ELEMENTS = 8 of MAX PAGES = 4 pages; elements whose best locator a step used are left out, the rest need an interaction or 70% confidence; no table when nothing is left; the table is skipped when a replay pass has page snapshots , and the browser agent's checks workflow.yaml checks , each with the locator the replay matched on the last page when the counts agree prompt.ts TEST RULES shared with healing: browser set up like ForgeQE's, the debugging steps when the test's page differs, generic page objects, data in tests, rules not values, pop ups handled wherever they appear, every A/B version of a page handled , the test agent's system prompt start from the notes, port the replay script, assert the handoff's checks and nothing else, never guess locators, reuse and extend page objects, do not run the test: ForgeQE runs it; look at the live page with the live browser tools once a step has failed , the result JSON schema status , blocked reason , remote browser , test file , command , reused , changed , notes , and the prepare prompt notes of at most 25 lines , the first with the repo notes, naming the live browser's output folder when it is on , fix the short output plus the saved log and page snapshot , missing command, no browser, blocked challenge, stall, and review fix prompts review.ts The forgeqe review agent: prompt, REVIEW SCHEMA approved , summary , issues {file, problem, fix} , and openReviewer , a second, read only Scribe session opened on the first passing run and kept for later attempts. reviewPrompt inlines the checks from the handoff and the changed files changedFiles : up to 12 KB each, 40 KB in all , so the reviewer reads nothing again. It may load Scribe's skills and judges the test against their conventions too runtime.ts Maps the llms.json profile to an agent runtime provider, builds the config, starts the agent runtime server, and drives one session over the SDK. With resume , openSession reopens that session with session.get the runtime keeps sessions on disk, so their messages survive a restart and sets resumed ; when it is gone, a new one is created. FailedCommands counts each exact shell command the agent runs that exits non zero; at stallAfter failures of one command the turn is aborted and prompt returns stalled command , count , the last 40 lines of output . resetStall clears the counts READ AGENT forgeqe read has the test agent's instructions with edit and live denied; the config builder takes it in agents , and a prompt picks it with agent . PromptOptions also carries structured off: no JSON answer and tools per prompt switches, used only for live : the agent runtime keeps them for later prompts, and true would override the agent's path rules for file tools livebrowser.ts liveBrowser runDir : the live MCP server for the agent, Microsoft's Playwright MCP npx y @playwright/mcp@0.0.83 config … , with a config written to \u003crun /live browser/config.json from run.json browser channel or executable, headless, viewport, locale, time zone, user agent and snapshots and screenshots saved in that folder. null without npx . The loop switches its tools live on per prompt once a step fails pagefacts.ts What a step met that a test handles differently: frameSelector for a step's frame, isAdStep an ad host's frame, or google vignette , and AD HOSTS / AD ROUTE for blocking them. handoff.ts renders covered by , bypass and frame under each step and adds \"What covered the page before a click\", \"Ads on these pages\", and \"State the run started with\" from run.json sessions restored ; replay.ts skips ad steps and reaches frame steps through frameLocator replay.ts The replay check. replayScript steps turns workflow.yaml into flow.mjs , one step n, action, run per recorded step, with each locator rebuilt from its type and value locatorExpr , text typed with pressSequentially , secrets read with env NAME and one time codes made with totp NAME ; actions with no Playwright equivalent are marked \"not replayed\". alternatives.mjs holds each step's other locators. ensurePlaywright installs playwright core PLAYWRIGHT VERSION with Bun into ~/.forgeqe/tools and removes older versions. replayRun writes a runner that launches the run's browser replayOptions : channel or executable, headless, viewport, locale, time zone, user agent, extra headers , runs each step with a 10 s timeout, keeps an aria snapshot of each page after each step that worked by host and path, the latest one; the final page's taken once two snapshots a second apart agree, up to 6 s, since a page can change its URL at once and re render later and writes them as \u003csetup page N.aria.yml in ReplayPass.pages , and on a failure saves a screenshot and an aria snapshot, counts the other locators' matches, and records console errors, failed requests, and HTTP errors; three failures in a row stop it. It runs under Bun with the session logins' env, 180 s per pass. The first pass uses Playwright's default launch; if it does not reach the run's final page host and path , a second pass leaves out enable automation and adds disable blink features=AutomationControlled . replaySection renders the handoff section the page snapshots listed; a pass whose failed steps were followed by steps that all worked and that reached the final page, reachedPastFailures , reads as a working script with those steps to judge, and replayFailed is false for it so the live browser stays off : each pass, the failed steps with Playwright's reason, the page, the open dialogs from the snapshot, the other locators' matches, and the saved files, and the launch settings to copy when only the second pass got through. After the last step the runner looks up each recorded check on the page findCheck : a visible exact heading, then exact text, then a looser heading or text, then a form field holding the value and returns its locator, match count, and up to 3 containers in ReplayPass.checks ; for a heading match, sectionOf adds section the element aria labelledby the heading, else the section / article /region it heads, else the element after it or after its only child wrapper with a stable locator test id, id, or aria label , else empty and its visible link and list item counts testrun.ts Runs the reported command with sh c in the repo CI=1 , PLAYWRIGHT HTML OPEN=never , no colour , with a timeout. promptOutput makes the prompt's copy of a failed run: withoutPageDumps takes out each \"Aria snapshot:\" block Playwright puts in a failed assertion, then headAndTail keeps the first 8 KB and the last 4 KB; the full output goes to \u003crun /test runs/attempt N.log and the first page dump to attempt N page.aria.yml . While it runs it samples the process tree ps A o pid=,ppid=,args= every 250 ms; Win32 Process every 1.5 s on Windows for browsers at or below the command that carry an automation switch remote debugging pipe , remote debugging port , juggler pipe , inspector pipe , marionette and returns them as browsers loop.ts retries Each failed attempt a failed run, a run that opened no browser, a rejected review adds a Tried entry: Scribe's tried items from its result else its notes , the failure, and failureFacts of the output the last \"waiting for\" locator of Playwright's call log, and the element that \"intercepts pointer events\" , with again when an earlier entry failed on the same locator. nextAttemptPrompt renders them with triedSection ; runHeal keeps the same list from each test's reason and passes it to healNextPrompt . The attempt log, and so scribe mistakes.jsonl , uses the tried items too notes.ts scribe notes.json in memory.dir : per repository, the reading turn's notes saveNotes , when they were written, and up to 15 tests jobs wrote there addWrittenTest on approval . readNotes returns nothing past 30 days; notesSection renders them for the first prompt worktree.ts The working tree before the job git status porcelain uall with a hash of each file, and a copy of each file up to 5 MB, plus ForgeQE's forgeqe.yaml and llms.json ; the paths the job changed since then; putting back files the job deleted or uncommitted edits it reverted to the committed version; and the protected paths in the form the agent runtime matches them loop.ts The attempt loop, stop handling, the replay code.replay , on by default in forgeqe.yaml : replayRun runs while Scribe reads the repo, then the handoff is rebuilt with the replay and the result goes to code.json replay ; skipped when canReplay finds no step beyond navigation and no checks , the reading turn READ AGENT , no structured answer, with or without a replay; skipped when readNotes has notes for the repo, which go into the first prompt instead; its reply is saved as the notes , the live browser code.live browser , on by default in forgeqe.yaml ; its tools are off until the replay or a test run fails, a stall, a no browser run, or a blocked report, and the prompt that switches them on says so , the stall guard code.stall after , default 5; counts reset after each ForgeQE test run , code.json the run folder is recreated if it is gone, and a failed write is reported without changing the result , and resuming: scribe session.json in the run folder session id, repo, stage reading / writing , whether the live browser is on is written when the session opens and updated as the job goes, and removed when the job ends with a result; after a stop, a crash, or a ProviderAuthError / APIError it stays, and a rerun for the same run and repo passes it as openSession 's resume . A reopened session skips the reading turn, takes savedReplay when the replay finished, and starts with carryOnPrompt or RESUMED NOTE plus the first prompt when it was still reading Config. The whole agent runtime config is passed through the environment, so nothing is written into the repo. Keys are {env:NAME} references, never values. Profile mapping: Profile Agent runtime provider Model azure azure , baseURL: \u003cendpoint origin /openai/v1 Responses API, api key header azure/\u003cdeployment openai openai , baseURL when set openai/\u003cmodel openai compatible , ollama forgeqe via @ai sdk/openai compatible and the profile's base url forgeqe/\u003cmodel code.model skips the mapping and uses the agent runtime's own provider setup. The forgeqe test agent is a primary agent with its own prompt and permissions: edit : allowed, except ForgeQE's files and folders .forgeqe/ , forgeqe.yaml , llms.json , the run and memory directories . The agent runtime matches edit patterns against the path relative to the git worktree root or the filesystem root outside git , so the patterns are built the same way bash : allowed, except git push , git push , gh repo delete , commands that name ForgeQE's paths, and commands that throw away uncommitted work git clean , git reset hard , git stash , git restore , git checkout , git checkout . , each also when wrapped in another command. Shell rules cannot catch every spelling, so after each attempt restoreRemoved also puts back ForgeQE's files forgeqe.yaml , llms.json when the job changed them, not only when it deleted them; healing does the same at the end of its job, with the same edit and shell rules webfetch : allowed question : denied external directory : allowed for the run and memory directories, rejected elsewhere doom loop : rejected, which tells the model to change approach The repo path is resolved with realpath macOS /var is /private/var , and both forms are allowed. Events. event.subscribe streams the session. Tool parts become ⚙ lines with repo relative paths edit tests/login.spec.ts , bash npx playwright test … . Finished text parts become the agent's thoughts, and step finish tokens feed the token counter. Permission requests the config does not settle are declined straight away declineMessage tells the model why , so the session never waits for a person and nothing outside the config is granted: not paths outside the repository, not repeated identical calls, and not the runtime's own \"ask\" defaults such as reading .env files. Environment and secrets. openSession starts opencode serve itself startServer with an explicit environment serverEnv , never by changing process.env : the terminal's environment without ForgeQE's own secrets privateEnvNames : every profile's key variable, tracker and alert credentials, variables mcp: servers reference except those its config references as {env:NAME} , plus the values ForgeQE derives for MCP servers secrets , e.g. base64 of email:token . A runtime plugin hideEnvPlugin , the runtime's shell.env hook then blanks all of those, and OPENCODE CONFIG CONTENT , in every shell command the agents run, so a prompt injected by a page under test cannot read the model key or tracker tokens. Saved login variables stay visible: the tests read them. Result. Each prompt sends format: {type: \"json schema\"} , and the model answers through the agent runtime's StructuredOutput tool. The result is read from the message.updated event info.structured , or info.error , not from session.messages : in the pinned agent runtime that endpoint returns BadRequest for any session that used format . Loop. ForgeQE does not trust the model's claim that the test passes. Scribe does not run the test; it reports the command and ForgeQE runs it. A non zero exit or a timeout sends a fix prompt with the command, exit code, the short output promptOutput , and the paths of the full log and the page snapshot. An exit 0 with no browser under the command sends the no browser prompt, unless the agent reported remote browser . A missing command sends a reminder. A failure whose output matches the previous one apart from numbers failureKey gets the repeated failure prompt look at the failing step before changing code ; a third one in a row ends the loop as failed with the output in the notes. A stalled turn one command failed stall after times inside it gets the stall prompt with the command and its output once; a second stall ends the loop as failed with that output in the notes. A passing run with a browser goes to the reviewer, with the paths this job changed and the paths the user already had uncommitted, so it never asks for the user's work or ForgeQE's files to be removed; its issues go back as the next prompt. After every agent turn, files that existed before the job and are now gone or reverted are put back, handoff.md is rewritten if missing, and the next prompt says what was restored. Each of these counts as an attempt. The first blocked report is answered with the blocked challenge prompt compare the test's browser with the handoff's \"Browser ForgeQE used\" and fix the difference ; a second one ends the loop as blocked . The loop ends when a passing run is approved passed , after max attempts failed , when the reviewer gives no verdict failed , on ProviderAuthError , APIError , ContextOverflowError , or ContentFilterError failed , or on Esc stopped , which aborts the session . Both servers are closed in every case, and the reviewer's tokens are added to the result's usage. The forgeqe review agent overrides the permissions key by key AgentSpec.permission : edit , webfetch , and task denied, and bash denied except git diff , git status , git log , git show , and ls . Skills src/skills Agent Skills folders \u003cname /SKILL.md : YAML frontmatter with name , description , and ForgeQE's agents , then Markdown that ForgeQE's agent, Scribe, and the browser agent use. skills: in forgeqe.yaml becomes SkillsConfig enabled , projectDir , userDir , dirs , disable , external , browserMaxChars . Module Contents registry.ts skillRoots in precedence order, lowest first: prebuilt skills/ in the package , external only with external : ~/.claude/skills , ~/.agents/skills , and the repo's .claude / .agents skills , user $FORGEQE HOME/skills , project .forgeqe/skills next to forgeqe.yaml , and the repo's own , then each dirs folder. loadSkills reads every \u003croot /\u003cname /SKILL.md , validates it name lowercase words joined by hyphens, at most 64 characters, the same as the folder; description present, at most 1,024 characters; agents from forgeqe / scribe / browser , default forgeqe and scribe ; file at most 100 KB , and reports a broken one in problems instead of failing. A later source replaces a skill of the same name and records overrides ; disable then moves skills to disabled . skillsFor reg, agent filters by audience. linkSkills makes a temporary folder of links junctions on Windows to the chosen skill folders, one per name; remove unlinks them and never follows them select.ts browserSkills cfg, goal, names? : with names ForgeQE's agent, skill , skills pick: \"given\" with only those browser skills unknown names returned for a warning; means none ; without, \"choose\" with every browser skill's name, description, and body. rememberChoice keeps the engine's choice per goal for the life of the process, so monitor rounds and repeated cases send \"given\" ; it is kept only when the engine actually chose run.json has skills scaffold.ts newSkill writes a SKILL.md template the body hints at the agent it is for and refuses an existing one; setSkillDisabled edits skills.disable through a YAML Document , so comments survive, and drops the key when the list is empty; ignoredNote warns when git would not commit a new project skill view.ts skillsOverview per agent: name, source and what it replaces, description; disabled; problems; folders read and skillDetail , shared by forgeqe skills and /skills Agent runtime. openSession …, skills keeps the skills whose agents include an audience of the session's agents AgentSpec.skills : forgeqe for the brain, scribe for forgeqe test , forgeqe read , forgeqe review , forgeqe find , forgeqe heal , forgeqe pr review , and forgeqe api ; none for forgeqe api plan , forgeqe explore plan , forgeqe defect rca , forgeqe refine , forgeqe judge , and forgeqe model profile , as src/agents.ts lists them , links them with linkSkills , and passes the folder as skills.paths . Each agent's skill permission is {\" \": \"deny\", \u003cname : \"allow\", …} for its audience, or \"deny\" with none, so the runtime's built in skills and a repo's .opencode/skills stay unloadable and out of the listing the model chooses from. OPENCODE DISABLE EXTERNAL SKILLS=1 and OPENCODE DISABLE CLAUDE CODE SKILLS=1 turn off the runtime's own discovery of ~/.claude/skills , ~/.agents/skills , and the project's. The links folder and each skill folder and their real paths are added to external directory and made read only: added to the session's protected paths, or, for a session without them, passed as readOnly edit and bash denied for those paths only . ForgeQE's agent keeps write access to user and project skills, so it can change one when asked; built in and global skills stay read only for it too. Completed skill tool calls show as \"Using skill NAME\" and are collected in skillsUsed , which runCodeAgent and runHeal put on their results. SKILL RULE in each agent's prompt says to load a skill whose description fits the job and that the prompt wins where they disagree. Browser runs. environmentNotes lists the browser skills for ForgeQE's agent, and browser run and run test cases take skills names . executeRun calls browserSkills and sends the result in the engine request; the engine chooses choose skills or uses them, adds the text within skills max chars , logs \"Skills for this run: …\" and the ones left out for size , and writes skills to run.json only when it decided, so a replay that finished without the agent leaves the choice open. run.done in the session log, RunResult.skills , and the report's case header carry them; a case's Scribe skills go to CaseResult.code.skills . Healing src/heal forgeqe heal repairs a repo's existing tests after the app changed, and reports app bugs instead of hiding them. Like the coding loop, ForgeQE decides what passed by running the commands itself. Module Contents prompt.ts The heal agent's procedure prompts/heal.md : failing tests only; re run each one's flow with browser run as a plain language goal; a passing run means the test is out of date, so read run details and update the locators where they live page objects ; a run that fails at the same step means an app bug, and the test is left alone; never delete, skip, loosen, or slow down a test; verify with run test . HEAL SCHEMA : {tests: {name, file, status, command, reason, run dir} , changed, notes, suite command} . The find command, first, still failing, remaining, and missing tests prompts loop.ts runHeal . The command is the argument, code.test command , or suite command from a first prompt that asks the agent to find it. The heal session gets its own localToolServer with only the four tools above; browser runs are written inside the heal folder export.out dir is pointed there and their folders are recorded from run done events. Tests are merged by name across replies. A healed test counts only after ForgeQE runs its command; a healed test with no command is sent back. The whole command runs after every attempt whose tests all pass, and once more at the end if tests were confirmed since. The loop ends when the whole command passes passed , when a reply heals nothing new failed if the command still fails , after max attempts , on the same fatal errors as the coding loop, or on stop. heal.json and heal.md are written in every case report.ts healMarkdown verdict table, files changed, browser runs, test output before and after and formatHeal , the terminal summary ✓ confirmed, ? healed but not confirmed, ! app bug, ✗ not healed In the shell and forgeqe run , ForgeQE's agent calls the heal tests tool, which runs runHeal , so \"the login tests broke, fix them\" goes through the same loop and the same checks as forgeqe heal . tools.ts and heal/loop.ts import each other; that is safe because runHeal only reads TOOLS when it runs. Finding and running existing tests src/code/find.ts , src/mcp/repotests.ts , src/cases/sprints.ts \"Run all tests related to login\" and \"run the tests added this sprint\" select tests that already exist in the repo. Scribe decides which tests match by reading them; ForgeQE confirms the selection with the framework's own list command, and nothing runs until the user agrees. Module Contents code/find.ts FIND AGENT forgeqe find : edit , webfetch , and task denied, bash denied except git log/show/diff/blame/ls files/rev parse/status and ls . Its prompt: work out the frameworks, decide each test from its body and the helpers it calls a name alone neither includes nor excludes it , a time range means tests added in it git history, including new functions in existing files; only modified tests go under related , one test per entry, and the two commands. FIND SCHEMA : {framework, tests: {name, file, reason, added} , related, list command, run command, results file, list matches, notes} . findTests opens the session readDirs: the repo only , gives it today's date, the shell, the range, and the JUnit and TRX paths inside a new \u003cexport.out dir /tests/\u003ctime / folder; runs list command with runTestCommand 180s and feeds the output back until Scribe confirms an unchanged selection listed , and writes selection.json . runSelection deletes stale result files, runs run command with code.test timeout seconds , collects the fresh .xml / .trx files the given file, or a folder one level deep , and parses them with parseResults JUnit testcase at any depth with failure / error / skipped ; TRX UnitTestResult outcomes and hh:mm:ss durations ; without results the exit code decides. selectionCard and resultsCard mcp/repotests.ts REPO TEST TOOLS , appended to TOOLS . list sprints . find tests validates dates, resolves sprint a name through findSprint ; ask offers up to eight recentSprints through ctx.ask , or returns them as needs choice when there is no ask , runs findTests , and emits the selection card. run tests loads the selection and asks Run N tests? / Don't run through ctx.ask ; without ask forgeqe mcp , or forgeqe run without a terminal it returns needs confirmation until called with confirmed: true . Failures come back with a heal tests suggestion cases/sprints.ts Azure DevOps work/teamsettings/iterations the project's default team, or team and Jira agile board?type=scrum by project or board, up to five boards then board/{id}/sprint , paged. Both become Sprint {system, name, start, end, state: current \\ past \\ future, where} ; a system that fails is reported in errors . recentSprints keeps each team's or board's current, three latest past, and next sprint ctx.ask is how a tool puts a choice to the user. The TUI opens an ask dialog options stacked vertically when there are more than three or they do not fit; ids prefixed ask: so they never collide with the stop and close choices; Esc, another dialog, or Ctrl+C resolve null and pushes the question's lines into the transcript. forgeqe run prints numbered options when stdin is a terminal. The brain prompt routes repo tests to find tests and test cases in test management systems to run test cases , and forbids running a selection any other way or without that confirmation. Test cases and suites src/cases , src/suite Every source becomes the same TestCase : id, title, source, link, description, preconditions, steps action , data , expected , start URL, tags, and a ref with what write back needs work item, test point, plan, issue key . Module Reads Writes back files.ts text blocks , CSV RFC 4180; step rows continue a case , YAML/JSON, Gherkin Background, Outline × Examples, Then → expected nothing ado.ts workitemsbatch for ids; testplan suites and test points with x ms continuationtoken paging; the Steps XML fast xml parser, order kept , shared steps through compref , parameter rows from LocalDataSource a test run per plan: create with the point ids, set each result's outcome and comment, complete the run. Cases read by id: a work item comment jira.ts Cloud: /rest/api/3/search/jql nextPageToken , ADF descriptions. Server/DC: /rest/api/2/search startAt , bearer PAT an issue comment ADF on Cloud xray.ts Cloud: token from /api/v2/authenticate , then GraphQL getTests / getTestPlans . Server/DC: /rest/raven/1.0/api/test and testPlanTests JQL an import per plan: a Test Execution with statuses, step statuses and actual results, comments, and failure.png as evidence testrail.ts get case , get tests/\u003crun , get plan , get cases/\u003cproject &suite id= paged by links.next ; separated steps or the text template add results for cases on the source run, or add run per suite; custom step results ; add attachment to result for failure.png zephyr.ts Zephyr Scale Cloud v2: testcases/\u003ckey , teststeps call to test inlined to depth 2 , testexecutions?testCycle= , testcases?folderId= testexecutions per case with testScriptResults , in the source cycle or a new testcycles per project qtest.ts test cases/\u003cid ?expandSteps=true , test runs?parentId=&parentType=test cycle\\ test suite test runs/\u003cid /auto test logs with test step logs ; cases read by id get a new test cycle and test runs confluence.ts Cloud: api/v2/pages/\u003cid ?body format=storage , CQL through rest/api/search . Server/DC: rest/api/content . Storage format to text with table cells kept apart nothing; for the read confluence tool bugs.ts nothing with sources.bugs : per failed case, find an open bug by the case's fingerprint label/tag JQL labels = … AND statusCategory != Done , or WIQL Tags CONTAINS … AND State NOT IN … ; comment \"Still failing\" on it, or create one ADF or ReproSteps HTML, labels/tags, area path, screenshot attachment, \"Relates\" link or TestedBy Forward relation to the test case . A passed case notes on its open bug that it passes again Every write back includes the step verdicts, and retries once without the step details when a system rejects them. Each WriteBack carries the caseId it is about, so the report shows it with that case. http.ts is the one HTTP helper. Tokens come from the environment variables sources: names, and errors show the method, host, path, and status, never a credential. For forgeqe suite and forgeqe cases , refKind picks a source from the reference's prefix, then an existing file, then plain text; the agent's tools skip this and pass structured selectors to casesFrom . loadCases adds ~2 , ~3 to repeated ids. goalFor turns a case into the agent's goal: numbered steps, each with its data and \"Expected: …\", and an instruction to check every expected result and fail the task if any is not met. caseMarkdown goes into the coding handoff from testcase.json in the run folder and asks Scribe to name the test \u003cid \u003ctitle . runSuite gives each case a run folder NN \u003cid and runs executeRun with a pool of parallel workers. With a repo, a passed case is queued for the coding agent as soon as its browser run ends and its worker awaits that job before taking the next case, so each case is explored, handed off, and coded before the next one starts; the queue is one promise, so coding jobs never overlap. A case that is not coded records codeSkipped with the reason. Write back and fileBugs run after every case finishes and skip stopped cases. report.ts writes junit.xml failed → \u003cfailure , error → \u003cerror , stopped → \u003cskipped , step verdicts and posted links in system out , report.html src/report/data.ts turns the results into ReportData : step verdicts, the steps.json timeline with screenshots as data URIs up to a 40 MB budget, failed cases first, small text files such as the trace and workflow, posted records, each run folder's run.json page memory with heals and repairs, browser diagnostics and accessibility.json , the case's group and requirements, usage and cost, and history from the sibling .forgeqe/reports/suites/ /suite.json . From that history it also finds each failed case's last passing run folder next to its suite.json , else where it was written for the \"last good vs now\" screenshot of the same URL path, and each memory replayed case's last run with no replay, as the baseline for page memory savings; src/report/html.ts injects it as window. FORGEQE REPORT into src/report/template.html , a React app from report ui/ built into one file by bun run build:report ; every single run writes one too , suite.json , the terminal summary, and the GitHub job summary appended to GITHUB STEP SUMMARY when set . The run test cases tool calls the same runSuite , passing the working directory and runCodeAgent as the coder when the session writes tests so the agent never calls write test for those cases afterwards , and the shell renders a suite card. There is no pipeline template: the agent writes pipelines to fit each repository, and they call forgeqe suite . Environments src/environments.ts env.yaml named by environments.file lists the environments and their apps, in any layout: environments: maps, top level maps, or lists. They are all read into the same Environment apps by kind: web, api, desktop, mobile; variables ; secrets as names of environment variables . activeEnvironment picks one: env , FORGEQE ENV , use environment , or the default. withEnvironment gives a config for one tool call's env . exportEnvironment puts the environment's FORGEQE APP and variables into the environment of the tests ForgeQE runs. environmentBrief is what each agent is told: ForgeQE's agent gets every app, the browser agent its hosts, and Scribe the names to read so a test runs in every environment. Desktop apps src/desktop , py/forgeqe desktop python m forgeqe desktop serve takes JSON lines requests from src/desktop/bridge.ts , as the browser engine does. Explore runs UFO² in process ufo runner.py , at a pinned commit with the profile's model. Only UI actions are allowed, Win key chords are refused, and the action trace becomes a forgeqe desktop v1 workflow record.py . Replay replay.py on pywinauto driver.py needs no model. It handles timeouts, retries, wait for and dismiss , expect image visual.py , heal by numbered choice heal.py , and checks of the outcome checks.py . Recording by hand handrecord.py , handhooks.py uses Windows hooks and UI Automation. Changes from chat: src/desktop/edit.ts makes fixed shape changes, validates them, shows the diff, and keeps a backup. Before a run: session.py refuses a session that cannot be driven session 0, locked, no screen , and forgeqe desktop doctor reports it. The full file list is in DESKTOP.md DESKTOP.md code , and unattended runs are in DESKTOP CI.md DESKTOP CI.md . Mobile apps src/mobile , py/forgeqe mobile forgeqe mobile v1 shares the desktop engine's workflow validation, replay, heal, checks and visual code. Appium: appium driver.py is a W3C WebDriver client over HTTP, with locators quoted as XPath literals. It drives replay and the model's explore loop explore.py . Maestro: maestro.py turns a workflow into a Maestro flow, with secrets as MAESTRO \u003cNAME environment variables. It checks a team's own flows against an allowlist and runs maestro test with an argument list. TestMu AI: hyperexecute.py writes a HyperExecute project and runs its CLI, scrubbing the access key from the output and the run folder. src/mobile/run.ts uploads builds forgeqe mobile upload . The full file list is in MOBILE.md MOBILE.md code . App memory py/forgeqe desktop/memory.py Mobile and desktop explores keep what they did, as page memory does for the browser, under \u003cmemory dir /mobile/ and \u003cmemory dir /desktop/ the request's memory: {dir} , sent by src/mobile/run.ts and src/desktop/bridge.ts when memory.enabled : Flows flows/\u003capp /\u003cgoal \u003chash .json : the workflow of a goal's last passing explore; after a failed one, the action steps it got through, under resume . Controls controls/\u003capp .json : each control explores acted on, with how often it worked. Heals heals/\u003capp .json : the target a heal found for a control that was not found. Before the model is called, replay known asks AppMemory.plan for the goal's passing workflow exact , else its resume steps, else the start it shares with another goal's workflow in the app flowmatch.shared start , with workflow steps described by describe step : checks, images and closing are never borrowed . It replays them through forgeqe desktop.replay.replay with keep open=True , so the app stays open where replay got to. An exact workflow whose expect checks all hold ends the explore with no model call at all. Otherwise mobile's explore loop starts after the replayed steps, with a note of what was replayed memory note and each on screen control that worked before marked worked before ; desktop hands UFO the goal with the same note and the names of the controls that worked, and the saved workflow is the replayed steps followed by UFO's. Replay run replay , mobile and desktop wraps its heal in remembered heal : the target an earlier heal found is tried first, with no model, and what the model finds is kept. With heal off, no remembered target is used either. run.json carries memory: {kind, replayed, flow} . Memory across every kind of run API scenario plans src/api/plancache.ts : api scenarios from cases or text keeps each plan under \u003cmemory dir /api/plans/\u003chash .json , keyed by a hash of the cases' titles, descriptions, preconditions, steps and expected results or the text and the set's operations. The same input reuses the plan with no model call, replacing its earlier scenarios in the set; fresh: true plans again. Registry plans of every tool src/registry : indexRuns also indexes mobile and desktop explores tool mobile explore / desktop explore , keyed by goal and app and API runs api/\u003cset /runs/ : run api contracts / run api scenarios , known as \"the API contracts\" of a set . plans.args holds the tool's arguments added in place; schema version stays 1, so older versions still open the file . runTier0 src/registry/run.ts calls the plan's own tool and writes the reply from its result; the tools still ask before they operate a device or change data. The shell and forgeqe run both route through it. Measurement: forgeqe memory stats src/memorystats.ts counts, per area, the runs that reused history, those that needed no model, steps replayed and model steps, the API plans kept, and the requests the registry answered without the agent. The memory gate the gate job of .github/workflows/ci.yml runs the tests that fail when known work reaches the model. Containers src/containers containers: in forgeqe.yaml declares services config.ts . It refuses any setting outside the fixed list, an image without an exact version, a port bound to an address other than 127.0.0.1, and a mount option. run.ts finds docker or podman and builds run arguments: ForgeQE's labels; security opt no new privileges and pids limit ; publish 127.0.0.1:… ; env NAME for secrets; :ro mounts. It checks mounts as uploads are checked inside the project; nothing hidden, key named or linked . It waits for a TCP or HTTP ready check. Docker's port proxy accepts connections before the service listens, so a TCP connection counts only when it stays open. It scrubs secrets from logs and errors, and tracks the containers it started, which the CLI removes on exit. mock.ts makes WireMock stubs from network.json or a contract set. compose.ts translates docker compose services into forgeqe.yaml services, refusing settings that widen what a container reaches. startOrder config.ts orders services by depends on . Every container joins the project network forgeqe \u003ckey under its service name. tests.ts is a runTestCommand for run tests with containers.tests . It runs the confirmed command with sh c in the image, with the repository mounted at its own path, user this machine's user, and only the environment's FORGEQE variables, the saved login variables, and the listed env and secrets, by name. The repository's credential files are covered masks.ts , and docker top finds the browsers the test launched. workspace.ts is containers.workspace . loadConfig registers it for the repository active.ts . Nothing starts until openSession or runTestCommand asks for it. Then one container per process and project waits sleep infinity with the repository, the home volume forgeqe \u003ckey home and the project network. openSession sets the agent runtime's SHELL to a script that runs exec workdir \"$PWD\" … sh c \"$2\" in it, refuses a folder outside the repository, and adds workspaceNote to the agents' instructions. ForgeQE's own agent passes hostShell . runTestCommand sends a run in a covered folder to the workspace's runner tests.ts , same image and home volume unless host or FORGEQE HOST RUN=1 . browser.ts is browser.provider: docker . startDockerBrowser runs Microsoft's Playwright image with BROWSER SERVER Node.js, no packages mounted read only. It starts Chromium on 127.0.0.1:9222 inside, headless or on Xvfb, and a gateway on 9223 that pipes a connection only when the path starts with the random token constant time compare and any Origin is local. The token goes to the runtime by name. ForgeQE waits for /\u003ctoken /json/version and returns ws://127.0.0.1:\u003cport /\u003ctoken /devtools/browser/\u003cid . run.ts starts one per browser run and gives the engine FORGEQE BROWSER CDP URL docker browser launch kwargs . The coding loop starts one per job when the provider is docker or run.json says the run used one: the replay connects with connectOverCDP FORGEQE REPLAY CDP , one pass , and the live browser's MCP server reads PLAYWRIGHT MCP CDP ENDPOINT from {env:FORGEQE LIVE CDP URL} . The agent's tools are services and mock service in src/mcp/containertools.ts , and the CLI is forgeqe services command.ts . The agents' shell: BASH PERMISSION denies docker, podman, nerdctl and compose commands for the agent and Scribe. Tests: tests/containers.test.ts and tests/workspace.test.ts use a fake runtime; workspace.test.ts also runs the gateway against a stand in browser and the agent runtime against the workspace's script. tests/containers.live.test.ts uses real Docker and is skipped without it. Databases, test data and data flows src/data , py/forgeqe data databases: in forgeqe.yaml, or in the active environment of env.yaml, names the databases config.ts : Postgres, CockroachDB, Redshift, MySQL, MariaDB, SQL Server, Oracle, SQLite, DuckDB, Snowflake, MongoDB and Kafka. An entry holds names of environment variables, never secrets url env , password env , or auth: azure / aws iam for a token. privateEnvNames collects every Env value, so these variables never reach model run shells or test commands. python m forgeqe data serve takes one JSON line request from src/data/bridge.ts , as the browser and desktop engines do. It runs in its own environment ~/.forgeqe/data/.venv , set up by setup.ts , because DB GPT pins libraries at versions the browser engine does not run with. Each request's environment holds only the variables of the databases it names. Reading: schema.py keeps a catalog per database catalog.json under .forgeqe/data/ and links a question to the tables it needs. vector.py adds DB GPT's schema index for a database marked vector: true , with a local embedding model. The guard: guard.py parses every statement with sqlglot in the database's dialect. A read is exactly one SELECT, SHOW, DESCRIBE or EXPLAIN SELECT. A write is one INSERT, or one UPDATE or DELETE with a WHERE clause, and only on a database marked writable . connect.py opens reads in a read only session where the database has one, and always rolls them back. mongo.py checks MongoDB operations the same way. Test data: testdata.py makes rows from a spec src/data/testdata.ts reads it inside the working folder . subset.py takes a masked subset of another database. Inserted rows are kept as a batch that can be removed again. hooks.ts inserts a case's or a suite's data: before it runs, and removes it afterwards. Data flows: flows.py checks the hops listed in flows.yaml beside forgeqe.yaml , from a source table to a target table, by batch or in real time. streams.py reads Kafka topics and HTTP APIs as hops. flowreport.ts writes flows.json and report.html to \u003creports /flows \u003ctime / , and flowado.ts posts the results as an Azure DevOps test run. Remembered queries: examples.ts keeps the SQL the user approved, in .forgeqe/data/\u003cdb /examples.jsonl . It gives the SQL back with the schema when a new question is like an old one. The agent's tools are databases , database schema , run sql , generate test data , test data batches and request test data src/mcp/datatools.ts , and data flows , check flows , trace record and read mapping file src/mcp/flowtools.ts . A write, an insert or a removal asks the user first. Scribe and the API test writer get AGENT DATA TOOLS , which never pass confirmed , so they cannot write. The CLI is forgeqe data , forgeqe db and /db in the shell and forgeqe flows command.ts , dbcommand.ts , with no model. Model router src/router With more than one profile in llms.json , llm.routing off , shadow or auto gives each area of work the profile it needs. forgeqe init writes auto , and an existing project without the key is off . MODEL ROUTING.md MODEL ROUTING.md is the user's guide. Module Contents config.ts The six areas agent , browser , coding , review , analysis , planning , each with its rating bar and whether it needs images or tool calls. parseRouting reads llm.routing and llm.routes , and stops ForgeQE at start on an unknown area or a name that is not a profile facts.ts profileFacts : window, images, tool calls, reasoning, release date and price, from llms.json , the live check, and the public model lists. probeProfile runs python m forgeqe engine probe py/forgeqe engine/probe.py with the profile on stdin and only that profile's key or Entra variables in its environment. The probe makes two calls through the browser agent's own client: a structured \"Reply with ok set to true\", and a 16 pixel red square generated in code, to learn whether the model takes images. It has a 60 s limit profile.ts rateModels : the forgeqe model profile agent edit, bash and webfetch denied on the active profile gets profileRequest . That is each model's facts and answer time, never a key, an endpoint or an account. It returns a tier and 1–5 ratings per area. sanitizeProfile keeps only configured profile names, known areas and tiers, ratings rounded and held to 1–5, and a reason of at most 200 characters without control characters or \u003c . This happens to the reply and again on every read of .forgeqe/model profile.json . The file's fingerprint each profile's name, provider, model, deployment and endpoint makes ForgeQE rate the models again when the profiles change route.ts routedConfig cfg, area at each call site. The router stays out for profile / WP LLM PROFILE and for code.model all areas but browser . knowledge checks and rates the models once per process, and only when two or more profiles have a key. choose rules out a model with no key, a failed check, no images for browser , no tools, or too small a window. It then picks the cheapest model rated at the area's bar, else the best rated. Each pick goes to the session log as model.route . In shadow it is only logged. escalate gives a root cause analysis one stronger model. routeTable is forgeqe models routes profile models checks and rates again ForgeQE's agent is routed once, when its session opens brain/index.ts , so its prompt cache survives. With routing on, any profile in llms.json that has a key can receive prompts, page content, screenshots and code excerpts, and each gets the live check. llm.routing: off , a single profile, or a pin per area in llm.routes keeps the work on one deployment. tests/router.test.ts covers the router. Generated code src/provenance.ts When a Scribe job passes, code/loop.ts calls markJob , which marks what ForgeQE wrote in the repository. A file it created starts with a comment header, Generated with ForgeQE · fq:\u003cid · run \u003crun code.header , on by default . The fq: id is a hash of the file without the header, so verify tells whether the file changed since. Every file it created or edited is recorded in \u003crepo /.forgeqe/generated.jsonl , one line per run, with the lines it added as short hashes. measure forgeqe generated counts how much of the code ForgeQE wrote and how much of that is still there. The generated attribution tool src/mcp/provenancetools.ts gives the pull request footer and commit trailer with the runs' fq: ids attributionText . Every other command, from the shell src/mcp/clitools.ts forgeqe command runs the forgeqe commands no other tool covers: context , guardrails , models , generated , docs , prompts , eval domain , skills , bi , notify test , desktop / mobile doctor, update , and the rest of COMMANDS . planCommand takes the words as a list and matches them against an allowlist of shapes. Each shape has known words, arguments of a kind name matches A Za z0 9. , file is resolved with realpath inside the working or reports folders and outside hidden folders, text is one line , and known flags. A read shape runs at once, unless a value holds shell syntax. A change shape it changes files, installs, costs model calls, or sends something out is put to the user first through ctx.ask , or needs confirmed: true where nothing can ask. models routes is a change shape, because it may check and rate the models. runForgeqe spawns forgeqe with an argument array, shell: false , the session's config and profile , and a time limit per shape. Reports for every kind of run src/report/runs.ts , src/report/collect.ts , src/api/report.ts The team report forgeqe bi build , /report in the shell through src/report/command.ts counts every kind of run, not only suites and monitor rounds. runs.ts : otherRuns reads single browser runs \u003creports /\u003ctime /run.json , desktop and mobile runs desktop , mobile , exploratory testing explore/ /exploration.json and API runs api/\u003cset /runs/ as suites. It reads them from the files each run already writes, so older runs count too, up to 500 of each kind. api/report.ts : an API contract or scenario run writes suite.json and report.html next to results.json . Each contract or scenario is a case, and its checks or calls are the steps. collect.ts : exportReports forgeqe bi export , /report export writes this machine's runs and readiness reports, with the user and machine, to one bundle, \u003creports /shared/forgeqe reports \u003cuser \u003cmachine \u003ctime .json \u003creports is export.out dir , by default .forgeqe/reports . collectReports reads the bundles in \u003creports /collected/ , bi.collect and from beside the local runs. A bundle is someone else's file, so it is parsed as data, skipped above 64 MB, and its values only become table cells. A run seen twice the same machine, scope and folder counts once: this machine's own copy first, then the newest bundle's. Monitoring src/monitor forgeqe monitor is runSuite on a timer, plus memory between rounds of which checks are failing, plus alerts. Module Contents state.ts decide is pure: a failure starts or extends a failing streak since , failures ; the first alert goes out when the streak reaches fail after , a still failing reminder every remind every after the last alert, and recovered on a pass after an alert a streak that never alerted recovers silently . Stopped checks keep their state. A round that could not run reports only the forgeqe monitor pseudo check and keeps the others keepOthers . state.json is written through a temp file and a rename alerts.ts One AlertMessage per round. teamsPayload : a message with one Adaptive Card 1.4 attachment full width, a line per check with its failing step, a test case link, an Open report action , which classic incoming webhooks and Workflows webhooks both accept. emailContent : subject ForgeQE \u003ctitle , text and HTML, and the failing checks' failure.png at most 5 . smtpTransport : nodemailer with secure for port 465, STARTTLS when the server offers it, auth only when the username variable is set, and 20–30 s timeouts. sendAlerts sends to each channel independently and removes the webhook URL and the SMTP password from errors run.ts monitorRound load, run, decide, save, alert, prune , runMonitor a lock file with the pid, .monitor.lock , refuses a second live monitor on the folder; rounds start every apart, or at once after an overrun; once returns 0/1/2 , pruneRounds , formatRound , roundCard , and sendTestAlert background.ts Monitors started by the monitor tool: runMonitor with its own AbortController inside the process, one per out dir a second in the same process is refused, and lockMonitor is checked first so another process's monitor is too . Each round is emitted as a card, and a monitor that ends on an error emits a \"Monitor stopped\" card. stopBackgroundMonitors aborts and waits for them Rounds are ordinary suite folders, so report.html gets trends and flaky checks from the sibling rounds' suite.json . runDirectory creates each run or suite folder itself and adds 2 , 3 when a folder for that second exists, so back to back rounds and parallel tool calls never share one. From the shell the brain can run a round, start a background monitor that lives as long as the shell, set up monitor: in forgeqe.yaml , and test the alerts. Monitoring that outlives the shell is a service, cron, or a scheduled pipeline running forgeqe monitor once with state.json cached. Signing in. signIn in src/logins.ts drives the engine's login command: when the engine says the browser is open it calls wait , and sends save true or stop false, or on abort . forgeqe login wraps it with readline and Ctrl C; the logins tool passes ctx.waitForUser . Telemetry src/privacy.ts withoutTelemetry env is part of every child's environment: the engine and forgeqe setup through allowListEnv , the test command and replay through withoutNames , which also drops ForgeQE's own secrets , and the agent runtime server through serverEnv . It drops OTEL EXPORTER OTLP and forces the opt outs on: Process Variables Effect Engine ANONYMIZED TELEMETRY=false , and the library's cloud sync and cost calculation switches off No PostHog client, no cloud sync, no LiteLLM price download Agent runtime Its auto update, share, and model catalogue switches off, and experimental.openTelemetry: false in the config No update check, no share links, bundled model catalog, no AI SDK spans Copilot gateway enable session telemetry=False on every Copilot session py/forgeqe engine/copilot gateway.py No session telemetry to GitHub, which the Copilot SDK otherwise sends for a signed in user test command DO NOT TRACK=1 , OTEL SDK DISABLED=true , and the Next.js, Nuxt, Astro, Gatsby, Storybook, Turborepo, Angular, .NET, and Cypress opt outs Framework CLIs a test may start stay quiet cli.py maps each FORGEQE ENGINE \u003cNAME to the setting the engine reads and sets the telemetry variables again with os.environ.update , so an engine started by hand behaves the same. brand.install replaces the about:blank watchdog's animation, which loads a logo from the library's CDN, with ForgeQE's start page which loads nothing . Chrome runs with the engine library's defaults disable background networking , metrics recording only , no pings , disable sync , … . Profiles and the offline test double loadConfig reads the profiles in llms.json and picks profile , then WP LLM PROFILE , then llm.active , then default , then the first profile. With none, the active profile is \"\" and its provider none : missingKey and noAgentModel return NO MODEL SET UP , which the shell, forgeqe run , and the tools show instead of running. Entries with provider mock , default: mock , and llm.active: mock that older templates wrote are ignored. That is the active profile. With llm.routing: auto , each area of work can run on another profile from llms.json , which the model router model router srcrouter picks per call site routedConfig . profile , WP LLM PROFILE , code.model and pins in llm.routes override the router. With off the default when the key is missing , every call uses the active profile. The router never considers mock or a profile with provider none . mock is a test double, not a profile users see: it exists only when asked for by name profile mock or WP LLM PROFILE=mock . It never starts the Python engine: src/engine/mock.ts speaks the engine's stdin/stdout protocol it opens the pinned URL and finishes, or fails when there is none and runEngine runs it in its place, so offline runs and the test suite go through the same bridge, events, and reports as live runs without Python, a browser, or an API key. Its result has driver: \"synthetic\" , so it never becomes a test. Artifacts File Contents run.json Result, summary, usage, visited URLs, page memory replayed, heals, repaired , browser diagnostics, the judge's verdict judge , how the browser was set up browser , and the browser skills added to the prompt skills accessibility.json Accessibility checks for each page visited workflow.yaml forgeqe v2 compact steps for replay or audit trace.md Task, results, failure trace failure.png Last screenshot of a failed run steps.json , steps/NN.jpg The step timeline and a screenshot per step report.html The run's own report handoff.md What the coding agent was given only with a repo code.json Coding result: status, attempts, test file, command, reused, changed, last test output, tokens scribe session.json Scribe's session for a job that stopped before it finished, reopened by a rerun testcase.json The test case a suite ran in this folder junit.xml , report.html , suite.json Suite reports, in .forgeqe/reports/suites/\u003ctime / above the case folders monitoring rounds: .forgeqe/reports/monitor/\u003ctime / heal.json , heal.md Healing result and report, in .forgeqe/reports/heal/\u003ctime / with the browser runs it made state.json , alerts.json Monitoring: which checks are failing and since when .forgeqe/reports/monitor/ , and what a round alerted and whether it was sent in the round folder .forgeqe/model profile.json The model router's live checks and ratings, next to forgeqe.yaml in FORGEQE HOME , by default ~/.forgeqe , without a config file . Checked on every read, and made again when the profiles change .forgeqe/generated.jsonl In the repository: per Scribe run, its fq: id and the files and lines it wrote forgeqe reports \u003cuser \u003cmachine \u003ctime .json A team report bundle from forgeqe bi export or /report export , in .forgeqe/reports/shared/ . Teammates' bundles go in .forgeqe/reports/collected/ flows.json , report.html A data flow check, in .forgeqe/reports/flows \u003ctime / suite.json , report.html An API run's report, next to its results.json in .forgeqe/reports/api/\u003cset /runs/\u003crun / Tests bun test : config, commands, TUI, mock loop, bridge with stub engines , memory readers and forgeqe memory , and tests/engine.e2e.test.ts , which runs the real engine and Chrome against a local site with a local OpenAI compatible model server. Its second run replays the first from memory and checks the model is called once. The e2e test is skipped when the engine is not installed. Its last test passes that real run to the real agent runtime. tests/code.test.ts : provider mapping, permissions, handoff contents, and the loop with a scripted session fail then pass, missing command, a stalled command asked once to change approach and then stopping the job, the live browser's MCP server and config from run.json , the replay running while Scribe reads the repo as the read only agent, the reading turn and its notes with the replay off, a check's section in the handoff, the live browser switched on by a failed replay or a failed test, the same failure stopping the job on its third time, fatal error, stop , FailedCommands , the read only agent's permissions, and the trimmed handoff weak locators dropped, step elements left out of the page tables . tests/code.e2e.test.ts also checks, against the real agent runtime, that the reading turn has no write or structured answer tools. tests/replay.test.ts : the script and locators built from a workflow, the two launch setups, and against a local site in Chrome, a click a cookie dialog covers Playwright's reason, the dialog, the other locators' matches, the rest of the flow still run and a control hidden from navigator.webdriver the second launch gets through and the handoff says the setup is the difference , and a run that only opened a page whose heading checks come back with their sections by the element after the heading, the section it heads, and aria labelledby . tests/code.e2e.test.ts runs the real agent runtime against a local OpenAI compatible model that writes a failing test, gets ForgeQE's failure output, and fixes it. It checks the key arrives through {env:} . Both tests are skipped when the agent runtime is not installed. tests/cases.test.ts : every file format, goals, the handoff, and Azure DevOps, Jira Cloud and Server , and Xray Cloud and Server against local fake APIs that check paging, auth headers, and the write back calls. tests/suite.test.ts : the worker pool, serial coding, reports, exit codes, stop, write back, and the job summary. The engine e2e test also runs a two case suite in two real browsers and checks page memory counted both. tests/sources.test.ts : TestRail, Zephyr Scale, and qTest reading and write back paging, step results, retries without them, new runs and cycles , bugs in Jira and Azure DevOps create with screenshot and links, comment while failing, note on pass , Confluence reading and its MCP wiring, parsing of logins: , report: and the new sources, the login commands, session notes without secret values, and report.html . The engine e2e test also signs in with a saved login and TOTP the model never sees the values , checks the session file, that workflow.yaml holds text env / totp env instead of values, and that the next run starts signed in. tests/integrations.test.ts : sources: MCP switches and mcp: parsing, the Azure DevOps and Jira server entries for each auth mode and every reason a server is skipped secret values never in the config , overrides, and query api against fake APIs auth headers, api version, host restriction, mutation refusal, cutting . brain.e2e.test.ts also starts a local stdio server, a remote HTTP server that checks its bearer token, and a broken server through the real agent runtime: the {env:} values arrive, both tools are callable, the broken server is reported, and no secret reaches the model. tests/mcp.test.ts : the MCP server over HTTP auth, initialize, list, progress, cancel, errors and stdio, environment notes without secret values, pushBranch against a bare remote whose default branch is trunk , and setCiSecret with fake gh and az . tests/brain.e2e.test.ts runs the real agent runtime against a scripted local model: the agent chooses forgeqe browser run over MCP, both forms of git push are refused, and a follow up message runs a suite. tests/cli.test.ts drives forgeqe run through the same real agent runtime tool lines, reply, exit 3 for needs input and forgeqe mcp over stdio with the mock profile. The agent runtime tests are skipped when the agent runtime is not installed. tests/heal.test.ts : the healing loop with a scripted session that calls ForgeQE's tools over the real MCP server only the four heal tools are listed; the browser run lands in the heal folder : nothing to heal, healed and confirmed, an app bug left failing, a healed test that still fails or has no command, finding the command, code.test command , a missing report, a fatal error, and stop. tests/monitor.test.ts : decide sequences fail after, flaky, reminders, recovery, stopped, a round that could not run , duration and monitor: parsing, rounds through the real runSuite with state carried over, report links, attachments, alerts.json , pruning, the loop and once exit codes, the lock against a live pid, the Teams card against a fake webhook, email through nodemailer to a local fake SMTP server login, recipients, subject, screenshot , and secrets scrubbed from errors. tests/cli.test.ts runs forgeqe monitor test alerts and once with the mock profile against a fake Teams webhook. tests/commands.test.ts : the command tools called as the agent calls them: write test with a scripted session agent events, the card, the mock profile refused , heal tests clean and healed, monitor round and status, start refused in a once session, start/status/stop in a shell session a round card, a second start and a one off round refused, the lock released , test alerts against a fake webhook, logins list/clear and sign in without a person, page memory flows and clear, and forgeqe setup profiles, MCP servers, docs by topic, and init. tests/repotests.test.ts : parseResults on JUnit and TRX; find tests with a scripted Scribe the read only agent, the listing fed back, a corrected list command listed again, nothing found, mock profile and bad dates refused ; run tests declined nothing runs , confirmed per test card from JUnit, the heal suggestion , and without ask needs confirmation , then confirmed: true , exit code only ; sprints from fake Azure DevOps and Jira APIs paging, the pick through ask , cancel, needs choice , a name matched . tests/engine/test step notes.py : the agent's note built from its own fields and stored on the flow steps a step recorded, evaluate steps with their code. tests/code.test.ts handoff : notes before each group of steps, once per step, and the JavaScript shown. tests/update.test.ts : bun and pip installs found in PATH order; waiting while the registry 404s, then the cache skipping commands per install; check running nothing; a release never served failing with a retry hint. tests/sessionLog.test.ts : the session header and events with remembered passwords, secret environment variables, and inline API keys replaced; tool calls and results; the bundle's contents without screenshots or keys; /logs . tests/engine/test page settle.py : the judge off by default and on by setting, page settled , settle page waiting for a new tab and giving up on one that stays blank, and note actions as read only. tests/resume.test.ts : resume steps in the run result, loadResume by folder or run name, and browser run returning the retry and passing resume from . tests/engine/test resume.py : resume point , resume steps , the loop start and nudge text, install nudges draining after the library's hook, resume steps in the flow file, the resume hand off, checkpoints kept apart from flows, cleared only by their own run, kept by a stopped run , and the hand off after a cut off run. tests/code.test.ts resuming : a stopped job keeps scribe session.json and a finished one removes it, a rerun reopens the session with the saved replay and a carry on prompt, and a gone session starts fresh; tests/code.e2e.test.ts reopens a session by id after the runtime restarted and finds its earlier messages. tests/engine.e2e.test.ts runs a page where clicking \"One way\" resets the date: a model that takes the nudge finishes; one that ignores it is stopped with its resume steps saved, and a retry with resume from replays the cookie click and needs two model calls. tests/sessionLogins.test.ts : remembered logins domains from a URL, hosts, and wildcards; the engine payload with values; no process env , redaction next to punctuation and in carried over turns, a remembered login replacing a configured one in the notes, ForgeQE's test runs getting the env names with the output redacted, and the logins tool's remember/list/clear without the password in any result. tests/engine/test session logins.py : remembered values as placeholders on every sign in domain, env values still working, step outcomes , and making progress . tests/tui.test.tsx renders a monitor round's card in the transcript and checks the Your turn dialog holds a tool until Done, continue . tests/skills.test.ts : skills: parsing; the prebuilt skills loading cleanly; precedence and overrides across user, project, the repo's own folder, and dirs ; the repo's .claude skills only with external ; the default and opt in agents ; disable and unknown names; every validation problem including the unquoted : hint ; the per agent skill permission and skills.paths in the runtime config; links readable through and removed without touching the skill; browserSkills given and choose, unknown names, and the remembered choice; the engine request through a stub engine and skills back on the result; the skills catalogue in the environment notes; newSkill , setSkillDisabled keeping comments, and ignoredNote ; the overview and /skills ; and forgeqe skills new/show/disable/enable/check end to end. tests/code.e2e.test.ts checks, against the real agent runtime, that Scribe's skill listing has only the registry's skills for it, an allowed skill's text arrives, and a disabled skill, the repo's .opencode and .claude skills, the runtime's built in skill, and ~/.claude/skills stay out unless external adds them through the registry. tests/engine/test skills.py : choose skills order, the cap of 3, errors and an empty catalogue without a model call; skills block within skills max chars ; the request fields. tests/desktop.test.ts , tests/mobile.test.ts , tests/scope.test.ts , tests/capabilities.test.ts : the desktop and mobile commands and tools, workflow edits, uploads, and the tool scope. \u003cengine python m pytest tests/desktop : the desktop and mobile engines against fake drivers, a fake Appium server and a stand in Maestro any OS . The live tests need Windows or an emulator, and run in the desktop and android jobs of .github/workflows/ci.yml . \u003cengine python m pytest tests/engine : the engine directly, with a scripted model, including test memory.py locators, confidence, identity, flows, secrets and replay, trust mode, and self healing against real Chrome. test brand.py checks the overlay in real Chrome: the start page, trusted CDP clicks and keys dropped while locked and let through while acting, the unlocked state and step text on a page loaded mid step, and a clean screenshot and DOM for the model. WP E2E HEADED=1 runs the bun e2e test in a visible browser, with the overlay on."},{"t":"Cost-aware execution","u":"docs/cost-architecture/index.html","g":"More documentation","h":[["1. What a request costs today (measured)","1-what-a-request-costs-today-measured"],["2. The approaches this design uses","2-the-approaches-this-design-uses"],["3. The execution ladder","3-the-execution-ladder"],["4. The registry: one indexed catalogue","4-the-registry-one-indexed-catalogue"],["4.1 Taxonomy","41-taxonomy"],["4.2 Tables","42-tables"],["4.3 Fingerprints and invalidation","43-fingerprints-and-invalidation"],["5. Building context (for Tiers 1–3)","5-building-context-for-tiers-13"],["6. Learning: how the registry fills itself","6-learning-how-the-registry-fills-itself"],["7. Measurement and acceptance","7-measurement-and-acceptance"],["8. Compatibility and rollout safety","8-compatibility-and-rollout-safety"],["9. Phase 1 live result (2026-10-15)","9-phase-1-live-result-2026-10-15"],["10. Phase 2 live result (2026-10-15)","10-phase-2-live-result-2026-10-15"],["11. Rollout","11-rollout"],["12. Per-turn tool scope (2026-10-17)","12-per-turn-tool-scope-2026-10-17"],["13. Page memory at every step (2026-10-21)","13-page-memory-at-every-step-2026-10-21"],["13.1 Every case, every area (2026-10-21)","131-every-case-every-area-2026-10-21"]],"x":"Status: proposal · 2026 10 15 ForgeQE pays the model for work it has already done. This document sets out how ForgeQE decides when the model is needed at all, and how much of it. The approach is built from published, measured techniques. The goal for known work: a rerun of an existing test costs 0–5% of its first run , and the model is paid only for what is new or broken. 1. What a request costs today measured From the session logs in a live project .forgeqe/logs , Azure OpenAI gpt 5.4 : Request Agent calls Input tokens Output tokens Cached \"Are we ready to release?\" one release readiness tool call 12 577K 2.6K 518K Test authoring session many 1.9M 8.9K 1.65M These numbers show three things: 1. Fixed overhead per call. Every chat agent call resends about 45K tokens of system prompt, tool definitions and history. Output is under 0.5% of tokens, so the cost is the context, not the work. 2. Calls multiply. The deterministic release check took 12 calls, because the agent asked questions, searched for files, read config and summarised. 3. Known work is not recognised: Every request goes through the chat agent, including the rerun link. Page memory finds a saved flow only by the exact goal text plus the URL memory.py: goal key , so a reworded goal misses it. replay: verify replays every step, then starts the browser agent to check the result. Prompt caching already works about 90% of input is cached . It lowers the price per token, but not the number of tokens or calls, so on its own it cannot reach the target. 2. The approaches this design uses Technique Evidence Where it applies here Workflows before agents. Use fixed code paths for predictable tasks; keep agents for open ended ones. Anthropic, Building effective agents https://www.anthropic.com/research/building effective agents 2024 Tier 0: rerun, run case, run suite, release check Plan caching. Extract a plan template from a finished run, match new requests by key, and adapt the template with a small model. Zhang et al., Agentic Plan Caching https://arxiv.org/abs/2506.14852 , NeurIPS 2025: 50.3% lower cost and 27.3% lower latency on average, performance maintained Tier 1: known flow, new wording or new data Workflow memory. Turn successful trajectories into reusable routines. Wang et al., Agent Workflow Memory https://arxiv.org/abs/2409.07429 , ICML 2025: +51.1% relative success on WebArena, fewer steps Flows saved from passing runs, shared across cases Model cascade and routing. Try the cheapest model or step that can answer, and escalate only when a check fails. Chen et al., FrugalGPT https://arxiv.org/abs/2305.05176 up to 98% savings, task dependent ; Ong et al., RouteLLM https://arxiv.org/abs/2406.18665 , ICLR 2025 over 2x savings at about 95% quality The router MODEL ROUTING.md ; result checks on the reviewer model Content addressed memoization. Key cached work by a fingerprint of its inputs; any change to the inputs invalidates it. Standard in build systems Bazel, Gradle remote cache and in test impact analysis Registry fingerprints, the tool result cache Record–replay with self healing locators. Already in ForgeQE replay.py , ranked locators Tier 0 and Tier 2 execution The published figures come from the authors' own benchmarks. ForgeQE has to measure its own section 7 . 3. The execution ladder Every request is resolved to the lowest tier that can do it . A tier escalates only on a concrete failure signal, never on a guess. Tier When Model use Target cost vs. first run 0: Deterministic The request resolves to a known entity, and replay and end state checks pass None. The reply is filled in from the result. 0% 1: Adapt A known flow, but with new wording, new test data, or an end state check that is unsure One call to the small reviewer model with a short prompt about 2K tokens ≤5% 2: Heal Replay stopped at step k , or a check failed The agent starts at step k with the steps so far as context, not from the beginning Proportional to what broke 3: Explore No match in the registry: a new goal or new kind of task Full agent, as today 100% Resolver no model . Matches IDs TC 123 , SHOP 12 , plan/suite numbers, run folders, last , file and test names, and aliases from the registry. The rerun link and /rerun call it directly. Plain requests try it before any model is called. Router small model . Runs only when the resolver is unsure. It sees the request and the top registry candidates ranked by alias and keyword match , not the full tool catalogue. It returns {entity, tier} or novel . Safety rules non negotiable : A Tier 0 pass needs evidence: replay complete and every recorded end state check passing. Anything else escalates. Freshness. A flow is marked stale when the app changes: a new deploy or build id when configured , a changed page fingerprint seen during replay, or the age limit registry.maxAgeDays . A stale flow runs at Tier 1 once to re confirm it. Canary. Every N th Tier 0 run of an entity default 10 runs at Tier 1, so a check that silently passes is caught. The user can always force a tier: /rerun verify , /rerun fresh . 4. The registry: one indexed catalogue The registry is one SQLite file per project: .forgeqe/registry/registry.db . Bun ships bun:sqlite and Python ships sqlite3 , so there are no new dependencies. It is local, and git ignored by default its folder carries its own .gitignore . Existing JSON stores page memory, code graph, quality history stay where they are. The registry indexes and links them, it does not replace them. 4.1 Taxonomy Every row has a kind , and every kind has a single source of truth: Kind Source of truth Example test case ADO / Jira / Xray / TestRail / cases file ado:QI Claims:TC 4812 code test Repo test code code graph PlaywrightPom.Web.Tests.LoginTests.ValidLogin flow Page memory flows/ recorded steps for a goal page , element Page memory pages/ /login , username suite , plan ADO / cases file plan 12 / suite 34 work item ADO / Jira story, bug, feature pipeline , environment , login Config, ADO, saved sessions QI Claims nightly , staging , saucedemo standard run , report .forgeqe/reports run folders 4.2 Tables 4.3 Fingerprints and invalidation A cached item is valid only while its fingerprint matches its source: test case: hash of the normalised steps plus expected results, together with the ADO rev . This replaces matching on goal text, so rewording a request no longer misses the flow. code test: git blob sha of the test file and of the page objects it reaches from the code graph . flow: hash of its steps, together with the page fingerprints seen on its last pass. tool cache: the source's own version work item rev , sprint id, ETag where one exists; otherwise a short TTL. Writes always bypass it. 5. Building context for Tiers 1–3 The agent's fixed 45K token context is the main cost driver. Context is built from the registry instead of being discovered by the agent: Context packs. For each entity, a brief of a few hundred tokens: what it is, its linked case, code test, flow, pages and last results. The agent gets the brief rather than spending calls on read , grep and code outline . Tool listing by tier: Tier 1 gets one tool. Tier 2 gets the tools of the capability that broke. Tier 3 gets today's progressive listing routing.ts . Stable prefix first, variable last , so prompt caching keeps hitting. History compaction. After a request finishes, only its outcome and ids are carried forward, not its tool results. 6. Learning: how the registry fills itself Indexing. On forgeqe init , and incrementally on file change, the code graph and cases sources are indexed into entities , aliases and links . ADO and Jira items are indexed when they are first fetched. Promotion. A Tier 2 or Tier 3 run that passes, and passes the judge when it is on, writes or updates its plan and checks . A plan needs two passes, or one pass plus user confirmation, before it is allowed to run at Tier 0. Demotion. Failures increment failures . Two failures in a row mark the plan stale , and the next run goes to Tier 1 or 2. 7. Measurement and acceptance The ledger runs makes cost measurable per tier and per entity. forgeqe cost reports the following metrics. Each must meet its target before a phase counts as done. Metric Target Cost of a rerun of a known passing test, vs. its first run ≤5% Tier 0: 0 tokens Share of reruns served at Tier 0 or Tier 1 ≥90% Tier escalation rate on unchanged apps ≤5% False pass rate Tier 0 pass that a Tier 1 canary then fails 0 known; every one investigated Release check \"are we ready\", scope known 0–1 agent calls The evaluation is an offline replay suite under src/evals . It holds recorded requests rerun, reworded rerun, changed app, new goal , each with an expected tier and outcome. It runs on every change to the resolver, router or registry, and live against the real model before release. 8. Compatibility and rollout safety Nothing here may change what ForgeQE does today until it has been shown to give the same results. Built alongside, never in place of registry.mode: off shadow on in forgeqe.yaml . It defaulted to off through phases 1 and 2, and to on from 2026 10 15, after the live results in sections 9–10. With off , every request takes the agent's path, unchanged. The new code lives in src/registry/ . Existing modules gain only small hooks at their entry points: the chat request handler, the command parser and config. The chat agent, page memory, replay modes and tools keep their behaviour. Any registry error missing, locked or corrupt database, an exception in the resolver falls back to today's path. The registry is a cache: deleting it loses savings, never behaviour. Existing stores page memory, code graph, quality history, run folders keep their formats. The registry reads and indexes them and never writes to them. Tier 0 runs through the same browser run tool the agent calls. Existing test reuse, page memory replay, the configured replay mode, reports and quality checks all apply as they do today. Proven before it is switched on Tests that lock in today's behaviour. Written before the hooks, they pin down today's results: a request with the registry off goes to the agent, and the rerun link goes to the agent. They have to pass unchanged afterwards. Shadow mode. The resolver decides and records what it would do runs with mode = shadow , while the request still takes today's path. The decisions are compared with real outcomes before on . False pass check. During rollout, every Tier 0 pass is re checked at Tier 1. Any disagreement blocks the next phase. The full suite. Every existing test passes unchanged in every phase, with no existing test edited to make it pass. Switched on gradually One phase per release. Each one can be turned off on its own. A live check against the real model, Azure DevOps and Teams before each phase is called done. Every reply says which tier answered it. /rerun is an explicit command, and the agent remains one sentence away: anything the resolver is unsure of goes to it. 9. Phase 1 live result 2026 10 15 Live run against Azure OpenAI gpt 5.4 and a real headless Chrome: a /rerun of a 27 step practice form run whose first run used 242K tokens. Result Resolver Matched the run; no chat agent calls Page memory Replayed 26 of 27 steps without the model Step 27 A read only evaluate reading the fields to check them is not replayable, so the browser agent took over for 14 model steps Cost 178K tokens: 74% of the first run. The target is not met The remaining cost is the browser agent's check after replay. Phase 2 is the step that reaches the target. Read only steps evaluate , extract and the final check must be answered from recorded end state checks run.json already records checks with expected values . The agent comes in only when a check fails. 10. Phase 2 live result 2026 10 15 What phase 2 adds, with registry.mode: on only: evaluate steps whose script only reads the page are left out of a replay. The test is on the script's source and conservative: any assignment, any page changing call, any request or deferred code counts as writing. Checked against every evaluate in a live project's flows: no write was classed as read only. A passing run's record check results are kept in its flow, each with the step it was recorded after. A replay finds each check on the page again after that step, with no model. If every check holds, the run passes with no model. The first check that does not hold stops the replay there, and the agent takes over on that page today's path . The agent still judges the run when: a check is dynamic, the flow has not passed for 30 days, or it is every 10th replay of the flow the canary . Live, Azure OpenAI gpt 5.4 and headless Chrome: Flow Run Tokens vs. first run Wikipedia search 3 steps, 1 check first run 50.3K 100% rerun: the search suggestion did not show in time, so the agent took 2 steps 25.1K 50% rerun: replay complete, the check held 0 0% 6 s rerun with the saved check changed to text the page does not show 25.1K the replay refused to pass it, and the agent judged the real page Practice form playground 27+ steps reruns 122K, 135K, 82K 50%, 56%, 34% The practice page is built to resist replay: double click targets, clipboard paste and per key typing that replay's direct input does not reproduce. Its checks correctly never passed a replay that ended in a different state. Flows like that stay with the agent until replay can repeat those inputs a later phase . 11. Rollout Phase Scope Done when 1 Registry entities, aliases, plans, runs . Resolver plus Tier 0 for /rerun , the rerun link, and case and run ids. Fingerprint matching for test cases. Reply filled in from the result. A rerun of a known passing case logs 0 tokens; a reworded request still finds its flow 2 Recorded end state checks replace the post replay agent check. Canary and freshness rules. verify default costs one small model call or none; the false pass suite stays green 3 Router small model plus Tier 1 adapt. Repo code tests run directly dotnet test / npx playwright test with filters, results files parsed . Reworded and new data reruns at ≤5% 4 Tool result cache, context packs, history compaction. Release check as a fixed workflow. The release check takes 0–1 agent calls; the agent's average context per call is down by half 5 forgeqe cost report and the evaluation suite in CI Metrics in section 7 reported per release 12. Per turn tool scope 2026 10 17 Tool definitions are part of the fixed overhead in section 1, and they grew with the desktop, mobile and TestMu tools. The forgeqe agent's fixed context went past its budget. ForgeQE's agent now gets the tools of the capabilities a turn needs, not all of them src/mcp/scope.ts ; see ARCHITECTURE.md ARCHITECTURE.md tool scope srcmcpscopets srccapabilities : Every turn: the core help and setup, use capabilities , the test environments and their apps . Picked without a model call: up to four capabilities matched from the request's words, the apps it names, its links and issue keys. A capability the project has no apps or tracker for is not picked from words alone. Sticky: capabilities whose tools ran in the last three turns. On request: use capabilities adds one when the request turns out to need it, and ForgeQE continues the same request. forgeqe context , measured on this repo: Tokens The forgeqe agent's fixed context prompt 6.2K + core tools 1.6K 7.8K of a 10K budget A turn with the four largest capabilities 14.7K Every tool on every turn FORGEQE TOOL SCOPE=off about 26.7K Largest single capability api testing , systems 1.8K of a 2.5K budget per capability A typical turn \"replay the courier login on Maestro\" adds one or two capabilities, around 1–3K. Beyond the cost, fewer tools in view keep the agent from mixing up similar ones browser run , desktop explore , mobile explore . The test tests/agents.test.ts fails when an agent or a capability passes its budget. That keeps new tools from bringing the fixed overhead back. Still to measure: live model evaluations of the tool picks against FORGEQE TOOL SCOPE=off : the success rate, the use capabilities calls per request, and tokens per request. 13. Page memory at every step 2026 10 21 A suite run in a live project three Toolshop cases, Azure OpenAI gpt 5.4 showed why a rerun of a known case still cost what its first run did: Run Model steps Input tokens Replayed ADO 3287, first run an expected result did not hold at step 7 11 88K 0 ADO 3287, the reproduce run straight after 29 243K 0 Each model step costs about 8K input tokens, 6.3K of it the cached system prefix: the live page is a small part. So page memory can only lower cost by taking steps away from the model, and two things kept it from doing that: 1. A failed case saved nothing to replay. resume steps were kept for errors only; a run that failed because an expected result did not hold assertion failed , which is what a reproduce run or a rerun of a failing case is about saved no steps, and the next run explored the whole case again. Now the steps up to the first check that did not hold are kept assertion resume , marked assertion: true , the next run replays them, and the handoff tells the agent to check that result again where it is, not to redo the steps or try to make it true. 2. Known controls were described, not addressable. The site memory hints in the system prompt named the controls earlier runs used, but an action needs the element's index in this step's list, which changes with every page load, so the agent read the whole list anyway. Now each page memory knows gets a note after the element list, before the model call, naming up to 10 controls earlier runs used with the index each has right now MemoryStore.known controls , through the library's per step context messages . The page is observed once per step and that snapshot also scores the step's actions. 3. A replay to a failed check handed the check to the agent. The page that failed often shows its message only briefly a toast , so it was gone by the agent's first step, and the agent spent six steps looking for it live: 49.5K tokens, more than the first run . Now, with registry.mode: on and replay: verify , the run looks for the text the page showed instead right after the replay, with no model reproduced by check . Finding it again fails the run the same way at 0 tokens; not finding it hands over to the agent as before. A failure text that a passing check of that run also found a heading, the product name is never kept for this, since it shows whatever the outcome. Live, Toolshop, headless Chrome, Azure OpenAI gpt 5.4, a clean memory folder: Run Model steps Tokens Result A: first run of a 3 step case whose last expected result does not hold 5 37.1K failed; kept the 3 steps up to the failed check B: the same case again a rerun or reproduce run 0 0 5 s replayed 3 steps, found the same failure text, failed the same way C: a new goal on the same pages 4 30.1K passed; the agent was told the known control on each page with its index Run C is a different task, so it explores; the per step note saves steps on pages the site's earlier runs used, but does not replace exploration of a new goal. 13.1 Every case, every area 2026 10 21 The same project's history showed the wider gap: of 20 recorded web runs only 4 replayed anything 2.7M tokens in all , almost every miss a goal worded differently from its flow. Mobile and desktop explores never read what an earlier one saved, desktop and mobile heals were found again on every replay, API plans were made again for the same cases, and only browser goals could be rerun without the agent. What now holds in every area: Area Before the model is called No model at all when Browser the goal's flow, its failed run steps, an edited case's unchanged steps, else the start it shares with another goal on the host flowmatch checks of a replayed flow hold section 10 ; a failed check shows the same failure text again Mobile, desktop the goal's workflow, its failed run steps, else the shared start in the app app memory ; known controls marked for the model the goal's workflow replays and its checks hold Replay heals the target an earlier heal found it is on screen API the plan made from the same cases or text and operations always, for a repeated plan; saved API calls replay in browser flows when the status matches Reruns the registry runs the plan's own tool browser, mobile, desktop, API from the shell or forgeqe run the tool needs none forgeqe memory stats reports it per area. On the live project before this change: browser 18 runs, 4 22% reused history, none without the model. The memory gate workflow keeps it from regressing."},{"t":"Model routing","u":"docs/model-routing/index.html","g":"More documentation","h":[["Turn it on","turn-it-on"],["The areas of work","the-areas-of-work"],["A default model for each agent","a-default-model-for-each-agent"],["How a model is picked","how-a-model-is-picked"],["How ForgeQE learns the models","how-forgeqe-learns-the-models"],["Limit what an area may use","limit-what-an-area-may-use"],["What it does not do","what-it-does-not-do"]],"x":"With more than one model in llms.json , ForgeQE can give each kind of work the model it needs. A small, fast, cheap model can plan and review. A strong model can write code and find root causes. A model that takes screenshots drives the browser, and a model with a large window reads a large pull request. You do not need to know what each model can do: ForgeQE finds out. Turn it on In forgeqe.yaml : forgeqe init writes routing: auto for new projects. With no routing line it is off. shadow decides and logs each pick in the session log model.route but changes nothing, so you can see what the router would do before you let it. Shadow still runs the live checks and the rating call described below. Whatever routing says, the model an area gets must work: its key or sign in is set and it passed a live call one per model, kept for a day in .forgeqe/model checks.json once it passes; a failed one is never kept, and a failed check in model profile.json is checked again . When it does not, the next model that works is used, a GitHub Copilot profile first, and ForgeQE says why and how to fix the first. When none works, the error lists each model with the fix. Only profile skips this. With auto , a GitHub Copilot seat counts as costing nothing more per call, so it is picked whenever it is rated good enough. See the picks, and every model's check with its fix: The areas of work Area What runs in it Needs agent ForgeQE's agent: the shell, forgeqe run , forgeqe mcp tool calls; rated 4+ browser Browser, desktop and mobile runs, from screenshots images; rated 4+ coding Scribe writing and healing tests, API tests tool calls; rated 5 review Test reviewer, pull request review, evaluation judge tool calls; rated 3+ analysis Root cause of defects tool calls; rated 5 planning Refine, finding tests, API scenarios, exploratory charters tool calls; rated 3+ A default model for each agent To give one agent its own model whatever routing says, name an llms.json profile for it under llm.agents Settings → Routing → Areas of work, under each area, does the same : An agent left out uses its area's pick. The agents are forgeqe , engine , forgeqe test , forgeqe heal , forgeqe migrate , forgeqe api , forgeqe review , forgeqe pr review , forgeqe judge , forgeqe defect rca , forgeqe refine , forgeqe find , forgeqe test plan , forgeqe api plan , forgeqe explore plan , forgeqe data and forgeqe agent builder ; forgeqe models routes lists each with the model it gets. An unknown agent or a profile not in llms.json is an error when ForgeQE loads forgeqe.yaml . The model must still work: with fallback on, one that fails its check is replaced as for any area. profile still names the model for everything. How a model is picked 1. Your choices win. profile or WP LLM PROFILE comes first. Then an agent's own model in llm.agents below , which also comes ahead of code.model and code.review profile for that agent. code.model keeps the router out. A profile pinned in llm.routes is used for its area. code.review profile still sets the reviewer. 2. Facts rule models out. The router never picks a model that: has no key, or failed its live check; takes no images, for browser work; takes no tool calls, for agent work; has a window too small for the prompt a large pull request diff, for example . The facts come from llms.json , a live check, and the public model lists models.dev and LiteLLM that ForgeQE already downloads for prices. A fact that nobody knows never rules a model out. 3. Ratings pick among the rest. The cheapest model rated at the area's bar is picked. Writing code and finding root causes ask for 5, because a weaker model there costs more in failed attempts than it saves. If no model reaches the bar, the best rated one is picked. With no ratings yet, the active profile is kept unless a fact rules it out. 4. A failed answer escalates once. When a root cause analysis finds nothing, or finds a cause with low confidence although it could read the product's code, it runs again on a stronger model: one rated higher for the area, or rated the same and priced higher. Both runs are counted in its cost. The same configuration and task always give the same model. A pick changes only when the models, the ratings or the size of the prompt change. Each pick is shown once \"Model for planning: mini … \" and is written to the session log. How ForgeQE learns the models The first routed call in a project with two or more usable profiles does this once: 1. A live check of each model python m forgeqe engine probe : one short structured answer and one image. This finds a deployment that does not exist, a wrong key, and whether the model really takes images. It also measures how fast the model answers. 2. One rating call. The active profile's model receives the facts of every model, never a key, an endpoint or an account. It rates each model 1–5 for each area and gives it a tier fast, balanced or strong . The result is kept in .forgeqe/model profile.json next to forgeqe.yaml . ForgeQE uses it until the profiles in llms.json change provider, model, deployment or endpoint . You can edit the ratings. ForgeQE keeps your edits while the profiles stay the same. It checks the file every time it reads it: names that are not profiles and unknown areas are dropped, and ratings are rounded to whole numbers from 1 to 5. The live checks reach every profile in llms.json that has a key, whatever llm.routes pins. A pin keeps your runs' data on one deployment; the checks carry nothing from your runs. To send nothing to the other profiles at all, use routing: off , keep one profile with a key, or pass profile . To check and rate again for example, after a deployment changed its model : Limit what an area may use A name in routes must be a profile in llms.json , and an area must be one of the six above. Anything else stops ForgeQE at start with a message that names it. What it does not do ForgeQE's agent picks its model when its session starts and keeps it for the whole conversation. Changing the model mid conversation would drop the prompt cache and make every later turn cost more. The agent hands heavy work to the other agents, and those are routed. A rating is one model's judgement. It is kept in a file that you can read and correct."}].map(function (p) { return Object.assign({}, p, { u: new URL(p.u, base).href }) })
|
|
3
|
+
window.FORGEQE_SEARCH = [{"t":"Overview","u":"docs/index.html#overview","g":"User guide","h":[],"x":"01 Overview What ForgeQE is, and everything it can do ForgeQE is a browser agent CLI. Say what you want in plain language: a goal to carry out in a browser, test cases to run from Jira, Azure DevOps, Xray or a file, a test to write, or a CI pipeline to set up. ForgeQE's agent works out what that needs, the ForgeQE engine drives a local Chrome or Chromium by default or BrowserStack or TestMu AI/LambdaTest when configured, and a run that passes becomes a test in your repo, written by Scribe , ForgeQE's coding agent. No server, database, or Docker. You configure a model and run it from the terminal. Doc Purpose This guide Setup and how to run docs/user-guide.html This guide as one page, with every feature: what it needs, how to ask for it, and its details docs/WEB_APP.md The web app ( forgeqe web ): setting up, the chat, every page, and Settings forgeqe-architecture.html Single-view map: subagents, tools, and capabilities docs/ARCHITECTURE.md Architecture reference: modules, protocols, and loops README.md Overview After install: bash Copy forgeqe docs # print the paths of the bundled docs forgeqe docs --guide # open the docs in the browser, offline: the pages of forgeqe.github.io/docs/, with search, and the architecture map forgeqe docs --open # open the architecture page in the browser forgeqe docs --copy ./docs # copy the guide, the architecture page, the reference and the docs pages into a folder Every feature Browser Run any goal in a real browser Go to booking.com and search hotels in Mumbai for next weekend Saved logins for the application under test Sign in to the admin site and keep the session Record a web test by hand I'll show you the checkout steps in the shop: record them Test cases Run manual test cases in browsers Run SHOP-12 and SHOP-14 from Jira, two browsers at once Check and improve test cases Are the cases in test plan 12 good enough to run? Write test cases from a story Write test cases for story 1234 and save them Domain and regulatory test design Write test cases for story 1234, covering our DORA and PSD2 obligations Exploratory testing of a story Explore story 1234 and find bugs Setup Test environments and their apps Place an order in the shop, then check its invoice in Billing, in UAT What ForgeQE wrote How much of the code ForgeQE wrote is still there? Every forgeqe command from the shell Show me the context budget Product knowledge from the product's repositories How does the product cancel an order? Show the endpoints and tables involved Setup, skills, and documentation What can you do? Desktop Automate Windows desktop apps Create an invoice for Contoso in the Billing app and save it as a test Mobile Automate Android and iOS apps Sign in to the courier app and accept the first delivery, and save it as a test Operations Services, mocks, workspace and browser in Docker or Podman Start the database and the queue in Docker Scheduled monitoring with alerts Check the login flow every 15 minutes and alert Teams Background jobs on a schedule Run the release-2.3 pack every weekday at 2am in the background Your team's custom agents Ask our custom agent checkout-guard to check the basket on QA Teams and email notifications Post the results to the QA channel CI pipelines Add a GitHub Actions workflow that runs tests/cases.yaml on every PR, and make it green Data Ask a database in plain language Which customers in India have paid orders? Ask the orders database Test data on demand Generate test data: 20 customers with 1 to 3 orders each in the shop database Data flows between systems Check that customers from the digital database reach the CRM correctly Automated tests Turn a passed run into an automated test Write a Playwright test for that run in ../app Heal failing tests Heal the failing tests in ../app Migrate a test suite Migrate the Selenium tests in tests/ to Playwright TypeScript Find and run existing tests Run the checkout tests Regression packs for a release Build a regression pack for sprint 12 and run it on TestMu Flaky test detection and quarantine Which tests are flaky? Pull requests Review pull requests Review PR 42 and focus on error handling Pull request impact and test selection What does PR 42 impact? API API and contract testing Turn the last run's API calls into tests Quality Accessibility and page performance Is the checkout page accessible? Accessibility testing with personas Act as a blind person and use the website to find accessibility issues Visual comparison with baselines What changed visually since the last run? Defect intelligence: trends and prediction Which defects keep coming back? Release Requirement coverage and release readiness Are we ready to release? Reports you can share Create a release report for all projects Systems Work with Azure DevOps, Jira, GitHub, and Confluence Show the open bugs in this sprint Read any data in Azure DevOps, Jira, Xray, and Confluence, and open Azure DevOps pull requests Are there open pull requests in any repository of QI-Claims? Not supported Load, stress, or soak testing with many simultaneous users . Instead: per-page Core Web Vitals with budgets. Penetration testing or dynamic security scanning . Instead: security findings in pull request reviews."},{"t":"Get started","u":"docs/index.html#get-started","g":"User guide","h":[],"x":"02 Get started Install, configure a model, and sign in to your tools"},{"t":"What you need to run","u":"docs/index.html#doc-how_to_use-what-you-need-to-run","g":"User guide · Get started","h":[],"x":"What you need to run"},{"t":"Required","u":"docs/index.html#doc-how_to_use-required","g":"User guide · Get started","h":[],"x":"Required Requirement Notes A terminal macOS Terminal, iTerm2, VS Code or Cursor's terminal, Windows Terminal A model A profile in llms.json with a working key, or Microsoft Entra ID sign-in for Azure (Azure OpenAI, OpenAI, an OpenAI-compatible gateway, or Ollama), or a GitHub Copilot seat (see GitHub Copilot seats as the model ) Internet access on first use ForgeQE downloads Bun, the agent runtime, uv, Python, and the engine into ~/.forgeqe once"},{"t":"Optional","u":"docs/index.html#doc-how_to_use-optional","g":"User guide · Get started","h":[],"x":"Optional Optional Why Google Chrome Used when installed; otherwise ForgeQE installs Chromium. Or set browser.provider to BrowserStack or TestMu AI/LambdaTest A repo with tests Where passed runs become tests ( --repo , or code.repo ); without one, tests go in the current folder Jira, Azure DevOps, Xray, TestRail, Zephyr Scale, qTest, Confluence Sources of test cases and requirements, and where results go back gh or az For pipelines: pushing, secrets, and triggering runs Teams webhook or SMTP Monitoring alerts"},{"t":"Not required","u":"docs/index.html#doc-how_to_use-not-required","g":"User guide · Get started","h":[],"x":"Not required Installing Python, Bun, browsers, or agent runtimes yourself: ForgeQE downloads what it needs, without admin rights and without touching PATH A server, database, or Docker"},{"t":"Quick start","u":"docs/index.html#doc-how_to_use-quick-start","g":"User guide · Get started","h":[],"x":"Quick start bash Copy forgeqe init # forgeqe.yaml, llms.json, and .forgeqe/ (prompts, skills, knowledge) in this folder export WP_AZURE_API_KEY=... # the key your llms.json profile names forgeqe models # check the profiles forgeqe start # the shell With GitHub Copilot licences instead of a model key, sign in rather than exporting one. The sign-in lists your seat's models, recommends one (it takes screenshots and, where the plan has one, uses no premium requests), and writes your choice to llms.json as the copilot profile, made the default. Everything then runs on your Copilot seat: ForgeQE's agent, Scribe, and the browser, desktop and mobile engines. No other model is needed: bash Copy forgeqe setup # the engine and GitHub's Copilot SDK forgeqe auth login copilot # opens GitHub in your browser to sign in, then pick the model forgeqe doctor # checks the engine, the SDK, the agent runtime, the sign-in and each model In the shell, type a request and press Enter: text Copy Go to booking.com and search for hotels in Mumbai for next weekend Run SHOP-12 and SHOP-14 from Jira, two browsers at once Write a Playwright test for that run in ../app Or in your browser, with the same agents, a page for each kind of work, and every setting as a form: bash Copy forgeqe web # opens http://127.0.0.1:…/#token=… in your browser: start at Settings › Set up Without the shell: bash Copy forgeqe run \"Search hotels in Mumbai on booking.com\" --plain forgeqe suite cases.yaml --parallel 3 # what pipelines call forgeqe models lists the profiles ForgeQE sees and marks the active one. With no profile set up, the shell's footer reads Model none set up and any request explains how to add one. With more than one profile, llm.routing: auto gives each kind of work (agent, browser, coding, review, analysis, planning) the configured model it needs; forgeqe models --routes shows the picks. See docs/MODEL_ROUTING.md ."},{"t":"Get ForgeQE","u":"docs/index.html#doc-how_to_use-1-install","g":"User guide · Get started","h":[],"x":"Get ForgeQE ForgeQE is set up with your team by Capgemini: we bring it to your project, connect your models and tools, and run the first proven tests with you. Contact us to get started."},{"t":"Scaffold config","u":"docs/index.html#doc-how_to_use-2-scaffold-config","g":"User guide · Get started","h":[],"x":"Scaffold config bash Copy bun src/index.ts init # or bun src/index.ts init --global --profile azure-gpt4o Edit llms.json endpoints, then give ForgeQE the keys its profiles name ( WP_AZURE_API_KEY , OPENAI_API_KEY , WP_API_KEY ): forgeqe auth login \u003cNAME\u003e saves one in your system's credential store, or put them in a .env next to forgeqe.yaml ; the engine process inherits them."},{"t":"Signing in to the model without a key (Microsoft Entra ID)","u":"docs/index.html#doc-how_to_use-signing-in-to-the-model-without-a-key-microsoft-entra-id","g":"User guide · Get started","h":[],"x":"Signing in to the model without a key (Microsoft Entra ID) Where keys are turned off ( disableLocalAuth on the Azure OpenAI or Foundry resource, managed identities, zero trust), set auth: entra on an azure profile instead of api_key_env . Key profiles keep working, and both kinds can sit side by side in one llms.json : json Copy \"azure-entra\": { \"provider\": \"azure\", \"model\": \"gpt-4o\", \"deployment\": \"gpt-4o\", \"endpoint\": \"https://YOUR_RESOURCE.openai.azure.com/\", \"auth\": \"entra\", \"managed_identity_client_id\": \"00000000-0000-0000-0000-000000000000\" } ForgeQE asks Microsoft Entra ID for a token wherever it runs, trying in this order: Where ForgeQE runs Identity it uses An Azure VM, VM scale set, self-hosted agent, App Service, Functions, Container Apps The user-assigned managed identity named by managed_identity_client_id (or AZURE_CLIENT_ID ); without one, the system-assigned identity AKS Workload identity ( AZURE_FEDERATED_TOKEN_FILE , set by the webhook) Azure Pipelines An AzureCLI@2 task on a service connection with workload identity federation: ForgeQE uses that task's sign-in, with no secret GitHub Actions azure/login with OIDC, then ForgeQE in the same job Your machine az login Anything else A service principal in AZURE_TENANT_ID , AZURE_CLIENT_ID and AZURE_CLIENT_SECRET (or AZURE_CLIENT_CERTIFICATE_PATH ) Give that identity the Cognitive Services OpenAI User role on the resource. Tokens are renewed before they expire, so long suites and coding sessions keep running. The browser engine signs in itself; the coding agent's runtime only takes a key, so ForgeQE gives it a gateway on 127.0.0.1 that accepts a one-time random key and passes each request on with a current token. No key is stored anywhere. auth: entra also works on an openai_compatible profile, for a gateway such as API Management that checks Entra ID tokens: set token_scope to the scope it expects (for example api://\u003capp id\u003e/.default ; the default is https://cognitiveservices.azure.com/.default ). The engine needs the azure-identity package, which forgeqe setup installs (and adds to environments set up before it was needed); with FORGEQE_PYTHON , install it there yourself."},{"t":"GitHub Copilot seats as the model","u":"docs/index.html#doc-how_to_use-github-copilot-seats-as-the-model","g":"User guide · Get started","h":[],"x":"GitHub Copilot seats as the model With GitHub Copilot licences (Pro, Pro+, Business or Enterprise), a github_copilot profile runs the browser engine and the desktop and mobile agents on your Copilot seat, through GitHub's Copilot SDK . Copilot gives other tools no model API of its own, so ForgeQE starts a small gateway on 127.0.0.1 that runs the SDK and speaks the OpenAI chat API to the engine. It signs in with a GitHub token, so no other app is authorized on your GitHub account. json Copy \"copilot\": { \"provider\": \"github_copilot\", \"model\": \"gpt-4.1\" } Field What it is model The Copilot model, as the Copilot SDK names it ( gpt-4.1 , claude-sonnet-4.6 ). It must take screenshots. The sign-in lists your seat's models and which of them take images. engine_model Optional. Another Copilot model for the browser engine and the desktop agent. reasoning_effort Optional. How hard a reasoning model thinks: low , medium , high , xhigh or max . Sent only to a model your seat says takes one; unset, the model's default. api_key_env Optional. A variable that must hold the GitHub token for this profile. Without it ForgeQE uses COPILOT_GITHUB_TOKEN , then a token forgeqe auth login copilot saved, then the browser sign-in. Sign in once per machine (Windows, macOS or Linux): bash Copy forgeqe auth login copilot It offers two ways, the ones GitHub's Copilot SDK recommends: Sign in with GitHub in the browser (recommended on your own computer). ForgeQE runs GitHub's own Copilot sign-in ( copilot login from GitHub's Copilot CLI, downloaded once into ~/.forgeqe/tools and checked against GitHub's checksums). Your browser opens GitHub; approve GitHub Copilot CLI there and you are signed in. GitHub's CLI keeps the sign-in in your system's credential store (Windows Credential Manager, the macOS Keychain); ForgeQE never sees a token. On a remote machine it shows a code to enter at github.com/login/device instead. A fine-grained token , for machines without a browser. ForgeQE opens GitHub's token page: set Resource owner to your personal account and add the Copilot Requests permission, then paste the token ( github_pat_... ). Each character shows as * , and ForgeQE confirms what it got ( github_pat_11AB…Wz9Q (93 characters) ). The token goes to your system's credential store like ForgeQE's other secrets. Classic tokens ( ghp_ ) do not work with Copilot. Either way ForgeQE checks the sign-in by asking Copilot for your seat's models, then asks which one to use (recommended first; models your seat has but has not turned on are named, with the settings page) and writes it to llms.json ; the first time, the Copilot SDK downloads Copilot's runtime from GitHub (checked against GitHub's checksums). forgeqe auth shows the sign-in on its Copilot line; forgeqe auth logout copilot signs out: Copilot removes the browser sign-in from this computer, the system's credential store included (GitHub keeps the authorization until you revoke GitHub Copilot CLI at github.com/settings/applications). GitHub Enterprise Cloud (a ghe.com address, with data residency): pick Sign in to your company's GitHub Enterprise and type the address ( acme.ghe.com ). ForgeQE keeps it with the sign-in as COPILOT_GH_HOST , which Copilot's sign-in and every Copilot call use; an exported COPILOT_GH_HOST or GH_HOST works the same. Signing in to github.com again forgets it. Choosing the model. forgeqe models --copilot lists your seat's models: whether each takes screenshots, its premium requests per call (0 is included in your plan) and the profiles that use it. bash Copy forgeqe models --copilot # the seat's models forgeqe models --copilot --add claude-sonnet-4.6 --as sonnet # keep one as a profile in llms.json forgeqe start --model claude-sonnet-4.6 # another Copilot model for this session only (also run, chat) --add takes --engine-model (a model that takes screenshots, for the browser, desktop and mobile agents) and --default . --model changes the model of the profile in use, which must be a github_copilot one. Every profile is then in the model picker ( /model , or the model menu of forgeqe web ), and in Settings, Models a Copilot profile's Model and Engine model are picked from your seat's list. Premium requests. Every Copilot call is one premium request times the model's multiplier. The usage ledger records them with each call, the router prefers a model with fewer per call when its rating is good enough, and budget.premium_requests in forgeqe.yaml ( run , day , month ) warns at 80, 90 and 100 percent like the money budgets. A rate limit or a used-up allowance is reported as such (HTTP 429), so the agents wait or stop rather than retry. If your organization uses SAML single sign-on, GitHub asks you to authorize the organization during the browser sign-in. A Copilot Business or Enterprise seat needs your organization to allow Copilot CLI in its Copilot policies. A token reaches only the gateway's process. The engine gets the gateway's address and a one-time key that works nowhere else; the gateway refuses requests without that key and any request a web page sends. Model-run shell commands never see the token or the key. Which part uses what: Part Model Signs in with The browser engine (every browser run: run --direct , suites, monitoring) engine_model or model , on the Copilot seat forgeqe auth login copilot The desktop and mobile agents engine_model or model , on the Copilot seat forgeqe auth login copilot ForgeQE's agent and Scribe model , on the Copilot seat forgeqe auth login copilot Copilot runs one SDK session per model request, with none of Copilot's own tools and your request's system prompt in place of Copilot's. The agent's tools are offered to the model as the session's only tools; when it calls one, the gateway ends the turn and hands the call back to ForgeQE's agent runtime, which runs it (with the same permissions as on any other model) and sends the result with the next request. The gateway itself runs nothing. With Copilot and a key-based mod"},{"t":"Evidence: what an agent did, decided and used","u":"docs/index.html#doc-how_to_use-evidence-what-an-agent-did-decided-and-used","g":"User guide · Get started","h":[],"x":"Evidence: what an agent did, decided and used Evidence records what an AI agent did, how, what it decided and the reason it gave, and what data it used, so it can be checked rather than taken on its word: ForgeQE's own agents, or any other team's or platform's. It receives an agent's OpenTelemetry traces while it runs, and reads OpenTelemetry exports (generative AI conventions), Langfuse and LangSmith exports, an agent's own JSON log with a mapping file (which field says what), and ForgeQE's own sessions. A record is written once to .forgeqe/evidence/runs/ ; what the source does not say is listed as a gap, never guessed. What the agent took in is kept as a fingerprint unless you ask for its content ( --content , with secrets cut out). bash Copy forgeqe evidence receive # an agent's traces as it runs: prints the OTEL_* settings to give it forgeqe evidence record langfuse-trace.json # a Langfuse trace (GET /api/public/traces/\u003cid\u003e) or observations forgeqe evidence record langsmith-runs.json # LangSmith runs (list_runs, or read_run with child runs) forgeqe evidence record --latest # ForgeQE's own last session (--latest 5 for five) forgeqe evidence record trace.json # an OpenTelemetry export: one record per trace forgeqe evidence record agent.jsonl --mapping mapping.yaml --content forgeqe evidence runs # what is recorded, newest first forgeqe evidence show \u003cid\u003e # one run: steps, inputs, decisions, statements, gaps forgeqe evidence contract new \"claims-agent\" # a contract to edit: what was agreed for the agent forgeqe evidence contract approve claims-agent # a person types its name; only then can its checks fail a run forgeqe evidence check --all # each run against its agent's contract (exit 1 when one fails) forgeqe evidence measure # how well each check is measured on labelled runs forgeqe evidence findings \u003cid\u003e # the findings as a file the agent reads to fix them forgeqe evidence check \u003cid2\u003e --attempt-of \u003cid\u003e # a fix attempt (two at most, then a person takes over) forgeqe evidence overrule \u003cid\u003e \u003cfinding\u003e --reason \"why\" # a person overrules one finding (at a terminal) forgeqe evidence judge \u003cid\u003e # a model reads the answer: grounded in its inputs, and the owner's rubric forgeqe evidence grade \u003cid\u003e R2 misses --reason \"why\" # a person grades the answer (at a terminal, or on its page) forgeqe evidence calibrate claims-agent # how often the rubric's judge agrees with people's grades forgeqe evidence dashboard claims-agent # per version: verdicts, checks, what keeps going wrong, by week; each number with its runs forgeqe evidence causes \u003cid\u003e # where each open finding may come from: its instructions, a tool, its data forgeqe evidence replay-kit \u003cid\u003e H1 # the change to make for a replay, as data for your harness forgeqe evidence replay \u003cid\u003e H1 \u003cr1\u003e \u003cr2\u003e \u003cr3\u003e # the replays: proven when the finding is gone in 3 and nothing else broke forgeqe evidence learn claims-agent # proposals: guidance from rules broken again and again, fixes from proven causes forgeqe evidence decide claims-agent \u003cproposal\u003e approve --reason \"why\" # a person decides (at a terminal) forgeqe evidence guidance claims-agent # what was approved, as Markdown to put into the agent forgeqe evidence baseline claims-agent --reason \"released 2.2.0\" # a person keeps the baseline (at a terminal) forgeqe evidence drift --all --notify # the nightly job: what changed since each baseline (exit 1 on an alert) forgeqe evidence trust claims-agent assist --reason \"why\" # grant a level, never above what its evidence supports forgeqe evidence audit claims-agent --out claims.audit.json # every decision with its evidence and approver forgeqe evidence inventory # every agent evaluated: versions, models, tools, contract, trust, alerts forgeqe evidence harness approve claims-agent # a person approves the commands ForgeQE runs the agent with forgeqe evidence run-suite claims-agent --version 2.2.0 --live 2.1.0 --repeats 3 # ForgeQE runs both versions on the suite, then the gate forgeqe evidence instrument # how an agent's OpenTelemetry sends its runs to ForgeQE forgeqe evidence verify approve orders-api # a person approves how a repository is built and tested clean forgeqe evidence build-check orders-api --base main --head agent/fix-123 --run \u003cid\u003e # the change built and tested, test by test forgeqe evidence trajectory claims-agent storm-roof --version 2.2.0 # each run's path against the scenario's, step by step forgeqe evidence release claims-agent --candidate 2.2.0 --live 2.1.0 # scenario by scenario, with run-to-run noise said forgeqe evidence draft claims-agent --from jira:SHOP-12 --defect jira:SHOP-40 # scenarios drafted from acceptance criteria and defects forgeqe evidence draft --run \u003cid\u003e # a run that failed, drafted as a scenario by code forgeqe evidence draft support-agent --from-product --about shipped,refund # scenarios from the product graph's business rules forgeqe evidence drafts accept \u003cdraft\u003e --reason \"why\" # a person adds a draft to the suite (or reject), typing its id forgeqe evidence fix \u003cid\u003e H1 # the cause's instruction added to a copy of the agent's prompt, proven by the harness forgeqe evidence fix apply \u003cfix\u003e --reason \"why\" # a person applies a proven fix (typing its id); nothing is committed forgeqe evidence demo ~/evidence-demo # a demo project: made-up agents' runs filling every Evidence page, agents being built run by the harness, and reports/ (then forgeqe web there) forgeqe evidence ci orders-api --base origin/main --report report.md --sarif out.sarif # the pull request check forgeqe evidence ci init github # the pipeline that runs it on every pull request (or azure) forgeqe evidence scenarios claims-agent # the scenario suite's requests, to run through a version forgeqe evidence release claims-agent --candidate 2.2.0 --live 2.1.0 # the release gate (exit 1 when held) forgeqe evidence product-check orders-api --base main --run \u003cid\u003e # an agent's change against the product graph (rules, architecture, # dependencies, regression, secur"},{"t":"The model's context window","u":"docs/index.html#doc-how_to_use-the-models-context-window","g":"User guide · Get started","h":[],"x":"The model's context window Each agent has its own context: ForgeQE's agent, Scribe, the reviewer, and the browser agent each keep their own conversation with the model. The Context panel shows the working agent's (or the last one to call the model), named on its Agent row, as a share of what it can hold before the agent runtime compacts it. When it compacts, the runtime summarises the conversation so far to make room, Activity says so, and details from early on may be gone. The browser agent never compacts: it keeps its last steps only. ForgeQE takes each model's window from its name (GPT-5: 400K, of which a prompt may take 272K; GPT-4.1: 1M; GPT-4o: 128K; o-series and Claude: 200K; Gemini: 1M; anything else: 200K) and gives it to the agent runtime, which compacts at that window less room for the answer. Where a deployment or server allows less, say so with \"context\" in the profile in llms.json : json Copy \"ollama-llama\": { \"provider\": \"ollama\", \"model\": \"llama3.2\", \"endpoint\": \"http://127.0.0.1:11434/v1\", \"context\": 32768 } For Ollama this matters: a prompt longer than the server's context length is cut from the start without an error. Without \"context\" ForgeQE assumes 32K for an Ollama profile; start the server with OLLAMA_CONTEXT_LENGTH set to the same number."},{"t":"Signing in to your tools","u":"docs/index.html#doc-how_to_use-signing-in-to-your-tools","g":"User guide · Get started","h":[],"x":"Signing in to your tools Instead of copying tokens into .env , sign in once and ForgeQE saves the token in your system's credential store: the macOS Keychain, Windows Credential Manager, or the Secret Service keyring on Linux. On a machine without one, such as a headless Linux box, it uses ~/.forgeqe/credentials.json , readable only by you. bash Copy forgeqe auth login # pick a system forgeqe auth login jira # or name it: azure_devops, github, copilot, jira, confluence, testrail, zephyr, qtest, xray, # browserstack, testmu, gitlab, postman, sentry, azure, dataverse forgeqe auth # what is signed in, and how forgeqe auth logout jira In the shell, type /auth jira (or /auth alone for the status). Tokens are typed into the prompt box unseen, shown as dots, and never sent to the agent. In the web app, every system's card in Settings (Integrations, and MCP servers) has the same sign-in under Edit: its questions are answered on the page, a token goes into a password field and never comes back, and the page to open is shown as a link. System How you sign in Azure DevOps Sign in with Microsoft in the browser through the Azure CLI ( az login ); ForgeQE saves nothing, and the Azure CLI renews the sign-in. Or paste a personal access token: the token page opens with the scopes to tick. Azure DevOps Server (on-premises) uses a personal access token. GitHub Sign in with GitHub in the browser through the GitHub CLI ( gh auth login ): ForgeQE shows the one-time code and opens the page. Or paste a token. Needs gh installed. forgeqe auth login copilot can use this sign-in for a github_copilot profile. GitHub Copilot forgeqe auth login copilot : Sign in with GitHub in the browser (GitHub's own Copilot sign-in), or paste a fine-grained token with the Copilot Requests permission. ForgeQE checks it with Copilot and lists the models your seat has. For a github_copilot profile; see GitHub Copilot seats as the model . Jira, Confluence Jira Cloud: Sign in with Atlassian in the browser , for Atlassian's Rovo MCP server (Jira and Confluence tools for ForgeQE's agent), or an API token. ForgeQE's own Jira calls (finding and running test cases, posting results) still need the API token. Otherwise your Atlassian API tokens page opens (Cloud) or your personal access tokens page (Server/Data Center); create one and paste it. Confluence on the same Cloud site as Jira reuses the Jira sign-in. TestMu AI Sign in in the browser for its MCP server (it takes no key), or paste the user name and access key for remote browsers and devices. GitLab, Sentry, Postman, BrowserStack Sign in in the browser , with the system's own sign-in, for its MCP server; or paste a token or key. The browser sign-in is GitLab's (GitLab.com or your own), Sentry's (sentry.io), Postman's (US) and BrowserStack's: self-hosted Sentry and Postman's EU server take a token only. BrowserStack's remote browsers still need the user name and access key. Azure Sign in with Microsoft in the browser through the Azure CLI ( az login ), for Microsoft's Azure MCP server. Dataverse Sign in with Microsoft in the browser through the Dataverse CLI ( npx @microsoft/dataverse auth create ), for the environment integrations.dataverse.url names. TestRail, Zephyr Scale, qTest, Xray Cloud The page with your API key opens, or ForgeQE says where to find it; paste it. Anything else forgeqe auth login OPENAI_API_KEY (any variable name) saves that one secret: a model key, a Teams webhook URL, an SMTP or saved-login password. Browser sign-ins of MCP servers. GitLab, Sentry, Postman, BrowserStack, TestMu AI and Atlassian's Rovo server sign ForgeQE in as the MCP authorization spec has it: ForgeQE reads the server's OAuth metadata, registers itself as a public client, opens the system's sign-in page with PKCE, and takes the answer on a one-time listener on 127.0.0.1 . Every address involved must be https. The tokens are kept in the credential store and renewed before each session; a sign-in is used only with the server it was given for, so changing the GitLab address needs a new sign-in. forgeqe auth logout \u003csystem\u003e removes it (the system may still list ForgeQE among your authorized apps until you revoke it there). A token variable, when set, is used instead. Atlassian's OAuth sign-in for its REST API needs a client secret, which a command-line tool cannot keep secret, so ForgeQE's own Jira and Confluence calls use API tokens: they are what Atlassian recommends for scripts and tools. Each token is checked against the system before it is saved, and the system is switched on: a saved Jira sign-in sets the site URL too, so sources.jira is not needed in forgeqe.yaml . Saved values go in under the variable names the config already reads ( JIRA_API_TOKEN , ADO_PAT , ...). A variable exported in the terminal is used before a saved sign-in, and a saved sign-in before a .env file, so pipelines keep using their secrets. The shell commands the agents run never see the saved secrets."},{"t":"Choosing the model and the browser","u":"docs/index.html#doc-how_to_use-choosing-the-model-and-the-browser","g":"User guide · Get started","h":[],"x":"Choosing the model and the browser forgeqe.yaml selects the active profile: yaml Copy llm: models_file: ./llms.json active: azure-gpt4o routing: auto # off | shadow | auto: each area of work gets the model it needs # routes: # limit or pin an area: browser: [gpt4o, gpt54], coding: gpt54 # agents: # an agent's own default model: forgeqe: gpt54, engine: gpt4o, forgeqe-test: gpt54 browser: headless: true max_steps: 40 # a checkpoint: a run still making progress carries on, up to 3x timeout_seconds: 600 vision_detail: low allowed_hosts: [] judge: false # true: a second model call checks each finished run and can fail it overlay: true window: maximized # visible browser: maximized | viewport (a window of viewport's size) video: true # video.mp4 of each run, shown in its report # start_url: https://staging.example.com Reaching a limit. A run that reaches max_steps (after carrying on while it makes progress) or timeout_seconds asks whether to carry on when someone can answer: in a chat, on the web app's pages, or in a terminal ( --yes does not ask). Carry on gives it as many steps, or as long, again; the browser stays open and paused while it asks, and the time spent waiting does not count. Stop ends it there, keeping everything it did (its steps, screenshots, report and what it recorded, such as an accessibility persona's barriers). No answer in 10 minutes is a stop. A run nobody can be asked about (a schedule, CI, --yes ) stops at its limit as before. A run that stops at a limit is not counted as passed. A run that has made no progress by a max_steps checkpoint (its recent steps all failed) asks the same way before it stops, instead of ending there: you may know the page is slow or the form is long. code.max_tokens asks the same way for the coding agent and the API test writer. forgeqe suite in a terminal asks too, for each case's browser run and coding job, one question at a time when cases run side by side. judge is off by default. When it is on, one more model call reads the finished run's steps and screenshots and can fail a run the agent completed, for example when five scores were read off one results page rather than one step per item. That strictness sent runs into loops of re-checking, so turn it on only when you want that second opinion. Each step waits for the tab the agent is on to finish loading (up to 8 seconds, 3 for a tab that stays blank) before the page is read, so a result that opens in a new tab is not mistaken for a blank page. With a visible browser ( headless: false or --headed ), ForgeQE opens on its own start page, and every page it drives gets a glowing edge and a bar along the bottom showing, in plain words, what the step is for and what the agent is doing (\"Step 19 · Check whether the results can be sorted by Fastest · Looking through the page's buttons\"). Your mouse and keyboard are locked while the agent thinks and unlocked while it clicks and types, so a stray click can't change the test. None of this appears in the screenshots the model sees or in the report. overlay: false turns it off. forgeqe login \u003cname\u003e shows the same bar without the lock, since you are the one signing in. A visible browser opens maximized. window: viewport opens it at viewport 's width and height instead; a headless page is always that size (1280×800 by default). Each run is recorded to video.mp4 in its run folder, and the report plays it on the run's page; video: false turns recording off. The video needs packages that forgeqe setup adds to the engine (an engine set up before this version gets them on its next run). start_url is optional. Leave it out and the agent picks the site from the goal; ForgeQE never guesses a URL from the goal text. allowed_hosts empty allows every host. Set [\"example.com\"] to keep the browser on that domain and its subdomains. prompts.step_instruction is appended to the engine's system prompt; the lines of prompts.guiderails are guardrails for every agent (see Guardrails above)."},{"t":"Using ForgeQE","u":"docs/index.html#using","g":"User guide","h":[],"x":"03 Using ForgeQE The shell, its commands, and running without it"},{"t":"Shell","u":"docs/index.html#doc-how_to_use-3-shell","g":"User guide · Using ForgeQE","h":[],"x":"Shell bash Copy bun src/index.ts start Type what you want and press Enter. The prompt wraps long text and grows as you type; Ctrl+J (or Shift+Enter, Alt+Enter where the terminal reports it) starts a new line, so you can paste or write several steps at once: text Copy Go to booking.com and search for hotels in Mumbai Run SHOP-12 and SHOP-14 from Jira, two browsers at once Run test plan 12 suite 34 from Azure DevOps and don't post results Write a Playwright test for that run Add a GitHub Actions workflow that runs tests/cases.yaml on every PR, and make it green ForgeQE's agent reads the message and decides what it needs: a browser run, test cases from Jira, Azure DevOps, Xray, a file, or steps you pasted, a test, or a pipeline. There is no command to pick one. When a reference is ambiguous (is 12 a work item or a test plan?), it asks, and you answer in the next message; the session remembers the conversation. Its replies appear in the transcript, and so does everything its tools do: browser steps, suite progress, and the test commands ForgeQE runs. For a browser goal, the browser starts blank and the browser agent decides where to go, then works through cookie banners, sign-in prompts, and forms on the page. The transcript shows each step's goal and the actions it took ( navigate … , click \"Accept\" , input \"Mumbai\" → \"Where are you going?\" ), with ✗ and the error when an action fails. Everything the other forgeqe commands do is also a tool the agent can call, so you can ask for it here instead of leaving the shell: Ask for Tool Same as \"Run SHOP-12 and SHOP-14\", \"what's in test plan 12?\" run_test_cases , find_test_cases forgeqe suite , forgeqe cases \"Write a Playwright test for that run\" write_test forgeqe code \"The checkout tests are failing, fix them\" heal_tests forgeqe heal \"Run all tests related to login\", \"run the tests added this sprint\", \"which tests cover checkout?\" find_tests , run_tests , list_sprints (shell and forgeqe run only) \"Check the smoke cases once\", \"monitor them every 10 minutes\", \"is anything failing?\", \"stop monitoring\", \"send a test alert\" monitor forgeqe monitor , --once , --test-alerts \"Sign in to shop\", \"which logins do I have?\", \"forget the shop session\" logins forgeqe login , forgeqe logins , forgeqe logins clear \"What flows does page memory know?\", \"forget what you learned about shop.test\" page_memory forgeqe memory \"What can you do?\", \"can you do API testing?\", \"do you support DORA?\" capabilities forgeqe features \"Which profiles do I have?\", \"which MCP servers will you use?\", \"how do email alerts work?\", \"install the engine\", \"scaffold a config in ./demo\" forgeqe_setup forgeqe models , forgeqe mcp list , forgeqe docs , forgeqe setup , forgeqe init Only browser runs of the app under test become tests. When the agent uses the browser for a task, such as checking whether a story is linked to a test case in Azure DevOps or Jira, that run is marked as a task and no test is written for it, even if write_test is called on it. write_test and heal_tests run the same loops as the commands: ForgeQE runs the test command itself and a test only counts as passing when ForgeQE saw it pass. Their results, and each monitor round, appear as a card in the transcript. When a step needs you, such as signing in by hand in the browser window, a Your turn prompt shows what to do, and ForgeQE waits until you pick Done, continue (save the session) or Cancel . The slash commands control the session and show a few things directly ( /help lists them): Command Action /stop Stop what is running (or press Esc) /rerun [last|run] Run a passed run again as recorded, without ForgeQE's agent (the last one, a run folder, or its goal) /headed on|off Show the browser window (live profiles) /theme light|dark|auto 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. FORGEQE_THEME=light (or dark ) sets it at start; /theme alone says which is in use /details [on|off] Show everything the agents do while they work: the browser agent's reasoning, page memory, engine logs, every file the coding agent reads (off by default: step results, files written, test results, problems). --verbose or FORGEQE_VERBOSE=1 starts with it on, for start , run , suite , code , and heal too /model Pick the model from the profiles in llms.json (or click the model ▾ in the status line; Tab switches to the next one) /profile \u003cname\u003e Switch LLM profile (or press Tab); from your next message the agent goes on with it in the same session, or, for a profile it cannot switch to, starts again with the conversation so far /env [name] The test environments in env.yaml and their apps, or switch to one /logs [shots] Save this session's log and runs in one archive to share ( shots : with screenshots) /features What ForgeQE can do, and what each capability still needs here /runs The Runs page: every run with its result, steps and what page memory replayed; the week as a chart; click a run (or ↑↓) to see how it ended and every step it took: by page memory or the model, the page, what it did, how long it took, and the step that failed with its error. enter opens its report, f its folder, r runs it again /reports The Reports page: every report ForgeQE wrote here (suites, pipelines, /report ), newest first, each with open ↗ to view it in the browser and a short summary of the chosen one. / searches by title, kind and summary (esc clears). A single run's report is on the Runs page. f opens its folder, b builds a new report /jobs The Jobs screen: every scheduled job with its next run, last result and recent runs; the week's runs as a chart; the chosen job's runs and output. ↑↓ choose, r runs now, p pauses or resumes, s stops, l opens the log, esc goes back /knowledge The Knowledge page: what ForgeQE has kept here as it works (run history, page memory, defect history, the code it wrote and how much is still there, product knowle"},{"t":"The screen","u":"docs/index.html#doc-how_to_use-the-screen","g":"User guide · Using ForgeQE","h":[],"x":"The screen The start screen. Before your first request, the screen is one column under the logo: text Copy playwright-csharp-pom-framework · .NET · Azure DevOps ┃ Describe what you want to test… ✦ Refine ctrl+r ⌕ Search ctrl+p ? shortcuts ctrl+c close Start with ▸ Run test cases Run test plan 12 suite 34 from Azure DevOps… alt+1 ▸ Check release readiness Are we ready to release? alt+2 Recent runs and reports ▤ Report QI-Payments pipeline status report 18 min ago open ✓ Run Search hotels in Mumbai on booking.com 2 days ago open rerun Setup ▰▰▰▱▱ 3 of 5 · Domain and Notifications are not set up ▸ how to set up ● Tip Press Tab to switch LLM profile azure/gpt-5.4 (default) ▾ · ForgeQE The line under the logo is what ForgeQE works with here: the folder, what it is built with (from its files, such as a .sln or playwright.config.ts ), the systems that are set up. The model and its profile are in the footer, the status line on every screen; click the model ▾ (or type /model ) to pick another, or press Tab for the next one. The prompt starts five rows high and grows with a long request, up to nearly half the screen, before it scrolls; the sections below give way, last first, to make room. Start with offers up to four things to ask, from the capabilities that work in this setup, each with an example in the words of your setup. Click one, or press Alt-1 to Alt-4, to put it in the prompt to adjust and send. In a folder without forgeqe.yaml , or without a live model, the line under the logo says so and Get started takes its place: Set up ForgeQE in this folder (runs /init ), Add a model , and Sign in to Azure DevOps or Jira (runs /auth ). Start ForgeQE in your test project's folder to work with its settings. Recent runs ( Recent runs and reports when there are reports) lists the newest runs and reports in the reports folder: open opens the report, rerun puts the run's goal in the prompt. Setup shows how much is set up and what is missing (see the setup checklist below); it goes away once everything is set up. The tip in the footer changes every few seconds. Press ? on an empty prompt for every key; Esc closes the list. The conversation. Once you send a request, the screen is one column that reads top to bottom, as in Claude Code: text Copy \u003e get the current release details from all projects ⏺ Azure DevOps · pipelines build (action list, project QI-Payments, top 1) ⏺ ForgeQE · query_api (azure_devops, vsrm.dev.azure.com/…/_apis/release/releases) ⎿ No classic releases came back, so I will confirm on the Releases page. ⏺ Browser: Open Autothon › Pipelines › Releases ⎿ Step 1 · Open the Autothon project ✓ navigate https://dev.azure.com/devcgazuredevops/Autothon ⏺ No classic releases exist in any of the seven projects. … ⠹ Acting in the browser (step 3)… (24s · step 3/40 · 57.4K tokens · esc to interrupt) ╭──────────────────────────────────────────────────────────╮ │ \u003e Ask ForgeQE… (/ for commands, @ to reference a run…) │ ╰──────────────────────────────────────────────────────────╯ ✦ Refine ctrl+r ⌕ Search ctrl+p ▦ Panels ctrl+o ctrl+c close ~/playwright-csharp-pom-framework azure/gpt-5.4 (default) ▾ · 57.4K tokens · ForgeQE \u003e is what you asked. ⏺ starts each reply, tool call, browser run, test case, and result; calls in a row sit together, with the arguments dimmed. What came of a call is indented under it after ⎿ : the agent's notes, each browser step and its actions (✓ or ✗), and a result's details. While a request runs, one line above the input says what is happening, for how long, how far a browser run or suite has got, and with how many tokens. The footer is the status line, and the one place for the folder, the model and its profile, and what the session used. PgUp and PgDn scroll the conversation from the prompt (the mouse wheel works too); PgDn back at the end follows new lines again. A long request you sent (a refined one, a pasted spec) shows its first lines and … 27 more lines, sent in full . Prices are not shown in the conversation; reports and forgeqe models have them. A result that made nothing (a run that only looked something up) adds no card. The panels. ▦ Panels (Ctrl-O) splits the screen in half on a terminal 120 columns wide or more: the Activities column on the right, and the conversation with the files, context, and tokens panels on the left. On a narrower terminal the panels take the conversation's place. Ctrl-O again, or ✕ Close , closes them. The Activities column shows what the agents do as they do it: the status line: who is working, a progress bar for the plan or a suite's cases, for how long, and ■ Stop ; under it, the whole width, what is happening now ( Agent: Azure DevOps API · QI-Payments/_apis/build/builds… ); Plan : the agent's own task list as soon as it writes one, then each browser step or suite case: ○ pending, a spinner while in progress, ✓ done, ✗ failed and why. ForgeQE's agent writes a plan for any request of three steps or more and updates it as it goes; Activity : Now (the task in progress) and Next (the next task), then every tool call, browser step, and note. A call shows a spinner the moment it starts and becomes ✓ or ✗ in the same row when it ends, so a long API query or test run is never invisible. Reads and searches that the conversation leaves out at the brief detail level are listed here. A call takes one row and a note up to three; focus the panel to scroll through everything or filter it. Each request starts under a line with its time and what you asked ( ── 14:02 can you generate a defect report… ── ) and ends with how it went ( ✓ Done in 1m 12s · 16 activities , or ✗ Failed, ■ Stopped, ? Waiting for your answer), so one request's activities are never read as another's; earlier requests stay above, to scroll back to. The Plan shows the current request only. Over the conversation: Files (each file read ◉, written ✚, or edited ✎, newest first), Context (how full the model's context window is, and the skills, product knowledge, domain, and MCP servers"},{"t":"The web app","u":"docs/index.html#doc-how_to_use-the-web-app","g":"User guide · Using ForgeQE","h":[],"x":"The web app forgeqe web is the shell in your browser: a chat on Home with the plan, each agent's steps and handoffs, the live activity, and the results (tests, reports, diffs) as they happen; pages for recording, regression packs, API tests, quality, data, runs, reports, schedules and agent evidence; and every setting as a form, with keys kept in your credential store. It listens on 127.0.0.1 only and needs the token in the address it opens and prints. bash Copy forgeqe web # a free port, opened in your browser forgeqe web --port 4711 # a fixed port forgeqe web --no-open # only print the address The first page is Settings › Set up: the project folder (an existing clone, or a new folder), ForgeQE in it (the same as forgeqe init ), what this computer needs, and a model. See docs/WEB_APP.md for every page."},{"t":"Without the shell","u":"docs/index.html#doc-how_to_use-4-without-the-shell","g":"User guide · Using ForgeQE","h":[],"x":"Without the shell bash Copy forgeqe run \"Search hotels in Mumbai on booking.com\" --profile azure-gpt4o --plain forgeqe run \"Run the cases in smoke.yaml and don't post results\" --plain forgeqe run sends the request to the same agent and prints its tool work and its final reply. Exit codes: 0 done, 1 failed, 2 stopped (Ctrl-C), 3 the agent needs more information; run again with the details. --direct skips the agent and runs the text as one browser goal, which is also what happens without the agent runtime: bash Copy forgeqe run --direct \"Search hotels in Mumbai on booking.com\" --profile azure-gpt4o --plain --out ./.forgeqe/reports/demo Exit codes for a direct run: 0 complete, 1 failed, 2 stopped. For test cases in a pipeline, use forgeqe suite (section 7), which runs the same way every time. Each run gets its own folder, named by its run id (the start time), under .forgeqe/reports/ ( export.out_dir ). forgeqe init adds .forgeqe/reports/ to .gitignore , and so does the first agent command in a project set up before that. A live run's folder contains: run.json : result, summary, token counts, visited URLs, the judge's check of the result (when judge: true ), and how the browser was set up workflow.yaml : compact steps ( forgeqe-v2-compact ) with semantic locators trace.md : task, per-step result, failure trace steps.json and steps/ : each step with a screenshot report.html : the run's report failure.png : last screenshot, only when the run failed"},{"t":"A live agent for programs ( forgeqe chat --jsonl )","u":"docs/index.html#doc-how_to_use-a-live-agent-for-programs-forgeqe-chat---jsonl","g":"User guide · Using ForgeQE","h":[],"x":"A live agent for programs ( forgeqe chat --jsonl ) A program that needs what the shell has (one live agent per conversation, follow-ups, credentials remembered for the session, Your turn and questions, stop), such as a web UI or an IDE, starts forgeqe chat --jsonl and talks to it in JSON lines. It is the shell's agent and the shell's events, not a screen to scrape. ForgeQE serves no HTTP here: the program that starts the process owns transport, users, and sign-in. bash Copy forgeqe chat --jsonl [--repo DIR | --no-code] [--profile NAME] [--url URL] [--headed] [--browser-provider local|docker|browserstack|testmu] [--devices a,b] [--max-steps N] [--replay MODE] [--no-memory] [--carry-over FILE] [--config forgeqe.yaml] [--verbose] [--debug] The flags mean what they mean for forgeqe run and forgeqe start . --jsonl is required (the only format so far). --carry-over FILE is a JSON list [{\"user\": \"...\", \"reply\": \"...\"}, ...] : the turns of an earlier conversation whose process has gone (a server closing idle chats). The first message then reaches the agent with those turns before it, as when you switch profiles in the shell. To change the model mid-chat, send a model line: the same agent session goes on with the new model (below). --verbose also writes readable event lines to stderr. The process opens ForgeQE's agent on the first message and keeps it for every later one; it ends it on close , the end of stdin, or a signal. It works like the shell: background monitors are allowed and stop when it exits, and passed runs become tests unless --no-code . A request that was run before and passed is run again as recorded, without the agent, as in the shell (Tier 0, registry.mode ); its turn ends with the result as the reply. When the agent cannot run (no model, no agent runtime), the process writes fatal and exits 1 before it reads anything: it never falls back to a browser goal. stdout carries only JSON lines: one object per line, UTF-8, ending in \\n . Logs, warnings, and anything a library prints go to stderr. Lines can be long (a card, a suite result); do not assume a maximum length. Every line has \"v\": 1 , \"seq\" (1, 2, 3, … in this process), and \"t\" (ISO time). Every string is passed through the session's secret redaction, so a password given in a message never comes back out, not even inside a tool result; profile keys and the values of ForgeQE's own secret variables never appear. Input (stdin), one JSON object per line: type Fields Meaning message id (your turn id), text A new user message. Refused with error busy while a turn runs answer id (from an ask ), choice (an option id, or null to cancel) Answers the pending question continue id (from a wait ), ok ( true = Done, continue; false = Cancel) Ends the pending wait stop Stops the running turn (Esc or /stop in the shell). Nothing when idle settings headed and/or writeTests (each true or false , nothing else) Changes the chat's choices from now on: whether browser runs are shown (as --headed ), and whether passed runs become tests (as --no-code , off). The next browser run uses them; the agent is told of a change with your next message. Answered with settings model profile (a profile name, nothing else) The chat's model from the next message, as a model picker does: the same agent session goes on, with the conversation, its tools and files, and the agent is told of the change with your next message; ForgeQE's tools use that profile too. Before the agent opens, any profile of llms.json; after, one of the models line. Refused with error busy while a turn runs, bad_input for anything else. Answered with model close Stops any turn, closes the agent, stops monitors and the containers it started, writes closed , exits 0 A line that is not JSON, has an unknown type , or misses a field gets error bad_input with the reason and the first 200 characters of the line; the process goes on. The end of stdin is the same as close . Output (stdout): type Fields When ready protocol (1), version , cwd , writeTests , headed , profile ( name and provider , never a key) Once, after the config is loaded and checked, before stdin is read models profile ( name , provider : the one answering), models (each name and provider , its own first; empty when it cannot switch) When the agent opens: the profiles a model line may name. A custom agent's chat, and one with code.model , offer none model profile ( name , provider ) After a model line: the profile answering from the next message turn_start id A message was accepted settings headed , writeTests After a settings line: the choices now in force agent id , event : a CodeEvent ( stream , say , start , tool , plan , usage , context , test , info , …) While the turn runs tool id , event : a ToolEvent ( run-start , run-event , run-done , suite-* , card , info , agent , code-* , …) While the turn runs; id is null for a background monitor between turns ask id ( ask-N ), turn , question ( title , detail , lines , options[{id, label}] ) A tool asks you to choose wait id ( wait-N ), turn , prompt A tool waits for you to do something by hand turn_done id , outcome ( done , failed , needs_input , stopped ), reply (the visible reply), next (follow-ups), error (when there is one), usage (the agent's usage so far, null before it opened) The turn ended, whatever the way error code ( bad_input , busy , unknown_id , model , internal ), message , turn (when one runs) A problem that does not end the process fatal message The process cannot go on; exit code 1 follows closed The last line before a clean exit CodeEvent and ToolEvent are passed through as they are: their types in src/types.ts and src/mcp/tools.ts are the contract. Rules: Every turn that got turn_start gets exactly one turn_done , also after an error ( outcome: \"failed\" with the error ). One ask and one wait can be pending at a time. answer or continue with an id that is not pending gets error unknown_id , and nothing else happens. stop and close answer a pending ask with null and "},{"t":"Browser","u":"docs/index.html#area-browser","g":"User guide","h":[],"x":"04 Browser Goals carried out in a real browser, and the logins they use"},{"t":"Run any goal in a real browser","u":"docs/index.html#cap-browser-goals","g":"User guide · Browser","h":[],"x":"Browser Run any goal in a real browser Carries out a plain-language goal in a real browser one step at a time and verifies the outcome, with screenshots, a report, and the steps it took. The browser comes from forgeqe.yaml: local Chrome or Chromium by default, or BrowserStack or TestMu AI/LambdaTest when configured. Page memory replays steps that already worked on a site, so repeat runs are faster and cheaper. Ask it Go to booking.com and search hotels in Mumbai for next weekend What does ForgeQE know about the checkout page? Add Chrome on Windows 11 and Chrome 128 on Windows 10 as TestMu devices, then run SHOP-12 on both What it needs Required A live model profile in llms.json (an API key or Microsoft Entra ID sign-in) Limits Web applications only: local Chrome or Chromium, or configured remote web grids such as BrowserStack and TestMu AI/LambdaTest; not native mobile or desktop applications. Tools browser_run run_details page_memory browser_devices In detail See 4. Without the shell ."},{"t":"Page memory","u":"docs/index.html#doc-how_to_use-5-page-memory","g":"User guide · Browser","h":[],"x":"Page memory Live runs build a memory of the pages they visit, next to forgeqe.yaml . With no config file it goes to ~/.forgeqe/memory (under FORGEQE_HOME when that is set), so runs from any folder share one memory. yaml Copy memory: enabled: true dir: ./.forgeqe/memory replay: verify # verify | trust | off text Copy .forgeqe/memory/ pages/\u003chost\u003e/\u003cpath\u003e.json every interactive element on the page and its locators flows/\u003cgoal\u003e-\u003chash\u003e.json the steps of a goal that passed, for replay scribe-notes.json what the coding agent learned about each repo, and the tests it wrote there Each page file lists its elements with every locator ForgeQE can build for them: test id, id, role and name, label, placeholder, alt, title, href, text, CSS, and XPath. Each locator has a Playwright string, a confidence %, and its evidence: how many visits it matched on, how often it went missing, and how often it worked or failed when used. Elements and pages carry first_seen , last_seen , last_used , and last_updated . Paths with ids in them share one file ( /hotel/* ), and query strings are ignored. Confidence starts from the locator kind (a test id or role and name ranks above text, CSS, and XPath). It is lower when the locator matches more than one element or looks generated ( #ember123 , hashed class names). It rises as the locator keeps matching over visits and works when used, and it drops when the locator goes missing or fails. How memory saves time and tokens: Replay. Running a goal that passed before replays its recorded steps directly in the browser, with no model calls. A different goal replays nothing: the agent gets the steps of earlier runs on the site, and the controls that worked there, as hints, and decides itself which of them (a banner, a sign-in, a search form) apply to its task, so a new task does not re-explore the setup. Each step finds its element by the highest-confidence locator that still matches exactly one element, then by the element's fingerprint, so a renamed button or a changed id still resolves. The transcript marks these steps ↻ and shows the locator used ( click \"Search\" [role 88%] ). The site's rulebook. Page memory keeps what worked; the rulebook keeps what did not. When an action fails during a run and the agent then finds one that works, it may end its answer with a line or two starting Lesson: (\"On the booking page, type the date in the Check-in field; clicking a day in the calendar does nothing\"). ForgeQE keeps a lesson only when that run passed, in rules/\u003chost\u003e.json in page memory, and every later run that starts on that site gets the rules, so it does not spend steps on the same dead end. The lesson lines are taken out of the run's summary. The book works like Scribe's rulebook (under Keeping Scribe's cost down): at most 15 one-line rules, merged when learned again, the least confirmed and oldest dropped first, expired after 180 days unconfirmed, and a rule with a link, a token, a destructive command, or wording that drops instructions is refused. ForgeQE says each new rule ( Learned for this site: … ). browser.rulebook: false turns it off; with page memory off there is none. Hand-off. With replay: verify (the default) the agent then looks at the page once and confirms the result. replay: trust finishes without the model when every step of this same task replayed. When a step cannot be found, the agent continues from that point instead of starting over. replay: off records memory but never replays. Failed runs. A run that fails keeps the steps that worked before it went wrong ( resume.json in its run folder, and in the task's flow). Running the same task again replays them and the agent picks up at the point of failure, told what went wrong last time. When ForgeQE's agent retries a failed goal with different wording, it passes the failed run ( resume_from ), so the retry starts from the same point instead of step 1. Cut-off runs. After every step, a run saves the steps that worked so far and the page memory it has learned, so nothing is lost if ForgeQE is closed, the machine restarts, or the run is stopped. Running the same task again replays those steps and the agent carries on from there; the folder of the cut-off run also has resume.json , so resume_from works with it too. When the model can't be reached (the connection dropped), the run ends as failed and keeps its steps the same way. A run that finishes removes the saved point. Hints. The agent's prompt includes the steps that worked last time on the same site and the controls those runs used, and tells the agent to do them in one turn instead of exploring the page. Tests. The coding agent gets each element's best locator from memory in handoff.md . A run that fails keeps the last good flow and counts the failure. A stopped run changes nothing. Password fields are never stored, and a value typed from FORGEQE_ENGINE_DEFAULT_LOGIN_USERNAME or FORGEQE_ENGINE_DEFAULT_LOGIN_PASSWORD is stored as the variable name and read from the environment on replay. Replay also stops before a step whose value cannot be restored, and the agent does it. bash Copy forgeqe memory # hosts with page, element, and flow counts forgeqe memory show booking.com # the host's pages forgeqe memory show https://app.test/login # elements, confidence, best locator forgeqe memory show https://app.test/login --locators --all forgeqe memory flows --steps forgeqe memory clear booking.com # prints what it would delete forgeqe memory clear booking.com --yes forgeqe memory clear courier --yes # a mobile or desktop app's memory forgeqe memory stats # how often memory stood in for the model, per area In the shell, ask (\"what does page memory know about booking.com?\") and the agent looks it up. For one run, --replay verify|trust|off overrides the config and --no-memory turns memory off. Commit .forgeqe/memory to share it with a team or CI, or add .forgeqe/ to .gitignore to keep it local."},{"t":"Saved logins for the application under test","u":"docs/index.html#cap-logins","g":"User guide · Browser","h":[],"x":"Browser Saved logins for the application under test Signs the browser agent in with saved credentials (including TOTP) and reuses the session; a user can also sign in by hand once in a browser. Ask it Sign in to the admin site and keep the session Forget the saved session for shop.example.com What it needs Nothing beyond ForgeQE itself. Tools logins In detail"},{"t":"Signing in","u":"docs/index.html#doc-how_to_use-signing-in","g":"User guide · Browser","h":[],"x":"Signing in yaml Copy logins: shop: url: https://staging.shop.test/login # or domains: [https://staging.shop.test, https://*.shop.test] username_env: SHOP_USER password_env: SHOP_PASSWORD totp_env: SHOP_TOTP_SECRET # optional: the authenticator secret (base32), for 2FA codes # save_session: false # sign in on every run The browser agent is told which placeholders exist ( shop_username , shop_password , shop_bu_2fa_code ) and types them; the engine swaps in the real values only on the matching domains and masks them in everything the model sees. For TOTP, a fresh code is computed at the moment it is typed. After each step ForgeQE saves the site's cookies and local storage to .forgeqe/sessions/\u003cname\u003e.json (private to your user, with its own .gitignore ), and the next run starts signed in. Page memory records the variable names, not the values, so replays type the current values and fresh codes, and tests the coding agent writes read SHOP_PASSWORD from the environment. Credentials in a message or test case. Paste a test case that says \"log in as svc@corp.test with password …\" and you do not need logins: at all. Before the first browser run, ForgeQE's agent remembers the credentials as a login for that site and its sign-in hosts (for Dynamics, the CRM host and login.microsoftonline.com ). From then on: goals say \"sign in with the saved login dynamics\" and never contain the password, so it is not in run.json , trace.md , report.html , or workflow.yaml ; the browser agent types the exact value from a placeholder, so quotes or a full stop around the password in the test case cannot end up in the password field; the signed-in session is saved in .forgeqe/sessions/ , so follow-up runs (\"now open the latest case\") start signed in; tests Scribe writes read FORGEQE_\u003cNAME\u003e_USERNAME and FORGEQE_\u003cNAME\u003e_PASSWORD , and ForgeQE sets them when it runs those tests in this session. ForgeQE keeps the values in memory for the session only: it does not write them to disk or put them in the agent runtime's environment. Your message itself is still part of the conversation, which the agent runtime keeps locally like any chat, and which the model provider receives. Close ForgeQE and the remembered values are gone (the saved session stays until it expires or you clear it). Ask \"which logins do I have?\" to see them, or \"forget the dynamics login\" to drop them. For pipelines and later sessions, use logins: with environment variables. Single sign-on, captchas, and security keys need a person: forgeqe login shop opens a browser on the login page, you sign in, press Enter in the terminal, and the session is saved. forgeqe logins lists logins, which variables are missing, and when each session was saved; forgeqe logins clear shop (or --all ) forgets sessions. In the shell, \"sign in to shop\" does the same: the browser opens, a Your turn prompt waits while you sign in, and Done, continue saves the session. forgeqe run asks you to press Enter instead, and forgeqe mcp cannot wait for a person, so it tells the calling agent to have you run forgeqe login shop . In a pipeline, set the login variables as secrets."},{"t":"Record a web test by hand","u":"docs/index.html#cap-record-web","g":"User guide · Browser","h":[],"x":"Browser Record a web test by hand Opens a browser with the Recorder panel docked in the page while the user does the steps of a web test themself, and saves their clicks, typing, choices and keys in order as a run, with the checks, kept values, test data and notes they add; the coding agent then turns it into a test in the repository's framework. Ask it I'll show you the checkout steps in the shop: record them Record my steps on the cart page and make a test of it What it needs Optional The coding agent, Scribe: a live model profile (or code.model) and the agent runtime, which forgeqe setup installs Limits Local Chrome or Chromium only, one recording at a time; drag and drop and steps inside iframes are not recorded yet Tools web_record In detail"},{"t":"Recording a web test by hand","u":"docs/index.html#doc-how_to_use-recording-a-web-test-by-hand","g":"User guide · Browser","h":[],"x":"Recording a web test by hand When you would rather show the steps than describe them, record them. ForgeQE opens Chrome on the app's page with the Recorder panel docked in a corner of the page, in the same window: you click, type and choose as usual, and each action is listed in the panel as a numbered step, in order. Drag the panel by its title to another corner, or make it small (a pill that shows the step count); it comes back where you left it on every page. bash Copy forgeqe record shop --name \"Apply a coupon at checkout\" # a web app from env.yaml forgeqe record --url https://staging.shop.test/cart # or any page In the shell, say \"I'll show you the checkout, record it\" (or /record shop ). What you can add while recording: In the panel In the page: Ctrl+Shift+Space, then What it adds Check, then click an element A A check: its text, or its value for a field, or checked for a checkbox. Change the kind (text, visible, hidden, value) and mark live data (check the pattern, not this value) in the panel Variable, then click an element V Keeps the element's text for later steps: typing the same text later is written as {{name}} Wait for, then click an element W The test waits for the element to show Test data D The last value you typed becomes test data the test reads from its data note: … in the box N A note on the last step: \"this is the cart page object\" Pause / Undo / Stop, ✕ on a step P / Z / S Pause records nothing until you resume; ✕ removes that step Type a check in words in the panel's box, or in the terminal: the total shows \"$40.00\" . Quoted text the page shows becomes a check on the element showing it; without quotes, one model call finds the text that shows it on the page. A check the page cannot show yet is kept in your words, and the coding agent writes it. In the terminal, undo , pause , delete 4 and stop work too. What is recorded: clicks (a double click as one step), the final text of each field you typed in (not each key), choices in drop-downs, Enter and Escape, key chords, pages you open from the address bar, and Back. A click on a menu item that opened when the pointer went over its trigger gets a hover on the trigger first. Password fields are written as an environment variable (the saved login's password_env , or \u003cSITE\u003e_PASSWORD ), and text equal to a saved login's value as its variable: what you type in them is never stored. A file you choose for an upload is recorded by its path in the working folder; one outside it, a hidden file ( .env , anything under .git ), or one named like credentials or keys is listed as not recorded. Drag and drop is listed as not recorded. --signed-in starts with the saved sessions of logins: ; without it, record the sign-in too. Data that changes from run to run. A test that spells out this recording's price, date, or order number fails on the next run, so ForgeQE keeps what holds and makes the rest a pattern, a variable, or a value made fresh: In the recording In the test A check of a price, date, time, order number, or count (\"$14.15\", \"2,463 found\") A check of its pattern: /^\\$\\d[\\d,]*\\.\\d{2}$/ The same value checked again later (the product's price, then the cart total) The first check keeps it as {{price}} ; the later one checks {{price}} A link or button named with such data (\"Combination Pliers $14.15\") Found by the part that holds: getByRole(\"link\", { name: /Combination Pliers/ }) A date you typed The date the same number of days from today: {{$date:+3:%Y-%m-%d}} A value the app refuses twice (a new account's email) A part new on each run: alice+{{$unique}}@example.com Prices, dates, times, ids, and long numbers are found by their form; a small number on its own (\"1\" in the cart) stays exact, as it is usually what the check is about. When you stop, one model call sorts the values the forms cannot tell (a new account's email, \"today's deal\"); without a model, those stay as recorded. Each change shows in the panel with a tick box: untick it to keep the value as recorded. Recording a test case. forgeqe record --case SHOP-12 (any source ForgeQE reads cases from: Jira, Azure DevOps, Xray, TestRail, a file) starts on the case's page and shows its steps as a checklist in the panel. Click the step you are on (or Next case step ): what you record belongs to it, and a check you add there takes its expected result. Each expected result shows ✓ checked or no check yet ; Stop warns once about the ones with no check, and a second Stop stops. The test is named and tagged for the case, and mapped to it once it passes. When you stop, the run folder holds workflow.yaml and trace.md as for any run. With a repository ( --repo , or code.repo ), ForgeQE asks whether to turn it into a test. First a planner reads the repository and shows the plan: text Copy Test tests/add-to-cart.spec.ts › adds pliers to the cart Steps 2. search: HomePage.searchFor() 4. open the product: new HomePage.product(name) 6. add to the cart: new ProductPage.addToCart() New code ProductPage in pages/ProductPage.ts Checks after step 5: expect(product.price).toHaveText(/^\\$\\d+\\.\\d{2}$/) after step 6: expect(product.cartQuantity).toHaveText(\"1\") It asks at most three questions where the repository allows two good answers (a new file, or the existing spec?), then Write it , Change the plan (say what to change, in your words), or Cancel . The coding agent replays the recording in Playwright, writes the test to the plan you agreed in the repository's framework, and asserts each check at the step where you added it. In the shell, \"change the plan\" comes back to ForgeQE's agent, which asks you what to change. --no-plan (or --yes ) skips the plan. Later: forgeqe code \u003crun folder\u003e . The recorder runs in an isolated world in each page, so the page's own scripts can neither see it nor add steps, and it records only real input: clicks and keys a script fakes are ignored. The panel's own clicks and keys never reach the page and are never recorded, and it stays above the page's dialogs. Record"},{"t":"Test cases","u":"docs/index.html#area-test-cases","g":"User guide","h":[],"x":"05 Test cases Run, check, write, and explore manual test cases"},{"t":"Run manual test cases in browsers","u":"docs/index.html#cap-run-test-cases","g":"User guide · Test cases","h":[],"x":"Test cases Run manual test cases in browsers Reads test cases from Azure DevOps, Jira, Xray, TestRail, Zephyr Scale, qTest, a file, or pasted text, runs each in a real browser with a verdict per step, writes report.html and junit.xml, posts results back, and files or updates bugs for failures. Ask it Run SHOP-12 and SHOP-14 from Jira, two browsers at once Run test plan 12 suite 34 from Azure DevOps and don't post results What it needs Required A live model profile in llms.json (an API key or Microsoft Entra ID sign-in) Optional Azure DevOps or Jira or Xray or TestRail or Zephyr Scale or qTest, to read cases from a test management system and post results back (files and pasted text work without one): set up under sources: in forgeqe.yaml, or sign in with /auth Optional Bug filing: sources.bugs in forgeqe.yaml (Jira or Azure DevOps) Tools find_test_cases run_test_cases In detail"},{"t":"Test cases and suites","u":"docs/index.html#doc-how_to_use-7-test-cases-and-suites","g":"User guide · Test cases","h":[],"x":"Test cases and suites Test cases you already have can be run two ways. In the shell or with forgeqe run , ask in plain words (\"run SHOP-12 and SHOP-14\", \"run test plan 12 suite 34\", \"run the cases in smoke.yaml\") or paste the cases, and the agent works out the source. forgeqe suite takes explicit references and runs the same way every time, with no agent involved, which is what pipelines call. Each case is one goal: ForgeQE tells the agent to do the steps in order and to check every expected result, and the agent's verdict decides whether the case passed. A case with no steps (plain text, a Jira story) is run from its description."},{"t":"API steps in a test case","u":"docs/index.html#doc-how_to_use-api-steps-in-a-test-case","g":"User guide · Test cases","h":[],"x":"API steps in a test case A test case can mix API and UI steps (\"add three products with POST /add_to_cart/{id}, then remove the first one in the cart, then pay\"). The browser agent makes each API step with its api_request action, from the page, in the browser's own session: the logged-in user's cookies go with the call, and the CSRF token comes from the cookie or the page's form when the site needs one. So what an API step changes (a cart, an order) is what the next UI step sees. The verdict of an API step rests on the status the server answered, not on the agent's account of it. The run records it as an api step in workflow.yaml : method, URL, body, CSRF source, and the status and final URL the server gave. ForgeQE's replay repeats it the same way, and fails that step when the server answers differently (403 where the run got 200), so the replay and the test get past it instead of stalling on an empty cart. Scribe's handoff lists each API step with what was sent and answered, and tells Scribe to make it through the framework's API request context that shares the browser's cookies (Playwright's page.request ), asserting the status. Kept for reuse : the calls are saved as an API scenario, one per test case ( out/api/case-ado-2287/ , updated by each run), which forgeqe api and the API tools run again without a browser. The run's card says where ( API 2 calls saved as a reusable API scenario ). URLs the case gives are opened exactly as given: when the model adds a trailing slash ( /login/ , a 404 on many sites), ForgeQE opens and records the URL from the case. When a run finds a test case does not fit the application, the agent drafts the steps as they should be, from what the run found, and offers to save them. update_test_case shows the current and the new steps and asks before it changes the Azure DevOps Test Case; the reason goes into the work item's history, where the old steps stay."},{"t":"When a case fails","u":"docs/index.html#doc-how_to_use-when-a-case-fails","g":"User guide · Test cases","h":[],"x":"When a case fails The browser run of a test case is the test, so when a case does not pass, ForgeQE works out what kind of failure it was and acts on it. The browser agent reports a cause for each failed step (it saw the page); clear evidence in the run, such as an unreachable site or a 503 page, overrides \"I could not operate it\". Failure What it means Bug Automation script Functional defect Every step was done and the application behaves wrong (a wrong total, no confirmation) Filed straight away Written for the correct behaviour (the test case's expected results) and marked as an expected failure naming the bug: Playwright test.fail() , pytest xfail(strict=True) . It passes while the defect is there and fails once it is fixed, telling you to remove the marker Test case needs updating The test case does not fit the application (a field or page it names is not there) No No: update the test case. The report and the comment on the test case say what the application shows instead Environment problem The application or something it needs was unavailable (an error page, a 5xx, a network failure, sign-in or test data missing, a bot check) No No. The case runs once more straight away; if it still fails, check the environment first Automation problem A control that is there could not be operated, or the run ran out of steps No Not yet: page memory keeps the steps that worked and the next run resumes from them In Azure DevOps a test plan point is recorded as Blocked, not Failed, for the last three, so the plan's failures are product defects, and the comment on the test case names the kind of failure. Tests that need attention. A coding job that ends without a passing, approved test does not leave a failing test among your tests. The files it created move to a needs-attention/\u003ccase id\u003e/ folder beside the test, with their relative imports fixed, and a README says which test case it is for, why it stopped (the last failure, the reviewer's issues), and how to pick it up; needs-attention/README.md lists them all. The job's edits to files that were committed before it are saved as changes.patch in that folder and taken out of the files; files you had already changed are left as they are. The folder is kept out of test runs and builds: Playwright's config gets testIgnore: ['**/needs-attention/**'] , TypeScript files a // @ts-nocheck line, a Python folder a conftest.py that collects nothing, and C#, Java, or Kotlin files a .txt suffix. code.needs_attention: false leaves unfinished tests where they are. Running a case again. A case that already has a test (in .forgeqe/test-cases.json ) does not get a new one: after its browser run, ForgeQE runs the existing test first. When it passes, there is no coding job at all. When it fails, the coding agent updates that test (with the failure and the new verified run) instead of writing one from scratch. A known-defect test whose defect is fixed (the case now passes) is updated to drop its expected-failure marker; a test that passes although the run found a defect gets the defect's assertion and the marker. Mapping tests to test cases. Each test written for a test case is named \u003ccase id\u003e \u003ctitle\u003e and tagged with the case id and link in the framework's own way (Playwright tags and annotations, a pytest marker, an NUnit property). .forgeqe/test-cases.json in the repository maps every test case to its test, with its status ( automated , known_defect with the bug, or needs_attention with the folder); commit it with the tests. For Azure DevOps test cases, a passing test is also set as the work item's Associated Automation (test name, file, type, and a stable id, with Automation status Automated), so the test plan shows the case as automated."},{"t":"In the shell","u":"docs/index.html#doc-how_to_use-in-the-shell","g":"User guide · Test cases","h":[],"x":"In the shell Ask for the cases in plain words, for example \"run SHOP-12 and SHOP-14, two at a time\" or \"show me what's in test plan 12 without running it\". The transcript shows each case's steps as it runs, and a suite card at the end: text Copy ┃ ✗ Suite failed 1/2 passed · 1m 12s · 48.2K tokens ┃ ┃ ✓ SF-1 Search Mumbai 38s ┃ ✗ SF-2 Open a hotel 34s ┃ No hotel link on the results page ┃ ┃ Report .forgeqe/reports/suites/20260928-215438/report.html ┃ JUnit .forgeqe/reports/suites/20260928-215438/junit.xml"},{"t":"Where cases come from","u":"docs/index.html#doc-how_to_use-where-cases-come-from","g":"User guide · Test cases","h":[],"x":"Where cases come from bash Copy forgeqe cases cases.yaml # list them forgeqe cases cases.yaml --goal # and the exact goal each one runs Plain text. A quoted string is one case: forgeqe suite \"Log in as the demo user and open Invoices\" . Text or Markdown file. Each block between --- lines is a case, its first line the title: text Copy Search for hotels in Mumbai and check at least one result is shown --- Open the Deals page Check every deal has a price YAML or JSON. A list, or {cases: [...]} : yaml Copy - id: SHOP-12 title: Valid login url: https://staging.shop.test/login # start page (optional) preconditions: [The demo user exists] steps: - action: Sign in as demo@shop.test data: password from DEMO_PASSWORD expected: The dashboard greets the user by name - Open the Orders page # a step can be a plain string group: Accounts # optional: area for the Coverage page (or suite, area) requirements: [SHOP-3, SHOP-4] # optional: stories it covers (or refs) CSV. Header row, then a row per case. A row with an empty id (or the id above) adds a step to that case: csv Copy id,title,url,action,expected SHOP-12,Valid login,https://staging.shop.test/login,Sign in as demo,Dashboard shows ,,,Open Orders,Orders list shows Columns: id (or key ), title (or name , summary ), url , description , preconditions , tags , group (or suite , area ), requirements (or refs ), action (or step ), data , expected (or expected_result , result ). Lists in a cell are separated by ; . Gherkin. Each Scenario in a .feature file is a case, and each Examples row of a Scenario Outline is its own case. Background steps come first, and Then steps are the expected results of the step before them. Azure DevOps. Set the organization, and a PAT with Test Management and Work Items (read and write) in ADO_PAT . The MCP server is the whole organization. Leave project unset (or set it to * or all ) and ForgeQE's own calls cover every project; set project only to limit those calls to one. yaml Copy sources: azure_devops: org_url: https://dev.azure.com/acme # project: Shop # optional ado:123,456 reads test case work items: their steps and expected results (HTML turned into text), shared steps inlined, and one case per parameter row with @param values filled in. Work item ids are unique in the organization, so they do not need a project. ado:plan=12 reads every suite in a test plan and ado:plan=12/suite=34 one suite, with each test point's configuration. With no project configured, the plan is looked up in every project. ado:project=Shop/plan=12 names one. Jira. jira:SHOP-1,SHOP-2 or jira:jql=project = SHOP AND labels = e2e . The summary is the title and the description holds the steps. Jira Cloud ( *.atlassian.net ) needs JIRA_EMAIL and an API token in JIRA_API_TOKEN ; Server and Data Center use a personal access token in JIRA_API_TOKEN . yaml Copy sources: jira: url: https://acme.atlassian.net Xray. xray:SHOP-1 , xray:jql=\u003cquery\u003e , or xray:plan=SHOP-100 for a test plan's tests, with Xray's own steps, data, and expected results. Xray Cloud needs an API key pair in XRAY_CLIENT_ID and XRAY_CLIENT_SECRET . Xray Server and Data Center go through the Jira settings above. TestRail. testrail:C12,C13 reads cases by id, testrail:run=45 the tests of a run (results go back to that run), testrail:plan=7 every run in a plan, and testrail:suite=3 a suite (needs project_id ). Separated steps ( custom_steps_separated ) become steps with expected results; the text template's steps become one step. It needs the user's email in TESTRAIL_EMAIL and an API key in TESTRAIL_API_KEY . yaml Copy sources: testrail: url: https://acme.testrail.io project_id: 1 # needed for suites, and to create a run for cases read by id Zephyr Scale (Cloud). zephyr:SHOP-T1,SHOP-T2 , zephyr:cycle=SHOP-R5 (results go back to that cycle), or zephyr:folder=12 (needs project_key ). Call-to-test steps are inlined. It needs an API access token in ZEPHYR_API_TOKEN ; setting the variable is enough to turn it on. qTest. qtest:1234 reads test cases by the id in their URL, qtest:cycle=88 and qtest:suite=9 the test runs under a cycle or suite (results go back to those runs). It needs url , project_id , and an API token in QTEST_TOKEN . Result statuses are the automation status names your qTest uses; the defaults are PASS, FAIL, and BLOCKED: yaml Copy sources: qtest: url: https://acme.qtestnet.com project_id: 12345 statuses: { passed: PASS, failed: FAIL, error: BLOCKED } Several sources can be mixed: forgeqe suite smoke.yaml jira:SHOP-7 testrail:C12 . From requirements. Ask the agent to test a Confluence page, a story, or a spec file (\"write and run test cases for the refund rules page in Confluence\"). It reads the requirements, writes one case per rule or acceptance criterion with the main negative paths, shows them, and runs them as text cases. It saves them into a test system only when you ask. Confluence needs sources.confluence : yaml Copy sources: confluence: true # the wiki on the Jira Cloud site above, same account # or confluence: url: https://confluence.acme.com # Cloud: https://acme.atlassian.net/wiki token_env: CONFLUENCE_TOKEN # Server/DC personal access token; Cloud also email_env space: QA # optional: keep searches in one space"},{"t":"Running","u":"docs/index.html#doc-how_to_use-running","g":"User guide · Test cases","h":[],"x":"Running bash Copy forgeqe suite cases.yaml # one case at a time forgeqe suite ado:plan=12 --parallel 3 # three browsers at once forgeqe suite cases.yaml --repo ../app # passed cases get a test in ../app forgeqe suite cases.yaml --no-code --no-write-back --out .forgeqe/reports/smoke yaml Copy suite: parallel: 1 # browsers at once code: true # with a repo set, passed cases go to Scribe restore_sessions: false # true: each case starts signed in from the saved logins' sessions out_dir: ./.forgeqe/reports/suites Browser runs happen parallel at a time and share page memory safely. Each passed case goes to the coding agent as soon as its own browser run ends, and its test is written and run before that browser slot starts the next case: explore, hand off, code, next case. Coding jobs run one after another, so two never edit the repo at once. A case with no test says why in the report (it failed, or no model is set up). With --parallel above 1, each line of output starts with the case id. Ctrl-C stops the suite: cases already running finish closing their browsers, and cases that never started are reported as not run. At the end, ForgeQE prints the result of every case and writes to .forgeqe/reports/suites/\u003ctime\u003e/ : report.html : a single file with every screenshot embedded; open it from disk, no server needed. Its menu has three groups. This run : Overview : the verdict, totals, step checks, browser steps, tokens, cost, what page memory saved, browser errors, accessibility issues, tests written and bugs filed; what changed since the last run; results over the earlier runs in .forgeqe/reports/suites/ ; the cases that need attention and why; results by source and by tag; the slowest cases; and what was posted where. Test results : search and filter the cases. For each case: its step table (action, expected, the agent's verdict, what it actually saw), why it failed (the failed step, the agent's last evaluation, failed actions, the screenshot), last good vs now (the same page from the case's last passing run beside this run's, and where their browser steps start to differ), the browser errors per step (console errors, uncaught exceptions, failed and slow requests), page memory (steps replayed, tokens and time saved against the last run where the agent took every step, locators that healed, flows repaired), the browser agent's steps (goal, actions, errors, time and model time, a screenshot each with the element it acted on outlined), a timing waterfall (waiting for the model, acting in the browser, replayed from memory), the accessibility issues of each page, a screenshot gallery, and its trace, workflow and handoff to read in place. Run history links to earlier reports. Failures : each failed case with what the agent reported, the evidence (including browser errors), its last passing screenshot, its bug, and text to copy into a bug report. Defects : failures grouped by what caused them, so one fix clears every case it breaks, most cases broken first, with each defect's root-cause hypothesis when there is one; it downloads as Markdown. Since last run : new failures, fixes, cases still failing, cases at least 5 s and 25% slower or faster, and new or dropped cases, against the previous run in the folder. Analysis : Trends and Flaky tests : pass rate, outcomes, duration, tokens and cost per run; cases whose result keeps changing, and cases that started failing. Both need earlier suite runs in the same folder. Time and cost : where the time went (model, browser, page memory), a timeline of the cases on each parallel worker, page memory savings per case, and tokens and cost per case. Coverage : results by requirement (a requirement fails when any case covering it fails), by group, by tag and by source. Groups and requirements come from the source: the area path in Azure DevOps, the section and refs in TestRail, the folder in Zephyr Scale, components (or the parent issue) and \"tests\" links in Jira, and group / requirements in case files. Accessibility : the WCAG rules of the standard you chose, checked by axe-core on every page the agent visited: the rules that passed, each rule that failed with its success criterion, level, impact, the elements and a link to how to fix it, and any accessibility budget exceeded. Automated checks are a pre-check, not conformance. Visual : every page against its approved baseline: baseline, this run, and the difference side by side, changed pages first, with the share of pixels changed and the visual budget. Performance : each page's Core Web Vitals (LCP, CLS, INP, FCP, TTFB) and load time, coloured good / needs improvement / poor by Google's thresholds, with the budgets each page went over. Tokenomics (reports with token usage): Usage : a usage summary, tokens by case, tokens over the run, and the calls that used the most tokens. Breakdown : what the tokens paid for, by agent, job, task, purpose, model, user and machine. Model calls : every request the agents sent to a model. Models : the models behind the calls, and what the listed alternatives would cost. Trends and forecast : model spend on this machine so far, and the next days at the recent pace, against the budget. Calculator : estimate what a suite will cost before you run it, starting from this run's real numbers. Optimise : where the report could have spent less on models, by how much, and what to change. Environment opens from the model card at the foot of the menu: model, browser, the model's price, start URL, ForgeQE version, machine, CI build, branch, commit, and the sites visited. It exports Markdown and JSON and prints cleanly. Up to 40 MB of screenshots are embedded, failed cases first; beyond that they load from the run folders next to the report. junit.xml : for CI test reporting; a failed case is a \u003cfailure\u003e , a crash an \u003cerror\u003e , a case not run \u003cskipped\u003e ; step verdicts are in system-out suite.json : everything above as data 01-SHOP-12/ , 02-… : each case's normal run folder (with its own report.html , s"},{"t":"Results back in the source","u":"docs/index.html#doc-how_to_use-results-back-in-the-source","g":"User guide · Test cases","h":[],"x":"Results back in the source Test cases the agent writes from an Azure DevOps or Jira story are saved there with save_test_cases , linked to the story, and the reply lists them as links; set sources.save_cases: false to keep them in the reply only. Replies in the shell render as markdown (headings, lists, tables, links). A story often changes a feature that already has test cases, linked to an older story. Map where those cases live in forgeqe.yaml , and saving reuses or extends them instead of writing new ones: yaml Copy sources: azure_devops: test_cases: # the story's area path (or a parent of it) = where its cases are Shop\\Checkout: plan=12/suite=34 # a suite; plan=12 alone is every suite of the plan (the first 25) \"*\": area=Shop\\Regression # Test Cases under an area path; * is every other story jira: test_cases: # the story's project key = where its cases are SHOP: label=regression; component=Checkout # also project= and type= (default Test) ForgeQE reads that one place itself, at most 300 cases by title and the steps of only the few closest to each new case, so the agent never searches for cases and spends nothing on it. Each case the agent wrote is then: reuse when a case there has the same steps; extends when a case there has all of its steps in order and this one adds some; differs or similar as for linked cases; otherwise created . Nothing is written to an existing case until you agree. For reuse the agent offers link_test_case , which shows each case with the other stories it tests and asks before linking. For extends it offers update_test_case with only the added steps ( insert ): the question shows just those steps and where they go, links the case to the story in the same answer, and names the other stories the case tests, since the change applies to them too; when the old steps must stay for those, the agent saves your case as a new one instead. A case is linked only when it is a test case of the story's project (in Jira, or of the project its test_cases names), at most 20 at once. With no test_cases , only the cases linked to the story are compared. Settings › Integrations has the same field for each system. More of managing test cases, each set in forgeqe.yaml (and Settings › Integrations): Where new cases go. When test_cases maps a story to a suite ( plan=12/suite=34 ), new Azure DevOps cases are added to that suite, and run from it, so their results are recorded as a test run in the plan rather than as comments. Other systems: save_test_cases writes Xray tests with their steps in Xray ( sources.xray.save_steps: true , Cloud and Server/DC), TestRail cases in sources.testrail.section_id with the story in refs, and Zephyr Scale cases (in sources.zephyr.folder_id ) linked to the Jira story. qTest is not written to: linking a case to a story there goes through qTest requirements and its Jira integration. Fields on new cases. new_cases gives every new case a priority, tags or labels, and in Azure DevOps a state: state: Design makes each case wait for a person to mark it Ready. The agent may give a case its own priority and tags. Shared steps and data. sources.azure_devops.shared_steps lists Shared Steps work items; a new case that has their steps in a row refers to them instead of copying them. A case run with several sets of data gets parameters ( @user ) and a data table. Cases left behind by a story change. story_test_cases reads the story's history and marks the linked cases last changed before its title, description or acceptance criteria were (stale), with what changed. The agent offers to update each one the change affects, or to retire one that tests behaviour the story no longer has. Retiring a case. retire_test_case asks first, then closes it (Azure DevOps retire_state , default Closed) or labels it (Jira retire_label , default obsolete), with the reason. Nothing is deleted, and retired cases are not offered for reuse. Duplicates before saving. check_test_cases with against (a story) compares the cases with the story's linked cases and its scope: the same steps is a duplicate naming the existing case, more steps or a close title an overlap. Cases with no story. Cases written from a page, a spec or a file are saved in an Azure DevOps area path or a Jira or Zephyr Scale project you name, compared with that area's or project's scope. The feature's other stories. sibling_cases: true also compares with the cases of the other stories under the story's feature or epic (the first 30 stories; in Jira, the parent field Jira Cloud uses for epics). Automation on Jira and Xray. A test that passes for a Jira or Xray case labels it automated and records the test on the issue, as Azure DevOps cases get their Associated Automation; a comment is added only when the test is new. Release readiness in Jira. release_readiness with system: jira reads a sprint, a fix version, an epic or story keys: each story's tests, which are automated, their last results (ForgeQE's runs, Xray test runs and Zephyr Scale executions, the newest of them), open bugs by priority, and the same verdict. Matching by steps. Saving keeps an index of the scope's cases in .forgeqe/cases-index/ (git-ignored): every case's steps read once, then only those changed since, 40 per save. A case with the same steps is found whatever its title, and a slightly reworded step still counts for extends. Several changes at once. apply_case_changes links, extends, updates and retires several cases with one question, every change checked and read first. What ForgeQE changed. Every case it creates, links, updates or retires is logged in .forgeqe/history/case-changes.jsonl ; story_test_cases and the readiness report list the changes for their stories. Acceptance criteria traced to cases. Saved cases carry the criteria they cover ( covers ), and trace_criteria records which linked cases cover which; story_test_cases lists each criterion with its cases, and readiness names the criteria no traced case covers. Healing and test cases. When h"},{"t":"Bugs for failures","u":"docs/index.html#doc-how_to_use-bugs-for-failures","g":"User guide · Test cases","h":[],"x":"Bugs for failures yaml Copy sources: bugs: system: jira # or azure_devops project: SHOP # Jira project key; Azure DevOps uses azure_devops.project type: Bug # issue type or work item type labels: [forgeqe] # Jira labels or Azure DevOps tags # area_path: Shop\\Web # Azure DevOps # on_error: true # also for cases that could not run # group_by: defect # defect (default): cases failing the same way share a bug; case: a bug per case When results are posted, each case that failed with a functional defect (below) gets a bug: the title is [ForgeQE] \u003ccase id\u003e: \u003ctitle\u003e , the description has the result, the steps with verdicts, the preconditions, where the run ended, the build link, and the run folder, and the last screenshot is attached. In Jira the bug is linked to the Jira or Xray test (\"relates to\"); in Azure DevOps it is \"tested by\" the test case work item. Each bug carries a label or tag that fingerprints the case ( forgeqe- and ten hex digits), so the next failure comments \"Still failing\" on the open bug instead of filing a new one, and a pass adds a note that it passes again. A closed bug is not reopened: a new failure after that files a new bug, titled [ForgeQE] Regression: … , that says when the old one was closed and links to it (Jira \"relates to\", Azure DevOps \"Related\", a mention on GitHub; a GitHub issue closed as not planned does not count). One bug per defect. Cases that fail the same way share one bug ( group_by: defect , the default). ForgeQE gives each failing case a signature from the strongest evidence its run recorded: a failed request (a 5xx before a 4xx) by its route and status, then an uncaught page error, then a console error, with ids, numbers and times taken out, so POST /api/cart/123 → 500 and /api/cart/456 → 500 match. Errors that the suite's passing runs show too (an analytics call, a missing favicon) are noise and do not count. The first case of a defect files the bug, titled after the defect ( [ForgeQE] shop.example.com/api/cart/:id returns 500 ) and labelled with the defect's fingerprint ( forgeqe-d- and ten hex digits) as well as the case's; every other case failing the same way is added as a comment and gets its own case label on that bug. The next run finds the open bug by either label. A failure with no browser evidence is matched by its page and what the agent saw, within one run only, and its bug is titled after the case as before. group_by: case files one bug per failing case. The report's Defects page, the terminal summary and the CI job summary list every defect with the cases it breaks. Defect history. Each suite adds its defects to defect-history.json next to the suite folders (keep it between CI runs as a cache, like the suite folders, to track a pipeline's defects). A defect is new the first time, then known (\"seen in 3 earlier runs since 2 Oct\"). It went away when a run did not see it while a case it broke passed; seen again after that, or matching a closed bug in the tracker, it is a regression . A defect whose cases keep changing between passing and failing across the last 20 suites (pass, fail, pass) is marked intermittent : it still gets a bug, which says so. When a new bug is filed, ForgeQE also searches the tracker once for open bugs people filed about the same route or error ( /api/cart , price is undefined ) and lists them on the bug as possibly related; it never merges them. Only defects found by browser evidence are kept in the history: a defect matched by the agent's words gets new words every run. The Defects page shows the history and filters new defects and regressions; the summaries say it next to each defect. Reproducing and root cause. Each defect gets a repro file, defects/\u003cdefect id\u003e.md in the suite folder, and the same steps go in its bug: how reproducible it is, the case's steps with the agent's verdicts, what the browser did, where it ended, the environment (browser, device, build, commit), the failing request as a curl command with its response (the engine takes credentials out of the requests it records), and the run's files (screenshot, replay flow, every step, every API call). The first case of a new product defect runs once more into its reproduce/ folder: failing the same way makes it always reproducible, not failing again makes it intermittent ; a defect seen in earlier runs is not run again. Then the root cause, always as a hypothesis: From the evidence, at no cost: the layer (the server, the front end, access, a route that is not there, the environment) and the component (the route or the script). With defects.product_repo set: suspect commits , made since the defect's cases last passed, whose changes mention its route or error ( git log -G ), or whose files are named after it. For new defects and regressions, a read-only agent (prompt defect-rca ) reads the evidence, the suspect commits and the product's code, and writes a hypothesis with its confidence (high only when it read the code that fails and the change that broke it), what it rests on, and checks to confirm it. The hypothesis is added to the bug as a comment and shown on the Defects page. It runs for at most max_analyses defects per suite; each is one agent session (about 90K–120K tokens with gpt-5.4 in our runs), shown on its own line under Usage. yaml Copy defects: product_repo: ../shop # the application's repository: suspect commits, and the code the analysis reads # reproduce: true # run the first case of each new defect once more # analyze: true # a model writes a root-cause hypothesis for new defects and regressions # max_analyses: 3 # most analyses per suite"},{"t":"Check and improve test cases","u":"docs/index.html#cap-test-case-quality","g":"User guide · Test cases","h":[],"x":"Test cases Check and improve test cases Checks test cases before they run (vague or missing expected results, missing test data, placeholders, duplicates) against the story, feature, and epic they test, then rewrites Azure DevOps or Jira cases in place once the user agrees. Ask it Are the cases in test plan 12 good enough to run? Fix the expected results of case 4512 What it needs Optional Azure DevOps or Jira, to rewrite cases in place: set up under sources: in forgeqe.yaml, or sign in with /auth Tools check_test_cases update_test_case retire_test_case In detail"},{"t":"Checking test cases before they run","u":"docs/index.html#doc-how_to_use-checking-test-cases-before-they-run","g":"User guide · Test cases","h":[],"x":"Checking test cases before they run run_test_cases checks the cases before it runs them, and check_test_cases checks them without running anything (\"are these test cases ready?\", \"check test plan 12 against its stories\"). A check uses everything ForgeQE can know about a case: Source What it finds Cost Rules on the case's text No steps or expected results; vague expected results (\"works correctly\", \"submitted successfully\"); steps that need values the case does not give (\"enter valid user details\"); placeholders ( TBD , \u003cusername\u003e ); passwords in the case; several actions in one step; no start page; duplicate cases None Page memory Steps that name a field or control earlier runs never saw on that page (\"email\" on a form that has no email field), with what the page does have None The requirements it tests Azure DevOps: the story or PBI the case tests (\"Tests\" link), then its feature and epic, with descriptions and acceptance criteria. Jira: the issues the test is linked to, then their parents A few API calls, each requirement read once per check Linked documents Confluence pages linked from the case or its requirements A few API calls A RAG service (optional) Passages your own search finds for the case Your service Each case is ready , to review , or not runnable , shown as a card with what it tests ( tests PBI 2211 \"Contact Us form\" ← Feature 300 ← Epic 12 ) and the acceptance criteria no step seems to cover. ForgeQE's agent then judges each case against its requirements: criteria no step covers, steps no requirement asks for, expected results that contradict the requirement, controls the application does not have. The check before a run uses the rules and page memory only (no reads); check_test_cases with depth: quick does the same. RAG, plug and play. Point forgeqe.yaml at any search service over your requirements (Confluence, a wiki, specs) and the check adds its passages: yaml Copy rag: url: http://localhost:8080/search # POST {\"query\": \"...\", \"top_k\": 5}; answers a list of {text, source, score} token_env: RAG_TOKEN # optional, sent as a bearer token top_k: 5 # or a local command: gets {\"query\", \"top_k\"} on stdin, prints the list on stdout # rag: # command: [\"python\", \"rag/search.py\"] The answer can also be an object with results , passages , documents , or hits , and a passage's text can be text , content , or page_content (LangChain's shape). A RAG server with an MCP interface works through mcp: instead: ForgeQE's agent calls its tools. suite.case_check decides what happens before a run: warn (the default) shows the findings and runs every case, block leaves out the cases that cannot run as written, off skips the check. Ask to run a case and it runs, whatever the check found; ForgeQE's agent reports the findings with the result instead of refusing. A case whose steps have no expected results runs too: it passes when every step can be done, and the check lists it to review , since it checks no result the page should show."},{"t":"Write test cases from a story","u":"docs/index.html#cap-write-test-cases","g":"User guide · Test cases","h":[],"x":"Test cases Write test cases from a story Writes test cases from an understanding of the feature, not only a story's acceptance criteria: it reads the feature and epic above the story, their other stories, linked Confluence pages, the RAG service, product knowledge, the app's pages and flows in page memory, and the area's past defects (from earlier runs and the tracker's bugs), then analyses each criterion before it designs cases. Each case names what it covers, and nothing is saved while a criterion has no case or reason. Saves them in Azure DevOps or Jira, linked to the story. Reads the cases already linked first, so asking again adds only what is missing and updates cases in place instead of duplicating them; plans end-to-end journeys from the existing cases. Ask it Write test cases for story 1234 and save them Build an end-to-end journey from story 1234's cases What it needs Required Azure DevOps or Jira: set up under sources: in forgeqe.yaml, or sign in with /auth Tools story_test_cases save_test_cases link_test_case apply_case_changes trace_criteria requirements_file e2e_journey In detail See Where cases come from ."},{"t":"Domain and regulatory test design","u":"docs/index.html#cap-domain-compliance","g":"User guide · Test cases","h":[],"x":"Test cases Domain and regulatory test design Every agent works as an expert in the product's industry would, automatically: the risks the industry is known for and the obligations of its regulations and standards (for example DORA, PSD2, GDPR, ISO 27001), declared in forgeqe.yaml or worked out from the story and the application. It applies to analysing requirements, writing and checking test cases, exploration, writing, reviewing, and healing test code, API tests, finding tests, and pull request reviews, labelled so coverage can be traced and citing only the control ids in the team's compliance file. forgeqe eval domain measures how well the agent does it. Ask it Write test cases for story 1234, covering our DORA and PSD2 obligations Which GDPR obligations do these cases miss? What it needs Optional The product's industry and regulations: domain: in forgeqe.yaml, with your applicable controls in .forgeqe/knowledge/compliance.md Limits Designs and checks tests for regulatory obligations; it does not certify compliance or replace an audit. Cites control or article ids only from the team's compliance file, never from memory. Tools In detail"},{"t":"Domain and regulations","u":"docs/index.html#doc-how_to_use-16-domain-and-regulations","g":"User guide · Test cases","h":[],"x":"Domain and regulations ForgeQE's agents already know the common industries and regulations: banking, insurance, lending, retail; DORA, PSD2, GDPR, ISO 27001, SOX, IDD, and more. Every agent applies that knowledge to its own job, automatically: analysing requirements, writing and checking test cases, planning exploration, writing test code (Scribe), reviewing it, healing it, writing and planning API tests, finding tests, and reviewing pull requests. Without a declaration, each works out the industry and regulations from the story, the product knowledge, and the application, and says what it assumed. Declaring yours removes the guesswork: yaml Copy domain: industry: retail banking regulations: [DORA, PSD2, GDPR, ISO 27001] notes: Payments to UK and EU accounts; customers are consumers and small businesses. The agents add the risks the industry is known for (duplicate submissions, limits, cut-off times, effective dates, recalculated premiums) and the obligations of each regulation a feature touches (audit trail, segregation of duties, data protection, incident logging, resilience), and label each test case, charter, test, or finding with what it covers, for example Domain: duplicate payment or GDPR: right to erasure . What that means for each job: Agent What it does with the domain ForgeQE's agent Adds domain and regulatory cases when it writes test cases or tests from requirements, and judges cases and release readiness against them Exploratory charters Plans charters for the domain's risks and obligations Scribe (writing tests) Asserts a covered risk or obligation explicitly (the amount, the approval, the audit entry), and carries its label into the test's name or tag Test reviewer Treats a test that drops or weakens such an assertion as a correctness issue Healing Never makes a test pass by loosening such an assertion: if the app no longer meets it, it is an app bug API tests and scenarios Idempotent money-moving calls, access per role, no excess personal data in responses, no leaked internals, audited changes Finding tests \"The DORA tests\" matches tests by their labels and what they assert Pull request review A change that weakens a domain safeguard or an obligation is at least a major finding Every agent session gets the domain in its instructions from one place, and the rule is domain-rule.md in .forgeqe/prompts/ , included in every agent that analyses requirements or designs, writes, reviews, or heals tests. Which requirements apply to your product, and the ids your auditors use, are your organisation's decision: list them in .forgeqe/knowledge/compliance.md ( forgeqe init adds a template), with what is out of scope. Agents cite a control, article, or clause id only when it is listed there, and name the obligation in words otherwise, so nothing in a test traces to an id recalled from memory. ForgeQE designs and checks tests for these obligations; it does not certify compliance or replace an audit."},{"t":"Evaluating the agent's domain knowledge","u":"docs/index.html#doc-how_to_use-evaluating-the-agents-domain-knowledge","g":"User guide · Test cases","h":[],"x":"Evaluating the agent's domain knowledge forgeqe eval domain measures whether the agent applies all this, with your model. Each evaluation case is a realistic story whose acceptance criteria leave the industry's risks and the regulations' obligations unstated, with what a domain expert expects its test cases to check. ForgeQE's own agent writes test cases for each story twice, with the domain declared (and a compliance file) and without, and a separate read-only judge decides, expectation by expectation, whether a test case actually checks it, and lists every id the cases cite. bash Copy forgeqe eval domain # the bundled cases: banking, insurance, access control, data protection, lending forgeqe eval domain --only banking-payment-transfer --repeat 3 forgeqe eval domain --cases ./evals/our-domain # your own cases forgeqe eval domain --judge-profile judge # judge with another llms.json profile forgeqe eval domain --variant declared --min 0.8 # exit 1 under 80% coverage, or on any invented id: a CI gate The report ( .forgeqe/reports/evals/domain/\u003ctime\u003e/report.md and report.json ) shows coverage of the story's own expectations, the industry's, and the regulations', for each variant, the expectations each run missed with the judge's reason, and any invented ids (cited, but not in the compliance file). The gap between the two variants is what declaring the domain adds; the declared coverage is what you can rely on. Model answers vary, so use --repeat before drawing conclusions from one case. A case is a YAML file: yaml Copy id: banking-payment-transfer title: Send money to a saved beneficiary domain: { industry: retail banking, regulations: [PSD2, DORA, GDPR] } compliance: | # the team's compliance file for this product (optional) - CTL-AUD-01 (DORA): every payment is written to the audit log with who, when, and the values. story: title: Pay a saved beneficiary description: As a customer I want to send money to a beneficiary I saved earlier. acceptance: | - The customer picks a saved beneficiary, enters an amount and a reference, and confirms. expect: # source: story, domain, or regulation - { id: duplicate, source: domain, covers: Submitting twice does not create a second payment. } - { id: sca, source: regulation, covers: Confirming the payment requires strong customer authentication. }"},{"t":"Exploratory testing of a story","u":"docs/index.html#cap-exploratory-testing","g":"User guide · Test cases","h":[],"x":"Test cases Exploratory testing of a story Explores a story in real browsers beyond its scripted cases (edge cases, invalid input, boundaries, roles, state), confirms each defect by reproducing it, proposes test cases, and files bugs once the user agrees. Ask it Explore story 1234 and find bugs Test this feature beyond the test cases What it needs Required A live model profile in llms.json (an API key or Microsoft Entra ID sign-in) Optional Azure DevOps or Jira, to read the story and file bugs: set up under sources: in forgeqe.yaml, or sign in with /auth Tools explore_story In detail"},{"t":"Exploratory testing from a story","u":"docs/index.html#doc-how_to_use-exploratory-testing-from-a-story","g":"User guide · Test cases","h":[],"x":"Exploratory testing from a story \"Explore story 1234\" (or forgeqe explore ado:1234 ) tests a story's feature beyond its scripted test cases, in real browsers: Reads the story: description and acceptance criteria, the feature and epic above it, the test cases that already script it (Azure DevOps \"Tested By\", Jira test links), and passages from the requirements search when one is set up. A Jira key, a link, or the story's text with its acceptance criteria works too. Plans charters (6 by default, --charters N , at most 12), each with a mission, concrete steps and data, and an expected result per step: other paths and valid data, edge cases (empty, long, special characters, duplicates), invalid input, the boundaries the story states, role differences , state (refresh, back, double submit, a second tab, an expired session), and what must not happen. Expected results come from the acceptance criteria; where the story says nothing, from what a well-behaved application does, and the charter says so. Nothing irreversible beyond test data is planned, and charters that create or change data are marked. You see the charters and choose to run them all, only those that change no data, or none. Explores: each charter is a browser run, and the browser agent judges each expected result on the page and lists anything else that looks wrong. Roles are your saved logins ( logins: in forgeqe.yaml ; by default every one when there are two or more, or --roles admin,viewer ): a role's charter signs in with only that role's login on the site. Confirms: a charter that finds a functional defect runs a second time. It counts as a confirmed defect only when it fails the same way again. The failure classification decides what is a defect: an environment problem (run once more), a test that could not be done, or a charter that does not fit the application are reported as \"could not explore\", not as defects. Reports in .forgeqe/reports/explore/\u003cid\u003e/exploration.md (and .json ): each charter's result, the confirmed defects with both runs' evidence, and observations : defects that did not reproduce, browser errors (failed requests, console errors), and what the agent noticed beyond the steps. Observations are never filed as bugs. Bugs for confirmed defects only , through the bug tracker set up under bugs: (Jira or Azure DevOps), after you agree ( --file-bugs where nobody can be asked). A bug filed before for the same charter gets a comment instead of a duplicate. Proposed test cases: the charters that ran clean become regression cases, and each confirmed defect becomes a case that checks the correct behaviour (it fails until the defect is fixed). The agent offers to save the ones you pick to the story ( save_test_cases ). bash Copy forgeqe explore ado:1234 --url https://staging.shop.example/orders forgeqe explore SHOP-12 --charters 8 --roles shop_admin,shop_viewer --focus \"the address form\" forgeqe explore \"Change the delivery address Customers can change the address of an open order. Acceptance criteria: - Postcode is required and validated\" --url https://staging.shop.example Each charter is a browser run (two for a possible defect), so a session takes several minutes and costs about as much as running that many test cases. forgeqe explore exits 1 when a defect is confirmed."},{"t":"Setup","u":"docs/index.html#area-setup","g":"User guide","h":[],"x":"06 Setup Configuration, skills, and help"},{"t":"Test environments and their apps","u":"docs/index.html#cap-test-apps","g":"User guide · Setup","h":[],"x":"Setup Test environments and their apps 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. Ask it Place an order in the shop, then check its invoice in Billing, in UAT Which apps can you test in QA? From now on, use the UAT environment What it needs You give env.yaml with the environments and apps (forgeqe init writes one) Tools test_apps use_environment In detail"},{"t":"Environments and apps","u":"docs/index.html#doc-how_to_use-environments-and-apps","g":"User guide · Setup","h":[],"x":"Environments and apps env.yaml (written by forgeqe init , named in forgeqe.yaml environments.file ) lists your test environments and the apps in each: web apps by URL, APIs by base URL, Windows desktop apps by .exe , and mobile apps by package id, each with a short description of what it is for. Plain values go under variables ; secrets never do, only the names of the environment variables that hold them, under secrets . yaml Copy default: qa environments: qa: start_app: shop apps: shop: { kind: web, url: \"https://qa.shop.example.com\", description: Customer web shop where orders are placed } orders: { kind: api, url: \"https://qa.api.example.com/v1\", description: Orders REST API } billing: { kind: desktop, path: 'C:\\Program Files\\Contoso\\Billing\\Billing.exe', args: [\"--server\", \"qa-db01\"], description: Back-office invoicing } variables: { company: Contoso QA } secrets: [BILLING_PASSWORD_QA] uat: apps: { ... } 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. Any layout works. The layout above is ForgeQE's own, but an env.yaml your team already keeps is read as it is: environments under environments: / envs: , as a list with a name each, or as top-level keys ( qa: , uat: ); or one file per environment with environments.dir in forgeqe.yaml a common: / defaults: / shared: block merged into each environment any http(s) URL becomes a web app (an API when its key or path says api); an absolute .exe becomes a desktop app (with a sibling args ); other values become variables secrets: keys like password , token or api_key are never shown to a model. A reference ( ${BILLING_PW} , env:BILLING_PW , %BILLING_PW% ) is recorded as a secret name; a literal value is replaced with \u003credacted\u003e yaml Copy common: { company: Contoso } qa: url: https://qa.shop.example.com orders_api: https://qa.api.example.com/v1 billing_exe: 'C:\\Program Files\\Contoso\\Billing\\Billing.exe' db_password: ${BILLING_DB_PW_QA} uat: url: https://uat.shop.example.com ForgeQE's agent also sees the environment as written (secrets replaced), so a request can name anything in it (\"log in as the admin_user of UAT\"). Link, import or paste the team's file. An environment can be read from a YAML file the team keeps elsewhere in the repository, as it is now each run ( file: , with this project's description and data added), or converted once into ForgeQE's layout: yaml Copy environments: qa: file: config/qa-portal.yaml # linked: read every run, any layout; a file of several picks qa from it bash Copy forgeqe env import config/uat.yaml # shows it in ForgeQE's layout forgeqe env import config/uat.yaml --write # adds it (--name NAME, --replace to overwrite one already there) forgeqe env link qa config/qa-portal.yaml # links it In the shell, /env import config/uat.yaml shows the conversion and /env import config/uat.yaml --write adds it. In the web app, Settings › Environments › Add or Edit has Paste , Import a file and Link a project file . A secret value written in the file is never copied: it is listed so you can move it to an environment variable. Test data per environment. The same test often needs other rows in each environment: QA's customers are not UAT's. List the files under data: (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 FORGEQE_DATA_\u003cNAME\u003e , and the agents are told to read it from there, never from a fixed path. yaml Copy environments: qa: data: customers: test-data/qa/customers.csv # FORGEQE_DATA_CUSTOMERS orders: test-data/qa/orders.json # FORGEQE_DATA_ORDERS uat: data: customers: test-data/uat/customers.csv forgeqe apps and /env list each environment's data files, and mark one that is not there yet. Pick the environment with --env uat on any command ( forgeqe start , run , suite , monitor , mcp , …) or FORGEQE_ENV=uat ; otherwise default is used. In the shell, /env lists them and /env uat switches; asked in plain language (\"from now on, use UAT\"), ForgeQE's agent switches with use_environment , and any single request can name an environment (\"run the checkout tests in UAT\"): each test tool takes an env for that call only. forgeqe apps lists the environments and the active one's apps. What each agent gets from the active environment: Agent What it uses ForgeQE's agent The environment, its apps (with descriptions) and values in its session notes; plans scenarios across apps from them and carries values (an order number) between them Browser agent Starts at start_app when no URL is given; knows the environment's web apps by name and stays on their hosts; its values API tests Call api_app 's URL Desktop agent Starts the environment's desktop apps; types only its secrets Scribe, the healer, the reviewer Write tests that read FORGEQE_APP_\u003cAPP\u003e_URL (or the repository's own settings), never a fixed environment URL; the reviewer flags one Tests ForgeQE runs, pack pipelines FORGEQE_ACTIVE_ENV , FORGEQE_APP_\u003cAPP\u003e_URL / _PATH / _ID , FORGEQE_VAR_\u003cNAME\u003e , FORGEQE_DATA_\u003cNAME\u003e (pipelines written by forgeqe pack pipeline init take them as the env_vars input) Reports Every run's report names the test environment There is no scenario file to write: ask in plain language (\"place an order in the shop, then check its invoice in Billing, in UAT\") and ForgeQE's agent picks the apps from their descriptions, shows the plan, runs each step with the right engine, and carries values from one app to the next."},{"t":"What ForgeQE wrote","u":"docs/index.html#cap-generated-code","g":"User guide · Setup","h":[],"x":"Setup What ForgeQE wrote 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. Ask it How much of the code ForgeQE wrote is still there? Write the commit message for these tests What it needs Nothing beyond ForgeQE itself. Tools generated_attribution In detail"},{"t":"Generated code","u":"docs/index.html#doc-how_to_use-generated-code","g":"User guide · Setup","h":[],"x":"Generated code Generated code. What ForgeQE writes is marked, so the team can see it and measure it. A file ForgeQE created starts with one line in that language's comment, such as // Generated with ForgeQE · fq:k3x7m2qa4bdi · run 20261019-162847 ; the fq: id is a hash of the file's contents without that line, so it shows whether the file was changed since ( code.header: false leaves the line out; a JSON file never gets one). Files it only edited get no header. Every file it created or edited is recorded per run in .forgeqe/generated.jsonl (commit it with the code): the lines it added, as short hashes, never their text. forgeqe generated (or /generated in the shell, --json for a pipeline) says how many lines ForgeQE wrote, how many are still in the code, its share of the files it touched, and which created files are as it wrote them. Commit messages ForgeQE's agent writes end with a Generated-by: ForgeQE (fq:…) trailer, and its pull request descriptions with a line naming the runs' fq: ids and how much they wrote. The ids are plain hashes anyone can recompute: they show what ForgeQE wrote, not who owns the code."},{"t":"Every forgeqe command from the shell","u":"docs/index.html#cap-forgeqe-commands","g":"User guide · Setup","h":[],"x":"Setup Every forgeqe command from the shell 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. Ask it Show me the context budget Add a guardrail: never delete test data in prod Diff the brain prompt against ForgeQE's Is there a new version of ForgeQE? Run the mobile doctor Build the BI site What it needs Nothing beyond ForgeQE itself. Tools forgeqe_command In detail"},{"t":"Commands cheat sheet","u":"docs/index.html#doc-how_to_use-15-commands-cheat-sheet","g":"User guide · Setup","h":[],"x":"Commands cheat sheet Every command below also works from the shell in plain words (\"show the context budget\", \"diff the brain prompt\", \"upload builds/app.apk to TestMu for the courier app\"). ForgeQE's agent uses the tool made for it, or forgeqe_command for the commands no other tool covers. A command that only reads runs at once. One that changes files, installs, costs model calls, or sends anything out shows you the exact command and runs only when you agree. Signing in stays /auth and forgeqe login ; forgeqe bi export and forgeqe logs bundle are /report export and /logs there."},{"t":"Setup","u":"docs/index.html#doc-how_to_use-setup","g":"User guide · Setup","h":[],"x":"Setup Command What it does forgeqe init [--global] [--profile NAME] Write forgeqe.yaml , llms.json , and .forgeqe/ with the prompts, skills, and product knowledge templates forgeqe setup [--force] Download the agent runtime and the engine now ( --force rebuilds the engine) forgeqe models List the profiles in llms.json and the active one forgeqe models --routes [--profile-models] The model each area of work gets ( llm.routing ) and why; --profile-models checks and rates the models again (see docs/MODEL_ROUTING.md ) forgeqe features What ForgeQE can do, and what each capability still needs in this setup (works without a model) forgeqe docs [--guide|--open] [--copy DIR] The bundled docs; --guide opens the docs pages (as on forgeqe.github.io/docs/, offline), --open the architecture page forgeqe mcp list The MCP servers ForgeQE's agent gets from your settings forgeqe auth login [system|NAME] Sign in to Azure DevOps, GitHub, GitHub Copilot ( copilot ), Jira, Confluence, TestRail, Zephyr, qTest, or Xray in the browser, or save one secret, in the system's credential store forgeqe auth [status] , forgeqe auth logout \u003csystem\u003e What is signed in; forget a sign-in"},{"t":"Run","u":"docs/index.html#doc-how_to_use-run","g":"User guide · Setup","h":[],"x":"Run Command What it does forgeqe start [--repo DIR] [--headed] The shell forgeqe run \"\u003crequest\u003e\" [--plain] One request without the shell forgeqe run --direct \"\u003cgoal\u003e\" [--skill NAME] One browser goal, no agent forgeqe chat --jsonl [--carry-over FILE] One live agent for a program, in JSON lines (see A live agent for programs ) forgeqe suite \u003csource...\u003e [--parallel N] [--skill NAME] Run test cases the same way every time (pipelines) forgeqe cases \u003csource...\u003e List the cases a source gives, without running them forgeqe bi [build] [--from FILE|DIR]... [--static|--evidence] The team report of every run here and the shared bundles (see Team report ) forgeqe bi init|sync Scaffold the Evidence project; refresh its datasets and pages without building forgeqe bi export [--out FILE|DIR] This machine's runs and readiness reports in one file to share"},{"t":"Tests","u":"docs/index.html#doc-how_to_use-tests","g":"User guide · Setup","h":[],"x":"Tests Command What it does forgeqe code [run-dir] --repo DIR Scribe writes a test for a run (default: the latest) forgeqe heal [\"\u003ctest command\u003e\"] --repo DIR Fix tests the app has outgrown, or report app bugs forgeqe visual [run] | approve [run] [--page p] Each page against its approved screenshot; approve an intended change as the new baseline forgeqe quality [run] | trends [page] A run's WCAG rules and Core Web Vitals against the budgets; per page over time forgeqe explore \u003cstory\u003e [--url URL] [--roles a,b] Exploratory testing of a story: charters beyond the scripted cases, confirmed defects, proposed cases forgeqe api contracts --spec \u003clink|file\u003e API contracts from OpenAPI/Swagger, WSDL, GraphQL, .proto, or grpc:// forgeqe api contracts --run [RUN] API contracts from the calls a browser run saw the app make forgeqe api run [SET] [--base-url URL] Run contracts against the API, no browser; exit 1 on a failure forgeqe api tests [SET] --repo DIR Scribe writes contracts as API tests in the repo forgeqe api scenarios --run | --spec \u003clink\u003e | --cases \u003crefs\u003e | --text \"...\" End-to-end API scenarios: chained from a run, lifecycles and negative cases from a description, or planned from test cases or plain English forgeqe api run-scenarios [SET] [--allow-writes] Run them against the API; exit 1 on a failure forgeqe api tests --scenarios --repo DIR Scenario tests on the repo's existing API helpers forgeqe generated [--repo DIR] [--json] How much of the code ForgeQE wrote, and how much is still there forgeqe eval domain [--only id,id] [--repeat N] [--min 0.8] Whether the agent applies domain and regulatory knowledge, with the domain declared and without; --min makes it a CI gate (see Domain and regulations )"},{"t":"Data","u":"docs/index.html#doc-how_to_use-data","g":"User guide · Setup","h":[],"x":"Data Command What it does forgeqe db [list] , forgeqe db test|tables|refresh|batches|examples [name] [words] The databases set up here; connect to one, its tables, read its schema again, test data batches, remembered queries (see Databases ) forgeqe db query \u003cname\u003e \"\u003csql\u003e\" [--dry-run] [--max-rows N] [--json] One checked read; writes go through the agent forgeqe db ask \"\u003cquestion\u003e\" [--db NAME] [--run] [--save FILE.sql] ForgeQE's agent writes the SQL; prints only the SQL forgeqe data gen \u003cspec.yaml\u003e [--db NAME] [--format csv|json|sql] [--out DIR] [--insert --yes] [--seed N] Test data from a spec (see Test data ) forgeqe data batches [--db NAME] , forgeqe data clean \u003cbatch\u003e [--db NAME] --yes The batches inserted; remove one forgeqe flows [list]|map|impact \u003cdb.table[.column]\u003e The data flows in flows.yaml , what feeds what, everything downstream (see Data flows ) forgeqe flows check [name ...] [--junit FILE] [--post-ado] Check each hop: arrived, complete, correct, on time forgeqe flows trace \u003cdb.table|flow,flow\u003e \u003ckey\u003e [--wait SECONDS] Follow one record hop by hop"},{"t":"Memory, logins, monitoring","u":"docs/index.html#doc-how_to_use-memory-logins-monitoring","g":"User guide · Setup","h":[],"x":"Memory, logins, monitoring Command What it does forgeqe memory [show \u003chost\u003e] [flows] What page memory knows forgeqe memory clear [host|app] --yes Forget a host, an app, or everything forgeqe memory stats [--json] How often memory stood in for the model, per area forgeqe login \u003cname\u003e / forgeqe logins Sign in by hand once; list or clear saved sessions forgeqe monitor [--once] [--test-alerts] Checks on a schedule, with Teams and email alerts forgeqe notify test [channel] Send a test card to the notification channels (see Notifications ) forgeqe mcp [--repo DIR] ForgeQE's tools as an MCP server for other agents forgeqe skills [show|new|check|enable|disable] The skills each agent can use; start, validate, or turn one off forgeqe logs [bundle] [--shots] Recent session logs; one archive of the newest to share forgeqe update [version] [--check] Update every forgeqe on PATH, waiting while the registries catch up"},{"t":"In the shell","u":"docs/index.html#doc-how_to_use-in-the-shell-1","g":"User guide · Setup","h":[],"x":"In the shell Input Action A request, then Enter ForgeQE's agent works it out /stop or Esc Stop what is running /rerun [last|run] Run a passed run again as recorded, without ForgeQE's agent /headed on|off Show the browser window /theme light|dark|auto 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. FORGEQE_THEME=light (or dark ) sets it at start; /theme alone says which is in use /details [on|off] Show everything the agents do while they work: the browser agent's reasoning, page memory, engine logs, every file the coding agent reads (off by default: step results, files written, test results, problems). --verbose or FORGEQE_VERBOSE=1 starts with it on, for start , run , suite , code , and heal too /model , or click the model ▾ in the status line Pick the model from the profiles in llms.json /profile \u003cname\u003e or Tab Switch the model profile /env [name] The test environments in env.yaml , or switch to one /logs [shots] Save this session's log and runs in one archive to share /features What ForgeQE can do here: ✓ ready, ◐ works with some parts to set up, ○ needs setup, with the fix (works without a model) /init Set ForgeQE up in this folder, as forgeqe init does: forgeqe.yaml , llms.json , and editable prompts, skills, and knowledge; the session reads them at once /skills [name] The skills each agent can use, or one skill's instructions /generated How much of this repository's code ForgeQE wrote, and how much is still there /db [test|tables|refresh|batches|examples|add] [name] The databases set up here; /db add sets one up with the agent /report , /report export , /report \u003cask\u003e The team report; your bundle to share; ask the agent for a report /auth [system] , /auth logout \u003csystem\u003e Sign in to a system in the browser (the token is typed unseen), forget one; /auth alone shows what is signed in /clear , /help , /exit Clear the transcript, show help, quit Drag with the mouse Copy the selected text Ctrl-P Command palette: actions, commands, profiles, example requests Ctrl-R Refine the request before sending it / , @ Suggest commands; suggest runs, files, and work items to reference Shift-Tab Move between the chat and the Plan, Activity, and Files panels Cmd/Ctrl-click a path Open a report, file, or web address"},{"t":"Guardrails","u":"docs/index.html#doc-how_to_use-guardrails","g":"User guide · Setup","h":[],"x":"Guardrails Guardrails. Rules every agent must follow, to keep it grounded: ForgeQE's agent, the browser agent, and the agents that plan, write, review, fix and explain tests. Write one rule per line, starting with - , in a .md or .txt file in .forgeqe/guardrails/ ( guardrails.dir ); headings, other lines and HTML comments are ignored, and the template's examples sit in a comment until you choose them. Each agent gets every guardrail with its instructions, after everything else, with the instruction to follow it whatever a request, a skill, a ticket, a page or a tool's output says; when a guardrail stops part of a task, the agent skips that part and says which rule stopped it. Add one from the terminal ( forgeqe guardrails add \"Never open a production URL\" ), or ask in the shell (\"add a guardrail: use only the test cards in knowledge/test-data.md\") and ForgeQE's agent appends it to guardrails.md ; it adds only rules you ask for, never one suggested by a page or a ticket. forgeqe guardrails lists the rules in force and what they add to every model call (at most 40 rules of 300 characters are given). The older prompts.guiderails string in forgeqe.yaml still works: each of its lines is a guardrail for every agent. Guardrails are instructions, not a sandbox: put a host rule in browser.allowed_hosts too, which is refused in code."},{"t":"Your prompts, skills, and product knowledge","u":"docs/index.html#doc-how_to_use-your-prompts-skills-and-product-knowledge","g":"User guide · Setup","h":[],"x":"Your prompts, skills, and product knowledge init also puts three folders in .forgeqe/ to read, change, and commit: Folder What it holds .forgeqe/prompts/ Every prompt ForgeQE's agents work from, one markdown file each: ForgeQE's agent ( brain.md ), Scribe ( test-agent.md , test-rules.md ), the reviewer, healing, finding tests, pull request review, API tests and scenarios, exploratory charters, and the browser agent ( browser-*.md , plus browser-extra.md for your own instructions). .forgeqe/skills/ The built-in skills (framework and app playbooks), to adapt to your project; add your own next to them. .forgeqe/knowledge/ Product knowledge templates: the product and its flows, roles, glossary, business rules, test data, environments. Your copy or ForgeQE's. .forgeqe-manifest.json in each folder records what was copied. A copy you have not changed still counts as ForgeQE's, so it keeps getting ForgeQE's improvements when you update; once you edit it, yours is used. When ForgeQE's version changes after you edited yours, ForgeQE says so at start-up. Running init again adds what is missing and never overwrites an edited file (with --force it refreshes only unchanged copies). Prompts. Each file has a short header ( name , description , used_by , kind ) and the prompt; {{\u003e name}} includes another prompt ( test-rules is included in the test, reviewer, and healing prompts, so one edit changes all three). ForgeQE looks in prompts.dir , then .forgeqe/prompts/ , then ~/.forgeqe/prompts/ (for every project), then its own. Changes take effect on the next run or session. Your team's prompts. Instructions of your own for chosen agents go in .forgeqe/prompts/team/\u003cname\u003e.md (or ~/.forgeqe/prompts/team/ for every project; a name in the project wins). The header has name , description , and for : the agents' prompts it joins ( brain for ForgeQE's agent, test-agent for Scribe, browser-extra for the browser agent, and so on). Its text is added at the end of those prompts, under \"Your team's instructions\", as written: it is not a template and includes nothing. The web app's Prompts page adds, edits and removes them, and shows each agent's whole prompt with them included; forgeqe prompts show \u003cprompt\u003e shows it in the terminal. markdown Copy --- name: tag-work-items description: \"Tests carry the work item they cover\" for: test-agent, browser-extra --- Tag every test with the Azure DevOps work item it covers. If the request names no work item, ask for it. bash Copy forgeqe prompts # every prompt, what it is for, and where it comes from forgeqe prompts show test-agent # the prompt as the agent gets it (includes expanded; --raw for the file) forgeqe prompts diff test-rules # how your copy differs from ForgeQE's forgeqe prompts reset test-rules # back to ForgeQE's (yours is kept as test-rules.md.bak) forgeqe prompts check # each prompt against the prompting standard for its kind (exits 1 when one falls short) forgeqe prompts check brain # what to fix in one prompt: sections, rules, examples, contract, sentences forgeqe prompts eval # run the evaluation cases with the live model; pass rates against the last run forgeqe prompts eval refine --runs 3 # one prompt, three runs of each case The prompting standard. Every prompt follows one standard, and each technique is used where it fits the kind of prompt ( kind: in its header): Kind Prompts Structure Few-shot examples Execution contract agent: works with tools over many steps brain, test-agent, heal, api-tests, pr-review, find-tests Role, Objective, Execution contract, Rules, Output where routing or reply format varies Preconditions, Tools, Procedure, Stop when, On failure, Evidence structured: one answer in a fixed shape refine, api-scenarios, explore-charters, eval-judge, test-reviewer, browser-skill-select Role, Objective, Inputs, Rules, Output, Examples two or more worked examples – fragment: rules included in other prompts test-rules, domain-rule, skill-rule, conventions, the browser agent's rules rules only – – ASD-STE100 Simplified Technical English everywhere, so each agent reads one clear instruction at a time: an instruction has 20 words or fewer and a description 25 or fewer, one instruction per sentence, the active voice, and approved words (\"make sure\", not \"ensure\"). At least 80% of sentences. The check covers the rules that can be measured in text and a list of common words the standard does not approve; the standard's full dictionary is licensed and not included. RFC 2119 key words state the strength of every rule: MUST / MUST NOT are absolute, SHOULD / SHOULD NOT are strong defaults the agent may break only for a reason it states, MAY is a free choice, and a numbered procedure step is a MUST. A lower-case \"must\" or \"should\" is flagged as ambiguous. conventions.md says this at the top of every agent and structured prompt, and the browser engine adds it to the browser agent's instructions. Structured prompting and few-shot examples make the output predictable: the same sections in the same order, and worked examples where the shape of the answer matters. Execution contracts tell a tool-using agent what must be true before it starts, which tools it uses and in what order (for systems: MCP tools, then query_api , then the browser), its procedure, when it stops, what it does when something fails, and what evidence its answer gives. Evaluation-driven prompting measures reliability: forgeqe prompts eval runs cases (an input and checks decided by code: a field matches or is empty, a tool was or was not used, the text keeps ASD-STE100) and compares each pass rate with the last run. ForgeQE's cases cover brain, refine, and explore-charters; add your own as .forgeqe/evals/prompts/\u003cprompt\u003e/\u003ccase\u003e.yaml (the same id replaces ForgeQE's). Results are kept in \u003creports\u003e/evals/prompts/ . forgeqe prompts check applies the standard to each prompt in use, ForgeQE's or your edited copy; ForgeQE's own meet it in its tests. Write your edits the same way, and run forgeqe prompts e"},{"t":"Product knowledge from the product's repositories","u":"docs/index.html#cap-product-knowledge","g":"User guide · Setup","h":[],"x":"Setup Product knowledge from the product's repositories 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. Ask it How does the product cancel an order? Show the endpoints and tables involved What does a change to OrderService reach, and which tests cover it? Which repository serves POST /api/orders? Build the product knowledge graph Walk me through the checkout flow, step by step What it needs Required The product's repositories: product.repos in forgeqe.yaml, a name and the path of a local clone each Limits Reads local clones of the repositories named in product.repos; it does not clone or pull them 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 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 The model reads at most product.max_model_files changed files a build (400 by default); the rest wait for the next build Domains, flows and rules are what the model finds in the code and documents: a hypothesis to check, not a specification Tools product_knowledge In detail"},{"t":"Product knowledge graph","u":"docs/index.html#doc-how_to_use-product-knowledge-graph","g":"User guide · Setup","h":[],"x":"Product knowledge graph ForgeQE reads every repository of your product into one knowledge graph, so its agents start from how the product works: which service serves an endpoint, which screen calls it, which tables it reads and writes, and which tests cover it. Name the repositories in forgeqe.yaml , each a local clone ( path , relative to the file) or its link ( git ): yaml Copy product: name: Shop repos: web: { path: ../shop-web } orders: { git: https://dev.azure.com/acme/Shop/_git/orders, branch: main, token_env: ADO_PAT } crm: { git: https://bitbucket.acme.local/scm/crm/crm-core.git, token_env: BITBUCKET_TOKEN } mobile: { git: git@github.com:acme/shop-app.git } # ssh signs in with your ssh keys exclude: [\"**/generated/**\"] model: true # false: structure only, nothing goes to a model max_model_files: 400 # most changed files the model reads in one build docs: # documents and links, by name: one of path, url, confluence, or app each handbook: { path: ../shop-docs } help: { url: https://help.shop.example/, depth: 1, max_pages: 100 } api: { url: https://api.shop.example/openapi.json } wiki: { confluence: SHOP } shop: { app: shop-web } bash Copy forgeqe knowledge build # read every repository (again: only files changed since the last build), then the model forgeqe knowledge build --yes # without asking first (pipelines); --no-model: structure only forgeqe knowledge build --repo api # just one repository or source; the others keep their last reading forgeqe knowledge status # what the graph holds, and when each repository was read (its link and commit) forgeqe knowledge pipeline init # the pipeline that builds the knowledge every night and shares it (see below) forgeqe knowledge pull # the team's knowledge (product.shared), without cloning any repository forgeqe knowledge systems --propose # the model proposes the systems; accept, rename or reject each (also on the page) forgeqe knowledge landscape # the product's systems and how they talk (REST, routes, events, shared data, SDK) forgeqe knowledge history # each build: the commits it read, and the endpoints, screens, tables, rules that came and went forgeqe knowledge search \"cancel an order\" forgeqe knowledge impact Services/OrderService.cs # what a change reaches: code across repositories, business flows, tests forgeqe knowledge flow \"cancel an order\" # a business flow, step by step, with the code of each step forgeqe knowledge gaps # what the build could not settle: calls no route or several fit, other hosts, unknown tables forgeqe knowledge check # find each quoted line again in its file: what moved, what is gone forgeqe knowledge ask \"Can a customer cancel an order that has shipped?\" forgeqe knowledge findings \"cancel\" # what earlier questions found; stale ones marked Repositories from their links. You do not need every repository cloned. A repository given by git is fetched by ForgeQE itself into its own cache (under ~/.forgeqe/cache/product-repos ), never into your workspace: the branch's latest commit only, and only the files the graph reads (no images, archives, binaries, node_modules or vendor ). Each build first asks the server for the branch's commit and fetches only when it moved; then only the files that changed are read again. It works with GitHub and GitHub Enterprise, Azure DevOps (Services and Server), GitLab, Bitbucket Cloud and Bitbucket Server / Data Center, and any git server, over https or ssh. Signing in: token_env names the variable that holds a token (or save it with forgeqe auth login ADO_PAT ): a personal access token for Azure DevOps, a fine-grained or classic token for GitHub, a project or personal token for GitLab, an HTTP access token for Bitbucket Server, a repository access token for Bitbucket Cloud (or an app password with user: ). It is sent to that host only, as a header, never in the link or a file. Without token_env , git signs in as it does for you (Git Credential Manager, ssh keys); it never stops at a prompt. Pinned to a commit: forgeqe knowledge status shows each repository's link, branch and commit, and on the Product page a part's evidence opens the exact line on GitHub, Azure DevOps, GitLab or Bitbucket at the commit the graph was built from. When a server cannot be reached, the build reads the last fetched commit and says so; a repository never fetched keeps its graph from the last build. Neither stops the other repositories. What changed: every build is kept in graph/history.jsonl ; forgeqe knowledge history lists the commits each build read and what came and went. Safety: git runs with an argument array; repository hooks, submodules, LFS downloads and symbolic links are off; only https and ssh links are taken (never ext:: , file:// or a local path), and none with a password or .. in it. What the runs did, against the code. Every build also reads the API calls ForgeQE's last 50 runs recorded ( network.json in the reports folder: method, host, path and status; never a body, header or query value, and a path segment that is an email address or a long token is masked). A call whose route a repository declares marks that endpoint, the front end's call of it, and the screen the run was on as seen in a run, with the call as evidence. A call near a declared route but not it (one segment differs, or one more such as /v2 ) is listed as differing from the code; a call no repository declares, as shown only by the runs. bash Copy forgeqe knowledge runtime # what differs from the code, what only the runs show, endpoints no run reached Sharing the knowledge with the team. One machine builds the knowledge; everyone else pulls it, with no clone of any repository. Run once, in the repository that holds forgeqe.yaml : bash Copy forgeqe knowledge pipeline init # writes .github/workflows/forgeqe-knowledge.yml and pipelines/forgeqe-knowledge.yml Commit the file for your CI (and forgeqe.yaml , llms.json ), add the secrets it names (each repository's token_env , each document link's, and the model's key), and run it"},{"t":"Setup, skills, and documentation","u":"docs/index.html#cap-setup-help","g":"User guide · Setup","h":[],"x":"Setup Setup, skills, and documentation 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). Ask it What can you do? Which model am I using? How do I set up email alerts? Show me the icons of all agents Which version of ForgeQE is this? What it needs Nothing beyond ForgeQE itself. Tools forgeqe_setup capabilities playbook use_capabilities In detail See 2. Scaffold config ."},{"t":"Skills","u":"docs/index.html#doc-how_to_use-11-skills","g":"User guide · Setup","h":[],"x":"Skills A skill is a folder with a SKILL.md : 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, agents : markdown Copy --- name: contoso-erp description: \"Use when the site is the Contoso ERP (erp.contoso.com): the order grid, the customer lookup, and saving orders.\" agents: [browser] --- - The customer lookup opens a list after three letters; click the row whose name matches exactly. - Save with the floppy icon in the toolbar; wait until \"Saved\" shows in the status bar. name is lowercase words joined by hyphens, the same as the folder. Agents choose skills by description alone, so name the concrete signs it applies (a framework, a config file, a host, a product). Quote it when it contains : . Who uses it. agents lists forgeqe (ForgeQE's agent: how to handle a kind of request), scribe (writing, healing, finding and reviewing tests), and browser (the browser agent). Without agents , a skill is for forgeqe and scribe ; a browser skill must ask for browser . How skills are used. ForgeQE's agent and Scribe see the name and description of each skill meant for them, and load the ones that fit the job through the agent runtime's skill tool. A skill adds to their instructions and never overrides them. Scribe can also read files next to SKILL.md (for example references/locators.md ) when the skill points to them. Browser runs: ForgeQE's agent passes the browser skills a goal needs to browser_run and run_test_cases . For forgeqe suite , forgeqe monitor and forgeqe run --direct , the engine picks them from the goal with one short model call (at most three), and remembers the choice for that goal, so a monitor's later rounds and repeated cases skip it. --skill NAME (repeatable) fixes the list; --skill none runs without any. The chosen skills' text is added to the browser agent's prompt, at most skills.browser_max_chars (6,000) characters in total; the browser agent reads only SKILL.md . run.json , the run.done log line and the report list the skills a run used. Where skills come from , lowest to highest precedence; a later source replaces a skill of the same name: Source Folder Built-in the skills/ folder ForgeQE ships: playwright-typescript and dotnet-nunit-playwright (Scribe), dynamics-365 (browser), writing-skills (ForgeQE's agent) Global, only with skills.external: true ~/.claude/skills , ~/.agents/skills , and the repo's .claude/skills and .agents/skills User ~/.forgeqe/skills (or $FORGEQE_HOME/skills ) Project .forgeqe/skills next to forgeqe.yaml , and the repo's own .forgeqe/skills Extra each folder in skills.dirs Commit .forgeqe/skills so the team and CI share it. ForgeQE only ignores .forgeqe/reports/ ; if your .gitignore has .forgeqe/ , replace it with .forgeqe/* and !.forgeqe/skills/ ( forgeqe skills new warns when git would ignore the new skill). To change a built-in skill, make a project skill with the same name. Skills from anywhere else stay out: the agent runtime's own discovery ( ~/.claude/skills , a repo's .opencode/skills , its built-in skills) is off, and each agent may load only the skills ForgeQE's registry gives it. Skill text is trusted like the repo's own files, so global skills are opt-in. yaml Copy skills: enabled: true # false (or skills: false) turns skills off dirs: [../shared-skills] # more folders, read last disable: [dynamics-365] # leave these out external: false # true: also the global folders above browser_max_chars: 6000 # most skill text added to one browser run Commands. Command What it does forgeqe skills The skills each agent can use, where each comes from (and what it replaces), disabled skills, problems, and the folders read forgeqe skills show \u003cname\u003e One skill's instructions forgeqe skills new \u003cname\u003e --description \"Use when …\" [--agent browser] [--user] Start a skill in .forgeqe/skills ( --user : ~/.forgeqe/skills ) forgeqe skills check Validate every skill; exit 1 when one has a problem forgeqe skills enable|disable \u003cname\u003e Edit skills.disable in forgeqe.yaml , keeping its comments /skills [name] The same list, or one skill, in the shell In the shell you can also ask: \"make a skill for our Dynamics date picker\" or \"teach Scribe our test conventions\". ForgeQE's agent gathers the facts, writes the skill into .forgeqe/skills with forgeqe_setup , and it applies from the next session. It writes skills only when you ask."},{"t":"Model routing","u":"docs/index.html#doc-how_to_use-model-routing","g":"User guide · Setup","h":[],"x":"Model routing llm.routing is off by default for existing projects ( forgeqe init writes auto ); shadow logs each pick in the session log but changes nothing. --profile and code.model always win, llm.routes limits or pins the profiles an area may use, and llm.agents gives one agent its own default model (ahead of the router and code.model ; only --profile overrides it). ForgeQE checks and rates the models once and keeps the result in .forgeqe/model-profile.json (you can edit the ratings). Details: docs/MODEL_ROUTING.md . List profiles, and the model each area gets: bash Copy bun src/index.ts models bun src/index.ts models --routes # the pick per area, and why bun src/index.ts models --routes --profile-models # check and rate the models again"},{"t":"Privacy","u":"docs/index.html#doc-readme-privacy","g":"User guide · Setup","h":[],"x":"Privacy ForgeQE sends no telemetry and turns it off in everything it starts: The engine: PostHog telemetry, cloud sync, and the price-list download are off, and the blank-tab logo its library loads from a CDN is replaced by ForgeQE's start page, which loads nothing. The agent runtime: auto-update, session sharing, OpenTelemetry spans, and the model catalogue download are off; it uses its bundled model list. GitHub Copilot: the Copilot SDK's session telemetry, on by default for a signed-in user, is off on every session. The repo's test command: DO_NOT_TRACK=1 , plus the opt-outs for Next.js, Nuxt, Astro, Gatsby, Storybook, Turborepo, Angular, .NET, and Cypress. OTEL_EXPORTER_OTLP_* variables are removed from those processes, and your environment cannot turn any of this back on. The traffic is to your model endpoint and the sites the agent visits. Besides that, ForgeQE downloads only public files: the model price lists from models.dev and LiteLLM, once a day ( FORGEQE_PRICES=off stops them); the agent runtime from its GitHub releases, when it is not installed; and the engine's ad-block and cookie-banner extensions from the Chrome Web Store, once. Nothing about your runs is sent."},{"t":"Model routing: the right configured model for each task","u":"docs/index.html#doc-docs-model_routing-model-routing-the-right-configured-model-for-each-task","g":"User guide · Setup","h":[],"x":"Model routing: the right configured model for each task With more than one model in llms.json , ForgeQE can give each kind of work the model it needs. A small, fast, cheap model can plan and review. A strong model can write code and find root causes. A model that takes screenshots drives the browser, and a model with a large window reads a large pull request. You do not need to know what each model can do: ForgeQE finds out."},{"t":"Turn it on","u":"docs/index.html#doc-docs-model_routing-turn-it-on","g":"User guide · Setup","h":[],"x":"Turn it on In forgeqe.yaml : yaml Copy llm: models_file: ./llms.json routing: auto # off (the default for existing projects) | shadow | auto forgeqe init writes routing: auto for new projects. With no routing line it is off. shadow decides and logs each pick in the session log ( model.route ) but changes nothing, so you can see what the router would do before you let it. Shadow still runs the live checks and the rating call described below. Whatever routing says, the model an area gets must work: its key or sign-in is set and it passed a live call (one per model, kept for a day in .forgeqe/model-checks.json once it passes; a failed one is never kept, and a failed check in model-profile.json is checked again). When it does not, the next model that works is used, a GitHub Copilot profile first, and ForgeQE says why and how to fix the first. When none works, the error lists each model with the fix. Only --profile skips this. With auto , a GitHub Copilot seat counts as costing nothing more per call, so it is picked whenever it is rated good enough. See the picks, and every model's check with its fix: text Copy forgeqe models --routes"},{"t":"The areas of work","u":"docs/index.html#doc-docs-model_routing-the-areas-of-work","g":"User guide · Setup","h":[],"x":"The areas of work Area What runs in it Needs agent ForgeQE's agent: the shell, forgeqe run , forgeqe mcp tool calls; rated 4+ browser Browser, desktop and mobile runs, from screenshots images; rated 4+ coding Scribe writing and healing tests, API tests tool calls; rated 5 review Test reviewer, pull-request review, evaluation judge tool calls; rated 3+ analysis Root cause of defects tool calls; rated 5 planning Refine, finding tests, API scenarios, exploratory charters tool calls; rated 3+"},{"t":"A default model for each agent","u":"docs/index.html#doc-docs-model_routing-a-default-model-for-each-agent","g":"User guide · Setup","h":[],"x":"A default model for each agent To give one agent its own model whatever routing says, name an llms.json profile for it under llm.agents (Settings → Routing → Areas of work, under each area, does the same): yaml Copy llm: agents: forgeqe: azure-gpt4o # the Orchestrator engine: azure-gpt4o # the browser agent: pick a model that takes images forgeqe-test: claude-opus # the coding agent forgeqe-review: azure-mini # its reviewer An agent left out uses its area's pick. The agents are forgeqe , engine , forgeqe-test , forgeqe-heal , forgeqe-migrate , forgeqe-api , forgeqe-review , forgeqe-pr-review , forgeqe-judge , forgeqe-defect-rca , forgeqe-refine , forgeqe-find , forgeqe-test-plan , forgeqe-api-plan , forgeqe-explore-plan , forgeqe-data and forgeqe-agent-builder ; forgeqe models --routes lists each with the model it gets. An unknown agent or a profile not in llms.json is an error when ForgeQE loads forgeqe.yaml . The model must still work: with fallback on, one that fails its check is replaced as for any area. --profile still names the model for everything."},{"t":"How a model is picked","u":"docs/index.html#doc-docs-model_routing-how-a-model-is-picked","g":"User guide · Setup","h":[],"x":"How a model is picked Your choices win. --profile (or WP_LLM_PROFILE ) comes first. Then an agent's own model in llm.agents (below), which also comes ahead of code.model and code.review_profile for that agent. code.model keeps the router out. A profile pinned in llm.routes is used for its area. code.review_profile still sets the reviewer. Facts rule models out. The router never picks a model that: has no key, or failed its live check; takes no images, for browser work; takes no tool calls, for agent work; has a window too small for the prompt (a large pull-request diff, for example). The facts come from llms.json , a live check, and the public model lists (models.dev and LiteLLM) that ForgeQE already downloads for prices. A fact that nobody knows never rules a model out. Ratings pick among the rest. The cheapest model rated at the area's bar is picked. Writing code and finding root causes ask for 5, because a weaker model there costs more in failed attempts than it saves. If no model reaches the bar, the best-rated one is picked. With no ratings yet, the active profile is kept unless a fact rules it out. A failed answer escalates once. When a root-cause analysis finds nothing, or finds a cause with low confidence although it could read the product's code, it runs again on a stronger model: one rated higher for the area, or rated the same and priced higher. Both runs are counted in its cost. The same configuration and task always give the same model. A pick changes only when the models, the ratings or the size of the prompt change. Each pick is shown once (\"Model for planning: mini (…)\") and is written to the session log."},{"t":"How ForgeQE learns the models","u":"docs/index.html#doc-docs-model_routing-how-forgeqe-learns-the-models","g":"User guide · Setup","h":[],"x":"How ForgeQE learns the models The first routed call in a project with two or more usable profiles does this once: A live check of each model ( python -m forgeqe_engine probe ): one short structured answer and one image. This finds a deployment that does not exist, a wrong key, and whether the model really takes images. It also measures how fast the model answers. One rating call. The active profile's model receives the facts of every model, never a key, an endpoint or an account. It rates each model 1–5 for each area and gives it a tier (fast, balanced or strong). The result is kept in .forgeqe/model-profile.json next to forgeqe.yaml . ForgeQE uses it until the profiles in llms.json change (provider, model, deployment or endpoint). You can edit the ratings. ForgeQE keeps your edits while the profiles stay the same. It checks the file every time it reads it: names that are not profiles and unknown areas are dropped, and ratings are rounded to whole numbers from 1 to 5. The live checks reach every profile in llms.json that has a key, whatever llm.routes pins. A pin keeps your runs' data on one deployment; the checks carry nothing from your runs. To send nothing to the other profiles at all, use routing: off , keep one profile with a key, or pass --profile . To check and rate again (for example, after a deployment changed its model): text Copy forgeqe models --routes --profile-models"},{"t":"Limit what an area may use","u":"docs/index.html#doc-docs-model_routing-limit-what-an-area-may-use","g":"User guide · Setup","h":[],"x":"Limit what an area may use yaml Copy llm: routing: auto routes: browser: [gpt4o, gpt54] # only these two, the router picks between them coding: gpt54 # pinned planning: auto # any configured model (the default) A name in routes must be a profile in llms.json , and an area must be one of the six above. Anything else stops ForgeQE at start with a message that names it."},{"t":"What it does not do","u":"docs/index.html#doc-docs-model_routing-what-it-does-not-do","g":"User guide · Setup","h":[],"x":"What it does not do ForgeQE's agent picks its model when its session starts and keeps it for the whole conversation. Changing the model mid-conversation would drop the prompt cache and make every later turn cost more. The agent hands heavy work to the other agents, and those are routed. A rating is one model's judgement. It is kept in a file that you can read and correct."},{"t":"Desktop","u":"docs/index.html#area-desktop","g":"User guide","h":[],"x":"07 Desktop Windows thick-client apps: explore a goal, record by hand, replay the saved workflow"},{"t":"Automate Windows desktop apps","u":"docs/index.html#cap-desktop-apps","g":"User guide · Desktop","h":[],"x":"Desktop Automate Windows desktop apps Carries out a plain-language goal in a Windows thick-client app with UFO² and saves it as a workflow with checks of the outcome, or records the steps a tester does by hand, with no model; replays saved workflows with no model, healing a step whose control moved, and fixes a workflow from chat (a timeout, a wait, a dialog to dismiss) after showing the change. Apps and the secrets they may type come from env.yaml or forgeqe.yaml desktop:. Ask it Create an invoice for Contoso in the Billing app and save it as a test I'll show you the steps in Billing: record them Replay the billing workflow with customer Fabrikam Step 4 timed out while the list loaded: fix the workflow What it needs Optional A live model profile in llms.json (an API key or Microsoft Entra ID sign-in) Required Windows desktop apps: env.yaml (kind: desktop) or desktop.apps in forgeqe.yaml You give a Windows machine, and the app in forgeqe.yaml desktop.apps Limits Windows only, one run at a time per desktop Apps whose controls UI Automation cannot see (Citrix, some Java and custom-drawn apps) are not supported yet Tools desktop_explore desktop_record desktop_replay desktop_edit_workflow In detail"},{"t":"Desktop apps (Windows)","u":"docs/index.html#doc-how_to_use-desktop-apps-windows","g":"User guide · Desktop","h":[],"x":"Desktop apps (Windows) ForgeQE also automates Windows thick-client apps (Win32, WinForms, WPF). In the shell, ask for a goal in the app (\"create an invoice for Contoso in Billing\") and ForgeQE's agent uses UFO² to do it, saves the run as a workflow with checks of the outcome, and can replay it with no model. The same from the command line: bash Copy forgeqe desktop setup --ufo forgeqe desktop explore \"Create an invoice for Contoso, net 30\" --app billing forgeqe desktop record --app billing # or do the steps yourself; no model forgeqe desktop replay \u003crun folder\u003e/workflow.yaml customer=Fabrikam forgeqe desktop replay workflow.yaml --data customers.csv # once per row; columns are variable names forgeqe desktop replay desktop-tests/ --junit results.xml # every workflow in a folder, results for CI forgeqe desktop doctor # can this machine replay unattended? Workflows wait for slow apps without fixed sleeps: a timeout and retries for the workflow or a step, wait_for a control to appear, show a text or go away (a splash screen), and a dismiss list of dialog buttons to click whenever they are in the way. expect_image compares a control or window with a baseline image (saved on the first run, kept next to the workflow), with a tolerance and regions to ignore. When you know the steps, forgeqe desktop record (or \"I'll show you, record it\" in the shell) saves what you do by hand: Ctrl+Shift+F11 over a control adds a check of its text, Ctrl+Shift+F12 finishes. After a failed replay, ForgeQE's agent can fix the workflow (a longer timeout, a wait_for , a dialog to dismiss): it shows the diff and writes it only when you agree. For nightly runs on a machine of your own, see docs/DESKTOP-CI.md . Apps come from desktop.apps in forgeqe.yaml (an absolute .exe and an argument list), and {{secret:NAME}} reads only the variables listed in desktop.secrets . Explore and replay take over the desktop's mouse and keyboard and ask first; use a test machine and a test account. Details: docs/DESKTOP.md ."},{"t":"ForgeQE desktop: thick-client automation","u":"docs/index.html#doc-docs-desktop-forgeqe-desktop-thick-client-automation","g":"User guide · Desktop","h":[],"x":"ForgeQE desktop: thick-client automation Status: runs on Windows. The desktop job of .github/workflows/ci.yml (GitHub's windows-2022 ) installs the engine and the pinned UFO², replays Notepad live with the pywinauto driver and through forgeqe desktop replay , heals a moved control from the live window, and runs a whole explore: UFO² drives Notepad with a scripted model behind an OpenAI-compatible server, the action is recorded with the control's AutomationId, and the recording replays. Not yet run: explore with a real model (the job has no key), and your own apps. See Before first use on Windows . ForgeQE drives web apps through Chrome. The desktop engine does the same for Windows thick clients (Win32, WinForms, WPF, and the native parts of Electron and WebView2 apps): say what you want in plain language, UFO² does it on the live app, and the run is saved as a YAML workflow that replays later without a model."},{"t":"Use","u":"docs/index.html#doc-docs-desktop-use","g":"User guide · Desktop","h":[],"x":"Use bash Copy forgeqe desktop setup --ufo # once, on Windows: the engine, pywinauto, and the pinned UFO² forgeqe desktop apps # what forgeqe.yaml allows forgeqe desktop explore \"Create an invoice for Contoso, net 30\" --app billing forgeqe desktop record --app billing # or do the steps yourself: no model, no UFO forgeqe desktop replay .forgeqe/reports/desktop-explore-…/workflow.yaml customer=Fabrikam forgeqe desktop replay workflow.yaml --data customers.csv # once per row; the header names the variables forgeqe desktop replay desktop-tests/ --junit results.xml # every workflow in a folder, results for CI forgeqe desktop replay workflow.yaml --update-baselines # save new baselines for its expect_image steps forgeqe desktop doctor # can this machine run replay unattended? forgeqe desktop validate workflow.yaml # any OS Or ask ForgeQE's agent in the shell or forgeqe run : \"create an invoice for Contoso in Billing and save it as a test\", or \"I'll show you the steps in Billing, record them\". Its tools are test_apps , desktop_explore , desktop_record , desktop_replay and desktop_edit_workflow . It asks before it starts the app or takes over the desktop, and before it changes a workflow. Where it cannot ask (an MCP client), the call answers needs_confirmation until the user agrees. Desktop apps come from the active environment in env.yaml (see HOW_TO_USE.md, \"Environments and apps\"), or from desktop.apps in forgeqe.yaml , which works without environments: yaml Copy desktop: apps: billing: path: C:\\Program Files\\Contoso\\Billing\\Billing.exe args: [\"--profile\", \"test\"] # window: \"Billing.*\" # for a launcher that starts the real app and exits: connect by title secrets: [BILLING_PASSWORD] # the only environment variables {{secret:…}} may read heal: true # replay asks the model to re-find a control that moved (default on) screenshots: true # one screenshot per replayed step (default on) Each run writes a folder under the reports folder ( desktop-explore-… or desktop-replay-… ): run.json , report.html , steps/NNN.png , and for explore workflow.yaml , trace.json and UFO's own logs in ufo/ . A replay whose steps were healed also writes heals.json and asks whether to write the new locators into the workflow ( --accept-heals writes them without asking; with no terminal they are never written)."},{"t":"How a run flows","u":"docs/index.html#doc-docs-desktop-how-a-run-flows","g":"User guide · Desktop","h":[],"x":"How a run flows text Copy forgeqe desktop explore ──► src/desktop/bridge.ts ──JSON lines──► python -m forgeqe_desktop serve │ start the app from desktop.apps (no shell) │ UFO² in-process: model = llms.json profile, │ UI tools only, every action traced with its ▼ control's UIA properties record.py ──► workflow.yaml forgeqe desktop replay ───► bridge ──► serve (replay.py on pywinauto, no model) │ a control is not found ▼ heal.py: the model picks one of the window's real controls, by number ▼ proposed locator → heals.json, written into the workflow only when accepted"},{"t":"One model config: llms.json → UFO","u":"docs/index.html#doc-docs-desktop-one-model-config-llmsjson--ufo","g":"User guide · Desktop","h":[],"x":"One model config: llms.json → UFO UFO picks its model client by API_TYPE through ufo.llm.base.BaseService.get_service , which every model call goes through ( ufo/llm/llm_call.py ). The adapter adds the type forgeqe : write_ufo_config writes UFO's config/ufo/agents.yaml from its template, with API_TYPE: forgeqe , the model's name, and no endpoint and no key, for HOST_AGENT , APP_AGENT , BACKUP_AGENT and EVALUATION_AGENT . ufo_bridge.install makes get_service(\"forgeqe\", …) return ForgeQEService , which calls the profile through the openai SDK ( models.py ): azure (key or auth: entra ), openai , openai_compatible (key or Entra), and ollama through its OpenAI-compatible /v1 . Keys, Azure endpoints and Entra use the browser engine's own helpers ( forgeqe_engine.llm ), so a profile means the same thing in both. Keys stay in environment variables. Each call's time and tokens go to ForgeQE's usage ledger as the \"desktop agent\" (counts only, never the prompt). Explore sends screenshots, so its profile must take images: \"vision\": true or false on the profile says so; without it, ollama profiles are refused and others accepted. Healing sends a screenshot only to a profile that takes images. The request parameters suit the model by themselves: a reasoning model (o1, o3, o4, gpt-5, by the profile's model or deployment name, or \"reasoning\": true on the profile) gets max_completion_tokens and no temperature from the first call, and when the API refuses a parameter ( max_tokens , temperature , frequency_penalty , response_format , …) the call is sent again without it, and later calls to that model leave it out ( py/forgeqe_engine/model_params.py ). The browser agent does the same."},{"t":"Workflow YAML ( forgeqe-desktop-v1 )","u":"docs/index.html#doc-docs-desktop-workflow-yaml-forgeqe-desktop-v1","g":"User guide · Desktop","h":[],"x":"Workflow YAML ( forgeqe-desktop-v1 ) yaml Copy format: forgeqe-desktop-v1 name: Create an invoice app: billing # a name from forgeqe.yaml desktop.apps, never a path or a command variables: customer: Contoso steps: - op: launch - op: click target: {automation_id: btnNewInvoice, control_type: Button, name: New invoice} - op: type target: {automation_id: txtCustomer, control_type: Edit} text: \"{{customer}}\" - op: type target: {automation_id: txtPassword, control_type: Edit} text: \"{{secret:BILLING_PASSWORD}}\" - op: select target: {automation_id: cmbTerms, control_type: ComboBox} value: Net 30 - op: keys keys: ctrl+s - op: expect target: {automation_id: lblStatus} text: Saved - op: close Ops: launch , click , double_click , type , select , keys , expect , expect_image , wait (at most 60 s), wait_for , close . Locators use UIA properties, never screen coordinates: automation_id , name , control_type , class_name , index (when several match), and path (the ancestors' control_type and name ). A target needs an automation_id or a name . Replay looks in the launched app's own windows only. Variables: {{name}} from the workflow's variables or name=value on the command line; {{secret:NAME}} from the environment, only for names in desktop.secrets . A secret ForgeQE itself uses (a model key, a tracker token) is refused there. Values are substituted once and never expanded again. Targets take {{name}} too (a CSV row's {{customer}} as the control to click), never a secret. Keys: ctrl , shift and alt with one named key or character ( ctrl+s , alt+f4 , enter , f5 ). The Windows and context-menu keys are refused: Win+R followed by typing runs any command. Typing is literal: pywinauto's key syntax ( ^ , % , + , ~ , {ENTER} ) in the text is escaped."},{"t":"Recording by hand","u":"docs/index.html#doc-docs-desktop-recording-by-hand","g":"User guide · Desktop","h":[],"x":"Recording by hand When you know the steps, do them yourself instead of describing a goal: no model and no UFO are involved, so it costs nothing and does exactly what you did. bash Copy forgeqe desktop record --app billing --name \"Create an invoice\" ForgeQE starts the app and watches the mouse and keyboard (low-level Windows hooks), asking UI Automation which control each click and key went to. Do the steps, then: Ctrl+Shift+F11 with the mouse over a control adds a check: an expect step with the text it shows now (a status message, a saved total). Add one at the end, so the replay tests the outcome, not only the steps. Ctrl+Shift+F12 , or closing the app, finishes. The console shows each step as it is recorded. What becomes a step: You do Step Click a control (two quick clicks: double_click ) click with its AutomationId, name and control type Pick an item in a drop-down select on the drop-down, with the item's name Type into a field (corrections and pastes included) one type with the field's text when you move on, read from the field A key chord outside a text field ( ctrl+s , enter , f5 ) keys Ctrl+Shift+F11 over a control expect with its text Passwords: a password field is never read; its step types {{secret:NAME}} (the one name in desktop.secrets , or \u003cAPP\u003e_PASSWORD , which the result tells you to set). Text equal to a desktop.secrets value is written as its placeholder. The typed characters themselves are never kept, only the field's text when you move on. Only the app: clicks and keys outside the app's own process are not recorded; nor are the Windows and menu keys, or controls with neither an AutomationId nor a name. The result lists what was left out. The run folder has workflow.yaml , run.json and report.html , like explore. Replay it with forgeqe desktop replay ."},{"t":"Fixing a workflow from chat","u":"docs/index.html#doc-docs-desktop-fixing-a-workflow-from-chat","g":"User guide · Desktop","h":[],"x":"Fixing a workflow from chat When a replayed step fails because the app was slow or a dialog was in the way, ForgeQE's agent fixes the workflow with desktop_edit_workflow : it proposes the change (a longer timeout or retries on the step, a wait_for before it, a dialog button in dismiss , a healed locator, a corrected text), shows you the diff, and writes the file only when you agree. For example, after \"step 4 timed out while the invoice list loaded\": text Copy Change invoice.yaml? • new wait_for step before step 4 • step 4: retries 2 - op: click + target: {automation_id: btnPost} + retries: 2 Each change has a fixed shape ( set , unset , set_step , add_dismiss , insert_step , remove_step , set_variable ); step numbers are the replay report's. Anything else is refused. The changed workflow is checked by the engine's own validator before it is shown; one that would not run is not offered. Comments and layout are kept. The old text is kept in the reports folder ( desktop-edits/ ), and a file that changed since the edit was proposed is not overwritten. The workflow must be a .yaml inside the working folder or the reports folder."},{"t":"Waits, retries and dialogs","u":"docs/index.html#doc-docs-desktop-waits-retries-and-dialogs","g":"User guide · Desktop","h":[],"x":"Waits, retries and dialogs Real apps are slow in places: a splash screen, a form that loads its data, a \"Tip of the day\" or \"Save changes?\" dialog. A workflow says how to wait for them, without fixed wait steps: yaml Copy timeout: 20 # seconds a step waits for its control (default 10, at most 300) retries: 1 # tries a failed action again, after a short pause (default 0, at most 5) dismiss: # clicked whenever one of them is in the way - {name: OK, control_type: Button, automation_id: btnTipClose} - {name: \"Don't Save\", control_type: Button} steps: - op: launch timeout: 90 # a slow start: how long to wait for the app's window - op: wait_for # the splash screen goes away target: {automation_id: splashForm} gone: true timeout: 120 - op: wait_for # the form has loaded its data target: {automation_id: lblStatus} text: Ready - op: click target: {automation_id: btnPost} timeout: 60 # per step, over the workflow's timeout retries: 3 Each step waits for its control up to its timeout . click , type and select also wait until the control is enabled and visible (a form that is still loading greys its buttons out). wait_for waits until a control is there, shows a text , or with gone: true has gone. retries applies to click , double_click , type , select , keys , expect and expect_image . Between tries, replay pauses (1 s, 2 s, … up to 5 s) and closes any dismiss dialog. An error in the workflow itself (a missing variable) is not retried. dismiss lists at most 10 targets, checked like any target. When a control is not found, or something waits to go away, replay clicks the dismiss controls that are on screen and looks again, up to 3 times per lookup. The report and the console name every dialog closed, and how many tries a step took."},{"t":"Visual checks ( expect_image )","u":"docs/index.html#doc-docs-desktop-visual-checks-expect_image","g":"User guide · Desktop","h":[],"x":"Visual checks ( expect_image ) expect compares text. When what matters is drawn (a chart, a signature, a colour, a layout), expect_image compares pixels with a baseline image: yaml Copy - op: expect_image target: {automation_id: chartRevenue} # without a target: the app's top window image: revenue-chart.png # a file name in \u003cworkflow name\u003e.baselines/ next to the workflow tolerance: 0.01 # share of pixels that may differ (default 0.01, i.e. 1%) ignore: [[0, 0, 120, 24]] # regions [x, y, width, height] that change every run (a date, a clock) The first run with no baseline saves what it captured and passes; the report says so. Commit the baselines folder with the workflow. --update-baselines replaces them after an intended change. A pixel counts as different when a colour channel differs by more than 32 of 255, so anti-aliasing and ClearType do not fail a check. A different size (another screen scale or window size) fails with both sizes named. The report shows the baseline, what was captured, and the differences in red, with the share of pixels that differ ( images/NNN-baseline|actual|diff.png in the run folder). Image names are file names only (letters, digits, _ , - , ending .png ). A path, .. , or a link that leads out of the baselines folder is refused. Run visual checks on one machine with a fixed resolution and scale (see DESKTOP-CI.md )."},{"t":"Unattended runs","u":"docs/index.html#doc-docs-desktop-unattended-runs","g":"User guide · Desktop","h":[],"x":"Unattended runs Replay needs a signed-in, unlocked Windows session. Before it starts the app, it checks the session and fails at once with the reason if it is a Windows service (session 0), a locked screen, or a disconnected Remote Desktop session. forgeqe desktop doctor runs the same check. To run the suite every night on a machine of your own, see DESKTOP-CI.md : a runner set up in the user's session ( ci/desktop-runner/prepare-runner.ps1 ), a nightly workflow ( ci/desktop-runner/desktop-nightly.example.yml ), and --junit results."},{"t":"Updating UFO²","u":"docs/index.html#doc-docs-desktop-updating-ufo²","g":"User guide · Desktop","h":[],"x":"Updating UFO² UFO² is pinned to one commit. Moving it is checked before it is pinned: The ufo-update job of .github/workflows/ci.yml runs weekly, or by hand (Run workflow, job ufo-update ) with a commit. It sets up that UFO on Windows ( FORGEQE_UFO_COMMIT , which takes a full 40-character commit id only), runs the adapter tests against its real code and a scripted explore of Notepad, and says in the job summary whether it passed. When it passed: bun scripts/ufo-bump.ts \u003ccommit\u003e writes the new pin into src/desktop/setup.ts , py/forgeqe_desktop/ufo_runner.py and this page. Run the tests and push; the Windows CI job tests the pin again. When it fails, the failing step names what changed in UFO (usually the action executor or the config layout that the adapter wraps). Keep the pin until the adapter is updated for it."},{"t":"Checks of the outcome","u":"docs/index.html#doc-docs-desktop-checks-of-the-outcome","g":"User guide · Desktop","h":[],"x":"Checks of the outcome A recording of actions only proves the steps run. When UFO has finished, and before the app closes, explore shows the model the goal and the app's controls with the text each shows now, and the model picks up to three whose text proves the goal (a status message, a saved value), by number, with the part of the text to expect. A check is kept only when that text really is in that control, so the model can choose among what is on screen but never invent it; text holding a desktop.secrets value is never offered. The checks are saved as expect steps at the end of the workflow, and the report says how many there are. With none, the report and the agent say so: add expect steps by hand."},{"t":"Recording","u":"docs/index.html#doc-docs-desktop-recording","g":"User guide · Desktop","h":[],"x":"Recording UFO's own step log names the control and a per-step id, not its AutomationId, so the adapter wraps UFO's ActionExecutor.execute and records each action with the UIA properties of the control it acted on. record.py turns that trace into steps: click_input → click / double_click , set_edit_text → type , keyboard_input → keys (one allowed chord) or type , select → select . Coordinate clicks, scrolls and anything else are listed as not recorded in the report. A typed value equal to a desktop.secrets value is written as its placeholder; typed text that only looks like {{…}} is kept literal, so a model told to type {{secret:X}} cannot make replay type the secret."},{"t":"Security","u":"docs/index.html#doc-docs-desktop-security","g":"User guide · Desktop","h":[],"x":"Security The YAML, the trace, the app's screen text and the model's replies can all be written by someone else. The rules in the repository's CLAUDE.md apply; for this engine: No command in the workflow. app: names a desktop.apps entry: an absolute .exe (a .bat or .cmd would run through cmd.exe , which reparses its arguments) and an argument list, started with subprocess.Popen([path, *args]) . UFO gets UI tools only. Each explore writes UFO's mcp.yaml with UICollector , HostUIExecutor and AppUIExecutor . UFO's default CommandLineExecutor , which runs shell commands, and its Word, Excel, PowerPoint and PDF executors are left out. The adapter starts the app, so UFO never launches a program. Keys: during explore the adapter refuses UFO's Windows and menu keys too, and the report lists what it refused. No one at the console: UFO's safe guard asks before sensitive actions; explore answers no, since nobody is there. Environment: the engine process gets system settings, the profile's key variable (or Entra's) and desktop.secrets , nothing else ( desktopEnvNames ). Explore controls the real mouse and keyboard. It asks before starting ( --yes to skip; required with no terminal). Use a test machine or VM and a test account. Agent tools: a workflow path the agent gives must be a .yaml inside the working folder or the reports folder (real path, so a link out is refused); variables are names and text only; heals are reported, never written. Healing: the model picks one of the window's real controls by number; control text is passed as data, and any other answer heals nothing. Heals are written into the workflow only when accepted. Report: every value is escaped; images are only the engine's own steps/NNN.png and images/NNN-baseline|actual|diff.png . Baselines: expect_image names are file names, and their real path must be inside the workflow's baselines folder, so a workflow cannot read or overwrite another file. Unattended machines: prepare-runner.ps1 never handles a password; automatic sign-in uses Sysinternals Autologon, which stores it encrypted. Install: UFO is cloned and checked out at the pinned commit (or FORGEQE_UFO_COMMIT , a full commit id only), and the checkout's HEAD is verified; replay's packages are pinned to exact versions."},{"t":"Before first use on Windows","u":"docs/index.html#doc-docs-desktop-before-first-use-on-windows","g":"User guide · Desktop","h":[],"x":"Before first use on Windows Verified in CI: setup with and without --ufo , replay, healing, the CLI, and UFO's own code with the adapter (its config, its model calls routed to the profile, the action trace, UI tools only). Still to check, on a Windows test machine with your apps: UIA coverage: Inspect.exe shows the controls that matter with stable AutomationId s. Custom grids, Java (needs Java Access Bridge), Delphi, SAP GUI and Citrix (vision only) are where UIA falls short. Explore with your model: one goal with an Azure profile and one with auth: entra ; trace.json has the controls' AutomationIds, and ufo/ has UFO's logs. Replay: the recorded workflow passes 10 runs out of 10; a renamed control is healed. Cost and time of one explore, from forgeqe usage. Found by the Windows runs and fixed: UFO's pins need Python 3.10 (pandas 1.4.3); UFO prints emoji panels to stdout, which is the engine's event stream and crashed on the cp1252 console (now sent to stderr, characters replaced); an error in UFO's own evaluation lost the recorded actions (the trace is now kept and saved)."},{"t":"Next steps","u":"docs/index.html#doc-docs-desktop-next-steps","g":"User guide · Desktop","h":[],"x":"Next steps The checks above. forgeqe suite and test cases from Azure DevOps, Jira and Xray for desktop workflows, with results written back. Scribe: export a workflow as pywinauto code (or C# with FlaUI) in the user's repo. App adapters where UIA falls short: Java Access Bridge, SAP GUI scripting, vision-only for Citrix. A pipeline template for a self-hosted Windows runner signed in to a desktop session."},{"t":"Running desktop workflows unattended (nightly CI)","u":"docs/index.html#doc-docs-desktop-ci-running-desktop-workflows-unattended-nightly-ci","g":"User guide · Desktop","h":[],"x":"Running desktop workflows unattended (nightly CI) Desktop replay clicks and types into real windows. It needs what a person at the machine would have: a signed-in Windows session, unlocked, with a screen. GitHub's hosted windows-2022 runners have that, and ForgeQE's own CI runs Notepad there. Your own apps usually need a machine of your own, with the app installed, its test database, and a network route to its servers. This page sets one up as a GitHub Actions self-hosted runner. The same rules apply to Azure DevOps agents and Jenkins nodes."},{"t":"What breaks a desktop run, and how ForgeQE tells you","u":"docs/index.html#doc-docs-desktop-ci-what-breaks-a-desktop-run-and-how-forgeqe-tells-you","g":"User guide · Desktop","h":[],"x":"What breaks a desktop run, and how ForgeQE tells you Situation Effect Fix The runner is a Windows service Session 0 has no desktop; every control lookup times out Run the runner in the user's session (below) The screen is locked Windows sends no input to apps No inactivity lock, no screen-saver lock A Remote Desktop session was disconnected The session is locked Leave Remote Desktop with tscon (below), or don't use it on the test machine The machine slept or the screen turned off Input and screenshots stop Power plan: never sleep, never turn off the screen After a restart nobody signs in No session at all Sysinternals Autologon Before each replay or explore, the engine checks the session ( py/forgeqe_desktop/session.py ). On a session it cannot drive, the run fails at once with the reason, instead of timing out step by step. forgeqe desktop doctor runs the same check from a shell or a job: text Copy engine ready (C:\\Users\\qa\\.forgeqe\\desktop\\.venv\\Scripts\\python.exe) explore not set up (forgeqe desktop setup --ufo) session 1, screen 1920x1080 desktop logged in and unlocked It exits with 1 when the desktop cannot be driven, so a job stops before the suite runs."},{"t":"Set up the test machine","u":"docs/index.html#doc-docs-desktop-ci-set-up-the-test-machine","g":"User guide · Desktop","h":[],"x":"Set up the test machine Use a test machine or VM, and a test account: the runner's jobs control its mouse and keyboard. Sign in as the account the tests will run as. Install the runner (GitHub: Settings → Actions → Runners → New self-hosted runner). Give it the label forgeqe-desktop . When config.cmd asks whether to run as a service, answer no . Run ci/desktop-runner/prepare-runner.ps1 in an elevated PowerShell ( -WhatIf first to see the changes): powershell Copy .\\prepare-runner.ps1 -RunnerDir C:\\actions-runner -WhatIf .\\prepare-runner.ps1 -RunnerDir C:\\actions-runner It stops sleep, screen-off and the screen-saver lock. It turns the inactivity lock off and registers a logon task that starts run.cmd in this account's session. It warns you if the runner is also installed as a service. It never handles a password. Sign in automatically after a restart with Sysinternals Autologon , run as the test account. It stores the password encrypted by Windows. Never put the password in a script, a registry value you write yourself, or the repository. Fix the screen size. A visual check ( expect_image ) compares pixels, so the resolution and scale (100%, 125%) must match the machine where its baselines were saved. Set them once and leave them. Restart and check that the runner shows as idle on GitHub. Then run forgeqe desktop doctor from a job."},{"t":"Leaving Remote Desktop without locking the session","u":"docs/index.html#doc-docs-desktop-ci-leaving-remote-desktop-without-locking-the-session","g":"User guide · Desktop","h":[],"x":"Leaving Remote Desktop without locking the session Closing a Remote Desktop window disconnects the session, and Windows locks it. To leave it running instead, hand the session back to the machine's console. In an elevated prompt inside the Remote Desktop session: bat Copy for /f \"skip=1 tokens=3\" %s in ('query user %USERNAME%') do tscon %s /dest:console On a VM, the hypervisor's console (Hyper-V, VMware, VirtualBox) needs no such step."},{"t":"The nightly job","u":"docs/index.html#doc-docs-desktop-ci-the-nightly-job","g":"User guide · Desktop","h":[],"x":"The nightly job ci/desktop-runner/desktop-nightly.example.yml is a ready workflow. Copy it into .github/workflows/ in the repository that holds your desktop workflows. It: runs at night on [self-hosted, windows, forgeqe-desktop] , one run at a time; installs a pinned ForgeQE and runs forgeqe desktop setup and forgeqe desktop doctor ; replays every workflow in a folder: forgeqe desktop replay desktop-tests/ --junit results/desktop.xml ; keeps the reports, screenshots and image diffs as an artifact. --junit writes one test case per workflow (and per CSV row with --data ), which CI servers show as test results. runs.json in the output folder has the same, with the path of each report. Secrets the workflows type ( {{secret:NAME}} ) come from the CI's secret store as environment variables, and must be listed in desktop.secrets or the environment's secrets in env.yaml . Pick the environment with FORGEQE_ENV or --env . Healing calls the model. In a nightly run, either give the job the model's key so moved controls are healed and reported in heals.json (never written into the workflow without --accept-heals ), or pass --no-heal so a moved control fails the run."},{"t":"Mobile","u":"docs/index.html#area-mobile","g":"User guide","h":[],"x":"08 Mobile Android and iOS apps through Appium or Maestro: explore a goal, replay, run the team's flows"},{"t":"Automate Android and iOS apps","u":"docs/index.html#cap-mobile-apps","g":"User guide · Mobile","h":[],"x":"Mobile Automate Android and iOS apps Carries out a plain-language goal in an Android or iOS app through Appium and saves it as a mobile workflow with checks of the outcome; replays workflows with no model on Appium (healing a moved control) or Maestro; runs the team's own Maestro flows after checking them against an allowlist; uploads an app build to TestMu AI and saves its lt:// id as the app's build. Apps come from env.yaml (kind: mobile) or forgeqe.yaml mobile:. Ask it Sign in to the courier app and accept the first delivery, and save it as a test Replay the courier login on Maestro Run our Maestro flows in .maestro/ Upload builds/courier.apk to TestMu for the courier app What it needs Optional A live model profile in llms.json (an API key or Microsoft Entra ID sign-in) Required Mobile apps: env.yaml (kind: mobile) or mobile.apps in forgeqe.yaml You give an Appium server with a device or emulator (or a device cloud), or Maestro installed; the app in env.yaml or forgeqe.yaml mobile.apps Limits Explore runs on Appium only Maestro replays do not heal moved controls or compare images (expect_image) On TestMu AI, Maestro (through HyperExecute) refuses workflows that type secrets; replay those there with --driver appium Tools mobile_explore mobile_replay mobile_maestro mobile_upload In detail"},{"t":"Mobile apps (Android, iOS)","u":"docs/index.html#doc-how_to_use-mobile-apps-android-ios","g":"User guide · Mobile","h":[],"x":"Mobile apps (Android, iOS) ForgeQE drives Android and iOS apps two ways: through Appium , step by step (it can explore a goal with the model, and heals a control that moved), and through Maestro (fast replays, and your team's own Maestro flows). In the shell, ask for a goal in the app (\"sign in to the courier app and accept the first delivery\") and ForgeQE's agent explores it on your device or emulator and saves a workflow with checks of the outcome. The same from the command line: bash Copy forgeqe mobile doctor # does the Appium server answer, is maestro installed? forgeqe mobile explore \"Sign in and accept the first delivery\" --app courier forgeqe mobile replay \u003crun folder\u003e/workflow.yaml # on Appium (mobile.driver), healing moved controls forgeqe mobile replay workflow.yaml --driver maestro # the same workflow as a Maestro flow forgeqe mobile replay mobile-tests/ --junit results.xml # every workflow in a folder, results for CI forgeqe mobile maestro .maestro/ # your team's Maestro flows, checked first forgeqe mobile flow workflow.yaml \u003e login.flow.yaml # a workflow as a Maestro flow, to keep Apps come from env.yaml ( kind: mobile , platform: android or ios , app_id , and optionally activity and an app build to install) or mobile.apps in forgeqe.yaml. mobile.appium names the Appium server (default http://127.0.0.1:4723 , or a device cloud's hub with its user and key in environment variables), and {{secret:NAME}} reads only mobile.secrets (and the environment's secrets). A flow kept with forgeqe mobile flow reads each secret as ${MAESTRO_\u003cNAME\u003e} , never its value, so set MAESTRO_\u003cNAME\u003e when you run it outside ForgeQE; a workflow that types a secret not listed there is refused. Team Maestro flows run only with UI commands: scripts, JavaScript in ${…} , Maestro's AI commands and file writes are refused. Details: docs/MOBILE.md . On TestMu AI (formerly LambdaTest) Both drivers run on TestMu AI's devices. Upload the app build once, then use the lt:// id it prints as the app's app (in env.yaml or mobile.apps ; ForgeQE adds it to Appium's LT:Options itself): bash Copy forgeqe mobile upload courier.apk # prints lt://APP…, for TestMu's real devices forgeqe mobile upload courier.apk --virtual # for TestMu's emulators and simulators instead forgeqe mobile upload courier.apk --name courier-nightly # the name TestMu shows for the build The user name and access key come from LT_USERNAME and LT_ACCESS_KEY (or the variables username_env and access_key_env name), for example in a .env file in the project folder. They go only to the mobile engine, never to a flow or a model, and a user or key in the hub URL is refused. yaml Copy mobile: apps: courier: { platform: android, app_id: com.contoso.courier, app: \"lt://APP1016…\" } appium: # Appium on TestMu's mobile hub url: https://mobile-hub.lambdatest.com/wd/hub username_env: LT_USERNAME access_key_env: LT_ACCESS_KEY capabilities: \"LT:Options\": { w3c: true, isRealMobile: true, deviceName: \"Pixel 6\", platformVersion: \"14\" } maestro: testmu: # Maestro on TestMu, through HyperExecute cli: ./hyperexecute # TestMu's hyperexecute CLI devices: [\"Pixel 6-14\"] # name-version, or a pattern such as \".*-.*\" real_device: true # false: TestMu's emulators Appium needs nothing else: it talks to the hub with the user and key from the two variables. Maestro runs through HyperExecute. mobile.maestro.testmu names TestMu's hyperexecute CLI ( cli ), the devices to run on ( devices ), and real devices or emulators ( real_device ). ForgeQE writes a HyperExecute project in the run folder (the flows in their folder layout, so runFlow still works, the app, fixed setup and run scripts, and hyperexecute.yaml ) and starts the CLI. Team flows are checked against the allowlist first, as always. The access key is removed from the CLI's output and from every file in the run folder; the run prints the HyperExecute job link. Secrets: a workflow that types a secret is refused on Maestro on TestMu (HyperExecute would need the value in its own vault). Replay it on TestMu with --driver appium instead. Maestro on TestMu runs Android apps; run iOS apps there through Appium. In the shell, ask in words: \"upload builds/courier.apk to TestMu for the courier app\". After you agree, ForgeQE uploads it and writes the lt:// id into that app's app: in forgeqe.yaml (an app from env.yaml gets the id to set there). The build must be inside the working folder; hidden folders and files named like credentials are refused. samples/mobile-testmu is a ready project with TestMu's Wikipedia sample app: copy .env.example to .env , upload the app with forgeqe mobile upload sample.apk , put the id in its forgeqe.yaml , download the hyperexecute CLI into the folder, then run forgeqe mobile replay wiki.yaml --driver appium , --driver maestro , and forgeqe mobile maestro .maestro . Details: docs/MOBILE.md ."},{"t":"ForgeQE mobile: Android and iOS apps","u":"docs/index.html#doc-docs-mobile-forgeqe-mobile-android-and-ios-apps","g":"User guide · Mobile","h":[],"x":"ForgeQE mobile: Android and iOS apps Status: the engine and its tests run on any OS, against a fake Appium server and a stand-in for Maestro. The CI job The android job of .github/workflows/ci.yml runs it on an Android emulator: Appium explores and replays the emulator's Settings app, and Maestro replays the same workflow. iOS runs the same code with the XCUITest driver, but no CI job tests it yet (it needs a macOS runner with a simulator). ForgeQE drives mobile apps two ways, and one workflow format runs on both: Appium Maestro Runs step by step, through an Appium server (yours or a device cloud's) the whole workflow as one Maestro flow Explore a goal with the model yes no Heal a control that moved yes, one model call, reported for review no Visual checks ( expect_image ) yes no Your team's own flows n/a forgeqe mobile maestro , checked against an allowlist Needs appium with UiAutomator2 (Android) or XCUITest (iOS), a device or emulator maestro and a device or emulator"},{"t":"Use","u":"docs/index.html#doc-docs-mobile-use","g":"User guide · Mobile","h":[],"x":"Use bash Copy forgeqe mobile doctor # does the Appium server answer, is maestro installed? (or, with # mobile.maestro.testmu: is the hyperexecute CLI there, are the user and key set?) forgeqe mobile apps # the mobile apps of the active environment forgeqe mobile devices --like \"Pixel 8-14\" # the devices TestMu or BrowserStack has, most like one first forgeqe mobile explore \"Sign in as the courier and accept the first delivery\" --app courier forgeqe mobile replay .forgeqe/reports/mobile-explore-…/workflow.yaml forgeqe mobile replay workflow.yaml --driver maestro forgeqe mobile replay mobile-tests/ --data couriers.csv --junit results.xml forgeqe mobile maestro .maestro/ # the team's flows forgeqe mobile flow workflow.yaml # print a workflow as a Maestro flow forgeqe mobile validate workflow.yaml Or ask ForgeQE's agent in the shell or forgeqe run : \"sign in to the courier app and save it as a test\", \"replay the courier login on Maestro\", \"run our Maestro flows\". Its tools are mobile_explore , mobile_replay and mobile_maestro . It asks before each one starts, and desktop_edit_workflow fixes a mobile workflow after a failed replay, the same way as a desktop one."},{"t":"Apps and settings","u":"docs/index.html#doc-docs-mobile-apps-and-settings","g":"User guide · Mobile","h":[],"x":"Apps and settings Mobile apps come from the active environment in env.yaml, or from mobile.apps in forgeqe.yaml: yaml Copy # env.yaml environments: qa: apps: courier: kind: mobile platform: android # or ios app_id: com.contoso.courier # Android package or iOS bundle id activity: .MainActivity # Android only, optional app: /builds/courier-qa.apk # optional: install this build (.apk/.aab/.ipa/.app/.zip, https URL, bs://…) description: Driver app that confirms delivery secrets: [COURIER_PASSWORD_QA] yaml Copy # forgeqe.yaml mobile: driver: appium # appium | maestro: the default for replays appium: url: http://127.0.0.1:4723 capabilities: # added to every session appium:udid: emulator-5554 # username_env: BROWSERSTACK_USERNAME # access_key_env: BROWSERSTACK_ACCESS_KEY maestro: command: [maestro] # device: emulator-5554 secrets: [COURIER_PASSWORD] heal: true screenshots: true Each run writes a folder under the reports folder ( mobile-explore-… , mobile-replay-… , mobile-maestro-… ) with run.json , report.html , step screenshots, and for Maestro runs the flow, maestro.log and Maestro's JUnit report."},{"t":"Workflow YAML ( forgeqe-mobile-v1 )","u":"docs/index.html#doc-docs-mobile-workflow-yaml-forgeqe-mobile-v1","g":"User guide · Mobile","h":[],"x":"Workflow YAML ( forgeqe-mobile-v1 ) yaml Copy format: forgeqe-mobile-v1 name: Courier signs in app: courier timeout: 20 dismiss: - {name: Allow, control_type: android.widget.Button} # permission dialogs, when they are in the way steps: - op: launch - op: type target: {automation_id: username} text: \"{{courier}}\" - op: type target: {automation_id: password} text: \"{{secret:COURIER_PASSWORD}}\" - op: tap target: {name: Sign in} - op: wait_for target: {automation_id: progress} gone: true - op: scroll_to target: {name: Deliveries} - op: expect target: {automation_id: status} text: Welcome Ops: launch , tap , double_tap , long_press , type , expect , expect_image , swipe ( direction up, down, left or right, optionally on a target ), scroll_to (scrolls until the target is on screen), back , hide_keyboard , keys ( enter , back , tab , delete , search ), wait , wait_for , close . Timeouts, retries and dismiss work as in desktop workflows. Explore saves a tap on a system dialog (another package's control, such as Android's notification prompt) under dismiss , not as a step, so the workflow still runs where the dialog never shows; on Maestro, each dismiss target is tapped after a launch if it is there. Targets use the desktop keys, mapped per platform: automation_id is the Android resource-id (with or without the package:id/ prefix) or the iOS accessibility identifier; name is the Android text or content-desc, or the iOS label; control_type is the Android class ( android.widget.Button ) or the iOS type ( XCUIElementTypeButton ); index picks one of several matches."},{"t":"Explore","u":"docs/index.html#doc-docs-mobile-explore","g":"User guide · Mobile","h":[],"x":"Explore The model sees the goal, its steps so far, the numbered controls on screen with the text each shows, and a screenshot when the profile takes images. It answers with one action on a control by its number (tap, long press, type), a swipe or scroll, back, or done. So it can only act on a control that is on screen. When it says done, it picks checks of the outcome from the controls' current text, kept only when that text is really there, as on the desktop. The app's text is passed as data."},{"t":"Maestro","u":"docs/index.html#doc-docs-mobile-maestro","g":"User guide · Mobile","h":[],"x":"Maestro ForgeQE workflows on Maestro. --driver maestro writes the workflow as a Maestro flow ( flow.yaml in the run folder) and runs maestro test . Maestro's debug output gives each workflow step its result. Variables are filled in first. Values are matched literally, so Maestro's regular expressions never see them as patterns. A secret becomes ${MAESTRO_NAME} , which Maestro reads from the environment ForgeQE gives it, so a secret's value never lands in the flow file or on a command line. A value holding ${…} is refused, because Maestro would run it as JavaScript. Your team's flows. forgeqe mobile maestro \u003cfiles or folders\u003e checks each flow, and every flow it runs, before Maestro gets it: Only UI commands pass: launchApp , tapOn , inputText , assertVisible , scrollUntilVisible , swipe , extendedWaitUntil , runFlow , repeat , retry and the like. These are refused: runScript , evalScript and assertTrue , which run JavaScript. Maestro's AI commands, which send screenshots to a service. takeScreenshot , recordings and addMedia , which read or write files. ${…} may only name a variable ( ${USERNAME} ), never an expression. when: {true: …} is refused, because it is JavaScript. openLink takes http(s) or the app's own deep links, never javascript: , file: or intent: . runFlow files must be .yaml inside the working folder; links out of it are refused too. Nesting stops at 5 levels. A refused flow does not run, and the error names the command."},{"t":"TestMu AI (formerly LambdaTest)","u":"docs/index.html#doc-docs-mobile-testmu-ai-formerly-lambdatest","g":"User guide · Mobile","h":[],"x":"TestMu AI (formerly LambdaTest) Both drivers run on TestMu's devices. Upload the app once, then use the lt:// id it returns as the app's app : bash Copy forgeqe mobile upload courier.apk # → lt://APP… (--virtual for TestMu's emulators) From the shell, ask in words (\"upload builds/courier.apk to TestMu for courier\"): mobile_upload asks first, uploads the build (it must be inside the working folder), and saves the lt:// id as that app's app: in forgeqe.yaml. The user and key come from LT_USERNAME and LT_ACCESS_KEY (or the variables the config names), for example in a .env file in the project folder. samples/mobile-testmu/ is a ready project with TestMu's Wikipedia sample app. yaml Copy mobile: apps: courier: { platform: android, app_id: com.contoso.courier, app: \"lt://APP1016…\" } appium: # Appium on TestMu's mobile hub url: https://mobile-hub.lambdatest.com/wd/hub username_env: LT_USERNAME access_key_env: LT_ACCESS_KEY capabilities: \"LT:Options\": { w3c: true, isRealMobile: true, deviceName: \"Pixel 8\", platformVersion: \"14\", build: nightly } # app: added from the app's own maestro: testmu: # Maestro on TestMu, through HyperExecute cli: /opt/hyperexecute # TestMu's hyperexecute CLI devices: [\"Pixel 8-14\"] # name-version, or a pattern such as \".*-.*\" real_device: true # false: TestMu's emulators # username_env: LT_USERNAME # the defaults # access_key_env: LT_ACCESS_KEY Appium needs nothing else: the Appium driver talks to the hub with the user and key from the two variables. Maestro runs through HyperExecute. ForgeQE writes a HyperExecute project in the run folder and starts the CLI. The project holds the flows in their folder layout (so runFlow still works), the app (an lt:// id is passed as the device's appId ; a build file is uploaded with the project), a fixed setup script (Android platform tools 35.0.2 and Maestro 2.6.1 from its release, both checked against their SHA-256) and a fixed run script, and hyperexecute.yaml . Team flows are checked against the allowlist first, as always. Flow file names may only use letters, digits and _ . - / , because HyperExecute's shell reads them, and no folder or file may be hidden except a top-level .maestro/ (hidden files of the working folder never leave the machine). After the job, ForgeQE downloads its artifacts (Maestro's command results and JUnit reports), so each step gets its own result in the report. A job on several devices (more than one entry in devices , or a pattern) brings back one run per device: the steps show the first device that failed, or the first device when all passed, and the job's page has each one. The job's link is printed from either hyperexecute.lambdatest.com or hyperexecute.testmu.ai . Devices are checked first. On TestMu (Appium or Maestro) and BrowserStack (Appium), replay , maestro and explore read the cloud's device list before they start (TestMu's list for the region, BrowserStack's devices.json ) and check each configured device, exact or a pattern. A device the cloud does not have would wait in its queue and time out ( QUEUE_TIMEOUT_DEVICE_UNAVAILABLE ), so ForgeQE offers the devices most like it instead: the same model on other OS versions, then the same family. In a terminal you pick one for this run; without one it stops and names them. --device \"Pixel 8-13\" runs on another device this time (several, comma-separated, for Maestro), --no-device-check skips the check, and forgeqe mobile devices lists what the cloud has. The list says what a cloud offers in the region, not whether a device is free this minute. TestMu's emulators ( real_device: false , isRealMobile: false ) are not in it and are not checked. Videos. TestMu records each Maestro flow as an App Automation session (its dashboard, not the HyperExecute job page, shows the video). Each run is its own build there, and after the job ForgeQE saves each flow's recording as videos/\u003cflow\u003e.mp4 in the run folder, plays it in the report's Artifacts tab, and prints it with the session's TestMu page. A video TestMu has not finished is waited for briefly; a run never fails for want of one. Secrets on Maestro on TestMu: a workflow that types a secret is refused there for now (HyperExecute would need the value in its own vault). Replay it on TestMu with --driver appium . For the same reason, a team flow that reads a ${NAME} variable its own env: blocks do not set is refused on TestMu (locally it could come from the environment); run it with a local maestro . The access key is passed to the CLI as an argument. It is removed from the CLI's output and from every file in the run folder. Neither the user name nor the key is passed to the flows' environment. maestro and the hyperexecute CLI are started without ForgeQE's own secrets (the model's key, service tokens) in their environment; only the mobile engine itself holds them. The testmu job of .github/workflows/ci.yml (Run workflow, job testmu ) runs all three on TestMu (Appium, Maestro with a workflow, a team flow) with TestMu's Wikipedia sample app, once the repository has the secrets LT_USERNAME and LT_ACCESS_KEY ."},{"t":"Security","u":"docs/index.html#doc-docs-mobile-security","g":"User guide · Mobile","h":[],"x":"Security No commands from the workflow or the model. app: names a configured app (a platform and an id). Appium is spoken to over HTTP, and maestro is started with an argument list, never a shell. Locators go into XPath as quoted literals, so a target cannot change the query. Secrets: {{secret:NAME}} reads only mobile.secrets and the environment's secrets, and ForgeQE's own keys are refused there. Explore types a secret from its placeholder, so the model never sees the value. The engine's environment holds system settings, the profile's key, the listed secrets, the cloud's user and key, and JAVA_HOME / ANDROID_HOME , nothing else. Cloud credentials come from the variables mobile.appium.username_env and access_key_env name; a user or key in the URL is refused. TLS is verified as usual. App builds are absolute paths to an app file, https URLs, or a device cloud's own upload ids ( bs:// , lt:// , storage:filename= ); file:// and other schemes are refused."},{"t":"Operations","u":"docs/index.html#area-operations","g":"User guide","h":[],"x":"09 Operations Monitoring and CI pipelines"},{"t":"Services, mocks, workspace and browser in Docker or Podman","u":"docs/index.html#cap-containers","g":"User guide · Operations","h":[],"x":"Operations Services, mocks, workspace and browser in Docker or Podman Starts the services a test run needs (a database, a queue, the API under test) in Docker or Podman, as forgeqe.yaml declares them, and waits until each is ready; stops them, and shows their status and logs. Starts mocks of an API on WireMock, from the calls a browser run recorded or from an OpenAPI description, and can point an API app of the environment at the mock for the session. With containers.workspace, the coding agents' shell commands (build, restore, run) and every test ForgeQE runs go to a container of the project's image; with browser.provider docker, the browser agent, the replay and the coding agent's live browser use Chromium in a container. Ask it Start the database and the queue in Docker Start the services from our docker-compose file Mock the payments API from the last run Create a mock service from openapi.yaml and point order-api at it Show the logs of the db container What it needs Required Docker or Podman on PATH; the services to start in containers.services in forgeqe.yaml (mocks need none) Limits Starts only services declared in forgeqe.yaml containers.services; it never runs an image, flag or mount from a request No privileged containers, host network, or access to the container runtime's socket; ports on 127.0.0.1 only; mounts read-only from inside the project Mocks answer REST calls (WireMock); GraphQL, SOAP and gRPC are not mocked Reads docker-compose files only for their services' image, ports, environment, bind mounts, command and depends_on; refuses build, privileged, network_mode, cap_add, devices and env_file; leaves named volumes out The workspace mounts the repository with its credential files (.env, .npmrc, keys) covered; the agents and the model key stay on this machine; ForgeQE's own agent keeps this machine's shell A browser in a container reaches this machine's apps as host.docker.internal, not localhost; it is headless, or visible on a virtual display, never on this screen Tools services mock_service In detail"},{"t":"Containers and mock services","u":"docs/index.html#doc-how_to_use-containers-and-mock-services","g":"User guide · Operations","h":[],"x":"Containers and mock services When Docker or Podman is installed, ForgeQE can start the services a test run needs, and mock an API the tests should not call. Ask in the shell: \"start the database and the queue\", \"mock the payments API from the last run\", \"make a mock from openapi.yaml and point order-api at it\", \"show the db logs\". Full reference: docs/CONTAINERS.md . The project declares its services in forgeqe.yaml. ForgeQE starts only these, and builds each command itself: yaml Copy containers: # runtime: podman # default: docker, else podman, on PATH services: db: image: postgres:16.4 # an exact version or a digest; never latest ports: [5432] # or \"15432:5432\" (this machine:container); always 127.0.0.1 env: { POSTGRES_DB: shop, POSTGRES_USER: shop } secrets: [POSTGRES_PASSWORD] # names of environment variables (.env works), passed by name volumes: [\"./db/init:/docker-entrypoint-initdb.d\"] # read-only, inside the project ready: { tcp: 5432 } # or { http: /health, port: 8080 } timeout: 90 bash Copy forgeqe services # declared services, what runs, whether Docker answers forgeqe services up db # start and wait until ready; keeps running after the command forgeqe services logs db --lines 50 forgeqe services down # stop this project's containers, mocks included Mocks: mock_service builds WireMock stubs. From a run, they answer what the app really got. From an OpenAPI or Swagger description, or a contract set, they answer with its examples, or values made from its schemas. The mock runs on a free port of 127.0.0.1 ( wiremock/wiremock:3.9.1 , or containers.mock.image ), and its stubs are in .forgeqe/mocks/\u003cname\u003e/mappings . With for_app , an API app of the active environment points at the mock for the rest of the session, so API tests and the tests ForgeQE runs ( FORGEQE_APP_\u003cAPP\u003e_URL ) use it. Session: what the agent starts (services or mocks) stops when the shell, forgeqe run , or forgeqe mcp ends. forgeqe services up keeps its services running until forgeqe services down . Asked first: services up and mock_service ask before they start anything. Guard rails: Fixed run settings: every container gets no new privileges, a process limit, ports on 127.0.0.1, read-only mounts, and labels with the project, so ForgeQE stops only its own containers. Refused service settings: privileged , network , cap_add , devices , user , and anything else that is not a service setting. Also refused: a port bound to another address, an image without an exact version, and a secret that is one of ForgeQE's own keys. Mounts: inside the project only. A mount that is or holds a hidden file ( .env , .git ), a file named like a key, or a link is refused, because a container can send what it reads anywhere. The docker, podman and compose programs only see the variables they need to find their daemon, plus the service's listed secrets. Not in the agents' shell: docker , podman , nerdctl and compose commands are refused for ForgeQE's agent and Scribe. Containers start only through these tools. Compose files. containers.compose: docker-compose.yml reads the file's services into the same list, checked by the same rules (forgeqe.yaml's own declaration of a service wins): Translated: image , ports , environment , bind mounts, command and depends_on . A ${NAME} value becomes a secret passed by name. Left out: named volumes. Mounts made read-only are listed in the notes. Ignored: container_name , restart , healthcheck and networks . Refused: build , privileged , network_mode , cap_add , devices , pid and env_file . x-forgeqe: { ready: … } sets the ready check. Without it, a service is ready when its first port takes connections. The project's containers share their own network, so services reach each other by name ( db:5432 ). Docker as the workspace and the browser. Two settings move the rest of the work into containers: yaml Copy browser: provider: docker # the browser agent, the replay and Scribe's live browser use Chromium in a container containers: workspace: # Scribe's shell commands and every test ForgeQE runs use this image image: mcr.microsoft.com/playwright/dotnet:v1.63.0-noble env: { NEXUS_ENVIRONMENT: CI } browser: # optional headless: false # visible on a virtual display inside the container (some sites refuse headless) Workspace: Scribe builds, restores, runs and fixes tests in a Linux container of the project's image, with the repository at the same path. Each test run gets its own container from that image, and HOME is a volume of the project's, so package caches outlive the session. The agents and the model key stay on this machine, and ForgeQE's own agent keeps this machine's shell. .env , keys and other credential files in the repository are covered inside the containers. Browser: each browser run gets a fresh container, reached through a gateway that wants a random token. A declared service is reached by its name; an app on this machine is host.docker.internal , not localhost . --browser-provider docker picks it for one run. FORGEQE_HOST_RUN=1 runs Scribe's commands and the tests on this machine for a session. Tests in a container. With containers.tests , run_tests runs the repository's tests in that image instead of on this machine, after starting the services it lists: yaml Copy containers: tests: image: mcr.microsoft.com/playwright:v1.48.2-jammy services: [db] secrets: [TEST_DB_PASSWORD] What runs: the command you confirmed, inside the container, in the repository (mounted at its own path, so the result files land where ForgeQE reads them). User: your user. Variables: only the environment's FORGEQE_* variables, the saved logins' variables, and the listed env and secrets. To run on this machine instead: ask to run the tests on this machine ( in_container: false ). Machines: Linux and macOS. Testcontainers. When a test needs a real database or queue, or the repository already uses Testcontainers, Scribe's testcontainers skill writes the test to start it from code. It reuses the repository's fixtures, pins ima"},{"t":"ForgeQE containers: services and mocks in Docker or Podman","u":"docs/index.html#doc-docs-containers-forgeqe-containers-services-and-mocks-in-docker-or-podman","g":"User guide · Operations","h":[],"x":"ForgeQE containers: services and mocks in Docker or Podman Status: the tests run against a fake runtime on any OS. They check the commands ForgeQE builds, the checks on config, compose files, mounts and secrets, the mock stubs, and tests in a container. tests/containers.live.test.ts runs on real Docker (and is skipped without it): Postgres from forgeqe.yaml and from a compose file. A WireMock mock that answers a recorded run's calls. A tests container that reaches the database by name and writes its results into the repository as this machine's user. The containers job of .github/workflows/ci.yml runs both on GitHub's Docker. There, a skipped live test fails the job. ForgeQE uses Docker or Podman, when one is installed, for five jobs: Services a test run needs: a database, a queue, a cache, or the API under test. The project declares them in forgeqe.yaml, or in a docker-compose file that forgeqe.yaml names. Mocks of an API: WireMock stubs made from the calls a browser run recorded, or from an OpenAPI description, so the tests can run without the real service. The repository's tests in a container: run_tests runs the command the user confirmed in an image, instead of on this machine, after starting the services the tests need. A workspace for the coding agents: with containers.workspace , Scribe's shell commands (build, restore, run, git) and every test ForgeQE runs for it go to a container of the project's image. The agents stay on this machine. A browser in a container: with browser.provider: docker , the browser agent, the replay and Scribe's live browser drive Chromium in a container of Microsoft's Playwright image. Scribe also has a testcontainers skill, for tests that start their own services from code (below). ForgeQE's agent uses them through two tools, services and mock_service . The CLI has forgeqe services . When neither Docker nor Podman is on PATH, the agent isn't offered these tools."},{"t":"Use","u":"docs/index.html#doc-docs-containers-use","g":"User guide · Operations","h":[],"x":"Use bash Copy forgeqe services # the declared services, what runs, whether the runtime answers forgeqe services up # start every declared service and wait until each is ready forgeqe services up db queue # just these forgeqe services logs db --lines 50 # last lines, secrets removed forgeqe services down # stop and remove this project's containers (mocks included) In the shell or forgeqe run , you can ask, for example: \"start the database\" \"is the queue up?\" \"mock the payments API from the last run\" \"make a mock service from openapi.yaml and point order-api at it\" \"stop the services\" The agent asks before it starts anything."},{"t":"Declaring services","u":"docs/index.html#doc-docs-containers-declaring-services","g":"User guide · Operations","h":[],"x":"Declaring services yaml Copy # forgeqe.yaml containers: runtime: docker # docker | podman; default: docker, else podman, on PATH services: db: description: Orders database for the API tests image: postgres:16.4 # an exact version, or name@sha256:\u003cdigest\u003e ports: [5432] # 127.0.0.1:5432 -\u003e 5432; \"15432:5432\" maps another port of this machine env: # plain values only POSTGRES_DB: shop POSTGRES_USER: shop secrets: [POSTGRES_PASSWORD] # environment variable names; their values come from the environment or .env volumes: - ./db/init:/docker-entrypoint-initdb.d # read-only; a folder or file inside the project command: [\"-c\", \"log_statement=all\"] # arguments for the image's entrypoint ready: { tcp: 5432 } # or { http: /health, port: 8080 }; without it: the container runs timeout: 90 # seconds to wait until ready (default 60) queue: image: rabbitmq:3.13.7-management ports: [5672, 15672] ready: { http: /, port: 15672 } mock: image: wiremock/wiremock:3.9.1 # the default Setting Rule Service name Lower-case letters, digits and - , starting with a letter. Names starting with mock- are kept for mocks. image Must have an exact tag or a digest. An untagged image or latest is refused, because it changes under the same name. ports Always bound to 127.0.0.1. An address such as 0.0.0.0:5432:5432 is refused. env Plain values on one line. Secrets go under secrets . secrets Variable names. They are passed to the runtime by name ( --env NAME ), so the value is never on a command line. One of ForgeQE's own keys (a model key, a tracker token) is refused. volumes Always read-only. Must be inside the folder of forgeqe.yaml, and can't be the whole folder. command A list of arguments, never one command string. depends_on Services to start first. Anything else Refused with an error, not ignored. That includes privileged , network , cap_add , devices , user , pid and the socket. Every service, whether from forgeqe.yaml or a compose file, can list depends_on . up starts a service after the ones it depends on; a circle is refused."},{"t":"Compose files","u":"docs/index.html#doc-docs-containers-compose-files","g":"User guide · Operations","h":[],"x":"Compose files yaml Copy containers: compose: docker-compose.yml # or a list; inside the project ForgeQE reads each service of the file and translates it into a forgeqe.yaml service. The same rules then check it, and a service declared in forgeqe.yaml wins over the compose file's service of the same name. Compose itself never runs. Compose ForgeQE image Required; an exact version or a digest. build is refused: build and tag the image first. ports \"5432\" , \"15432:5432\" , \"127.0.0.1:15432:5432\" , or the long form; always bound to 127.0.0.1. Any other address, and UDP, are refused. environment Plain values are passed as they are. KEY: ${KEY} , KEY alone in the list form, and KEY: ${KEY:-default} pass the variable by name as a secret. ${OTHER} under another name, and values that mix text and ${…} , are refused. volumes Bind mounts ( ./db/init:/docker-entrypoint-initdb.d ) are mounted read-only, and :rw is noted. Named and anonymous volumes are left out, so the container keeps no data between runs. A path outside the project is refused when the service starts. command A list, or a string split into arguments (compose uses no shell, and neither does ForgeQE). depends_on List or map form: the start order. condition is not used; ForgeQE waits until each service is ready. x-forgeqe ready , timeout , description , as in forgeqe.yaml. Without ready , a service with ports is ready when its first port takes connections. container_name , restart , labels , healthcheck , networks , expose , deploy , profiles , … Ignored: ForgeQE names, labels and networks the containers itself. privileged , network_mode , cap_add , devices , pid , ipc , user , security_opt , volumes_from , env_file , entrypoint , extends , … Refused, and the error names the setting. What was left out (a named volume, a mount made read-only) is listed in notes ."},{"t":"The project network","u":"docs/index.html#doc-docs-containers-the-project-network","g":"User guide · Operations","h":[],"x":"The project network Each project's containers join their own network, forgeqe-\u003cproject\u003e , under their service name. So the API container reaches the database as db:5432 , and the tests container reaches both. No other container joins the network, and no container is on the host's network. forgeqe services down with no names also removes the network."},{"t":"Tests in a container","u":"docs/index.html#doc-docs-containers-tests-in-a-container","g":"User guide · Operations","h":[],"x":"Tests in a container yaml Copy containers: tests: image: mcr.microsoft.com/playwright:v1.48.2-jammy # an exact version; the tests' toolchain services: [db, order-api] # started first (when not running yet); the tests reach them by name env: { DB_HOST: db } secrets: [TEST_DB_PASSWORD] With containers.tests set, run_tests runs the tests in that image unless it is called with in_container: false . Its confirmation says where the tests will run. The container: Runs the command the user confirmed with the image's own shell, sh -c \"\u003ccommand\u003e\" , inside the container, never on this machine. Mounts the repository read-write at its own path and works in it, so results land where ForgeQE reads them. On this machine, the tests already have the whole disk. A folder outside the repository that the results go to is mounted the same way. Runs as this machine's user ( --user uid:gid ), so files it writes are yours. It also gets --security-opt no-new-privileges , --pids-limit 4096 and --rm , and it is removed by name when the run ends or is stopped. Gets only these variables: CI=1 , NO_COLOR , HOME=/tmp , the environment's FORGEQE_ACTIVE_ENV , FORGEQE_APP_* and FORGEQE_VAR_* , the saved logins' variables, and containers.tests env and secrets . Secrets are passed by name. ForgeQE's own keys are never passed. Has secret values removed from its output , as on this machine. This needs a Linux or macOS machine, because the repository is mounted at its own path."},{"t":"The workspace","u":"docs/index.html#doc-docs-containers-the-workspace","g":"User guide · Operations","h":[],"x":"The workspace yaml Copy containers: workspace: image: mcr.microsoft.com/playwright/dotnet:v1.63.0-noble # an exact version; the project's toolchain services: [db] # started first; reached by name env: { NEXUS_ENVIRONMENT: CI, DOTNET_ROLL_FORWARD: Major } secrets: [TEST_DB_PASSWORD] # by name; values from the environment or .env With containers.workspace set: Scribe's shell runs in the container. The agent runtime runs each command as $SHELL -c \u003ccommand\u003e . ForgeQE sets SHELL to a script that runs the same command with docker exec … sh -c \u003ccommand\u003e , in the same folder, in the workspace container. A folder outside the repository is refused, since the container has only the repository. The agent is told its commands run in a Linux container of that image. Every test ForgeQE runs goes to the same image: the coding loop's runs, heal , suite 's existing tests and run_tests . Each run gets its own container ( docker run --rm ), so stopping a run removes it. Browsers the test starts are found with docker top , as ForgeQE finds them on this machine. What stays on this machine: the agent runtime, the model key, ForgeQE's other secrets, the file tools (read, edit, write; the repository is the same folder in both places), and ForgeQE's own agent, which works with you on this machine and keeps its shell here. FORGEQE_HOST_RUN=1 runs everything on this machine for a session. The container: one per ForgeQE process and project, forgeqe-\u003cproject\u003e-workspace-\u003cid\u003e , removed when ForgeQE ends; the repository mounted read-write at its own path; credential files in it ( .env , .env.* except templates, .npmrc , .netrc , *.pem , *.key , id_* keys) covered with an empty read-only file, and .ssh , .aws , .azure , .docker , .kube and .forgeqe/sessions with an empty folder; HOME on the project's volume forgeqe-\u003cproject\u003e-home , so NuGet, npm and pip caches outlive the session. Docker creates the volume for root, so ForgeQE runs chown in it once, with a fixed command; this machine's user ( --user uid:gid ), no-new-privileges , --pids-limit 4096 , the project network; only CI=1 , HOME , the env and secrets listed, and, in each command, the environment's FORGEQE_APP_* and FORGEQE_VAR_* and the saved logins' variables, by name. containers.tests still names the image run_tests uses when it is set. Without it, run_tests uses the workspace's image. This needs a Linux or macOS machine, as tests in a container do."},{"t":"The browser in a container","u":"docs/index.html#doc-docs-containers-the-browser-in-a-container","g":"User guide · Operations","h":[],"x":"The browser in a container yaml Copy browser: provider: docker # or per run: --browser-provider docker containers: browser: # optional image: mcr.microsoft.com/playwright:v1.63.0-noble # default; needs Node.js and /ms-playwright headless: false # default: browser.headless; a visible browser runs on a virtual display (Xvfb) One container per use: each browser run (a suite runs suite.parallel at once) gets its own, and a coding job gets one that its replay and live browser share. Each is removed when its run or job ends. Connection: Chromium listens on 127.0.0.1 inside the container. CDP has no authentication of its own, so a small gateway in front of it ( BROWSER_SERVER in src/containers/browser.ts , run with the image's Node.js) accepts a connection only with a random 48-character token in its path, compared in constant time, and refuses a browser Origin that is not local. The port is published on 127.0.0.1 only. The token reaches the engine, the replay and the live browser's MCP server through the environment, never a file or a command line. Visible or headless: a visible browser runs on Xvfb inside the container. Sites that turn headless browsers away see an ordinary one, but you do not see it on your screen. Runs keep screenshots and traces as usual. Reaching the app: the container joins the project network, so a declared service is reached by its name ( http://order-api:8080 ). An app this machine serves is http://host.docker.internal:\u003cport\u003e ; localhost is the container itself, and ForgeQE warns when a run starts there. Replay: one pass, in a new browser context. The second pass (without Playwright's automation switches) needs a launch, which a running browser does not have. A run explored in a container is replayed in one even when the provider is changed back later ( run.json )."},{"t":"Testcontainers (Scribe)","u":"docs/index.html#doc-docs-containers-testcontainers-scribe","g":"User guide · Operations","h":[],"x":"Testcontainers (Scribe) When a test needs a real service, or the repository already uses Testcontainers (Java, .NET, Node, Python, Go), Scribe loads the testcontainers skill. It reuses the repository's containers and fixtures, pins images, waits for readiness, uses the mapped port, and sets the app's own configuration from it. It never uses privileged mode, the host network, the Docker socket, or a docker command from a test. These containers belong to the tests in the repository: the tests start and stop them, wherever they run."},{"t":"Mocks","u":"docs/index.html#doc-docs-containers-mocks","g":"User guide · Operations","h":[],"x":"Mocks mock_service builds WireMock stubs and runs WireMock on a free port of 127.0.0.1: From a run (the default: the latest run, or run_dir ): One stub per method, path and query of the app's own API calls, answering with the last status, content type and body the app got. Other sites' calls are left out unless third_party is set. Failed calls are left out. Answers that were cut when recorded are listed under skipped . From a description ( spec : OpenAPI 3 or Swagger 2, a link or a file): One stub per REST operation. Each stub answers with the operation's first success status and a body from the schema's examples, or values made from its types. A path parameter ( /orders/{id} ) matches any one path segment. Instead of a description, you can give a contract set from api_contracts ( set_id ). GraphQL, SOAP and gRPC are listed under skipped , not mocked. A spec given as a link is fetched by ForgeQE itself, with no credentials, as api_contracts does. The stubs are written to .forgeqe/mocks/\u003cname\u003e/mappings/ . You can read and edit them there. The folder is mounted read-only at /home/wiremock/mappings . WireMock runs with --enable-stub-cors , so a web app on another local port can call it. With for_app: \u003capi app\u003e , the active environment's API app points at the mock for the rest of the session. That covers the API tools, and the tests ForgeQE runs, which read FORGEQE_APP_\u003cAPP\u003e_URL . env.yaml itself is not changed."},{"t":"Lifetime","u":"docs/index.html#doc-docs-containers-lifetime","g":"User guide · Operations","h":[],"x":"Lifetime Services and mocks the agent starts are removed when the shell, forgeqe run , or forgeqe mcp ends, as are the workspace and browser containers ( forgeqe.kind workspace and browser ). The home volume stays. forgeqe services up keeps its services running after the command ends, until forgeqe services down . Container names are forgeqe-\u003cproject\u003e-\u003cservice\u003e . \u003cproject\u003e is a hash of the project folder, so two projects never share a container. Starting a service replaces its earlier container. Removing a container also removes the anonymous volumes its image declares (a database's data folder), so nothing is left on the machine. A container is never reused with old settings. Labels: each container carries forgeqe=1 , forgeqe.project , forgeqe.service and forgeqe.kind . down and status look only at this project's containers."},{"t":"Security","u":"docs/index.html#doc-docs-containers-security","g":"User guide · Operations","h":[],"x":"Security ForgeQE's agent reads text other people control: tickets, web pages, repositories. A container command built from that text could mount the whole disk or run privileged, so: No commands from the model. The agent names services that forgeqe.yaml declares, and ForgeQE builds the argument array ( docker run … ). It never uses a shell. Images, flags and mounts never come from a request. The same restrictions for every container: --security-opt no-new-privileges , --pids-limit 1024 , ports on 127.0.0.1, and read-only mounts. There is no setting to turn these off. Mounts are checked like uploads (except a mock's stubs folder, which ForgeQE writes itself and mounts read-only). The path is resolved with realpath and must be inside the project. A mount that is or holds a hidden file or folder ( .env , .git , .npmrc ), a file named like a key ( *.pem , id_rsa , llms.json ) or a link is refused. A container can send what it reads anywhere. Environment: The docker and podman programs see only the system settings and the variables they need to find their daemon ( DOCKER_HOST , DOCKER_CONTEXT , CONTAINER_HOST , …), plus the service's listed secrets. A container gets only its env and secrets . Logs and errors have secret values replaced with *** . Not in the agents' shell: docker , podman , nerdctl , docker-compose and podman-compose are denied in the shell of ForgeQE's agent and of Scribe. So the only way to start a container is these tools. Asked first: services up and mock_service ask the user before starting, as run_tests does."},{"t":"Scheduled monitoring with alerts","u":"docs/index.html#cap-monitoring","g":"User guide · Operations","h":[],"x":"Operations Scheduled monitoring with alerts Runs checks on a schedule and alerts Teams or email when one keeps failing, and again when it recovers. Ask it Check the login flow every 15 minutes and alert Teams What it needs Required A live model profile in llms.json (an API key or Microsoft Entra ID sign-in) Optional Alert channels: monitor.alerts.teams or monitor.alerts.email in forgeqe.yaml Tools monitor In detail"},{"t":"Monitoring","u":"docs/index.html#doc-how_to_use-9-monitoring","g":"User guide · Operations","h":[],"x":"Monitoring forgeqe monitor runs a set of checks on a schedule and alerts Microsoft Teams and email when one breaks. A check is any test case forgeqe suite takes (section 7): a YAML or Gherkin file, a folder, Jira keys or JQL, an Azure DevOps plan, TestRail, and so on. yaml Copy monitor: checks: [checks/smoke.yaml] every: 15m # 30s, 15m, 1h, 1h30m; at least 10s replay: verify # verify | trust | off parallel: 1 fail_after: 1 # failing rounds in a row before the first alert remind_every: 2h # repeat while it keeps failing; default: never keep: 100 # round folders kept write_back: false # post each round's results to the source system # out_dir: ./.forgeqe/reports/monitor # report_url: https://reports.example.com/monitor alerts: teams: webhook_env: TEAMS_WEBHOOK_URL email: host: smtp.office365.com # or SMTP_HOST port: 587 # STARTTLS; 465 is TLS from the start (secure: true) username_env: SMTP_USERNAME password_env: SMTP_PASSWORD # from: ForgeQE \u003cqa-bot@example.com\u003e to: [qa-team@example.com, oncall@example.com] bash Copy forgeqe monitor --test-alerts # send a sample alert through every channel forgeqe monitor # monitor.checks every monitor.every, until Ctrl+C forgeqe monitor checks/checkout.yaml --every 5m forgeqe monitor --once # one round, then exit (cron, scheduled pipelines) Each round runs the checks like a suite, without writing tests, and replays the flows from page memory (section 5). A flow that passed before costs one model call to confirm the expected results ( replay: verify ), or none ( replay: trust , which trusts the replay without checking). A new or changed flow falls back to the full agent. Rounds start every apart; a round that overruns is followed by the next one straight away. Alerts go out when something changes, not every round: A check that fails fail_after rounds in a row gets an alert. With fail_after: 2 a single flaky failure is never reported. While it keeps failing, nothing more is sent, unless remind_every is set. When it passes again, a recovery alert says how long it was down. A round that cannot run at all (a test system is down, a source is empty, the engine will not start) alerts as the check \"ForgeQE monitor\", and the other checks keep their state. All changes in one round go out as one message. Teams gets an Adaptive Card with each check, why it failed and at which step, a link to the test case, and an \"Open report\" button. Email gets the same as text and HTML, with the failing checks' last screenshots attached (up to five). For Teams, create an incoming webhook on the channel, or a Workflows flow with the trigger \"When a Teams webhook request is received\" and the action \"Post card in a chat or channel\"; both take the card as it is. Put the URL in TEAMS_WEBHOOK_URL . For email, any SMTP server works: Office 365 ( smtp.office365.com:587 , with SMTP AUTH allowed for the mailbox), Gmail with an app password, SendGrid, or a relay on your network (no username needed). The webhook URL and the SMTP password stay in the environment; if a send fails, the error never contains them. The terminal shows one block per round: text Copy Monitoring checks/smoke.yaml every 15m · replay verify · alerts: Teams, email to qa-team@example.com · Ctrl+C stops [14:15] ✗ 4/5 passing · 38s · 6.2K tokens ✗ SHOP-12 Checkout: failing since 14:15 The Pay button is missing on the payment page ↑ Alert sent: Teams, email Report .forgeqe/reports/monitor/20260929-141500/report.html Next round at 14:30 [14:30] ✗ 4/5 passing · 35s · 5.9K tokens ✗ SHOP-12 Checkout: failing since 14:15 (2 rounds, already alerted) Report .forgeqe/reports/monitor/20260929-143000/report.html Next round at 14:45 Files. Each round is a suite folder in .forgeqe/reports/monitor/\u003ctime\u003e/ ( report.html , junit.xml , suite.json , the runs, and alerts.json when it alerted), so the report's trends and flaky tests cover the rounds. Folders beyond keep are deleted. state.json in .forgeqe/reports/monitor/ remembers which checks are failing, since when, and when they were last alerted; delete it to start fresh. Set report_url to where you publish .forgeqe/reports/monitor/ and alerts link \u003creport_url\u003e/\u003cround\u003e/report.html ; without it they name the local file. Scheduling. Run forgeqe monitor in a long-lived session (tmux, a service, a container), or forgeqe monitor --once from cron or a scheduled pipeline. --once exits 0 when every check passed, 1 when any failed, and 2 when stopped. In a pipeline, cache .forgeqe/reports/monitor/state.json between runs; without it every run starts fresh, and a failure alerts every time. Only one monitor can use an out_dir at a time, so an overlapping cron run exits instead of racing. You can also ask ForgeQE's agent. In the shell, \"check the smoke cases once\" runs one round and shows it as a card, and \"monitor the smoke cases every 10 minutes\" starts a monitor in the background: you keep working, each round appears as a card, \"is anything failing?\" shows the state, and \"stop monitoring\" ends it. A background monitor lives as long as the shell (or forgeqe mcp ) and stops when it closes; forgeqe run refuses to start one, because it would stop when the command exits. While one is running, a one-off round on the same out_dir is refused rather than run twice. For monitoring that keeps going after you close the shell, \"monitor the smoke cases every 10 minutes and alert the QA channel in Teams, always on\" makes the agent set up monitor: in forgeqe.yaml , send a test alert, and tell you how to keep forgeqe monitor running (or add a scheduled pipeline)."},{"t":"Background jobs on a schedule","u":"docs/index.html#cap-jobs","g":"User guide · Operations","h":[],"x":"Operations Background jobs on a schedule Runs ForgeQE commands (suites, monitor rounds, regression packs, healing, pull-request tests, browser goals) on a schedule or once in the jobs service, apart from the conversation and after it closes, and watches an existing GitHub Actions or Azure DevOps pipeline (read-only). A failed pipeline run or pack run is investigated: the healing agent works on each failure on a local branch of its own (a fix for review, or an app bug), never pushing. Says how each job goes when asked, shows runs as they end, and sends failures, recoveries and findings to Teams or email. Ask it Run the release-2.3 pack every weekday at 2am in the background Watch the pipeline in the background and investigate failures How are my jobs doing? What it needs Optional A notification channel: notify.channels in forgeqe.yaml, each a Teams Workflows webhook (in an environment variable) or email Tools jobs In detail"},{"t":"The jobs service: scheduled and long jobs apart from the shell","u":"docs/index.html#doc-how_to_use-the-jobs-service-scheduled-and-long-jobs-apart-from-the-shell","g":"User guide · Operations","h":[],"x":"The jobs service: scheduled and long jobs apart from the shell forgeqe jobs runs ForgeQE commands on a schedule, or once, in a service of their own, so they keep going while you work on something else in the shell, or with the shell closed. Each run is its own forgeqe process with its own output and session log; you ask how a job is going at any time, and its failures and recoveries go to Teams. bash Copy forgeqe jobs add nightly-pack --cron \"0 2 * * 1-5\" -- pack run release-2.3 # weekdays at 02:00, this machine's time forgeqe jobs add smoke --every 30m -- suite checks/smoke.yaml forgeqe jobs add heal-login --now -- heal --focus login # once, now forgeqe jobs # every job: running or how its last run ended, and when it runs next forgeqe jobs status nightly-pack # its last runs, and the last lines of the latest forgeqe jobs logs nightly-pack --tail 100 forgeqe jobs run nightly-pack # run it now as well forgeqe jobs stop nightly-pack # stop the run that is going forgeqe jobs disable|enable|remove nightly-pack forgeqe jobs shutdown # stop the service; scheduled jobs wait until it starts again What a job runs. One ForgeQE command: suite , monitor , run , heal , pr-tests , pack run , pack triage or pipeline watch , with its arguments after -- . Nobody is there to answer a question while a job runs, so a run job is a browser run of the goal ( --direct ), and a pack run job carries --yes : adding the job is your approval, and the command you agree to shows it. It runs with the project's own forgeqe.yaml , model profile and approvals: a job cannot set --config , --profile or --yes , and nothing else is started (no shell, no other program). A monitor job runs one round each time it is due ( --once ), on the job's schedule; it sends its own monitor.alerts , so its job is quiet unless you add it with notices on. When. --every 15m (at least 1m), --cron \"0 2 * * 1-5\" (minute hour day month weekday, local time), or neither: it runs when asked, and add starts it at once. --now also runs a scheduled job straight away. A run missed while the service was down starts once when it is back. When several are due, the one that has waited longest goes first. How many. jobs.parallel in forgeqe.yaml (default 2) runs at once over all jobs, and never two runs of one job. A run past --timeout (default 6h, at most 24h) is stopped and marked timed out. The service. forgeqe jobs add and forgeqe jobs run start it when it is not running, as a process of its own that outlives the command and the shell; forgeqe jobs serve runs it in the foreground (for a container or a system service). It is one per project, on this machine, until you stop it or the machine restarts. It listens on 127.0.0.1 only, with a random token kept in your own ForgeQE folder ( ~/.forgeqe/jobs/ , readable by your user only, never in the project, which others may read), and refuses requests from web pages. A second service for the same project is refused. .forgeqe/jobs/ and .forgeqe/pipelines/ get their own .gitignore , so runs and logs are never committed. Files. .forgeqe/jobs/\u003cjob\u003e/job.json and, for each of its last 50 runs, runs/\u003crun\u003e/run.json and output.log ; .forgeqe/jobs/events.jsonl lists what happened; .forgeqe/jobs/service.log is the service's own output. A run that was going when the service stopped is marked interrupted. Watching a CI pipeline. forgeqe jobs add ci --every 10m -- pipeline watch --github org/app --workflow ci.yml --branch main (or --ado-project Shop --pipeline 12 ) looks at the pipeline's latest completed run each time, read-only: it starts, re-runs and changes nothing. A new failed run is triaged like a pack's (the JUnit or TRX files in its artifacts on GitHub, the Test Runs API on Azure DevOps; without results, the job and step that failed), in .forgeqe/reports/pipelines/ . The job fails while the latest run is failed, so the team hears once when the pipeline breaks and once when it is green again; a cancelled run changes nothing. forgeqe pipeline watch … on its own does one look. GitHub needs the gh CLI signed in; Azure DevOps the same sign-in as the rest of ForgeQE. Investigating failures. When a pipeline watch or pack run job fails, the failures that healing can decide (an element not found, an expected value that does not hold; not the environment, flaky tests or broken test code, and nothing while the environment is down) are investigated, at most 3 a run, jobs.parallel at once. Each goes to the healing agent in a git worktree of its own, on a new local branch forgeqe/investigate/\u003ctest\u003e-\u003ctime\u003e-\u003cn\u003e , from the commit the failing run tested when this clone has it (fetched when it can be, else HEAD , which the finding says). The agent re-runs the flow in the browser: when the flow works it heals the test, and the fix is committed on that branch for you to review; when the browser fails at the same step it is an app bug, and no branch is kept. Your checkout, its branch and its files are never touched; nothing is pushed or merged; the worktree is removed at the end. node_modules , .venv and venv from your checkout are linked into the worktree so the tests can run, and never committed. The failure is told at once ( job_failed ), the findings when they are in ( job_investigated ); forgeqe jobs status lists them, .forgeqe/jobs/\u003cjob\u003e/runs/\u003crun\u003e/investigations.json and investigate.log have the detail, and forgeqe investigate \u003crun folder\u003e runs an investigation by hand. --no-investigate turns it off for a job. From the shell. Ask ForgeQE's agent: \"run the release-2.3 pack every weekday at 2am in the background\" makes it propose the job, and ForgeQE asks you to agree to its exact command and schedule before adding it ( Add the job / Don't add it ). You keep working; when a job's run ends, a line says so in the conversation (\"Job nightly-pack failed: …\"), and \"how are my jobs?\" or \"show the end of the nightly-pack log\" get answers from the service. The agent adds a job only when you ask for one, and never one that runs anything but the"},{"t":"Your team's custom agents","u":"docs/index.html#cap-custom-agents","g":"User guide · Operations","h":[],"x":"Operations Your team's custom agents Hands a request to one of the team's custom agents: ForgeQE's agent configured for one job in .forgeqe/agents, held in code to the environments, tools and actions its approved version allows. It runs in a session of its own and answers with its reply; each run is kept in the agent's history. Also makes a new one with the user from what it is for: it picks what the agent needs from what the project has, says why, and saves a draft when the user agrees. Ask it Ask our custom agent checkout-guard to check the basket on QA Which custom agents do we have? Make an agent that checks the checkout on QA every night What it needs Required A live model profile in llms.json (an API key or Microsoft Entra ID sign-in) Limits A custom agent runs only a version a person approved (forgeqe agent approve), and does only what that version allows; it cannot hand work to another custom agent. ForgeQE's agent drafts and saves an agent only after the user agrees; it never approves one. Tools custom_agent request_approval In detail"},{"t":"Custom agents","u":"docs/index.html#doc-how_to_use-custom-agents","g":"User guide · Operations","h":[],"x":"Custom agents A custom agent is ForgeQE's agent configured by your team for one job, kept in the repository as .forgeqe/agents/\u003cid\u003e.yaml . It uses ForgeQE's own agents, capabilities, skills, knowledge and environments, and is held in code, on every tool call, to what its manifest allows: which environments and addresses, which capabilities, which agents it may start, which kinds of action (read, run, change, external) and which a person approves first. An environment named like production is never allowed. It has no shell, web fetch or web search, and connects no other system's MCP server. Writing tests and healing are not available to custom agents yet. yaml Copy id: checkout-guard name: Checkout guard agent version: 1.0.0 description: Watches the checkout on QA and explains what broke. instructions: Focus on the basket, payment and order confirmation. scope: agents: [engine, forgeqe-heal] capabilities: [browser-goals, regression-packs] environments: [qa] permissions: actions: [read, run] approve: [run] What runs is a version a person approved. Editing the manifest changes nothing that runs: the agent shows as changed, keeps running its approved version, and the change waits for approval. Approvals are kept, with every approval, disabling and rollback, in .forgeqe/agents/.releases/\u003cid\u003e , so the team reviews them with the code. bash Copy forgeqe agent list # each agent and its state: draft, active, changed, disabled, broken forgeqe agent check \u003cid\u003e # what it may reach, what its capabilities still need, what changed forgeqe agent try \u003cid\u003e \"request\" # the manifest as it is now: read and run only, every run asked first forgeqe agent approve \u003cid\u003e # a person at the terminal approves this exact version forgeqe agent run \u003cid\u003e \"request\" # its approved version forgeqe agent disable \u003cid\u003e | enable \u003cid\u003e # also on its page; several at once on Agents, Custom agents (Select agents) forgeqe agent rollback \u003cid\u003e \u003cversion\u003e # an earlier approved version runs again forgeqe agent history \u003cid\u003e # its versions and its runs, with every tool call and the policy's decision forgeqe agent export \u003cid\u003e --out a.jsonl # its whole record as JSON lines, for audit (also on its page: Download audit record) forgeqe agent run \u003cid\u003e \"request\" --unattended # as a schedule runs it: what it may not do alone waits for a person forgeqe agent approvals [\u003cid\u003e] # what agents running with nobody watching wait for; answer: approvals \u003cid\u003e \u003capproval\u003e allow | allow_run | deny A custom agent may be given anything ForgeQE's agent has: every capability, other systems' tools, the coding agent, jobs, ForgeQE's own commands and settings, the shell ( permissions.shell: true ), and production. What goes beyond its limits call by call (the coding agent, ForgeQE commands and settings, a shell command, a change in production) is approved by a person each time. In production, what a call does decides: a read goes ahead without asking; a run (a browser run, a test, an API call) is asked unless permissions.production: [run] says otherwise; every change is asked, on a schedule too, where it waits for a person and the team is told. A question about a read or a run offers Allow for the rest of this run (that tool, in that environment); a change is asked each time. The agent also asks you itself ( request_approval ) before a step there that could reach real customers, such as an order or a payment: it can add a question, never skip one. A tool ForgeQE adds later reaches custom agents at once, asking a person each call until it says what it does. permissions.trust lifts ForgeQE's own question where you choose: external lets it change other systems without asking, and a coding agent's tool ( write_test , heal_tests , write_api_tests ) lets it write and heal tests without asking. The tests a coding agent runs can reach any address, so before such a call ForgeQE looks in the test project's config and env files ( playwright.config.* , .env* , *.yaml and the like), its tests ( *.spec.ts , test_*.py , *Test.java , .feature files…) and the code in its test folders (page objects, fixtures, helpers), and asks after all when they name an address of an environment the agent does not have. An address built at run time from pieces is not seen. A change in production, ForgeQE's own commands and settings, and jobs are always asked. With nobody watching, a trusted tool still runs only when permissions.unattended lists it. An agent with a schedule ( every: 1d or cron: \"0 7 * * 1-5\" , and the request it is given) runs as a job of the jobs service once approved, always its approved version; disabling it pauses the job. With nobody watching, it does without asking only what permissions.unattended lists (kinds of action, or tools by name), and in production only reads, and runs if permissions.production lists them; anything else, and anything it judges should be a person's decision, waits for a person: the team's channels are told ( agent_waiting ), and the agent's page shows it with Allow, Deny and, for a read or a run, Allow for the rest of this run. No answer in four hours is a no. One run nobody watches of an agent goes at a time: a schedule that fires while the last run still waits does not start, and its history says so. runtime.max_tokens sets a budget per run: the run stops when it has used that many model tokens. When someone is watching ( forgeqe agent run in a terminal, a chat, the agent's page), the run asks first: carry on with as much again (each yes is in its history), or stop. A run nobody watches is never asked, and stops. Other systems' tools (Azure DevOps, Jira, GitHub…) come through ForgeQE with their names as \u003csystem\u003e_\u003ctool\u003e (a dot in a name becomes _ ; a name too long for MCP clients, or not a plain name, is left out). Every page of a server's tool list is read; a tool is read-only only when the server marks it readOnlyHint and not also destructiveHint ; a server's own requests (ping) are answered and never taken for an answer; and a refused sign-in says to c"},{"t":"Teams and email notifications","u":"docs/index.html#cap-notifications","g":"User guide · Operations","h":[],"x":"Operations Teams and email notifications Tells the team in Microsoft Teams channels or by email when a suite fails or passes, when a release readiness verdict is in, and when the domain evaluation falls below its gate, with the failing cases, their bugs, and links to the report and the CI build. Each channel picks its events; the agent also posts a summary to a channel when asked. Ask it Post the results to the QA channel Tell the release channel the verdict is NO-GO What it needs Required A notification channel: notify.channels in forgeqe.yaml, each a Teams Workflows webhook (in an environment variable) or email Limits Automatic notifications come from runs nobody is watching (forgeqe suite, forgeqe run, pipelines, the MCP server), not from the interactive shell, where the agent posts only when asked. Tools notify In detail"},{"t":"Notifications","u":"docs/index.html#doc-how_to_use-17-notifications","g":"User guide · Operations","h":[],"x":"Notifications ForgeQE tells the team in Microsoft Teams channels, or by email, when something they should know happens. Each channel picks its events: yaml Copy notify: report_url: https://reports.example.com/forgeqe # where .forgeqe/reports is published, so cards link to each report channels: qa: teams: { webhook_env: TEAMS_WEBHOOK_URL } on: [suite_failed, eval_failed] release: teams: { webhook_env: TEAMS_RELEASE_WEBHOOK } on: [release] leads: email: { host: smtp.office365.com, port: 587, username_env: SMTP_USERNAME, password_env: SMTP_PASSWORD, to: [qa-leads@example.com] } on: [suite_failed, release] Event When The card shows suite_failed A suite ends with a case that did not pass, or a test that did not Each failing case (up to 10) with its kind of failure, the test case and bug links, tests written, and the report and build suite_passed Every case passed The count, how long it took, where it ran release A release readiness verdict GO, GO WITH RISKS, or NO-GO, the counts, every blocker and risk, and the wiki page when published eval_failed forgeqe eval domain --min falls below its gate Coverage for each variant and invented ids job_failed A job of the jobs service fails or runs out of time, after passing or for the first time (not again while it keeps failing) The job, its command and schedule, how long it ran, its last lines of output, and where its output is job_recovered A job passes again after failing The same, for the run that passed job_done A job that runs only when asked ends The same, whether it passed or failed job_investigated The investigation of a job's failed run is done Each failure: a test out of date with its fix on a branch, an app bug, or not decided, with the agent's reasons agent_waiting A custom agent running with nobody watching waits for a person's approval What it wants to do and why, until when it waits, and how to answer evidence_drift forgeqe evidence drift --notify finds an agent changed since its baseline (a model, tool, document, check, its contract or judge), or trusted above what its evidence supports Each alert, with the runs it rests on (only channels that list it get it) A channel without on gets suite_failed , release , eval_failed , job_failed , job_recovered , job_investigated , and agent_waiting . Email adds the failure screenshots. A stopped suite is not announced. Monitoring keeps its own monitor.alerts , with the same cards. Events are sent from runs nobody is watching: forgeqe suite in a pipeline or on a schedule, forgeqe run , and the MCP server. In the shell, where people try things out, nothing is sent on its own; ask instead (\"post the results to the QA channel\", \"tell the release channel the verdict\"), and ForgeQE's agent posts a card with notify . Links: with report_url , cards open the report where the reports folder is published. In Azure Pipelines and GitHub Actions they also open the build, where the report is an artifact. Without either, the card names the report's path. Setting up a Teams channel: In the channel, open Workflows and choose Post to a channel when a webhook request is received , then copy the URL it gives you. Microsoft is retiring the older Office 365 \"Incoming Webhook\" connectors; Workflows webhooks take the same cards. The URL is the secret (anyone with it can post): keep it in the environment, the system's credential store ( forgeqe auth login TEAMS_WEBHOOK_URL ), or a pipeline secret, never in forgeqe.yaml . Create the workflow with a shared or service account: a workflow belongs to whoever made it and stops when they leave. Your tenant must allow the Workflows app. forgeqe notify test [channel] sends a test card to check it arrives."},{"t":"CI pipelines","u":"docs/index.html#cap-pipelines","g":"User guide · Operations","h":[],"x":"Operations CI pipelines Writes a GitHub Actions or Azure Pipelines workflow that runs ForgeQE, stores the secrets it needs, pushes a branch, and makes the pipeline green. Ask it Add a GitHub Actions workflow that runs tests/cases.yaml on every PR, and make it green What it needs Required git on PATH Required gh on PATH, for GitHub Actions; or az on PATH, for Azure Pipelines Tools push_branch set_ci_secret In detail"},{"t":"Pipelines","u":"docs/index.html#doc-how_to_use-8-pipelines","g":"User guide · Operations","h":[],"x":"Pipelines ForgeQE's agent writes, runs, and fixes GitHub Actions and Azure Pipelines. Run it in the repo (or pass --repo ) and ask: bash Copy forgeqe run \"Add a GitHub Actions workflow that runs the smoke cases in cases.yaml on every pull request\" forgeqe run \"Set up an Azure DevOps pipeline that runs test plan 12 every night and posts results back\" forgeqe run \"The ForgeQE workflow is failing, fix it\" What it does: Works out the platform from the git remote (github.com, or dev.azure.com / visualstudio.com) and reads the repo's existing CI, so it can add a job to it or write a new file. Writes the pipeline so it installs Bun and uv, runs and forgeqe setup , then forgeqe suite \u003csource...\u003e --no-code --plain --out \u003cdir\u003e , and publishes junit.xml and the report folder. On GitHub the suite adds a results table to the job summary. Validates it (actionlint when installed, otherwise by parsing the YAML) and commits it. Pushes to a new branch named forgeqe/ci-\u003ctopic\u003e with ForgeQE's push_branch tool. That tool refuses the default branch, main , and master , and never forces; git push itself is blocked for the agent. Merging stays with you. Stores the keys the pipeline needs (the model's key from llms.json , and ADO_PAT , JIRA_EMAIL and JIRA_API_TOKEN , or XRAY_CLIENT_ID and XRAY_CLIENT_SECRET ) with ForgeQE's set_ci_secret tool. The agent only names the variable; ForgeQE passes the value from its own environment to gh secret set (on stdin) or az pipelines variable (through the environment), and never shows it. A variable that is not set in ForgeQE's environment is reported, not guessed. Triggers the run with gh workflow run or az pipelines run , watches it, reads the logs of failed steps, fixes the pipeline (or the code), pushes again, and repeats until the run passes or code.max_attempts runs have failed. It reports the run link and the result. It needs gh logged in for GitHub, or az with the azure-devops extension logged in for Azure DevOps. Without them it still writes, validates, and commits the pipeline, then tells you the commands to run. Set llm.active to a live profile in the committed forgeqe.yaml . With a github_copilot profile the pipeline needs a GitHub token for Copilot in COPILOT_GITHUB_TOKEN (see In pipelines )."},{"t":"Data","u":"docs/index.html#area-data","g":"User guide","h":[],"x":"10 Data Databases: their schema, and SQL from plain language, checked before it runs"},{"t":"Ask a database in plain language","u":"docs/index.html#cap-databases","g":"User guide · Data","h":[],"x":"Data Ask a database in plain language Connects to the project's databases (PostgreSQL, MySQL and MariaDB, SQL Server and Azure SQL, Oracle, Snowflake, Redshift, CockroachDB, SQLite, DuckDB, and MongoDB) from a connection string or host and user, signing in with a password, Microsoft Entra ID or AWS IAM. Reads the schema through DB-GPT's connectors and turns questions into SQL that is checked before it runs: reads in a read-only session that is rolled back, writes only on a database marked writable, after you confirm them. Ask it Which customers in India have paid orders? Ask the orders database Show me the tables in the shop database Write the SQL for revenue per country last month and run it Check the connection to the reporting database What it needs Required A database under databases: in forgeqe.yaml or env.yaml: a connection string in an environment variable (url_env), or host, database, user and password_env; auth: azure or aws_iam for token sign-in Limits One statement at a time: SELECT (with CTEs and set operations), SHOW, DESCRIBE and EXPLAIN SELECT anywhere; INSERT, and UPDATE or DELETE with a WHERE clause, only on databases marked writable and after you confirm Never DDL (CREATE, ALTER, DROP, TRUNCATE), procedures, or functions that read files, sleep or reach other servers MongoDB is queried with find, aggregate, count and distinct (JSON operations); its test data is not made yet; other non-SQL stores are not supported Tools databases database_schema run_sql In detail"},{"t":"Databases","u":"docs/index.html#doc-how_to_use-databases","g":"User guide · Data","h":[],"x":"Databases ForgeQE's agent can read your databases and answer questions from them in plain language: \"which customers in India have paid orders?\", \"show me the tables in the shop database\", \"write the SQL for revenue per country and run it\". It reads the schema first (through DB-GPT 's connectors), writes SQL in the database's own dialect, runs it, and shows you the rows and the SQL. Supported: PostgreSQL, MySQL, MariaDB, SQL Server and Azure SQL, Oracle, Snowflake, Redshift, CockroachDB, SQLite, DuckDB, and MongoDB. The first use sets up the data engine (its own Python, in ~/.forgeqe/data ) and that database's driver. MongoDB ( engine: mongodb , or url_env with a mongodb:// or mongodb+srv:// string): the agent lists the collections with the fields of a sample of documents, and queries with find, aggregate, count and distinct, written as JSON. Operators that run code on the server or write elsewhere ( $where , $function , $accumulator , $out , $merge ) and system.* collections are refused; inserts, updates and deletes need writable: true and your confirmation, and an update or delete needs a filter. MongoDB has no read-only session, so connect as a read-only user. Test data is made for the SQL databases only. Add the databases under databases: in forgeqe.yaml, or under an environment in env.yaml (the active environment's entries win by name). No secret goes in either file: name the environment variables that hold them. yaml Copy databases: orders: # a whole connection string in a variable: URI, JDBC, or ADO.NET as Azure shows it url_env: ORDERS_DB_URL description: Orders written by the checkout app reporting: # or the parts engine: postgres # postgres, mysql, mariadb, mssql, oracle, snowflake, redshift, cockroachdb, sqlite, duckdb host: reporting.postgres.database.azure.com database: reporting user: qa_reader auth: azure # a Microsoft Entra ID token (az login, managed identity, service principal) billing: engine: mysql host: billing.abc123.eu-west-1.rds.amazonaws.com database: billing user: qa_iam auth: aws_iam # an RDS IAM token from your AWS profile; the region is read from the host fixtures: engine: postgres host: localhost port: 5432 database: test user: qa password_env: FIXTURES_DB_PASSWORD writable: true # allows confirmed INSERT, and UPDATE or DELETE with a WHERE clause Save a secret once with /auth ORDERS_DB_URL in the shell (or set it in the environment). In the shell, /db lists the databases, /db test \u003cname\u003e connects, /db tables \u003cname\u003e [words] shows the tables (or those whose names, comments or columns hold the words), /db refresh \u003cname\u003e reads the schema again, /db batches shows test data batches, and /db examples \u003cname\u003e the remembered queries. /db add sets one up with the agent: it asks how to connect, writes the entry, and has you save the secret with /auth , so no password goes through the chat. The same commands work outside the shell ( forgeqe db test orders ), and for scripts: bash Copy forgeqe db query orders \"SELECT status, COUNT(*) FROM orders GROUP BY status\" --json # one checked read forgeqe db query orders \"SELECT ...\" --dry-run # the database checks every name; no rows are read forgeqe db query orders \"SELECT * FROM orders\" --max-rows 1000 # rows to read (default 200, at most 5000) forgeqe db ask \"paid revenue per country last month\" --db orders --save queries/revenue.sql # the agent writes and validates it; stdout is only the SQL Drafts, files and examples. Ask for a query without running it (\"write the SQL for ...\") and the agent validates it with a dry run: the database resolves every table and column (and shows its plan where it can) without reading or writing anything. Ask it to keep a query and it saves a .sql file in the project with the question as a comment. When you confirm a result is right, the agent remembers the question and its SQL for that database ( .forgeqe/data/\u003cname\u003e/examples.jsonl ) and follows it for similar questions: your names for things and your filters. Other settings: schema (default: the user's), port , path (sqlite, duckdb), timeout_seconds (default 30), ssl ( verify , the default for Azure, AWS and GCP hosts; require ; disable ), ssl_ca (a CA file), region (aws_iam), sample_rows (0 to 5 sample rows per table shown to the model; default 0), mask (more column name patterns to hide), and options ( warehouse and role for Snowflake; odbc_driver for SQL Server with auth: azure , which needs Microsoft's ODBC Driver 18). What ForgeQE does with them: Reads run in a read-only session where the database has one (PostgreSQL, MySQL, Oracle, SQLite, DuckDB), with a statement timeout and a row cap (200 by default), and are rolled back. Use a read-only login all the same; SQL Server and Snowflake have no read-only session, so there the login is the limit. Every statement is checked first. One statement only: SELECT (with CTEs, joins and set operations), SHOW, DESCRIBE, or EXPLAIN of a SELECT. Refused: DDL, procedures, SELECT INTO, FOR UPDATE, MySQL's executable comments, and functions that read files, sleep, or reach other sessions or servers ( pg_read_file , LOAD_FILE , xp_cmdshell , OPENROWSET , UTL_HTTP , ...). Writes run only on a database marked writable: true , and only after you confirm the exact statement: one INSERT, or one UPDATE or DELETE with a WHERE clause. Masked values: columns named like passwords, tokens, hashes, card numbers, IBANs and tax ids show as ••• . What the model sees: table and column names, types, keys and comments, and the rows of the queries it runs. Passwords and tokens never reach it, its shell, or the tests. ForgeQE's agent cannot run database clients ( psql , mysql , sqlcmd , sqlplus , ...) in its shell. The schema is read once and kept in .forgeqe/data/\u003cname\u003e/catalog.json . ForgeQE checks a cheap fingerprint of the schema (its tables, columns and types) every few minutes and reads it again when a migration changed it, or after a week; /db refresh \u003cname\u003e reads it at once. For a large database the agent gets the table"},{"t":"Test data on demand","u":"docs/index.html#cap-test-data","g":"User guide · Data","h":[],"x":"Data Test data on demand Makes realistic test data from a spec that fits the database's schema (types, sizes, NOT NULL, unique keys, CHECK lists, enums), parents before children, the same rows for the same seed. Or takes a masked subset of a real database: the rows you pick and every row they need, with names, emails, phones, addresses and other personal columns replaced the same way every time. Shows a preview, writes CSV, JSON or SQL files for automation, or inserts the rows into a database marked writable after you confirm, as a batch that can be removed again. Specs live in the project, so tests and pipelines make the same data with forgeqe data gen. Every agent can ask the DB agent for the data it needs before it runs: the rows themselves, found with a read-only query or made from a spec, and the SQL or INSERT script that gets them again, kept for forgeqe data fetch. Ask it Generate test data: 20 customers with 1 to 3 orders each in the shop database Make test data for the orders tables as CSV files for our automation Insert 50 test users into the fixtures database Copy 100 paid orders from prod into fixtures as a masked subset Remove the test data batch we inserted yesterday Ask the DB agent for a customer with two paid orders for the checkout test What it needs Required A database under databases: in forgeqe.yaml or env.yaml: a connection string in an environment variable (url_env), or host, database, user and password_env; auth: azure or aws_iam for token sign-in Limits Inserts only into databases marked writable, after you confirm; removes only rows of a batch it inserted A subset reads its source in read-only sessions; its start condition is a filter of one table, and personal columns are found by name (mask: adds others) Simple CHECK constraints (a list of values, bounds) are read; other rules the database enforces may refuse rows, and then nothing is kept Tools generate_test_data test_data_batches request_test_data In detail"},{"t":"Test data","u":"docs/index.html#doc-how_to_use-test-data","g":"User guide · Data","h":[],"x":"Test data ForgeQE makes test data that fits your schema: ask \"generate 20 customers with 1 to 3 orders each in the shop database\", \"make the orders tables as CSV for our automation\", or \"insert 50 test users into fixtures\". The agent reads the schema, writes a spec, shows you a preview, and then writes files or inserts the rows. A spec is YAML you can keep in the project, so tests and pipelines make the same data again: yaml Copy database: fixtures # optional: else --db, or the only database seed: 42 # the same seed makes the same rows locale: en_IN # Faker's locale for names, addresses, phone numbers edge_cases: true # a few rows per table at the limits: longest text, unicode, nulls where allowed tables: customers: rows: 20 columns: email: {faker: email, unique: true} country: {one_of: [IN, UK, US], weights: [5, 3, 2]} orders: per: {customers: [1, 3]} # each customer gets 1 to 3 orders columns: status: {one_of: [NEW, PAID, SHIPPED]} total: {range: [5, 500], decimals: 2} placed_at: {date_between: [\"-90d\", \"today\"]} reference: {sequence: \"ORD-{n:05d}\"} order_items: per: {orders: [1, 4]} columns: product_id: {ref: products.id} # rows already in the database Rules: a plain value, faker (a Faker method, with args ), one_of (with weights ), range (with decimals ), date_between (dates, today , or -30d , -6m , +1y ), sequence ( {n} counts from 1), bothify ( # a digit, ? a letter), ref ( table.column ), null_ratio , and unique . Two rules keep a row consistent: {ref: products.price, via: product_id} takes the price of the very product the row points at, and {template: \"{first_name}.{last_name}@shop.test\"} builds a value from the row's other columns. Columns without a rule are filled from the schema: their type and size, NOT NULL, unique keys, a CHECK constraint's list of values or bounds, enum types, and their name ( email , phone , city , created_at , ...). Keys the database makes (serial, identity, auto-increment) are left to it, and foreign keys point at rows the spec makes or rows already in the database. A schema without declared foreign keys is matched by name ( orders.customer_id to customers ). From the command line, for automation and pipelines (no model): bash Copy forgeqe data gen test-data/shop.yaml # what it makes forgeqe data gen test-data/shop.yaml --format csv --out test-data/shop # csv, json or sql (INSERTs in the database's dialect) forgeqe data gen test-data/shop.yaml --insert --yes --json # into a writable database; prints the batch id forgeqe data batches --db fixtures forgeqe data clean 20261019-173810-9f5b5f --db fixtures --yes # removes exactly that batch, children first Inserts go only into a database marked writable: true , in one transaction: if the database refuses a row, none are kept. In the shell, ForgeQE asks first; on the command line, --yes is needed. Batches: every insert records the keys it made in .forgeqe/data/\u003cdatabase\u003e/batches/ , so clean removes those rows and nothing else. Files are written inside the project only, never to a hidden folder. Test data in test cases and suites. A test case in a YAML or JSON case file can bring its own data: the rows go in before the case runs and come out after it (and after the test ForgeQE writes for it), and the case's text uses their values: yaml Copy - id: CHECKOUT-7 title: A returning customer pays by card data: test-data/checkout.yaml # or {spec: ..., database: fixtures, keep: true} steps: - action: Log in as {{data.customers.0.email}} - action: Open order {{data.orders.0.reference}} and pay it expected: The order page shows Paid for {{data.customers.0.name}} {{data.\u003ctable\u003e.\u003crow\u003e.\u003ccolumn\u003e}} takes a value of the rows as inserted, keys the database made included ( {{data.customers.email}} is row 0). A whole suite can have data too: forgeqe suite cases.yaml --data test-data/shop.yaml ( --data-db NAME , --keep-data to leave it for a look), or data_spec when the agent runs cases. The data goes only into a database marked writable ; these hooks do not ask first, because the team wrote them. In automation scripts. The tests ForgeQE runs, and the tests it writes, read the inserted rows from the JSON file FORGEQE_DATA_FILE names. In a pipeline, make that file with the same spec: bash Copy forgeqe data gen test-data/checkout.yaml --insert --yes --json --export test-data/.run/checkout.json \u003e batch.json FORGEQE_DATA_FILE=test-data/.run/checkout.json npx playwright test forgeqe data clean \"$(jq -r .batch batch.json)\" --db fixtures --yes # in an always() step Scribe, ForgeQE's coding agent, writes tests that read their data from that file (its test-data skill), and can look at the databases and preview test data through ForgeQE's data tools; it never changes a database itself. A masked subset of real data. Instead of tables: , a spec can take real rows from another database: the rows you pick, every row they point at (and the rows those point at), and the child tables you name, with personal data replaced: yaml Copy database: fixtures # where the rows go (or --db); leave it out for files seed: 7 # the same seed masks the same way subset: from: prod_copy # a databases: entry, read in read-only sessions start: {table: orders, where: \"status = 'PAID' AND created_at \u003e= '2026-01-01'\", limit: 100} children: [order_items, payments] mask: # more columns to mask: a Faker method, or null to empty them customers.notes: paragraph keep: [customers.country] # columns whose names look personal but are not Masked by name: names (in tables of people: customers, users, employees, contacts, ...), emails, phones, addresses, post codes, cities, birth dates, national and tax ids, card numbers, IBANs, IP addresses, and passwords, hashes and tokens. Keys are never masked. The same everywhere: a value always becomes the same fake value, in every table and every run, so joins on a masked column still match; a masked value in a unique column stays unique. The start condition is a filter of the start table only: one condition, no UNION, and only tables of t"},{"t":"Data flows between systems","u":"docs/index.html#cap-data-flows","g":"User guide · Data","h":[],"x":"Data Data flows between systems Checks the data that passes between your systems' databases (the digital channel, CRM, billing, a warehouse), by batch ETL or in real time: each hop's rows arrived, complete, with every mapped column right after its rule, on time for its SLA, without duplicates. Follows one record end to end, says what a change to a table or column reaches downstream, and writes the flows from your mapping documents wherever they are, or suggests them from the schemas. Ask it Check that customers from the digital database reach the CRM correctly Trace customer 42 from digital through CRM to billing What does a change to digital.customers.email affect downstream? Write the data flows from mapping.xlsx Reconcile yesterday's orders between the ERP and the warehouse What it needs Required A database under databases: in forgeqe.yaml or env.yaml: a connection string in an environment variable (url_env), or host, database, user and password_env; auth: azure or aws_iam for token sign-in Limits Hops between SQL tables, Kafka topics, and APIs (a target by key, a source by its list; GET or POST only); MongoDB is not checked At most 200,000 source rows a flow per check, compared by key Reads only; flows are written into flows.yaml, and nothing in the databases changes Tools data_flows check_flows trace_record read_mapping_file In detail"},{"t":"Data flows","u":"docs/index.html#doc-how_to_use-data-flows","g":"User guide · Data","h":[],"x":"Data flows When your systems pass data to each other (a customer signs up in the digital channel's database, the CRM gets a contact, billing gets an account), ForgeQE checks each hop: ask \"check that customers reach the CRM correctly\", \"trace customer 42 from digital to billing\", or \"what does a change to digital.customers.email affect downstream?\". The hops are in flows.yaml , beside forgeqe.yaml. ForgeQE writes it from your mapping documents, wherever they are (a spreadsheet in the project, a Confluence page, a Jira or Azure DevOps item, a text file), or suggests flows from the schemas and a sample of keys when there are none; it shows you each flow and saves the ones you confirm. You can write it by hand too: yaml Copy flows: signup_to_crm: from: {db: digital, table: customers, key: id, changed: updated_at} to: {db: crm, table: contacts, key: source_customer_id} # the target column that holds the source key mode: realtime # it moves as it changes (API, queue, CDC) sla: 15m # a source row changed longer ago than this must have arrived extra: true # also report target rows with no source row columns: email: {to: email_address, rule: lower} full_name: {to: full_name, template: \"{first_name} {last_name}\"} country: {to: country_code, map: {India: IN, United Kingdom: GB}} orders_to_crm: from: {db: digital, table: orders, key: id} to: {db: crm, table: crm_orders, key: source_order_id} mode: batch # an ETL job copies it ready: {sql: \"SELECT MAX(finished_at) FROM etl_runs WHERE job = 'orders'\", wait: 10m} # wait for a run to finish since: 7d # only rows changed in the last week (needs from.changed) columns: total: {to: amount, rule: \"round(2)\"} status: {to: status_code, map: {PAID: P, NEW: N}} Rules: same (the default), lower , upper , trim , round(n) (half up, as databases round), date , number , string , map , template (from the source row's columns), and default (for a null). Kafka and APIs. A hop's side can also be a Kafka topic or an API: yaml Copy databases: events: engine: kafka host: broker1:9092,broker2:9092 user: qa-reader # SASL; leave out for a broker without sign-in password_env: KAFKA_PASSWORD options: {security_protocol: SASL_SSL, sasl_mechanism: SCRAM-SHA-512} yaml Copy flows: signup_events: from: {db: digital, table: customers, key: id, changed: updated_at} to: {db: events, topic: customer-created, key: customerId} # a field of the message; $key for the message key mode: realtime sla: 5m columns: email: {to: email, rule: lower} country: {to: address.country, map: {India: IN}} # nested fields by their dotted names contacts_api: from: {db: crm, table: contacts, key: contact_id} to: {api: crm_api, path: \"/contacts/{key}\", key: id} # an API app of the environment (kind: api) columns: email_address: email web_signups: from: {api: web_api, path: \"/signups?status=new\", key: id, items: data.items, next: links.next, changed: createdAt} to: {db: crm, table: contacts, key: contact_id} columns: email: email_address contacts_graphql: from: {db: digital, table: customers, key: id} to: api: crm_api path: /graphql method: POST # a lookup or a search: GET or POST only body: {query: \"query($id: ID!) { contact(id: $id) { id email } }\", variables: {id: \"{key}\"}} items: data.contact key: id columns: email: email Topics are read without a consumer group, so no offset is committed and no other consumer is affected; a read stops at the end of the topic as it was when the check began. A topic can be a source (its message time is when a record changed) or a target. /db test events checks the brokers, and /db tables events lists the topics with the fields of their latest messages. APIs are called at the base URL of the environment's API app, with the headers api.headers gives in forgeqe.yaml ( Authorization: Bearer ${CRM_API_TOKEN} ). As a target , an API answers for one key: {key} goes in its path ( /contacts/{key} ) or its body, one call a key; a 404 counts as missing; at most 500 keys a check, so narrow a large source with since: . As a source , it is a list endpoint (no {key} ), read page by page through the response's next link; changed names the field that says when a record changed, for since: and SLAs. A record can be followed ( flows trace , trace: ) from an API list too. items says where the records are in a response ( data.items ); without it, ForgeQE takes the response itself, or its first list among items , data , results , value , records and content . Calls are GET or POST (a lookup, a search, a GraphQL query): a check never changes data, so PUT, PATCH and DELETE are refused. Redirects are not followed, and a next link that leaves the API's host is refused, so the headers never reach another server. What a check reports for each flow: Missing: source rows whose key is not in the target. For a realtime flow, a row is late once its change is older than the SLA, and still in flight before that (not a failure). Wrong: rows where a mapped column does not hold the expected value, with the key, the source value, the value expected after the rule, and the value found. Numbers compare as numbers (12.5 and 12.50), date-times to the second, and trailing spaces of fixed-width text do not count. Duplicated: target keys that appear more than once; with extra: true , target rows with no source row. Batch: with ready , the check waits for a run of the job that finished after it began (up to wait ), and says so when it had to check the last run's rows. Following what a test case created. A case in a case file can follow the record its steps made through the flows; the case passes only when the record arrived, right, at every hop: yaml Copy - id: SIGNUP-3 title: A new customer reaches the CRM and billing steps: - action: Sign up with the email qa+{{unique}}@shop.test expected: The welcome page shows trace: from: digital.customers # or flows: [signup_to_crm, crm_to_billing] where: {email: \"qa+{{unique}}@shop.test\"} wait: 120 # seconds each hop may take {{unique}} is a token made for each run of the case, so"},{"t":"Automated tests","u":"docs/index.html#area-automated-tests","g":"User guide","h":[],"x":"11 Automated tests Write, heal, find, run, and stabilise tests in your repository"},{"t":"Turn a passed run into an automated test","u":"docs/index.html#cap-write-tests","g":"User guide · Automated tests","h":[],"x":"Automated tests Turn a passed run into an automated test Scribe, the coding agent, writes a test for a passed browser run in the repository's own framework, page objects, and helpers; ForgeQE runs it until it passes and a reviewer approves it. Ask it Write a Playwright test for that run in ../app What it needs Required The coding agent, Scribe: a live model profile (or code.model) and the agent runtime, which forgeqe setup installs You give a repository to write the test in (default: the working directory) Tools write_test run_test In detail"},{"t":"Tests","u":"docs/index.html#doc-how_to_use-6-tests","g":"User guide · Automated tests","h":[],"x":"Tests After a run passes, Scribe , ForgeQE's coding agent, turns it into a test in your repo. In the shell and forgeqe run , every passed run then becomes a test, and so does each test case that passes when you ask the shell to run test cases: in the current folder, or in the repo you give per run or in forgeqe.yaml . --no-code turns it off; you can still ask for a test (\"write a Playwright test for that run\"). bash Copy forgeqe run \"Log in and open the invoices page on staging.app.test\" --repo ../app yaml Copy code: repo: ../app # relative to forgeqe.yaml max_attempts: 5 # test runs before giving up test_timeout_seconds: 600 # per test run stall_after: 5 # stop the agent's turn when one command it runs has failed this many times replay: true # before the agent starts, run the steps as a Playwright script and hand over what worked live_browser: true # once a step fails, the agent looks at that page in a Playwright browser graph: true # the code graph: find page objects without reading files, and reuse what already locates an element # model: anthropic/claude-sonnet-4-5 # runtime: /path/to/agent-runtime # default: the runtime ForgeQE downloads What happens after the run passes: ForgeQE writes handoff.md into the run directory: the goal and result, how ForgeQE's browser was set up (browser and version, headless or headed, user agent, navigator.webdriver , launch switches, extra headers, language, time zone, viewport), every step in order with the value typed (secrets as process.env.NAME ) and the JavaScript the browser agent ran, the browser agent's own note before each group of steps (what it saw and why it acted, so a sign-in pop-up it closed or steps it redid after a banner covered the page read as such), each element's best locator and the others with their confidence %, and a short table of each visited page's other elements for assertions (weak locators under 30% are left out, and elements the steps already use are listed with the steps, so the handoff stays small; the full lists are in the page-memory files it points to). The agent's result and the final URL are marked as coming from one run on live data, to be checked as rules (the results load, the order holds, the fields have the right format), not copied as expected values. Pop-ups and banners the run met are handled wherever they appear (Playwright's locator handlers or the repository's helper), since the next run can show them at another moment or not at all; the agent's retries are not copied. A site can also serve different versions of a page to different visits (A/B tests, such as a classic search box or a free-text one), so the test handles every version the run or the agent saw, or waits for one control from either version. The handoff also lists the browser agent's checks : before it finishes, the browser agent records each result the goal asks to verify with the exact text the page showed ( record_check ; a text the page does not show is refused). They are saved in workflow.yaml under checks: . The test asserts these and nothing else. ForgeQE replays the run's steps as a Playwright script ( \u003crun\u003e/replay/flow.mjs ), in the run's browser setup (channel, headless or headed, user agent, language, time zone, viewport), with 10 seconds per step. Text is typed key by key, as the browser agent typed it, so search suggestions and other typing handlers fire. If the replay does not reach the run's final page, it runs again without Playwright's automation switches ( navigator.webdriver false, as in ForgeQE's browser). The handoff gets the result: which steps worked, and for each failed step, Playwright's reason (for example a dialog that intercepts the click), the page, the dialogs open on it, how many elements each of the element's other locators matched, and a screenshot and page snapshot. It also saves Playwright's page snapshot of each page the replay visited (roles, accessible names, and text, as the replay left the page; the last page once it stops changing), so Scribe takes locators for its steps and assertions from real pages instead of guessing them. On the last page it looks up each of the browser agent's checks and puts the Playwright locator that matched its text into the handoff (a heading or text match, the container it sits in when there are several, or the form field that holds it), so assertions come with a locator that worked. For a heading it also gives the part of the page the heading names (an element labelled by it, the section it heads, or the element right after it), with its locator and how many links and list items it holds, so a check such as \"an In the news section with at least one item\" is asserted inside that part, not on the heading alone. A step that fails while every step after it still works and the replay reaches the final page (a click that did nothing on the run, or a control this version of the page doesn't have) doesn't count as a failed replay: Scribe decides from the step whether the goal needs it and ports the rest as it is. When only the second launch got through, the handoff says the browser setup is the difference and which launch settings fix it. The first time, Playwright (about 13 MB) is downloaded into ~/.forgeqe/tools ; it drives the installed Chrome. A run that only opened a page still replays when it recorded checks, to look them up; with neither it skips this, and replay: false turns it off. Scribe first reads the repo (as a read-only agent: it cannot change files or use the live browser yet), while the replay runs when there is one, so the two overlap. What it learns (the framework, the command that runs one test, where page objects and config live, the conventions) is saved with page memory in scribe-notes.json , with the tests each job writes there. The next job in the same repo starts from those notes and that list instead of reading the repo again, and extends those tests' page objects when its flow overlaps; notes older than 30 days are read again. Scribe starts in the rep"},{"t":"How Scribe writes a test","u":"docs/index.html#doc-how_to_use-how-scribe-writes-a-test","g":"User guide · Automated tests","h":[],"x":"How Scribe writes a test Reuse before rebuild, extend before duplicate. Before Scribe writes anything, write_test measures what the repository's tests already cover of the run, from evidence rather than guesswork: each step and check the browser agent made on an element is matched, through page memory, to the page-object member that locates it, and the code graph says which tests reach that member (through the page methods they call, or a property they assert, such as Expect(practicePage.AjaxStatus) ). Steps on elements no page object locates yet are listed as not measured, since a test may do them its own way. Then: What it finds What happens One test covers every measured step and check Reuse : Scribe only finds the command that runs it, and changes nothing. If it fails, nothing is changed: you are asked whether to update it or write a new test. One test covers most (40% or more) Extend : Scribe adds only the missing steps and checks to that test, keeping every step and assertion it has; the reviewer rejects a removed or weakened assertion, or the steps copied into a new file Two or more tests cover most of it You choose : the evidence and the options (reuse, extend with how many steps it adds, a new test, cancel) Nothing covers much New : a new test, reusing the page objects and helpers as before A card says which it did and why ( Extending PracticeTests.Flow · covers 12 of 15; only 3 are missing ). Say how when you know (\"extend the login test\", \"write a separate test\", \"update it\") and ForgeQE's agent passes that on without asking. In every mode Scribe adds page-object members rather than changing what an existing member does for the other tests that use it. Copied code is measured. Before Scribe starts, ForgeQE notes the copies the repository already has (jscpd). When the test passes, its reviewer is told of each copy the job made since, such as a page-object method or a login written again in the test ( tests/checkout.spec.ts:12-30 copies existing code at pages/login.ts:8-26 ), and judges it by the test rules: a copy that should reuse what is there is an issue Scribe fixes. code.duplicates: false turns it off. The same flow asked again. When a session writes tests and you ask for a flow an earlier job already wrote a test for, ForgeQE runs that test first, before any browser run. If it passes in a real browser, that is the answer: no browser run, no Scribe, and no new test file, in the seconds the test takes ( ✓ Existing test passed · 19s · no browser run or new test needed ). If it fails, the flow runs in the browser and Scribe updates that test instead of writing another. ForgeQE's agent rewords a goal a little each time, so goals count as the same flow when they share their content words (endings, case, and phrasing aside) and the new goal keeps everything the earlier one checked; the same steps with a different final check, a shorter flow, or another site are a new flow. The agent also compares the earlier goal with your request and runs fresh when you ask for a check the earlier test does not have. Ask for \"a fresh run\" or \"a new test\" to skip the reuse. The run as a test would do it. The browser agent works through the same page a test meets, and the handoff tells Scribe everything it did on the way: A click on an element something covers (a confirmation after Add to cart, a pop-up) fails and names what covers it, so the agent closes it as a user would and that step is in the flow; the step after says what covered it, and \"What covered the page before a click\" lists them. The engine library would otherwise click the element from JavaScript, which a test cannot do. What it still does from a script (a click, typing to the page) is named on its step. Locators are the ones Playwright finds: no link role for an \u003ca\u003e without href (Chrome calls it a link, Playwright does not), icon-font characters kept out of names (a name with one becomes a role_pattern ), and a control that repeats on every row or card gets a locator scoped to its row ( #product-1 a.cart_quantity_delete ). An element in a frame says which frame, and the replay reaches it through frameLocator . Advertisements (Google's full-page ads, ad frames) are marked, left out of the replay, and \"Ads on these pages\" says to block the ad hosts in the test instead of closing them. A suite case runs from the state its test starts from: without the saved logins' sessions, so the agent signs in as the test will ( suite.restore_sessions: true keeps them; a login with no username and password to sign in with keeps its session, the only way in) and from the case's own start page (its URL, first step, description, or preconditions). When a run did start with saved sessions, \"State the run started with\" says so. When the flow cannot be reproduced. If ForgeQE's own replay of the run could not reach the run's final page and Scribe's test fails too, Scribe is told where the replay stopped and what was open on the page, since that is usually a pop-up, consent banner or ad the browser agent closed, or state its browser already had (signed in, items in a cart), and gets another attempt to handle it. The job stops, saying which replayed step failed and why, only when the test then fails the same way again, instead of spending its remaining attempts on a flow no script can repeat as recorded. Why a test failed. When ForgeQE's run of Scribe's test fails, the ✗ line and the next attempt say why in the test's own words: dotnet test's Error Message, pytest's E lines, or the error with its Expected and Received values (Playwright, Jest, JUnit), not the runner's summary line. Keeping Scribe's cost down. ForgeQE reads the repository's test setup itself before Scribe starts (stack, settings files and their browser values, the test id attribute, base classes, page objects and their methods, one test command) and hands it over, so Scribe does not discover it with dozens of file reads. Each attempt after the first starts a fresh session from a summary of "},{"t":"Heal failing tests","u":"docs/index.html#cap-heal-tests","g":"User guide · Automated tests","h":[],"x":"Automated tests Heal failing tests Runs a repository's tests and updates the ones the application has outgrown against the live app, or reports a real application bug instead. Ask it Heal the failing tests in ../app What it needs Required The coding agent, Scribe: a live model profile (or code.model) and the agent runtime, which forgeqe setup installs You give a repository with tests Tools heal_tests In detail"},{"t":"Fixing broken tests","u":"docs/index.html#doc-how_to_use-fixing-broken-tests","g":"User guide · Automated tests","h":[],"x":"Fixing broken tests When a redesign or a renamed button breaks tests, forgeqe heal fixes them, or tells you the app is what broke: bash Copy forgeqe heal --repo ../app # the command from code.test_command, or the agent finds it forgeqe heal \"npx playwright test tests/checkout\" --repo ../app forgeqe heal -- npx playwright test --project=chromium # everything after -- is the command yaml Copy code: repo: ../app test_command: npx playwright test # optional ForgeQE runs the command. If it passes, there is nothing to heal and no model is called. Scribe starts in the repo as a healing agent, with the failing output. For each failing test it reads the test and the page objects it uses, then re-runs the test's flow in the real browser with ForgeQE's browser_run (the goal in plain words, not the old selectors). If the browser run passes, the test is out of date. The agent reads that run's steps and locators with run_details , updates the test (in the page object when the locators live there), and runs it with run_test . If the browser run fails at the step where the test fails, the app is broken there. The test is left as it is and the failure is reported as an app bug. It never deletes or skips a test, loosens an assertion, or raises a timeout to make a test pass. ForgeQE runs each healed test's own command, then the whole command. A healed test that still fails goes back to the agent with the output, and so does any other failure left in the whole run, until everything passes or code.max_attempts rounds are used. Limits. A heal is capped by code.max_attempts , by each attempt's deadline (one browser run and two test runs), and by code.max_tokens for the whole job, as a coding job is. At each of these, and at a browser run's steps or time, it asks whether to carry on when someone can answer: in a terminal, in a chat, or on the Regression page for forgeqe pack heal (the question shows under the job's output, with Carry on and Stop here). At the deadline or the token budget the agent carries on in the same session, keeping what it worked out; after the last attempt, a yes gives it as many attempts again, from what it changed so far. Stop keeps its changes. No answer in 10 minutes on the page is a stop; --yes , a schedule or CI stops at the limit as before. text Copy ▸ ForgeQE runs the tests: npx playwright test ✗ Tests failed, exit 1 (41s) ▸ Scribe (azure/gpt-5.4) is healing the failing tests in app ⚙ read tests/pages/LoginPage.ts ▸ Browser: Sign in to staging.app.test and open the invoices page ✓ Task complete · 9 steps ⚙ edit tests/pages/LoginPage.ts ▸ ForgeQE runs: npx playwright test tests/login.spec.ts ✓ login › signs in passed in 6s ▸ ForgeQE runs the tests: npx playwright test ✗ Tests still fail, exit 1 (39s) ┃ ┃ ✗ Tests still failing 2/5 attempts · 2m 40s · 61.2K tokens · azure/gpt-5.4 ┃ ┃ ✓ login › signs in healed ┃ The Sign in button is now \"Log in\"; LoginPage uses the new label ┃ ! invoices › totals app bug ┃ The total column is empty; the browser run failed at the same step ┃ ┃ 1 failure is in the app, not the tests; the tests were left as they are. ┃ Command npx playwright test (exit 1 after 39s) ┃ Changed tests/pages/LoginPage.ts ┃ Report .forgeqe/reports/heal/20260929-101500/heal.md The report is heal.md and heal.json in .forgeqe/reports/heal/\u003ctime\u003e/ : each test's verdict and reason, the files changed, the browser runs (their folders sit next to the report), and the test output before and after. Exit codes: 0 the tests pass (or nothing needed healing), 1 some still fail, 2 stopped. In the shell or with forgeqe run , \"the checkout tests are failing after the redesign, fix them\" does the same through ForgeQE's agent."},{"t":"Migrate a test suite","u":"docs/index.html#cap-migrate-tests","g":"User guide · Automated tests","h":[],"x":"Automated tests Migrate a test suite Moves a repository's automated tests to another framework or language (Selenium, Cypress, Protractor, WebdriverIO, Puppeteer, TestCafe, Nightwatch, Robot Framework or Playwright to Playwright, Cypress, WebdriverIO or Selenium), after a plan that says first what is possible and what is not and that the user confirms; ForgeQE runs each migrated test itself, in a job if the user wants to keep working. Ask it Migrate the Selenium tests in tests/ to Playwright TypeScript What it needs Required The coding agent, Scribe: a live model profile (or code.model) and the agent runtime, which forgeqe setup installs You give a git repository with the tests to migrate Tools migrate_tests In detail"},{"t":"Migrating a test suite","u":"docs/index.html#doc-how_to_use-migrating-a-test-suite","g":"User guide · Automated tests","h":[],"x":"Migrating a test suite forgeqe migrate moves a test suite to another framework or language: Selenium (Java, C#, Python, JavaScript, Ruby), Selenide, Cypress, Protractor, WebdriverIO, Puppeteer, TestCafe, Nightwatch, Robot Framework or Playwright, to Playwright (TypeScript, JavaScript, Python, Java, C#), Cypress, WebdriverIO or Selenium (Python, Java, C#). forgeqe migrate targets lists them. It always starts with a plan, which writes nothing: bash Copy forgeqe migrate plan --from tests --to playwright-typescript # the source stack is detected forgeqe migrate plan --from e2e --stack protractor-typescript --to playwright-typescript --only \"checkout/**\" \\ --instructions \"Page objects go in pages/, one class per page\" forgeqe migrate confirm mig-20261103-101500-ab12 --accept-limits # a person at a terminal types the plan's id forgeqe migrate run mig-20261103-101500-ab12 # here, or as a job: forgeqe jobs add migrate-ui --now -- migrate run mig-20261103-101500-ab12 forgeqe migrate plan --git https://github.com/org/ui-tests.git --branch main --token-var GIT_TOKEN --to playwright-python forgeqe migrate plan --source-folder ~/projects/shop-ui-tests --to cypress-typescript forgeqe migrate verify mig-… [--workspace ws-…] # run every migrated test again (no model) forgeqe migrate fix mig-… --unit u006 --note \"The payment page opens in a new tab\" # the fixing agent on one file The tests can come from this project, a git repository (https or ssh; a token only by the name of the credential that holds it, passed to git through its environment and never in the URL, the command line or the clone's config), a folder anywhere on this computer, or files uploaded or pasted on the Migration page. A source outside the project is copied into a workspace of its own under ForgeQE's home and migrated there; the original is never changed. Links, hidden files and dependency folders are not copied. Plan. ForgeQE reads the source folder with no model: regular files only (a symbolic link is skipped and listed, never followed), test files, the support code they import, feature files, and test data. It orders the files so support code comes before the tests that use it, names each target file by the target's conventions ( test_login.py for pytest, LoginTest.java for JUnit, login.cy.ts for Cypress), and checks what is possible. What is possible. A blocker stops the plan: an unknown source stack, a mobile Appium suite to a browser framework, nothing to migrate, a target folder that already has files, no git repository, or the target's program (npx, python, mvn, dotnet) missing on this computer. A limit is something the target does differently: Cypress drives one tab and has no built-in iframes, Selenium cannot stub network calls, Protractor's Angular locators have no equivalent, a grid or cloud set-up is not carried over, BDD features need a BDD runner, code imported from outside the source folder is not migrated. Each limit names the files it affects; confirming accepts them all. Confirm. A person confirms the plan: at a terminal by typing its id, or on the Migration page of forgeqe web . The confirmation is kept under ForgeQE's home, by the plan's digest, so a plan file that comes with a repository is never already confirmed, and a plan edited after it was confirmed is refused. When the run starts, ForgeQE builds the plan again from the source and refuses it if the files, targets or limits changed. Run. The setup step makes the target folder a project of its own ( package.json and playwright.config.ts , requirements.txt and conftest.py , pom.xml , a .csproj ). Then a fresh agent session per file writes its target version. The agent may edit only the target folder. After each reply ForgeQE puts back any change outside it, removes symbolic links, and checks the file is at the planned path. For a test it also checks that every test of the source file is there, none is skipped or focused, and the assertions were kept. Then ForgeQE runs that one test with its own command, built from the plan ( npx playwright test login.spec.ts , python3 -m pytest test_login.py , mvn -q test -Dtest=LoginTest ) and started without a shell. A failure goes back to the agent with the output, up to code.max_attempts times. Validate and fix. When every file is done, ForgeQE runs each migrated test again with all files in place, and counts its tests and assertion lines against the source. Each test that fails goes to the fixing agent with its output, then runs again. From the page or with forgeqe migrate fix , you can send a test to the fixing agent yourself with a note. Report. A test is migrated only when ForgeQE's run of it passed. A support file is migrated when a test that uses it passed, and written otherwise. A file the agent could not do is failed or cannot be migrated , with why. The run is migrated (every test), partial or failed . A model error never counts as a migrated file. The source tests are never changed. migrate.md and result.json are in .forgeqe/migrations/\u003cplan\u003e/ , and the results are saved after each file, so running the plan again carries on and leaves finished files alone while they are unchanged. Exit codes of migrate run : 0 every test migrated, 1 some or none, 2 stopped. The Migration page of forgeqe web does all of this in four steps (source, target, instructions, review), then follows the job: its stages, every file, the tests with Fix, the source and target side by side, and the activity as it happens. In the shell, \"migrate our Selenium tests to Playwright\" makes the plan and shows it. You confirm it yourself, and ForgeQE's agent can then run it or add the job."},{"t":"Find and run existing tests","u":"docs/index.html#cap-find-run-tests","g":"User guide · Automated tests","h":[],"x":"Automated tests Find and run existing tests Finds the automated tests that match a feature, tags, ids, a folder, or a sprint, confirms the selection, and runs it once the user agrees, with a verdict per test. Ask it Run the checkout tests Run the tests added in sprint 12 What it needs Required The coding agent, Scribe: a live model profile (or code.model) and the agent runtime, which forgeqe setup installs You give a repository with tests Optional Azure DevOps or Jira, to pick tests by sprint: set up under sources: in forgeqe.yaml, or sign in with /auth Tools find_tests run_tests list_sprints In detail"},{"t":"Finding and running existing tests","u":"docs/index.html#doc-how_to_use-finding-and-running-existing-tests","g":"User guide · Automated tests","h":[],"x":"Finding and running existing tests Ask for the tests you want in your own words, in the shell or with forgeqe run : text Copy Run all test cases related to login Run the tests added this sprint Which tests cover checkout? Don't run them Run the tests added since 2026-09-01 Scribe starts read-only in the repo. It works out the test framework and decides each test by reading it: its body, and the page objects and helpers it calls. A test named guest can pay that signs in through LoginPage counts as a login test; a test that only mentions login in its name but checks something else does not. For a date range or sprint, it reads git history and selects the tests added in that range, including new test functions in files that already existed. It cannot change files or run anything. It gives two commands in the framework's own terms: one that lists exactly those tests ( playwright test --list , pytest --collect-only , dotnet test --list-tests , …) and one that runs them and writes JUnit XML or TRX results. ForgeQE runs the list command, and Scribe checks the listing is exactly its selection, fixing the command when it is not (up to three rounds). The list appears as a card: each test with its file and why it matches, the near misses that were left out, and the commands. Nothing runs until you say so. ForgeQE asks Run N tests? with Run and Don't run (in the shell a dialog; with forgeqe run a numbered prompt in the terminal). When you only asked which tests exist, it stops at the list. ForgeQE runs the tests itself and reads their results: a card with ✓ or ✗ for each test and the failure message, then the command, the result files, and the output. When tests fail, ForgeQE's agent offers to heal them with heal_tests . text Copy ┃ ▸ 3 tests found for \"tests related to login\" · Playwright (TypeScript) ┃ ┃ • login › signs in with a valid user ┃ tests/login.spec.ts · Fills the sign-in form and checks the account menu ┃ • login › rejects a wrong password ┃ tests/login.spec.ts · Submits a bad password and checks the error ┃ • checkout › guest can pay ┃ tests/checkout.spec.ts · Signs in through LoginPage before paying ┃ ┃ Left out: ┃ • signup › creates an account · Signs up; never signs in ┃ ┃ List npx playwright test --list --grep \"login|guest can pay\" (ForgeQE ran it: lists exactly these) ┃ Run npx playwright test --grep \"login|guest can pay\" --reporter=junit This sprint. For \"tests added this sprint\" or \"last sprint\", ForgeQE fetches the sprints from the Azure DevOps team ( sources.azure_devops , iterations of the project's default team unless you name one) and the Jira scrum boards ( sources.jira ), and asks which one you mean: the current, the three latest past, and the next sprint of each team or board, with their dates. The sprint's start and end dates become the range. Name a sprint (\"tests added in Sprint 41\") and it is matched without asking; give dates (\"since 2026-09-01\") and no sprint is fetched. The selection, the output, and the results are saved in .forgeqe/reports/tests/\u003ctime\u003e/ : selection.json , output.log , results.json , and the JUnit or TRX file. When a framework cannot write results (for example Jest without jest-junit ), the exit code decides and the card shows the end of the output instead. Through forgeqe mcp , ForgeQE cannot ask you, so run_tests returns the list and runs only when called again with confirmed: true ; the MCP client should ask you first."},{"t":"Reports for tests run outside ForgeQE","u":"docs/index.html#doc-how_to_use-reports-for-tests-run-outside-forgeqe","g":"User guide · Automated tests","h":[],"x":"Reports for tests run outside ForgeQE ForgeQE's HTML report is not only for runs it makes. run_tests and pr-tests --run write one, and so can any run in a terminal, an IDE's test runner, or CI: bash Copy forgeqe report test-results/junit.xml # from JUnit XML or TRX: any framework, after the run forgeqe report setup # a report after every Playwright or pytest run, automatically forgeqe report reads JUnit XML or TRX files, or the folder they are in (Playwright --reporter=junit , pytest --junitxml=results.xml , dotnet test --logger trx ), and exits 1 when a test failed. Each report is saved in \u003cout_dir\u003e/results/\u003ctime\u003e/ , so its Trends and Flaky tests pages cover the earlier runs, whoever ran them. JUnit carries one line per failure; a skipped test is counted, not shown. forgeqe report setup sets up the framework the repository uses: Playwright : it copies a reporter to .forgeqe/playwright-reporter.mjs (commit it) and prints the line to add to playwright.config : reporter: [[\"list\"], [\"./.forgeqe/playwright-reporter.mjs\"]] . Every run then ends with a report, from npx playwright test , the VS Code Playwright extension, or CI. With screenshot: \"only-on-failure\" and trace: \"retain-on-failure\" , each failure shows its screenshot, the full error and stack, and the trace. pytest : install ForgeQE in the environment that runs the tests. Its plugin loads by itself, from the terminal, VS Code's test explorer, or CI, in a folder with forgeqe.yaml or .forgeqe/ (elsewhere with pytest --forgeqe-report ). A test that passes when pytest-rerunfailures runs it again is reported as flaky. FORGEQE_REPORT=0 turns the reporters off for a run (ForgeQE's own run_tests does this, as it writes its own report). The reporters call forgeqe on PATH, or FORGEQE_BIN ; without it they keep the results file and print the command that builds the report. Screenshots and traces are copied into the report only from the working folder, never from a hidden folder or a file named like a key."},{"t":"Regression packs for a release","u":"docs/index.html#cap-regression-packs","g":"User guide · Automated tests","h":[],"x":"Automated tests Regression packs for a release Builds a regression pack from what goes into a release (an Azure DevOps sprint or work items, a commit range, pull requests, or changes read from any connected tool): the tests those changes can break, each with why, plus risk-area and smoke tests, and the changes no test covers. Runs it locally, on TestMu AI, or in a pipeline, compares each run with the last, and triages each failure: flaky, environment, broken test code, heal, or an AI browser re-run to tell a test the app outgrew from an app bug. Ask it Build a regression pack for sprint 12 and run it on TestMu Which tests should we run for the PRs merged this week? What it needs You give a repository with tests Optional Azure DevOps or Jira, to read a sprint's or release's work items: set up under sources: in forgeqe.yaml, or sign in with /auth Tools build_regression_pack run_regression_pack list_regression_packs regression_sources edit_regression_pack In detail"},{"t":"Regression packs for a release","u":"docs/index.html#doc-how_to_use-regression-packs-for-a-release","g":"User guide · Automated tests","h":[],"x":"Regression packs for a release A regression pack is the set of your repository's tests that a release's changes can break, saved under a name so you can run it again (here, on TestMu AI, or in a pipeline) and compare runs. Ask in your own words: text Copy Build a regression pack for sprint 12 and run it on TestMu Which tests should we run for the PRs merged this week? Build a pack for Jira fix version 2.4 and the commits since release/2.3 in ../shop-app Where the changes come from. Any mix of: an Azure DevOps sprint, area, epic or feature, or work item ids: their stories and bugs, the test cases each is tested by, and the files their linked pull requests changed; the commits between two refs of a repository ( from and to ): the product's repository, or the test repository's own; work items the commit messages name ( AB#123 , #123 , PAY-12 ) are read too; pull requests by number or URL, or the ones merged in the last N days (Azure DevOps or GitHub); anything ForgeQE's agent can read through its connected tools (a Jira release, GitHub issues, a Confluence release note): it reads the items and passes them in with their text and links. Why each test is in. A test can be in for more than one reason, and the card and \u003cname\u003e.md say each one: Reason Meaning linked it automates a test case that tests a changed work item ( .forgeqe/test-cases.json , or a case id in the test's attributes) test code changed the change is in the test repository, in code the test uses matches a change the work item's or pull request's words name what the test does: the elements it uses, its page, its name risk area the release touches an area with defects or failures before, and the test works there smoke the test is tagged smoke, so it is in every pack Gaps. Changes no test is in for are listed as not covered , each with the closest existing test and what it lacks, so you can extend that test rather than write a new one. The plan: what the release needs. Besides the tests to run, a pack is a plan in four groups, so what is ready is never mixed up with what someone still has to do: Group What it is Its script A Automated tests of the repository the pack found (the reasons above) checked only while its file is in the repository and still names the test; otherwise missing (moved, renamed or deleted since) B Manual test cases linked to a changed work item that no automated test runs run by a person C New automation changes no test covers: a test to write, or the closest one to extend to write D Exploratory the risk areas the release touches a session for a person Each entry has a priority, says where it came from ( found in the sources and the code, or suggested by ForgeQE or its agent) and keeps its evidence (the work item, pull request or defect history, with links). Change it in your words (\"take out the flaky ones\", \"add a manual check of the invoice PDF\", \"why is this in?\") or on the page: priority, take out and put back, move between B, C and D, add an entry. An automated test is added only when its file is in the test repository (no hidden file) and names the test, so the pack never claims a script it has not found. Every change is kept in the pack's history, with who made it. A pack starts as a draft ; save it (a name, the release) when it is right, then run it now or on a schedule (a job that runs forgeqe pack run ). Reuse it: Refresh : the same changes read again ( forgeqe pack build --refresh release-22 ); your edits and its runs stay. The next release : a new pack from new changes that keeps the edits of an earlier one ( --based-on release-22 ). Compare two releases: what each has ready, manual, to automate and exploratory, the tests and changes one has and the other not, and their last runs. --release \"Release 22\" names the release a pack is for. On the Regression page there are two tabs. On Agent you ask for a pack in a sentence (\"Create a regression pack for Release 22\"). The agent reads which sources the project is connected to (the test and product repositories, Azure DevOps, Jira, GitHub, test management, docs, a pipeline: the line at the top says which), says what a missing one would add and offers to connect it, and asks for the details it still needs, one or two at a time: the release, where its changes are, what to leave out, then whether to save it and run it now or on a schedule. Above the message box, The pack needs ticks off each detail as it is given (sources, release, changes, plan, saved, run); click a missing one to start your answer to it. The tab looks and works like the API page's Agent tab. None of the sources is required, and nothing runs until you say so. On Packs the packs are a table, newest first: each with how many entries are ready to run, scripts missing, manual, to automate and exploratory, and its last run. A row opens the pack's page: one strip of numbers (ready to run, script missing, the four groups, high priority, coverage of the release's changes, the last run; click one to show those entries), the plan as a table (all or one group, high priority, script missing, flaky or taken out, a search over tests, files and features, 50 rows a page with the highest priority first; a row opens its evidence), and beside it the release's changes, risk areas, runs and triage, history and a comparison with another release. Without a model set up, Choose the changes picks the sprint, commits or pull requests yourself. Running it. ForgeQE asks before it runs anything. This machine : ForgeQE builds one command for exactly the pack's tests, the way the repository already runs a test (for .NET, a --filter with each test, the settings an earlier job used, TRX results), runs it, and reads each result. A failed test runs once more; one that then passes is flaky. TestMu AI : the same command, with the variable FORGEQE_PW_WS_ENDPOINT set to TestMu AI's Playwright endpoint for the browser and platform in testmu.yaml (the access key goes in the variable, never in the command, and is removed from the "},{"t":"Flaky test detection and quarantine","u":"docs/index.html#cap-flaky-tests","g":"User guide · Automated tests","h":[],"x":"Automated tests Flaky test detection and quarantine Finds tests that flip between passing and failing in the repository's run history, with their likely cause, and quarantines them once the user agrees. Ask it Which tests are flaky? Quarantine the flaky login test What it needs You give a repository whose tests ForgeQE has run Tools flaky_tests quarantine_tests In detail"},{"t":"Flaky tests","u":"docs/index.html#doc-how_to_use-flaky-tests","g":"User guide · Automated tests","h":[],"x":"Flaky tests Every run_tests and pr-tests run keeps each test's result in .forgeqe/test-history.json in the repository (commit it to share the history, or keep it between CI runs as a cache). A test that fails runs once more in the same run, with the framework's own option (Playwright --last-failed , pytest --lf , Jest --onlyFailures ; otherwise the whole command again when the selection is small): when it then passes it is flaky , not failed, and the run does not fail because of it. \"Which tests are flaky?\" ( flaky_tests ) reads the history: each test's last results ( ✓✗✓↻✓ , where ↻ means it passed only when run again), its pass rate, a flakiness score (passes on retry plus pairs of flip-flops in the last 20 runs), and the likely cause from its failure messages, with an example: Cause From messages like Timing timeouts, waiting for an element, detached or stale elements An overlay another element intercepts the click, the element is covered or not visible Data expected one value, received another Network net::ERR_… , resets, 5xx responses Environment the browser closed or crashed, the server was not ready A test that only fails is broken, not flaky. Quarantine keeps a flaky test running, so its history goes on, but its failures stop failing the run and CI ( pr-tests --run exits 0 when only quarantined tests fail); no test code changes. A quarantined test that passes 5 runs in a row is offered for release. The agent offers quarantine_tests (it asks you first) and heal_tests to fix the cause. yaml Copy flaky: retries: 1 # runs of a failed test in the same run (0 to 3) quarantine: suggest # suggest (the agent asks), auto (ForgeQE quarantines), or off (history only) flaky_after: 2 # flakiness score from which a test counts as flaky"},{"t":"Pull requests","u":"docs/index.html#area-pull-requests","g":"User guide","h":[],"x":"12 Pull requests Reviews, impact, and the tests a change can break"},{"t":"Review pull requests","u":"docs/index.html#cap-pr-review","g":"User guide · Pull requests","h":[],"x":"Pull requests Review pull requests Reviews an Azure DevOps or GitHub pull request from the local clone for bugs, security, requirements, and tests, and posts the review once the user agrees. Ask it Review PR 42 and focus on error handling What it needs Required The coding agent, Scribe: a live model profile (or code.model) and the agent runtime, which forgeqe setup installs You give a local clone of the repository Required Azure DevOps, for Azure DevOps pull requests: set up under sources: in forgeqe.yaml, or sign in with /auth; or gh on PATH, for GitHub pull requests Tools review_pull_request post_pr_review In detail"},{"t":"Reviewing pull requests","u":"docs/index.html#doc-how_to_use-reviewing-pull-requests","g":"User guide · Pull requests","h":[],"x":"Reviewing pull requests Ask for a review with the pull request's link or its number in the repo you are in: text Copy Review PR 42 Review https://dev.azure.com/acme/Shop/_git/web/pullrequest/42 and focus on error handling Review my open pull requests ForgeQE reads the pull request: title, description, source and target branch, and the linked work items with their acceptance criteria (Azure DevOps, through its REST API with sources.azure_devops ), or the linked issues (GitHub, through gh , which must be signed in with gh auth login ). It fetches both branches from your clone's remote and checks the pull request's head out in a temporary worktree. Your branch, your working tree, and your uncommitted changes are not touched, and the worktree and fetched refs are removed afterwards. The working directory (or repo ) must be a clone of the pull request's repository. The reviewer's skills come from that clone and your own skill folders, never from the pull request, so a skill the pull request adds cannot steer its own review. Scribe reviews the diff read-only, reading the code around each change: bugs, security, what the linked work items ask for, missing tests, performance, and compatibility. Each finding has a severity (blocker, major, minor, nit), the file and line, the problem, and a suggestion. code.review_profile picks a cheaper model for it, as for test reviews. Before it starts, ForgeQE's copy-paste check ( jscpd , installed with ForgeQE) compares the pull request's head with the merge base and lists the code the change copies, from code already there or within itself (5 lines and 50 tokens or more). Scribe gets that list as measured evidence and raises a finding only where the copies must stay the same; review.md lists them under Copied code . The check uses ForgeQE's own settings, never the repository's .jscpd.json , and leaves out hidden files, dependencies and build output. code.duplicates: false turns it off; without jscpd's binary for your machine it is skipped. The findings appear as a card, and are saved in .forgeqe/reports/reviews/\u003ctime\u003e/ as review.md and review.json . Nothing is posted yet. To post, say so. ForgeQE asks Post the review? with Post review and Don't post . Findings on a changed line become comments on that line; the rest go in one summary comment with the verdict. On GitHub this is one review with event COMMENT : ForgeQE never approves, requests changes, or votes in your name. If the pull request got new commits after the review, posting is refused; review it again. Through forgeqe mcp , post_pr_review posts only when called again with confirmed: true ; the MCP client should ask you first."},{"t":"Pull request impact and test selection","u":"docs/index.html#cap-pr-impact","g":"User guide · Pull requests","h":[],"x":"Pull requests Pull request impact and test selection Works out which product areas, pages, requirements, and tests a pull request touches, picks the tests it can break, runs them, and posts the impact or results on the pull request once the user agrees. Ask it What does PR 42 impact? Run the tests PR 42 can break What it needs You give a local clone of the repository Required Azure DevOps, for Azure DevOps pull requests and their linked work items: set up under sources: in forgeqe.yaml, or sign in with /auth; or gh on PATH, for GitHub pull requests Tools analyze_pr_impact select_pr_tests post_pr_test_results comment_on_pr In detail"},{"t":"What a pull request impacts in the product","u":"docs/index.html#doc-how_to_use-what-a-pull-request-impacts-in-the-product","g":"User guide · Pull requests","h":[],"x":"What a pull request impacts in the product \"What does PR 57 impact?\" (or analyze_pr_impact ) says which parts of the product a pull request touches and what to test, also when the product's code is in another repository than the tests. Run it from the automation repository; give product_repo (a local clone of the product) when you have one, or just the pull request's link. Reading the pull request: from a clone of the product repository (its diff, and its imports, so a change to a shared component counts for every page that uses it), or, without one, through the GitHub ( gh pr diff ) or Azure DevOps API (the changed files and their contents). Work items: the ones the pull request is linked to, up through feature and epic, with their Area Paths. Pages: the test ids, ids, labels, placeholders, button and link texts, and routes in the changed code, matched against page memory (every element ForgeQE met on each page of the application). A changed data-testid=\"submit-order\" leads to every page that shows it; a changed route to the pages on that path; with a clone, a changed shared component to the page files that import it, then to their routes. Tests: in the automation repository, the tests that visit those pages (by path, page title, or a changed selector they use, directly or through a page object), the test cases they automate, and the stories those test cases test. Manual tests: the test cases of the impacted stories that no automated test covers yet. ForgeQE's agent writes the impact report from this: the areas with their evidence and a risk, side effects the diff suggests, the automated and manual tests to run, and the areas with no test; comment_on_pr posts it on the pull request after you agree. Page memory is what ties code to pages, so the more of the application ForgeQE has run, the more it can tie; changed UI files it cannot tie to a page are listed. Backend-only changes are tied through their work items and the agent's reading of the diff."},{"t":"Tests for a pull request","u":"docs/index.html#doc-how_to_use-tests-for-a-pull-request","g":"User guide · Pull requests","h":[],"x":"Tests for a pull request \"Run the tests for PR 42\" (or select_pr_tests ) picks the automated tests a pull request can break, so only those run: the test files it changes; the tests that import a changed file, following imports through page objects and helpers (JavaScript, TypeScript, Python); the tests that name a changed class or page object (every language, C# and Java included); the tests mapped in .forgeqe/test-cases.json to the test cases of the work items the pull request is linked to (Azure DevOps \"Tested By\"). Each test comes with why it was picked, and the changed files no test reaches are listed as a coverage gap. With a model, Scribe checks the candidates by reading the tests, adds tests that drive the changed behaviour through the UI, and gives the exact list and run commands; run_tests then runs them after you agree, and post_pr_test_results puts the results on the pull request (it asks first). The tests run from your working tree: check out the pull request's branch to run its versions of the tests. In CI, without a model: bash Copy forgeqe pr-tests --base origin/main --run # exit 0: passed or nothing affected; 1: a test failed forgeqe pr-tests 42 --run --post # and post the results on pull request 42 Without --agent , the impacted files run as they are; this builds the command for Playwright and pytest projects (for other frameworks add --agent , or run the listed files)."},{"t":"API","u":"docs/index.html#area-api","g":"User guide","h":[],"x":"13 API Contracts and end-to-end scenarios, without a browser"},{"t":"API and contract testing","u":"docs/index.html#cap-api-testing","g":"User guide · API","h":[],"x":"API API and contract testing Builds API contracts (status, schema, key fields) from the calls a browser run saw or from an API description (OpenAPI, Swagger, WSDL, GraphQL, .proto, gRPC reflection), and end-to-end API scenarios from runs, descriptions, test cases, or plain English. Runs them straight against the API without a browser, or writes them as tests in the repository. REST, GraphQL, SOAP, and gRPC. Ask it Turn the last run's API calls into tests Test the API in openapi.yaml Write API scenario tests for the order lifecycle Import our Postman collection and send its calls Add these cURL calls to the shop API What it needs Optional The coding agent, Scribe: a live model profile (or code.model) and the agent runtime, which forgeqe setup installs Limits Functional API testing, not load or stress testing. Tools api_contracts run_api_contracts api_scenarios run_api_scenarios write_api_tests api_new_set api_add_calls api_import_collection In detail"},{"t":"API and contract tests","u":"docs/index.html#doc-how_to_use-api-and-contract-tests","g":"User guide · API","h":[],"x":"API and contract tests ForgeQE tests APIs directly too: REST, GraphQL, SOAP, and gRPC. API tests check the same logic as UI tests in a fraction of the time, and they do not break when the page changes. Contracts come from two places: A browser run. Every browser run records the application's own API calls (XHR, fetch, event streams) in network.json in the run folder: method, URL, status, timing, and the request and response bodies when they are JSON, XML, or text. Secrets never reach the file: Authorization , cookies, and API key headers are dropped (only the kind of auth is kept, e.g. bearer), and fields named like a password, token, key, session, or card number are redacted in bodies and query strings. Analytics and monitoring calls are left out. \"Turn the last run's API calls into tests\" ( api_contracts from run ) groups the calls into operations: one per method and path, with ids in paths turned into {id} ( GET /api/orders/{id} ), GraphQL by operation name, SOAP by action, gRPC-web by method. Several calls to one operation make a better contract: a field in every answer is required, a value that differs between calls is not pinned. No model is used. An API description, by link or file: OpenAPI 3 or Swagger 2 (JSON or YAML, or the Swagger UI page, which ForgeQE looks behind for the document), WSDL for SOAP, a GraphQL endpoint (read by introspection) or an SDL or introspection file, .proto files, or grpc://host:port for a gRPC server with reflection (through grpcurl ). Each operation gets an example call from the description's examples; values it gives no example for are made up and the contract is marked as needing real values. Each contract has one example call and what its answer must have: the status , the content type , the body's schema , and key fields (ids, statuses, names, totals: present, with their type; a value only where it does not change between calls, like a status). GraphQL answers must have no errors ; SOAP answers no Fault and the expected elements; gRPC calls the OK status. Contract sets are saved in .forgeqe/reports/api/\u003cid\u003e/ : contracts.json (edit the examples freely, e.g. to give real ids) and api.md . Then: Run them now ( run_api_contracts , or forgeqe api run ): ForgeQE makes each call and checks the answer, without a browser or a model. Calls that change data (POST, PUT, PATCH, DELETE, mutations, SOAP and gRPC calls not named like reads) are left out unless you allow them, on a test environment; the agent asks first. Calls with made-up values are skipped until you give real ones. Results go to results.json and junit.xml , with report.html (each contract a case, its checks the steps, with what the API answered) and suite.json beside them; a 401 or 403 says which header the call needs. Write them as tests ( write_api_tests , or forgeqe api tests ): Scribe writes them in the repository's own framework and HTTP client (Playwright's request fixture, pytest with requests, REST Assured, RestSharp or HttpClient, supertest...) with the base URL from configuration and credentials from environment variables, and ForgeQE runs them until they pass. Credentials for API calls go in forgeqe.yaml , as references to environment variables; the values are sent, never stored or shown to a model: yaml Copy api: capture: true # record the application's API calls in every browser run (default) base_url: https://staging.shop.example # where contracts run when not where they were recorded or described headers: Authorization: Bearer ${API_TOKEN} X-Tenant: ${API_TENANT} third_party: false # keep calls to other sites than the page's (sign-in providers, CDNs) timeout_seconds: 30 bash Copy forgeqe api contracts --spec https://petstore3.swagger.io/api/v3/openapi.json forgeqe api contracts --run # the latest browser run's API calls forgeqe api run --base-url https://qa.shop.example # exit 1 when a contract fails: a CI gate forgeqe api tests --repo ../app # Scribe writes them as tests The Agent tab of the API tests page is a conversation: paste a link (an API description, a Postman collection, the docs), cURL commands, or tell it about the API in your words, and attach a file (a Postman collection is imported at once; an API description is kept in .forgeqe/specs/ for the agent to read). The agent makes the API and its calls in folders, as Postman would ( api_new_set , api_add_calls , api_import_collection , api_contracts ), sends them, and says what it found; each API it made shows as a card to open on the Workbench tab. It never puts a credential in a call: you set the API's sign-in on the Workbench. Postman collections (v2.0 and v2.1) come in from Add an API or the Agent tab, and go out with Export as a Postman collection : requests become calls in their folders, a saved example's status what each call must answer; only requests to the collection's own address are kept, and credentials (headers, secret variables, auth values) never are. An exported collection has a test of what each call must answer and {{variables}} where credentials go. On the API tests page's Workbench tab ( forgeqe web ), it works like Postman, with an agent beside it. The APIs are on the left, each with its calls (contracts) and flows (scenarios). Open a call to see and change its request (method, path, params, headers, a JSON body), Send it and see what came back (body, headers, the checks that passed or failed), Save it, and set what it must answer (the status, the statuses that also pass, fields with their type or value), or take it from a right answer with Use as what it must answer . Pick the environment from env.yaml at the top: calls go to its API app's address, and Run runs every call and then every flow there ( forgeqe api run-all ). A call that changes data asks first: Send it once , or Always on that environment (remembered for the API, never for an environment named like production). Sign in once per API: a bearer token, an API key in a header, or a user name and password; the value you type goes to the cred"},{"t":"End-to-end API scenarios","u":"docs/index.html#doc-how_to_use-end-to-end-api-scenarios","g":"User guide · API","h":[],"x":"End-to-end API scenarios A scenario is API calls in order, where later calls use values earlier answers gave: create a cart, add an item to {{cartId}} , place the order, read {{orderId}} . Each step has its own checks (status, schema, key fields). {{$unique}} is new on every run, for emails, usernames, and references that must not clash; {{$uuid}} , {{$now}} , and {{$randomInt}} are there too. Scenarios are saved in the contract set's contracts.json (edit them freely) and listed in api.md . There are four ways to make them ( api_scenarios ): From How Model A browser run ( --run ) The calls the application made, in order. A value an answer gave (an order id) that a later request sends, in its path, query, or body, becomes a variable: saved from that answer, used in that request. A GET made again (polling) is kept once. Emails and usernames sent to sign-up endpoints get {{$unique}} . The UI flow becomes the same flow at the API level. no An API description ( --spec , or a saved set) For each resource with an item path ( /pets and /pets/{petId} ): its lifecycle (create, read, update, read, delete, then read gives 404), browsing (the list, then its first item), the description's OpenAPI links , and negative cases : an id that does not exist gives 404, no credentials give 401 or 403, an empty body gives 400 or 422. The id comes from the links, else the field named like the path parameter, else id . no Test cases ( --cases ado:2238,jira:SHOP-12 ) One scenario per test case, planned by the model against the set's operations: the calls, the data, the values to carry, and the case's expected results as checks. Cases with nothing to test are left out with the reason (the same rules as the test case check). The scenario keeps its test case. yes Plain English ( --text \"...\" ) or a story \"Create a user, log in, add two items, check out, verify the order total.\" Planned the same way. yes The planner only uses operations the set has: a step no operation does is listed as unmatched, never invented. Give it the API's operations with --spec (an OpenAPI or Swagger link or file) or a saved set; without a description, make contracts from a browser run first. Every plan is checked before it is saved (each operation exists, each variable is saved before it is used) and shown step by step; nothing runs until you run it. run_api_scenarios (or forgeqe api run-scenarios ) runs them against the API, without a browser or a model: each step in order, the values passed on, every step's checks. A failed step stops its scenario, and the scenario's cleanup steps (deleting what it created) run, those whose values exist. Scenarios that change data run only after you agree (in CI: --allow-writes ), on a test environment. Results go to scenario-results.json and scenarios-junit.xml , with report.html (each scenario a case, its calls the steps) and suite.json beside them. API runs count in the team report . On your existing API automation. write_api_tests with scenarios (or forgeqe api tests --scenarios ) has Scribe write each scenario as an end-to-end test in the repository, built on what is already there: It maps the repository's API layer first: clients, request helpers, auth and base URL fixtures, data builders, schemas. Each step calls the helper that already calls that operation; only operations without one get a new helper, in the same style. It reuses helpers, never tests: a scenario never runs another test as a step, and sets up its own data. A shared helper is only added to, never changed in a way its tests rely on. When Scribe changes one, ForgeQE also runs the tests that use it, and sends any failure back until both pass. A scenario test for a test case is named after it and recorded in .forgeqe/test-cases.json , and set as the Azure DevOps test case's Associated Automation when write-back is on. bash Copy forgeqe api scenarios --run # the latest browser run's flow, chained forgeqe api scenarios --spec https://shop.test/openapi.json # lifecycles, browsing, links, negative cases forgeqe api scenarios --cases ado:2238,ado:2239 --spec openapi.yaml forgeqe api scenarios --text \"create a user, add two items, check out, the total is the sum\" --spec openapi.yaml forgeqe api run-scenarios --allow-writes --base-url https://qa.shop.test # exit 1 when one fails forgeqe api tests --scenarios --repo ../api-tests # on the repo's existing helpers"},{"t":"Quality","u":"docs/index.html#area-quality","g":"User guide","h":[],"x":"14 Quality Accessibility, page performance, and visual changes"},{"t":"Accessibility and page performance","u":"docs/index.html#cap-accessibility-performance","g":"User guide · Quality","h":[],"x":"Quality Accessibility and page performance Checks every page a run visits against WCAG rules (axe-core) and measures its Core Web Vitals, against budgets, with trends over time per page. Ask it Is the checkout page accessible? Did page performance get worse this week? What it needs You give a browser run (from browser_run or run_test_cases); new runs need a live model Limits Per-page Core Web Vitals, not load testing under many users. Tools quality_report quality_trends In detail"},{"t":"Accessibility and performance budgets","u":"docs/index.html#doc-how_to_use-accessibility-and-performance-budgets","g":"User guide · Quality","h":[],"x":"Accessibility and performance budgets Every browser run checks each page it visits and times it, with no extra step: Accessibility: axe-core (installed with ForgeQE) runs the rules of the standard you choose on each page as the agent finds it. The report lists the rules that passed and each rule that failed , with its WCAG success criterion and level, its impact (critical, serious, moderate, minor), the elements, and how to fix it. Automated checks find a part of the WCAG problems (often 30–50%): they are a pre-check, not conformance, and a manual review still matters. quality.accessibility.engine: basic uses ForgeQE's own smaller set of checks instead. Performance: each page's Core Web Vitals, measured in the browser the agent drives: LCP (largest contentful paint), CLS (layout shift), INP (the slowest interaction the agent made), FCP , TTFB , load time, requests and transfer size. These are lab values from one visit, not field data from real users. A run fails on them only when a budget is exceeded . Without budgets they are reported and tracked, never failed. When a budget is exceeded, the run's steps still passed: forgeqe run exits 1, the browser run says budget_exceeded , a suite case counts as failed (a bug is filed when bugs are set up), and a test is still written for the flow. yaml Copy quality: accessibility: standard: wcag21aa # wcag2a, wcag21aa (default), wcag22aa, wcag21aaa, section508, en301549, best-practice best_practice: false # also axe-core's best-practice rules budgets: accessibility: # most violations per page by impact; unset impacts have no limit (or: accessibility: true for 0 critical, 0 serious) critical: 0 serious: 0 rules: [color-contrast, label] # must pass everywhere ignore: [region] # not counted performance: # or: performance: web-vitals (LCP 2.5s, CLS 0.1, INP 200ms, FCP 1.8s, TTFB 800ms) preset: web-vitals lcp_ms: 3000 load_ms: 5000 pages: # by path prefix; the longest match wins /search: { lcp_ms: 4000 } Over time: every run adds each page's violations and timings to .forgeqe/reports/quality-history.json (keep it between CI runs as a cache). \"Did accessibility regress?\" or \"is checkout getting slower?\" ( quality_trends , or forgeqe quality trends [page] ) shows each page's violations over the last runs, the rules that newly fail or were fixed since the previous run, and each timing against its usual value (the median of the last 10 runs; slower or faster only beyond noise). forgeqe quality [run] ( quality_report ) shows one run's WCAG results, timings and budgets. bash Copy forgeqe quality # the latest run: WCAG rules passed and failed, Core Web Vitals, budgets forgeqe quality trends shop.test # per page over time; exits 1 when a page got worse"},{"t":"Accessibility testing with personas","u":"docs/index.html#cap-accessibility-personas","g":"User guide · Quality","h":[],"x":"Quality Accessibility testing with personas A browser agent does a goal as a person with a disability would (a blind screen reader user, keyboard only, low vision, colour blind, cognitive, or the project's own personas) and records each barrier with its WCAG criterion and severity. Not functional testing. Ask it Act as a blind person and use the website to find accessibility issues Can a keyboard-only user check out? What it needs Required A live model profile in llms.json (an API key or Microsoft Entra ID sign-in) Limits A simulated persona and automated checks are a first pass, not a conformance claim or a test with real users. Tools accessibility_test accessibility_personas In detail"},{"t":"Accessibility testing with personas","u":"docs/index.html#doc-how_to_use-accessibility-testing-with-personas","g":"User guide · Quality","h":[],"x":"Accessibility testing with personas The accessibility agent does a goal on your site as a person with a disability would , and records each barrier that person meets. It is not functional testing: whether the feature works is not judged, only whether this person can perceive, operate and understand it. Ask the agent (\"act as a blind person and use the website to find accessibility issues\", \"can a keyboard-only user check out?\"), or from a terminal: bash Copy forgeqe a11y \"find running shoes and add a pair to the basket\" --persona blind,keyboard-only --url https://shop.test bash Copy forgeqe a11y personas Each persona is one browser run. The agent works the way the person does: Persona How the agent uses the page blind Screen reader: no screenshots. It reads the page only through the accessibility tree (headings, landmarks, links, form fields, each with its role, name and state) and what each key press puts in focus. Keyboard only. keyboard-only Sees the page, but has no mouse: Tab, Shift+Tab, arrows, Enter, Space, Escape. Each key press says what has focus and whether a focus indicator shows. low-vision The page zoomed to 200% (it reflows as at that zoom). colour-blind Chrome's deuteranopia emulation: the screenshots show the page as the person sees it. cognitive Plain language, clear errors, time limits, consistency. reduced-motion The browser asks for reduced motion. deaf Captions, transcripts, sound-only information. high-contrast Forced colours (a high contrast theme). For each persona the report ( .forgeqe/reports/accessibility/\u003ctime\u003e-\u003cgoal\u003e/accessibility.md ) says whether they reached the goal, each barrier with its severity (critical: stops them; serious; moderate; minor) and WCAG success criterion, and the automated rule checks (axe-core) of the pages they visited. The run folders keep the evidence: steps, screenshots, video when on. A run as a persona uses no page memory, site rulebook or skills, since those hold how to click through the site. Your own personas are .forgeqe/personas/\u003cid\u003e.yaml . Ask the agent to save one (\"add a persona: an older user with a hand tremor who zooms to 150%\": it shows the persona and asks first), or write the file: yaml Copy id: older-tremor name: Older user with a hand tremor description: 78, uses a laptop with a large font, finds small targets hard to hit and gives up on long forms. perception: sight # sight, or screen_reader (no screenshots, keyboard only) input: keyboard # any, or keyboard (the mouse actions are taken away) vision: none # none, blurred, reduced_contrast, achromatopsia, deuteranopia, protanopia, tritanopia zoom: 1.5 # 1 to 4 media: [reduced_motion] # reduced_motion, forced_colors, more_contrast, dark watch_for: - small click targets close together - forms that time out A persona file can come from the repository, so ForgeQE reads it strictly: only these keys, each setting from its list, no YAML aliases. Its text describes the person to the browser model; what the browser does comes only from the settings. A simulated persona is not a real user, and automated checks find only part of the problems: treat the result as a first pass, and confirm important barriers with people who use assistive technology."},{"t":"Visual comparison with baselines","u":"docs/index.html#cap-visual-comparison","g":"User guide · Quality","h":[],"x":"Quality Visual comparison with baselines Compares each page a run captures with its approved baseline and shows what changed; intended changes become the new baseline once the user agrees. Ask it What changed visually since the last run? Approve the new header What it needs You give a browser run (from browser_run or run_test_cases); new runs need a live model Tools visual_compare visual_approve In detail"},{"t":"Visual comparison","u":"docs/index.html#doc-how_to_use-visual-comparison","g":"User guide · Quality","h":[],"x":"Visual comparison Every browser run also captures each page it visits and compares it, pixel by pixel, with that page's approved baseline : Capture: the state the flow leaves each page in, with animations and transitions frozen, the text caret hidden, and the regions you mask hidden (their space kept), so a page compares on what changed, not on what moves. ForgeQE's own overlay is never in the picture. The viewport by default; full_page: true captures the whole page (up to 8000 px tall). Baselines: in .forgeqe/visual-baselines/ next to forgeqe.yaml (commit them to share), one per page, screen size and operating system, since fonts render differently. A page's first capture becomes its baseline ( auto_baseline: false turns that off), and baselines.json records which run each baseline came from and why. Compare: each page is same , changed (the share of pixels that differ, and a diff image with the changed pixels in red), or new . Anti-aliasing is ignored; threshold sets how different two colours must be to count. A taller or wider page counts its new area as changed. Budget: a run fails only when quality.budgets.visual is set and a page changes by more than that share of its pixels (a page can have its own limit). Without it, changes are reported, never failed. Approve: when a change is intended, \"approve the new home page\" ( visual_approve , or forgeqe visual approve [run] --page /home ) makes the run's capture the new baseline, after you agree. An unintended change is a visual defect. The report's Visual page shows the baseline, this run, and the difference side by side for every page, changed pages first; click any image to see it full size. yaml Copy quality: visual: mask: [\".clock\", \"#ad-slot\", \"[data-testid=carousel]\"] # hidden on every page pages: /news: { mask: [\".ticker\"], max_diff_percent: 5 } # by path prefix full_page: false threshold: 0.1 # colour difference that counts (0–1) auto_baseline: true budgets: visual: 0.5 # most a page may change, in percent of its pixels (or: visual: true for 0.1%) bash Copy forgeqe visual # the latest run's pages against their baselines forgeqe visual approve --page /home # make this run's /home the baseline (asks first; --yes to skip)"},{"t":"Defect intelligence: trends and prediction","u":"docs/index.html#cap-defect-intelligence","g":"User guide · Quality","h":[],"x":"Quality Defect intelligence: trends and prediction Groups failures into defects, keeps their history across suites (new, known, gone, back again), and gives defect trends and where a change is likely to cause defects, with the cases to run first. Ask it Which defects keep coming back? What can the changes since main break? What it needs You give suites run into one folder (suite.out_dir) Optional git on PATH, for predictions from the product's repository Limits Prediction is a heuristic from the saved suites and the change, not a trained model; its accuracy shows once suites have scored it. Tools defect_trends predict_defects In detail See Bugs for failures ."},{"t":"Defect trends and prediction","u":"docs/index.html#doc-how_to_use-defect-trends-and-prediction","g":"User guide · Quality","h":[],"x":"Defect trends and prediction forgeqe defects (or \"which defects keep coming back?\") reads the suites saved in suite.out_dir and their defect-history.json , and writes defect-trends.md next to them: how many defects are still there, gone, or came back after a fix; the time they took to go away; the most seen ones with their bugs; defects by area (a page or an API route, by its path without ids); defects per suite; and how often predictions were right. The report's Defects page shows the same under Across runs . forgeqe defects predict [--repo DIR] [--base REF] [--head REF] (or \"what can the changes since main break?\") says where a change is likely to cause defects. It reads the change between the merge base of base (default: the remote's default branch, else main or master ) and head in defects.product_repo (else the working directory). A change touches an area when it changes a file named after it ( server/cart.ts for /api/cart/:id ) or its diff mentions the route. Each touched area gets a score from what the saved suites know: Signal Score The diff mentions the area's route +3 A changed file is named after it +2 Each earlier defect there (three at most) +2 Defects there came back after a fix +2 A defect there is still open +1 Its cases failed in 20% (50%) of recent runs +1 (+2) 6 or more is high, 3 or more medium. It lists the cases that ended on the high and medium areas as the ones to run first, and the changed product code that no case reaches. It is a heuristic, not a trained model: each prediction is saved in defect-predictions.json , and the first suite after it scores it (did its defects fall in the areas rated medium or high; did the high areas get one), so forgeqe defects gives its accuracy. Release readiness uses the defects too: a regression on a case in scope blocks the release (NO-GO), and a new defect with no bug is a risk."},{"t":"Release","u":"docs/index.html#area-release","g":"User guide","h":[],"x":"15 Release Requirement coverage and a release verdict"},{"t":"Requirement coverage and release readiness","u":"docs/index.html#cap-release-readiness","g":"User guide · Release","h":[],"x":"Release Requirement coverage and release readiness Gives requirement coverage and a GO / GO WITH RISKS / NO-GO verdict for a sprint, area, epic, or stories, from test cases, results, bugs, and flaky tests; can publish it to the wiki. Ask it Are we ready to release? Coverage of sprint 12 What it needs Required Azure DevOps or Jira: set up under sources: in forgeqe.yaml, or sign in with /auth Tools release_readiness In detail"},{"t":"Requirement coverage and release readiness","u":"docs/index.html#doc-how_to_use-requirement-coverage-and-release-readiness","g":"User guide · Release","h":[],"x":"Requirement coverage and release readiness \"Are we ready to release sprint 12?\", \"coverage of epic 300\" (or release_readiness ) builds the coverage matrix for an Azure DevOps scope: a sprint ( current or a name), an area path, an epic or feature and every story under it, or story ids. Each story with the test cases that test it (\"Tested By\"), whether each is automated (Automation status, or .forgeqe/test-cases.json ), and its last result: the newest test point outcome in Azure DevOps, or, where no plan has run it, ForgeQE's own runs (suite reports, then the automated test's history). Gaps: stories with no test case, test cases nobody automated, cases that have not run. Open bugs in the scope and linked to its stories, by severity. Flaky and quarantined tests from the test history. The verdict: NO-GO when something blocks (open critical or high bugs past the limit, a story with a failing test case, the pass rate below the minimum), GO WITH RISKS when something is missing (stories without test cases, cases not run or blocked, flaky or quarantined tests, other open bugs), else GO; each with its reasons. The report is saved as readiness.md (and readiness.json ) under .forgeqe/reports/readiness/ , shown as a card, and published to the project wiki with publish: \"/Release readiness/Sprint 12\" after you agree. The agent can also build an Azure DevOps dashboard for it with create_ado_dashboard . yaml Copy release: max_critical: 0 # open severity-1 bugs allowed max_high: 0 # open severity-2 bugs allowed min_pass_rate: 95 # percent of executed test cases that must pass require_tests: true # a story without a test case is a risk"},{"t":"Reports you can share","u":"docs/index.html#cap-reports","g":"User guide · Release","h":[],"x":"Release Reports you can share Writes up what the Orchestrator found, such as open defects across projects, release status, or pipeline health, as a page with filters (project, state, priority, assignee, …), charts, and a sortable table, plus Markdown and CSV. Every table is built from evidence: the results of the tool calls the agent made, or a read-only query ForgeQE runs itself, listed on the page's Sources with each raw result kept beside the report. Ask it Create a release report for all projects Write up the open defects as a report I can share What it needs Required A live model profile in llms.json (an API key or Microsoft Entra ID sign-in) Limits Rows come only from tool results in the session or a query ForgeQE runs; the agent writes only the summary, which is not checked figure by figure. A WIQL query reads up to 1000 work items; the page says when a query matched more. The page is not published anywhere unless the reports folder is served (notify.report_url). Tools write_report In detail"},{"t":"Reports from the agent","u":"docs/index.html#doc-how_to_use-reports-from-the-agent","g":"User guide · Release","h":[],"x":"Reports from the agent Ask for a report and ForgeQE's agent writes one you can share: \"generate a defect report for all open defects\", \"create a release report for all projects\", \"summarise this sprint's test results as a report\". Every table in it is built from evidence , not typed by the model: ForgeQE keeps the result of every tool call in the session (its own tools, and the Azure DevOps and Jira MCP servers). A dataset of the report names the calls it comes from, and ForgeQE takes the rows from their results. Or the dataset is a read-only query that ForgeQE runs itself when it writes the report: a WIQL query reads up to 1000 work items with their project, type, state, priority, severity, assignee, area, iteration, dates, and a link. The agent uses this for \"all\" of something. Or the dataset is ForgeQE's own past results ( history: ): suites (one row per run, with its run type in suite_scope ), case_results , step_results , writebacks , readiness , readiness_stories , or readiness_cases , from every run on this machine and the bundles teammates shared with forgeqe bi export (see Team report ). Every row has user and machine . The agent writes only the summary paragraph. The report goes to the reports folder ( export.out_dir , .forgeqe/reports/ by default): text Copy .forgeqe/reports/open-defects-all-projects-20261013-101512/ report.html # one file: Overview (summary, analytics, charts), the rows (filters, sortable table), Sources report.md # the same, to edit, paste into a wiki, or attach open-defects.csv # each dataset's rows evidence/E1.json # the raw result of each tool call the report used The page has three parts in its menu: Overview : the summary, then what the data says. When the rows are work items (defects, bugs, tickets), it works out from them: how many are open, critical and high, unassigned (and how many of those are critical or high), their median and oldest age, and how many had no change in 30 days; Needs someone now , the critical and high ones with nobody on them or untouched for 30 days; severity by project, who has them (the same person written \"Khan, Javed\" or \"Javed Khan\" counted once), how old they are, how many were opened each week, and the most used tags. Other data gets a count by each of its columns. Click a bar to see its rows. The rows (named after the data, such as Open defects): filters for the columns that are in the data (Project, State, Type, Priority, Severity, Assigned To, Area, Iteration, …, and other columns with a short list of values), a search, a table sorted by any column, 50 rows at a time, and Export CSV for the rows you filtered. Sources : each tool call, when it ran, and how many rows it gave, with a link to its raw result. The analytics are arithmetic on the rows, worked out in the page; the model writes none of them. The chat gets a short summary and a card with the paths as links, and Open the report appears as a next step. To post it, ask for it (\"post the report to the release channel\") once notify.channels is set up; the reports folder is linked when it is served ( notify.report_url )."},{"t":"Team report","u":"docs/index.html#doc-how_to_use-team-report","g":"User guide · Release","h":[],"x":"Team report forgeqe bi builds one report from every run in the reports folder: browser suites, monitor rounds, release readiness, single browser runs, desktop and mobile runs, exploratory testing, and API runs, each tagged with its run type. It builds an Evidence site (needs Node.js); without Node.js, or when Evidence fails, it writes ForgeQE's own page, which opens straight from disk ( bi: in forgeqe.yaml ; see README.md ). bash Copy forgeqe bi init # scaffold the Evidence project and install its packages forgeqe bi build # refresh the data and build (ForgeQE's own page if Evidence cannot build) forgeqe bi build --static # ForgeQE's own page only, no Node.js needed forgeqe bi sync # refresh the datasets and pages, without building forgeqe bi export [--out FILE|DIR] # your runs, in one file to share forgeqe bi build --from //share/qa-reports # this machine's runs plus every bundle there (repeatable) For one report across the team, each person runs forgeqe bi export , which writes their runs and readiness reports to one file in .forgeqe/reports/shared/ . Whoever builds puts the files in \u003cout_dir\u003e/collected/ ( .forgeqe/reports/collected/ by default), or lists shared folders under bi.collect , or passes --from , and runs forgeqe bi build . Every table gets user and machine columns; the report adds Results by run type and Case results by person tables. A run that arrives twice (in two bundles, or a bundle and this machine) counts once. A bundle is read as data only: a file that is not one, or is larger than 64 MB, is skipped with a note. In the shell, /report builds ForgeQE's own page from the same data, /report export writes your bundle, and /report \u003cwhat\u003e asks the agent for a report (see Reports from the agent )."},{"t":"Static BI","u":"docs/index.html#doc-readme-static-bi","g":"User guide · Release","h":[],"x":"Static BI forgeqe bi adds an offline BI layer on top of those reports. It exports curated CSV datasets from ForgeQE's own suite history and release-readiness reports, plus optional Azure DevOps WIQL and Jira JQL datasets from bi.datasets in forgeqe.yaml , into an Evidence project that reads them through its CSV source, then runs evidence sources and evidence build to produce a static site in the configured build directory. ForgeQE uses the open-source Evidence line ( @evidence-dev/evidence 40.x, pinned in the generated package.json ), because the newer Evidence Studio CLI has no local build and keeps data in its cloud. Building it needs Node.js 18 or later; serve the folder to view it ( npx serve ), since it cannot load its data when opened from disk. When Node.js is missing or the Evidence build fails, forgeqe bi build writes ForgeQE's own self-contained page from the same data instead, which opens straight from disk, and says why; --static always does that, and --evidence fails instead of falling back. Dataset ids become table names ( forgeqe.\u003cid\u003e ), so they use letters, digits, and _ . Pages ForgeQE generates carry a \"Managed by forgeqe bi\" comment in their front matter; a page without it is yours and is never overwritten. Tables with no rows yet stay out of the Evidence project (Evidence cannot build over an empty table), and their sections read \"None yet.\" No backend service stays up between runs. yaml Copy bi: title: ForgeQE BI datasets: ado_current_sprint: kind: ado_wiql project: Shop wiql: | SELECT [System.Id] FROM WorkItems WHERE [System.TeamProject] = @project AND [System.WorkItemType] IN GROUP 'Microsoft.RequirementCategory' jira_open_bugs: kind: jira_jql jql: project = SHOP AND issuetype = Bug AND statusCategory != Done bash Copy forgeqe bi init # scaffold the Evidence project and install its packages forgeqe bi build # refresh the data and build the site (ForgeQE's own page if Evidence cannot build) forgeqe bi build --static # ForgeQE's own page only, no Node.js needed"},{"t":"One report for the whole team","u":"docs/index.html#doc-readme-one-report-for-the-whole-team","g":"User guide · Release","h":[],"x":"One report for the whole team Each person runs forgeqe bi export , which writes every kind of run they have (suites, monitor rounds, single browser runs, desktop, mobile, exploratory and API runs, and release-readiness reports) to one JSON file in .forgeqe/reports/shared/ , each run tagged with its run type. Whoever builds the report puts the files they receive in .forgeqe/reports/collected/ (or lists shared folders under bi.collect in forgeqe.yaml , or passes --from FILE|DIR , repeatable) and runs forgeqe bi build . Every table gets user and machine columns, the home page and ForgeQE's own page gain \"Results by run type\" and \"Case results by person\" tables, and a run that arrives twice (from two bundles, or a bundle and this machine) counts once. A bundle is read as data only: anything that is not one, or is larger than 64 MB, is skipped with a note, and a malformed run inside one is skipped whole. In the shell, /report builds ForgeQE's own page from the same data, /report export writes your bundle, and /report \u003cwhat you want\u003e asks the agent, which can now build write_report datasets from these past results ( history: case_results , suites , readiness , …) as well as from live Azure DevOps or Jira queries. bash Copy forgeqe bi export # your runs, in one file to share forgeqe bi build --from //share/qa-reports # this machine's runs plus every bundle in that folder"},{"t":"Model prices and usage","u":"docs/index.html#doc-how_to_use-model-prices-and-usage","g":"User guide · Release","h":[],"x":"Model prices and usage Prices. ForgeQE prices every model call at the model's list price , from two public price lists: models.dev (the list the agent runtime uses) and LiteLLM's model price list, which also has Azure's Data Zone prices. It keeps the few fields it needs in ~/.forgeqe/prices.json , waits a few seconds for it the first time, refreshes it once a day in the background, and uses the last copy offline; only the public lists are downloaded, nothing about your runs is sent ( FORGEQE_PRICES=off stops the downloads). Costs at list price say so: $1.73 (list price of gpt-5.4 (Azure Global) from models.dev, 2026-10-06) . For an Azure Data Zone deployment, which costs about 10% more, set \"deployment_type\": \"data_zone\" on the profile. Model parameters. Models differ in what a request may carry: reasoning models (o1, o3, o4, gpt-5) take max_completion_tokens instead of max_tokens and only the default temperature, and some OpenAI-compatible servers refuse max_completion_tokens , reasoning_effort or response_format . ForgeQE works this out by itself. A profile is a reasoning model when its model or deployment name says so (an Azure deployment called chat-prod with \"model\": \"gpt-5.4\" counts), or when it sets \"reasoning\": true ; \"reasoning\": false says it is not. When the API still refuses a parameter, the browser, desktop and mobile agents send the call again without it and leave it out of later calls to that model. Nothing needs setting for a new model. A profile's own \"price\": { \"input\": 2.5, \"output\": 15, \"cached_input\": 0.25 } (per million tokens) wins, for a negotiated or enterprise rate. Leave currency out and reports use this machine's currency, or set \"currency\": \"USD\" . Without cached_input , cached input gets the model's cache discount from its list price, and the cost is marked as an estimate ( ≈$1.52 ); with no list price for the model either, cached input is charged at the full rate and the cost is an upper bound ( up to $6.11 ). When your price differs from the list price, ForgeQE says so ( forgeqe models , the shell, and the start of each command), since that is usually a typo or an old price. Anthropic's cache writes are priced at their own rate. A provisioned (PTU) deployment is billed per hour, not per token, so its costs are what the tokens would cost at list price. Requests over a model's long-context threshold (272K tokens for GPT-5.4) cost more and are priced at the normal rate. Usage after every job. Every browser run, Scribe job, heal, suite, and monitor round ends with a Usage line: tokens in (and how many of them were cached), tokens out, and the cost at the profile's price. A request to ForgeQE's agent in the shell, and every forgeqe run , code , suite , and heal command, ends with the total for everything it started, by role: text Copy This request used 1.1M tokens (1.1M in, 30.0K of it cached · 34.7K out) · $3.07 — ForgeQE's agent 42.0K · $0.12, browser agent 52.7K · $0.15, Scribe 1.0M · $2.80"},{"t":"Spending budgets","u":"docs/index.html#doc-how_to_use-spending-budgets","g":"User guide · Release","h":[],"x":"Spending budgets A budget warns you before model spend gets out of hand. Set it under budget: in forgeqe.yaml , in the currency of your prices (see Model prices and usage ): yaml Copy budget: run: 2 # one browser run day: 25 month: 400 # currency: USD # default: the currency of the model's price Set any of the three. A budget only warns; it never stops a run . Each budget warns once at 80%, once at 90%, and once at 100%. When spend jumps past more than one of these at once, you get one warning, for the highest: text Copy Budget: this month's model spend is at $245.10, 82% of the $300.00 month budget (budget.month in forgeqe.yaml). Nothing is stopped. Where you see it. In the shell, the warning is a line in the conversation. Every other forgeqe command writes it to the terminal's error output. What counts. run is the spend of one browser run. day and month add up every ForgeQE process on this machine (days and months are in UTC). Runs that the agent starts through the MCP server count too, because every process writes its model calls to the usage ledger in ~/.forgeqe/usage/ ( FORGEQE_USAGE_DIR moves it). The ledger holds counts, times, and names, never prompt or response text. With FORGEQE_USAGE=off , nothing is kept on disk, and a budget counts only the calls of the process that warns. What does not count. A call with no price, such as a github_copilot profile without a price , and a call priced in a different currency than the budget. Spend from before. If you start ForgeQE when the day or month is already past 80%, it does not repeat that warning. It warns only for a threshold that spend passes from then on. In reports. The Trends and forecast page of a report's Tokenomics shows spend on this machine and the next days at the recent pace, against the budget."},{"t":"Systems","u":"docs/index.html#area-systems","g":"User guide","h":[],"x":"16 Systems Azure DevOps, Jira, and Confluence"},{"t":"Work with Azure DevOps, Jira, GitHub, and Confluence","u":"docs/index.html#cap-systems","g":"User guide · Systems","h":[],"x":"Systems Work with Azure DevOps, Jira, GitHub, and Confluence Reads anything in the configured systems (work items, issues, queries, boards, pages), makes changes the user asks for, puts run evidence (screenshots, reports) on work items and issues as attachments or comments, and builds Azure DevOps dashboards and wiki pages. Ask it Show the open bugs in this sprint Read the checkout requirements from Confluence Make a dashboard of this sprint's test results Add the last screenshot of that run to ADO 256 as a comment Run the GitHub issues labelled login as test cases What it needs Required Azure DevOps or Jira or Xray or Confluence: set up under sources: in forgeqe.yaml, or sign in with /auth Tools read_confluence create_ado_dashboard write_ado_wiki_page attach_to_work_item In detail"},{"t":"Azure DevOps, Jira, and other systems","u":"docs/index.html#doc-readme-azure-devops-jira-and-other-systems","g":"User guide · Systems","h":[],"x":"Azure DevOps, Jira, and other systems ForgeQE's agent connects to each system's MCP server, configured from the same sources: settings in forgeqe.yaml : organization, site URL, and the names of the environment variables that hold the tokens. You don't write any MCP config yourself. Azure DevOps's server is the organization, so a project is optional and only limits ForgeQE's own test, sprint, and bug calls. System MCP server Needs Azure DevOps Services Microsoft's Azure DevOps MCP server ( npx @azure-devops/mcp ), with all its tools, each turn getting the groups it needs: work items, boards, test plans, pipelines, repos, wiki pages, search, and security alerts Node.js, and ADO_PAT or az login Jira Cloud, Server/Data Center mcp-atlassian ( uvx ), with issues, JQL search, comments, and transitions. mcp: rovo uses Atlassian's hosted server instead (Cloud, and an admin must allow API tokens) uv; JIRA_EMAIL and JIRA_API_TOKEN (Cloud) or a personal access token (Server/DC) Confluence mcp-atlassian, shared with Jira (or its own when Jira isn't set up); Atlassian's hosted server covers it on the same site confluence: true on a Jira Cloud site, or confluence.url + tokens GitHub GitHub's hosted MCP server with every toolset, each turn getting the groups of tools it needs ( sources.github.toolsets limits them), on in a repository with a GitHub remote or when sources.github is set. GitHub issues are also a test case source ( github:#12 , github:acme/shop#12,#13 , github:label=login , github:q=login in:title ): results go back as issue comments, and sources.bugs.system: github files bugs as issues. GitHub has no API to upload a screenshot to an issue, so a bug names the run folder instead GITHUB_TOKEN , or the GitHub CLI's sign-in ( forgeqe auth login github ) Xray, TestRail, Zephyr Scale, qTest none; ForgeQE's API XRAY_CLIENT_ID / XRAY_CLIENT_SECRET , TESTRAIL_EMAIL / TESTRAIL_API_KEY , ZEPHYR_API_TOKEN , QTEST_TOKEN GitLab (GitLab.com or self-managed) GitLab's built-in MCP server ( \u003curl\u003e/api/v4/mcp ): projects, issues and work items, merge requests, pipelines. integrations.gitlab.toolsets limits it GITLAB_TOKEN : a fine-grained personal access token with the MCP permission BrowserStack BrowserStack's MCP server ( npx @browserstack/mcp-server ): sessions, App Automate, accessibility scans, test management Node.js; BROWSERSTACK_USERNAME and BROWSERSTACK_ACCESS_KEY Postman Postman's hosted MCP server (US or EU; full, minimal or code tools): workspaces, collections, environments, mocks POSTMAN_API_KEY Azure Microsoft's Azure MCP server ( npx @azure/mcp ), read-only unless read_only: false , all services or namespaces Node.js; az login or another Azure sign-in Microsoft Dataverse Microsoft's Dataverse MCP server ( npx @microsoft/dataverse mcp \u003curl\u003e ): tables and records Node.js; sign in once with npx @microsoft/dataverse auth create --environment \u003curl\u003e , and an admin enables the server and its CLI client Sentry (sentry.io or self-hosted) Sentry's MCP server ( npx @sentry/mcp-server ): issues, events, stack traces, releases Node.js; SENTRY_ACCESS_TOKEN (a user auth token) TestMu AI (formerly LambdaTest) TestMu AI's hosted MCP server ( https://mcp.lambdatest.com/mcp ): HyperExecute jobs, triage of failed automation runs, SmartUI visual differences, accessibility scans, Test Manager a browser sign-in only ( forgeqe auth login testmu ); it takes no key Anything else servers you add under mcp: yaml Copy sources: azure_devops: { org_url: https://dev.azure.com/acme } # every project; token in ADO_PAT. project: Shop limits ForgeQE's own calls jira: { url: https://acme.atlassian.net } # JIRA_EMAIL + JIRA_API_TOKEN integrations: # vendors' own MCP servers for systems that are not test case sources gitlab: true # GitLab.com, token in GITLAB_TOKEN sentry: { organization: acme } # SENTRY_ACCESS_TOKEN dataverse: { url: https://acme.crm.dynamics.com } mcp: github: url: https://api.githubcopilot.com/mcp/ headers: { Authorization: \"Bearer {env:GITHUB_TOKEN}\" } Tokens never go into the config: servers get them through {env:NAME} references that the agent runtime fills in, and the agent never sees them. GitLab, Sentry, Postman, BrowserStack and Atlassian's Rovo server can instead be signed in to in the browser, and TestMu AI's server only that way ( forgeqe auth login \u003csystem\u003e , or Sign in on its card in Settings), with the system's own sign-in; Azure and Dataverse sign in through their CLIs. forgeqe mcp list shows what your settings give. When the agent starts, the shell and forgeqe run print which servers connected. Whatever has no MCP server, or whose server didn't connect, goes through ForgeQE's own tools, which call the REST APIs directly: find_test_cases and run_test_cases for test cases and posting results back, read_confluence for Confluence pages, and query_api to read anything else from Azure DevOps, Jira, Xray, or Confluence. query_api only reads (GET requests and Xray GraphQL queries) and only reaches the configured hosts. sources.azure_devops.mcp: false or sources.jira.mcp: false uses the API only. Microsoft's Azure DevOps server can't create dashboards, so \"create a dashboard in QI-Payments with all defects and this sprint's stories\" goes through ForgeQE's create_ado_dashboard : one shared query per widget under Shared Queries/ForgeQE , then a dashboard with a work item list or count tile for each. Your ADO_PAT needs Work Items (read and write) and permission to edit dashboards. Chart widgets aren't made through the API; for those the agent uses the browser, signed in to dev.azure.com with a saved login. Its wiki tools can only write into a wiki that already exists, so wiki pages go through ForgeQE's write_ado_wiki_page . If the project has no wiki yet, that tool creates the project wiki first, along with any missing parent pages. The PAT needs Wiki (read and write). Pull requests are opened with ForgeQE's create_ado_pull_request (\"create a PR from feature/cart to main in the shop repository\"), since the repo"},{"t":"Read any data in Azure DevOps, Jira, Xray, and Confluence, and open Azure DevOps pull requests","u":"docs/index.html#cap-system-data","g":"User guide · Systems","h":[],"x":"Systems Read any data in Azure DevOps, Jira, Xray, and Confluence, and open Azure DevOps pull requests Reads through a system's REST API what its MCP tools do not cover: pull requests and repositories, test plans and suites, classic releases, and anything else in Azure DevOps, Jira, Xray, or Confluence. Opens Azure DevOps pull requests, which the API reads cannot. Sets a pull request reviewer as required, which the MCP server's update_reviewers cannot. Given on every turn once a system is set up, so the agent never turns to the browser or the shell for them. Ask it Are there open pull requests in any repository of QI-Claims? List the test plans in QI-MobileBanking with their suites Create a pull request from demo_mai_qiclaims to main in the QI-Claims Typescript repository Add javed@example.com as a required reviewer on PR 55 What it needs Required Azure DevOps or Jira or Xray or Confluence: set up under sources: in forgeqe.yaml, or sign in with /auth Tools query_api create_ado_pull_request set_ado_pr_reviewer In detail See Azure DevOps, Jira, and other systems (from the README)."},{"t":"Reference","u":"docs/index.html#reference","g":"User guide","h":[],"x":"17 Reference MCP, tuning, logs, environment variables, and every command"},{"t":"MCP","u":"docs/index.html#doc-how_to_use-10-mcp","g":"User guide · Reference","h":[],"x":"MCP"},{"t":"Servers ForgeQE's agent connects to","u":"docs/index.html#doc-how_to_use-servers-forgeqes-agent-connects-to","g":"User guide · Reference","h":[],"x":"Servers ForgeQE's agent connects to When ForgeQE's agent starts, it connects to an MCP server for each system set up under sources: . The server settings come from the same place as everything else: the organization and project, the site URL, and the names of the environment variables that hold the tokens. You don't write MCP config for these. Every tool, without paying for every tool. Each server is started with everything it has: Azure DevOps with all its tool groups, Jira and Confluence with TOOLSETS=all , GitHub with every toolset. Every tool given to the model is sent with each of its requests (GitHub's are about 79K tokens, Jira's and Confluence's about 29K, Azure DevOps' about 21K), so a turn gets only the groups of tools its request needs, the way it gets ForgeQE's own capabilities: ForgeQE asks each server for its tools when the session starts and keeps the list for a week ( ~/.forgeqe/cache/mcp-tools ), then groups them by their names. No server needs a table of its own: tools named by prefix ( repo_… , wit_… , jira_… ) are grouped by prefix, and a large prefix again by what its tools are about (Jira's sprints, boards, versions); tools named verb first ( list_pull_requests ) by what they act on (pull requests, issues, Dependabot alerts). A group is named \u003cserver\u003e:\u003cgroup\u003e , such as github:pull-request or atlassian:jira-sprint . A turn gets a group when its request names what the group is about (\"create a PR\", \"the current sprint\", \"dependabot alerts\"), when its tools ran in the last turns, or when the agent asks for it with use_capabilities : every group is in the list of capabilities the agent has, so none is out of reach and the browser is never the way round a missing tool. A request that names a system (\"the GitHub repository\", \"in Azure DevOps\") gets that system's groups from its words, not another's. A small server (under about 3K tokens) is one group, on every turn. A server ForgeQE could not ask keeps all its tools on every turn, as before. agent.capabilities.always and off take group ids too: always: [github:issue] , off: [github:copilot] . Azure DevOps. Microsoft's Azure DevOps MCP server , run with every tool group it has: projects and teams ( azure-devops:core ), iterations and boards ( azure-devops:work ), work items ( azure-devops:wit ), pipelines ( azure-devops:pipeline ), repositories and pull requests ( azure-devops:repo ), wiki ( azure-devops:wiki ), test plans ( azure-devops:testplan ), search ( azure-devops:search ), and security alerts ( azure-devops:advsec ). The first four are on every turn (about 21 tools, roughly 10.7K tokens); the others come as described above. ForgeQE's own tools cover dashboards, wiki pages in a project without a wiki, and opening pull requests ( create_ado_pull_request ) and reviewing them, and query_api reads anything else, such as classic releases. The organization comes from org_url ( https://dev.azure.com/acme or https://acme.visualstudio.com ). ForgeQE passes the PAT from token_env (default ADO_PAT ) the way the server wants it; without a PAT it uses your az login session. Its tools are azure_devops_* . mcp_domains says which groups are on every turn (default [core, work, work-items, pipelines] ; [all] for every group, at about 21K tokens a request); agent.capabilities.off switches a group off for good ( [azure-devops:advsec] ). It needs Node.js. Azure DevOps Server (on-premises) isn't supported by Microsoft's server, so it uses ForgeQE's API. yaml Copy sources: azure_devops: org_url: https://dev.azure.com/acme # the MCP server takes the organization, not a project # project: Shop # optional: limit ForgeQE's own API calls to one project token_env: ADO_PAT mcp: true # false: API only mcp_domains: [core, work, work-items, pipelines, repositories] # optional: groups on every turn; the others come when needed Microsoft's server has no dashboard tools and can't save queries. Ask for a dashboard (\"create a dashboard in QI-Payments with all defects in every state and the current sprint's stories\") and ForgeQE's own create_ado_dashboard tool does it through the REST API with ADO_PAT : it runs each WIQL query once to check it, saves it as a shared query under Shared Queries/ForgeQE (updating one of the same name), and creates a team or project dashboard with a work item list or count tile per query, plus optional markdown text. The PAT needs Work Items (read and write) and permission to edit dashboards. Chart widgets are not made through the API; for those the agent uses the browser, which has to be signed in to dev.azure.com ( forgeqe login \u003cname\u003e with a login for it under logins: ). Microsoft's wiki tools ( azure_devops_wiki , azure_devops_wiki_upsert_page ) only work in a wiki that already exists. In a project without one they answer \"No wiki found\". Ask for a wiki page and ForgeQE's write_ado_wiki_page tool writes it through the REST API instead. If the project has no wiki, the tool creates the project wiki ( \u003cProject\u003e.wiki ) first, then any missing parent pages (empty), then the page itself. A page that already exists is replaced. Code wikis are written on their published branch. The PAT needs Wiki (read and write). A login added to forgeqe.yaml while ForgeQE is running is picked up the next time the agent lists logins or signs in. Jira. mcp-atlassian , run with uvx mcp-atlassian , for Jira Cloud ( JIRA_EMAIL and an API token in JIRA_API_TOKEN ) and Server/Data Center (a personal access token in token_env ). Its tools are atlassian_jira_* : get and search issues (JQL), create and update issues, comments, transitions, and fields. It needs uv, which ForgeQE's engine uses anyway. For Jira Cloud you can use Atlassian's hosted Rovo MCP server instead with mcp: rovo . It authenticates with your email and API token, but an organization admin must first turn on API token authentication for it. yaml Copy sources: jira: url: https://acme.atlassian.net mcp: mcp-atlassian # rovo | false Xray. Xray has no official MCP server, so ForgeQE's own t"},{"t":"ForgeQE as an MCP server","u":"docs/index.html#doc-how_to_use-forgeqe-as-an-mcp-server","g":"User guide · Reference","h":[],"x":"ForgeQE as an MCP server forgeqe mcp serves ForgeQE's tools to other agents over stdio (MCP): json Copy { \"mcpServers\": { \"forgeqe\": { \"command\": \"forgeqe\", \"args\": [\"mcp\", \"--repo\", \"/path/to/app\"] } } } Tool What it does browser_run Carry out a goal in a real browser and report pass or fail, steps, and the run folder find_test_cases Read cases from Azure DevOps, Jira, Xray, TestRail, Zephyr Scale, qTest, files, or text without running them run_test_cases Run cases as a suite: step verdicts, reports, JUnit, write-back, and bugs run_details A run's steps and locators with confidence, for writing a test run_test ForgeQE runs a test command and returns the exit code and output page_memory What page memory knows about a host or page, the recorded flows, or clear a host's memory (clear asks first; confirmed: true over MCP, only after the user agreed) read_confluence Confluence pages as text, by id, link, or CQL query_api Read anything from Azure DevOps, Jira, Xray, or Confluence through their APIs, with ForgeQE's credentials push_branch Push to a new branch; never the default branch, never forced set_ci_secret Store an environment variable as a GitHub or Azure Pipelines secret without revealing it write_test Turn a passed run into a test in the repo; ForgeQE runs it until it passes in a browser and a reviewer approves it (up to code.max_attempts ) heal_tests forgeqe heal : fix out-of-date tests, report app bugs, and confirm by running the tests find_tests Find a repository's existing tests that match a request, a date range, or a sprint, confirmed with the framework's list command; nothing runs run_tests Run a find_tests selection after the user confirms ( confirmed: true over MCP), with a result per test list_sprints Recent sprints from Azure DevOps and Jira with their dates monitor One monitor round, start/stop/status of a background monitor, or a test alert logins List logins, forget sessions, or sign in by hand (not over stdio, which has no one to wait for) forgeqe_setup Profiles, MCP servers, the docs by topic, installing the engine, scaffolding a config, and listing, showing, or creating skills databases The databases set up for the project (never passwords or connection strings); with test , connect to one database_schema What a database holds: its tables, or the tables a question needs with their columns and joins run_sql One checked SQL statement: reads in a read-only session with a row cap; a write only on a writable database, after the user agrees ( confirmed: true over MCP) generate_test_data Test data from a spec that fits the schema, or a masked subset of real rows: previewed, written to files, or inserted after the user agrees test_data_batches The batches generate_test_data inserted; remove one again after the user confirms request_test_data Ask the DB agent for the test data a test needs: existing rows by a read-only query, or new rows from a spec, with the SQL or INSERT script kept in test-data/requests/ for forgeqe data fetch data_flows The data flows in flows.yaml : list, map, impact of a table or column, or suggest, validate and save a flow check_flows Check each hop of the flows: every row arrived, mapped columns hold the expected values, no duplicates, on time trace_record Follow one record through the flows, hop by hop read_mapping_file Read a mapping sheet in the project (.xlsx, .xlsm, .csv, .tsv), to write data flows from mobile_upload Upload an Android or iOS build to TestMu AI (LambdaTest) after the user agrees; returns its lt:// id generated_attribution The footer for a pull request and the trailer for a commit that include ForgeQE's code: the runs' fq: ids and how much they wrote forgeqe_command A forgeqe command no other tool covers, in an allowlisted shape; reading commands run at once, the others after the user agrees ( confirmed: true over MCP) --repo sets the working directory (default: where it starts), and --profile , --url , and --headed apply to browser runs. Progress goes to stderr; stdout carries only MCP messages. Long calls send progress notifications, and a cancelled call stops its browser. The shell and forgeqe run use the same tools, served to the agent runtime over local HTTP with a one-time token."},{"t":"Engine tuning","u":"docs/index.html#doc-how_to_use-12-engine-tuning","g":"User guide · Reference","h":[],"x":"Engine tuning Engine settings are FORGEQE_ENGINE_* variables. Set them in the shell or .env ; they win over forgeqe.yaml : Variable Default Effect FORGEQE_ENGINE_TIMEOUT_SECONDS timeout_seconds (600) Whole-run limit FORGEQE_ENGINE_STEP_TIMEOUT 180 Per-step limit FORGEQE_ENGINE_FAST_MODE true Flash mode, no planning FORGEQE_ENGINE_FULL_AGENT_MODE false The engine's full agent mode instead of fast mode FORGEQE_ENGINE_MAX_ACTIONS_PER_STEP engine default Actions per model call FORGEQE_ENGINE_MAX_FAILURES engine default Consecutive failures before stopping FORGEQE_ENGINE_LOW_VISION_DETAIL from vision_detail Low-detail screenshots FORGEQE_ENGINE_CONTROL_LOOP_MAX_RETRIES 4 Repeats of the same click, input, search, or select before the agent is told to change approach; the same number again after that stops the run FORGEQE_ENGINE_CHANNEL / FORGEQE_ENGINE_EXECUTABLE_PATH chrome Browser to launch FORGEQE_ENGINE_SKIP_ERROR_RECOVERY_PROMPT false Drop the recovery instructions"},{"t":"Logs for debugging","u":"docs/index.html#doc-how_to_use-13-logs-for-debugging","g":"User guide · Reference","h":[],"x":"Logs for debugging Every session ( forgeqe start , run , suite , heal , monitor , code , mcp , login , setup ) writes a log to .forgeqe/logs/ next to forgeqe.yaml (the newest 30 are kept). It has the versions and settings in use, what you asked, ForgeQE's agent's answers and every tool call with its result, every browser step and result, the browser engine's own log lines, and errors. Secrets are replaced before anything is written: API keys, tokens and passwords from the environment, keys in llms.json , and credentials you gave in a message. Each session has two files with the same events: \u003ctime\u003e-\u003ccommand\u003e.log , to read: a header with what ran, where, with which model and settings, then one entry per event with the time on this computer, where it came from ( BROWSER , AGENT , TOOL , MODEL , RUN , ERROR …) and what happened in words, its details indented below. Paths inside the project are written from it, and errors stand apart with a blank line around them: text Copy 15:58:44 BROWSER Step 2 · Checkout Page https://shop.example.com/checkout Goal Pay with the saved card Action CLICK #pay 15:58:46 BROWSER ✗ Step 2 failed Error #pay not found \u003ctime\u003e-\u003ccommand\u003e.jsonl , the same events as data, one {\"at\", \"kind\", \"data\"} object a line, for scripts and tools (and what ForgeQE's own pages read). Logs written before this change are one file with a line of data each, and are still read. To share a session, type /logs in the shell ( /logs shots adds screenshots), or run forgeqe logs bundle afterwards. Either writes one .tar.gz with the session log, the run folders it mentions ( run.json , steps.json , trace.md , resume.json , workflow.yaml , the failure screenshot), your forgeqe.yaml , your profiles without keys, and the versions. forgeqe logs lists recent logs. Start with --debug (or set FORGEQE_DEBUG=1 ) for more: the browser engine logs at debug level, and long values such as tool results are kept whole instead of cut at 8,000 characters."},{"t":"Which tools ForgeQE's agent gets","u":"docs/index.html#doc-how_to_use-which-tools-forgeqes-agent-gets","g":"User guide · Reference","h":[],"x":"Which tools ForgeQE's agent gets Every model call carries the definitions of the tools the agent has, so it does not get all of them. Each turn gets: the core: help, setup, use_capabilities , and the test environments and their apps; the capabilities the request is about , picked without a model call from its words (each capability's keywords in src/capabilities/registry.ts ), the apps of the environment it names (a mobile app means the mobile tools), and links (the browser); capabilities used in the last few turns , so a conversation keeps its tools. A capability this project cannot use yet (no mobile apps, no Jira) is not picked from words alone. When a request needs a capability the turn did not get, the agent calls use_capabilities , and ForgeQE continues the same request with its tools. With fewer tools in view, the agent also cannot mix up similar ones ( browser_run , desktop_explore , mobile_explore ). forgeqe context shows what a turn carries, and what each capability adds. The session log ( /logs ) records which capabilities each turn got and why ( agent.scope ). Pin capabilities on, or switch them off for a project, in forgeqe.yaml (ids from forgeqe features ): yaml Copy agent: capabilities: always: [regression-packs] off: [desktop-apps] FORGEQE_TOOL_SCOPE=off gives every tool on every turn. MCP clients of forgeqe mcp (Claude Desktop, Cursor, Claude Code) list tools once rather than per turn, so they get the core and every capability this project can use (no desktop tools without desktop apps, no tracker tools without a tracker). use_capabilities adds others and sends notifications/tools/list_changed , which tells the client to read the list again. For a client that ignores it, forgeqe mcp --all-tools lists every tool."},{"t":"Env overrides","u":"docs/index.html#doc-how_to_use-14-env-overrides","g":"User guide · Reference","h":[],"x":"Env overrides Variable Effect WP_CONFIG Path to forgeqe.yaml WP_LLMS_JSON Path to llms.json WP_LLM_PROFILE Active profile, unless --profile is set WP_AZURE_API_KEY / OPENAI_API_KEY / WP_API_KEY Keys referenced by profiles COPILOT_GITHUB_TOKEN A github_copilot profile's GitHub token (fine-grained, with the Copilot Requests permission), unless the profile's api_key_env names another; else the saved token, then the browser sign-in ( forgeqe auth login copilot ) FORGEQE_COPILOT_TOKEN The token forgeqe auth login copilot saves; set by ForgeQE from the credential store, not by hand FORGEQE_CONFIG_DIR Global config folder (default ~/.config/forgeqe ): forgeqe.yaml , llms.json and .env used when a project has none FORGEQE_PYTHON A Python that already has the engine's libraries, used instead of the managed venv (skipped, with a note, when it cannot run the engine) FORGEQE_DEBUG 1 logs at debug level, like --debug FORGEQE_TOOL_SCOPE off gives ForgeQE's agent every tool on every turn, instead of the tools of the capabilities each request is about FORGEQE_ROUTING off also puts every playbook in the agent's prompt (for comparing, or ruling out a routing fault) FORGEQE_HOME Where the managed engine lives, user skills ( skills/ ), and page memory when there is no config file (default ~/.forgeqe ) ADO_ORG_URL / ADO_PROJECT / ADO_PAT Azure DevOps organization, project, and token when sources.azure_devops doesn't set them JIRA_URL / JIRA_EMAIL / JIRA_API_TOKEN Jira site and credentials when sources.jira doesn't set them XRAY_URL / XRAY_CLIENT_ID / XRAY_CLIENT_SECRET Xray Cloud endpoint and API key pair CONFLUENCE_URL / CONFLUENCE_EMAIL / CONFLUENCE_TOKEN Confluence site and credentials when sources.confluence doesn't set them TESTRAIL_URL / TESTRAIL_EMAIL / TESTRAIL_API_KEY TestRail site, user, and API key ZEPHYR_API_TOKEN / ZEPHYR_URL Zephyr Scale Cloud token (turns Zephyr on) and API base QTEST_URL / QTEST_PROJECT_ID / QTEST_TOKEN qTest site, project, and API token TEAMS_WEBHOOK_URL Teams webhook for monitoring alerts ( monitor.alerts.teams.webhook_env names another) SMTP_HOST / SMTP_PORT / SMTP_USERNAME / SMTP_PASSWORD / ALERT_EMAIL_TO SMTP server, login, and recipients for monitoring email when monitor.alerts.email doesn't set them See 15. Commands cheat sheet ."},{"t":"The web app","u":"docs/web-app/index.html","g":"More documentation","h":[["Starting it","starting-it"],["The first time: Set up","the-first-time-set-up"],["The layout","the-layout"],["Home and a chat","home-and-a-chat"],["The pages","the-pages"],["Reports the agent writes","reports-the-agent-writes"],["Settings","settings"],["Safe by design","safe-by-design"],["When something is wrong","when-something-is-wrong"]],"x":"forgeqe web opens ForgeQE in your browser: the same agents as the shell, with a chat on Home, pages for recordings, runs, reports, API tests, quality, data, regression packs and schedules, and every setting as a form. It runs on your computer only and works on one project folder at a time, as the CLI works in the folder it is started in. Starting it It opens in your default browser and prints its address, such as http://127.0.0.1:53817/ token=… . In CI, on a Linux machine without a desktop, or with no open , it only prints the address: open it yourself. When it does not open the browser, or the browser could not be opened, the next line says why. The page keeps the token for that browser tab only; another tab, or the page after the token is gone, says it is signed out: open the printed address again. Ctrl+C in the terminal stops it. Option What it does port N A fixed port instead of a free one, for a bookmark or when a port is taken. config forgeqe.yaml Work on the folder of that file. no open Print the address without opening the browser. The first time: Set up The first page is Settings › Set up , in four steps. Until the folder has a forgeqe.yaml , the other sections of Settings are locked. 1. Project folder. The folder ForgeQE works on: browse to it, type its path, or make a new folder. It can be a clone of your test repository tests written from passed runs go there , a clone of the application, or an empty folder to try ForgeQE in. ForgeQE does not clone repositories: clone with git first, then pick the folder. 2. ForgeQE in this folder. The same as forgeqe init : forgeqe.yaml , llms.json , the environment files and a .forgeqe folder with prompts, skills and guardrails to change. Files already there are kept, and .forgeqe/reports/ is added to .gitignore . 3. This computer. What ForgeQE runs with the browser engine and the agent runtime , with Install what's missing , which runs forgeqe setup and shows its output. 4. A model. At least one model with its key or sign in, under Models . For a GitHub Copilot seat, sign in here or in Models below . Dark mode. Each person chooses for their own browser: Dark/Light in the sidebar's footer moves through System as the computer is set , Light and Dark, and Settings › Appearance › Colour mode has all three. In dark mode the page and the sidebar go dark, links and the accent are lightened so they read, code is coloured for a dark page, and logos drawn in black turn white. A project's own sidebar colour Appearance is for light mode. Signing in to GitHub Copilot Set up, and Settings › Models › Sign ins does what forgeqe auth login copilot does. Sign in with GitHub runs GitHub's own Copilot CLI sign in downloaded the first time : the page shows GitHub's link with Open GitHub and the one time code with Copy , and waits while you approve on GitHub; the sign in stays in the system's credential store, and ForgeQE handles no token. Use a token is for a machine without a browser: a fine grained github pat token with the Copilot Requests permission, typed into a password field and kept in the credential store; no response shows it back, and a classic ghp token is refused. Either way ForgeQE then lists your seat's models, you pick one, and the Copilot profile in llms.json becomes the default. The card says who is signed in and how, with Sign out . Next time, forgeqe web opens the folder it is started in when ForgeQE is set up there, else the last project opened it keeps the last ten . For a team. One person sets ForgeQE up in the shared test repository and commits what it made: forgeqe.yaml , the environment files, llms.json , and the team's guardrails, prompts and skills under .forgeqe/ . Everyone else clones the repository, runs forgeqe web in it, and adds their own keys in Settings. Keys and passwords never go in those files: each person's are in their own credential store. The layout The sidebar, on the left. New chat opens Home, where a chat starts; earlier chats are in Runs ; Agents : a page for each of ForgeQE's agents Orchestrator, Browser, Exploration, Planning, Coding, Search, Healing, API, API planning, Review, PR review, Root cause, Refine, Evaluation, Model rating, and the Research and Helper agents the others call , in categories that fold on their own: Lead, Browser, Test code, API, Review and diagnosis, Support; Context what the agents know and follow : Knowledge, Memory, Guardrails, Skills, Prompts; Test : Record, Regression, API tests, Quality, Data; Results : Runs, Reports, Jobs. Each group folds from its title Agents starts folded , and the group of the page you are on stays open; and at the bottom What's ready, Help the docs, the same pages as forgeqe.github.io/docs/ with the architecture map, served by ForgeQE itself, so they work offline and Settings. It closes to a narrow rail of its icons each named when you point at it , with the small logo on top, to give the page the width; on a phone it is a drawer. The workspace panel, on the right. The project, its repository and branch, and the test environment; the context and tokens of the chat and of the project, in your local currency pounds in the UK, from the European Central Bank's daily rates ; the background tasks running now; the files a chat changed, with Create pull request ; and what it produced reports, tests, recordings , under the Capgemini logo. It sits beside the page on a wide screen 1600 pixels and up ; on a laptop it opens over the page, so the page keeps its width. Where it is not beside the page, a narrow rail shows the Capgemini mark and its sections' icons: one opens the panel at that section. Home and a chat Home is one box: say what to test, in your words. Under it, suggestions Run test cases, Explore a journey, Write a test, Review requirements fill the box with an example; they do not send. The Agents page is one directory of every agent in four columns side by side, one per category AI assisted, AI native, Agentic, Custom agents , each with its count, a few words of what it holds and a bar of how much its agents act on their own; the favourites come first in each. A column shows its first six agents and More agents the rest a search or a filter shows every match . Each agent is a row of the same size: its icon, its name with a dot of its status, what it does in a few words, and its star; hovering it says more what it does, why its status is what it is, and what it reaches and may do: Browser, Repository, Databases, the systems it signs in to; Read only, Writes files, Runs commands or Acts on pages . The statuses are Ready; Partly set up parts it can use are off ; Needs attention it cannot work without something missing, such as the test repository ; Unavailable no model is ready, or the engine or agent runtime is not installed , and the chips above filter by them or by Favourites. An agent's page Agents, in the sidebar is the same box with the agent's icon, its name and what it does on top, suggestions of its own, Tools it can use the first five groups, folded, with Show all to its tools page, /agents/\u003cagent /tools , which lists every group and tool open; its own tools with what its permissions take away, and each tool server its session gets: the live browser, the code map, databases, ForgeQE's tools, and for the Orchestrator agent every capability and your systems' MCP servers; a group it cannot use here says why , Connected to the test repository, databases, test environments and systems it reaches , its instructions the prompt it starts from, changed in Prompts and its recent runs. A request sent from there goes to the Orchestrator agent with the agent's name before it, so it is handed on. Every page and agent in the sidebar has one kind of icon, ForgeQE's 3D pixel icons; a page's is never an agent's. Sidebar icons in Appearance says how they sit on the sidebar's colour: Auto measures every icon against it and keeps them as they are when each stands out 2:1 , or puts them all on tiles in a tint of the sidebar when the colour hides any; or a brand chooses one look: Plain, On tiles, Outlined, or One colour the icons' shapes in the sidebar's text colour . The row previews the look and names the icons that fade. In the box: Tools : whether this chat writes the test into the repository and shows the browser, and what comes from the settings where browsers run, where test cases come from . They can be changed in a chat that has started. The model : Auto routing, or one of your models. In a chat that has started it can be changed between messages, as in Cursor: the same conversation goes on with the new model its history, tools and files stay , and the activity log notes the change. It offers your models that can answer there their key set; a GitHub Copilot one when Copilot is already running ; a custom agent's chat keeps its model. Attach : the paperclip, a drop on the box, or @ then a file name. @ finds files in the folder the agent works in: code.repo when the chat writes tests, otherwise the project folder an open chat keeps the folder it started in . A drop stays in the box until you send; then it is saved under that folder's .forgeqe/inbox git ignored for the agent to read. Removing a chip takes its @name out of the text, and deleting the @name removes the chip. Removing the chip, or starting over without sending, does not keep a drop. Images, PDFs and text or code files are taken, up to 8 a message; hidden files and anything named like credentials are refused. A folder can be named too @tests/ , and a name with a space is written in quotes @\"login page.png\" . A file on a sent message opens in a new tab when clicked. Drops older than 14 days are removed from the inbox. Images : drop, paste each paste is its own pasted \u003ctime file or pick any image the browser can draw: PNG, JPEG, WebP, GIF, BMP, AVIF, SVG, ICO, and HEIC or TIFF where the browser reads them. Before it leaves the browser it is turned as the camera held it, shrunk to at most 2048 pixels across, and drawn anew as PNG, WebP or JPEG a photo as JPEG , so no location, camera or other details go with it; an SVG's scripts never run. A small GIF stays as it is, frames and all. An image may be up to 5 MB once made ready. Its chip shows a small picture; click it to see the picture as it will be sent. An image from the repository @ that models cannot take as it is, over 5 MB or in another format, gets a converted copy in the inbox, \u003cname picture.png , which goes as the picture; the note names both. Up to 8 pictures go with a message, 20 MB together, when the model takes images a profile's vision in llms.json ; a local Ollama model does not unless it says so . If it does not, or turns them down, the agent gets the paths only and the activity says so. Refine : rewrites your request precisely against what ForgeQE knows here, in the same box, without running anything; Undo puts your words back. A reply shows the work as it happens: The plan as a chain: what is done a tick , what is being worked on now, and what is next. The agents : each step under the agent doing it the Orchestrator agent, the Browser agent, the Coding agent , and each handoff from one to another. The latest activity , live, with the full log a click away. The result : each test with its status, file and the command to run it; reports as links; every file changed with its diff. Next steps as buttons run it on another browser, open a pull request, investigate a failure , each a new request in the chat. Stop ends the work in progress. While the agent works the page follows the latest step; scroll up and it stops following, and Latest activity takes you back. All chats /chats , and each web chat from Runs lists every chat since forgeqe web started, newest first, grouped by day: Working, Needs you, Your turn and Ended as filters, a search, and 50 at a time. The pages Page What it is for Record Do a test's steps yourself in a browser or a Windows app ForgeQE opens; each click, entry and choice is recorded, with nothing to describe first: no panel in the page, only a small badge, with Pause, Undo and Stop on the Record page. A web recording is then reviewed with clicks: its name written from what you did , steps to drop or add in your words, a page to open, go back , notes on steps, instructions for the Coding agent, checks suggested from what each step brought to the page or picked on its picture a text, a field's value, the page it leads to, or in your words , and where each typed value comes from as typed, test data, new on each run, or a secret read from the environment, its typed text removed from the recording . Every change is a version to go back to. Steps used in many tests are kept as a block , put into another recording, or played first when one starts Start from a block . Record more from here plays the steps up to one and records what comes next. Checks of the page's own server calls, and Suggest with the model one call . ForgeQE makes the usual choices first, and finds saved blocks in the steps. Try it replays the steps with Playwright, on another environment or with other test data if you like. Write the test tries the steps first, then the Coding agent writes it in the review, asking nothing: the plan and where the test goes follow the repository, and a block becomes one helper. A desktop recording replays with no model. The recordings, searched and paged, each with Review . Regression Regression packs for a release, in two tabs. Agent : a conversation where the agent reads the connected sources, says what is missing, asks for the details it needs ticked off above the message box , and builds the pack. Packs : a table of the packs; a row opens the pack's page, with its numbers in one strip, the plan as a table automated, manual, new automation, exploratory; filters, search, 50 rows a page, each row's evidence and the release's changes, risk areas, runs and triage, history and a comparison beside it; save it, run it now or schedule it, refresh it, reuse it for the next release. API tests Two tabs. Agent : a conversation where you paste links, cURL or details or attach a Postman collection or an API description and the agent makes the API's calls in folders, sends them and says what it found, each API as a card to open. Workbench : like Postman, with an agent: APIs from a description, a Postman collection, or the calls a recorded run saw with their calls in folders and flows on the left, exported as a Postman collection; a call open to edit and Send , its answer, and what it must answer; an environment from env.yaml and one Run . Calls that change data ask first once, or always on a test environment . Sign in once per API, the value kept as a secret. Flows built from the API's calls, passing values on. Ask the agent writes the tests or explains a failure, on the page. Quality What each browser run measured, as a table of runs rules failed, critical and serious violations, slow pages, visual changes, budgets exceeded , with Trends beside it. A row opens the run's page: its numbers in one strip and three tabs, Accessibility every failed WCAG rule with its criterion, level, elements and pages, each opening on the elements and how to fix it; the rules that passed , Performance every page's Core Web Vitals, requests and size against the thresholds and budgets and Visual every page against its baseline, with the baseline, this run and the difference, and Approve as the new baseline . Data Databases connection, tables, read only queries , Ask a question in words turned by the DB agent into a query and its rows, test data, a pytest or Playwright test script, or data checks, each kept to run again , and data flows. Agents › DB agent The databases the DB agent is connected to test each one , each one's schema as a diagram of its tables and foreign keys, Ask, every request the agents made of it, and its tools and runs, under the composer every agent's page has. Test data Every request for test data, from any agent, a test case, the web app or a terminal: who asked, what for, when, and the answer; kept requests fetched again; specs preview, files, insert after your confirmation and the batches inserted. Runs Every ForgeQE session in the project, from here, a schedule or the terminal: 25 to a page with filters. A run shows its summary, the conversation, its activity, and its details. Reports Every report ForgeQE wrote, each opening as its HTML report in a new tab; and the project report: every run together, with pass rate by day, what fails most, flaky cases and defects. Jobs Scheduled and long jobs the jobs service , in two tabs. Agent : say what should run and when; the agent asks for what it still needs what runs, when, its name, alerts , shows the job and adds it once you confirm its exact command and schedule. Jobs : a table of the jobs what each runs, when in words, its last run and next run ; a row opens the job with its runs, logs and alerts. Add one yourself is the form. Evidence › Overview Every AI agent whose runs are recorded here ForgeQE's own and others': OpenTelemetry traces, received as they run or exported, Langfuse and LangSmith exports, JSON logs : its versions, runs, decisions and what its records cannot say. Runs are recorded with forgeqe evidence receive or record EVIDENCE.md EVIDENCE.md . An agent opens as its dashboard: per version its runs by verdict, each check's outcomes, what keeps going wrong, week by week, and its versions side by side check by check. Every number opens the runs it counts. Evidence › Agent runs Every recorded run, newest first, searched and filtered by agent. A run opens as its timeline: each step with the data it took in its content where the record keeps it, else a fingerprint , what it decided with the options it had and the reason it gave, what it said about its own work, and what the record cannot say. An agent's reasons and statements are marked as claims, not facts. Above the timeline, whether it worked the agreed way, decided on the right grounds with data it may use, and when its change was checked with forgeqe evidence product check run whether its change was right for the product: each check of its agent's contract with what it found, each finding opening its step. When its contract has a content section, whether its answer was right its rules, whether it rests on what the run took in, the owner's rubric , and Grade the answer : meets or misses for each criterion of the rubric, with a reason, kept with your name and in the audit log; these grades calibrate the rubric's judge. Evidence › Contracts Each agent's contract: what it agrees line by line steps it must take, what it may and may never do, limits, what a person decides, what its statements need behind them , whether it is approved, and which checks can fail a run under it; and how well each check is measured on labelled runs. Read only: a person approves a contract at a terminal forgeqe evidence contract approve . Evidence › Review queue Runs whose findings are still open the failed first, then work whose two fix attempts are used, where a person takes over ; answers the rubric's judge could not settle not yet calibrated, or it disagreed with itself , to grade; and every finding people overruled, with who, when and why. On a run's page each finding has Overrule : a reason is required, it is kept with your name and in the audit log, and the finding stops counting. Evidence › Learn What to change in an agent, from what its runs got wrong. Proposals : guidance from a rule broken in three runs of its latest version, and fixes from causes proven by replay; Approve or Decline each with a reason, kept with your name and in the audit log Evidence changes nothing itself: forgeqe evidence guidance writes what was approved . Causes of its findings : each run with open findings, each possible cause its instructions, a tool, its data with the change to try, its replays and whether it is proven; Link replays picks among runs of the same agent and request recorded after it. Evidence › Monitor Every agent evaluated its versions, models, tools, contract, trust, alerts . An agent opens its drift since its baseline a model, tool or document it did not have, a check doing worse, its contract or judge changed , each alert with its runs, and Set the baseline ; the trust its evidence supports, criterion by criterion, and Grant a level never above what is supported ; and Download the audit : every decision people made about it, with its evidence and approver. Setting a baseline and granting trust need a reason and the agent's name typed, and are kept in the audit log. Evidence › Releases Each agent's scenario suite: pick a candidate version and the live one, and see the release gate held or ready, and why , every scenario's result on both versions, each lens's count of scenarios passed, the owners' expectations met, and the gates kept. Read only: forgeqe evidence release keeps a gate. Knowledge What the agents know about your product, and adding to it. Memory What ForgeQE learned from runs that passed, by site: flows replayed without a model, and pages with their elements. Clearing a site's memory asks first. Guardrails The rules every agent follows. Skills What the agents know how to do, by the agents that use them; add, edit and remove the project's own. Prompts The instructions each agent starts from, with the agents that use each; edit one, or add your team's own for chosen agents. What's ready Each capability, whether it is ready here, and what it still needs. Reports the agent writes Ask for a report in a chat \"a report of all open defects\", \"release status for all projects\" and the agent writes one from the results of the calls it made. The report has three pages: Overview the summary, and when the rows are work items: how many are open, critical and high, unassigned, how old, untouched for 30 days, the ones that need someone now, and charts by project, person, age and week , the rows with filters and a CSV export, and Sources , each call the rows came from. The analytics are worked out from the rows; the model writes none of them. See Reports from the agent ../HOW TO USE.md reports from the agent . Settings Settings takes over the window: one menu on the left, with Back and Search settings by name or forgeqe.yaml key , and the sections under General, AI, Testing, Activity and Advanced. Each setting shows its forgeqe.yaml key under its help. Appearance gives the web app the project's look, for everyone who opens it: a logo PNG, JPEG, WebP or SVG and a name for the sidebar, the sidebar's colour primary, with an optional second colour it fades into , the colour of buttons, links and selection secondary , with lighter and darker shades made from it, and, in light mode, the page's background a light colour . Dark mode keeps its dark page and sidebar. Text on each colour turns white or dark so it reads; the Preview row says only when a colour makes some text hard to read below WCAG's 4.5:1 . A square or round logo shows with the name beside it, a wide one alone; Logo frame keeps it as it is, rounds its corners, cuts a square one to a circle, or puts it on a white tile for a dark logo on a dark sidebar ; Logo size Large gives a wide logo the whole top of the sidebar, for one whose words are small. Small logo is the square or round one the narrow sidebar shows; without one, a square logo is used, else the name's first letter. When the logo is the sidebar's colour its own background, or a shape's ink , it sits on a plate that stands out from the sidebar, and the section suggests another sidebar colour. Under Import colours , From a website reads a public site's page and stylesheets and suggests its colours its header or brand colour for the sidebar, its buttons' for the buttons, its body's light background for the page; never its logo ; nothing changes until Use these . Only sites on the internet are read, never this computer or a private network; the reader says what it is, and a site that accepts only a person's browser turns it away the section then says to pick the colours by hand or from a DESIGN.md . From a DESIGN.md fills the colours from a design file. It is saved under theme: in forgeqe.yaml ; Reset colours clears the colours the logo and name stay and Reset all removes the whole theme. Environments lists each environment with Edit and Remove; adding or editing one opens a panel with its name, apps, values, secrets and Test data the files its tests read, through FORGEQE DATA \u003cNAME . Start from your team's YAML fills the panel from YAML in any layout: Paste it, Import a file from your computer copied into the fields , or Link a project file read from that file every run; the panel shows what ForgeQE reads from it, and Copy into fields instead converts it . Secret values in the YAML are never copied. Changes save themselves. A key or password typed in Settings goes to your credential store under its variable's name, never into a settings file, and is never shown again. Files shows each settings file as text for what the forms do not cover. Every option in forgeqe.example.yaml has a field. Safe by design It listens on 127.0.0.1 only, with a random token checked on every call, and refuses requests from other sites. Nothing a page shows is taken as HTML: replies, tickets and reports are drawn as text and links, and a link opens only when it is a web or mail address. A file a reply names opens through a short lived link in its own sandbox, so a report's scripts never reach the app. Commands the pages start are built from fixed lists of what is allowed; anything that changes data, costs model calls or posts outside asks first. When something is wrong You see What to do The page says it is signed out Open the address forgeqe web printed again; each tab needs it once. The port is in use forgeqe web port 4711 any free port . Settings sections are locked Set up ForgeQE in the project folder first Settings › Set up, step 2 . A chat cannot start Settings › Set up, steps 3 and 4: install what is missing, and add a model with its key."},{"t":"Desktop apps","u":"docs/desktop/index.html","g":"More documentation","h":[["Use","use"],["Decisions","decisions"],["How a run flows","how-a-run-flows"],["One model config: llms.json → UFO","one-model-config-llmsjson--ufo"],["Workflow YAML (forgeqe-desktop-v1)","workflow-yaml-forgeqe-desktop-v1"],["Recording by hand","recording-by-hand"],["Fixing a workflow from chat","fixing-a-workflow-from-chat"],["Waits, retries and dialogs","waits-retries-and-dialogs"],["Visual checks (expect_image)","visual-checks-expect_image"],["Unattended runs","unattended-runs"],["Updating UFO²","updating-ufo²"],["Checks of the outcome","checks-of-the-outcome"],["Recording","recording"],["Security","security"],["Code","code"],["Before first use on Windows","before-first-use-on-windows"],["Next steps","next-steps"]],"x":"Status: runs on Windows. The desktop job of .github/workflows/ci.yml GitHub's windows 2022 installs the engine and the pinned UFO², replays Notepad live with the pywinauto driver and through forgeqe desktop replay , heals a moved control from the live window, and runs a whole explore: UFO² drives Notepad with a scripted model behind an OpenAI compatible server, the action is recorded with the control's AutomationId, and the recording replays. Not yet run: explore with a real model the job has no key , and your own apps. See Before first use on Windows before first use on windows . ForgeQE drives web apps through Chrome. The desktop engine does the same for Windows thick clients Win32, WinForms, WPF, and the native parts of Electron and WebView2 apps : say what you want in plain language, UFO² does it on the live app, and the run is saved as a YAML workflow that replays later without a model. Use Or ask ForgeQE's agent in the shell or forgeqe run : \"create an invoice for Contoso in Billing and save it as a test\", or \"I'll show you the steps in Billing, record them\". Its tools are test apps , desktop explore , desktop record , desktop replay and desktop edit workflow . It asks before it starts the app or takes over the desktop, and before it changes a workflow. Where it cannot ask an MCP client , the call answers needs confirmation until the user agrees. Desktop apps come from the active environment in env.yaml see HOW TO USE.md, \"Environments and apps\" , or from desktop.apps in forgeqe.yaml , which works without environments: Each run writes a folder under the reports folder desktop explore … or desktop replay … : run.json , report.html , steps/NNN.png , and for explore workflow.yaml , trace.json and UFO's own logs in ufo/ . A replay whose steps were healed also writes heals.json and asks whether to write the new locators into the workflow accept heals writes them without asking; with no terminal they are never written . Decisions Question Decision Why Agent that explores an app Microsoft UFO² microsoft/UFO , MIT , pinned to commit eae3c0a8d168 and never edited, behind one adapter ufo runner.py It already solves UI Automation UIA control detection, merging it with vision, and the per app agent loop. Behind the adapter it can be swapped for our own engine without touching the CLI, the YAML or replay. Saved scripts ForgeQE's own YAML forgeqe desktop v1 , replayed on pywinauto UIA backend UFO calls a model at every step. Replay must be fast, free, repeatable and fit for CI, so no model runs unless a step needs healing. Models llms.json , the same profiles as the browser engine. UFO never gets its own model config One place to configure models, keys and Microsoft Entra ID. Python environment Its own ~/.forgeqe/desktop/.venv , Python 3.10 , not the browser engine's UFO pins openai==1.66.2 and pydantic , which the browser engine's library does not run with, and pandas==1.4.3 , which has Windows wheels up to Python 3.10. Replay's packages use UFO's pins, so one environment runs both. Not chosen: windowsagent Reference only Very early v0.1.0 , replay not built, and it exposes a model driven /shell endpoint. How a run flows One model config: llms.json → UFO UFO picks its model client by API TYPE through ufo.llm.base.BaseService.get service , which every model call goes through ufo/llm/llm call.py . The adapter adds the type forgeqe : write ufo config writes UFO's config/ufo/agents.yaml from its template, with API TYPE: forgeqe , the model's name, and no endpoint and no key, for HOST AGENT , APP AGENT , BACKUP AGENT and EVALUATION AGENT . ufo bridge.install makes get service \"forgeqe\", … return ForgeQEService , which calls the profile through the openai SDK models.py : azure key or auth: entra , openai , openai compatible key or Entra , and ollama through its OpenAI compatible /v1 . Keys, Azure endpoints and Entra use the browser engine's own helpers forgeqe engine.llm , so a profile means the same thing in both. Keys stay in environment variables. Each call's time and tokens go to ForgeQE's usage ledger as the \"desktop agent\" counts only, never the prompt . Explore sends screenshots, so its profile must take images: \"vision\": true or false on the profile says so; without it, ollama profiles are refused and others accepted. Healing sends a screenshot only to a profile that takes images. The request parameters suit the model by themselves: a reasoning model o1, o3, o4, gpt 5, by the profile's model or deployment name, or \"reasoning\": true on the profile gets max completion tokens and no temperature from the first call, and when the API refuses a parameter max tokens , temperature , frequency penalty , response format , … the call is sent again without it, and later calls to that model leave it out py/forgeqe engine/model params.py . The browser agent does the same. Workflow YAML forgeqe desktop v1 Ops: launch , click , double click , type , select , keys , expect , expect image , wait at most 60 s , wait for , close . Locators use UIA properties, never screen coordinates: automation id , name , control type , class name , index when several match , and path the ancestors' control type and name . A target needs an automation id or a name . Replay looks in the launched app's own windows only. Variables: {{name}} from the workflow's variables or name=value on the command line; {{secret:NAME}} from the environment, only for names in desktop.secrets . A secret ForgeQE itself uses a model key, a tracker token is refused there. Values are substituted once and never expanded again. Targets take {{name}} too a CSV row's {{customer}} as the control to click , never a secret. Keys: ctrl , shift and alt with one named key or character ctrl+s , alt+f4 , enter , f5 . The Windows and context menu keys are refused: Win+R followed by typing runs any command. Typing is literal: pywinauto's key syntax ^ , % , + , ~ , {ENTER} in the text is escaped. Recording by hand When you know the steps, do them yourself instead of describing a goal: no model and no UFO are involved, so it costs nothing and does exactly what you did. ForgeQE starts the app and watches the mouse and keyboard low level Windows hooks , asking UI Automation which control each click and key went to. Do the steps, then: Ctrl+Shift+F11 with the mouse over a control adds a check: an expect step with the text it shows now a status message, a saved total . Add one at the end, so the replay tests the outcome, not only the steps. Ctrl+Shift+F12 , or closing the app, finishes. The console shows each step as it is recorded. What becomes a step: You do Step Click a control two quick clicks: double click click with its AutomationId, name and control type Pick an item in a drop down select on the drop down, with the item's name Type into a field corrections and pastes included one type with the field's text when you move on, read from the field A key chord outside a text field ctrl+s , enter , f5 keys Ctrl+Shift+F11 over a control expect with its text Passwords: a password field is never read; its step types {{secret:NAME}} the one name in desktop.secrets , or \u003cAPP PASSWORD , which the result tells you to set . Text equal to a desktop.secrets value is written as its placeholder. The typed characters themselves are never kept, only the field's text when you move on. Only the app: clicks and keys outside the app's own process are not recorded; nor are the Windows and menu keys, or controls with neither an AutomationId nor a name. The result lists what was left out. The run folder has workflow.yaml , run.json and report.html , like explore. Replay it with forgeqe desktop replay . Fixing a workflow from chat When a replayed step fails because the app was slow or a dialog was in the way, ForgeQE's agent fixes the workflow with desktop edit workflow : it proposes the change a longer timeout or retries on the step, a wait for before it, a dialog button in dismiss , a healed locator, a corrected text , shows you the diff, and writes the file only when you agree. For example, after \"step 4 timed out while the invoice list loaded\": Each change has a fixed shape set , unset , set step , add dismiss , insert step , remove step , set variable ; step numbers are the replay report's. Anything else is refused. The changed workflow is checked by the engine's own validator before it is shown; one that would not run is not offered. Comments and layout are kept. The old text is kept in the reports folder desktop edits/ , and a file that changed since the edit was proposed is not overwritten. The workflow must be a .yaml inside the working folder or the reports folder. Waits, retries and dialogs Real apps are slow in places: a splash screen, a form that loads its data, a \"Tip of the day\" or \"Save changes?\" dialog. A workflow says how to wait for them, without fixed wait steps: Each step waits for its control up to its timeout . click , type and select also wait until the control is enabled and visible a form that is still loading greys its buttons out . wait for waits until a control is there, shows a text , or with gone: true has gone. retries applies to click , double click , type , select , keys , expect and expect image . Between tries, replay pauses 1 s, 2 s, … up to 5 s and closes any dismiss dialog. An error in the workflow itself a missing variable is not retried. dismiss lists at most 10 targets, checked like any target. When a control is not found, or something waits to go away, replay clicks the dismiss controls that are on screen and looks again, up to 3 times per lookup. The report and the console name every dialog closed, and how many tries a step took. Visual checks expect image expect compares text. When what matters is drawn a chart, a signature, a colour, a layout , expect image compares pixels with a baseline image: The first run with no baseline saves what it captured and passes; the report says so. Commit the baselines folder with the workflow. update baselines replaces them after an intended change. A pixel counts as different when a colour channel differs by more than 32 of 255, so anti aliasing and ClearType do not fail a check. A different size another screen scale or window size fails with both sizes named. The report shows the baseline, what was captured, and the differences in red, with the share of pixels that differ images/NNN baseline actual diff.png in the run folder . Image names are file names only letters, digits, , , ending .png . A path, .. , or a link that leads out of the baselines folder is refused. Run visual checks on one machine with a fixed resolution and scale see DESKTOP CI.md DESKTOP CI.md . Unattended runs Replay needs a signed in, unlocked Windows session. Before it starts the app, it checks the session and fails at once with the reason if it is a Windows service session 0 , a locked screen, or a disconnected Remote Desktop session. forgeqe desktop doctor runs the same check. To run the suite every night on a machine of your own, see DESKTOP CI.md DESKTOP CI.md : a runner set up in the user's session ci/desktop runner/prepare runner.ps1 , a nightly workflow ci/desktop runner/desktop nightly.example.yml , and junit results. Updating UFO² UFO² is pinned to one commit. Moving it is checked before it is pinned: 1. The ufo update job of .github/workflows/ci.yml runs weekly, or by hand Run workflow, job ufo update with a commit. It sets up that UFO on Windows FORGEQE UFO COMMIT , which takes a full 40 character commit id only , runs the adapter tests against its real code and a scripted explore of Notepad, and says in the job summary whether it passed. 2. When it passed: bun scripts/ufo bump.ts \u003ccommit writes the new pin into src/desktop/setup.ts , py/forgeqe desktop/ufo runner.py and this page. Run the tests and push; the Windows CI job tests the pin again. When it fails, the failing step names what changed in UFO usually the action executor or the config layout that the adapter wraps . Keep the pin until the adapter is updated for it. Checks of the outcome A recording of actions only proves the steps run. When UFO has finished, and before the app closes, explore shows the model the goal and the app's controls with the text each shows now, and the model picks up to three whose text proves the goal a status message, a saved value , by number, with the part of the text to expect. A check is kept only when that text really is in that control, so the model can choose among what is on screen but never invent it; text holding a desktop.secrets value is never offered. The checks are saved as expect steps at the end of the workflow, and the report says how many there are. With none, the report and the agent say so: add expect steps by hand. Recording UFO's own step log names the control and a per step id, not its AutomationId, so the adapter wraps UFO's ActionExecutor.execute and records each action with the UIA properties of the control it acted on. record.py turns that trace into steps: click input → click / double click , set edit text → type , keyboard input → keys one allowed chord or type , select → select . Coordinate clicks, scrolls and anything else are listed as not recorded in the report. A typed value equal to a desktop.secrets value is written as its placeholder; typed text that only looks like {{…}} is kept literal, so a model told to type {{secret:X}} cannot make replay type the secret. Security The YAML, the trace, the app's screen text and the model's replies can all be written by someone else. The rules in the repository's CLAUDE.md apply; for this engine: No command in the workflow. app: names a desktop.apps entry: an absolute .exe a .bat or .cmd would run through cmd.exe , which reparses its arguments and an argument list, started with subprocess.Popen path, args . UFO gets UI tools only. Each explore writes UFO's mcp.yaml with UICollector , HostUIExecutor and AppUIExecutor . UFO's default CommandLineExecutor , which runs shell commands, and its Word, Excel, PowerPoint and PDF executors are left out. The adapter starts the app, so UFO never launches a program. Keys: during explore the adapter refuses UFO's Windows and menu keys too, and the report lists what it refused. No one at the console: UFO's safe guard asks before sensitive actions; explore answers no, since nobody is there. Environment: the engine process gets system settings, the profile's key variable or Entra's and desktop.secrets , nothing else desktopEnvNames . Explore controls the real mouse and keyboard. It asks before starting yes to skip; required with no terminal . Use a test machine or VM and a test account. Agent tools: a workflow path the agent gives must be a .yaml inside the working folder or the reports folder real path, so a link out is refused ; variables are names and text only; heals are reported, never written. Healing: the model picks one of the window's real controls by number; control text is passed as data, and any other answer heals nothing. Heals are written into the workflow only when accepted. Report: every value is escaped; images are only the engine's own steps/NNN.png and images/NNN baseline actual diff.png . Baselines: expect image names are file names, and their real path must be inside the workflow's baselines folder, so a workflow cannot read or overwrite another file. Unattended machines: prepare runner.ps1 never handles a password; automatic sign in uses Sysinternals Autologon, which stores it encrypted. Install: UFO is cloned and checked out at the pinned commit or FORGEQE UFO COMMIT , a full commit id only , and the checkout's HEAD is verified; replay's packages are pinned to exact versions. Code File Contents src/desktop/command.ts forgeqe desktop : setup, apps, doctor, validate, explore, record, replay folders, data , junit , update baselines ; heal acceptance src/desktop/junit.ts JUnit XML for a suite src/desktop/edit.ts Changes to a workflow from chat: shapes, applied with comments kept, validated, diff, backup src/desktop/run.ts Explore and replay as the CLI and the agent's tools run them; variables, CSV rows, workflow paths src/mcp/desktoptools.ts ForgeQE's agent's test apps , desktop explore , desktop record , desktop replay , desktop edit workflow src/desktop/bridge.ts Starts python m forgeqe desktop serve , passes events on, records model calls in the usage ledger src/desktop/setup.ts The desktop environment, the pinned UFO checkout ufoCommit , desktopDoctor scripts/ufo bump.ts Pins a new UFO commit in every place that names it ci/desktop runner/ prepare runner.ps1 and the nightly workflow example for unattended runs src/desktop/report.ts report.html for a run py/forgeqe desktop/service.py serve : the JSON lines protocol, replay and explore runs, run.json py/forgeqe desktop/workflow.py Load, validate and save workflows; variables and secrets; the key chord grammar py/forgeqe desktop/apps.py desktop.apps : the app allowlist and the argument array a launch uses py/forgeqe desktop/models.py The profile through the openai SDK; image checks py/forgeqe desktop/ufo bridge.py UFO's model blocks, and the forgeqe model service py/forgeqe desktop/ufo runner.py UFO's config, the action trace and key guard, running UFO in process py/forgeqe desktop/record.py Trace to workflow steps py/forgeqe desktop/replay.py Runs a workflow on a Driver : timeouts, retries, wait for , dismissing dialogs, heal and stop py/forgeqe desktop/handrecord.py Recording by hand: clicks, typing, chords and checks as steps; secrets py/forgeqe desktop/handhooks.py The Windows hooks and UI Automation lookups that feed it py/forgeqe desktop/visual.py expect image : baselines, pixel comparison, diff images py/forgeqe desktop/session.py Whether this Windows session can be driven service, locked, no screen py/forgeqe desktop/heal.py One model call to re find a moved control py/forgeqe desktop/memory.py App memory: an explore replays what earlier ones did before calling the model, and a heal found once is reused mobile too py/forgeqe desktop/checks.py One model call for checks of the outcome, kept only when on screen py/forgeqe desktop/pywinauto driver.py The Windows Driver Tests: bun test tests/desktop.test.ts , and \u003cengine python m pytest tests/desktop q needs openai==1.66.2 and PyYAML; they use a fake driver and a fake UFO, so they run on any OS . Before first use on Windows Verified in CI: setup with and without ufo , replay, healing, the CLI, and UFO's own code with the adapter its config, its model calls routed to the profile, the action trace, UI tools only . Still to check, on a Windows test machine with your apps: 1. UIA coverage: Inspect.exe shows the controls that matter with stable AutomationId s. Custom grids, Java needs Java Access Bridge , Delphi, SAP GUI and Citrix vision only are where UIA falls short. 2. Explore with your model: one goal with an Azure profile and one with auth: entra ; trace.json has the controls' AutomationIds, and ufo/ has UFO's logs. 3. Replay: the recorded workflow passes 10 runs out of 10; a renamed control is healed. 4. Cost and time of one explore, from forgeqe usage. Found by the Windows runs and fixed: UFO's pins need Python 3.10 pandas 1.4.3 ; UFO prints emoji panels to stdout, which is the engine's event stream and crashed on the cp1252 console now sent to stderr, characters replaced ; an error in UFO's own evaluation lost the recorded actions the trace is now kept and saved . Next steps 1. The checks above. 2. forgeqe suite and test cases from Azure DevOps, Jira and Xray for desktop workflows, with results written back. 3. Scribe: export a workflow as pywinauto code or C with FlaUI in the user's repo. 4. App adapters where UIA falls short: Java Access Bridge, SAP GUI scripting, vision only for Citrix. 5. A pipeline template for a self hosted Windows runner signed in to a desktop session."},{"t":"Desktop in CI","u":"docs/desktop-ci/index.html","g":"More documentation","h":[["What breaks a desktop run, and how ForgeQE tells you","what-breaks-a-desktop-run-and-how-forgeqe-tells-you"],["Set up the test machine","set-up-the-test-machine"],["Leaving Remote Desktop without locking the session","leaving-remote-desktop-without-locking-the-session"],["The nightly job","the-nightly-job"]],"x":"Desktop replay clicks and types into real windows. It needs what a person at the machine would have: a signed in Windows session, unlocked, with a screen. GitHub's hosted windows 2022 runners have that, and ForgeQE's own CI runs Notepad there. Your own apps usually need a machine of your own, with the app installed, its test database, and a network route to its servers. This page sets one up as a GitHub Actions self hosted runner. The same rules apply to Azure DevOps agents and Jenkins nodes. What breaks a desktop run, and how ForgeQE tells you Situation Effect Fix The runner is a Windows service Session 0 has no desktop; every control lookup times out Run the runner in the user's session below The screen is locked Windows sends no input to apps No inactivity lock, no screen saver lock A Remote Desktop session was disconnected The session is locked Leave Remote Desktop with tscon below , or don't use it on the test machine The machine slept or the screen turned off Input and screenshots stop Power plan: never sleep, never turn off the screen After a restart nobody signs in No session at all Sysinternals Autologon Before each replay or explore, the engine checks the session py/forgeqe desktop/session.py . On a session it cannot drive, the run fails at once with the reason, instead of timing out step by step. forgeqe desktop doctor runs the same check from a shell or a job: It exits with 1 when the desktop cannot be driven, so a job stops before the suite runs. Set up the test machine Use a test machine or VM, and a test account: the runner's jobs control its mouse and keyboard. 1. Sign in as the account the tests will run as. 2. Install the runner GitHub: Settings → Actions → Runners → New self hosted runner . Give it the label forgeqe desktop . When config.cmd asks whether to run as a service, answer no . 3. Run ci/desktop runner/prepare runner.ps1 in an elevated PowerShell WhatIf first to see the changes : It stops sleep, screen off and the screen saver lock. It turns the inactivity lock off and registers a logon task that starts run.cmd in this account's session. It warns you if the runner is also installed as a service. It never handles a password. 4. Sign in automatically after a restart with Sysinternals Autologon https://learn.microsoft.com/sysinternals/downloads/autologon , run as the test account. It stores the password encrypted by Windows. Never put the password in a script, a registry value you write yourself, or the repository. 5. Fix the screen size. A visual check expect image compares pixels, so the resolution and scale 100%, 125% must match the machine where its baselines were saved. Set them once and leave them. 6. Restart and check that the runner shows as idle on GitHub. Then run forgeqe desktop doctor from a job. Leaving Remote Desktop without locking the session Closing a Remote Desktop window disconnects the session, and Windows locks it. To leave it running instead, hand the session back to the machine's console. In an elevated prompt inside the Remote Desktop session: On a VM, the hypervisor's console Hyper V, VMware, VirtualBox needs no such step. The nightly job ci/desktop runner/desktop nightly.example.yml is a ready workflow. Copy it into .github/workflows/ in the repository that holds your desktop workflows. It: runs at night on self hosted, windows, forgeqe desktop , one run at a time; installs a pinned ForgeQE and runs forgeqe desktop setup and forgeqe desktop doctor ; replays every workflow in a folder: forgeqe desktop replay desktop tests/ junit results/desktop.xml ; keeps the reports, screenshots and image diffs as an artifact. junit writes one test case per workflow and per CSV row with data , which CI servers show as test results. runs.json in the output folder has the same, with the path of each report. Secrets the workflows type {{secret:NAME}} come from the CI's secret store as environment variables, and must be listed in desktop.secrets or the environment's secrets in env.yaml . Pick the environment with FORGEQE ENV or env . Healing calls the model. In a nightly run, either give the job the model's key so moved controls are healed and reported in heals.json never written into the workflow without accept heals , or pass no heal so a moved control fails the run."},{"t":"Mobile apps","u":"docs/mobile/index.html","g":"More documentation","h":[["Use","use"],["Apps and settings","apps-and-settings"],["Devices","devices"],["Workflow YAML (forgeqe-mobile-v1)","workflow-yaml-forgeqe-mobile-v1"],["Explore","explore"],["Maestro","maestro"],["TestMu AI (formerly LambdaTest)","testmu-ai-formerly-lambdatest"],["Security","security"],["Code","code"]],"x":"Status: the engine and its tests run on any OS, against a fake Appium server and a stand in for Maestro. The CI job The android job of .github/workflows/ci.yml runs it on an Android emulator: Appium explores and replays the emulator's Settings app, and Maestro replays the same workflow. iOS runs the same code with the XCUITest driver, but no CI job tests it yet it needs a macOS runner with a simulator . ForgeQE drives mobile apps two ways, and one workflow format runs on both: Appium Maestro Runs step by step, through an Appium server yours or a device cloud's the whole workflow as one Maestro flow Explore a goal with the model yes no Heal a control that moved yes, one model call, reported for review no Visual checks expect image yes no Your team's own flows n/a forgeqe mobile maestro , checked against an allowlist Needs appium with UiAutomator2 Android or XCUITest iOS , a device or emulator maestro and a device or emulator Use Or ask ForgeQE's agent in the shell or forgeqe run : \"sign in to the courier app and save it as a test\", \"replay the courier login on Maestro\", \"run our Maestro flows\". Its tools are mobile explore , mobile replay and mobile maestro . It asks before each one starts, and desktop edit workflow fixes a mobile workflow after a failed replay, the same way as a desktop one. Apps and settings Mobile apps come from the active environment in env.yaml, or from mobile.apps in forgeqe.yaml: Each run writes a folder under the reports folder mobile explore … , mobile replay … , mobile maestro … with run.json , report.html , step screenshots, and for Maestro runs the flow, maestro.log and Maestro's JUnit report. Devices Say what each device is and where it runs; Settings → Mobile edits all of it. ForgeQE builds what Appium, Maestro and the cloud need from that and the app: the W3C capabilities platformName , appium:udid , bstack:options , LT:Options , … , the cloud's hub address, Maestro's device , and TestMu's HyperExecute YAML. Nobody types capabilities. Devices on this computer are in forgeqe.yaml: Devices on TestMu AI or BrowserStack are in that cloud's own file, the one browser.providers links .forgeqe/testmu.yaml , .forgeqe/browserstack.yaml , beside its browsers and with the same sign in. Settings → Mobile shows each file's devices and edits them; Integrations edits the file's browsers and its browser devices. A file with only mobile devices sets up no browser on that cloud. Which devices run. Every device with enabled on the default , of the app's platform: an Android workflow skips the iOS devices. devices pixel8,galaxy or the agent's devices names some for one run. At once. mobile.parallel of them at a time. Devices on this computer running at once get their own driver ports appium:systemPort 8200+, appium:wdaLocalPort 8100+, appium:mjpegServerPort 9100+ on the one Appium server. On TestMu, mobile.parallel also caps HyperExecute's concurrency. Maestro runs on each device on this computer, and as one HyperExecute job for TestMu's real devices and one for its emulators . It does not run on BrowserStack here: replay those with Appium. Results. Each device's run is in a folder of its own inside the run's folder, with devices.json listing each one's result and report. The run passes only when every device passes; junit has one case per device. The cloud check. Before a run, ForgeQE asks each cloud whether it has the real devices listed; for one it does not, it offers the most similar in a terminal and swaps only that device, this run only. explore works through a goal once, on the first device in use. mobile.appium.capabilities is still added to every session, for the rare setting ForgeQE does not make. Without mobile.devices , the device is the one mobile.appium its URL and capabilities and mobile.maestro device , testmu name, as before. Workflow YAML forgeqe mobile v1 Ops: launch , tap , double tap , long press , type , expect , expect image , swipe direction up, down, left or right, optionally on a target , scroll to scrolls until the target is on screen , back , hide keyboard , keys enter , back , tab , delete , search , wait , wait for , close . Timeouts, retries and dismiss work as in desktop workflows. Explore saves a tap on a system dialog another package's control, such as Android's notification prompt under dismiss , not as a step, so the workflow still runs where the dialog never shows; on Maestro, each dismiss target is tapped after a launch if it is there. Targets use the desktop keys, mapped per platform: automation id is the Android resource id with or without the package:id/ prefix or the iOS accessibility identifier; name is the Android text or content desc, or the iOS label; control type is the Android class android.widget.Button or the iOS type XCUIElementTypeButton ; index picks one of several matches. Explore The model sees the goal, its steps so far, the numbered controls on screen with the text each shows, and a screenshot when the profile takes images. It answers with one action on a control by its number tap, long press, type , a swipe or scroll, back, or done. So it can only act on a control that is on screen. When it says done, it picks checks of the outcome from the controls' current text, kept only when that text is really there, as on the desktop. The app's text is passed as data. Maestro ForgeQE workflows on Maestro. driver maestro writes the workflow as a Maestro flow flow.yaml in the run folder and runs maestro test . Maestro's debug output gives each workflow step its result. Variables are filled in first. Values are matched literally, so Maestro's regular expressions never see them as patterns. A secret becomes ${MAESTRO NAME} , which Maestro reads from the environment ForgeQE gives it, so a secret's value never lands in the flow file or on a command line. A value holding ${…} is refused, because Maestro would run it as JavaScript. Your team's flows. forgeqe mobile maestro \u003cfiles or folders checks each flow, and every flow it runs, before Maestro gets it: Only UI commands pass: launchApp , tapOn , inputText , assertVisible , scrollUntilVisible , swipe , extendedWaitUntil , runFlow , repeat , retry and the like. These are refused: runScript , evalScript and assertTrue , which run JavaScript. Maestro's AI commands, which send screenshots to a service. takeScreenshot , recordings and addMedia , which read or write files. ${…} may only name a variable ${USERNAME} , never an expression. when: {true: …} is refused, because it is JavaScript. openLink takes http s or the app's own deep links, never javascript: , file: or intent: . runFlow files must be .yaml inside the working folder; links out of it are refused too. Nesting stops at 5 levels. A refused flow does not run, and the error names the command. TestMu AI formerly LambdaTest Both drivers run on TestMu's devices. Upload the app once, then use the lt:// id it returns as the app's app : From the shell, ask in words \"upload builds/courier.apk to TestMu for courier\" : mobile upload asks first, uploads the build it must be inside the working folder , and saves the lt:// id as that app's app: in forgeqe.yaml. The user and key come from LT USERNAME and LT ACCESS KEY or the variables the config names , for example in a .env file in the project folder. samples/mobile testmu/ is a ready project with TestMu's Wikipedia sample app. Appium needs nothing else: the Appium driver talks to the hub with the user and key from the two variables. Maestro runs through HyperExecute. ForgeQE writes a HyperExecute project in the run folder and starts the CLI. The project holds the flows in their folder layout so runFlow still works , the app an lt:// id is passed as the device's appId ; a build file is uploaded with the project , a fixed setup script Android platform tools 35.0.2 and Maestro 2.6.1 from its release, both checked against their SHA 256 and a fixed run script, and hyperexecute.yaml . Team flows are checked against the allowlist first, as always. Flow file names may only use letters, digits and . / , because HyperExecute's shell reads them, and no folder or file may be hidden except a top level .maestro/ hidden files of the working folder never leave the machine . After the job, ForgeQE downloads its artifacts Maestro's command results and JUnit reports , so each step gets its own result in the report. A job on several devices more than one entry in devices , or a pattern brings back one run per device: the steps show the first device that failed, or the first device when all passed, and the job's page has each one. The job's link is printed from either hyperexecute.lambdatest.com or hyperexecute.testmu.ai . Devices are checked first. On TestMu Appium or Maestro and BrowserStack Appium , replay , maestro and explore read the cloud's device list before they start TestMu's list for the region, BrowserStack's devices.json and check each configured device, exact or a pattern. A device the cloud does not have would wait in its queue and time out QUEUE TIMEOUT DEVICE UNAVAILABLE , so ForgeQE offers the devices most like it instead: the same model on other OS versions, then the same family. In a terminal you pick one for this run; without one it stops and names them. device \"Pixel 8 13\" runs on another device this time several, comma separated, for Maestro , no device check skips the check, and forgeqe mobile devices lists what the cloud has. The list says what a cloud offers in the region, not whether a device is free this minute. TestMu's emulators real device: false , isRealMobile: false are not in it and are not checked. Videos. TestMu records each Maestro flow as an App Automation session its dashboard, not the HyperExecute job page, shows the video . Each run is its own build there, and after the job ForgeQE saves each flow's recording as videos/\u003cflow .mp4 in the run folder, plays it in the report's Artifacts tab, and prints it with the session's TestMu page. A video TestMu has not finished is waited for briefly; a run never fails for want of one. Secrets on Maestro on TestMu: a workflow that types a secret is refused there for now HyperExecute would need the value in its own vault . Replay it on TestMu with driver appium . For the same reason, a team flow that reads a ${NAME} variable its own env: blocks do not set is refused on TestMu locally it could come from the environment ; run it with a local maestro . The access key is passed to the CLI as an argument. It is removed from the CLI's output and from every file in the run folder. Neither the user name nor the key is passed to the flows' environment. maestro and the hyperexecute CLI are started without ForgeQE's own secrets the model's key, service tokens in their environment; only the mobile engine itself holds them. The testmu job of .github/workflows/ci.yml Run workflow, job testmu runs all three on TestMu Appium, Maestro with a workflow, a team flow with TestMu's Wikipedia sample app, once the repository has the secrets LT USERNAME and LT ACCESS KEY . Security No commands from the workflow or the model. app: names a configured app a platform and an id . Appium is spoken to over HTTP, and maestro is started with an argument list, never a shell. Locators go into XPath as quoted literals, so a target cannot change the query. Secrets: {{secret:NAME}} reads only mobile.secrets and the environment's secrets, and ForgeQE's own keys are refused there. Explore types a secret from its placeholder, so the model never sees the value. The engine's environment holds system settings, the profile's key, the listed secrets, the cloud's user and key, and JAVA HOME / ANDROID HOME , nothing else. Cloud credentials come from the variables mobile.appium.username env and access key env name; a user or key in the URL is refused. TLS is verified as usual. App builds are absolute paths to an app file, https URLs, or a device cloud's own upload ids bs:// , lt:// , storage:filename= ; file:// and other schemes are refused. Code File Contents src/mobile/command.ts forgeqe mobile : apps, doctor, explore, replay folders, data , junit , driver , maestro, flow, validate src/mobile/run.ts Requests to the mobile engine, its environment, Maestro flow paths, the doctor src/mcp/mobiletools.ts ForgeQE's agent's mobile explore , mobile replay , mobile maestro py/forgeqe mobile/appium driver.py The Appium driver: W3C WebDriver over HTTP, the replay Driver py/forgeqe mobile/maestro.py Workflows as Maestro flows, the allowlist for team flows, running maestro test py/forgeqe mobile/hyperexecute.py Maestro on TestMu: the HyperExecute project and running its CLI py/forgeqe mobile/explore.py The model's action loop on Appium py/forgeqe mobile/service.py serve : replay, explore and maestro runs, run.json py/forgeqe mobile/apps.py The mobile app allowlist and its capabilities The rest is shared with the desktop engine: forgeqe desktop.workflow validates both formats, and replay.py , heal.py , checks.py and visual.py run on either driver. memory.py app memory, under \u003cmemory dir /mobile/ lets an explore replay what earlier explores of the app did before it calls the model, and a replay reuse a target an earlier heal found. Tests: \u003cengine python m pytest tests/desktop/test mobile.py q a fake Appium server and a stand in Maestro; any OS , and bun test tests/mobile.test.ts ."},{"t":"Containers","u":"docs/containers/index.html","g":"More documentation","h":[["Use","use"],["Declaring services","declaring-services"],["Compose files","compose-files"],["The project network","the-project-network"],["Tests in a container","tests-in-a-container"],["The workspace","the-workspace"],["The browser in a container","the-browser-in-a-container"],["Testcontainers (Scribe)","testcontainers-scribe"],["Mocks","mocks"],["Lifetime","lifetime"],["Security","security"],["Code","code"]],"x":"Status: the tests run against a fake runtime on any OS. They check the commands ForgeQE builds, the checks on config, compose files, mounts and secrets, the mock stubs, and tests in a container. tests/containers.live.test.ts runs on real Docker and is skipped without it : Postgres from forgeqe.yaml and from a compose file. A WireMock mock that answers a recorded run's calls. A tests container that reaches the database by name and writes its results into the repository as this machine's user. The containers job of .github/workflows/ci.yml runs both on GitHub's Docker. There, a skipped live test fails the job. ForgeQE uses Docker or Podman, when one is installed, for five jobs: Services a test run needs: a database, a queue, a cache, or the API under test. The project declares them in forgeqe.yaml, or in a docker compose file that forgeqe.yaml names. Mocks of an API: WireMock stubs made from the calls a browser run recorded, or from an OpenAPI description, so the tests can run without the real service. The repository's tests in a container: run tests runs the command the user confirmed in an image, instead of on this machine, after starting the services the tests need. A workspace for the coding agents: with containers.workspace , Scribe's shell commands build, restore, run, git and every test ForgeQE runs for it go to a container of the project's image. The agents stay on this machine. A browser in a container: with browser.provider: docker , the browser agent, the replay and Scribe's live browser drive Chromium in a container of Microsoft's Playwright image. Scribe also has a testcontainers skill, for tests that start their own services from code below . ForgeQE's agent uses them through two tools, services and mock service . The CLI has forgeqe services . When neither Docker nor Podman is on PATH, the agent isn't offered these tools. Use In the shell or forgeqe run , you can ask, for example: \"start the database\" \"is the queue up?\" \"mock the payments API from the last run\" \"make a mock service from openapi.yaml and point order api at it\" \"stop the services\" The agent asks before it starts anything. Declaring services Setting Rule Service name Lower case letters, digits and , starting with a letter. Names starting with mock are kept for mocks. image Must have an exact tag or a digest. An untagged image or latest is refused, because it changes under the same name. ports Always bound to 127.0.0.1. An address such as 0.0.0.0:5432:5432 is refused. env Plain values on one line. Secrets go under secrets . secrets Variable names. They are passed to the runtime by name env NAME , so the value is never on a command line. One of ForgeQE's own keys a model key, a tracker token is refused. volumes Always read only. Must be inside the folder of forgeqe.yaml, and can't be the whole folder. command A list of arguments, never one command string. depends on Services to start first. Anything else Refused with an error, not ignored. That includes privileged , network , cap add , devices , user , pid and the socket. Every service, whether from forgeqe.yaml or a compose file, can list depends on . up starts a service after the ones it depends on; a circle is refused. Compose files ForgeQE reads each service of the file and translates it into a forgeqe.yaml service. The same rules then check it, and a service declared in forgeqe.yaml wins over the compose file's service of the same name. Compose itself never runs. Compose ForgeQE image Required; an exact version or a digest. build is refused: build and tag the image first. ports \"5432\" , \"15432:5432\" , \"127.0.0.1:15432:5432\" , or the long form; always bound to 127.0.0.1. Any other address, and UDP, are refused. environment Plain values are passed as they are. KEY: ${KEY} , KEY alone in the list form, and KEY: ${KEY: default} pass the variable by name as a secret. ${OTHER} under another name, and values that mix text and ${…} , are refused. volumes Bind mounts ./db/init:/docker entrypoint initdb.d are mounted read only, and :rw is noted. Named and anonymous volumes are left out, so the container keeps no data between runs. A path outside the project is refused when the service starts. command A list, or a string split into arguments compose uses no shell, and neither does ForgeQE . depends on List or map form: the start order. condition is not used; ForgeQE waits until each service is ready. x forgeqe ready , timeout , description , as in forgeqe.yaml. Without ready , a service with ports is ready when its first port takes connections. container name , restart , labels , healthcheck , networks , expose , deploy , profiles , … Ignored: ForgeQE names, labels and networks the containers itself. privileged , network mode , cap add , devices , pid , ipc , user , security opt , volumes from , env file , entrypoint , extends , … Refused, and the error names the setting. What was left out a named volume, a mount made read only is listed in notes . The project network Each project's containers join their own network, forgeqe \u003cproject , under their service name. So the API container reaches the database as db:5432 , and the tests container reaches both. No other container joins the network, and no container is on the host's network. forgeqe services down with no names also removes the network. Tests in a container With containers.tests set, run tests runs the tests in that image unless it is called with in container: false . Its confirmation says where the tests will run. The container: Runs the command the user confirmed with the image's own shell, sh c \"\u003ccommand \" , inside the container, never on this machine. Mounts the repository read write at its own path and works in it, so results land where ForgeQE reads them. On this machine, the tests already have the whole disk. A folder outside the repository that the results go to is mounted the same way. Runs as this machine's user user uid:gid , so files it writes are yours. It also gets security opt no new privileges , pids limit 4096 and rm , and it is removed by name when the run ends or is stopped. Gets only these variables: CI=1 , NO COLOR , HOME=/tmp , the environment's FORGEQE ACTIVE ENV , FORGEQE APP and FORGEQE VAR , the saved logins' variables, and containers.tests env and secrets . Secrets are passed by name. ForgeQE's own keys are never passed. Has secret values removed from its output , as on this machine. This needs a Linux or macOS machine, because the repository is mounted at its own path. The workspace With containers.workspace set: Scribe's shell runs in the container. The agent runtime runs each command as $SHELL c \u003ccommand . ForgeQE sets SHELL to a script that runs the same command with docker exec … sh c \u003ccommand , in the same folder, in the workspace container. A folder outside the repository is refused, since the container has only the repository. The agent is told its commands run in a Linux container of that image. Every test ForgeQE runs goes to the same image: the coding loop's runs, heal , suite 's existing tests and run tests . Each run gets its own container docker run rm , so stopping a run removes it. Browsers the test starts are found with docker top , as ForgeQE finds them on this machine. What stays on this machine: the agent runtime, the model key, ForgeQE's other secrets, the file tools read, edit, write; the repository is the same folder in both places , and ForgeQE's own agent, which works with you on this machine and keeps its shell here. FORGEQE HOST RUN=1 runs everything on this machine for a session. The container: one per ForgeQE process and project, forgeqe \u003cproject workspace \u003cid , removed when ForgeQE ends; the repository mounted read write at its own path; credential files in it .env , .env. except templates, .npmrc , .netrc , .pem , .key , id keys covered with an empty read only file, and .ssh , .aws , .azure , .docker , .kube and .forgeqe/sessions with an empty folder; HOME on the project's volume forgeqe \u003cproject home , so NuGet, npm and pip caches outlive the session. Docker creates the volume for root, so ForgeQE runs chown in it once, with a fixed command; this machine's user user uid:gid , no new privileges , pids limit 4096 , the project network; only CI=1 , HOME , the env and secrets listed, and, in each command, the environment's FORGEQE APP and FORGEQE VAR and the saved logins' variables, by name. containers.tests still names the image run tests uses when it is set. Without it, run tests uses the workspace's image. This needs a Linux or macOS machine, as tests in a container do. The browser in a container One container per use: each browser run a suite runs suite.parallel at once gets its own, and a coding job gets one that its replay and live browser share. Each is removed when its run or job ends. Connection: Chromium listens on 127.0.0.1 inside the container. CDP has no authentication of its own, so a small gateway in front of it BROWSER SERVER in src/containers/browser.ts , run with the image's Node.js accepts a connection only with a random 48 character token in its path, compared in constant time, and refuses a browser Origin that is not local. The port is published on 127.0.0.1 only. The token reaches the engine, the replay and the live browser's MCP server through the environment, never a file or a command line. Visible or headless: a visible browser runs on Xvfb inside the container. Sites that turn headless browsers away see an ordinary one, but you do not see it on your screen. Runs keep screenshots and traces as usual. Reaching the app: the container joins the project network, so a declared service is reached by its name http://order api:8080 . An app this machine serves is http://host.docker.internal:\u003cport ; localhost is the container itself, and ForgeQE warns when a run starts there. Replay: one pass, in a new browser context. The second pass without Playwright's automation switches needs a launch, which a running browser does not have. A run explored in a container is replayed in one even when the provider is changed back later run.json . Testcontainers Scribe When a test needs a real service, or the repository already uses Testcontainers Java, .NET, Node, Python, Go , Scribe loads the testcontainers skill. It reuses the repository's containers and fixtures, pins images, waits for readiness, uses the mapped port, and sets the app's own configuration from it. It never uses privileged mode, the host network, the Docker socket, or a docker command from a test. These containers belong to the tests in the repository: the tests start and stop them, wherever they run. Mocks mock service builds WireMock stubs and runs WireMock on a free port of 127.0.0.1: From a run the default: the latest run, or run dir : One stub per method, path and query of the app's own API calls, answering with the last status, content type and body the app got. Other sites' calls are left out unless third party is set. Failed calls are left out. Answers that were cut when recorded are listed under skipped . From a description spec : OpenAPI 3 or Swagger 2, a link or a file : One stub per REST operation. Each stub answers with the operation's first success status and a body from the schema's examples, or values made from its types. A path parameter /orders/{id} matches any one path segment. Instead of a description, you can give a contract set from api contracts set id . GraphQL, SOAP and gRPC are listed under skipped , not mocked. A spec given as a link is fetched by ForgeQE itself, with no credentials, as api contracts does. The stubs are written to .forgeqe/mocks/\u003cname /mappings/ . You can read and edit them there. The folder is mounted read only at /home/wiremock/mappings . WireMock runs with enable stub cors , so a web app on another local port can call it. With for app: \u003capi app , the active environment's API app points at the mock for the rest of the session. That covers the API tools, and the tests ForgeQE runs, which read FORGEQE APP \u003cAPP URL . env.yaml itself is not changed. Lifetime Services and mocks the agent starts are removed when the shell, forgeqe run , or forgeqe mcp ends, as are the workspace and browser containers forgeqe.kind workspace and browser . The home volume stays. forgeqe services up keeps its services running after the command ends, until forgeqe services down . Container names are forgeqe \u003cproject \u003cservice . \u003cproject is a hash of the project folder, so two projects never share a container. Starting a service replaces its earlier container. Removing a container also removes the anonymous volumes its image declares a database's data folder , so nothing is left on the machine. A container is never reused with old settings. Labels: each container carries forgeqe=1 , forgeqe.project , forgeqe.service and forgeqe.kind . down and status look only at this project's containers. Security ForgeQE's agent reads text other people control: tickets, web pages, repositories. A container command built from that text could mount the whole disk or run privileged, so: No commands from the model. The agent names services that forgeqe.yaml declares, and ForgeQE builds the argument array docker run … . It never uses a shell. Images, flags and mounts never come from a request. The same restrictions for every container: security opt no new privileges , pids limit 1024 , ports on 127.0.0.1, and read only mounts. There is no setting to turn these off. Mounts are checked like uploads except a mock's stubs folder, which ForgeQE writes itself and mounts read only . The path is resolved with realpath and must be inside the project. A mount that is or holds a hidden file or folder .env , .git , .npmrc , a file named like a key .pem , id rsa , llms.json or a link is refused. A container can send what it reads anywhere. Environment: The docker and podman programs see only the system settings and the variables they need to find their daemon DOCKER HOST , DOCKER CONTEXT , CONTAINER HOST , … , plus the service's listed secrets. A container gets only its env and secrets . Logs and errors have secret values replaced with . Not in the agents' shell: docker , podman , nerdctl , docker compose and podman compose are denied in the shell of ForgeQE's agent and of Scribe. So the only way to start a container is these tools. Asked first: services up and mock service ask the user before starting, as run tests does. Code File Contents src/containers/config.ts containers: in forgeqe.yaml: services, images, ports, env, secrets, mounts, ready checks src/containers/run.ts The runtime docker or podman , run arguments, mount and secret checks, start and wait, status, logs, stop, the session's containers src/containers/mock.ts WireMock stubs from run traffic and from contract sets; values from JSON schemas src/containers/compose.ts docker compose files as services: what is translated, ignored, left out or refused src/containers/tests.ts run tests in a container: arguments, environment, mounts, output, browsers from docker top src/containers/workspace.ts containers.workspace : the container, its home volume, the agent's shell script, its test runner src/containers/active.ts The registered workspaces, by repository: runTestCommand and openSession look them up src/containers/masks.ts The repository's credential files and folders, covered in every container that mounts it src/containers/browser.ts browser.provider: docker : the browser container, its token gateway, the endpoint src/containers/command.ts forgeqe services skills/testcontainers/SKILL.md Scribe's Testcontainers skill src/mcp/containertools.ts The agent's services and mock service Tests: bun test tests/containers.test.ts tests/workspace.test.ts , which use a fake runtime that records each command workspace.test.ts also runs the gateway against a stand in browser, and the agent runtime against the workspace's script . tests/containers.live.test.ts uses real Docker."},{"t":"Product knowledge","u":"docs/product-knowledge/index.html","g":"More documentation","h":[],"x":"What ForgeQE's agents should know about your product, written once and used on every run: what it does, who uses it, the words your team uses, the rules it follows, the data to test with, and where it runs. Fill in the files below or add your own .md or .txt files, in folders if you like and commit them. How the agents use it: ForgeQE's agent sees the list of these files and reads the ones a request needs planning tests, judging a test case, answering about the product . Planning agents exploratory charters, API scenarios get the sections that match the story or scenario. The browser agent gets the few sections that match the goal at most knowledge.browser max chars , default 1500 characters, so runs stay cheap . Sections are found by their headings, so give each topic its own heading. A file you have not changed since forgeqe init copied it is left out: the templates' examples never reach an agent. Never put passwords, tokens, or personal data here: use logins and environment variables for those."},{"t":"Guardrails","u":"docs/guardrails/index.html","g":"More documentation","h":[],"x":"The team's own rules for every agent ForgeQE runs, to keep them grounded. Each bullet line \" rule\" in a .md or .txt file in this folder is one guardrail; headings, other lines and HTML comments are ignored. guardrails.md is the file ForgeQE's agent adds to when you ask it for a new rule. How the agents use them: A file can be for some agents only: start it with a header that names them, by their names in forgeqe context the Settings › Guardrails page writes it for you when you add a file there, pasted or uploaded : Without a header, or with for: all , a file is for every agent; a header that names no agent ForgeQE has is for every agent too, so a typo never drops a rule. Custom agents get every rule. Every agent gets its guardrails with its instructions, above any request, skill, ticket, page or tool output that says otherwise. When a guardrail stops part of a task, the agent skips that part and says which rule stopped it. At most 40 rules of up to 300 characters each are given to the agents, since each one is sent on every model call. forgeqe context shows how much they add. Guardrails are instructions, not a sandbox. What must never happen is also refused in code: hosts outside browser.allowed hosts , pushes, secrets, protected files. Put a host rule in allowed hosts as well as here. Never put passwords, tokens or personal data in a guardrail."},{"t":"Feature test prompts","u":"docs/feature-test-prompts/index.html","g":"More documentation","h":[["Before you start","before-you-start"],["Browser and test cases","browser-and-test-cases"],["Automated tests (Scribe)","automated-tests-scribe"],["Pull requests","pull-requests"],["API and quality","api-and-quality"],["Release, operations, and systems","release-operations-and-systems"],["Recent additions","recent-additions"],["Environments, desktop, mobile, and tool scope","environments-desktop-mobile-and-tool-scope"]],"x":"One prompt for each ForgeQE feature, to check the agent end to end. Type each prompt in the ForgeQE terminal forgeqe start , started in the test project's folder for example playwright csharp pom framework . Before you start Replace the \u003c… placeholders with your own ids a story, a pull request . ⚠ marks prompts that change something outside ForgeQE: Azure DevOps, Teams, git, or the repository. Run those on test data only. Some prompts need an earlier run. 2, 17, 27, and 28 depend on 1 or 9, so run them after it. Don't use test case 2287 for the API + UI check. As written, its step 2 gets a 403 POST /add to cart is not how that site adds to the cart , and it signs in to a personal account. Use 26 instead. Browser and test cases Feature Prompt What to check 1 Browser goals Go to https://www.playwrightautomation.com, open the Practice tab, fill the Text Inputs with realistic values and check they are accepted Steps appear live; the run ends with a pass verdict and a report link 2 Page memory Run 1 again, then: What does ForgeQE know about the Practice page? The rerun replays from memory, faster and with fewer tokens; the answer lists locators 3 Saved logins Sign in to https://www.automationexercise.com/login with the test account and keep the session The login is saved; the password never appears in the chat or the logs 4 Run test cases Run test case 2287 from QI Claims and don't post results Each step has a verdict; report.html and junit.xml are written; nothing is posted to Azure DevOps 5 Test case quality Is test case 2287 in QI Claims good enough to run? Check it against PBI 2286 The card says \"to review\", not \"not runnable\"; the missing expected results are listed 6 ⚠ Write test cases Write test cases for PBI 2286 in QI Claims and show them before saving Each case has expected results and links to PBI 2286; ForgeQE asks before saving 7 Domain and regulatory design Write test cases for PBI 2286 covering PCI DSS obligations for card payments Cases cover card data and masking, and name the regulation 8 Exploratory testing Explore PBI 2286 on automationexercise.com and find bugs beyond the test cases A charter, findings with evidence, and suggested bugs Automated tests Scribe Feature Prompt What to check 9 ⚠ Turn a run into a test Write a Playwright test for the last passed run A handoff; a C test that uses the repository's page objects; ForgeQE runs the test; the reviewer gives a verdict 10 ⚠ Heal failing tests Heal the failing tests in tests/PlaywrightPom.Web.Tests Each failure is healed or reported as an application bug; no test is deleted or skipped 11 Find and run tests Run the Wikipedia tests in this repo The right dotnet test filter command; a pass or fail for each test 12 Flaky tests Which tests in this repo are flaky? Tests ranked, each with evidence retries, mixed results Pull requests Feature Prompt What to check 13 Pull request review Review PR \u003cn in QI Claims and focus on test coverage Findings with file and line, and a verdict 14 Impact and test selection What does PR \u003cn impact, and run only the tests it can break The test list comes from the code graph; only those tests run API and quality Feature Prompt What to check 15 API and contract tests Turn the last run's API calls into contract tests and run them Contracts are saved and run without a browser; a JUnit file is written 16 Accessibility and performance Is the automationexercise.com checkout page accessible, and how fast is it? WCAG findings by severity; LCP, CLS, and INP figures 17 Visual comparison Run 1 twice, then: What changed visually since the last run? Each page is marked same or changed, with diff images Release, operations, and systems Feature Prompt What to check 18 Defect intelligence Which defects in QI Claims keep coming back? Recurring defects, with counts and areas 19 Release readiness Are we ready to release QI Claims? Give requirement coverage A coverage table and a GO, GO WITH RISKS, or NO GO verdict 20 ⚠ Scheduled monitoring Check the automationexercise.com login every 15 minutes and alert Teams if it fails The monitor is scheduled and /monitor lists it; the alert text is clear 21 ⚠ Notifications Post the last suite's results to the Teams QA channel A message arrives in Teams, with a link to the report 22 Reports Write up the open defects in QI Claims as a report I can share report.html and report.md, linked from the card 23 ⚠ CI pipelines Add an Azure Pipelines workflow that runs tests/cases.yaml on every PR, and make it green A pipeline file, the secrets it needs stored, a pushed branch never main 24 Azure DevOps List the last 3 pipeline runs in QI Claims and QI Payments and which failed The agent's plan shows; calls appear in Activity; failure causes are given 25 Setup help What can you do here, and what is still not set up? The features, each with what it still needs Recent additions Feature Prompt What to check 26 API and UI steps in one case Run a case with these steps: 1. Open https://automationexercise.com/products 2. Call POST https://automationexercise.com/api/searchProduct with form body search product=top, expect 200 3. Search \"top\" in the UI, expect \"Searched Products\" api request is used and the server answers 200; workflow.yaml has an api step; the card says \"API … saved as a reusable API scenario\"; the replay passes 27 Reuse or extend existing tests Run 9's flow again with one extra check added ForgeQE offers reuse, extend, or new, with coverage evidence; no duplicate test file appears 28 Reviewer exchange Any Scribe job that needs two or more attempts for example 9 on a new flow \"Reviewer asked for changes\" lists each issue with its fix; \"Scribe tries again\" shows the real error; then the verdict 29 Activities panel During 24, press ctrl+o Activity takes half the width: the plan with spinners, Now and Next, each call shown as it starts; each request has a header row and a result row 30 Refine Type run 2287 and write automation , then press ctrl+r The panel scrolls with ↑↓ and PgUp/PgDn; open questions come first; Use, Edit, and Keep stay visible Environments, desktop, mobile, and tool scope These need an env.yaml with the apps named. The desktop prompts need Windows with a signed in, unlocked desktop. The mobile prompts need an emulator or device with Appium or Maestro , or TestMu credentials in .env . Feature Prompt What to check 31 Environments Which environments and apps do we have? , then Run the smoke cases on uat The apps of each environment are listed by kind; the run opens uat's URLs, not the default environment's 32 Desktop explore In \u003cdesktop app , create a new record named ForgeQE test and save it as a test ⚠ ForgeQE asks before it takes over the mouse and keyboard; a forgeqe desktop v1 workflow is saved with checks of the outcome 33 Desktop replay and heal Replay the last desktop workflow It runs with no model calls; a moved control is healed and listed for review, not saved silently 34 Record by hand Record a desktop test in \u003cdesktop app while I do it Your clicks and typing become steps; a secret you type is saved as {{secret:NAME}} 35 Edit a workflow from chat In that workflow, make step 3 wait up to 20 seconds for the Save button A diff is shown and nothing changes until you confirm; the workflow still validates 36 Visual check Add an image check of the chart to the last desktop workflow An expect image step and a baseline in \u003cworkflow .baselines/ 37 Mobile explore Open \u003cmobile app , sign in as the test user, and save it as a test Runs through Appium; a forgeqe mobile v1 workflow is saved; the password is typed from its placeholder 38 Mobile on Maestro Replay that mobile workflow on Maestro A Maestro flow is written in the run folder with secrets as ${MAESTRO …} , not values; each step has its result 39 Team Maestro flows Run our Maestro flows in .maestro/ Flows with runScript , evalScript or AI commands are refused, and the error names the command 40 TestMu In samples/mobile testmu see its README : forgeqe mobile upload sample.apk , then Replay wiki.yaml on TestMu with Appium, then with Maestro An lt:// id comes back; the run shows on TestMu; the access key appears in no file in the run folder 41 Tool scope /logs after 31 and 37 Each turn's agent.scope lists only the capabilities it was about browser for 31, mobile for 37 , with the reason for each 42 use capabilities Check the accessibility of the home page, then file a bug for the worst issue When the turn did not get the bug tools, the agent calls use capabilities and carries on without asking you again 43 Services in Docker Start the database with containers.services.db in forgeqe.yaml , then is it up? ForgeQE asks first; the card shows db ready on 127.0.0.1; forgeqe services lists it; it stops when the shell closes 44 Mock service Mock the orders API from the last run and point orders at it WireMock starts on a free 127.0.0.1 port; the stubs are in .forgeqe/mocks/orders/mappings ; API tests now call the mock 45 Container guard rails Run docker run v /:/host alpine The shell refuses it; the agent offers the services tool instead 46 Compose file With containers.compose: docker compose.yml : Start the services from our compose file Services start in depends on order; named volumes and read only mounts are listed in notes; a privileged or build service is refused by name 47 Tests in a container With containers.tests set: Run the checkout tests The confirmation says \"in a container image \"; services start first; results are read as usual; files in the repo belong to you 48 Testcontainers Scribe Write an integration test for the order repository against a real Postgres in a repo with Testcontainers Scribe reuses the repo's container fixture, pins the image, and uses the mapped port; no docker command in the test"},{"t":"Architecture","u":"docs/architecture/index.html","g":"More documentation","h":[["Engine (py/forgeqe_engine)","engine-pyforgeqe_engine"],["The path a test follows (capture.py)","the-path-a-test-follows-capturepy"],["Page memory (memory.py, replay.py)","page-memory-memorypy-replaypy"],["Bridge (src/engine)","bridge-srcengine"],["ForgeQE's agent (src/brain, src/mcp)","forgeqes-agent-srcbrain-srcmcp"],["Tool scope (src/mcp/scope.ts, src/capabilities)","tool-scope-srcmcpscopets-srccapabilities"],["Scribe, the coding agent (src/code)","scribe-the-coding-agent-srccode"],["Skills (src/skills)","skills-srcskills"],["Healing (src/heal)","healing-srcheal"],["Finding and running existing tests (src/code/find.ts, src/mcp/repotests.ts, src/cases/sprints.ts)","finding-and-running-existing-tests-srccodefindts-srcmcprepoteststs-srccasessprintsts"],["Test cases and suites (src/cases, src/suite)","test-cases-and-suites-srccases-srcsuite"],["Environments (src/environments.ts)","environments-srcenvironmentsts"],["Desktop apps (src/desktop, py/forgeqe_desktop)","desktop-apps-srcdesktop-pyforgeqe_desktop"],["Mobile apps (src/mobile, py/forgeqe_mobile)","mobile-apps-srcmobile-pyforgeqe_mobile"],["App memory (py/forgeqe_desktop/memory.py)","app-memory-pyforgeqe_desktopmemorypy"],["Memory across every kind of run","memory-across-every-kind-of-run"],["Containers (src/containers)","containers-srccontainers"],["Databases, test data and data flows (src/data, py/forgeqe_data)","databases-test-data-and-data-flows-srcdata-pyforgeqe_data"],["Model router (src/router)","model-router-srcrouter"],["Generated code (src/provenance.ts)","generated-code-srcprovenancets"],["Every other command, from the shell (src/mcp/clitools.ts)","every-other-command-from-the-shell-srcmcpclitoolsts"],["Reports for every kind of run (src/report/runs.ts, src/report/collect.ts, src/api/report.ts)","reports-for-every-kind-of-run-srcreportrunsts-srcreportcollectts-srcapireportts"],["Monitoring (src/monitor)","monitoring-srcmonitor"],["Telemetry (src/privacy.ts)","telemetry-srcprivacyts"],["Profiles and the offline test double","profiles-and-the-offline-test-double"],["Artifacts","artifacts"],["Tests","tests"]],"x":"Three processes. The Bun CLI owns the shell, config, profiles, and ForgeQE's tools. ForgeQE's agent runs on the agent runtime, reads each request, and calls those tools over MCP. Scribe, the coding agent, runs on the same runtime and writes, heals, and reviews tests. A Python engine drives Chrome; three more drive Windows apps py/forgeqe desktop , on UFO² and pywinauto , Android and iOS apps py/forgeqe mobile , on Appium and Maestro , and the team's databases py/forgeqe data , on SQLAlchemy, sqlglot and DB GPT, in its own environment . There is no FastAPI server, and ForgeQE keeps no database of its own: the databases it reads, and writes to when one is marked writable and the user confirms, are the ones databases: names. The single view map of subagents, tools, and capabilities is forgeqe architecture.html ../forgeqe architecture.html forgeqe docs open . Suite report.html includes the browser agent's token counts, and a cost in the machine's currency when the profile has a price. Engine py/forgeqe engine Copied from test agent nexus and trimmed to what a CLI run needs: Module From nexus Contents service.py nexus browser service RunRequest , run browser task memory replay, Agent construction fallbacks, the step callbacks, timeout and stop handling, one save for every way a run ends , error recovery system prompt, MemoryRun , artifact writing llm.py nexus browser service LLM construction azure, openai, openai compatible, ollama , model call timing, token usage browser.py nexus browser service Chrome launch kwargs, waiting for a page to settle, browser and agent shutdown, the browser profile recorded in run.json settings.py nexus browser service Fast mode tuning, headless mode, the default login block urls.py nexus browser service Start URL normalisation and the allowed hosts checks loops.py nexus browser service Progress checks, the repeated control nudge then stop, and the resume point after a failure capture.py new Live capture for the test the run becomes: what each action changed on the page install effects wraps the agent's tools.act , the control a user acts on actionable node , locators checked on the live page verify locators : role and name through Chrome's accessibility tree, the rest in the page , the element and section behind each check locate check , and click selector , a real mouse click on a CSS selected element summary.py nexus browser service Result markdown the agent's own final answer and the checks it recorded; no filtering of what it read , fallback summaries, failure trace and screenshot, the judge's verdict workflow yaml.py browser workflow yaml.py forgeqe v2 compact steps from history or the live trace after a stop , semantic locators, execution metadata cli.py new The stdin/stdout protocol above memory.py new Page memory: element facts from the engine library's DOM, ranked locators with confidence, element identity across visits, recorded flows, prompt hints. Locators follow Playwright: playwright role ok no link role for an \u003ca without href , strip icons icon font characters out of names and text; such a name becomes a role pattern , a scope the nearest ancestor id for a css locator scoped to a repeating item, and the frame an element sits in userlike.py new The agent clicks as a user can: the library's occlusion check raises Covered with what covers the element instead of clicking it from JavaScript, and script clicks this.click through Runtime.callFunctionOn and page typing type to page it still makes are recorded. install effects puts take on each action; record memory results keeps covered by for the click that then worked, and bypass and frame on the step replay.py new Replays a recorded flow through the engine library's Tools and writes the hand off task for the agent logins.py new Saved logins: the engine library's sensitive data per domain, TOTP codes, session files load, split by host, save when changed , and the interactive login command report.py new CaseReport per step verdicts through the engine library's output model schema and steps.json with step screenshots checks.py new record check , the browser agent's action for each result the goal asks to verify: expected and the exact text on the page, refused when the page visible text or form values, over CDP does not show it; service.py registers it on the agent's Tools , adds CHECKS SYSTEM MESSAGE , and on success passes the checks to run.json and workflow.yaml checks diagnostics.py new Console errors, uncaught exceptions, failed and slow requests, and accessibility checks per page, over CDP skills.py new Browser skills: choose skills one structured model call picks at most 3 by name and description; never raises and skills block the chosen skills' text under a header, within skills max chars . run browser task appends the block to the extended system prompt and records what it decided in run.json skills ; the choice's tokens are added to the run's usage brand.py , brand assets.py new ForgeQE start page and overlay in a visible browser; the icon made by scripts/brand.py from assets/forgeqe icon.png Saved logins. The request carries each login's name, domains, and environment variable names; values cross stdin only for logins remembered this session values , and are never logged. use logins builds the engine library's domain scoped sensitive data {domain: {shop username: …, shop password: …, shop bu 2fa code: \u003cTOTP secret }} , so the model sees placeholders, the engine fills values only on matching domains, masks them in page text, and turns bu 2fa code into a fresh pyotp code when typed. Session files for the run's logins are merged into Browser storage state=… . Because the agent closes the browser when run returns, on step end saves each login's cookies and origins cdp get storage state , split by host whenever they change, mode 0600, with a .gitignore in the folder. Page memory records text env / totp env instead of values, so replays and the handoff to the coding agent process.env.X use the current secrets. Session logins src/sessionLogins.ts . Credentials the user gives in a message or test case become a login through the logins tool's remember action: the site and its sign in hosts as domains, FORGEQE \u003cNAME USERNAME / PASSWORD / TOTP as env names, a session file in .forgeqe/sessions/ , and the values held in ForgeQE's process only. executeRun sends allLogins config forgeqe.yaml's plus these, a remembered one replacing a configured one of the same name and passes the goal through redactSecrets , which replaces each remembered password or secret with \" the password of saved login NAME \". runTestCommand puts the values under their env names for ForgeQE's own test runs and redacts them from the output. The brain's notes list remembered logins; its prompt says to remember credentials before the first run and never put them in goals. Step budget. max steps is a checkpoint, not a wall. The library's run gets 3 × max steps , so its budget warning at 75% and forced last step done come at the cap. At each multiple of max steps , on step end looks at the last 10 steps step outcomes : the step's actions ran without an error and the agent's own evaluation at the next step did not call it a failure and carries on when at least 3 worked making progress , logging \"Reached N steps and still making progress\"; otherwise it stops the agent and the summary starts \"Stopped at N steps: the last 10 steps made no progress.\" Page loading. on step start calls settle page before every step after the first: it reads location.href , document.readyState , and the body's text length over CDP every 0.25 s until the page is complete , or interactive with content, for up to 8 s 3 s while the tab stays about:blank , and logs a debug line when it waited a second or more. The library switches to a tab a click opened 50 ms after the click and waits at most 0.3 s before reading the page, so a heavy page used to be read blank and cost a step. The agent's own note actions write file , replace file , read file are in READ ONLY ACTIONS , so they are neither recorded nor stop a replay. Repeated controls. control loop exceeded counts the same click, input, search, or select by element index or text in the last 8 steps. The first time one reaches 4, the agent is not stopped: install nudges wraps the library's inject loop detection nudge , which runs after the library clears its per step context, and the next step's prompt gets \"you have done click \"One way\" 4 times… work out why the earlier attempts did not stick… take a different approach\". Counting restarts after the nudge; reaching 4 again stops the run \"…after the agent had already been told to change approach\" . With a library that has no such hook, the first loop stops the run as before. Resuming a failed run. Each recorded step keeps the agent step it came from MemoryRun.step of ; 0 for replayed steps and the opening navigate . On a failure other than a user stop, resume point picks the step where the run went wrong: where a repeated control loop began, where the last progress window of a stalled run began, or the trailing streak of failed steps. resume steps keeps the recorded steps from before it not only navigation and waits . They go to resume.json in the run folder and under resume in the task's flow file; a later success removes them. Replay then picks, in order: the request's resume from browser run 's resume from , the task's successful flow, the task's resume . handoff task kind=\"resume\" tells the agent where the earlier run went wrong and to take a different approach there. A run that failed because an expected result did not hold outcome: assertion failed keeps the steps up to that check instead assertion resume : MemoryRun.first failed check finds the earliest check recorded with holds: false , by the flow steps done and the agent step when it was recorded , marked assertion: true ; the next run replays them and the handoff tells the agent to check that result again on the page as it is, record it as not holding if it still does not, and not to redo the steps or try other ways to make it true. That is what a reproduce run or a rerun of a failing case needs: the way to the failing check, not another exploration. The resume also keeps that check check : expected, and the text the page showed instead unless a passing check of the run found the same text. With checks first and replay: verify , reproduced by check lets the run look for that text right after the replay with no model: found, the run ends assertion failed with 0 tokens trace source memory reproduced and keeps the resume; not found, the agent takes over with the handoff above. Checkpoints. After each step on step end calls MemoryRun.checkpoint : the steps so far resume steps with no cut off go to checkpoints/\u003cflow file name in the memory folder a separate folder, so recent flows never lists them with the run id and interrupted: true , the same data goes to the run folder's resume.json , and page memory is flushed. MemoryRun.finish removes the checkpoint when this run or the run it picked up wrote it, except for a stopped run; write artifacts removes the checkpoint resume.json from a run that did not fail and was not stopped. The lookup takes the checkpoint after the task's successful flow and before its saved resume , as kind=\"interrupted\" , and handoff task then says the earlier run was cut off and to carry on without repeating the steps. Stopped runs report tokens from the library's token counter, since history.usage is only filled when run returns. Session login values are also set in the engine process's environment one process per run , so a replayed sign in step finds them by env name. Session log src/sessionLog.ts . main opens one log per session for the commands that run something startSessionLog , in the logs folder next to sessions . Lines are \u003cISO time \u003ckind \u003cJSON : session versions, argv, profile, browser and memory settings, login names , agent.ask / agent.turn written after the turn, so credentials the message gave are remembered and redacted , agent.event the agent runtime's events , tool.call / tool.result from createMcpServer , with duration , tool.event what a tool reports while it runs: the coding and healing agents' reads, commands, edits, and test runs, suites, cards; browser run events are left to engine.event , engine.request / engine.event / engine.log every stderr line / engine.exit from runEngine , run.done from executeRun , and error . serialize hides fields named like api key , password , token , or values , clips strings at 8,000 characters 200,000 with debug , and redactForLog replaces remembered login values, secret looking environment variables name parts KEY, TOKEN, SECRET, PASSWORD, PAT, CREDENTIALS, values of 8+ characters , and API keys from llms.json . debug / FORGEQE DEBUG also sets the engine's logging level to debug; debug level engine events go to the log only. bundleLogs forgeqe logs bundle , /logs stages the log, the run folders named by out dir / runDir / run dir in it text files redacted, screenshots only with shots , forgeqe.yaml , profiles without keys, and versions, then tar czf s them. Updating src/update.ts , forgeqe update . findInstalls walks PATH for forgeqe executables, resolves pyenv shims with pyenv which , and classifies each by what it resolves to: a package folder named ForgeQE under .bun bun or elsewhere npm , or a script whose shebang is a Python that imports forgeqe cli pip . latestVersion reads the registry's latest tag with a cache busting query; npmReady needs the version document and a HEAD of the tarball to answer 200, pypiReady the PyPI version JSON, because both registries accept an upload minutes before they serve it. update waits for them waitUntil , every 15 s, 20 minutes by default , then runs and,, or, and reads the installs again to confirm. scripts/publish.sh waits the same way after uploading before it prints Done . Step verdicts. When the goal came from a test case with steps, CASE REPORT INSTRUCTION goes into the system prompt and output model schema=CaseReport makes the engine library's done action return {summary, steps: {step, status, actual} } ; history.structured output becomes case report in the result. If the Agent rejects the schema, the run continues without it. Finishing and the judge. GOAL VERIFICATION SYSTEM MESSAGE is added to every agent's system prompt: done with success only when every field holds exactly what the goal asked for pre filled or extra values in multi value fields removed , every setting the goal names is applied through the page's own controls and shown by the page, and findings are read from the page, items a list already shows are read from it in one step, and a tab that looks blank right after opening is still loading. The engine library's judge use judge is off by default: browser.judge: true passed to the engine as its judge setting or FORGEQE ENGINE USE JUDGE=1 turns it on, and it then makes one model call over the steps and screenshots. It was turned off because it failed completed runs whose answer came from one screenshot five result scores instead of one step per item, and ForgeQE's agent then retried with ever stricter goals. When the agent says success and the judge's verdict is false, the run fails with the judge's failure reason ahead of the agent's report; the verdict goes into run.json as judge . A judge call that errors leaves the agent's result as it was. Window and video. window launch kwargs sizes a local browser from browser.viewport : the page when headless, the window with browser.window: viewport . Otherwise a visible window opens screen sized the engine library's default and, before the first page, maximize window sets windowState: maximized over CDP. With browser.video on the default , the browser is started before the replay or the agent, and start video starts the library's recording watchdog on \u003crun /video.mp4 ; stop video finishes it before the browser closes, and run with events adds it to the run's files. The watchdog encodes Chrome's screencast frames at 30 fps as they arrive, so the video's timing follows how often the page repaints, not the clock. The encoder browser use video : imageio with ffmpeg, numpy is installed with the engine, and added to an engine set up before it. The report lists video.mp4 among the run's files and plays it on the Artifacts tab. Browser profile. At the end of the first step or before writing a trust mode replay , browser profile reads how the browser was set up: the engine's driver, channel and executable, headless, the default switches removed, extra HTTP headers none , Browser.getVersion , and from the page navigator.userAgent , navigator.webdriver , language, time zone, and viewport. It goes into run.json as browser , and the handoff shows it so the coding agent can compare its test's browser with it. Timeline. build timeline writes steps.json from the history and the replayed steps : URL, title, the model's evaluation, memory and next goal, each action with its error, start time t0 and duration, the part of it spent waiting for the model model ms , from wrapping llm.ainvoke and overlapping the calls with the step's step start time / step end time , and a JPEG of the page max 1280 wide under steps/ , subject to report.screenshots . Each action on an element carries box : the element's absolute position from the DOM snapshot the model saw, minus the page's scroll, as fractions of the viewport, so the report can outline it on that step's screenshot. Timeouts, stops, and crashes still write it from the partial history. Diagnostics. Diagnostics registers Runtime.consoleAPICalled , Runtime.exceptionThrown and Log.entryAdded on the engine library's CDP client cdp use allows one handler per event, and the engine library's own watchdogs don't use these three; Network.responseReceived belongs to the downloads watchdog, so failed and slow requests come from the page's resource timing entries, responseStatus and duration, at each sample . It samples at every step start and end and after each replayed step. Each new page by URL without the hash, up to 25 is checked once: Accessibility.getFullAXTree for unnamed buttons, links, fields and images, heading order and the document title, plus a page script for lang , text contrast WCAG ratios, skipping text over images and zoom blocking viewports, with up to five examples each from DOM.getOuterHTML . A request counts as slow from 3 s. assign problems attaches each event to the step it happened in by t0 , at most 25 per step; run.json gets the totals as diagnostics , and the pages go to accessibility.json . report.accessibility: false skips the page checks. Overlay. With a visible browser and browser.overlay on, brand.Overlay puts a \u003cforgeqe overlay element on each page: a shadow root page CSS can't reach it with an edge glow, a bottom bar icon, the step from step text : its intent from next goal , or the \"next goal\" sentence in the model's memory, and its actions in words from plain action , never raw tool parameters; a Thinking / Acting / From memory chip , and a transparent blocker. Window capture listeners, added before the page's scripts, drop trusted mouse, wheel and key events while it is locked. It locks in on step end and replay's gaps between steps, and unlocks in on new step which the engine library calls after the model answers and before the actions run and around each replayed action, so the agent's own CDP input always gets through. Each page gets it from Page.addScriptToEvaluateOnNewDocument on its own target the engine library's cdp add init script covers only the focused one , with the current text baked in and the lock off, since a page can load halfway through a step's actions. The host carries the library's DOM exclude attribute left out of the DOM the model reads , aria hidden , and attached outside \u003cbody , so the accessibility checks skip it. brand.install wraps ScreenshotWatchdog.on ScreenshotEvent to hide it for every screenshot the model's and the report's and replaces the about:blank watchdog's animation, which loads a logo from the library's CDN, with a start page. The status bar's icon is raw pixels on a canvas, so a page's img src policy can't block it or log an error; the start page only appears on about:blank, which has no policy. Headless runs skip all of it. Left out: Mongo persistence, LangGraph, Scrum Studio, and video recording. Nexus's Mongo site memory and compact replay are replaced by the file based page memory below. The model decides everything about navigation. With no pinned URL the browser starts blank and the agent opens the site itself, even when the goal names one. Nexus's infer initial url from goal regex is removed, and the engine library's own URL guessing from the task directly open url is turned off. Only a pinned start URL url , start url , or the start url argument the agent passes when the user named a page is opened before the agent's first step. fd 1 inside the engine is redirected to stderr at start up, so library prints cannot corrupt the event stream. The path a test follows capture.py A passed run becomes a test, so the run records the path that worked, checked while the page is still there, not every attempt. What changed. install effects wraps the agent's tools.act . Around each click, key press, script, and click selector it takes a fingerprint of what a user could notice address, visible text, element count, open menus and dialogs, form values, selected and pressed states and polls for up to 1.5 s for a change. record memory results leaves an action that changed nothing out of the flow a click on a decorative node, a retry that missed, a script that only read the page and lists it in run.json memory.left out ; fills and selects always stay. A script that did change the page stays, marked scripted , and the handoff asks for the page's own control instead. The control, and locators checked on the live page. Before the step's actions run the library's new step callback comes before multi act , point at controls re points each element action from the node under the pointer to the control a user acts on an icon inside a label or button becomes the label or button and verify locators checks each candidate on the live page: role and name through Accessibility.queryAXTree the accessible names Playwright's getByRole uses , ids, CSS, attributes, text, and XPath in the page. A locator is verified when it finds exactly that element or something inside it . Verified locators come first, so best locator is one that worked. Real clicks, not scripts. The agent's prompt CAPTURE SYSTEM MESSAGE asks it to act only through browser actions, and click selector gives it a real mouse click scroll into view, refuse when covered, Input.dispatchMouseEvent on an element it found by CSS, captured like any click. Checks with their element. record check finds the smallest visible element showing the text and the section it sits in, each with verified locators element , container in workflow.yaml checks , and takes dynamic for live data today's date, a price, a count . The handoff lists the path with ✓ on verified locators, says how many actions were left out, gives each check its locator and section, and leaves out page memory when every step and check is verified. Scribe is told to use ✓ locators as given and not to look for those elements again. Page memory memory.py , replay.py Files under memory.dir default .forgeqe/memory next to forgeqe.yaml , or ~/.forgeqe/memory when there is no config file , written atomically at the end of a run: pages/\u003chost /\u003cpath .json : one per page template. The key is host plus port and path; segments that are numbers or look generated become , and the query string is dropped. Each element stores tag, role, accessible name, text, stable attributes never value , its locators, best , confidence , visit and use counts, and first seen / last seen / last used / last updated . Pages keep at most 400 elements; past that, elements never used and least recently seen go first. flows/\u003cgoal \u003chash .json : keyed by the normalised goal and start URL. It holds the steps of the last successful run, each with the element's top locators and a fingerprint, plus pass, fail, and replay counts. scribe notes.json : written by the coding side src/code/notes.ts , not the engine: per repository, Scribe's notes from its reading turn and the tests jobs wrote there. Observe. Before each agent step, on new step passes the engine library's selector map EnhancedDOMTreeNode s to MemoryStore.observe . For every element it builds the locator candidates, counts how many elements on the page each one matches, and merges them into the page file. An element keeps its identity across visits through a strong locator test id, id, name, role, label, placeholder, href , then its XPath, then a hash of tag and anchor text. An XPath match counts only when the role and accessible name or text agree too, because sites reuse one popup container for different widgets; an element whose label changed becomes a new entry. When replay resolves a step on a different entry than the one recorded, record stale marks the recorded entry's dead locators as missed and failed, and the flow is saved against the new entry. flow step lists the locators that matched on the page at that moment ahead of those only seen on earlier visits. Confidence is 100 × base × uniqueness × stability × reliability , clamped to 1–99: Factor Value base by kind: test id .96, id .90, role .88, name .86, label .84, placeholder .82, alt .78, href .74, title .72, text .70, CSS .50, XPath .30; ×0.4 when the value looks generated uniqueness 1 when it matches one element, else 0.5 / matches − 1 stability 0.75 + 0.25 × min seen, 4 / 4 × seen / seen + missed reliability successes + 1 / successes + failures + 1 Record. on step end pairs each action's result with the element it targeted. It records success or failure against the element and the locator, and adds non read only actions to the run's flow. At the end, a complete run replaces the flow's steps, a failed run only counts a failure, and a stopped run leaves the flow alone. Replay. Before the agent is built, replay flow runs the stored steps with Tools .act , the same actions the agent would call. In order, the run replays the exact goal's flow, a failed run's resume steps, a cut off run's checkpoint, or an edited case's unchanged steps. A goal with none of these gets the start it shares with another task on the host MemoryStore.shared start , kind shared : flowmatch.shared start py/forgeqe engine/flowmatch.py , no model ranks the host's passing flows by the content words their goals share with this one, and of the three most similar keeps the longest leading run of steps this task may borrow. A step is borrowed when this goal names its control or the value it types; when it signs in with a saved secret and the click that submits that sign in ; when it clears a cookie banner or pop up; or, while the flow is still in its opening, when another recorded task on the host took the same step without a value. Values another task typed, page scripts, uploads and API calls are never borrowed, a flow that opens another URL than this task's start is not used, and the first step that fails these rules ends what is borrowed. handoff task kind=\"shared\" names the task they came from and tells the agent to check the page fits and carry on. prompt hints still lists the steps of up to 2 recent flows of other tasks and the controls that worked there. Element steps take a fresh snapshot retrying briefly while the page loads and resolve the element by the store's current best locator, then the step's own locators, then the fingerprint. Read only actions extract , find text , done , … are skipped. Replay stops at a step it cannot resolve or restore: password fields, file uploads, tab switches, evaluate . An api request step is replayed with the same call in the page's session register api request on replay's own tools , and stands only when the server answers with the recorded status api mismatch ; otherwise replay stops there and the agent judges the answer. handoff task then tells the agent what was already done: check and finish verify , or continue from the stopped step. trust returns success with no agent only when every step of this same task ran. Replayed steps are emitted as step events with \"source\": \"memory\" , before any agent steps. A replayed step whose recorded locators no longer match anything on the page, but that still resolved through another locator, is recorded as a heal {step, line, label, stale, used} ; when replay stops and the agent then finishes the case, run.json notes repaired with the step and reason. Both go under memory in run.json for the report. Parallel runs. flush and save flow result hold an fcntl lock on \u003cmemory /.lock . Each page file has a revision counter. If the file on disk has moved on since this run loaded it, the run merges instead of overwriting: every visit, match, miss, success, and failure counter becomes the saved value plus this run's own change, elements this run never saw keep the saved copy, and the revision becomes one past the higher of the two. Two runs on the same page a suite with parallel above 1 therefore both count. Hints. prompt hints adds the last successful steps on the same host, and the controls those runs actually used, to the agent's extended system prompt, capped at 2,500 characters, and tells the agent to act on them in one turn. The system prompt cannot name an element's index, which changes with every page load, so on its own it left the agent reading the whole element list anyway. Known controls per step. install known controls wraps the library agent's prepare context : after the library has built the step's page message, MemoryStore.observe records the page once the snapshot is shared with the step callback through step seen , so a step is observed once , and MemoryStore.known controls adds a context message naming up to 10 controls on this page that earlier runs acted on with success, each with its index in this step's element list 12 Email address textbox, worked 2× , told to act on them by index in this turn. A page memory has never acted on adds nothing. Context messages are the library's own per step channel its loop nudge uses it , cleared before each step. In run history. Fast mode passes max history items=8 and turns message compaction off. Each later step of an exploration keeps the first step and the most recent ones, instead of resending the whole transcript or pausing for a summary model call. FORGEQE ENGINE MAX HISTORY ITEMS overrides the cap minimum 6, which is the engine library's own floor . Workflow steps. compact step gives each workflow step its best locator and ranked locators with css / attr where the locator needs them , evaluate steps their code , and every step the browser agent's note , which the handoff passes to the coding agent. on step end passes agent note model output the step's evaluation, memory, and next goal, each once to record memory results , which stores it on each flow step that step recorded; flows keep it, so replayed steps carry the note of the run that first took them. The engine writes no test script: the coding agent writes the test in the repository's language, and ForgeQE runs it. Bridge src/engine The launchers bin/forgeqe.js for npm, py/forgeqe cli/launcher.py for pip use a Bun 1.3+ from FORGEQE BUN , PATH or ~/.bun/bin , else download the pinned BUN VERSION from Bun's GitHub releases into ~/.forgeqe/tools/bun \u003cversion after checking it against SHASUMS256.txt . Both pin the same version a test checks this . The pip launcher runs the checkout's src/index.ts when it sits in the repo, else bun x ForgeQE@\u003cits version . src/tools.ts downloads a release archive into ~/.forgeqe/tools/\u003cname \u003cversion , checks its SHA 256 from the release's checksum file, or the digest GitHub's release API records , unpacks it with tar System32's bsdtar on Windows, which reads zip , and removes older versions. uv and the agent runtime use it; the launchers carry their own copy for Bun because they run before any TypeScript. code/runtime.ts uses the runtime from code.runtime , PATH, or an existing install, else downloads the pinned runtime, whose version matches the agent runtime SDK in package.json a test checks this . forgeqe setup calls it, and so does every command that can start the agent. setup.ts finds or creates the engine environment: FORGEQE PYTHON when that Python passes the engine check otherwise it logs why and skips it , else ~/.forgeqe/engine/.venv , which is rebuilt when its engine check fails created with uv venv python \" =3.11\" , or python3.11+ m venv when no uv can be found or downloaded . uv is the system one, else the pinned UV VERSION downloaded from uv's GitHub releases into ~/.forgeqe/tools/uv \u003cversion checked against its .sha256 , unpacked with tar , which on Windows is System32's bsdtar . A downloaded uv keeps the Pythons it fetches in ~/.forgeqe/tools/python . It installs the engine's pinned Python libraries and records the version in installed.json , so later runs skip setup. When Google Chrome is missing it installs Chromium through Playwright. bridge.ts spawns the engine with PYTHONPATH pointing at the packaged py/ , sends the request goal, profile, start URL, headed, max steps, allowed hosts, extra system prompt, browser skills with skills pick and skills max chars , and maps events: Engine event Transcript log grey line memory ↻ line, e.g. Replaying 4 remembered steps step step counter, the model's next goal; memory for replayed steps result ✓ / ✗ per action, e.g. click \"Search\": element not found usage token counter done final status, summary, artifact list, memory counts Memory row in the summary Esc or /stop writes stop ; the engine stops the agent and still writes artifacts from the live trace. An engine still running STOP GRACE MS 30 s later gets SIGTERM, then SIGKILL KILL AFTER MS 10 s after that, and the run reports stopped with a note that its artifacts may be incomplete. executeRun also gives the bridge a hard deadline engineDeadlineMs : twice browser.timeout seconds plus five minutes , because the engine's own timeout covers only the agent, not browser start up, skill choice itself capped at 60 s , or memory replay; a run past it is stopped the same way and reported as failed. Environment. The engine is spawned with an allow list allowListEnv in src/childEnv.ts : system settings PATH, HOME, locale, display, temp folders, proxies, certificates, Windows system variables , BROWSER USE , FORGEQE ENGINE , Python and uv settings, the key variable of the profile the run uses the active one, or the router's pick for browser , and the saved logins' variables. Other secrets in the terminal, such as tracker tokens, never reach the browser agent. ForgeQE's agent src/brain , src/mcp Every message in the shell and every forgeqe run \"\u003crequest \" goes to one agent runtime session running the forgeqe agent. Nothing is parsed before it: the agent decides whether the text is a browser goal, test case references, a test to write, or a pipeline task, and asks outcome needs input when it cannot tell. The only slash commands left are session controls src/commands.ts : /stop , /headed , /profile , /logs , /skills , /clear , /help , /exit ; any other line, including one starting with / , is text for the agent. Module Contents brain/prompt.ts BRAIN PROMPT : the tools every CLI command is one, so the agent uses the tool instead of telling the user to run a command , how to choose a source, find vs run, signing in, writing tests write test ; small hand edits verified with run test , the CI pipeline procedure, fixing broken tests heal tests , running existing repo tests find tests then run tests , never without the user's confirmation; sprint dates only from sprint , monitoring, ForgeQE's own docs and setup, and the rules no secret values, push only with push branch , stay in the working directory . The reply is plain text, so it streams to the shell as it is written the runtime's message.part.delta events, relayed as stream events ; it ends with a hidden line \u003c! forgeqe {\"outcome\": done \\ failed \\ needs input, \"next\": … } that splitReply reads and visibleReply holds back while the reply streams brain/index.ts openBrain starts the MCP server on 127.0.0.1 with a random token localToolServer , then an agent runtime session with the prompt, the session notes, the schema, and the server as a remote MCP entry 6 h tool timeout . ask returns the reply and outcome, abort stops the session and every running tool call. brainUnavailable is why it cannot run no model set up and no code.model , or no agent runtime ; callers then run the text as one browser goal. sessionSetup picks the working directory and whether passed runs become tests from repo , no code , and code.repo default: tests in the current folder mcp/tools.ts TOOLS and environmentNotes working directory, run and memory folders, configured test case systems, suite defaults, timeouts, the profile, and the names, never values, of keys set in the environment . Each tool reports ToolEvent s run start/event/done, suite start/event/done, info, agent for a nested coding or healing session's events, card for a result panel to whoever shows them. ToolContext carries session shell , once for forgeqe run , server for forgeqe mcp , waitForUser and ask when a person can answer, and openSession so tests can script the nested agent runtime sessions cases/save.ts save test cases : saveAdoCases creates Test Case work items adoStepsXml writes Microsoft.VSTS.TCM.Steps the way adoCases reads it linked to the story with TestedBy Reverse in its area and iteration; saveJiraCases creates issues type Test by default with the steps in the description and an issue link. Both reuse a case already linked to the story under the same title, then compare with the story's scope cases/scope.ts : test cases maps an area path or project to a plan, suite, area or JQL filter, values checked before they reach WIQL or JQL, at most MAX SCOPE cases read, steps only for the shortlist : the same steps are reuse , a case adding steps is extends with its insert ; nothing is written to an existing case there. planLinks checks ids, type and project before link test case or update test case 's story asks; insertSteps applies an insert . saveTestrailCases , saveZephyrCases , Xray mode in saveJiraCases createXrayTest , setXraySteps in cases/xray.ts , saveAdoCasesInArea and saveJiraCasesInProject for cases with no story, and existingCases for check test cases ' against . cases/fields.ts checks new cases ; cases/adodata.ts writes shared steps references and parameters; cases/staleness.ts reads a story's history; cases/retire.ts retires a case; cases/jirareadiness.ts is release readiness for Jira. cases/caseindex.ts keeps a project's index of scope cases' steps; cases/bulk.ts prepares several changes for one question apply case changes and the web gateway web/testcases.ts ; cases/targets.ts names a case's system by its id; cases/changelog.ts , cases/trace.ts and cases/proposals.ts keep the project's change log, criteria trace and pending proposals; cases/requirementsfile.ts reads Requirements Agent's requirements.json; cases/scopecheck.ts checks the settings Settings saves and tries a test cases line. On unless sources.save cases: false ; environmentNotes tells the agent which mcp/commands.ts COMMAND TOOLS , one tool per CLI command, appended to TOOLS . write test runs the coding loop runCodeAgent and heal tests runs runHeal , forwarding their events as agent events and ending with a card; each opens its own agent runtime server on port 0, so it nests inside the brain's session. monitor : round one runMonitor once , refused while a background monitor uses the folder , start / stop / status background monitors, only in shell and server sessions , test alerts . browser run takes purpose test or task ; taskReason treats a task , or a run that starts on, ends on, or names a configured source system's host Azure DevOps, Jira, Confluence, TestRail, Zephyr, qTest, Xray , as a task: it writes task.json TASK FILE in the run folder, returns no write test next step, and write test refuses that folder. browser run also takes resume from a failed run's folder or name, read by loadResume in run.ts and, after a failure with resume steps, returns them with a next step naming the folder; the brain's prompt says to retry with it and say what to do differently. logins : remember session logins , list configured and remembered , clear a saved session, and a remembered login's credentials and session file , and sign in through signIn and ctx.waitForUser refused without it . forgeqe setup : profiles, MCP servers, docsAbout README and HOW TO USE split at headings and scored against the topic, since the agent's external directory rule keeps it out of the package folder , install engine , init , skills op list, show, or new: newSkill into the project's or the user's skills folder card.ts Card status , title , stats , body and cardText . codeCard , healCard , and roundCard build cards from the same lines as the terminal summaries mcp/server.ts JSON RPC for MCP by hand: initialize protocol 2025 06 18, 2025 03 26, 2024 11 05, with instructions , ping , tools/list , tools/call , notifications/cancelled . serveHttp : Streamable HTTP on 127.0.0.1, checking the bearer token in constant time tokenMatches and refusing requests whose Origin is not this machine originAllowed , so a web page cannot call the tools; tool calls answer as an event stream with a progress notification every 10 s and a keep alive every 15 s, so the agent runtime's per call timeout which resets on progress never fires during a long suite. serveStdio : newline delimited JSON RPC for forgeqe mcp ; closing stdin aborts running calls. localToolServer : a server over HTTP with a fresh token and the agent runtime's MCP entry for it, shared by the brain and the healing session mcp/git.ts pushBranch : finds the default branch symbolic ref refs/remotes/\u003cremote /HEAD , else ls remote symref , refuses it and main / master , checks the name with git check ref format , and runs git push set upstream \u003cremote HEAD:refs/heads/\u003cname without force. setCiSecret : gh secret set NAME with the value on stdin, or az pipelines variable create\\ update secret true with the value in AZURE DEVOPS EXT PIPELINE VAR \u003cNAME ; the value is scrubbed from any error auth/mcpOAuth.ts Browser sign in to an MCP server oauthSignIn : protected resource metadata RFC 9728 → authorization server metadata RFC 8414, issuer checked, S256 required → dynamic client registration as a public client RFC 7591 → the authorization page with PKCE, state and resource → the code on a one time Bun.serve listener on 127.0.0.1:0 /callback , state compared in constant time, plain text page → token exchange. Every endpoint must be https. The grant is one credential store entry FORGEQE MCP OAUTH \u003cSYSTEM , with mcp:\u003csystem in auth.json. refreshMcpSignIns runs when a session opens openBrain , for forgeqe mcp list and when the web app starts: it clears FORGEQE \u003cSYSTEM MCP OAUTH , then exports a current access token renewed within a minute of expiry only for the server the settings name now oauthResource , auth/oauthNames.ts . external.ts and integrations.ts use that variable when no token variable is set web/signins.ts Settings' sign in for every system but Copilot: signIn with the page as its terminal one job at a time, an id of SIGNIN SYSTEMS only, answers only to the question waiting, typed secrets scrubbed from lines, links only https . Routes /api/signin , /api/signin/answer , /api/signin/cancel , /api/signout mcp/external.ts externalMcp turns sources: and mcp: into agent runtime MCP entries: azure devops npx y @azure devops/mcp \u003corg a pat\\ azcli d \u003cevery group in ADO GROUPS , with hints from adoHints : each prefix's words and keywords, and the mcp domains prefixes on every turn , atlassian uvx mcp atlassian with JIRA URL and JIRA USERNAME + JIRA API TOKEN or JIRA PERSONAL TOKEN , plus CONFLUENCE when sources.confluence is set, TOOLSETS=all ; or the hosted Rovo server at mcp.atlassian.com/v2/mcp with Basic auth, which also covers Confluence on the same site , confluence uvx mcp atlassian for Confluence alone when Jira's server doesn't cover it , the servers of integrations: mcp/integrations.ts : integrationsConfig checks each block, integrationServers gives gitlab remote \u003curl /api/v4/mcp , Bearer {env:token env} , postman remote mcp.postman.com or mcp.eu.postman.com , and browserstack , azure read only by default, namespace per service , dataverse and sentry started by npx with credentials as {env:} references , and every mcp: server, which replaces a built in one of the same name. Secrets are {env:NAME} references that the agent runtime substitutes; values that must be derived base64 of forgeqe:\u003cPAT for Azure DevOps, of email:token for Rovo are put in FORGEQE variables of ForgeQE's own environment before the agent runtime server starts. A system whose server can't start here no npx or uvx, missing token, Azure DevOps Server, Rovo on Server/DC is listed with the reason. The servers get a 120 s timeout, which also covers the first npx / uvx download cases/dashboards.ts createAdoDashboard for the create ado dashboard tool, since Microsoft's Azure DevOps MCP server has no dashboard or saved query tools: runs each widget's WIQL once $top=1 so a bad query fails before anything is written, saves it under Shared Queries/ForgeQE creating the folder, PATCHing a query of the same name , then POSTs the dashboard 7.1 preview.3 , team scoped when a team is given with count tiles QueryScalarWidget , {queryId, queryName} across the top, then work item lists WitViewWidget , {query: {queryId, queryName}} and markdown two to a row. Widget settings are JSON strings, as the API requires cases/adopr.ts createAdoPullRequest for the create ado pull request tool, since the default MCP tool groups leave out repositories and query api only reads: branchRef checks each branch against git's ref name rules before anything is sent, the repository is read by name or id, both refs must exist refs?filter=heads/… , an active pull request between the same refs is returned existing: true instead of a second one, then it POSTs pullrequests with a default title of \"Merge \u003csource into \u003ctarget \" cases/wiki.ts writeAdoWikiPage for the write ado wiki page tool, since the MCP server's wiki tools need an existing wiki: picks the named wiki or the project wiki, creating \u003cProject .wiki type: projectWiki , project id from apis/projects when the project has none, PUTs missing parent pages empty, then PUTs the page with If Match set to its ETag when it already exists. Code wikis get versionDescriptor for their first published branch cases/api.ts queryApi for the query api tool: GET under the Azure DevOps organization and its vsrm / vssps / almsearch hosts, with api version=7.1 added or the Jira site, and Xray Cloud GraphQL queries mutations refused . Absolute URLs on other hosts are refused, so credentials only go to their own system. Answers over 40,000 characters are cut After the session opens, openBrain reads client.mcp.status and reports each external server as connected, failed with the error , or needing a browser sign in; skipped systems are reported with their reason. The agent's session notes list the servers and say that a server whose tools are missing did not connect, so the agent falls back to query api . Tools take structured arguments. run test cases and find test cases get a list of CaseSelector s {source: azure devops \\ jira \\ xray \\ testrail \\ zephyr \\ qtest \\ file \\ text, ids, plan, suite, run, cycle, folder, jql, paths, text} that casesFrom reads directly, so the model's choice of source is never re parsed. Permissions. The agent's bash is allowed except git push , git push so git C . push is caught too , and gh repo delete , each also with a leading so a push wrapped in another command env git push , sh c 'git push' is caught; the agent runtime matches each command of a chain on its own and applies the last matching rule. These rules are guard rails, not a sandbox. forgeqe tools are allowed. external directory allows only the run and memory folders. Tool calls to forgeqe are hidden from the ⚙ lines because their ToolEvent s already render richer output browser steps, suite cards . Callers. The TUI opens the brain on the first message and keeps it for the session, so follow up answers and \"write a test for that run\" have context; /profile or Tab switches the model in the same session before the next message Brain.setModel : one agent runtime holds every usable profile, and each prompt names its model , with a one line note to the agent; a profile the session does not offer a custom agent's, code.model , one that could not answer when it opened closes it and keeps the turns so far: the next agent session's first prompt is carryOver turns, text , the last 20 turns with remembered secrets redacted, so switching models does not lose the conversation. It renders card events as result panels and agent events as ⚙ and test lines with their own token counter, and its waitForUser pushes the prompt into the transcript and opens a Your turn dialog Done, continue / Cancel ; opening another dialog or Esc settles it as cancelled. forgeqe run opens the brain for one request, prints tool events cards as cardText and the reply as plain lines, waits for Enter in waitForUser when stdin is a terminal, and exits 0 done, 1 failed, 2 stopped, 3 needs input. forgeqe run direct and a missing agent runtime run browser run directly. forgeqe mcp serves the same TOOLS on stdio and logs ToolEvent s to stderr; it has no waitForUser . forgeqe chat jsonl src/chat/jsonl.ts is the TUI's agent for a program: like the TUI, it opens the brain on the first message, keeps it for every message, runs with session: \"shell\" , runs Tier 0 requests as recorded before asking the agent, and continues an earlier conversation with carryOver carry over FILE , with its own reason sentence ; like forgeqe run , it takes its flags repoFlag , memoryFlags , … and writes one session log; like forgeqe mcp , it is a machine interface, with stdout claimed for the protocol and every other print sent to stderr. It writes each CodeEvent and ToolEvent unchanged as a JSON line agent , tool , turns ask and waitForUser into ask and wait lines answered on stdin, ends every turn with one turn done , and passes every outgoing string through redactSecrets and the values of privateEnvNames and profile keys. The protocol is in HOW TO USE.md. forgeqe start , forgeqe mcp , and forgeqe chat stop background monitors when they return, because src/index.ts calls process.exit . Tool scope src/mcp/scope.ts , src/capabilities Every model call carries the definitions of the tools the agent has, so the agent does not get every tool on every turn. The registry capabilities/registry.ts groups the tools into capabilities. Each capability has its tools, the requirements it needs a model, a runtime, an app kind, a tracker , and keywords. Module Contents mcp/scope.ts CapabilityScope , one per agent session. beginTurn text picks the turn's capabilities and returns the per prompt tools switches forgeqe \u003ctool : true\\ false . The picks are: the core setup help , test apps , agent.capabilities.always , the ones use capabilities asked for, those used in the last STICKY TURNS 3 turns, and up to MAX PICKED 4 from scoreRequest . scoreRequest makes no model call: it matches keywords and tool names, URLs the browser , issue keys test cases , and the names of the active environment's apps by kind . A capability whose required apps or system are missing usableCapabilities is not picked from words alone, and nothing is picked from agent.capabilities.off . When nothing matches, browser goals is the fallback. request from use capabilities refuses unknown and switched off ids and queues the added ones in takePending . listedTools is the list for MCP clients. capabilityIndex is the short list of capabilities in the agent's prompt. Other MCP servers' ToolGroup s are switched the same way: always ones every turn, a group whose keywords match the request as whole words they do not count against MAX PICKED ; when the request names a system, by a group's system words such as \"github\" or \"azure devops\", only that system's groups , the ones use capabilities asked for, and one whose tool ran in the last turns used takes the runtime name, from onToolResult . toggles adds a switch per tool of each group; opencode applies a prompt's tools to MCP tools by name, so a switched off group's definitions are not sent tests/brain groups.e2e.test.ts mcp/discover.ts discoverTools asks every server for its tools initialize, tools/list as the runtime starts it: a local command through spawnPlan an argument list; cmd.exe quoting on Windows with its {env:} values filled in and ForgeQE's private variables left out, or a remote address streamable HTTP, JSON or SSE . The list is kept in ~/.forgeqe/cache/mcp tools/\u003chash .json mode 0600 for LIST TTL MS a week ; the hash is of what the server runs and the names of its variables, never a value or the server's name. serverGroups groups each list; a server that does not answer is left out, so its tools stay on mcp/toolgroups.ts groupTools makes a server's groups from its tool names alone. Words of a name are split snake and camel case , made singular, and verbs and fillers dropped; two words that only ever come together are one \"pull request\" . A server whose tools mostly share a first word is split by it; otherwise, and for a prefix group over MAX GROUP tools or MAX GROUP TOKENS , each tool goes to the rarest word at least 3 of them share, then the rest to words 2 share, the remainder to a catch all whose keywords are its members' words. Keywords are the group's word or phrase, phrases from its names, plurals, and SPELLED wit: work item ; broad words WEAK are never one alone. A server under SMALL SERVER TOKENS is one group, always on. ServerHints only add titles, keywords and the always on groups mcp/adogroups.ts for Azure DevOps mcp/captools.ts use capabilities : adds capabilities for the rest of the session mcp/routing.ts createRouter passes every ForgeQE tool that runs to scope.used brain/index.ts ask starts each turn with beginTurn and prompts with its switches. When use capabilities added capabilities during the turn, it continues the same request with them, at most MAX SCOPE CONTINUATIONS 2 times. FORGEQE TOOL SCOPE=off turns the scope off mcp/server.ts With a scope, tools/list returns listedTools , the server advertises listChanged , and after a call that added capabilities it sends notifications/tools/list changed . forgeqe mcp all tools serves without a scope context.ts , agents.ts forgeqe context : the fixed context and what each capability adds. Budgets: 10000 tokens for the forgeqe agent's fixed context, 2500 per capability CAPABILITY TOOL BUDGET The tools stay registered with the agent runtime for the whole session; only the switches change, so the conversation is never restarted. tests/scope.test.ts covers routing, gating, sticky turns, config, hostile ids, and the MCP list change. tests/brain.e2e.test.ts checks against the real agent runtime that a turn sees only its tools and that use capabilities continues the request. Scribe, the coding agent src/code The test writing loop used by forgeqe code , by forgeqe suite with a repo, and by the write test tool, which is how ForgeQE's agent writes tests in the shell and forgeqe run . It uses the agent runtime SDK and the runtime binary that code/runtime.ts finds. Module Contents handoff.ts Builds handoff.md from run.json , workflow.yaml , and the page memory files for every page the run visited: the result and final URL labelled as one run's live data, the judge's reasoning, the browser the run used run.json browser , steps in order with values and the JavaScript the agent ran, each group led by the browser agent's note from that step process.env.NAME for secrets , best and ranked locators with confidence at most MAX LOCATORS = 4, under MIN CONFIDENCE = 30% dropped unless nothing else is left , and a table of each page's other elements up to MAX ELEMENTS = 8 of MAX PAGES = 4 pages; elements whose best locator a step used are left out, the rest need an interaction or 70% confidence; no table when nothing is left; the table is skipped when a replay pass has page snapshots , and the browser agent's checks workflow.yaml checks , each with the locator the replay matched on the last page when the counts agree prompt.ts TEST RULES shared with healing: browser set up like ForgeQE's, the debugging steps when the test's page differs, generic page objects, data in tests, rules not values, pop ups handled wherever they appear, every A/B version of a page handled , the test agent's system prompt start from the notes, port the replay script, assert the handoff's checks and nothing else, never guess locators, reuse and extend page objects, do not run the test: ForgeQE runs it; look at the live page with the live browser tools once a step has failed , the result JSON schema status , blocked reason , remote browser , test file , command , reused , changed , notes , and the prepare prompt notes of at most 25 lines , the first with the repo notes, naming the live browser's output folder when it is on , fix the short output plus the saved log and page snapshot , missing command, no browser, blocked challenge, stall, and review fix prompts review.ts The forgeqe review agent: prompt, REVIEW SCHEMA approved , summary , issues {file, problem, fix} , and openReviewer , a second, read only Scribe session opened on the first passing run and kept for later attempts. reviewPrompt inlines the checks from the handoff and the changed files changedFiles : up to 12 KB each, 40 KB in all , so the reviewer reads nothing again. It may load Scribe's skills and judges the test against their conventions too runtime.ts Maps the llms.json profile to an agent runtime provider, builds the config, starts the agent runtime server, and drives one session over the SDK. With resume , openSession reopens that session with session.get the runtime keeps sessions on disk, so their messages survive a restart and sets resumed ; when it is gone, a new one is created. FailedCommands counts each exact shell command the agent runs that exits non zero; at stallAfter failures of one command the turn is aborted and prompt returns stalled command , count , the last 40 lines of output . resetStall clears the counts READ AGENT forgeqe read has the test agent's instructions with edit and live denied; the config builder takes it in agents , and a prompt picks it with agent . PromptOptions also carries structured off: no JSON answer and tools per prompt switches, used only for live : the agent runtime keeps them for later prompts, and true would override the agent's path rules for file tools livebrowser.ts liveBrowser runDir : the live MCP server for the agent, Microsoft's Playwright MCP npx y @playwright/mcp@0.0.83 config … , with a config written to \u003crun /live browser/config.json from run.json browser channel or executable, headless, viewport, locale, time zone, user agent and snapshots and screenshots saved in that folder. null without npx . The loop switches its tools live on per prompt once a step fails pagefacts.ts What a step met that a test handles differently: frameSelector for a step's frame, isAdStep an ad host's frame, or google vignette , and AD HOSTS / AD ROUTE for blocking them. handoff.ts renders covered by , bypass and frame under each step and adds \"What covered the page before a click\", \"Ads on these pages\", and \"State the run started with\" from run.json sessions restored ; replay.ts skips ad steps and reaches frame steps through frameLocator replay.ts The replay check. replayScript steps turns workflow.yaml into flow.mjs , one step n, action, run per recorded step, with each locator rebuilt from its type and value locatorExpr , text typed with pressSequentially , secrets read with env NAME and one time codes made with totp NAME ; actions with no Playwright equivalent are marked \"not replayed\". alternatives.mjs holds each step's other locators. ensurePlaywright installs playwright core PLAYWRIGHT VERSION with Bun into ~/.forgeqe/tools and removes older versions. replayRun writes a runner that launches the run's browser replayOptions : channel or executable, headless, viewport, locale, time zone, user agent, extra headers , runs each step with a 10 s timeout, keeps an aria snapshot of each page after each step that worked by host and path, the latest one; the final page's taken once two snapshots a second apart agree, up to 6 s, since a page can change its URL at once and re render later and writes them as \u003csetup page N.aria.yml in ReplayPass.pages , and on a failure saves a screenshot and an aria snapshot, counts the other locators' matches, and records console errors, failed requests, and HTTP errors; three failures in a row stop it. It runs under Bun with the session logins' env, 180 s per pass. The first pass uses Playwright's default launch; if it does not reach the run's final page host and path , a second pass leaves out enable automation and adds disable blink features=AutomationControlled . replaySection renders the handoff section the page snapshots listed; a pass whose failed steps were followed by steps that all worked and that reached the final page, reachedPastFailures , reads as a working script with those steps to judge, and replayFailed is false for it so the live browser stays off : each pass, the failed steps with Playwright's reason, the page, the open dialogs from the snapshot, the other locators' matches, and the saved files, and the launch settings to copy when only the second pass got through. After the last step the runner looks up each recorded check on the page findCheck : a visible exact heading, then exact text, then a looser heading or text, then a form field holding the value and returns its locator, match count, and up to 3 containers in ReplayPass.checks ; for a heading match, sectionOf adds section the element aria labelledby the heading, else the section / article /region it heads, else the element after it or after its only child wrapper with a stable locator test id, id, or aria label , else empty and its visible link and list item counts testrun.ts Runs the reported command with sh c in the repo CI=1 , PLAYWRIGHT HTML OPEN=never , no colour , with a timeout. promptOutput makes the prompt's copy of a failed run: withoutPageDumps takes out each \"Aria snapshot:\" block Playwright puts in a failed assertion, then headAndTail keeps the first 8 KB and the last 4 KB; the full output goes to \u003crun /test runs/attempt N.log and the first page dump to attempt N page.aria.yml . While it runs it samples the process tree ps A o pid=,ppid=,args= every 250 ms; Win32 Process every 1.5 s on Windows for browsers at or below the command that carry an automation switch remote debugging pipe , remote debugging port , juggler pipe , inspector pipe , marionette and returns them as browsers loop.ts retries Each failed attempt a failed run, a run that opened no browser, a rejected review adds a Tried entry: Scribe's tried items from its result else its notes , the failure, and failureFacts of the output the last \"waiting for\" locator of Playwright's call log, and the element that \"intercepts pointer events\" , with again when an earlier entry failed on the same locator. nextAttemptPrompt renders them with triedSection ; runHeal keeps the same list from each test's reason and passes it to healNextPrompt . The attempt log, and so scribe mistakes.jsonl , uses the tried items too notes.ts scribe notes.json in memory.dir : per repository, the reading turn's notes saveNotes , when they were written, and up to 15 tests jobs wrote there addWrittenTest on approval . readNotes returns nothing past 30 days; notesSection renders them for the first prompt worktree.ts The working tree before the job git status porcelain uall with a hash of each file, and a copy of each file up to 5 MB, plus ForgeQE's forgeqe.yaml and llms.json ; the paths the job changed since then; putting back files the job deleted or uncommitted edits it reverted to the committed version; and the protected paths in the form the agent runtime matches them loop.ts The attempt loop, stop handling, the replay code.replay , on by default in forgeqe.yaml : replayRun runs while Scribe reads the repo, then the handoff is rebuilt with the replay and the result goes to code.json replay ; skipped when canReplay finds no step beyond navigation and no checks , the reading turn READ AGENT , no structured answer, with or without a replay; skipped when readNotes has notes for the repo, which go into the first prompt instead; its reply is saved as the notes , the live browser code.live browser , on by default in forgeqe.yaml ; its tools are off until the replay or a test run fails, a stall, a no browser run, or a blocked report, and the prompt that switches them on says so , the stall guard code.stall after , default 5; counts reset after each ForgeQE test run , code.json the run folder is recreated if it is gone, and a failed write is reported without changing the result , and resuming: scribe session.json in the run folder session id, repo, stage reading / writing , whether the live browser is on is written when the session opens and updated as the job goes, and removed when the job ends with a result; after a stop, a crash, or a ProviderAuthError / APIError it stays, and a rerun for the same run and repo passes it as openSession 's resume . A reopened session skips the reading turn, takes savedReplay when the replay finished, and starts with carryOnPrompt or RESUMED NOTE plus the first prompt when it was still reading Config. The whole agent runtime config is passed through the environment, so nothing is written into the repo. Keys are {env:NAME} references, never values. Profile mapping: Profile Agent runtime provider Model azure azure , baseURL: \u003cendpoint origin /openai/v1 Responses API, api key header azure/\u003cdeployment openai openai , baseURL when set openai/\u003cmodel openai compatible , ollama forgeqe via @ai sdk/openai compatible and the profile's base url forgeqe/\u003cmodel code.model skips the mapping and uses the agent runtime's own provider setup. The forgeqe test agent is a primary agent with its own prompt and permissions: edit : allowed, except ForgeQE's files and folders .forgeqe/ , forgeqe.yaml , llms.json , the run and memory directories . The agent runtime matches edit patterns against the path relative to the git worktree root or the filesystem root outside git , so the patterns are built the same way bash : allowed, except git push , git push , gh repo delete , commands that name ForgeQE's paths, and commands that throw away uncommitted work git clean , git reset hard , git stash , git restore , git checkout , git checkout . , each also when wrapped in another command. Shell rules cannot catch every spelling, so after each attempt restoreRemoved also puts back ForgeQE's files forgeqe.yaml , llms.json when the job changed them, not only when it deleted them; healing does the same at the end of its job, with the same edit and shell rules webfetch : allowed question : denied external directory : allowed for the run and memory directories, rejected elsewhere doom loop : rejected, which tells the model to change approach The repo path is resolved with realpath macOS /var is /private/var , and both forms are allowed. Events. event.subscribe streams the session. Tool parts become ⚙ lines with repo relative paths edit tests/login.spec.ts , bash npx playwright test … . Finished text parts become the agent's thoughts, and step finish tokens feed the token counter. Permission requests the config does not settle are declined straight away declineMessage tells the model why , so the session never waits for a person and nothing outside the config is granted: not paths outside the repository, not repeated identical calls, and not the runtime's own \"ask\" defaults such as reading .env files. Environment and secrets. openSession starts opencode serve itself startServer with an explicit environment serverEnv , never by changing process.env : the terminal's environment without ForgeQE's own secrets privateEnvNames : every profile's key variable, tracker and alert credentials, variables mcp: servers reference except those its config references as {env:NAME} , plus the values ForgeQE derives for MCP servers secrets , e.g. base64 of email:token . A runtime plugin hideEnvPlugin , the runtime's shell.env hook then blanks all of those, and OPENCODE CONFIG CONTENT , in every shell command the agents run, so a prompt injected by a page under test cannot read the model key or tracker tokens. Saved login variables stay visible: the tests read them. Result. Each prompt sends format: {type: \"json schema\"} , and the model answers through the agent runtime's StructuredOutput tool. The result is read from the message.updated event info.structured , or info.error , not from session.messages : in the pinned agent runtime that endpoint returns BadRequest for any session that used format . Loop. ForgeQE does not trust the model's claim that the test passes. Scribe does not run the test; it reports the command and ForgeQE runs it. A non zero exit or a timeout sends a fix prompt with the command, exit code, the short output promptOutput , and the paths of the full log and the page snapshot. An exit 0 with no browser under the command sends the no browser prompt, unless the agent reported remote browser . A missing command sends a reminder. A failure whose output matches the previous one apart from numbers failureKey gets the repeated failure prompt look at the failing step before changing code ; a third one in a row ends the loop as failed with the output in the notes. A stalled turn one command failed stall after times inside it gets the stall prompt with the command and its output once; a second stall ends the loop as failed with that output in the notes. A passing run with a browser goes to the reviewer, with the paths this job changed and the paths the user already had uncommitted, so it never asks for the user's work or ForgeQE's files to be removed; its issues go back as the next prompt. After every agent turn, files that existed before the job and are now gone or reverted are put back, handoff.md is rewritten if missing, and the next prompt says what was restored. Each of these counts as an attempt. The first blocked report is answered with the blocked challenge prompt compare the test's browser with the handoff's \"Browser ForgeQE used\" and fix the difference ; a second one ends the loop as blocked . The loop ends when a passing run is approved passed , after max attempts failed , when the reviewer gives no verdict failed , on ProviderAuthError , APIError , ContextOverflowError , or ContentFilterError failed , or on Esc stopped , which aborts the session . Both servers are closed in every case, and the reviewer's tokens are added to the result's usage. The forgeqe review agent overrides the permissions key by key AgentSpec.permission : edit , webfetch , and task denied, and bash denied except git diff , git status , git log , git show , and ls . Skills src/skills Agent Skills folders \u003cname /SKILL.md : YAML frontmatter with name , description , and ForgeQE's agents , then Markdown that ForgeQE's agent, Scribe, and the browser agent use. skills: in forgeqe.yaml becomes SkillsConfig enabled , projectDir , userDir , dirs , disable , external , browserMaxChars . Module Contents registry.ts skillRoots in precedence order, lowest first: prebuilt skills/ in the package , external only with external : ~/.claude/skills , ~/.agents/skills , and the repo's .claude / .agents skills , user $FORGEQE HOME/skills , project .forgeqe/skills next to forgeqe.yaml , and the repo's own , then each dirs folder. loadSkills reads every \u003croot /\u003cname /SKILL.md , validates it name lowercase words joined by hyphens, at most 64 characters, the same as the folder; description present, at most 1,024 characters; agents from forgeqe / scribe / browser , default forgeqe and scribe ; file at most 100 KB , and reports a broken one in problems instead of failing. A later source replaces a skill of the same name and records overrides ; disable then moves skills to disabled . skillsFor reg, agent filters by audience. linkSkills makes a temporary folder of links junctions on Windows to the chosen skill folders, one per name; remove unlinks them and never follows them select.ts browserSkills cfg, goal, names? : with names ForgeQE's agent, skill , skills pick: \"given\" with only those browser skills unknown names returned for a warning; means none ; without, \"choose\" with every browser skill's name, description, and body. rememberChoice keeps the engine's choice per goal for the life of the process, so monitor rounds and repeated cases send \"given\" ; it is kept only when the engine actually chose run.json has skills scaffold.ts newSkill writes a SKILL.md template the body hints at the agent it is for and refuses an existing one; setSkillDisabled edits skills.disable through a YAML Document , so comments survive, and drops the key when the list is empty; ignoredNote warns when git would not commit a new project skill view.ts skillsOverview per agent: name, source and what it replaces, description; disabled; problems; folders read and skillDetail , shared by forgeqe skills and /skills Agent runtime. openSession …, skills keeps the skills whose agents include an audience of the session's agents AgentSpec.skills : forgeqe for the brain, scribe for forgeqe test , forgeqe read , forgeqe review , forgeqe find , forgeqe heal , forgeqe pr review , and forgeqe api ; none for forgeqe api plan , forgeqe explore plan , forgeqe defect rca , forgeqe refine , forgeqe judge , and forgeqe model profile , as src/agents.ts lists them , links them with linkSkills , and passes the folder as skills.paths . Each agent's skill permission is {\" \": \"deny\", \u003cname : \"allow\", …} for its audience, or \"deny\" with none, so the runtime's built in skills and a repo's .opencode/skills stay unloadable and out of the listing the model chooses from. OPENCODE DISABLE EXTERNAL SKILLS=1 and OPENCODE DISABLE CLAUDE CODE SKILLS=1 turn off the runtime's own discovery of ~/.claude/skills , ~/.agents/skills , and the project's. The links folder and each skill folder and their real paths are added to external directory and made read only: added to the session's protected paths, or, for a session without them, passed as readOnly edit and bash denied for those paths only . ForgeQE's agent keeps write access to user and project skills, so it can change one when asked; built in and global skills stay read only for it too. Completed skill tool calls show as \"Using skill NAME\" and are collected in skillsUsed , which runCodeAgent and runHeal put on their results. SKILL RULE in each agent's prompt says to load a skill whose description fits the job and that the prompt wins where they disagree. Browser runs. environmentNotes lists the browser skills for ForgeQE's agent, and browser run and run test cases take skills names . executeRun calls browserSkills and sends the result in the engine request; the engine chooses choose skills or uses them, adds the text within skills max chars , logs \"Skills for this run: …\" and the ones left out for size , and writes skills to run.json only when it decided, so a replay that finished without the agent leaves the choice open. run.done in the session log, RunResult.skills , and the report's case header carry them; a case's Scribe skills go to CaseResult.code.skills . Healing src/heal forgeqe heal repairs a repo's existing tests after the app changed, and reports app bugs instead of hiding them. Like the coding loop, ForgeQE decides what passed by running the commands itself. Module Contents prompt.ts The heal agent's procedure prompts/heal.md : failing tests only; re run each one's flow with browser run as a plain language goal; a passing run means the test is out of date, so read run details and update the locators where they live page objects ; a run that fails at the same step means an app bug, and the test is left alone; never delete, skip, loosen, or slow down a test; verify with run test . HEAL SCHEMA : {tests: {name, file, status, command, reason, run dir} , changed, notes, suite command} . The find command, first, still failing, remaining, and missing tests prompts loop.ts runHeal . The command is the argument, code.test command , or suite command from a first prompt that asks the agent to find it. The heal session gets its own localToolServer with only the four tools above; browser runs are written inside the heal folder export.out dir is pointed there and their folders are recorded from run done events. Tests are merged by name across replies. A healed test counts only after ForgeQE runs its command; a healed test with no command is sent back. The whole command runs after every attempt whose tests all pass, and once more at the end if tests were confirmed since. The loop ends when the whole command passes passed , when a reply heals nothing new failed if the command still fails , after max attempts , on the same fatal errors as the coding loop, or on stop. heal.json and heal.md are written in every case report.ts healMarkdown verdict table, files changed, browser runs, test output before and after and formatHeal , the terminal summary ✓ confirmed, ? healed but not confirmed, ! app bug, ✗ not healed In the shell and forgeqe run , ForgeQE's agent calls the heal tests tool, which runs runHeal , so \"the login tests broke, fix them\" goes through the same loop and the same checks as forgeqe heal . tools.ts and heal/loop.ts import each other; that is safe because runHeal only reads TOOLS when it runs. Finding and running existing tests src/code/find.ts , src/mcp/repotests.ts , src/cases/sprints.ts \"Run all tests related to login\" and \"run the tests added this sprint\" select tests that already exist in the repo. Scribe decides which tests match by reading them; ForgeQE confirms the selection with the framework's own list command, and nothing runs until the user agrees. Module Contents code/find.ts FIND AGENT forgeqe find : edit , webfetch , and task denied, bash denied except git log/show/diff/blame/ls files/rev parse/status and ls . Its prompt: work out the frameworks, decide each test from its body and the helpers it calls a name alone neither includes nor excludes it , a time range means tests added in it git history, including new functions in existing files; only modified tests go under related , one test per entry, and the two commands. FIND SCHEMA : {framework, tests: {name, file, reason, added} , related, list command, run command, results file, list matches, notes} . findTests opens the session readDirs: the repo only , gives it today's date, the shell, the range, and the JUnit and TRX paths inside a new \u003cexport.out dir /tests/\u003ctime / folder; runs list command with runTestCommand 180s and feeds the output back until Scribe confirms an unchanged selection listed , and writes selection.json . runSelection deletes stale result files, runs run command with code.test timeout seconds , collects the fresh .xml / .trx files the given file, or a folder one level deep , and parses them with parseResults JUnit testcase at any depth with failure / error / skipped ; TRX UnitTestResult outcomes and hh:mm:ss durations ; without results the exit code decides. selectionCard and resultsCard mcp/repotests.ts REPO TEST TOOLS , appended to TOOLS . list sprints . find tests validates dates, resolves sprint a name through findSprint ; ask offers up to eight recentSprints through ctx.ask , or returns them as needs choice when there is no ask , runs findTests , and emits the selection card. run tests loads the selection and asks Run N tests? / Don't run through ctx.ask ; without ask forgeqe mcp , or forgeqe run without a terminal it returns needs confirmation until called with confirmed: true . Failures come back with a heal tests suggestion cases/sprints.ts Azure DevOps work/teamsettings/iterations the project's default team, or team and Jira agile board?type=scrum by project or board, up to five boards then board/{id}/sprint , paged. Both become Sprint {system, name, start, end, state: current \\ past \\ future, where} ; a system that fails is reported in errors . recentSprints keeps each team's or board's current, three latest past, and next sprint ctx.ask is how a tool puts a choice to the user. The TUI opens an ask dialog options stacked vertically when there are more than three or they do not fit; ids prefixed ask: so they never collide with the stop and close choices; Esc, another dialog, or Ctrl+C resolve null and pushes the question's lines into the transcript. forgeqe run prints numbered options when stdin is a terminal. The brain prompt routes repo tests to find tests and test cases in test management systems to run test cases , and forbids running a selection any other way or without that confirmation. Test cases and suites src/cases , src/suite Every source becomes the same TestCase : id, title, source, link, description, preconditions, steps action , data , expected , start URL, tags, and a ref with what write back needs work item, test point, plan, issue key . Module Reads Writes back files.ts text blocks , CSV RFC 4180; step rows continue a case , YAML/JSON, Gherkin Background, Outline × Examples, Then → expected nothing ado.ts workitemsbatch for ids; testplan suites and test points with x ms continuationtoken paging; the Steps XML fast xml parser, order kept , shared steps through compref , parameter rows from LocalDataSource a test run per plan: create with the point ids, set each result's outcome and comment, complete the run. Cases read by id: a work item comment jira.ts Cloud: /rest/api/3/search/jql nextPageToken , ADF descriptions. Server/DC: /rest/api/2/search startAt , bearer PAT an issue comment ADF on Cloud xray.ts Cloud: token from /api/v2/authenticate , then GraphQL getTests / getTestPlans . Server/DC: /rest/raven/1.0/api/test and testPlanTests JQL an import per plan: a Test Execution with statuses, step statuses and actual results, comments, and failure.png as evidence testrail.ts get case , get tests/\u003crun , get plan , get cases/\u003cproject &suite id= paged by links.next ; separated steps or the text template add results for cases on the source run, or add run per suite; custom step results ; add attachment to result for failure.png zephyr.ts Zephyr Scale Cloud v2: testcases/\u003ckey , teststeps call to test inlined to depth 2 , testexecutions?testCycle= , testcases?folderId= testexecutions per case with testScriptResults , in the source cycle or a new testcycles per project qtest.ts test cases/\u003cid ?expandSteps=true , test runs?parentId=&parentType=test cycle\\ test suite test runs/\u003cid /auto test logs with test step logs ; cases read by id get a new test cycle and test runs confluence.ts Cloud: api/v2/pages/\u003cid ?body format=storage , CQL through rest/api/search . Server/DC: rest/api/content . Storage format to text with table cells kept apart nothing; for the read confluence tool bugs.ts nothing with sources.bugs : per failed case, find an open bug by the case's fingerprint label/tag JQL labels = … AND statusCategory != Done , or WIQL Tags CONTAINS … AND State NOT IN … ; comment \"Still failing\" on it, or create one ADF or ReproSteps HTML, labels/tags, area path, screenshot attachment, \"Relates\" link or TestedBy Forward relation to the test case . A passed case notes on its open bug that it passes again Every write back includes the step verdicts, and retries once without the step details when a system rejects them. Each WriteBack carries the caseId it is about, so the report shows it with that case. http.ts is the one HTTP helper. Tokens come from the environment variables sources: names, and errors show the method, host, path, and status, never a credential. For forgeqe suite and forgeqe cases , refKind picks a source from the reference's prefix, then an existing file, then plain text; the agent's tools skip this and pass structured selectors to casesFrom . loadCases adds ~2 , ~3 to repeated ids. goalFor turns a case into the agent's goal: numbered steps, each with its data and \"Expected: …\", and an instruction to check every expected result and fail the task if any is not met. caseMarkdown goes into the coding handoff from testcase.json in the run folder and asks Scribe to name the test \u003cid \u003ctitle . runSuite gives each case a run folder NN \u003cid and runs executeRun with a pool of parallel workers. With a repo, a passed case is queued for the coding agent as soon as its browser run ends and its worker awaits that job before taking the next case, so each case is explored, handed off, and coded before the next one starts; the queue is one promise, so coding jobs never overlap. A case that is not coded records codeSkipped with the reason. Write back and fileBugs run after every case finishes and skip stopped cases. report.ts writes junit.xml failed → \u003cfailure , error → \u003cerror , stopped → \u003cskipped , step verdicts and posted links in system out , report.html src/report/data.ts turns the results into ReportData : step verdicts, the steps.json timeline with screenshots as data URIs up to a 40 MB budget, failed cases first, small text files such as the trace and workflow, posted records, each run folder's run.json page memory with heals and repairs, browser diagnostics and accessibility.json , the case's group and requirements, usage and cost, and history from the sibling .forgeqe/reports/suites/ /suite.json . From that history it also finds each failed case's last passing run folder next to its suite.json , else where it was written for the \"last good vs now\" screenshot of the same URL path, and each memory replayed case's last run with no replay, as the baseline for page memory savings; src/report/html.ts injects it as window. FORGEQE REPORT into src/report/template.html , a React app from report ui/ built into one file by bun run build:report ; every single run writes one too , suite.json , the terminal summary, and the GitHub job summary appended to GITHUB STEP SUMMARY when set . The run test cases tool calls the same runSuite , passing the working directory and runCodeAgent as the coder when the session writes tests so the agent never calls write test for those cases afterwards , and the shell renders a suite card. There is no pipeline template: the agent writes pipelines to fit each repository, and they call forgeqe suite . Environments src/environments.ts env.yaml named by environments.file lists the environments and their apps, in any layout: environments: maps, top level maps, or lists. They are all read into the same Environment apps by kind: web, api, desktop, mobile; variables ; secrets as names of environment variables . activeEnvironment picks one: env , FORGEQE ENV , use environment , or the default. withEnvironment gives a config for one tool call's env . exportEnvironment puts the environment's FORGEQE APP and variables into the environment of the tests ForgeQE runs. environmentBrief is what each agent is told: ForgeQE's agent gets every app, the browser agent its hosts, and Scribe the names to read so a test runs in every environment. Desktop apps src/desktop , py/forgeqe desktop python m forgeqe desktop serve takes JSON lines requests from src/desktop/bridge.ts , as the browser engine does. Explore runs UFO² in process ufo runner.py , at a pinned commit with the profile's model. Only UI actions are allowed, Win key chords are refused, and the action trace becomes a forgeqe desktop v1 workflow record.py . Replay replay.py on pywinauto driver.py needs no model. It handles timeouts, retries, wait for and dismiss , expect image visual.py , heal by numbered choice heal.py , and checks of the outcome checks.py . Recording by hand handrecord.py , handhooks.py uses Windows hooks and UI Automation. Changes from chat: src/desktop/edit.ts makes fixed shape changes, validates them, shows the diff, and keeps a backup. Before a run: session.py refuses a session that cannot be driven session 0, locked, no screen , and forgeqe desktop doctor reports it. The full file list is in DESKTOP.md DESKTOP.md code , and unattended runs are in DESKTOP CI.md DESKTOP CI.md . Mobile apps src/mobile , py/forgeqe mobile forgeqe mobile v1 shares the desktop engine's workflow validation, replay, heal, checks and visual code. Appium: appium driver.py is a W3C WebDriver client over HTTP, with locators quoted as XPath literals. It drives replay and the model's explore loop explore.py . Maestro: maestro.py turns a workflow into a Maestro flow, with secrets as MAESTRO \u003cNAME environment variables. It checks a team's own flows against an allowlist and runs maestro test with an argument list. TestMu AI: hyperexecute.py writes a HyperExecute project and runs its CLI, scrubbing the access key from the output and the run folder. src/mobile/run.ts uploads builds forgeqe mobile upload . The full file list is in MOBILE.md MOBILE.md code . App memory py/forgeqe desktop/memory.py Mobile and desktop explores keep what they did, as page memory does for the browser, under \u003cmemory dir /mobile/ and \u003cmemory dir /desktop/ the request's memory: {dir} , sent by src/mobile/run.ts and src/desktop/bridge.ts when memory.enabled : Flows flows/\u003capp /\u003cgoal \u003chash .json : the workflow of a goal's last passing explore; after a failed one, the action steps it got through, under resume . Controls controls/\u003capp .json : each control explores acted on, with how often it worked. Heals heals/\u003capp .json : the target a heal found for a control that was not found. Before the model is called, replay known asks AppMemory.plan for the goal's passing workflow exact , else its resume steps, else the start it shares with another goal's workflow in the app flowmatch.shared start , with workflow steps described by describe step : checks, images and closing are never borrowed . It replays them through forgeqe desktop.replay.replay with keep open=True , so the app stays open where replay got to. An exact workflow whose expect checks all hold ends the explore with no model call at all. Otherwise mobile's explore loop starts after the replayed steps, with a note of what was replayed memory note and each on screen control that worked before marked worked before ; desktop hands UFO the goal with the same note and the names of the controls that worked, and the saved workflow is the replayed steps followed by UFO's. Replay run replay , mobile and desktop wraps its heal in remembered heal : the target an earlier heal found is tried first, with no model, and what the model finds is kept. With heal off, no remembered target is used either. run.json carries memory: {kind, replayed, flow} . Memory across every kind of run API scenario plans src/api/plancache.ts : api scenarios from cases or text keeps each plan under \u003cmemory dir /api/plans/\u003chash .json , keyed by a hash of the cases' titles, descriptions, preconditions, steps and expected results or the text and the set's operations. The same input reuses the plan with no model call, replacing its earlier scenarios in the set; fresh: true plans again. Registry plans of every tool src/registry : indexRuns also indexes mobile and desktop explores tool mobile explore / desktop explore , keyed by goal and app and API runs api/\u003cset /runs/ : run api contracts / run api scenarios , known as \"the API contracts\" of a set . plans.args holds the tool's arguments added in place; schema version stays 1, so older versions still open the file . runTier0 src/registry/run.ts calls the plan's own tool and writes the reply from its result; the tools still ask before they operate a device or change data. The shell and forgeqe run both route through it. Measurement: forgeqe memory stats src/memorystats.ts counts, per area, the runs that reused history, those that needed no model, steps replayed and model steps, the API plans kept, and the requests the registry answered without the agent. The memory gate the gate job of .github/workflows/ci.yml runs the tests that fail when known work reaches the model. Containers src/containers containers: in forgeqe.yaml declares services config.ts . It refuses any setting outside the fixed list, an image without an exact version, a port bound to an address other than 127.0.0.1, and a mount option. run.ts finds docker or podman and builds run arguments: ForgeQE's labels; security opt no new privileges and pids limit ; publish 127.0.0.1:… ; env NAME for secrets; :ro mounts. It checks mounts as uploads are checked inside the project; nothing hidden, key named or linked . It waits for a TCP or HTTP ready check. Docker's port proxy accepts connections before the service listens, so a TCP connection counts only when it stays open. It scrubs secrets from logs and errors, and tracks the containers it started, which the CLI removes on exit. mock.ts makes WireMock stubs from network.json or a contract set. compose.ts translates docker compose services into forgeqe.yaml services, refusing settings that widen what a container reaches. startOrder config.ts orders services by depends on . Every container joins the project network forgeqe \u003ckey under its service name. tests.ts is a runTestCommand for run tests with containers.tests . It runs the confirmed command with sh c in the image, with the repository mounted at its own path, user this machine's user, and only the environment's FORGEQE variables, the saved login variables, and the listed env and secrets, by name. The repository's credential files are covered masks.ts , and docker top finds the browsers the test launched. workspace.ts is containers.workspace . loadConfig registers it for the repository active.ts . Nothing starts until openSession or runTestCommand asks for it. Then one container per process and project waits sleep infinity with the repository, the home volume forgeqe \u003ckey home and the project network. openSession sets the agent runtime's SHELL to a script that runs exec workdir \"$PWD\" … sh c \"$2\" in it, refuses a folder outside the repository, and adds workspaceNote to the agents' instructions. ForgeQE's own agent passes hostShell . runTestCommand sends a run in a covered folder to the workspace's runner tests.ts , same image and home volume unless host or FORGEQE HOST RUN=1 . browser.ts is browser.provider: docker . startDockerBrowser runs Microsoft's Playwright image with BROWSER SERVER Node.js, no packages mounted read only. It starts Chromium on 127.0.0.1:9222 inside, headless or on Xvfb, and a gateway on 9223 that pipes a connection only when the path starts with the random token constant time compare and any Origin is local. The token goes to the runtime by name. ForgeQE waits for /\u003ctoken /json/version and returns ws://127.0.0.1:\u003cport /\u003ctoken /devtools/browser/\u003cid . run.ts starts one per browser run and gives the engine FORGEQE BROWSER CDP URL docker browser launch kwargs . The coding loop starts one per job when the provider is docker or run.json says the run used one: the replay connects with connectOverCDP FORGEQE REPLAY CDP , one pass , and the live browser's MCP server reads PLAYWRIGHT MCP CDP ENDPOINT from {env:FORGEQE LIVE CDP URL} . The agent's tools are services and mock service in src/mcp/containertools.ts , and the CLI is forgeqe services command.ts . The agents' shell: BASH PERMISSION denies docker, podman, nerdctl and compose commands for the agent and Scribe. Tests: tests/containers.test.ts and tests/workspace.test.ts use a fake runtime; workspace.test.ts also runs the gateway against a stand in browser and the agent runtime against the workspace's script. tests/containers.live.test.ts uses real Docker and is skipped without it. Databases, test data and data flows src/data , py/forgeqe data databases: in forgeqe.yaml, or in the active environment of env.yaml, names the databases config.ts : Postgres, CockroachDB, Redshift, MySQL, MariaDB, SQL Server, Oracle, SQLite, DuckDB, Snowflake, MongoDB and Kafka. An entry holds names of environment variables, never secrets url env , password env , or auth: azure / aws iam for a token. privateEnvNames collects every Env value, so these variables never reach model run shells or test commands. python m forgeqe data serve takes one JSON line request from src/data/bridge.ts , as the browser and desktop engines do. It runs in its own environment ~/.forgeqe/data/.venv , set up by setup.ts , because DB GPT pins libraries at versions the browser engine does not run with. Each request's environment holds only the variables of the databases it names. Reading: schema.py keeps a catalog per database catalog.json under .forgeqe/data/ and links a question to the tables it needs. vector.py adds DB GPT's schema index for a database marked vector: true , with a local embedding model. The guard: guard.py parses every statement with sqlglot in the database's dialect. A read is exactly one SELECT, SHOW, DESCRIBE or EXPLAIN SELECT. A write is one INSERT, or one UPDATE or DELETE with a WHERE clause, and only on a database marked writable . connect.py opens reads in a read only session where the database has one, and always rolls them back. mongo.py checks MongoDB operations the same way. Test data: testdata.py makes rows from a spec src/data/testdata.ts reads it inside the working folder . subset.py takes a masked subset of another database. Inserted rows are kept as a batch that can be removed again. hooks.ts inserts a case's or a suite's data: before it runs, and removes it afterwards. Data flows: flows.py checks the hops listed in flows.yaml beside forgeqe.yaml , from a source table to a target table, by batch or in real time. streams.py reads Kafka topics and HTTP APIs as hops. flowreport.ts writes flows.json and report.html to \u003creports /flows \u003ctime / , and flowado.ts posts the results as an Azure DevOps test run. Remembered queries: examples.ts keeps the SQL the user approved, in .forgeqe/data/\u003cdb /examples.jsonl . It gives the SQL back with the schema when a new question is like an old one. The agent's tools are databases , database schema , run sql , generate test data , test data batches and request test data src/mcp/datatools.ts , and data flows , check flows , trace record and read mapping file src/mcp/flowtools.ts . A write, an insert or a removal asks the user first. Scribe and the API test writer get AGENT DATA TOOLS , which never pass confirmed , so they cannot write. The CLI is forgeqe data , forgeqe db and /db in the shell and forgeqe flows command.ts , dbcommand.ts , with no model. Model router src/router With more than one profile in llms.json , llm.routing off , shadow or auto gives each area of work the profile it needs. forgeqe init writes auto , and an existing project without the key is off . MODEL ROUTING.md MODEL ROUTING.md is the user's guide. Module Contents config.ts The six areas agent , browser , coding , review , analysis , planning , each with its rating bar and whether it needs images or tool calls. parseRouting reads llm.routing and llm.routes , and stops ForgeQE at start on an unknown area or a name that is not a profile facts.ts profileFacts : window, images, tool calls, reasoning, release date and price, from llms.json , the live check, and the public model lists. probeProfile runs python m forgeqe engine probe py/forgeqe engine/probe.py with the profile on stdin and only that profile's key or Entra variables in its environment. The probe makes two calls through the browser agent's own client: a structured \"Reply with ok set to true\", and a 16 pixel red square generated in code, to learn whether the model takes images. It has a 60 s limit profile.ts rateModels : the forgeqe model profile agent edit, bash and webfetch denied on the active profile gets profileRequest . That is each model's facts and answer time, never a key, an endpoint or an account. It returns a tier and 1–5 ratings per area. sanitizeProfile keeps only configured profile names, known areas and tiers, ratings rounded and held to 1–5, and a reason of at most 200 characters without control characters or \u003c . This happens to the reply and again on every read of .forgeqe/model profile.json . The file's fingerprint each profile's name, provider, model, deployment and endpoint makes ForgeQE rate the models again when the profiles change route.ts routedConfig cfg, area at each call site. The router stays out for profile / WP LLM PROFILE and for code.model all areas but browser . knowledge checks and rates the models once per process, and only when two or more profiles have a key. choose rules out a model with no key, a failed check, no images for browser , no tools, or too small a window. It then picks the cheapest model rated at the area's bar, else the best rated. Each pick goes to the session log as model.route . In shadow it is only logged. escalate gives a root cause analysis one stronger model. routeTable is forgeqe models routes profile models checks and rates again ForgeQE's agent is routed once, when its session opens brain/index.ts , so its prompt cache survives. With routing on, any profile in llms.json that has a key can receive prompts, page content, screenshots and code excerpts, and each gets the live check. llm.routing: off , a single profile, or a pin per area in llm.routes keeps the work on one deployment. tests/router.test.ts covers the router. Generated code src/provenance.ts When a Scribe job passes, code/loop.ts calls markJob , which marks what ForgeQE wrote in the repository. A file it created starts with a comment header, Generated with ForgeQE · fq:\u003cid · run \u003crun code.header , on by default . The fq: id is a hash of the file without the header, so verify tells whether the file changed since. Every file it created or edited is recorded in \u003crepo /.forgeqe/generated.jsonl , one line per run, with the lines it added as short hashes. measure forgeqe generated counts how much of the code ForgeQE wrote and how much of that is still there. The generated attribution tool src/mcp/provenancetools.ts gives the pull request footer and commit trailer with the runs' fq: ids attributionText . Every other command, from the shell src/mcp/clitools.ts forgeqe command runs the forgeqe commands no other tool covers: context , guardrails , models , generated , docs , prompts , eval domain , skills , bi , notify test , desktop / mobile doctor, update , and the rest of COMMANDS . planCommand takes the words as a list and matches them against an allowlist of shapes. Each shape has known words, arguments of a kind name matches A Za z0 9. , file is resolved with realpath inside the working or reports folders and outside hidden folders, text is one line , and known flags. A read shape runs at once, unless a value holds shell syntax. A change shape it changes files, installs, costs model calls, or sends something out is put to the user first through ctx.ask , or needs confirmed: true where nothing can ask. models routes is a change shape, because it may check and rate the models. runForgeqe spawns forgeqe with an argument array, shell: false , the session's config and profile , and a time limit per shape. Reports for every kind of run src/report/runs.ts , src/report/collect.ts , src/api/report.ts The team report forgeqe bi build , /report in the shell through src/report/command.ts counts every kind of run, not only suites and monitor rounds. runs.ts : otherRuns reads single browser runs \u003creports /\u003ctime /run.json , desktop and mobile runs desktop , mobile , exploratory testing explore/ /exploration.json and API runs api/\u003cset /runs/ as suites. It reads them from the files each run already writes, so older runs count too, up to 500 of each kind. api/report.ts : an API contract or scenario run writes suite.json and report.html next to results.json . Each contract or scenario is a case, and its checks or calls are the steps. collect.ts : exportReports forgeqe bi export , /report export writes this machine's runs and readiness reports, with the user and machine, to one bundle, \u003creports /shared/forgeqe reports \u003cuser \u003cmachine \u003ctime .json \u003creports is export.out dir , by default .forgeqe/reports . collectReports reads the bundles in \u003creports /collected/ , bi.collect and from beside the local runs. A bundle is someone else's file, so it is parsed as data, skipped above 64 MB, and its values only become table cells. A run seen twice the same machine, scope and folder counts once: this machine's own copy first, then the newest bundle's. Monitoring src/monitor forgeqe monitor is runSuite on a timer, plus memory between rounds of which checks are failing, plus alerts. Module Contents state.ts decide is pure: a failure starts or extends a failing streak since , failures ; the first alert goes out when the streak reaches fail after , a still failing reminder every remind every after the last alert, and recovered on a pass after an alert a streak that never alerted recovers silently . Stopped checks keep their state. A round that could not run reports only the forgeqe monitor pseudo check and keeps the others keepOthers . state.json is written through a temp file and a rename alerts.ts One AlertMessage per round. teamsPayload : a message with one Adaptive Card 1.4 attachment full width, a line per check with its failing step, a test case link, an Open report action , which classic incoming webhooks and Workflows webhooks both accept. emailContent : subject ForgeQE \u003ctitle , text and HTML, and the failing checks' failure.png at most 5 . smtpTransport : nodemailer with secure for port 465, STARTTLS when the server offers it, auth only when the username variable is set, and 20–30 s timeouts. sendAlerts sends to each channel independently and removes the webhook URL and the SMTP password from errors run.ts monitorRound load, run, decide, save, alert, prune , runMonitor a lock file with the pid, .monitor.lock , refuses a second live monitor on the folder; rounds start every apart, or at once after an overrun; once returns 0/1/2 , pruneRounds , formatRound , roundCard , and sendTestAlert background.ts Monitors started by the monitor tool: runMonitor with its own AbortController inside the process, one per out dir a second in the same process is refused, and lockMonitor is checked first so another process's monitor is too . Each round is emitted as a card, and a monitor that ends on an error emits a \"Monitor stopped\" card. stopBackgroundMonitors aborts and waits for them Rounds are ordinary suite folders, so report.html gets trends and flaky checks from the sibling rounds' suite.json . runDirectory creates each run or suite folder itself and adds 2 , 3 when a folder for that second exists, so back to back rounds and parallel tool calls never share one. From the shell the brain can run a round, start a background monitor that lives as long as the shell, set up monitor: in forgeqe.yaml , and test the alerts. Monitoring that outlives the shell is a service, cron, or a scheduled pipeline running forgeqe monitor once with state.json cached. Signing in. signIn in src/logins.ts drives the engine's login command: when the engine says the browser is open it calls wait , and sends save true or stop false, or on abort . forgeqe login wraps it with readline and Ctrl C; the logins tool passes ctx.waitForUser . Telemetry src/privacy.ts withoutTelemetry env is part of every child's environment: the engine and forgeqe setup through allowListEnv , the test command and replay through withoutNames , which also drops ForgeQE's own secrets , and the agent runtime server through serverEnv . It drops OTEL EXPORTER OTLP and forces the opt outs on: Process Variables Effect Engine ANONYMIZED TELEMETRY=false , and the library's cloud sync and cost calculation switches off No PostHog client, no cloud sync, no LiteLLM price download Agent runtime Its auto update, share, and model catalogue switches off, and experimental.openTelemetry: false in the config No update check, no share links, bundled model catalog, no AI SDK spans Copilot gateway enable session telemetry=False on every Copilot session py/forgeqe engine/copilot gateway.py No session telemetry to GitHub, which the Copilot SDK otherwise sends for a signed in user test command DO NOT TRACK=1 , OTEL SDK DISABLED=true , and the Next.js, Nuxt, Astro, Gatsby, Storybook, Turborepo, Angular, .NET, and Cypress opt outs Framework CLIs a test may start stay quiet cli.py maps each FORGEQE ENGINE \u003cNAME to the setting the engine reads and sets the telemetry variables again with os.environ.update , so an engine started by hand behaves the same. brand.install replaces the about:blank watchdog's animation, which loads a logo from the library's CDN, with ForgeQE's start page which loads nothing . Chrome runs with the engine library's defaults disable background networking , metrics recording only , no pings , disable sync , … . Profiles and the offline test double loadConfig reads the profiles in llms.json and picks profile , then WP LLM PROFILE , then llm.active , then default , then the first profile. With none, the active profile is \"\" and its provider none : missingKey and noAgentModel return NO MODEL SET UP , which the shell, forgeqe run , and the tools show instead of running. Entries with provider mock , default: mock , and llm.active: mock that older templates wrote are ignored. That is the active profile. With llm.routing: auto , each area of work can run on another profile from llms.json , which the model router model router srcrouter picks per call site routedConfig . profile , WP LLM PROFILE , code.model and pins in llm.routes override the router. With off the default when the key is missing , every call uses the active profile. The router never considers mock or a profile with provider none . mock is a test double, not a profile users see: it exists only when asked for by name profile mock or WP LLM PROFILE=mock . It never starts the Python engine: src/engine/mock.ts speaks the engine's stdin/stdout protocol it opens the pinned URL and finishes, or fails when there is none and runEngine runs it in its place, so offline runs and the test suite go through the same bridge, events, and reports as live runs without Python, a browser, or an API key. Its result has driver: \"synthetic\" , so it never becomes a test. Artifacts File Contents run.json Result, summary, usage, visited URLs, page memory replayed, heals, repaired , browser diagnostics, the judge's verdict judge , how the browser was set up browser , and the browser skills added to the prompt skills accessibility.json Accessibility checks for each page visited workflow.yaml forgeqe v2 compact steps for replay or audit trace.md Task, results, failure trace failure.png Last screenshot of a failed run steps.json , steps/NN.jpg The step timeline and a screenshot per step report.html The run's own report handoff.md What the coding agent was given only with a repo code.json Coding result: status, attempts, test file, command, reused, changed, last test output, tokens scribe session.json Scribe's session for a job that stopped before it finished, reopened by a rerun testcase.json The test case a suite ran in this folder junit.xml , report.html , suite.json Suite reports, in .forgeqe/reports/suites/\u003ctime / above the case folders monitoring rounds: .forgeqe/reports/monitor/\u003ctime / heal.json , heal.md Healing result and report, in .forgeqe/reports/heal/\u003ctime / with the browser runs it made state.json , alerts.json Monitoring: which checks are failing and since when .forgeqe/reports/monitor/ , and what a round alerted and whether it was sent in the round folder .forgeqe/model profile.json The model router's live checks and ratings, next to forgeqe.yaml in FORGEQE HOME , by default ~/.forgeqe , without a config file . Checked on every read, and made again when the profiles change .forgeqe/generated.jsonl In the repository: per Scribe run, its fq: id and the files and lines it wrote forgeqe reports \u003cuser \u003cmachine \u003ctime .json A team report bundle from forgeqe bi export or /report export , in .forgeqe/reports/shared/ . Teammates' bundles go in .forgeqe/reports/collected/ flows.json , report.html A data flow check, in .forgeqe/reports/flows \u003ctime / suite.json , report.html An API run's report, next to its results.json in .forgeqe/reports/api/\u003cset /runs/\u003crun / Tests bun test : config, commands, TUI, mock loop, bridge with stub engines , memory readers and forgeqe memory , and tests/engine.e2e.test.ts , which runs the real engine and Chrome against a local site with a local OpenAI compatible model server. Its second run replays the first from memory and checks the model is called once. The e2e test is skipped when the engine is not installed. Its last test passes that real run to the real agent runtime. tests/code.test.ts : provider mapping, permissions, handoff contents, and the loop with a scripted session fail then pass, missing command, a stalled command asked once to change approach and then stopping the job, the live browser's MCP server and config from run.json , the replay running while Scribe reads the repo as the read only agent, the reading turn and its notes with the replay off, a check's section in the handoff, the live browser switched on by a failed replay or a failed test, the same failure stopping the job on its third time, fatal error, stop , FailedCommands , the read only agent's permissions, and the trimmed handoff weak locators dropped, step elements left out of the page tables . tests/code.e2e.test.ts also checks, against the real agent runtime, that the reading turn has no write or structured answer tools. tests/replay.test.ts : the script and locators built from a workflow, the two launch setups, and against a local site in Chrome, a click a cookie dialog covers Playwright's reason, the dialog, the other locators' matches, the rest of the flow still run and a control hidden from navigator.webdriver the second launch gets through and the handoff says the setup is the difference , and a run that only opened a page whose heading checks come back with their sections by the element after the heading, the section it heads, and aria labelledby . tests/code.e2e.test.ts runs the real agent runtime against a local OpenAI compatible model that writes a failing test, gets ForgeQE's failure output, and fixes it. It checks the key arrives through {env:} . Both tests are skipped when the agent runtime is not installed. tests/cases.test.ts : every file format, goals, the handoff, and Azure DevOps, Jira Cloud and Server , and Xray Cloud and Server against local fake APIs that check paging, auth headers, and the write back calls. tests/suite.test.ts : the worker pool, serial coding, reports, exit codes, stop, write back, and the job summary. The engine e2e test also runs a two case suite in two real browsers and checks page memory counted both. tests/sources.test.ts : TestRail, Zephyr Scale, and qTest reading and write back paging, step results, retries without them, new runs and cycles , bugs in Jira and Azure DevOps create with screenshot and links, comment while failing, note on pass , Confluence reading and its MCP wiring, parsing of logins: , report: and the new sources, the login commands, session notes without secret values, and report.html . The engine e2e test also signs in with a saved login and TOTP the model never sees the values , checks the session file, that workflow.yaml holds text env / totp env instead of values, and that the next run starts signed in. tests/integrations.test.ts : sources: MCP switches and mcp: parsing, the Azure DevOps and Jira server entries for each auth mode and every reason a server is skipped secret values never in the config , overrides, and query api against fake APIs auth headers, api version, host restriction, mutation refusal, cutting . brain.e2e.test.ts also starts a local stdio server, a remote HTTP server that checks its bearer token, and a broken server through the real agent runtime: the {env:} values arrive, both tools are callable, the broken server is reported, and no secret reaches the model. tests/mcp.test.ts : the MCP server over HTTP auth, initialize, list, progress, cancel, errors and stdio, environment notes without secret values, pushBranch against a bare remote whose default branch is trunk , and setCiSecret with fake gh and az . tests/brain.e2e.test.ts runs the real agent runtime against a scripted local model: the agent chooses forgeqe browser run over MCP, both forms of git push are refused, and a follow up message runs a suite. tests/cli.test.ts drives forgeqe run through the same real agent runtime tool lines, reply, exit 3 for needs input and forgeqe mcp over stdio with the mock profile. The agent runtime tests are skipped when the agent runtime is not installed. tests/heal.test.ts : the healing loop with a scripted session that calls ForgeQE's tools over the real MCP server only the four heal tools are listed; the browser run lands in the heal folder : nothing to heal, healed and confirmed, an app bug left failing, a healed test that still fails or has no command, finding the command, code.test command , a missing report, a fatal error, and stop. tests/monitor.test.ts : decide sequences fail after, flaky, reminders, recovery, stopped, a round that could not run , duration and monitor: parsing, rounds through the real runSuite with state carried over, report links, attachments, alerts.json , pruning, the loop and once exit codes, the lock against a live pid, the Teams card against a fake webhook, email through nodemailer to a local fake SMTP server login, recipients, subject, screenshot , and secrets scrubbed from errors. tests/cli.test.ts runs forgeqe monitor test alerts and once with the mock profile against a fake Teams webhook. tests/commands.test.ts : the command tools called as the agent calls them: write test with a scripted session agent events, the card, the mock profile refused , heal tests clean and healed, monitor round and status, start refused in a once session, start/status/stop in a shell session a round card, a second start and a one off round refused, the lock released , test alerts against a fake webhook, logins list/clear and sign in without a person, page memory flows and clear, and forgeqe setup profiles, MCP servers, docs by topic, and init. tests/repotests.test.ts : parseResults on JUnit and TRX; find tests with a scripted Scribe the read only agent, the listing fed back, a corrected list command listed again, nothing found, mock profile and bad dates refused ; run tests declined nothing runs , confirmed per test card from JUnit, the heal suggestion , and without ask needs confirmation , then confirmed: true , exit code only ; sprints from fake Azure DevOps and Jira APIs paging, the pick through ask , cancel, needs choice , a name matched . tests/engine/test step notes.py : the agent's note built from its own fields and stored on the flow steps a step recorded, evaluate steps with their code. tests/code.test.ts handoff : notes before each group of steps, once per step, and the JavaScript shown. tests/update.test.ts : bun and pip installs found in PATH order; waiting while the registry 404s, then the cache skipping commands per install; check running nothing; a release never served failing with a retry hint. tests/sessionLog.test.ts : the session header and events with remembered passwords, secret environment variables, and inline API keys replaced; tool calls and results; the bundle's contents without screenshots or keys; /logs . tests/engine/test page settle.py : the judge off by default and on by setting, page settled , settle page waiting for a new tab and giving up on one that stays blank, and note actions as read only. tests/resume.test.ts : resume steps in the run result, loadResume by folder or run name, and browser run returning the retry and passing resume from . tests/engine/test resume.py : resume point , resume steps , the loop start and nudge text, install nudges draining after the library's hook, resume steps in the flow file, the resume hand off, checkpoints kept apart from flows, cleared only by their own run, kept by a stopped run , and the hand off after a cut off run. tests/code.test.ts resuming : a stopped job keeps scribe session.json and a finished one removes it, a rerun reopens the session with the saved replay and a carry on prompt, and a gone session starts fresh; tests/code.e2e.test.ts reopens a session by id after the runtime restarted and finds its earlier messages. tests/engine.e2e.test.ts runs a page where clicking \"One way\" resets the date: a model that takes the nudge finishes; one that ignores it is stopped with its resume steps saved, and a retry with resume from replays the cookie click and needs two model calls. tests/sessionLogins.test.ts : remembered logins domains from a URL, hosts, and wildcards; the engine payload with values; no process env , redaction next to punctuation and in carried over turns, a remembered login replacing a configured one in the notes, ForgeQE's test runs getting the env names with the output redacted, and the logins tool's remember/list/clear without the password in any result. tests/engine/test session logins.py : remembered values as placeholders on every sign in domain, env values still working, step outcomes , and making progress . tests/tui.test.tsx renders a monitor round's card in the transcript and checks the Your turn dialog holds a tool until Done, continue . tests/skills.test.ts : skills: parsing; the prebuilt skills loading cleanly; precedence and overrides across user, project, the repo's own folder, and dirs ; the repo's .claude skills only with external ; the default and opt in agents ; disable and unknown names; every validation problem including the unquoted : hint ; the per agent skill permission and skills.paths in the runtime config; links readable through and removed without touching the skill; browserSkills given and choose, unknown names, and the remembered choice; the engine request through a stub engine and skills back on the result; the skills catalogue in the environment notes; newSkill , setSkillDisabled keeping comments, and ignoredNote ; the overview and /skills ; and forgeqe skills new/show/disable/enable/check end to end. tests/code.e2e.test.ts checks, against the real agent runtime, that Scribe's skill listing has only the registry's skills for it, an allowed skill's text arrives, and a disabled skill, the repo's .opencode and .claude skills, the runtime's built in skill, and ~/.claude/skills stay out unless external adds them through the registry. tests/engine/test skills.py : choose skills order, the cap of 3, errors and an empty catalogue without a model call; skills block within skills max chars ; the request fields. tests/desktop.test.ts , tests/mobile.test.ts , tests/scope.test.ts , tests/capabilities.test.ts : the desktop and mobile commands and tools, workflow edits, uploads, and the tool scope. \u003cengine python m pytest tests/desktop : the desktop and mobile engines against fake drivers, a fake Appium server and a stand in Maestro any OS . The live tests need Windows or an emulator, and run in the desktop and android jobs of .github/workflows/ci.yml . \u003cengine python m pytest tests/engine : the engine directly, with a scripted model, including test memory.py locators, confidence, identity, flows, secrets and replay, trust mode, and self healing against real Chrome. test brand.py checks the overlay in real Chrome: the start page, trusted CDP clicks and keys dropped while locked and let through while acting, the unlocked state and step text on a page loaded mid step, and a clean screenshot and DOM for the model. WP E2E HEADED=1 runs the bun e2e test in a visible browser, with the overlay on."},{"t":"Cost-aware execution","u":"docs/cost-architecture/index.html","g":"More documentation","h":[["1. What a request costs today (measured)","1-what-a-request-costs-today-measured"],["2. The approaches this design uses","2-the-approaches-this-design-uses"],["3. The execution ladder","3-the-execution-ladder"],["4. The registry: one indexed catalogue","4-the-registry-one-indexed-catalogue"],["4.1 Taxonomy","41-taxonomy"],["4.2 Tables","42-tables"],["4.3 Fingerprints and invalidation","43-fingerprints-and-invalidation"],["5. Building context (for Tiers 1–3)","5-building-context-for-tiers-13"],["6. Learning: how the registry fills itself","6-learning-how-the-registry-fills-itself"],["7. Measurement and acceptance","7-measurement-and-acceptance"],["8. Compatibility and rollout safety","8-compatibility-and-rollout-safety"],["9. Phase 1 live result (2026-10-15)","9-phase-1-live-result-2026-10-15"],["10. Phase 2 live result (2026-10-15)","10-phase-2-live-result-2026-10-15"],["11. Rollout","11-rollout"],["12. Per-turn tool scope (2026-10-17)","12-per-turn-tool-scope-2026-10-17"],["13. Page memory at every step (2026-10-21)","13-page-memory-at-every-step-2026-10-21"],["13.1 Every case, every area (2026-10-21)","131-every-case-every-area-2026-10-21"]],"x":"Status: proposal · 2026 10 15 ForgeQE pays the model for work it has already done. This document sets out how ForgeQE decides when the model is needed at all, and how much of it. The approach is built from published, measured techniques. The goal for known work: a rerun of an existing test costs 0–5% of its first run , and the model is paid only for what is new or broken. 1. What a request costs today measured From the session logs in a live project .forgeqe/logs , Azure OpenAI gpt 5.4 : Request Agent calls Input tokens Output tokens Cached \"Are we ready to release?\" one release readiness tool call 12 577K 2.6K 518K Test authoring session many 1.9M 8.9K 1.65M These numbers show three things: 1. Fixed overhead per call. Every chat agent call resends about 45K tokens of system prompt, tool definitions and history. Output is under 0.5% of tokens, so the cost is the context, not the work. 2. Calls multiply. The deterministic release check took 12 calls, because the agent asked questions, searched for files, read config and summarised. 3. Known work is not recognised: Every request goes through the chat agent, including the rerun link. Page memory finds a saved flow only by the exact goal text plus the URL memory.py: goal key , so a reworded goal misses it. replay: verify replays every step, then starts the browser agent to check the result. Prompt caching already works about 90% of input is cached . It lowers the price per token, but not the number of tokens or calls, so on its own it cannot reach the target. 2. The approaches this design uses Technique Evidence Where it applies here Workflows before agents. Use fixed code paths for predictable tasks; keep agents for open ended ones. Anthropic, Building effective agents https://www.anthropic.com/research/building effective agents 2024 Tier 0: rerun, run case, run suite, release check Plan caching. Extract a plan template from a finished run, match new requests by key, and adapt the template with a small model. Zhang et al., Agentic Plan Caching https://arxiv.org/abs/2506.14852 , NeurIPS 2025: 50.3% lower cost and 27.3% lower latency on average, performance maintained Tier 1: known flow, new wording or new data Workflow memory. Turn successful trajectories into reusable routines. Wang et al., Agent Workflow Memory https://arxiv.org/abs/2409.07429 , ICML 2025: +51.1% relative success on WebArena, fewer steps Flows saved from passing runs, shared across cases Model cascade and routing. Try the cheapest model or step that can answer, and escalate only when a check fails. Chen et al., FrugalGPT https://arxiv.org/abs/2305.05176 up to 98% savings, task dependent ; Ong et al., RouteLLM https://arxiv.org/abs/2406.18665 , ICLR 2025 over 2x savings at about 95% quality The router MODEL ROUTING.md ; result checks on the reviewer model Content addressed memoization. Key cached work by a fingerprint of its inputs; any change to the inputs invalidates it. Standard in build systems Bazel, Gradle remote cache and in test impact analysis Registry fingerprints, the tool result cache Record–replay with self healing locators. Already in ForgeQE replay.py , ranked locators Tier 0 and Tier 2 execution The published figures come from the authors' own benchmarks. ForgeQE has to measure its own section 7 . 3. The execution ladder Every request is resolved to the lowest tier that can do it . A tier escalates only on a concrete failure signal, never on a guess. Tier When Model use Target cost vs. first run 0: Deterministic The request resolves to a known entity, and replay and end state checks pass None. The reply is filled in from the result. 0% 1: Adapt A known flow, but with new wording, new test data, or an end state check that is unsure One call to the small reviewer model with a short prompt about 2K tokens ≤5% 2: Heal Replay stopped at step k , or a check failed The agent starts at step k with the steps so far as context, not from the beginning Proportional to what broke 3: Explore No match in the registry: a new goal or new kind of task Full agent, as today 100% Resolver no model . Matches IDs TC 123 , SHOP 12 , plan/suite numbers, run folders, last , file and test names, and aliases from the registry. The rerun link and /rerun call it directly. Plain requests try it before any model is called. Router small model . Runs only when the resolver is unsure. It sees the request and the top registry candidates ranked by alias and keyword match , not the full tool catalogue. It returns {entity, tier} or novel . Safety rules non negotiable : A Tier 0 pass needs evidence: replay complete and every recorded end state check passing. Anything else escalates. Freshness. A flow is marked stale when the app changes: a new deploy or build id when configured , a changed page fingerprint seen during replay, or the age limit registry.maxAgeDays . A stale flow runs at Tier 1 once to re confirm it. Canary. Every N th Tier 0 run of an entity default 10 runs at Tier 1, so a check that silently passes is caught. The user can always force a tier: /rerun verify , /rerun fresh . 4. The registry: one indexed catalogue The registry is one SQLite file per project: .forgeqe/registry/registry.db . Bun ships bun:sqlite and Python ships sqlite3 , so there are no new dependencies. It is local, and git ignored by default its folder carries its own .gitignore . Existing JSON stores page memory, code graph, quality history stay where they are. The registry indexes and links them, it does not replace them. 4.1 Taxonomy Every row has a kind , and every kind has a single source of truth: Kind Source of truth Example test case ADO / Jira / Xray / TestRail / cases file ado:QI Claims:TC 4812 code test Repo test code code graph PlaywrightPom.Web.Tests.LoginTests.ValidLogin flow Page memory flows/ recorded steps for a goal page , element Page memory pages/ /login , username suite , plan ADO / cases file plan 12 / suite 34 work item ADO / Jira story, bug, feature pipeline , environment , login Config, ADO, saved sessions QI Claims nightly , staging , saucedemo standard run , report .forgeqe/reports run folders 4.2 Tables 4.3 Fingerprints and invalidation A cached item is valid only while its fingerprint matches its source: test case: hash of the normalised steps plus expected results, together with the ADO rev . This replaces matching on goal text, so rewording a request no longer misses the flow. code test: git blob sha of the test file and of the page objects it reaches from the code graph . flow: hash of its steps, together with the page fingerprints seen on its last pass. tool cache: the source's own version work item rev , sprint id, ETag where one exists; otherwise a short TTL. Writes always bypass it. 5. Building context for Tiers 1–3 The agent's fixed 45K token context is the main cost driver. Context is built from the registry instead of being discovered by the agent: Context packs. For each entity, a brief of a few hundred tokens: what it is, its linked case, code test, flow, pages and last results. The agent gets the brief rather than spending calls on read , grep and code outline . Tool listing by tier: Tier 1 gets one tool. Tier 2 gets the tools of the capability that broke. Tier 3 gets today's progressive listing routing.ts . Stable prefix first, variable last , so prompt caching keeps hitting. History compaction. After a request finishes, only its outcome and ids are carried forward, not its tool results. 6. Learning: how the registry fills itself Indexing. On forgeqe init , and incrementally on file change, the code graph and cases sources are indexed into entities , aliases and links . ADO and Jira items are indexed when they are first fetched. Promotion. A Tier 2 or Tier 3 run that passes, and passes the judge when it is on, writes or updates its plan and checks . A plan needs two passes, or one pass plus user confirmation, before it is allowed to run at Tier 0. Demotion. Failures increment failures . Two failures in a row mark the plan stale , and the next run goes to Tier 1 or 2. 7. Measurement and acceptance The ledger runs makes cost measurable per tier and per entity. forgeqe cost reports the following metrics. Each must meet its target before a phase counts as done. Metric Target Cost of a rerun of a known passing test, vs. its first run ≤5% Tier 0: 0 tokens Share of reruns served at Tier 0 or Tier 1 ≥90% Tier escalation rate on unchanged apps ≤5% False pass rate Tier 0 pass that a Tier 1 canary then fails 0 known; every one investigated Release check \"are we ready\", scope known 0–1 agent calls The evaluation is an offline replay suite under src/evals . It holds recorded requests rerun, reworded rerun, changed app, new goal , each with an expected tier and outcome. It runs on every change to the resolver, router or registry, and live against the real model before release. 8. Compatibility and rollout safety Nothing here may change what ForgeQE does today until it has been shown to give the same results. Built alongside, never in place of registry.mode: off shadow on in forgeqe.yaml . It defaulted to off through phases 1 and 2, and to on from 2026 10 15, after the live results in sections 9–10. With off , every request takes the agent's path, unchanged. The new code lives in src/registry/ . Existing modules gain only small hooks at their entry points: the chat request handler, the command parser and config. The chat agent, page memory, replay modes and tools keep their behaviour. Any registry error missing, locked or corrupt database, an exception in the resolver falls back to today's path. The registry is a cache: deleting it loses savings, never behaviour. Existing stores page memory, code graph, quality history, run folders keep their formats. The registry reads and indexes them and never writes to them. Tier 0 runs through the same browser run tool the agent calls. Existing test reuse, page memory replay, the configured replay mode, reports and quality checks all apply as they do today. Proven before it is switched on Tests that lock in today's behaviour. Written before the hooks, they pin down today's results: a request with the registry off goes to the agent, and the rerun link goes to the agent. They have to pass unchanged afterwards. Shadow mode. The resolver decides and records what it would do runs with mode = shadow , while the request still takes today's path. The decisions are compared with real outcomes before on . False pass check. During rollout, every Tier 0 pass is re checked at Tier 1. Any disagreement blocks the next phase. The full suite. Every existing test passes unchanged in every phase, with no existing test edited to make it pass. Switched on gradually One phase per release. Each one can be turned off on its own. A live check against the real model, Azure DevOps and Teams before each phase is called done. Every reply says which tier answered it. /rerun is an explicit command, and the agent remains one sentence away: anything the resolver is unsure of goes to it. 9. Phase 1 live result 2026 10 15 Live run against Azure OpenAI gpt 5.4 and a real headless Chrome: a /rerun of a 27 step practice form run whose first run used 242K tokens. Result Resolver Matched the run; no chat agent calls Page memory Replayed 26 of 27 steps without the model Step 27 A read only evaluate reading the fields to check them is not replayable, so the browser agent took over for 14 model steps Cost 178K tokens: 74% of the first run. The target is not met The remaining cost is the browser agent's check after replay. Phase 2 is the step that reaches the target. Read only steps evaluate , extract and the final check must be answered from recorded end state checks run.json already records checks with expected values . The agent comes in only when a check fails. 10. Phase 2 live result 2026 10 15 What phase 2 adds, with registry.mode: on only: evaluate steps whose script only reads the page are left out of a replay. The test is on the script's source and conservative: any assignment, any page changing call, any request or deferred code counts as writing. Checked against every evaluate in a live project's flows: no write was classed as read only. A passing run's record check results are kept in its flow, each with the step it was recorded after. A replay finds each check on the page again after that step, with no model. If every check holds, the run passes with no model. The first check that does not hold stops the replay there, and the agent takes over on that page today's path . The agent still judges the run when: a check is dynamic, the flow has not passed for 30 days, or it is every 10th replay of the flow the canary . Live, Azure OpenAI gpt 5.4 and headless Chrome: Flow Run Tokens vs. first run Wikipedia search 3 steps, 1 check first run 50.3K 100% rerun: the search suggestion did not show in time, so the agent took 2 steps 25.1K 50% rerun: replay complete, the check held 0 0% 6 s rerun with the saved check changed to text the page does not show 25.1K the replay refused to pass it, and the agent judged the real page Practice form playground 27+ steps reruns 122K, 135K, 82K 50%, 56%, 34% The practice page is built to resist replay: double click targets, clipboard paste and per key typing that replay's direct input does not reproduce. Its checks correctly never passed a replay that ended in a different state. Flows like that stay with the agent until replay can repeat those inputs a later phase . 11. Rollout Phase Scope Done when 1 Registry entities, aliases, plans, runs . Resolver plus Tier 0 for /rerun , the rerun link, and case and run ids. Fingerprint matching for test cases. Reply filled in from the result. A rerun of a known passing case logs 0 tokens; a reworded request still finds its flow 2 Recorded end state checks replace the post replay agent check. Canary and freshness rules. verify default costs one small model call or none; the false pass suite stays green 3 Router small model plus Tier 1 adapt. Repo code tests run directly dotnet test / npx playwright test with filters, results files parsed . Reworded and new data reruns at ≤5% 4 Tool result cache, context packs, history compaction. Release check as a fixed workflow. The release check takes 0–1 agent calls; the agent's average context per call is down by half 5 forgeqe cost report and the evaluation suite in CI Metrics in section 7 reported per release 12. Per turn tool scope 2026 10 17 Tool definitions are part of the fixed overhead in section 1, and they grew with the desktop, mobile and TestMu tools. The forgeqe agent's fixed context went past its budget. ForgeQE's agent now gets the tools of the capabilities a turn needs, not all of them src/mcp/scope.ts ; see ARCHITECTURE.md ARCHITECTURE.md tool scope srcmcpscopets srccapabilities : Every turn: the core help and setup, use capabilities , the test environments and their apps . Picked without a model call: up to four capabilities matched from the request's words, the apps it names, its links and issue keys. A capability the project has no apps or tracker for is not picked from words alone. Sticky: capabilities whose tools ran in the last three turns. On request: use capabilities adds one when the request turns out to need it, and ForgeQE continues the same request. forgeqe context , measured on this repo: Tokens The forgeqe agent's fixed context prompt 6.2K + core tools 1.6K 7.8K of a 10K budget A turn with the four largest capabilities 14.7K Every tool on every turn FORGEQE TOOL SCOPE=off about 26.7K Largest single capability api testing , systems 1.8K of a 2.5K budget per capability A typical turn \"replay the courier login on Maestro\" adds one or two capabilities, around 1–3K. Beyond the cost, fewer tools in view keep the agent from mixing up similar ones browser run , desktop explore , mobile explore . The test tests/agents.test.ts fails when an agent or a capability passes its budget. That keeps new tools from bringing the fixed overhead back. Still to measure: live model evaluations of the tool picks against FORGEQE TOOL SCOPE=off : the success rate, the use capabilities calls per request, and tokens per request. 13. Page memory at every step 2026 10 21 A suite run in a live project three Toolshop cases, Azure OpenAI gpt 5.4 showed why a rerun of a known case still cost what its first run did: Run Model steps Input tokens Replayed ADO 3287, first run an expected result did not hold at step 7 11 88K 0 ADO 3287, the reproduce run straight after 29 243K 0 Each model step costs about 8K input tokens, 6.3K of it the cached system prefix: the live page is a small part. So page memory can only lower cost by taking steps away from the model, and two things kept it from doing that: 1. A failed case saved nothing to replay. resume steps were kept for errors only; a run that failed because an expected result did not hold assertion failed , which is what a reproduce run or a rerun of a failing case is about saved no steps, and the next run explored the whole case again. Now the steps up to the first check that did not hold are kept assertion resume , marked assertion: true , the next run replays them, and the handoff tells the agent to check that result again where it is, not to redo the steps or try to make it true. 2. Known controls were described, not addressable. The site memory hints in the system prompt named the controls earlier runs used, but an action needs the element's index in this step's list, which changes with every page load, so the agent read the whole list anyway. Now each page memory knows gets a note after the element list, before the model call, naming up to 10 controls earlier runs used with the index each has right now MemoryStore.known controls , through the library's per step context messages . The page is observed once per step and that snapshot also scores the step's actions. 3. A replay to a failed check handed the check to the agent. The page that failed often shows its message only briefly a toast , so it was gone by the agent's first step, and the agent spent six steps looking for it live: 49.5K tokens, more than the first run . Now, with registry.mode: on and replay: verify , the run looks for the text the page showed instead right after the replay, with no model reproduced by check . Finding it again fails the run the same way at 0 tokens; not finding it hands over to the agent as before. A failure text that a passing check of that run also found a heading, the product name is never kept for this, since it shows whatever the outcome. Live, Toolshop, headless Chrome, Azure OpenAI gpt 5.4, a clean memory folder: Run Model steps Tokens Result A: first run of a 3 step case whose last expected result does not hold 5 37.1K failed; kept the 3 steps up to the failed check B: the same case again a rerun or reproduce run 0 0 5 s replayed 3 steps, found the same failure text, failed the same way C: a new goal on the same pages 4 30.1K passed; the agent was told the known control on each page with its index Run C is a different task, so it explores; the per step note saves steps on pages the site's earlier runs used, but does not replace exploration of a new goal. 13.1 Every case, every area 2026 10 21 The same project's history showed the wider gap: of 20 recorded web runs only 4 replayed anything 2.7M tokens in all , almost every miss a goal worded differently from its flow. Mobile and desktop explores never read what an earlier one saved, desktop and mobile heals were found again on every replay, API plans were made again for the same cases, and only browser goals could be rerun without the agent. What now holds in every area: Area Before the model is called No model at all when Browser the goal's flow, its failed run steps, an edited case's unchanged steps, else the start it shares with another goal on the host flowmatch checks of a replayed flow hold section 10 ; a failed check shows the same failure text again Mobile, desktop the goal's workflow, its failed run steps, else the shared start in the app app memory ; known controls marked for the model the goal's workflow replays and its checks hold Replay heals the target an earlier heal found it is on screen API the plan made from the same cases or text and operations always, for a repeated plan; saved API calls replay in browser flows when the status matches Reruns the registry runs the plan's own tool browser, mobile, desktop, API from the shell or forgeqe run the tool needs none forgeqe memory stats reports it per area. On the live project before this change: browser 18 runs, 4 22% reused history, none without the model. The memory gate workflow keeps it from regressing."},{"t":"Model routing","u":"docs/model-routing/index.html","g":"More documentation","h":[["Turn it on","turn-it-on"],["The areas of work","the-areas-of-work"],["A default model for each agent","a-default-model-for-each-agent"],["How a model is picked","how-a-model-is-picked"],["How ForgeQE learns the models","how-forgeqe-learns-the-models"],["Limit what an area may use","limit-what-an-area-may-use"],["What it does not do","what-it-does-not-do"]],"x":"With more than one model in llms.json , ForgeQE can give each kind of work the model it needs. A small, fast, cheap model can plan and review. A strong model can write code and find root causes. A model that takes screenshots drives the browser, and a model with a large window reads a large pull request. You do not need to know what each model can do: ForgeQE finds out. Turn it on In forgeqe.yaml : forgeqe init writes routing: auto for new projects. With no routing line it is off. shadow decides and logs each pick in the session log model.route but changes nothing, so you can see what the router would do before you let it. Shadow still runs the live checks and the rating call described below. Whatever routing says, the model an area gets must work: its key or sign in is set and it passed a live call one per model, kept for a day in .forgeqe/model checks.json once it passes; a failed one is never kept, and a failed check in model profile.json is checked again . When it does not, the next model that works is used, a GitHub Copilot profile first, and ForgeQE says why and how to fix the first. When none works, the error lists each model with the fix. Only profile skips this. With auto , a GitHub Copilot seat counts as costing nothing more per call, so it is picked whenever it is rated good enough. See the picks, and every model's check with its fix: The areas of work Area What runs in it Needs agent ForgeQE's agent: the shell, forgeqe run , forgeqe mcp tool calls; rated 4+ browser Browser, desktop and mobile runs, from screenshots images; rated 4+ coding Scribe writing and healing tests, API tests tool calls; rated 5 review Test reviewer, pull request review, evaluation judge tool calls; rated 3+ analysis Root cause of defects tool calls; rated 5 planning Refine, finding tests, API scenarios, exploratory charters tool calls; rated 3+ A default model for each agent To give one agent its own model whatever routing says, name an llms.json profile for it under llm.agents Settings → Routing → Areas of work, under each area, does the same : An agent left out uses its area's pick. The agents are forgeqe , engine , forgeqe test , forgeqe heal , forgeqe migrate , forgeqe api , forgeqe review , forgeqe pr review , forgeqe judge , forgeqe defect rca , forgeqe refine , forgeqe find , forgeqe test plan , forgeqe api plan , forgeqe explore plan , forgeqe data and forgeqe agent builder ; forgeqe models routes lists each with the model it gets. An unknown agent or a profile not in llms.json is an error when ForgeQE loads forgeqe.yaml . The model must still work: with fallback on, one that fails its check is replaced as for any area. profile still names the model for everything. How a model is picked 1. Your choices win. profile or WP LLM PROFILE comes first. Then an agent's own model in llm.agents below , which also comes ahead of code.model and code.review profile for that agent. code.model keeps the router out. A profile pinned in llm.routes is used for its area. code.review profile still sets the reviewer. 2. Facts rule models out. The router never picks a model that: has no key, or failed its live check; takes no images, for browser work; takes no tool calls, for agent work; has a window too small for the prompt a large pull request diff, for example . The facts come from llms.json , a live check, and the public model lists models.dev and LiteLLM that ForgeQE already downloads for prices. A fact that nobody knows never rules a model out. 3. Ratings pick among the rest. The cheapest model rated at the area's bar is picked. Writing code and finding root causes ask for 5, because a weaker model there costs more in failed attempts than it saves. If no model reaches the bar, the best rated one is picked. With no ratings yet, the active profile is kept unless a fact rules it out. 4. A failed answer escalates once. When a root cause analysis finds nothing, or finds a cause with low confidence although it could read the product's code, it runs again on a stronger model: one rated higher for the area, or rated the same and priced higher. Both runs are counted in its cost. The same configuration and task always give the same model. A pick changes only when the models, the ratings or the size of the prompt change. Each pick is shown once \"Model for planning: mini … \" and is written to the session log. How ForgeQE learns the models The first routed call in a project with two or more usable profiles does this once: 1. A live check of each model python m forgeqe engine probe : one short structured answer and one image. This finds a deployment that does not exist, a wrong key, and whether the model really takes images. It also measures how fast the model answers. 2. One rating call. The active profile's model receives the facts of every model, never a key, an endpoint or an account. It rates each model 1–5 for each area and gives it a tier fast, balanced or strong . The result is kept in .forgeqe/model profile.json next to forgeqe.yaml . ForgeQE uses it until the profiles in llms.json change provider, model, deployment or endpoint . You can edit the ratings. ForgeQE keeps your edits while the profiles stay the same. It checks the file every time it reads it: names that are not profiles and unknown areas are dropped, and ratings are rounded to whole numbers from 1 to 5. The live checks reach every profile in llms.json that has a key, whatever llm.routes pins. A pin keeps your runs' data on one deployment; the checks carry nothing from your runs. To send nothing to the other profiles at all, use routing: off , keep one profile with a key, or pass profile . To check and rate again for example, after a deployment changed its model : Limit what an area may use A name in routes must be a profile in llms.json , and an area must be one of the six above. Anything else stops ForgeQE at start with a message that names it. What it does not do ForgeQE's agent picks its model when its session starts and keeps it for the whole conversation. Changing the model mid conversation would drop the prompt cache and make every later turn cost more. The agent hands heavy work to the other agents, and those are routed. A rating is one model's judgement. It is kept in a file that you can read and correct."}].map(function (p) { return Object.assign({}, p, { u: new URL(p.u, base).href }) })
|
|
4
4
|
})()
|