🔧 Công cụ lập trình•Mã nguồn mở•Đang hoạt động
Agentfile
CLI đồng bộ agent instruction files (CLAUDE.md, AGENTS.md, .cursor/rules) từ một contract.yaml duy nhất, output đúng format cho từng AI tool.
#agentfile
Danh mục
🔧 Công cụ lập trình
Giá
Mã nguồn mở
GitHub Stars
⭐ 11
Ngôn ngữ
TypeScript
License
MIT
Ngày thêm
2026-04-02
Tóm tắt từ README GitHub
Find what is wrong with the AI agent configuration your repository already has.
Your team uses Claude Code, Copilot, Cursor, Codex — each with its own instruction file, in its own format, in its own place. Nobody reads all of them at once, so they drift, contradict each other, and quietly cost context in every session.
reads them as they are and tells you what is wrong.
No setup. No file to adopt first. Nothing written to disk. Nothing it finds is ever executed — hooks, skills, commands and MCP configuration are read as text, and a clean result says "no pattern matched", never "this is safe".
---
The problem
The same rule, maintained in four places, drifting apart:
Symlinks solve the copying. They do not tell you that two of these disagree about the package manager, that a hook points at a script nobody committed, that a server will silently fail to load, or that 10,000 tokens load into every session before anyone types a word.
---
What it does
Nine questions, one command each. Run them in this order the first time:
Then, once it is part of the build:
Everything is deterministic: no model, no network, same tree in, same findings out. Every finding carries a stable code,
Xem thêm từ README.mdThu gọn README.md
Đánh giá chi tiết
Tổng quan
Agentfile giải quyết vấn đề: khi dùng nhiều AI coding tools (Claude Code, Cursor, Copilot, Codex, Windsurf), mỗi tool cần file instruction riêng (CLAUDE.md, .cursor/rules, copilot-instructions.md, AGENTS.md). Agentfile cho phép định nghĩa một contract.yaml duy nhất, rồi chạy npx @agentfile/cli sync để generate đúng format cho từng tool.
Tính năng chính
- Một contract.yaml chứa project rules, coding conventions, skills
- Sync ra CLAUDE.md, .cursor/rules/*.mdc, copilot-instructions.md, AGENTS.md tự động
- Skills: định nghĩa workflow một lần, mỗi tool nhận đúng format native
- Watch mode:
npx @agentfile/cli watchtự sync khi contract thay đổi - CI workflow: validate contract trên mỗi push
- File .ai-agents cho phép mỗi developer chọn tool riêng, generated files gitignore
Stack kỹ thuật
TypeScript, cài qua npx. MIT license.
Điểm mạnh
- Giải quyết pain point thực: maintain 4-5 instruction files khác nhau cho cùng project
- Zero config per tool: thêm agent mới chỉ cần 2 files (config.yaml + template.md)
Hạn chế
- 8 stars, repo rất mới (03/2026). Community chưa có.
- Chỉ hữu ích nếu team dùng nhiều AI tools khác nhau
Phù hợp khi nào
Team dùng mix Claude Code, Cursor, Copilot, Windsurf và muốn giữ instruction files đồng bộ từ một nguồn duy nhất.