能力标签
智能代理框架
Cursor规则

智能代理框架

基于 Python · 提升 AI 辅助编程的代码质量与风格一致性
英文名:agentic-os
⭐ 20 Stars 🍴 11 Forks 💻 Python 📄 MIT 🏷 AI 8.0分
8.0AI 综合评分
agent-frameworkai-agentpython
✦ AI Skill Hub 推荐

智能代理框架 是 AI Skill Hub 本期精选Cursor规则之一。综合评分 8.0 分,整体质量较高。我们强烈推荐将其纳入你的 AI 工具库,帮助提升工作效率。

📚 深度解析

智能代理框架 是专为 Cursor AI 代码编辑器设计的规则配置文件。Cursor Rules 是 Cursor 提供的一项功能,允许开发者在项目根目录放置 .cursorrules 文件(或在 Cursor Settings 中配置 Rules for AI),从而定制 AI 代码助手在该项目中的行为规范和输出风格。

使用 智能代理框架 的核心价值在于提升代码质量的一致性。在没有规则约束的情况下,AI 生成的代码风格可能随机变化;而有了精心设计的 Cursor Rules,AI 会严格遵守你制定的编码规范,例如始终使用函数式组件而非类组件、命名必须使用驼峰命名法、注释只用中文等。

对于团队协作而言,将 .cursorrules 文件纳入 Git 版本管理,可以确保团队所有成员在使用 AI 辅助编程时遵循统一的规范,避免代码审查中因 AI 生成风格不一致带来的额外成本。AI Skill Hub 推荐将 Cursor Rules 作为新项目启动的标配步骤之一。

📋 工具概览

智能代理框架 是一套专为 Cursor AI 代码编辑器定制的编程规范规则集。通过精心设计的规则约束,它能引导 AI 生成符合团队标准的高质量代码,减少人工审查成本,保障代码风格一致性。适合个人开发者快速提升代码质量,也适合团队统一 AI 辅助编程的规范。

GitHub Stars
⭐ 20
开发语言
Python
支持平台
Windows / macOS / Linux
维护状态
轻量级项目,按需更新
开源协议
MIT
AI 综合评分
8.0 分
工具类型
Cursor规则
Forks
11

📖 中文文档

以下内容由 AI Skill Hub 根据项目信息自动整理,如需查看完整原始文档请访问底部「原始来源」。

智能代理框架 是一套专为 Cursor AI 代码编辑器定制的编程规范规则集。通过精心设计的规则约束,它能引导 AI 生成符合团队标准的高质量代码,减少人工审查成本,保障代码风格一致性。适合个人开发者快速提升代码质量,也适合团队统一 AI 辅助编程的规范。

📌 核心特色
  • 深度定制 AI 代码助手在 Cursor 中的行为规范与输出风格
  • 内置特定语言或框架的编码最佳实践约束
  • 减少 AI 生成代码的人工审查成本,提升代码质量
  • 支持团队统一 AI 辅助编程规范,降低协作成本
  • 实时生效,无需重启 IDE,即改即用
🎯 主要使用场景
  • 为特定项目或技术栈指定 AI 代码风格和安全规范
  • 在多人协作项目中统一 AI 辅助编程的代码质量标准
  • 快速生成符合团队规范的代码,减少后期返工
以下安装命令基于项目开发语言和类型自动生成,实际以官方 README 为准。
安装命令
# 在 Cursor 中安装规则
# 1. 打开 Cursor → Cmd+Shift+P
# 2. 搜索 "Open Cursor Settings" 或直接进入 Settings
# 3. 找到 "Rules for AI" / "Cursor Rules" 配置项
# 4. 粘贴本工具的规则内容

# 也可以克隆仓库后本地导入
git clone https://github.com/KbWen/agentic-os
# 按照 README 中的说明添加规则文件
📋 安装步骤说明
  1. 打开 Cursor,进入 Settings(设置)
  2. 找到 Rules for AI 或 Cursor Rules 选项
  3. 将规则内容复制后粘贴到规则输入框中
  4. 保存设置,后续所有 AI 对话将自动应用此规则
