
daliagents-com/agentsge-1 是从 https://github.com/daliagents-com/agentsge-1. 导入的 MCP 服务器候选
概览
daliagents-com/agentsge-1 是从 https://github.com/daliagents-com/agentsge-1. 导入的 MCP 服务器候选
概述(AI 翻译)
让任何项目代理都准备好,目录为.agents/。
项目智能属于项目,而不是代理。唯一的真相来源——每个AI工具都会读取它。
快速启动
然后在项目中打开你的AI代理(Claude Code、Cursor、Codex、Gemini——任意)。它读取AGENTS.md,扫描代码库,问几个尖锐的问题,并用项目知识填充.agents/。
发生了什么
agentsge init扫描项目,检测栈,创建带有配置和捕获规则的.agents/,生成带有引导提示的AGENTS.md- 您的AI代理读取
AGENTS.md并按照入职步骤操作:
- 快速扫描→更新
config.yaml,编写架构概述 - 问0-3个关于它在代码中找不到**的东西的问题
- 将答案保存为知识文件
- 用干净的会话开始指针替换
AGENTS.md
- 从现在起,
_capture.md规则负责持续的知识捕获
命令
.agents/ 结构
工作原理
每个AI代理都能读取Markdown文件。无需格式转换——只有MCP配置需要代理专用的JSON输出。
知识系统
那_capture。
本页由 AI 翻译,技术细节请以原文为准。
README
以下为原文 README 节选,完整内容请查看原文。
agentsge
Make any project agent-ready with .agents/ directory.
Project intelligence belongs to the project, not the agent. One source of truth — every AI tool reads it.
Quick Start
npx agentsge init
Then open your AI agent (Claude Code, Cursor, Codex, Gemini — any) in the project. It reads AGENTS.md, scans the codebase, asks a few sharp questions, and fills .agents/ with project knowledge.
What happens
agentsge initscans the project, detects stack, creates.agents/with config and capture rules, generatesAGENTS.mdwith onboarding prompt- Your AI agent reads
AGENTS.mdand follows the onboarding steps:- Quick scan → updates
config.yaml, writes architecture overview - Asks 0-3 questions about things it can’t find in code
- Saves answers as knowledge files
- Replaces
AGENTS.mdwith a clean session-start pointer
- Quick scan → updates
- From now on,
_capture.mdrule handles ongoing knowledge capture
Commands
agents init # Initialize .agents/, detect stack, install hooks
agents init --force # Overwrite existing .agents/
agents sync # Re-sync entrypoints (with knowledge digest) and MCP configs
agents status # Show project info, knowledge stats, ref warnings
agents capture list # Show pending knowledge items
agents capture accept # Accept pending item into knowledge
agents capture accept --all # Accept all pending items
agents capture reject # Delete a pending item
agents capture context # Output knowledge digest (for debugging)
agents capture context --compact # Short digest (10-15 lines)
agents hooks install # Install capture hooks for detected platforms
agents hooks install --agent claude # Install for specific platform
agents add rule # Add a new rule
agents add skill # Add a new skill
agents add mcp # Add an MCP server (auto-syncs configs)
agents validate # Validate .agents/ structure and schemas
.agents/ Structure
.agents/
config.yaml # Project name, description, stack
rules/ # Rules for agents (all mandatory)
_capture.md # Built-in: ongoing knowledge capture
skills/ # Reusable multi-step workflows
mcp/ # MCP server definitions
config.yaml # -> synced to .claude/, .cursor/, .codex/
knowledge/ # Accumulated project knowledge
_index.md # Index — always loaded into agent context
architecture/ # Decisions and trade-offs (WHY)
patterns/ # Repeating codebase patterns
lessons/ # Bug investigations, edge cases
conventions/ # "We do it this way" — not in config files
dependencies/ # Why X was chosen, known issues
How It Works
AGENTS.md -> points to .agents/
.agents/ -> single source of truth
安装
npx agentsge init