Kiểm tra máy của bạnCheck your machine
Harness Kit chỉ cần 2 thứ. Không cần npm install, không cần pip install — chỉ Python và git có sẵn trên máy.
Harness Kit needs exactly 2 things. No npm install, no pip install — just Python and git already on your machine.
py --version (Windows) hoặc python3 --version. Tải tại python.org
Check: py --version (Windows) or python3 --version. Download at python.org
git --version. Tải tại git-scm.com
Check: git --version. Download at git-scm.com
Chạy lệnh cài vào project của bạnRun the install command in your project
Mở terminal tại thư mục gốc project rồi chạy lệnh bên dưới. Script tự tải và tạo file — bạn không cần clone hay tải gì thêm. Open a terminal at your project root and run the command below. The script downloads and creates files automatically — no manual cloning needed.
irm https://raw.githubusercontent.com/nguyenanh92/harness-kit/main/install.ps1 | iex
--full sau lệnh. Mặc định chỉ tạo governance files — đủ dùng cho mọi ngôn ngữ/stack.
Want the full Python runtime (harness loop, sub-agents, hooks)? Pass --full as an argument. The default creates governance files only — works with any language or stack.
Các file được tạo trong projectFiles created in your project
Sau khi cài xong, bạn có 6 file ở thư mục gốc. Đây là nền tảng của harness — AI agent sẽ đọc và ghi vào những file này. After install, you'll have 6 files at the project root. These are the harness foundation — your AI agent reads and writes to them.
Prompt AI hoặc dùng hk.py CLIPrompt your AI or use hk.py CLI
Harness Kit hỗ trợ cả 2 luồng. Chọn cái nào phù hợp với workflow của bạn — hoặc dùng cả 2. Harness Kit supports both flows. Pick what fits your workflow — or use both.
Chạy lệnh này trong thư mục project để mở AI tool, rồi gõ prompt vào chat. Agent tự đọc AGENTS.md, tự biết feature nào đang active.
Run this in the project directory to open your AI tool, then type a prompt. The agent reads AGENTS.md automatically and knows which feature is active.
claude # Claude Code
cursor . # Cursor
codex # OpenAI Codex
Dùng khi bạn muốn quản lý hàng đợi feature từ shell, CI step, hay script mà không cần mở chat session. Chạy từ bất kỳ thư mục con nào. Use when you want to manage the feature queue from a shell, CI step, or script without opening a chat session. Runs from any subdirectory.
py hk.py feature "Settings screen" py hk.py start F-001 py hk.py status py hk.py done py hk.py audit
Luồng làm việc từ đầu đến cuốiEnd-to-end workflow
Ví dụ đầy đủ với một feature thực tế — từ lúc thêm vào đến lúc mark done. A complete example with a real feature — from adding it to marking it done.
py hk.py feature "User authentication" --desc "Login, register, logout"
py hk.py start F-001
claude # Claude Code
cursor . # Cursor
codex # OpenAI Codex
py hk.py done
init.sh / init.ps1 trước. Nếu pass mới mark done. Chuyển feature tiếp theo tự động.Runs init.sh / init.ps1 first. Marks done only if verification passes. Moves to the next feature automatically.Kiểm tra điểm harness bất kỳ lúc nàoAudit the harness score anytime
hk.py audit chấm điểm harness của bạn theo 5 phân hệ (0–100). Điểm cao = agent sẽ làm việc ổn định và nhất quán hơn.
hk.py audit scores your harness across 5 subsystems (0–100). Higher score = the agent works more reliably and consistently.
py hk.py status py hk.py audit py hk.py audit --html report.html