Aegis

让AI编程不跑偏,守住架构基线,长任务更安全

开源 🏷️完全免费 🔧 仅开源项目,无在线服务,需自行部署 智能体 🍴 复刻 80 🐛 待处理 1 👀 关注 3
访问官网 ↗ GitHub ↗
GitHub 星标 ★ 1424
维护状态 活跃
是否开源 开源
定价模式 🏷️完全免费 开源项目,MIT许可证,完全免费,可自行部署使用。

项目预览

Aegis 项目界面预览图
图片来源:GitHub 官方仓库名片

项目数据

分类智能体
开发团队GanyuanRan
定价模式🏷️完全免费
价格说明开源项目,MIT许可证,完全免费,可自行部署使用。
访问状态🔧 仅开源项目,无在线服务,需自行部署
是否开源是
开源协议MIT
主要语言Python
技术栈/模型agent-skills,ai-agents,ai-coding,architecture-driven-development,awsome-coding-plugin,baseline-first,claude-code,codex,coding-agents,dive,dsh-plugin,evidence-driven,first-principles,opencode,software-architecture,spec-driven-development,spec-kit
GitHub 星标★ 1424
上线时间2026-04-30 00:00:00
代码更新2026-11-04
仓库体积5.4 MB
本站数据更新2026-11-09
维护状态活跃
收录时间2026-08-09
浏览次数3

项目介绍

Aegis 是一个让 AI 编程智能体具备架构意识的框架,核心解决长任务中 AI 代码生成偏离既定架构、产生不可控漂移的问题。它采用基线优先策略,要求先定义架构基线,再让智能体基于证据验证每一步改动,并通过漂移检查持续监控代码与架构的一致性。项目提供技能库和插件,支持与 Claude Code、Codex 等主流 AI 编程工具集成,帮助开发者在复杂项目中保持代码质量与架构合规。其核心能力包括:架构基线管理、证据驱动的变更验证、实时漂移检测,以及长任务安全机制,旨在让 AI 在大型代码库中更可靠地协作。

Star 增长趋势

本站每日记录该项目 GitHub 星标变化,观测越久曲线越完整

数据来源:GitHub API 逐日快照 · 收录于 2026-08-09 · 当前星标 ★ 1424

使用教程

ℹ 本教程由 AI 依据该项目 README 整理,个别步骤可能需要按你的环境微调。

难度:入门 约 10 分钟 部署方式:命令行工具 7 步

环境要求

  • 一个已安装的 AI 编程宿主(如 Claude Code、Codex 或官方 DeepSeek Harness `dsh`)
  • 本机 Python 环境(需运行 scripts/aegis-doctor.py)
  • git,且网络可访问 GitHub
  • 已定位到 Aegis 方法包(method-pack)根目录

安装与启动步骤

  1. 1确认宿主环境

    先确认自己用的是哪个 AI 编程宿主(Claude Code、Codex 或 dsh),并确保本机有 Python 和 git。

  2. 2交给智能体安装

    把 README 的 Quick Install 提示词原样发给你的 AI 编程智能体,让它识别宿主并按对应指南全局安装。

    Read https://github.com/GanyuanRan/Aegis, identify my current AI coding host, and install Aegis globally using the correct host guide. If the host is the official DeepSeek Harness (`dsh`), treat global/minimal installation as native profile-plugin installation with `dsh plugin --profile <profile> add "git+https://github.com/GanyuanRan/Aegis.git"`; do not silently substitute the direct-child compatibility path unless the plugin manager is unavailable and I explicitly approve compatibility mode. Restart or reload the host if needed, then run complete-install verification from the installed Aegis method-pack root. Do not run the doctor command from the target project directory. First locate `<aegis-method-pack-root>`, then run `cd <aegis-method-pack-root> && python scripts/aegis-doctor.py --write-config --json`. Treat the install as complete only if the JSON includes `"ok": true`, `"workspaceSupport": "available"`, and `"configStatus": "configured"`; if the host uses a separate skill discovery directory, also verify it with `--discovery-root <path>`; if the host guide declares a skill directory name prefix, also pass `--discovery-name-prefix <prefix>`. Also complete the selected host
  3. 3dsh 宿主原生安装

    若宿主是官方 DeepSeek Harness,用插件管理器做原生 profile-plugin 安装,而非兼容路径。

    dsh plugin --profile default add "git+https://github.com/GanyuanRan/Aegis.git"
  4. 4进入方法包根目录

    先定位 aegis-method-pack-root,再切换进去;绝对不要在任何目标项目目录里执行 doctor。

    cd /your/path/to/aegis-method-pack
  5. 5运行 doctor 校验

    在方法包根目录执行 doctor 并写出配置,以 JSON 输出结果判断安装是否完整。

    cd /your/path/to/aegis-method-pack && python scripts/aegis-doctor.py --write-config --json
  6. 6补充发现目录校验

    宿主若使用独立的 skill 发现目录,或指南声明了目录名前缀,追加对应参数再校验一次。

    cd /your/path/to/aegis-method-pack && python scripts/aegis-doctor.py --write-config --json --discovery-root /your/path/to/skills --discovery-name-prefix your-prefix
  7. 7重启并激活

    重启或重新加载宿主,并按所选宿主指南完成原生激活与自动入口检查,仅文件被发现不算完成。

