Introduction¶
Why ANCHOR:
- It runs entirely on your computer. The plans come from a small LLM run locally by Ollama (Qwen 3.5, 4B or 9B); no page, request or password leaves your machine.
- You stay in control. It asks before anything sensitive (saving, sending, paying, deleting, acting on your account), blocks what the request did not ask for, never shows the AI a password, and stops instead of guessing.
- It heals itself. When a page changes, it finds the element again, checks every step, and keeps the fix for next time, instead of breaking like a fixed selector.
- It is measured. Development suites, prompt-injection pages and a resilience benchmark against a traditional script and an LLM in control, with closed sets for the 1.0 evaluation.
- It is open source, under the Apache 2.0 license.
What ANCHOR Does¶
| You want to | What ANCHOR does | More |
|---|---|---|
| Fill in a form and send it | Plans the steps, finds each field and button even after the page changed, and checks that each step had its effect; asks before saving or sending | Run a request |
| Read data from a page | Reads a whole table or list and saves it (CSV or JSON), or answers a question about the page | Guide |
| Send or download files | Sends the files the request names to upload fields, and keeps every download; both are asked first | Guide |
| Work on sites that log in | Logs in with a login you saved for that exact site, or waits while you log in on the live view; the AI never sees a password | Saved logins |
| Get through real pages | Follows new tabs and iframes, opens "Show more" and menus that hide a step, and declines cookie banners | How It Works |
| Do the same task again | Saves a checked request as an automation that runs without the AI, once or once per spreadsheet row, and repairs itself when the page changes | Automations |
| Get something back | Shows the answers, the tables and lists it read (to download as CSV), the files it downloaded and, when asked, a screenshot of the page at the end | What a run brings back |
| See what it is doing | Shows the browser live, step by step, with every tab and window it opened | Watch it run |
| Stay safe on any page | Blocks actions the request did not ask for, and ignores instructions hidden in pages (tested on prompt-injection pages) | Responsible Use |
Traditional RPA depends on fixed selectors, written by a developer:
page.locator('[data-test="add-to-cart"]').click()
It works while the page stays the same, and breaks as soon as it changes. Each automation also needs a developer to create and maintain it, which keeps it away from the person who actually knows the task.
ANCHOR lets a non-technical person describe the task in plain language, give the site's link, and let the system do the rest:
"Register Maria Silva, tax ID 123-45-6789, IT department, contractor. Accept the terms and save the registration."
Once a task has been learned, it can be saved and replayed without the LLM, here once per row of a spreadsheet, in about 3 seconds each:
What sets it apart is who controls what:
- The LLM only plans. It turns the request into goals and steps, using the names of the elements on the page. It never clicks anything directly.
- A heuristic finds each element, without spending tokens, and refuses when it is not sure.
- The person breaks ties. When the heuristic refuses, the candidates are numbered on the page, and the person picks one, clicks the right element on the live view, or says it is none of them (and why, for the AI).
- Choices are remembered and reused on the next runs, so interventions go down over time.
Here the site changed after an automation was saved ("Add to cart" became "Add to bag"): ANCHOR is not sure, so it numbers the candidates and asks; the next run remembers the answers and asks nothing:
- Every action is verified: the agent checks that the field got the value, that the page reacted, and that no error message appeared, and only declares the end when all goals are met.
- Safety barriers: destructive actions the request did not mention (close, delete, hide...) are blocked, and plans that do not cover the request are sent back to the model.
- Local models. The planner runs on small local models (Qwen 3.5 via Ollama), so requests and page contents do not leave the computer or the company network. Logins use persistent browser profiles: credentials never go through the AI.
Status: version 0.5.0. The engine, the planner, the agent loop, effect verification, saved automations with self-healing, confirmation of sensitive actions and the defenses against prompt injection are done, and 0.4 added data extraction, downloads, uploads, new tabs, iframes, hidden content, cookie banners and unattended runs for scheduling. 0.5 is a local program for people who do not program: a Windows installer, in Portuguese or English, with saved logins, schedules and what each run brings back. 1.0, the evaluated version, is next. See the roadmap and the changelog.
Built With¶
and
, for the interface
- keyring (saved logins, in Windows' Credential Manager), openpyxl (Excel spreadsheets) and SQLite (schedules), from Python
- pywebview (WebView2), pystray and Pillow for the desktop program, packaged with PyInstaller and Inno Setup into the Windows installer
How It Works¶
Request in plain language + link
│
▼
LLM plans goals and steps ──► does the plan cover the request? ── no ──► back to the LLM
│ yes
▼
For each step:
destructive action the request did not ask for? ── yes ──► blocked
│ no
▼
Memory: has the user chosen this element before? ── yes ──┐
│ no │
▼ │
Perception + resolver rank the candidates │
│ │
Confident? ── no ──► the user picks (number or click) ─────┤
│ yes │
▼ ▼
Playwright performs the action ◄───────────────────────────┘
│
▼
Effect check: value in the field? page reacted? error message?
│ │
ok failed (3 failures cancel)
│ │
▼ ▼
page or pop-up changed? ── yes ──► LLM replans with what happened
│ no
▼
End of plan ──► LLM checks whether anything is left ──► all goals met? ──► done
What the model reads and what the person reads are separate, each with its own language: the planner prompt is in Portuguese by default (the measured one) or English; the interface is in Portuguese or English (Settings → Language), and the command line in English or Portuguese.