能力标签
🛠
AI工具

前端工程AI助手

基于 TypeScript · 开源 AI 工具,GitHub 社区精选
英文名:FrontAgent
⭐ 95 Stars 🍴 12 Forks 💻 TypeScript 📄 MIT 🏷 AI 7.8分
7.8AI 综合评分
前端开发AI代理MCP协议RAG可控反馈
✦ AI Skill Hub 推荐

前端工程AI助手 是 AI Skill Hub 本期精选AI工具之一。综合评分 7.8 分,整体质量较高。我们推荐使用将其纳入你的 AI 工具库,帮助提升工作效率。

📚 深度解析
前端工程AI助手 是一款基于 TypeScript 的开源工具,在 GitHub 上收获 0k+ Star,是前端开发、AI代理、MCP协议、RAG领域中的优质开源项目。开源工具的最大优势在于代码完全透明,你可以审计每一行代码的安全性,也可以根据自身需求进行二次开发和定制。

**为什么要使用开源工具而非商业 SaaS?**
对于个人开发者和有隐私需求的用户,本地部署的开源工具意味着数据不离本机,不受第三方服务商的数据政策约束。同时,开源工具通常没有使用次数限制和月度费用,一次安装即可长期使用,对于高频使用场景的总拥有成本(TCO)远低于订阅制商业工具。

**安装与环境准备**
前端工程AI助手 依赖 TypeScript 运行环境。建议通过 pyenv(Python)或 nvm(Node.js)管理 TypeScript 版本,避免全局环境污染。对于新手用户,推荐先创建虚拟环境(python -m venv venv && source venv/bin/activate),再安装依赖,这样即使出现问题也可以随时删除虚拟环境重新开始,不影响系统稳定性。

**社区与维护**
GitHub Issue 和 Discussion 是获取帮助的最快渠道。在提问前建议先检查 Closed Issues(已关闭的问题),大多数常见问题都已有解答。遇到 Bug 时,提供 pip list 的输出、完整错误堆栈和最小可复现示例,能显著提高开发者响应速度。AI Skill Hub 将持续追踪 前端工程AI助手 的版本更新,及时通知重要功能变化。
📋 工具概览

前端工程AI助手 是一款基于 TypeScript 开发的开源工具,专注于 前端开发、AI代理、MCP协议 等核心功能。作为 GitHub 开源项目,它拥有活跃的社区支持和持续的版本迭代,代码完全透明可审计,支持本地部署以保护数据隐私。无论是个人使用还是集成到企业工作流,都能提供稳定可靠的解决方案。

GitHub Stars
⭐ 95
开发语言
TypeScript
支持平台
Windows / macOS / Linux
维护状态
轻量级项目,按需更新
开源协议
MIT
AI 综合评分
7.8 分
工具类型
AI工具
Forks
12
📖 中文文档
以下内容由 AI Skill Hub 根据项目信息自动整理,如需查看完整原始文档请访问底部「原始来源」。

前端工程AI助手 是一款基于 TypeScript 开发的开源工具,专注于 前端开发、AI代理、MCP协议 等核心功能。作为 GitHub 开源项目,它拥有活跃的社区支持和持续的版本迭代,代码完全透明可审计,支持本地部署以保护数据隐私。无论是个人使用还是集成到企业工作流,都能提供稳定可靠的解决方案。

📌 核心特色
  • 开源免费,支持本地部署,数据完全自主可控
  • 活跃的 GitHub 开源社区,持续迭代更新
  • 提供详细文档和使用示例,新手友好
  • 支持自定义配置,灵活适配不同使用环境
  • 可作为基础组件集成进现有技术栈或进行二次开发
🎯 主要使用场景
  • 本地部署运行,保护数据隐私,满足合规要求
  • 自定义集成到现有系统,扩展技术栈能力
  • 作为开源基础组件进行商业化二次开发
以下安装命令基于项目开发语言和类型自动生成,实际以官方 README 为准。
安装命令
# 方式一:npm 全局安装
npm install -g frontagent