关键配置

配置项必填说明示例
--write-config否让 doctor 在检查的同时写出配置文件--write-config
--discovery-root否宿主使用独立 skill 发现目录时,指定该目录路径校验--discovery-root /your/path/to/skills
--discovery-name-prefix否宿主指南声明了 skill 目录名前缀时,传入该前缀--discovery-name-prefix your-prefix

如何确认成功

doctor 的 JSON 输出同时包含 "ok": true、"workspaceSupport": "available"、"configStatus": "configured",才算安装完整。

常见问题

Q:doctor 可以在我的目标项目目录里运行吗?

A:不可以。README 明确要求先定位 aegis-method-pack-root,在该方法包根目录下执行,不要在目标项目目录里跑 doctor。

Q:什么条件下才算安装完成?

A:doctor 的 JSON 需同时含 "ok": true、"workspaceSupport": "available"、"configStatus": "configured",且完成宿主指南的原生激活与自动入口检查。

Q:宿主有独立 skill 发现目录怎么办?

A:在 doctor 命令后追加 --discovery-root <path> 指定该目录;若指南还声明了目录名前缀,再加 --discovery-name-prefix <prefix>。

Q:dsh 宿主能否直接用兼容路径安装?

A:默认不行。应走原生 profile-plugin 安装;只有插件管理器不可用且你明确同意兼容模式时,才使用 direct-child 兼容路径。

注意事项

  • 不要静默把 dsh 的原生安装替换成 direct-child 兼容路径。
  • 仅文件被发现或通用 doctor 结果通过还不够,需完成宿主的激活与自动入口检查。
  • 命令中的 default 为 profile 示例名,请替换为你实际使用的 profile。
  • 安装后按需重启或重新加载宿主。

核心亮点

  • 首创基线优先机制,强制AI先理解架构再动手,从源头减少乱改代码
  • 证据验证+漂移检查双保险,每次改动都有据可查,偏离架构立即告警
  • 专为长任务设计,避免AI在长时间生成中逐渐遗忘架构约束

不足之处

  • 项目处于早期阶段,文档和社区生态尚不完善
  • 依赖外部AI编程工具(如Claude Code),自身不提供独立编码能力

适用场景

  • 大型代码库中引入AI辅助开发,需保证架构一致性
  • 团队使用AI编程工具进行长时间自动化重构或功能迭代
  • 对代码质量有严格合规要求的企业级项目

替代项目

Aider、Continue、Cody

上一篇:pi-extensions

下一篇:loopx

同类项目推荐

Micro-Agent 开源

轻量垂域 Agent 框架,快速搭建业务智能体

A lightweight AI agent framework for vertical domain applications | 面向垂域应用的轻···

★ 100 2026-08-09
inkos 开源

小说剧本游戏IP,一句话全包了

Story Creation AI Agent for novel, scripts, translation, interactive games, and IP c···

★ 11078 2026-08-09
PPTAgent 开源

输入主题,自动生成专业级 PPT,省时省力。

An Agentic Framework for Reflective PowerPoint Generation

★ 5229 2026-08-09
agentchattr 开源

把多个 AI 编码助手拉进同一个群聊,互相 @ 着把活干完

Free, local chat where AI coding agents can tag each other, talk, and coordinate wit···

★ 1588 2026-11-02
Beledarians_LM_Studio_Toolbox 开源

给 LM Studio 装上手脚,让本地 AI 帮你写代码、查资料、管文件。

This project is a plugin for LM Studio that provides a rich set of tools to a large ···

★ 129 2026-08-09
agentpet 开源

养一只桌面宠物,让 AI 编码更有趣,还能冲榜

A desktop pet for macOS & Windows that monitors your AI coding agents (Claude Code, ···

★ 403 2026-08-09
pro-workflow 开源

骂过一次就记住,AI 越用越懂你的习惯。

Claude Code learns from your corrections: self-correcting memory that compounds over···

★ 2947 2026-08-09
forksilly.doc 开源

手机上无缝玩转酒馆角色卡,还能生成AI图像

Documents repo of ForkSilly. ForkSilly:兼容sillytavern(酒馆)角色卡、世界书、正则、···

★ 175 2026-08-09
deer-flow 开源

交给 AI 的大项目,能干几天几夜不撒手

An open-source long-horizon SuperAgent harness that researches, codes, and creates. ···

★ 85175 2026-08-09