Skip to content

Contributing

Feedback

Feedback is very welcome, especially from real use. Please open an issue (the form asks for these) with:

  1. the request you typed and the site (or the kind of system) you ran it on;
  2. what you expected and what happened;
  3. the run's details (Save the details of this run), or the terminal output; they contain the pages' text, so remove any personal data first;
  4. your setup: operating system, model and, if you know it, your graphics card.

Suggestions and ideas are welcome as issues too. Until the 1.0.0 evaluation, so that the version measured is the one the article describes, a pull request may touch only the interface (web/, anchor/ui/) and its server, and the automations' storage (without changing how a saved automation runs); never the engine, the evaluation (eval/) or its closed sets. Lucas reviews and accepts each one; before a larger change, open an issue or a discussion.

Development

Running from the code

With Python 3.10+, Node.js 22.12+ and Ollama installed:

git clone https://github.com/LucasDantas2701/ANCHOR.git
cd ANCHOR
python -m venv venv
venv\Scripts\activate            # Linux/macOS: source venv/bin/activate
pip install -r requirements.txt
playwright install chromium
ollama pull qwen3.5:4b
cd web
npm install
npm run build                     # again after each update
cd ..
python -m anchor.ui               # opens the interface in your browser; keep the terminal open

python -m anchor.ui serves only this computer (127.0.0.1), with a new access code each time it opens: open ANCHOR from the command, not from an old bookmark. To update, git pull, pip install -r requirements.txt and build the interface again. The desktop program (what the installer runs) is python -m anchor.desktop.app, with requirements-desktop.txt.

The website

The site's root, lucasdantas2701.github.io/ANCHOR, is the website for people who do not program (landing/, Angular, with the interface's design tokens and fonts); the documentation lives under it. To work on it: cd landing, npm install, npm start, and open http://localhost:4200/ANCHOR/. Its words are in landing/src/app/copy.ts, in English and Portuguese (a text missing in either does not build), and its numbers in landing/src/app/results.ts, with the result files they come from. The site's workflow (.github/workflows/pages.yml) builds the documentation, then the website, which it puts at the root.

The command line

Everything the interface does can also be done from the command line, which can also run a proven automation from the system's own scheduler (--unattended), with no ANCHOR window open. For example:

python -m anchor.agent --profile ollama-small --url eval/fixtures/registration_en.html "<request>"
python -m anchor.automations create register --url <link> --profile ollama-small "Register {name} and save"
python -m anchor.automations run register --unattended --param name="Maria Silva"

Every command and option is in the command reference.

Tests and layout

pytest tests -v                                   # the test suite (the interface's server too)
isort --check-only anchor eval tests examples     # import order (PEP 8 groups)
cd web && npm run watch                           # rebuilds the interface on every change

The interface (Angular, in web/) is built into anchor/ui/static/, which the server (anchor/ui/, FastAPI) serves; neither the build nor web/node_modules/ go into Git. Its colours, type and logo come from the ANCHOR design system (web/src/styles.css holds its tokens).

ANCHOR/
├── anchor/
│   ├── agent/                     # the agent loop: plan, execution, effect checks, replanning, end; login waits
│   ├── planner/                   # LLM: request → goals and steps (profiles, prompt, validation)
│   ├── engine/
│   │   ├── element_resolver/      # perception (index_script.js) + ranking
│   │   ├── action_executor/       # validation and execution of actions
│   │   ├── disambiguation/        # the user's disambiguation (terminal; the interface's is in anchor/ui)
│   │   ├── memory/                # choice memory + review commands
│   │   ├── frames.py              # the page and its iframes, read as one
│   │   ├── sensitive.py           # which actions need your approval
│   │   └── tables.py              # finding and reading tables and lists
│   ├── browser/                   # browser launch, persistent profiles and session
│   ├── vault/                     # saved logins (passwords in Windows' Credential Manager)
│   ├── schedules/                 # schedules and their history (SQLite)
│   ├── automations/               # saved automations: learn once, replay, heal
│   ├── ui/                        # the local interface's server (python -m anchor.ui)
│   ├── desktop/                   # the desktop program the installer runs (python -m anchor.desktop.app)
│   ├── actions/                   # fixed-selector Playwright helpers, used only by examples/legacy_saucedemo.py
│   ├── cli.py                     # options and language shared by the command-line tools
│   ├── i18n.py                    # interface messages (English and Portuguese)
│   └── main.py                    # end-to-end example on SauceDemo, with a fixed plan
├── web/                           # the interface (Angular), built into anchor/ui/static
├── landing/                       # the website (Angular), published at the site's root with the documentation
├── eval/                          # evaluation: test pages, cases, tasks, results, closed sets
├── docs/
│   ├── COMMANDS.md                # the complete command reference
│   ├── images/                    # images used by the README
│   └── site/                      # the documentation site's theme and assets (with mkdocs.yml)
├── packaging/                     # the Windows installer (PyInstaller spec, Inno Setup script)
├── .github/                       # workflows (installer, documentation site) and the site's build script
├── examples/                      # demos (and legacy_saucedemo.py, fixed selectors: the "before")
├── tests/
├── requirements.txt               # the engine and the interface (requirements-desktop.txt: the desktop program)
├── pyproject.toml, pytest.ini     # project metadata and test settings
├── profiles/                      # browser profiles (not in Git)
├── memory/                        # remembered choices and schedules (not in Git)
├── automations/                   # your saved automations (not in Git)
├── output/                        # tables and lists extracted from the command line (not in Git)
└── llm_profiles.json              # model profiles (no keys)