以下用法示例由 AI Skill Hub 整理,涵盖最常见的使用场景。
常用命令 / 代码示例
# 命令行使用
agentic-os --help

# 基本用法
agentic-os input_file -o output_file

# Python 代码中调用
import agentic_os

# 示例
result = agentic_os.process("input")
print(result)
以下配置示例基于典型使用场景生成,具体参数请参照官方文档调整。
配置示例
# agentic-os 配置文件示例(config.yml)
app:
  name: "agentic-os"
  debug: false
  log_level: "INFO"

# 运行时指定配置文件
agentic-os --config config.yml

# 或通过环境变量配置
export AGENTIC_OS_API_KEY="your-key"
export AGENTIC_OS_OUTPUT_DIR="./output"
📑 README 深度解析 真实文档 完整度 33/100 查看 GitHub 原文 →
以下内容由系统直接从 GitHub README 解析整理,保留代码块、表格与列表结构。

简介

Agentic OS

<p align="center"> <strong>"Done." — your AI coding agent, about code it didn't test.</strong><br/> A rules file <em>asks</em> your agent to behave. Agentic OS <strong>checks that it did</strong> — leaked secrets and a green check over zero tests fail your git hooks and CI; a skipped review or phase shows up when the validator reads the work trail. Backstops you control, not the agent's own word. </p>

<p align="center"> <strong>A governance-first layer for AI coding agents</strong> — guardrails and a gated workflow for Claude Code, Codex, Cursor, Copilot, Antigravity, or any Markdown-reading agent. </p>

<p align="center"> <a href="https://github.com/KbWen/agentic-os/releases"><img src="https://img.shields.io/github/v/release/KbWen/agentic-os?style=flat-square&label=release" alt="Release"/></a> <a href="https://github.com/KbWen/agentic-os/actions/workflows/validate.yml"><img src="https://img.shields.io/github/actions/workflow/status/KbWen/agentic-os/validate.yml?branch=main&style=flat-square&label=CI" alt="CI"/></a> <a href="https://github.com/KbWen/agentic-os/actions/workflows/security.yml"><img src="https://img.shields.io/github/actions/workflow/status/KbWen/agentic-os/security.yml?branch=main&style=flat-square&label=Security" alt="Security"/></a> <a href="https://opensource.org/licenses/MIT"><img src="https://img.shields.io/badge/license-MIT-22c55e?style=flat-square" alt="MIT"/></a> &nbsp;·&nbsp; <a href="docs/README_zh-TW.md">繁體中文</a> · <a href="CONTRIBUTING.md">Contributing</a> · <a href="CHANGELOG.md">Changelog</a> </p>

<p align="center"> <img src="docs/assets/concept-hero.png" alt="An AI coding agent confidently claims 'Done. Tests pass. Shipping it.' and Agentic OS stamps the claim '[citation needed]'. Agentic OS demands evidence for what your AI agent claims — leaked secrets, missing tests, skipped reviews — through git hooks and CI instead of taking the agent's word." width="820"/> </p>

<p align="center"><sub>It checks the evidence behind what your AI coding agent claims — secrets, tests, reviews — through your git hooks and CI. Here's a gate firing:</sub></p>

<p align="center"> <img src="docs/assets/workflow-demo.gif" alt="An AI coding agent in a terminal claims a task is done and tries to ship it; the Agentic OS gate returns verdict FAIL because the work trail has no review or test evidence, blocks the ship, and only passes after review, tests, and evidence are recorded." width="780"/> </p>

The /bootstrap, /review, and /ship above are plain text prompts — your agent maps them to the workflow files in the repo, so they run the same in Cursor or Codex as in Claude Code.

Or run a gate yourself, no install — the credential scan that catches a leaked key before it reaches git history:

bash demo/run.sh          # Windows (PowerShell): pwsh demo/run.ps1

<p align="center"> <img src="docs/assets/demo-gate.gif" alt="Terminal recording of the real credential gate: an AI agent writes config.env containing a leaked aws_access_key_id and reports 'Done - config added.'; Agentic OS runs scan_credentials.py, which detects the credential with the value redacted, and the commit is BLOCKED — the agent said done, the machine said no. Reproduce with bash demo/run.sh." width="820"/> </p>

