Most "build your own AI assistant" projects stop at the same point.
You speak into a microphone. Speech becomes text. An LLM generates an answer. Maybe it can open Spotify or run a few predefined Python functions on your machine.
That is useful, but it is not an autonomous desktop agent.
When we started building BLISS, we wanted something much closer to a persistent layer of intelligence over Windows: an assistant that could understand what was on screen, control applications, research across the web, remember useful information over months, continue tasks in the background, use the browser we were already logged into, and ask before doing something consequential.
That requirement changed the entire architecture. The difficult part was never connecting an LLM. The difficult part was everything around it.
What makes a desktop AI agent different from a chatbot?
A chatbot has a relatively simple loop:
A desktop agent has to operate inside a changing external environment:
FIGURE 01: BLISS DESKTOP AGENT ARCHITECTURE
Memory • Planner • Tool Router
Windows UIA • Browser • Files • Web
Observation ⟶ State Verification
Figure 01: The model proposes actions, but the application runtime owns execution, safety policies, and verification.
The model isn't the operating system. It decides what should happen. The application still has to execute tools, observe results, validate what happened, and decide what to do next.
Google describes function calling similarly: the model selects a function and its arguments, but the developer's application is responsible for executing that function and returning the result to the model. That distinction became one of the most important design principles in BLISS:
"The model proposes actions. The runtime owns execution."
1. Building the agent loop
BLISS started with a bounded tool-using loop inspired by the broader ReAct pattern: combine reasoning with interaction so the model can gather new information, update its plan and continue rather than trying to predict an entire workflow from the original prompt.
The original ReAct work demonstrated that reasoning becomes more useful when an agent can interact with external environments and incorporate observations back into subsequent decisions. In production code, however, we do not need to persist or expose the model's private reasoning.
The useful loop is closer to:
PLAN: What is the next bounded action?
ACT: Execute an approved tool.
OBSERVE: What actually happened?
VERIFY: Did the action produce the expected state?
REPEAT: Continue, recover or stop.
A simplified implementation looks like this:
def run_agent(goal, max_steps=12):
state = create_execution(goal)
for _ in range(max_steps):
decision = planner.next_action(
goal=goal,
observations=state.observations,
available_tools=tool_registry.schemas(),
)
if decision.done:
return verify_completion(state)
tool = tool_registry.get(decision.tool)
if tool.requires_confirmation(decision.args):
request_user_approval(decision)
result = tool.execute(**decision.args)
state.record(
action=decision,
observation=result,
)
if result.failed:
state = recover_or_replan(state)
return incomplete(state)
The max_steps limit matters. Without execution budgets, stall detection, and explicit completion conditions, an agent can loop through slightly different versions of the same failed action indefinitely. Autonomy needs boundaries.
2. Use Windows UI Automation before computer vision
One of our earliest architectural decisions was also one of the most valuable:
"Do not look at pixels if Windows already knows what the control is."
Windows exposes a structured accessibility and automation layer called UI Automation (UIA). Applications can expose buttons, text fields, windows, lists, menus and other controls as programmatically accessible elements with properties and supported interaction patterns. Microsoft describes UIA as providing programmatic access to most desktop UI elements and exposing them through an automation tree.
That means BLISS can often see something conceptually like:
├── Button: "Bluetooth & devices"
├── Button: "Network & internet"
└── Toggle: "Bluetooth" [State: On]
instead of sending a heavy screenshot.png to a multimodal model and asking: "Where is the Bluetooth toggle?"
Microsoft's newer winapp ui tooling follows the same philosophy: most interactions are driven through UIA patterns, with simulated mouse, keyboard, touch or pen input used for cases that cannot be driven directly through UIA. So BLISS uses a hierarchy:
Vision is still extremely important. Some applications expose poor accessibility trees. Canvas-based interfaces, games, unusual Electron surfaces and custom controls may be partially opaque. In those situations BLISS can combine a screenshot with the UIA snapshot and use vision to resolve what the structural layer missed.
The point is not UIA instead of vision. It is:
"Structure first. Vision when structure fails."
In BLISS, UIA became the primary path for conventional Windows controls, with vision reserved for interfaces that could not be reliably represented structurally.
3. Browser automation is a different problem
Initially we approached browser automation through the Chrome DevTools Protocol (CDP). For isolated research sessions, CDP is excellent. BLISS can maintain its own browser profile, inspect pages, read DOM state, follow links and perform actions without interfering with the user's normal browser.
Then we hit a much more realistic requirement: "Use my browser. I'm already logged into Instagram." That changes everything.
Modern Chrome intentionally restricts remote-debugging switches against the normal user data directory. Since Chrome 136, debugging the default data directory requires a separate non-standard --user-data-dir; Chrome explicitly recommends isolated profiles for browser automation. That security change is reasonable, but it also means a personal desktop assistant should not assume it can simply attach CDP to someone's everyday browser.
Our architecture therefore split browser execution into:
1. Dedicated CDP Session
Isolated research, anonymous web scraping, independent headless automation.
2. Personal Browser Session
User's authenticated everyday browser via Native Messaging extension bridge.
For the personal session, the better long-term architecture is a lightweight browser extension communicating with BLISS through Native Messaging. Chrome's extension platform explicitly supports communication between extensions and registered native applications through runtime.connectNative() and native messaging hosts. The extension works with the browser's tab APIs and content scripts, while BLISS remains the native orchestration layer.
│
▼ Native Messaging Bridge
Browser Extension (Tabs • DOM • Page Text • Active Authenticated Session)
Most importantly, BLISS does not need to extract cookies or passwords. The extension is already running inside the browser profile that owns the session.
4. Memory is not conversation history
Another mistake we wanted to avoid was treating memory as simply appending message history. Long-term agents need different kinds of memory. Research systems such as MIRIX explicitly separate memory into categories including core, episodic, semantic, procedural, and resource memory rather than keeping everything in one undifferentiated history.
BLISS follows a similar practical distinction:
- Core Memory: Important user identity and fixed preferences (e.g., "Prefers Brave browser").
- Semantic Memory: Discovered facts and knowledge.
- Episodic Memory: Specific past events and previous task executions.
- Procedural Memory: How a workflow or multi-step action sequence should be executed.
- Resource Memory: Documents, websites, and reusable data sources.
The harder memory problem: people change
Retrieval was not actually the hardest part. Correction was.
Suppose BLISS remembers: "User lives in Pokhara." Three months later the user says: "I moved to Kathmandu." A naive vector database happily stores both. The next retrieval may return either one.
So we introduced memory lifecycle states: ACTIVE, SUPERSEDED, DISPUTED, and ARCHIVED.
def resolve_fact(existing, incoming):
if same_claim(existing, incoming):
return consolidate(existing, incoming)
if conflicts(existing, incoming):
winner = choose_by_authority(existing, incoming)
if winner is incoming:
existing.state = "SUPERSEDED"
incoming.state = "ACTIVE"
incoming.supersedes = existing.id
else:
incoming.state = "DISPUTED"
return incoming
The key is that newest should not automatically win. We use evidence precedence:
The old memory is preserved as history rather than destroyed. This type of consolidation is also central to current long-term memory research (e.g., Mem0), focusing on extracting, consolidating, and retrieving salient information rather than repeatedly supplying an entire conversation history.
5. The biggest model does not need every task
An autonomous agent can become surprisingly slow and expensive if every small decision is routed through the strongest reasoning model. Operations like finding a settings file or extracting a page title do not require the same amount of intelligence as planning a six-step cross-application migration.
Modern model APIs increasingly expose this trade-off directly. Google's Gemini thinking models provide configurable thinking budgets so developers can balance reasoning quality against latency and cost, and Google positions lighter Flash variants specifically for lower-latency and cost-sensitive workloads.
So BLISS's model router matches task complexity to model tiers:
def route(task):
if task.is_simple_lookup:
return Model(tier="fast", reasoning="low")
if task.is_normal_tool_work:
return Model(tier="balanced", reasoning="medium")
if task.requires_planning or task.is_ambiguous or task.has_failed_repeatedly:
return Model(tier="reasoning", reasoning="high")
FIGURE 02: TIERED COMPLEXITY ROUTING
Figure 02: Tiered routing prevents expensive reasoning models from becoming the default for work that can be completed reliably by faster models.
There is no benefit in making a user wait for deep reasoning to determine that the Downloads folder exists. Tiered routing prevents expensive reasoning models from becoming the default for work that can be completed reliably by faster models. The actual saving depends on the workload and should be measured rather than assumed.
6. Voice is a pipeline, not a feature
Adding voice initially sounds simple: speech ⟶ model ⟶ speech. A useful desktop assistant needs much more:
BLISS uses lightweight local components for keyword detection, voice activity detection (VAD), and speech recognition. The cloud reasoning model should not need to process continuous microphone audio just to discover whether the user said its name.
We also separated three concepts that are often incorrectly combined:
- Wake Word: "Bliss, open Downloads."
- Push-to-Talk:
[Hotkey]"What is on my screen?" - Dictation Mode: "Write this text into the currently focused field."
Dictation is particularly important. When BLISS enters dictation mode, normal speech becomes text, not a sequence of agent instructions. That sounds obvious until your assistant interprets the sentence you are trying to type as a request to execute a command.
7. Autonomy needs verification, not optimism
Suppose BLISS executes: click "Send". The tool returning successfully does not mean the message was sent. Maybe the button moved, the site rejected the request, the click opened a confirmation modal, or the network dropped.
"Action success and task success are different states."
BLISS verifies important state transitions before advancing:
This becomes even more critical when retrying failures. If the system is uncertain whether a consequential operation succeeded, blindly retrying may create duplicate messages, duplicate purchases, or repeated submissions. Our autonomy layer tracks task checkpoints, action fingerprints, and resource ownership. Sometimes the correct autonomous decision is WAITING_USER_REVIEW rather than blindly retrying.
8. Human approval belongs inside the architecture
We do not want users confirming every mouse click; that would make the assistant useless. But there are operations where the difference between drafting and executing matters:
Current computer-use guidance from Microsoft makes the same architectural distinction between unattended execution and human-in-the-loop workflows, recommending attended or hybrid execution when actions require validation or carry greater sensitivity.
Human supervision is also essential because computer-use agents can encounter untrusted instructions embedded in webpages (indirect prompt injection). Approval therefore sits directly inside the runtime execution policy:
│
▼ Permission Policy Guard
├── SAFE ───────────────⟶ Execute
├── CONFIRM ─⟶ User ────⟶ Execute
└── BLOCKED ────────────⟶ Reject
The model cannot simply talk its way around this layer.
Hard-Earned Lessons & Failure Modes
- Vision should not be your first desktop API: Screenshot-based control looks impressive in demos, but structured Windows controls (UIA) are usually more deterministic when available. Use structure first; use vision to recover what structure cannot describe.
- Your automation browser is not the user's browser: A dedicated browser is excellent for research, but terrible when the task requires the user's already-authenticated session. Treat personal and isolated browser sessions as different security domains.
- Never silently downgrade authenticated intent: If the user says "Use my Brave profile" and the connection fails, do not quietly launch an anonymous Chrome profile. Stop and explain the blocker.
- Memory needs updates, not just retrieval: A memory system that remembers everything but cannot understand that an old fact is obsolete eventually becomes less trustworthy than no memory at all. Design superseding and contradiction handling early.
- High reasoning everywhere is wasteful: File discovery does not need the same model budget as task recovery after three uncertain UI transitions. Route by complexity and escalate when required.
- Tool execution needs proof:
click()succeeding proves that a click was attempted; it does not prove that the user's goal was achieved. Observe after acting. - Consequential operations need a separate trust boundary: Do not rely on prompt engineering to ask for permission. Put confirmation enforcement into the runtime code.
Where BLISS goes next: delegation
The current architecture still has one primary agent doing most of the coordination. The next step is controlled delegation across specialized sub-agents:
├── Researcher: Web and evidence gathering
├── Explorer: Environment and repository inspection
└── Reviewer: Evidence and result validation
The goal is not to create a theatrical swarm of agents. A task like "Open Downloads" should remain a single execution. A complex task like "Research three Windows automation architectures, compare them with our repository, and identify where our current design will fail" genuinely benefits from parallel specialization. Every child execution receives an explicit execution_id, agent_id, and bounded tool scope.
What building BLISS changed about how we think about AI agents
The most important lesson from BLISS is that a useful autonomous assistant is not primarily an LLM project. It is a systems engineering project with an LLM inside it.
The model provides reasoning and language. The surrounding system provides state, memory, permissions, tools, operating-system access, browser access, verification, recovery, persistence, voice, and trust. When those pieces are missing, a powerful model still feels like a chatbot with extra buttons. When they work together, the model begins to feel less like an application you visit and more like an intelligence layer sitting across the computer you already use.
That is the direction we are pursuing with BLISS: an assistant capable of saying "I know what you mean. I can do it. Here is what happened" and, just as importantly, "This part needs your approval."
Turn agent reliability into a repeatable evaluation
Record tasks attempted, independently verified successful outcomes, approval requests, false success reports and recovery events. Test interrupted workflows, stale UI state and denied permissions. A task should only count as complete when its intended final state is independently verified. For evidence retrieval, see our RAG versus fine-tuning comparison and grounded assistant design. Log redaction addresses sensitive traces. These are proposed evaluation criteria, not reported production success rates.
References & Citations
- Microsoft Learn: Windows UI Automation Fundamentals & Automation Patterns.
- Google AI for Developers: Function Calling with the Gemini API.
- Yao et al. (2022): ReAct: Synergizing Reasoning and Acting in Language Models (arXiv:2210.03629).
- Chrome for Developers: Native Messaging Specification for Desktop Applications.
- MIRIX Research: Multi-Agent Memory System for LLM-Based Autonomous Agents (arXiv:2507.07957).
- Mem0: Building Production-Ready AI Agents with Scalable Long-Term Memory (arXiv:2504.19413).