# 方式二:npx 直接运行(无需安装)
npx frontagent --help

# 方式三:项目依赖安装
npm install frontagent

# 方式四:从源码运行
git clone https://github.com/ceilf6/FrontAgent
cd FrontAgent
npm install
npm start
📋 安装步骤说明
  1. 访问 GitHub 仓库页面
  2. 按照 README 文档完成依赖安装
  3. 根据系统环境完成初始化配置
  4. 参考官方示例或文档开始使用
  5. 遇到问题可在 GitHub Issues 中查找解答
以下用法示例由 AI Skill Hub 整理,涵盖最常见的使用场景。
常用命令 / 代码示例
# 命令行使用
frontagent --help

# 基本用法
frontagent [options] <input>

# Node.js 代码中使用
const frontagent = require('frontagent');

const result = await frontagent.run(options);
console.log(result);
以下配置示例基于典型使用场景生成,具体参数请参照官方文档调整。
配置示例
# frontagent 配置说明
# 查看配置选项
frontagent --config-example > config.yml

# 常见配置项
# output_dir: ./output
# log_level: info
# workers: 4

# 环境变量(覆盖配置文件)
export FRONTAGENT_CONFIG="/path/to/config.yml"
📑 README 深度解析 真实文档 完整度 87/100 查看 GitHub 原文 →
以下内容由系统直接从 GitHub README 解析整理,保留代码块、表格与列表结构。

FrontAgent

FrontAgent Logo

npm version License: MIT Node.js Version

Enterprise-grade AI Agent System - Constrained by SDD, Powered by MCP for Controlled Perception and Execution

中文文档 | Quick Start | Architecture | Design Doc

FrontAgent is an AI Agent system designed specifically for frontend engineering, addressing core challenges faced when deploying agents in real-world engineering scenarios:

Distilled Planner Model: FrontAgent's Planner stage has been distilled into a standalone small model frontagent-planner-7B-lora. Load the LoRA adapter on top of Qwen2.5-Coder-7B to generate frontend execution plans directly, without calling large LLM APIs. The training workflow, prompts, evaluation scripts, and Hugging Face release metadata live in models/frontagent-planner.
  • Two-Stage Architecture - Separate planning and execution to avoid JSON parsing errors and enable dynamic code generation
  • Phase-Based Execution - Steps grouped by phases with error recovery within each phase
  • Self-Healing - Tool Error Feedback Loop automatically analyzes errors and generates fix steps
  • Facts Memory - Structured facts-based context system for precise project state tracking
  • Module Dependency Tracking - Automatic import/export parsing to detect path hallucinations
  • Hallucination Prevention - Multi-layer hallucination detection and interception
  • SDD Constraints - Specification Driven Development as hard constraints for agent behavior
  • MCP Protocol - Controlled tool invocation via Model Context Protocol
  • Minimal Changes - Patch-based code modifications with rollback support
  • Web Awareness - Understand page structure through browser MCP
  • Shell Integration - Terminal command execution (requires user approval)
  • Pre-Planning Scan - Scan project structure before planning to generate accurate file paths
  • Auto Port Detection - Automatically detect dev server ports from config files
  • Remote Hybrid RAG - Full-repository indexing with submodule exclusion, combining BM25 keyword search and embedding-based semantic search
  • LangGraph Engine (Optional) - Switchable graph-based execution engine with optional checkpoints
  • Planner Skills Layer - Reusable planning skills for task decomposition and phase injection
  • Distilled Planner Assets - Repository-native training, evaluation, and release assets for the Planner LoRA model
  • Skill Lab - Benchmark, improve, and promote content skills with local eval suites
  • Repository Management Phase - Auto git/gh workflow after acceptance (commit, push, PR)
  • Cross-Session Memory - Four-phase memory system (preload, runtime recall, post-task persistence, structured storage) that persists project facts, error resolutions, and dependency state across runs