<details> <summary>Full terminal output</summary>

  An AI agent wrote this file and reported: "Done — config added."
  ----------------------------------------------------------------
    DB_HOST=prod.internal
    aws_access_key_id = AKIA****************
  ----------------------------------------------------------------

  Without a gate, that commit lands and the key is in git history forever.
  Agentic OS runs this before the commit is allowed:

    $ scan_credentials.py config.env

CREDENTIAL PATTERN(S) DETECTED (values redacted):
  config.env:2: aws-access-key-id
Rotate the exposed secret, remove it from the change, then retry.

  Commit BLOCKED. The agent said "done"; the machine said no — and it
  redacted the value instead of echoing your secret back at you.

</details>

Your agent can still cut a corner. What it can't do is get a leaked secret, a green check over zero tests, or a skipped review past the hooks and CI — those run whether it cooperates or not. The key above is generated at runtime and redacted on output, so the demo never stores a real secret.

Quick start

git clone https://github.com/KbWen/agentic-os.git
./agentic-os/installers/deploy_brain.sh --dry-run /path/to/your-project   # preview, no changes
./agentic-os/installers/deploy_brain.sh /path/to/your-project             # deploy

Then tell your agent: "Read AGENTS.md and follow it. Do not claim completion until /review and /test pass." — followed by /bootstrap and your task.

Your starting pointFirst command
Brand-new project, multi-feature idea/spec-intake
Existing repo adopting Agentic OS/audit (read-only, zero risk)
Single concrete task/bootstrap

Existing files are never overwritten (saved as .acx-incoming sidecars to merge). Windows / no-Python mode, updating, customizing without conflicts, turning the CI floor into a required check, and the full entry-point templates → docs/INSTALL.md.

Rules vs. enforcement

A rules file — Cursor Rules, a plain AGENTS.md — is a prompt the agent can ignore. Agentic OS keeps that discipline (plan before editing, no unasked-for refactors) and adds a layer the agent doesn't control:

Failure modeWhat catches itWhere
A secret committed to historyscan_credentials.py (shown above)pre-commit hook + CI
"Tests pass" with no testsCI runs the real suitepull request
A phase skipped with no evidencevalidate.sh reads the work trailpre-commit (local)

The third row is the part a rules file can't reach: validate.sh parses each task's work log and fails if a required phase was skipped or its evidence is missing. The local pre-commit hook is opt-in and you can --no-verify past it; the three required CI checks (Framework Validation, ShellCheck, Check Markdown Links) are the floor that can't be skipped — they must pass before any PR merges. The security scanning jobs (credential scan, SAST, dependency audit) run on every PR but are not required merge checks unless you add them to branch protection. The Security badge above is this repo running the same credential and SAST gates on its own every push.

FAQ

What is Agentic OS? An open-source governance framework for AI coding agents. It gives agents like Claude Code, Codex, Cursor, Copilot, and Antigravity a repeatable workflow — plan, build, review, test, ship — and enforces gates so they can't skip steps or call a task "done" without verifiable evidence.

How do I stop an AI agent from skipping tests or shipping unverified code? That's the core of it. The credential scan, the test suite, and the phase/evidence validator run in your git hooks and CI — so a leaked secret, a missing test, or a skipped review fails the commit or the build, regardless of what the agent reports. The agent can still cut a corner; it just can't get that corner past the checks it doesn't control.

How is it different from Cursor Rules or a plain AGENTS.md file? A rules file tells the agent how to behave, and the agent can ignore it. Agentic OS adds the workflow and the checks that hold it to that behavior: phase sequencing, evidence requirements, scope discipline, and a single source of truth that remembers decisions across sessions. The skills and discipline are still guidance the agent follows; what's enforced is the part that fails your commit or CI — leaked secrets, missing tests, a skipped phase.

Does it lock me into one AI vendor? No. It's model-agnostic Markdown — native entry points for Claude Code (CLAUDE.md), Codex (AGENTS.md), and Gemini / Antigravity (GEMINI.md), and it works with Cursor, Copilot, and any other LLM agent through the same workflow files.

