Skip to content

The Deska blog

Ship a Chrome Extension With Agent Help

Learn how to ship a Chrome extension with agent help using Deska. A technical guide on scaffolding, manifest V3, and iterative AI development.

10 min read

Building browser tools has changed significantly with the rise of autonomous LLMs. When you decide to ship a Chrome extension with agent help, you transition from manual boilerplate writing to high level architectural oversight. This shift allows developers to focus on the unique utility of their extension while letting AI handle the intricacies of the Manifest V3 API and service worker lifecycle.

The Architecture of Modern Chrome Extensions

Chrome extensions are essentially web applications that live within the browser ecosystem. Since the transition to Manifest V3, the architecture has become more restrictive and security focused. Every project requires a clear understanding of three main components.

  1. The Manifest file: This is the manifest.json which defines permissions, versioning, and entry points.
  2. Background Scripts: These run as service workers. They handle events like installation or browser actions but cannot access the DOM directly.
  3. Content Scripts: These are injected into web pages. They can read and modify the DOM but have limited access to extension APIs.

Agents are particularly useful here because they can maintain the context of these disparate parts. While a human might forget to update a permission in the manifest after adding a new feature to a content script, an agent can check the entire workspace to ensure consistency.

Choosing Your Agent Environment

There are several ways to integrate AI into your workflow. Conventional IDE extensions provide autocomplete and chat, but they often struggle with multi file execution and terminal operations.

Tool TypeTerminal AccessFile System ContextVisual Layout
Standard IDE ExtensionLimitedPartialSingle Pane
CLI AgentsFullHighText Only
Deska CanvasFullHighMulti Panel

In a local-first environment like Deska, you can run multiple agents side by side. This is beneficial when building extensions because you can have one panel running Claude Code to handle logic, while another panel tracks your notes or terminal logs.

Using Deska for Extension Development

The canvas interface in Deska changes how you visualize the project structure. Instead of clicking through tabs, you can lay out your manifest, your background script, and your agent terminal in a single view.

Setting Up the Workspace

Start by opening Deska and creating a new folder for your project. You can use Ask Deska to quickly open the necessary panels. For example, tell the assistant to open a terminal and a code editor panel.

Because Deska is local-first, your API keys and source code never leave your machine beyond the requests sent to the LLM provider. This is critical if you are working on extensions that handle sensitive data or proprietary logic.

Invoking Agents

You can run coding agents directly in terminal panels. OpenCode or Claude Code can be used to scaffold the project. Use a prompt like: Create a Manifest V3 extension that modifies the background color of specific websites.

The agent will generate the manifest.json, the content.json, and any necessary icons. Because Deska supports multiple panels, you can watch the code appear in the Monaco editor while the agent explains its logic in the terminal.

Iterative Testing and Debugging

The hardest part of extension development is the lifecycle management. You must reload the extension in chrome://extensions every time you change the background script.

  • Keep a Chrome browser window open alongside Deska.
  • Use the terminal in Deska to run build scripts or watchers.
  • If an error occurs in the background worker, copy the trace into an agent thread for immediate diagnosis.

If you need to step away from your desk, the Deska mobile app allows you to monitor the progress of long running agent tasks. Since the devices pair directly with no ports exposed, it is a secure way to keep tabs on your build.

Managing Complex Permissions

Manifest V3 introduced a more granular permission system. Agents are excellent at identifying which host permissions you need based on the code in your content scripts. If your extension needs to communicate with an external API, the agent can help you configure the Cross Origin Isolation settings correctly.

When using Deska, you might use a browser widget to view documentation side by side with your code. This avoids constant context switching between your IDE and your primary browser.

FAQ

How to use AI for Chrome Extension Manifest V3?

The best way is to provide the agent with the current Google developer documentation via a link or text dump. Agents like Claude Code can then generate valid JSON structures that follow the strict V3 requirements, including service worker registration and declarative net request rules.

Can AI agents debug extension background scripts?

Yes, agents can analyze logs from the service worker. You should copy the console output from the extension's inspection window into the agent panel in Deska. The agent can then identify lifecycle issues or permission errors that are common in Manifest V3.

Is Deska free for open source developers?

The Deska workspace itself is free to download and use on Mac, Windows, and Linux. For AI features, you can use the BYOK model where you provide your own API keys, or subscribe to managed inference if you prefer a simplified setup.

Start Building Your Extension

Shipping a browser tool is a great way to improve your workflow or reach a wide audience. By using specialized coding agents within a flexible workspace, you reduce the friction of setup and boilerplate.

Download Deska at /download and start your next project on the infinite canvas.

Ship a Chrome Extension With Agent Help | Deska