Architecture Overview

Key Features

Require OpenViking only and disable Git fallback

fa run "Where is FrontAgent RAG implemented?" \ --rag-source openviking \ --open-viking-endpoint https://openviking.example.com/query \ --disable-open-viking-fallback

Dependency State

Required Configuration

VariableDescriptionExample Value
PROVIDERLLM provideropenai or anthropic
API_KEYAPI keysk-...
MODELModel namegpt-4 or claude-sonnet-4-20250514
BASE_URLAPI endpointhttps://api.openai.com/v1
EXECUTION_ENGINEExecution enginenative or langgraph
LANGGRAPH_CHECKPOINTEnable LangGraph checkpointtrue / false
MAX_RECOVERY_ATTEMPTSMax recovery attempts per phase3

1. Install globally via npm

npm install -g frontagent

Use the installed CLI

fa mcp serve

Or run from a source checkout after pnpm build

node /absolute/path/to/FrontAgent-app/apps/cli/dist/index.js \ mcp serve


By default, FrontAgent resolves the project root from the MCP host's workspace roots when the host exposes exactly one file root. If host roots are unavailable, it falls back to the MCP server process current working directory.

Use `--project-root` only when you want to pin the server to a specific project, or when the host exposes multiple workspace roots and FrontAgent cannot choose safely:
bash fa mcp serve --project-root /absolute/path/to/your-project

One MCP server process is bound to one resolved project root.

Useful server options:
bash fa mcp serve \ --security-mode balanced \ --rag-repo https://github.com/ceilf6/Lab.git \ --rag-branch main ```

Installed Packages:

react-router-dom, axios

Build

pnpm build

CLI Quick Start

```bash

Usage Examples

Example 1: Create New Project

cd examples
fa run "Create an e-commerce frontend project using React + TypeScript + Vite + Tailwind CSS"

Agent will automatically: 1. Analyze project requirements 2. Generate execution plan 3. Create package.json and config files 4. Request to execute npm install (requires user approval) 5. Generate page components and style files

Example 2: Modify Existing Files

fa run "Modify vite.config.ts to add path alias configuration"

Agent will: 1. Read existing vite.config.ts 2. Understand current configuration 3. Generate new config code 4. Apply minimal patches

Example 3: Add New Features

fa run "Add user authentication feature, including login, registration, and token management"

Agent will: 1. Analyze existing project structure 2. Plan files to create 3. Generate auth-related components 4. Create API integration code 5. Update route configuration

Example 4: Performance Optimization

fa run "Analyze and optimize homepage loading performance"

Agent will: 1. Read relevant component code 2. Analyze performance issues 3. Propose optimization solutions 4. Implement code-level optimizations (lazy loading, code splitting, etc.)

Example 5: Auto Error Recovery

fa run "Add route configuration in App.tsx"

Execution process shows self-healing:

Phase 1: Analysis Phase
  ✓ Step 1: Read package.json

Phase 2: Creation Phase
  ✗ Step 2: Modify App.tsx
     Error: Cannot apply patch: file not found in context

  🔄 Error recovery in progress...
     Analysis: App.tsx not read into context

  ✓ Recovery Step 1: Read src/App.tsx into context
  ✓ Recovery Step 2: Reapply patch to App.tsx

Phase 3: Validation Phase
  ✓ Step 3: Run type check

✅ Task complete! Auto-fixed 1 error

Key Features: - 🎯 Phase-Based Execution - Clear execution phases (Analysis, Creation, Validation) - 🔄 Auto-Fix - Detected file not read, auto-insert read step - 📊 Facts Tracking - System knows which files are read/unread - ⚡ No Retry Needed - One-shot completion, no manual re-runs needed

Example 6: Enable LangGraph Engine

fa run "Implement user profile page and open PR" \
  --type create \
  --engine langgraph \
  --langgraph-checkpoint \
  --max-recovery-attempts 5

Notes: - --engine langgraph enables graph-based phase orchestration - --langgraph-checkpoint enables in-memory checkpointing for the run - After acceptance passes, repository management phase can run git/gh actions

OpenAI Configuration Example

export PROVIDER="openai"
export BASE_URL="https://api.openai.com/v1"
export MODEL="gpt-4"
export API_KEY="sk-..."

Anthropic Configuration Example

export PROVIDER="anthropic"
export BASE_URL="https://api.anthropic.com"
export MODEL="claude-sonnet-4-20250514"
export API_KEY="sk-ant-..."

2. Configure LLM (supports OpenAI and Anthropic)

OpenAI config

export PROVIDER="openai" export BASE_URL="https://api.openai.com/v1" export MODEL="gpt-4" export API_KEY="sk-..."

Or Anthropic config

export PROVIDER="anthropic" export BASE_URL="https://api.anthropic.com" export MODEL="claude-sonnet-4-20250514" export API_KEY="sk-ant-..."

Use LangGraph engine + checkpoint (optional)

fa run "Add route guards and open a PR" --engine langgraph --langgraph-checkpoint ```

