Iris

IrisAI Agents See Web Apps in Real-Time

Iris is an open-source, MCP-based tool that gives AI coding agents the ability to observe live web applications. It uses deterministic assertions to validate API calls, DOM changes, console errors, and routing, saving approximately 73x tokens compared to full-page screenshots. Ideal for debugging frontend apps and automating tests, Iris significantly boosts the accuracy of AI-assisted development.

free
IrisAI coding agentMCP protocolfrontend debuggingopen sourcetoken optimizationweb app monitoringautomated assertionsAI assisted developmentdeveloper tools
Indexed
Updated
3.6 (0 Number of reviews)

Log in to rate the project

If you've ever used an AI coding assistant for frontend work, you've likely hit that frustrating wall: the AI generates a component that looks perfect on paper, but then renders as a chaotic mess. Or perhaps an API call silently fails, and your AI assistant remains blissfully unaware. The traditional workaround involves feeding the AI screenshots, but this approach is both token-hungry and information-poor. A screenshot can't interpret a console error or pinpoint a specific DOM node.

This is precisely where Iris steps in. It's an open-source tool built on the Model Context Protocol (MCP), essentially giving your AI coding agent a pair of 'eyes' to see what's actually happening inside your web application. Did that API call go through? What exactly changed in the DOM? Are there any console errors? Is the routing behaving as expected? Crucially, Iris doesn't rely on blurry images; it uses precise, deterministic assertions to validate these states, making it both effective and incredibly efficient.

Why Screenshots Fall Short for AI

AI coding agents, like those found in Cursor or GitHub Copilot's agent mode, typically try to understand an application's runtime state by taking a full-page screenshot and feeding that image to a visual model. The problem is, a single screenshot often contains a ton of irrelevant visual noise. Even after the visual model identifies UI elements, it still needs to infer meaning, leading to massive token consumption and slow feedback loops. Iris takes a much smarter route: it directly exposes the application's internal, structured state as plain text to the model. According to the developers, Iris consumes roughly 1/73rd the tokens of a full-page screenshot for the same scenario. This is a huge win for developers paying per token.

Iris's Core Capabilities

After a quick spin, it's clear Iris focuses on a few key areas:

  • API Call Validation: Your AI agent can assert whether a specific API was called, if it returned the expected status code, or if the data body matches. No more waiting for network panel screenshots.
  • DOM Change Monitoring: Once a component renders, the AI can check for the existence of specific elements, verify styles, or confirm text content.
  • Console Log and Error Capture: This lets the AI directly see runtime exceptions and log outputs, accelerating bug identification.
  • Route Detection: Essential for single-page applications, Iris can verify if page navigations follow the expected paths.

These capabilities are exposed to your AI agent via an MCP server. As long as your agent supports the MCP protocol (which many popular editor extensions are starting to adopt), you can integrate Iris. The setup isn't overly complex: clone the repository, configure a JSON file to specify the application URL you want to monitor, and then launch your agent.

Practical Use Cases

Imagine you're using an AI coding agent to refactor state management in a React page. You instruct the AI to swap Redux for Zustand, and you expect certain legacy API calls to no longer occur. Traditionally, you'd make the changes, manually refresh, open DevTools to inspect, or maybe take a network request screenshot for the AI to analyze. With Iris, you can write a direct assertion: "After clicking this button, ensure that /api/old-endpoint was not called." The AI agent will then verify this in real-time. If the assertion fails, it immediately knows and can attempt to correct the code. This kind of closed-loop debugging is incredibly practical for frontend developers, especially when dealing with complex asynchronous flows.

"Iris isn't here to replace DevTools. It's about feeding the structured information from DevTools directly to the AI, letting it process and make decisions autonomously."

The Open-Source Advantage

Iris's source code is hosted on GitHub under an MIT license, meaning you're free to use, modify, and integrate it into your own toolchain. The project is still in its early stages, so the documentation is concise, but the core functionality is solid. For indie developers or small teams, setting up an AI-assisted automated testing workflow with Iris is remarkably low-cost – beyond your own server or local environment, there are no additional fees.

Of course, it's not without limitations. Currently, it only supports applications based on the Chrome DevTools Protocol (i.e., Chromium-based browsers); Safari and Firefox support are still on the roadmap. Also, the assertion syntax requires a bit of learning, though the official documentation provides a straightforward DSL.

Getting Started Tips

Developers keen to try Iris might consider these steps:

  • Start by testing it on a simple single-page application to get comfortable with writing assertions. While the official examples use React, it should work with any frontend framework.
  • Check if your preferred AI coding agent (like Cursor or Continue) supports the MCP protocol. If not, consider opening an issue with their project.
  • Don't expect it to work perfectly on the first try. Iris outputs its own logs to the terminal during debugging, which can help you troubleshoot connection issues.

Ultimately, Iris transforms AI coding agents from 'blindly writing' to 'writing with feedback,' which is invaluable for improving the reliability of AI-generated code. If you're already leveraging AI for frontend development, it's well worth dedicating half an hour to explore.

Pros & Cons

Pros

  • Saves approximately 73x tokens compared to screenshots
  • Provides precise and repeatable results with deterministic assertions
  • Offers real-time monitoring of DOM, API calls, and console errors
  • Completely open-source, allowing for free customization and integration
  • Strong compatibility with mainstream AI coding agents supporting MCP

