Skip to content

The loop

Every session follows the same loop. The server's prompts (optimise_pricing_page, optimise_signup_flow, audit_site_and_plan) walk an agent through it, and the server instructions repeat it, so most agents follow it without being told.

Before step 1, the agent calls site_memory with the URL. It returns earlier audits, changes and outcomes for the site, so the agent continues from previous work instead of repeating it.

StepWhat happensTools
1. AuditCapture the live page on desktop and mobile and compare it with the published tactics for its page type.audit_page, audit_site
2. PollAudits run in the background. The agent waits poll_after_seconds between reads until the status is ready.get_audit
3. RecommendTurn the audit into a ranked plan of the conversion problems on the page. Each item says what to change and where, the effort, the page evidence it rests on, and its evidence grade: the grade of the library tactic it matches, or ungraded.recommend
4. LearnFor an item that matches a library tactic, read the implementation spec and acceptance criteria, and look at examples from named sites where the tactic has any published.get_tactic, get_examples, search_tactics
5. ImplementThe agent changes your codebase, matching your design system, and checks each acceptance criterion.your agent
6. VerifyOnce the change is live, re-capture the page, confirm a matched tactic is present and check for regressions. An ungraded item has no tactic to verify: check its acceptance criteria on the live page.verify_change, then get_audit
7. ReportTell you what changed, where, why (mechanism and grade), what verification found, and what to do next.connect_analytics, get_outcomes

What the agent should say, and not say

The report names each tactic's evidence grade. An agent following the server instructions never predicts a numeric result for your site unless the tactic is graded measured, and even then it reports what was measured elsewhere, not a promise.

Polling and limits

Tools that start work (audit_page, audit_site, verify_change) return an audit_id and poll_after_seconds. Starting the same audit twice within 24 hours reuses the first result unless the agent passes force: true. Page audits count against your plan; reads do not. See Limits and pricing.

Measuring results

verify_change proves the change is on the page. Whether it moved a metric needs analytics: connect_analytics returns a one-time link for you to connect Google Analytics 4 or Search Console, and get_outcomes reports each metric before and after. Those two are the outcome sources. Clarity can be connected too and its credentials are stored, but Clarity keeps only a few days of history, so it is not used for 28-day before/after outcomes. Measured outcomes from connected sites are what lift a tactic to the measured grade.

The metrics, windows, attribution and limits are on Measurement.

Your review process

Liftwire never writes or commits code. Your agent does, in your repository, and you review it like any other change.

  • Make the acceptance criteria the pull request checklist. Each item in a recommend plan carries acceptance criteria. Ask your agent to paste them into the pull request and tick each one with evidence: a screenshot, a test or the lines that changed.
  • Verify on staging first. Where your staging site is publicly reachable, run verify_change against it before release, then run it again on production after release.
  • Read the result before you keep the change.
    • regressed: one of the 5 regression gates failed. Do not ship it; if it is already live, roll it back or fix it.
    • undetermined: the tool could not tell whether the tactic is present. Today that is any tactic without a detector rule. A person looks at the page.
    • no_baseline: there was no capture from before the change, so the gates had nothing to compare against. Run audit_page before changing a page next time.

The gates, each pass or fail against the capture from before the change:

  • accessibility, accessibility: axe critical and serious violations must not increase
  • lcp, LCP: must stay at or below the larger of the before value × 1.2 and 2500 ms
  • cls, CLS: must stay at or below the larger of the before value + 0.05 and 0.1
  • mobile_overflow, mobile layout: no horizontal overflow at the 390 px viewport
  • cta_count, CTA count: must not drop

A gate that could not be measured on either side is reported as not_measured, never guessed and never counted as a regression.

The result depends on your agent and on your review. Liftwire supplies the evidence and the checks; it does not make a change good.