Host Configuration

Most MCP hosts use the same mcpServers shape. Start with the simple config:

{
  "mcpServers": {
    "frontagent": {
      "command": "fa",
      "args": [
        "mcp",
        "serve"
      ]
    }
  }
}

If your host UI has separate fields, use:

  • Command: fa
  • Args: mcp, serve

Do not put fa mcp serve into the command field as one string.

If the host reports command "fa" not found or env: node: No such file or directory, the GUI host probably does not inherit your terminal shell PATH. Then use absolute paths:

which node
which fa
{
  "mcpServers": {
    "frontagent": {
      "command": "/opt/homebrew/bin/node",
      "args": [
        "/opt/homebrew/bin/fa",
        "mcp",
        "serve"
      ]
    }
  }
}

If you are using a source checkout instead of a globally linked package, point node at the built CLI file after pnpm build:

{
  "mcpServers": {
    "frontagent": {
      "command": "/opt/homebrew/bin/node",
      "args": [
        "/absolute/path/to/FrontAgent-app/apps/cli/dist/index.js",
        "mcp",
        "serve"
      ]
    }
  }
}

For direct LLM fallback, pass environment variables through the host config:

{
  "mcpServers": {
    "frontagent": {
      "command": "fa",
      "args": [
        "mcp",
        "serve"
      ],
      "env": {
        "PROVIDER": "openai",
        "BASE_URL": "https://api.openai.com/v1",
        "MODEL": "gpt-4",
        "API_KEY": "sk-..."
      }
    }
  }
}

Examples of where to put the config:

  • Claude Desktop: add the server under mcpServers in claude_desktop_config.json.
  • Cursor: add the server under mcpServers in your Cursor MCP config, for example .cursor/mcp.json.
  • Codex or other MCP hosts: use the same command, args, and env values in the host's MCP server configuration surface.

Use OpenViking Wiki as the primary knowledge provider, with Git RAG fallback

fa run "Where is FrontAgent RAG implemented?" \ --rag-source composite \ --open-viking-endpoint https://openviking.example.com/query \ --open-viking-corpus wiki \ --open-viking-namespace docs/openviking \ --open-viking-l1-entry docs/openviking/frontagent-l1.md

Environment Variables

When provider=openai, RAG embeddings inherit the same base-url/api-key by default.

Override them only if your embedding endpoint is different.

fa run "Explain React setState behavior" \ --provider openai \ --base-url https://yunwu.ai/v1 \ --api-key YOUR_TOKEN \ --rag-embedding-model text-embedding-3-small

⚠️ Missing Module References:

  • src/pages/HomePage.tsx references non-existent module: ../components/ui/Spinner

Missing Packages:

@types/node

Created Modules

component (3 modules):

  • src/components/ui/Button.tsx (default export: Button)
  • src/components/ui/Card.tsx (default export: Card)
  • src/components/layout/Header.tsx (exports: Header, Navigation)

