Giving LLMs Hands and Feet: Building a Memorable Automation Assistant with Browser Extensions
This article explains how browser extensions turn stateless LLM chat interfaces into practical automation assistants that can remember context, take actions, and run on a schedule. It defines the three gaps such systems must close—state, action, and triggering—then breaks down a four-layer architecture spanning the interface, orchestration, capability, and storage layers. It covers layered memory with retrieval, tool calling with security boundaries, scheduled tasks with session isolation, and the trade-offs of a local-first approach to data sovereignty. A staged adoption path and a pre-launch verification checklist are included for readers who want to implement this technical pattern themselves.
Giving LLMs Hands and Feet: Building a Memorable Automation Assistant with Browser Extensions
Over the past two years, conversational ability has stopped being the bottleneck for large language models. The real shortcomings are that they cannot remember, cannot act, and cannot start on their own. A model that lives only inside a chat box is essentially a stateless response function: close the page and the context disappears. It cannot read local files, verify facts online, or run through a set of rules you left for it while you sleep. As a result, a common approach has emerged across the industry—using a browser extension as a shell that mounts external capabilities onto the chat interface as tools. This article discusses no specific product. It focuses on the technical pattern itself: what problem it solves, which modules it consists of, where its boundaries lie, and what to watch for when building it yourself.
1. Problem Definition: Three Gaps Between Answering and Getting Things Done
To judge whether a conversational AI is genuinely usable, look at whether it can cross three gaps.
The first is the state gap. In human collaboration, shared understanding accumulates naturally: you prefer concise answers, your project uses a particular tech stack, and your output must follow a certain template. A default chat interface is stateless, so you have to restate the background every turn. That wastes both efficiency and context window.
The second is the action gap. A model’s knowledge comes from its training corpus, has a time cutoff, and cannot perceive your current screen, your local files, or the live state of the system you are working in. Any task that depends on “now,” “here,” or “this file” is beyond a pure chat interface.
The third is the trigger gap. Most high-value tasks are recurring: summarizing a category of information every day, organizing data once a week, or checking a metric on a schedule. When you are not present, the chat interface does not wake up on its own.
Browser extensions have become a common vehicle for closing these three gaps for practical reasons: they run inside a context where the user is already logged in and authorized, they can read page content, interact across tabs, use local storage, and stay resident in the background, and they are cheap to install and remove without deploying an additional server.
2. Overall Architecture: A Four-Layer Structure
A mature assistant that can actually get things done can usually be abstracted into four layers.
┌─────────────────────────────────────────┐│ Interface: chat UI (injected UI, entry) │├─────────────────────────────────────────┤│ Orchestration: intent → plan → tools │├─────────────────────────────────────────┤│ Capability: search / fetch / files / cmd│├─────────────────────────────────────────┤│ Storage: memory / sessions / task defs │└─────────────────────────────────────────┘
The interface layer adds entry points while preserving the user’s existing habits, so there is no new interaction model to learn. The orchestration layer is the core: it decomposes a natural-language request into executable steps and decides which capability to call. The capability layer is where the actual work happens. The storage layer supports memory and scheduled tasks. The four layers should communicate through clearly defined interfaces, so replacing any one layer does not affect the others—a prerequisite for maintainability.
3. Memory: Not Storing the Entire Chat History
Many people assume that giving a model memory means accumulating chat history indefinitely. That is neither economical nor reliable. The more common engineering approach is layered memory plus retrieval.
Working memory keeps only the recent turns of the current session, bounded by the context window and evicted on a sliding basis once the limit is exceeded. Long-term memory extracts structured entries from the conversation—preferences, terminology conventions, project constants, common output formats—and persists them as key-value records or vectors. When a new request arrives, a similarity search runs first, and only the few most relevant entries are injected into the prompt.
A minimal usable memory entry can be structured like this:
{"id": "mem_0421","type": "preference","content": "Keep answers concise; prefer code examples","scope": "global","created_at": "2026-06-24T09:00:00Z","embedding": [0.021, -0.113, 0.087]}
Three design points here are easy to overlook. The first is scope: global preferences, project-level conventions, and one-off facts must be kept separate, otherwise memories contaminate one another and produce the classic failure of treating temporary information as a long-term rule. The second is editability and forgettability: users must be able to view, modify, and delete memories, and entries written automatically by the model especially need a review entry point, because wrong memories keep amplifying bias. The third is deduplication and decay: when the same fact recurs it should be merged rather than stacked, and entries that have not been retrieved for a long time should lose weight so stale information does not crowd out search results.
4. Tool Calling: Extending Capability and Setting Security Boundaries
Tool calling is the key to letting a model act. The general pattern is: the model emits a structured call intent, the runtime validates and executes it, and the result is fed back to the model to continue reasoning. Mountable capabilities fall into three categories.
The first is information retrieval: online search, fetching the main content of a specified page, and reading tab content the user has explicitly authorized. The engineering focus is result cleaning and citation labeling, so the model can distinguish “page text” from “model inference” and hallucination is reduced.
The second is local interaction: reading and writing user-specified documents and spreadsheets, running controlled system commands, and doing preliminary image parsing. These capabilities carry the highest risk and must follow the principle of least privilege—only whitelisted directories may be touched, command execution requires a second confirmation, and sensitive actions must leave an audit log.
The third is workflow orchestration: chaining multiple tools into a fixed pipeline, such as “retrieve → extract → generate → write to file,” using deterministic code to keep the flow stable instead of letting the model decide the steps on the fly every time.
The pre-call validation logic should be made explicit:
def guard(tool_call):if tool_call.name not in ALLOWED_TOOLS:raise PermissionError("tool not allowed")if tool_call.name == "run_command":if not is_in_whitelist(tool_call.args["cwd"]):raise PermissionError("path out of sandbox")return require_confirmation(tool_call)return tool_call
It is worth stressing that tool output is untrusted input. Any text like an instruction on a page telling you to ignore previous instructions should be treated as data, not as a command. That is the basic stance for defending against prompt injection.
5. Scheduled Tasks: Working While You Are Away
Scheduling is typically implemented with a resident background module plus a task definition table, using standard Cron expressions to describe trigger times.
# Every weekday at 08:30, summarize specified info and write to a local file30 8 * * 1-5 run task=daily_digest scope=projectA
What really determines whether this mechanism is useful is session isolation. Each task should be bound to its own session and its own memory scope so contexts from different tasks do not bleed into each other. Tasks also need timeouts, retry limits, and failure alerts so one bad run does not take down the whole background. In addition, task output should land in a versionable location, making it easy to trace how last week’s result was produced.
6. Data Sovereignty: The Local-First Trade-off
The most valued property of this approach is that data stays in the user’s own browser and device: keys, memories, and outputs never pass through a third-party backend. That is clearly valuable in compliance-sensitive scenarios, but it comes with costs that must be faced—local storage lacks the high availability and cross-device sync of a server, so users must handle their own backups, and if extension permissions are too broad, the user bears the risk alone. A reasonable approach is therefore to layer capabilities: lightweight ones work out of the box, while high-risk capabilities involving system-level operations are installed separately, explicitly authorized, and disabled by default.
If cross-device use or team collaboration is genuinely needed, general cloud capabilities can fill the gap—for example, using object storage to hold outputs, a message queue to decouple long-running tasks, a container platform to host a controlled execution environment, and logging and monitoring services for auditing and anomaly detection—while keeping the bottom line that “memories and keys never leave the local device.”
7. Getting Started and a Verification Checklist
The recommended path is to enable capabilities incrementally. Start with memory and export only, and validate the quality of prompts and memory entries. Then open read-only information retrieval and check citation and cleaning quality. Finally, try local execution and document processing in an isolated directory, keeping complete logs.
Before going live, self-check with this list: Are memories viewable and deletable? Are tools whitelisted? Do high-risk actions require a second confirmation? Are scheduled tasks session-isolated with timeouts and alerts? Are keys stored locally only? Are outputs traceable? Once every item passes, a chat box that originally could only talk becomes an assistant that can remember, act, and start on its own.
