Building Tool Browser Ai

Digital Lens

Digital Lens is the Browser AI capstone direction: a browser-native assistant that helps the user control attention and information flow instead of surrendering those decisions to each website or AI provider.

Problem The browser contains the user’s real information environment, but today context is fragmented across pages, tabs, messages and services while AI assistance is usually trapped inside isolated provider interfaces.
Outcome A user-controlled browser layer that can find, filter, amplify, retain and act on information using explicit policies, typed tools and inspectable evidence.
Research base Browser AI From First Principles
Capstone A user-owned browser AI coordinator and Digital Lens built on the Browser AI Observatory, typed tools and explicit authority boundaries.
Implementation evidence

The solution is backed by inspectable code

https://github.com/ernanhughes/browser-ai-from-first-principles experiments/browser-ai-from-first-principles/

The problem

The browser is where a large part of modern digital work actually happens, yet useful context is scattered across surfaces that do not cooperate.

A user may have relevant information in:

  • the page currently being read;
  • ten other open tabs;
  • email;
  • documentation;
  • search results;
  • saved notes;
  • prior research;
  • local files;
  • structured tools exposed by websites;
  • application state that only exists inside the browser session.

AI assistants usually see only the fragment deliberately copied into their interface. Browser automation systems solve a different problem: they can manipulate interfaces, but often without a strong model of provenance, authority or what information deserves attention.

The result is a gap between where the user’s information lives and where AI can reason over it safely and usefully.

The solution

Digital Lens is a user-owned intelligence layer for the browser.

The word lens is deliberate. The system should not merely generate more information. It should help control what reaches the user and how strongly it is presented.

Its core operations are:

find
filter
amplify
organize
remember
propose
act only with appropriate authority

The browser becomes the coordination surface because that is where pages, local context, tools and user intent already meet.

Filter and amplify

The first capability is attention control.

A Lens policy might:

  • suppress repeated or low-value material;
  • highlight claims relevant to a current research question;
  • surface contradictions between a page and previously collected evidence;
  • summarize background material while preserving the important exceptions;
  • prioritize messages related to an active project;
  • distinguish source material from AI-generated commentary;
  • flag information whose provenance or confidence is weak.

Filtering must be reversible. The system should change presentation before it destroys information.

Amplification should also preserve the reason for amplification. A highlighted paragraph is more trustworthy when the user can see which rule, question or evidence relationship caused it to be highlighted.

Search across the user’s information environment

The next capability is retrieval across multiple browser-accessible sources.

The Lens should be able to search sources such as websites, email, saved research and structured application tools, then normalize results into evidence units with provenance.

The goal is not one giant undifferentiated context window. It is selective retrieval:

user intent
source selection
retrieval
provenance-preserving evidence
context compilation
model or deterministic operation

That makes the system compatible with local browser models, remote frontier models and future providers because model choice is downstream of context selection rather than fused to it.

Remember without turning memory into a junk drawer

Digital Lens should be able to retain useful information for later retrieval, but persistence needs an eligibility rule.

Not every page, message or model inference deserves durable memory.

Stored information should preserve enough metadata to answer questions such as:

  • where did this come from?
  • when was it observed?
  • is it source text, a user statement or a model inference?
  • has a newer observation superseded it?
  • does another source conflict with it?
  • why was it retained?
  • which project or user goal made it relevant?

Memory is therefore part of the evidence architecture, not an unlimited transcript archive.

Tools and authority

Search and summarization are relatively low-authority operations. Sending a message, modifying a document, submitting a form or purchasing something is different.

Digital Lens therefore separates model proposal from action authority.

page / email / evidence
       model
     proposal
 deterministic policy
 user confirmation when required
      action
   recorded outcome

WebMCP and other typed tool interfaces are valuable because they expose structured capabilities without requiring the agent to pretend pixels are an API. But typed tools do not remove the need for permissions, validation and explicit user control.

Browser AI Observatory as the evidence layer

The Browser AI From First Principles book is already building the Observatory that sits underneath this solution.

The Observatory records evidence such as:

  • capability availability;
  • model and session state;
  • prompt and streaming traces;
  • latency and resource behavior;
  • validation outcomes;
  • tool discovery and selection;
  • tool arguments and results;
  • permission decisions;
  • policy decisions;
  • application events and their provenance.

Digital Lens builds upward from that evidence layer rather than treating observability as an afterthought.

The capstone path

The final Browser AI capstone can assemble the book’s mechanisms into one coherent system:

  1. Capability boundary — determine which browser-native, local or remote AI capabilities are available.
  2. Context compiler — gather only relevant evidence from selected sources.
  3. Workers — use interchangeable models for summarization, classification, extraction, comparison or synthesis.
  4. Lens policies — decide what to filter, amplify, retain or propose.
  5. Typed tools — expose structured read and write operations.
  6. Authority boundary — prevent untrusted content or model output from directly authorizing privileged actions.
  7. Observatory — record what happened and why.
  8. User interface — let the user inspect, override and refine the system.

That capstone then becomes the implementation core of this solution page.

Evidence and validation

A useful Digital Lens cannot be evaluated by asking whether its summaries sound good.

It needs task-level evidence. Example questions include:

  • Did filtering reduce irrelevant material without hiding information later judged important?
  • Did amplification surface relevant evidence earlier?
  • Did cross-source retrieval improve answer completeness?
  • Did retained memory improve future retrieval without increasing stale or conflicting context?
  • Did the authority boundary stop untrusted page content from causing privileged actions?
  • Can the system explain why a page element was filtered or highlighted?
  • Can a recorded trace reproduce the context and policy state behind an important action?

Those become the tests that determine whether the Lens is genuinely helping rather than simply adding another AI layer to the browser.

Implementation

The shared Browser AI experiments and Observatory code live in the next-books repository under:

experiments/browser-ai-from-first-principles/

As the capstone stabilizes, this solution page should point to the smallest runnable entry point rather than forcing readers to understand the whole book repository first.

What comes next

The most valuable expansion areas are likely to become substantial solution sections or supporting articles:

  • project-aware cross-tab research;
  • email triage and evidence extraction;
  • provenance-aware personal search;
  • reversible content filtering;
  • AI-origin content labeling;
  • personal research memory;
  • contradiction and claim tracking;
  • WebMCP tool inspection;
  • policy-based browser actions;
  • local-versus-remote model routing;
  • privacy and data-movement visibility;
  • reusable Lens policies that users can inspect and share.

The destination is not “AI inside every page.” It is a browser in which the user owns the intelligence layer that sits across pages.

The publishing loop Research → book → capstone → solution → real use → new evidence
Browse all solutions →