page (2 modules):

  • src/pages/HomePage.tsx (default export: HomePage)
  • src/pages/LoginPage.tsx (default export: LoginPage)

Core Modules

Generate a candidate revision and compare it against baseline

fa skill improve frontend-design

🇨🇳 中文文档镜像 AI 翻译 2026-05-25
英文原文章节由系统翻译为中文摘要,便于快速理解。完整原文见上方 "📑 README 深度解析"。
📌 简介

FrontAgent 是一个强大的前端 AI Agent 工具,旨在通过智能化的方式简化前端开发流程。它能够理解复杂的开发指令,并结合先进的架构设计,为开发者提供从需求分析到代码生成的全流程自动化体验。

⚡ 功能介绍

FrontAgent 具备核心的自动化开发能力,能够自动分析项目需求、生成执行计划并创建相应的配置文件(如 package.json)。它支持自动生成页面组件与样式文件,并能通过交互式确认执行 npm install 等命令,实现从构思到落地的闭环。

📋 环境依赖

在使用 FrontAgent 时,需确保环境配置符合要求。如果需要使用特定的 RAG 检索功能,建议配置 OpenViking 端点并根据需要禁用 Git fallback 模式,以确保检索源的准确性与稳定性。

🛠 安装步骤(Docker/pip/源码)

可以通过 npm 进行全局安装:执行 `npm install -g frontagent`。安装完成后,直接使用 CLI 命令 `fa mcp serve` 启动。若通过源码运行,请在 pnpm build 后指向编译后的 index.js 路径。系统会自动尝试从 MCP host 的 workspace roots 解析项目根目录。

🚀 使用教程

FrontAgent 提供便捷的 CLI 交互体验。开发者可以通过 `fa run` 命令直接下达自然语言指令,例如:'Create an e-commerce frontend project using React + TypeScript + Vite + Tailwind CSS'。Agent 会自动完成从环境搭建到组件生成的全过程,并请求用户授权执行关键操作。

⚙️ 配置说明(含 MCP / env)

项目支持通过环境变量配置 LLM Provider,包括 OpenAI 和 Anthropic。开发者需设置 `PROVIDER`、`BASE_URL`、`MODEL` 及 `API_KEY`。对于 RAG 功能,若使用 OpenAI,其 Embedding 模型将默认继承相同的 Base URL 配置,除非手动指定不同的端点。

🔌 API 说明

FrontAgent 的 API 调用逻辑与配置高度集成。当指定 provider 为 openai 时,RAG 的 embeddings 会自动继承基础配置。开发者可以通过命令行参数(如 `--provider`、`--base-url`、`--rag-embedding-model`)灵活覆盖默认配置,以适配不同的 API 端点或模型需求。

🔄 工作流/模块

在执行任务时,FrontAgent 会进入自动化的工作流:首先分析指令需求,随后生成详细的执行计划,接着创建必要的配置文件与组件代码。在执行过程中,Agent 会实时反馈模块创建状态,并能识别并提示代码中缺失的模块引用或依赖包(如 @types/node)。

🎯 aiskill88 AI 点评 A 级 2026-05-21

专业的前端AI代理平台,技术栈完整融合RAG和MCP。Stars虽中等但更新活跃,适合前端工程化转型团队。

📚 实用指南(长尾问题)
适合谁
  • 需要让 Claude / Cursor 操作本地工具的 AI 工程师
  • 构建多智能体协作系统的 Agent 开发者
  • 构建企业知识库 / RAG 检索应用的团队
最佳实践
  • 配置 MCP 服务器时建议使用 stdio 传输 + JSON-RPC,避免暴露公网
  • 分块大小建议 256-512 tokens,向量库优选 pgvector 或 Qdrant
  • Agent 任务先做 dry-run 验证工具调用链,再开启自主执行