Cons

  • Currently limited to Chromium-based browsers
  • Documentation and examples are still somewhat sparse
  • Learning the assertion syntax requires an initial investment of time
  • As an early-stage project, long-term stability is yet to be fully proven

Frequently Asked Questions

What is Iris?

Iris is an open-source tool built on the MCP protocol, designed to empower AI coding agents. It allows them to observe the real-time state of running web applications (APIs, DOM, console, etc.) and uses deterministic assertions for validation, moving beyond traditional screenshot-based analysis.

Is Iris free to use?

Yes, Iris is entirely free and open-source under the MIT license. You can deploy and use it yourself without any subscription fees or costs.

Which browsers does Iris support?

Currently, Iris primarily supports Chromium-based browsers like Chrome and Edge, leveraging the Chrome DevTools Protocol for monitoring. Support for Safari and Firefox is planned for future development.

Does Iris require special hardware?

No, Iris does not require any special hardware. It operates as a Node.js service and can run on a standard development machine or server without specific hardware demands.

How does Iris integrate with AI coding agents?

If your AI coding agent supports the MCP protocol (such as Cursor or Continue), you can configure Iris to act as an MCP server. The AI agent then uses an MCP client to call upon Iris's tools to execute assertions and receive real-time feedback.

Explore More

Similar Tools

Relay

Relay is a lightweight SDK designed to bolster the reliability of LLM applications. It introduces automatic retries, cross-provider failover (Anthropic ↔ OpenAI), and intelligent caching with just a single line of code. Built for edge environments and featuring a Bring Your Own Key (BYOK) model, Relay helps developers create highly available AI agents, starting at zero cost.

Yolo-Auto

Yolo-Auto

Yolo-Auto offers an OpenAI-compatible, unlimited LLM API for just $6 per month, with a free tier providing 15 requests weekly. Utilizing the Qwen3.6-35B-A3B model, it boasts no token counting, no request limits, and complete data privacy. This makes it an ideal, low-cost AI integration solution for indie developers and small teams looking to leverage large language models without breaking the bank.

TantrShell

TantrShell

TantrShell is a startup aiming to bridge Web development, AI solutions, automation, and cloud technologies. It promises an all-in-one platform for businesses and learners to build modern digital products. This article explores its core capabilities, ideal use cases, and practical advice for potential users looking to streamline their tech stack.

DeepRise

DeepRise

DeepRise is a multi-agent AI development platform designed to dynamically create and manage long-running AI agents. These agents collaborate to automate code writing, testing, and deployment, making it ideal for development teams seeking to streamline workflows, reduce repetitive tasks, and accelerate iteration cycles. It offers a glimpse into the future of automated software development.

Stackmint Gateway

Stackmint Gateway

Stackmint Gateway is an open-source Python client designed to bring crucial control to LangChain agents. It offers budget management, human-in-the-loop (HITL) gates, and circuit breakers, ensuring AI agents operate reliably and within defined boundaries. Ideal for consulting firms and developers needing a robust, controlled AI execution layer without the risk of runaway costs or unintended actions.

AEVS

AEVS

AEVS is a plug-and-play SDK designed to record every tool call made by an AI agent, generating tamper-proof execution receipts. It captures details like the tool used, inputs, outputs, status, and timestamps, enabling teams to verify agent actions without relying on chat histories or fragile logs. This is invaluable for debugging, auditing, and compliance in AI-driven systems.

Open-source Alternatives

guidellm: Optimize LLM Deployment Performance

guidellm is an open-source tool designed to evaluate and optimize Large Language Model (LLM) inference performance in production environments. It offers stress testing, latency analysis, and throughput assessment, helping developers pinpoint bottlenecks and fine-tune deployment configurations. Developed by the vLLM team, it's ideal for teams needing granular control over their LLM service tuning.

Kun: Embed AI Agent Workspaces in Your Apps

Kun is an open-source AI Agent workspace, built with TypeScript, designed for seamless integration into your applications. It offers dedicated Code and Write modes, providing developers with a customizable, intelligent interaction environment that supports multi-turn conversations, tool calling, and context management. It's a pragmatic solution for adding AI capabilities without building from scratch.

terax-ai: AI-Powered Terminal Workbench for Devs

terax-ai is a remarkably lightweight (just 7MB) open-source, terminal-first AI development workbench. Designed for command-line enthusiasts, it integrates AI assistance directly into your familiar terminal environment, offering lightning-fast startup and minimal resource usage. It's perfect for developers seeking efficiency and a streamlined workflow without the bloat of traditional IDEs.

go-micro: Go Microservice Framework for AI Agents

go-micro is a Go microservices framework optimized for building AI agents. It provides service discovery, load balancing, message encoding, and event-driven capabilities out of the box, enabling developers to quickly build scalable distributed AI systems. With over 22,000 GitHub stars, it's a popular choice for Go developers diving into microservices and AI agent architectures.

ai-gateway: Unify Your Generative AI API Management

ai-gateway is an open-source project built on Envoy Gateway, offering a unified API gateway to manage access to diverse generative AI services. It simplifies AI application integration and operations by providing features like load balancing, caching, and rate limiting for various AI providers.

Kiln: The All-in-One AI System Evaluation Toolkit

Kiln is an open-source Python framework designed to streamline the entire AI system development lifecycle, from initial build to continuous optimization. It integrates crucial components like evals, RAG, agents, fine-tuning, synthetic data generation, and dataset management, making AI workflows more efficient and controllable. Ideal for teams and individuals focused on deep AI performance tuning.