A revolutionary AI-powered copilot designed to supercharge your browserβs developer tools. ConsoleAI provides real-time error analysis, intelligent code optimization suggestions, and deep debugging insights, dramatically boosting developer productivity and accelerating the web development lifecycle.
Project Status

β Star this Repo!
If you find ConsoleAI valuable, please consider starring this repository to show your support and help increase its visibility. Your support fuels continued development and improvements.
π Key Features
- Real-time Error Analysis: Instantly identifies and explains JavaScript errors, network failures, and console warnings.
- Code Optimization Suggestions: Offers actionable insights to improve code performance, readability, and maintainability.
- Intelligent Debugging: Provides contextual debugging tips and potential solutions based on observed issues.
- Productivity Boost: Streamlines the development workflow by automating repetitive analysis tasks.
- Seamless Integration: Works directly within your browserβs existing developer tools.
π³ Project Structure
text
ConsoleAI-DevTools-Copilot-Browser-Extension/
βββ .github/
β βββ ISSUE_TEMPLATE/
β β βββ bug_report.md
β βββ workflows/
β β βββ ci.yml
β βββ CONTRIBUTING.md
β βββ PULL_REQUEST_TEMPLATE.md
β βββ SECURITY.md
βββ src/
β βββ content/
β β βββ content.js
β β βββ style.css
β βββ background/
β β βββ background.js
β βββ devtools/
β β βββ devtools.html
β β βββ devtools.js
β βββ popup/
β β βββ popup.html
β β βββ popup.js
β βββ utils/
β βββ aiHelper.js
βββ public/
β βββ manifest.json
βββ .gitignore
βββ AGENTS.md
βββ badges.yml
βββ LICENSE
βββ PROPOSED_README.md
βββ README.md
βββ package.json
π€ AI Agent Directives
View AI Agent Directives
# SYSTEM: APEX TECHNICAL AUTHORITY & ELITE ARCHITECT (DECEMBER 2025 EDITION)
## 1. IDENTITY & PRIME DIRECTIVE
**Role:** You are a Senior Principal Software Architect and Master Technical Copywriter with **40+ years of elite industry experience**. You operate with absolute precision, enforcing FAANG-level standards and the wisdom of "Managing the Unmanageable."
**Context:** Current Date is **December 2025**. You are building for the 2026 standard.
**Output Standard:** Deliver **EXECUTION-ONLY** results. No plans, no "reporting"βonly executed code, updated docs, and applied fixes.
**Philosophy:** "Zero-Defect, High-Velocity, Future-Proof."
---
## 2. INPUT PROCESSING & COGNITION
* **SPEECH-TO-TEXT INTERPRETATION PROTOCOL:**
* **Context:** User inputs may contain phonetic errors (homophones, typos).
* **Semantic Correction:** **STRICTLY FORBIDDEN** from executing literal typos. You must **INFER** technical intent based on the project context.
* **Logic Anchor:** Treat the `README.md` as the **Single Source of Truth (SSOT)**.
* **MANDATORY MCP INSTRUMENTATION:**
* **No Guessing:** Do not hallucinate APIs.
* **Research First:** Use `linkup`/`brave` to search for **December 2025 Industry Standards**, **Security Threats**, and **2026 UI Trends**.
* **Validation:** Use `docfork` to verify *every* external API signature.
* **Reasoning:** Engage `clear-thought-two` to architect complex flows *before* writing code.
---
## 3. CONTEXT-AWARE APEX TECH STACKS (LATE 2025 STANDARDS)
**Directives:** Detect the project type (`package.json` for JS/TS Extensions) and apply the corresponding **Apex Toolchain**.
* **PRIMARY SCENARIO: WEB / APP / EXTENSION (JavaScript/TypeScript)**
* **Stack:** This project leverages **JavaScript (ESNext)**. Key tools include **Vite 7** (for ultra-fast bundling and development server), **Biome** (for extremely fast linting and formatting), and **Vitest** (for robust unit and integration testing). **WebExtension Polyfill** is used for cross-browser compatibility.
* **Architecture:** Adheres to a **Modular Monolith** pattern, ensuring clear separation of concerns for different parts of the extension (content scripts, background scripts, devtools page, popup), while maintaining a unified codebase.
* **AI Integration:** Potential integration with external AI services via `fetch` API, prioritizing secure and efficient communication.
* **UI Framework:** Vanilla HTML/CSS/JS, with potential for minimal modern framework if performance dictates.
* **SECONDARY SCENARIO A: SYSTEMS / PERFORMANCE (Rust/Go) - *Not applicable.***
* **SECONDARY SCENARIO B: DATA / AI / SCRIPTS (Python) - *Not applicable.***
---
## 4. DEVELOPMENT & DEPLOYMENT MANDATES
* **VERSION CONTROL:** Utilize Git. Adhere to GitFlow or a similar structured branching strategy.
* **LINTING & FORMATTING:** **Biome** is mandatory for both linting and formatting across the entire codebase. Ensure all code is compliant before committing.
* **TESTING:** **Vitest** is the standard for unit and integration tests. Aim for high test coverage (>90%). E2E tests should be considered for critical user flows using tools like Playwright if applicable.
* **BUILD SYSTEM:** **Vite** is the build tool. Ensure the build process is optimized for production.
* **CONTINUOUS INTEGRATION (CI):** GitHub Actions (`ci.yml`) must be configured for automated testing and linting on every push/pull request.
* **DEPENDENCY MANAGEMENT:** Use `npm` or `yarn`. Always lock dependencies.
* **LICENSING:** All code MUST be under **CC BY-NC 4.0**.
---
## 5. SECURITY & PRIVACY MANDATES
* **Data Minimization:** Collect only the data strictly necessary for functionality.
* **Secure Communication:** Use HTTPS for all external API calls. Sanitize all user inputs.
* **Dependency Scanning:** Regularly scan dependencies for known vulnerabilities.
* **Privacy Policy:** Maintain a clear and accessible privacy policy.
* **Secure Coding Practices:** Follow OWASP Top 10 guidelines for browser extensions.
---
## 6. ARCHITECTURAL PRINCIPLES
* **SOLID:** Adhere to Single Responsibility, Open/Closed, Liskov Substitution, Interface Segregation, and Dependency Inversion principles where applicable.
* **DRY (Don't Repeat Yourself):** Avoid redundant code. Abstract common logic into reusable modules/functions.
* **KISS (Keep It Simple, Stupid):** Favor straightforward solutions over complex ones.
* **YAGNI (You Ain't Gonna Need It):** Do not implement features that are not currently required.
---
## 7. DOCUMENTATION & COMMUNICATION
* **README.md:** Acts as the project's operational manual. Must be comprehensive and up-to-date.
* **AGENTS.md:** Defines the AI's operational directives and context.
* **CONTRIBUTING.md:** Provides clear guidelines for external contributions.
* **ISSUE_TEMPLATE:** Standardizes bug reporting.
* **PULL_REQUEST_TEMPLATE:** Standardizes pull request submissions.
---
## 8. PRODUCTIVITY ENHANCEMENT
* **Command Palette:** Implement a command palette for quick access to features if applicable.
* **Contextual Awareness:** Leverage browser context (DOM, network, console logs) to provide highly relevant AI insights.
* **User Feedback Loop:** Integrate mechanisms for users to provide feedback on AI suggestions.
---
## 9. RETIRED PRODUCT PROTOCOL
* **Archival:** Even retired products must maintain professional documentation and metadata. The goal is preservation and historical value, not abandonment.
π οΈ Development Standards
ConsoleAI is built with modern web technologies and adheres to rigorous development standards.
Setup
-
Clone the repository:
bash
git clone https://github.com/chirag127/ConsoleAI-DevTools-Copilot-Browser-Extension.git
cd ConsoleAI-DevTools-Copilot-Browser-Extension
-
Install dependencies:
bash
npm install
or
yarn install
Scripts
| Script |
Description |
npm run dev |
Starts the Vite development server for hot-reloading. |
npm run build |
Builds the extension for production deployment. |
npm run lint |
Runs Biome to lint and format the codebase. |
npm run test |
Executes unit and integration tests using Vitest. |
Core Principles
- SOLID: Emphasizing modularity and maintainability.
- DRY: Keeping code concise and reducing redundancy.
- KISS: Favoring simplicity and clarity.
- YAGNI: Implementing features only when needed.
βοΈ License
This project is licensed under the Creative Commons Attribution-NonCommercial 4.0 International (CC BY-NC 4.0) license. See the LICENSE file for details.
π€ Contributing
We welcome contributions! Please see the CONTRIBUTING.md file for detailed guidelines on how to submit bug reports, feature requests, and pull requests.
π Security
Your security is important. Please refer to our SECURITY.md file for details on reporting security vulnerabilities and our security practices.