常见错误
  • API key 直接提交到 git 仓库(请用 .env 并加入 .gitignore)
  • MCP 配置路径拼错或权限不足,重启 Claude Desktop 才生效
  • embedding 模型与查询模型不一致导致检索失效
部署方案
  • CLI:直接 npm install -g / pip install,命令行调用
  • 云端托管:可放在 Vercel / Railway / Fly.io 等 PaaS 平台
相关搜索
FrontAgent 中文教程FrontAgent 安装报错怎么办FrontAgent MCP 配置FrontAgent Agent 工作流FrontAgent 与同类工具对比FrontAgent 最佳实践FrontAgent 适合谁用
⚡ 核心功能
👥 适合谁
  • 需要让 Claude / Cursor 操作本地工具的 AI 工程师
  • 构建多智能体协作系统的 Agent 开发者
  • 构建企业知识库 / RAG 检索应用的团队
⭐ 最佳实践
  • 配置 MCP 服务器时建议使用 stdio 传输 + JSON-RPC,避免暴露公网
  • 分块大小建议 256-512 tokens,向量库优选 pgvector 或 Qdrant
  • Agent 任务先做 dry-run 验证工具调用链,再开启自主执行
⚠️ 常见错误
  • API key 直接提交到 git 仓库(请用 .env 并加入 .gitignore)
  • MCP 配置路径拼错或权限不足,重启 Claude Desktop 才生效
  • embedding 模型与查询模型不一致导致检索失效
👥 适合人群
AI 技术爱好者研究人员和学生开发者和工程师技术创业者
🎯 使用场景
  • 本地部署运行,保护数据隐私,满足合规要求
  • 自定义集成到现有系统,扩展技术栈能力
  • 作为开源基础组件进行商业化二次开发
⚖️ 优点与不足
✅ 优点
  • +MIT 协议,可免费商用
  • +完全开源免费,无授权费用
  • +本地部署,数据完全自主可控
  • +开发者社区支持,遇问题可查可问
⚠️ 不足
  • 安装和初始配置可能需要一定技术基础
  • 功能完整性通常不如成熟商业产品
  • 技术支持主要依赖开源社区,响应速度不稳定
⚠️ 使用须知

AI Skill Hub 为第三方内容聚合平台,本页面信息基于公开数据整理,不对工具功能和质量作任何法律背书。

建议在沙箱或测试环境中充分验证后,再部署至生产环境,并做好必要的安全评估。

📄 License 说明

✅ MIT 协议 — 最宽松的开源协议之一,可自由商用、修改、分发,仅需保留版权声明。

🔗 相关工具推荐
📚 相关教程推荐
📰 相关 AI 新闻
🍿 AI 圈相关吃瓜
🗺️ 相关解决方案
🧩 你可能还需要
基于当前 Skill 的能力图谱,自动补全的工具组合
❓ 常见问题 FAQ
通过MCP协议标准接口与IDE、编辑器无缝集成,支持主流前端工具链。
💡 AI Skill Hub 点评

经综合评估,前端工程AI助手 在AI工具赛道中表现稳健,质量良好。如果你已有明确的使用需求,可以直接上手体验;如果还在评估阶段,建议对比同类工具后再做决策。

📚 深入学习 前端工程AI助手
查看分步骤安装教程和完整使用指南,快速上手这款工具
🌐 原始信息
原始名称 FrontAgent
原始描述 开源MCP工具:AI agent platform for frontend engineering with RAG, Skills, SDD, MCP and so on 。⭐95 · TypeScript
Topics 前端开发AI代理MCP协议RAG可控反馈
GitHub https://github.com/ceilf6/FrontAgent
License MIT
语言 TypeScript
🔗 原始来源
🐙 GitHub 仓库  https://github.com/ceilf6/FrontAgent 🌐 官方网站  https://marketplace.visualstudio.com/items?itemName=ceilf6.frontagent

收录时间:2026-05-20 · 更新时间:2026-05-21 · License:MIT · AI Skill Hub 不对第三方内容的准确性作法律背书。