Is it free? Yes — MIT licensed. Fork it and ship it.

🎯 aiskill88 AI 点评 A 级 2026-06-19

高质量的AI编码代理框架,具有自动化和可扩展性

📚 实用指南(长尾问题)
适合谁
  • 使用 Cursor 编辑器、希望提升 AI 编程效率的开发者
  • 构建多智能体协作系统的 Agent 开发者
最佳实践
  • Agent 任务先做 dry-run 验证工具调用链,再开启自主执行
  • Cursor rules 控制在 80 行内,否则模型上下文成本会显著上升
常见错误
  • API key 直接提交到 git 仓库(请用 .env 并加入 .gitignore)
  • Python 依赖冲突:建议用 venv / uv 隔离环境
部署方案
  • CLI:直接 npm install -g / pip install,命令行调用
  • 云端托管:可放在 Vercel / Railway / Fly.io 等 PaaS 平台
相关搜索
agentic-os 中文教程agentic-os 安装报错怎么办agentic-os Agent 工作流agentic-os 与同类工具对比agentic-os 最佳实践agentic-os 适合谁用

⚡ 核心功能

👥 适合谁
  • 使用 Cursor 编辑器、希望提升 AI 编程效率的开发者
  • 构建多智能体协作系统的 Agent 开发者
⭐ 最佳实践
  • Agent 任务先做 dry-run 验证工具调用链,再开启自主执行
  • Cursor rules 控制在 80 行内,否则模型上下文成本会显著上升
⚠️ 常见错误
  • API key 直接提交到 git 仓库(请用 .env 并加入 .gitignore)
  • Python 依赖冲突:建议用 venv / uv 隔离环境

👥 适合人群

Cursor IDE 日常用户前端 / 后端 / 全栈开发者AI 辅助编程爱好者技术团队负责人

🎯 使用场景

  • 为特定项目或技术栈指定 AI 代码风格和安全规范
  • 在多人协作项目中统一 AI 辅助编程的代码质量标准
  • 快速生成符合团队规范的代码,减少后期返工

⚖️ 优点与不足

✅ 优点
  • +MIT 协议,可免费商用
  • +直接提升 AI 辅助编码质量
  • +零学习成本,立即生效
  • +高度可定制,适配各类项目
⚠️ 不足
  • 仅适用于 Cursor IDE,不支持其他编辑器
  • 规则效果高度依赖模型的理解能力
  • 需定期审查和维护规则内容
⚠️ 使用须知

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

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

📄 License 说明

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

🔗 相关工具推荐

📰 相关 AI 新闻
🍿 AI 圈相关吃瓜
🗺️ 相关解决方案
🧩 你可能还需要
基于当前 Skill 的能力图谱,自动补全的工具组合

❓ 常见问题 FAQ

agentic-os 是一款Python开发的AI辅助工具。开源Cursor规则:Governance framework for AI coding agents. It runs them through a five-step work。⭐20 · Python 主要应用场景包括:自动化AI编码和代理管理。
💡 AI Skill Hub 点评

经综合评估,智能代理框架 在Cursor规则赛道中表现稳健,质量优秀。如果你已有明确的使用需求,可以直接上手体验;如果还在评估阶段,建议对比同类工具后再做决策。

⬇️ 获取与下载
⬇ 下载源码 ZIP

✅ MIT 协议 · 可免费商用 · 直接从 aiskill88 服务器下载,无需跳转 GitHub

📚 深入学习 智能代理框架
查看分步骤安装教程和完整使用指南,快速上手这款工具
🌐 原始信息
原始名称 agentic-os
原始描述 开源Cursor规则:Governance framework for AI coding agents. It runs them through a five-step work。⭐20 · Python
Topics agent-frameworkai-agentpython
GitHub https://github.com/KbWen/agentic-os
License MIT
语言 Python
🔗 原始来源
🐙 GitHub 仓库  https://github.com/KbWen/agentic-os

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

📺 订阅 AI Skill Hub Daily Telegram 频道
每天 8 条精选 AI Skill、MCP、Agent 与自动化工具推送
加入频道 →