just-harness là lớp vận hành cho Codex agent trên mỗi project code. Nó quản lý task state, kiểm tra scope, ghi evidence, và duy trì project truth qua nhiều phiên làm việc — thay vì dựa vào prompt context thuần tuý.
Mỗi lần gọi agent là một phiên trắng. Agent không nhớ slice nào đang làm, lần trước fail vì gì, file nào đã sửa, test nào pass.
Harness giải quyết bằng state machine trên shell script + file JSON:
- Task state sống trên disk, không phải trong prompt
- Gate runner kiểm tra scope trước khi cho phép code chạm file ngoài phạm vi
- Evidence recorder buộc mọi kết luận phải kèm output thật (test log, lint result, build artifact)
- Note system giữ project truth thay đổi nhanh (scope drift, friction, dev-setup)
Trong repo đích:
bash <(curl -fsSL https://raw.githubusercontent.com/NullNyx/just-harness/main/scripts/install-harness.sh) --merge --yesHoặc clone về rồi chạy:
git clone git@github.com:NullNyx/just-harness.git /tmp/just-harness
cd /target/repo
bash /tmp/just-harness/scripts/install-harness.sh --merge --yesSau cài đặt, chạy setup-matt-pocock-skills một lần để cấu hình issue tracker,
triage labels, và domain docs layout (xem docs/matt-pocock-skills.md).
intent → intake → profile → context → implement → agent gate → CI gate → record → next task
Mỗi vòng lặp task tạo hai output:
- Product delta: code, config, docs, test
- Harness delta: rule mới, template, evidence, decision, friction ghi nhận
| Layer | Nội dung | Sống ở |
|---|---|---|
| Harness core | gate runner, scope check, evidence recorder, note system | scripts/, state/ |
| Workflow config | task lanes, profile, context rules, test matrix, skill mapping | docs/ |
| Agent conduit | rules + skill triggers cho Codex | AGENTS.md |
| Glossary + decisions | thuật ngữ chuẩn, ADR | CONTEXT.md, docs/decisions/ |
| Notes | project truth thay đổi nhanh, friction, scope drift | docs/notes/ |
# 1. Phân loại task
→ docs/FEATURE_INTAKE.md
# 2. Chạy scope check
scripts/run-gate.sh --profile backend --allowlist docs/templates/slice-allowlist.json
# 3. Ghi evidence sau mỗi lệnh
scripts/record-evidence.sh "unit test" pytest -x
# 4. Ghi note nếu truth thay đổi
scripts/record-note.sh scope-drift backend "Job openings model expanded"Xem docs/workflow-skills.md để map phase sang skill cụ thể.
- Gate trước, tin sau — scope check chạy trước khi build/test
- Evidence thật mới tính done — output từ lệnh, không phải lời model
- CI gate thắng agent gate — build/log CI là truth cuối
- Friction lặp → thành rule — sửa harness trước, code sau
| File | Mục đích |
|---|---|
docs/HARNESS.md |
Thiết kế và mô hình tư duy |
docs/FEATURE_INTAKE.md |
Phân loại task theo lane/type |
docs/CONTEXT_RULES.md |
Thứ tự đọc context |
docs/TEST_MATRIX.md |
Proof requirements per area |
docs/workflow-skills.md |
Phase → skill mapping |
docs/matt-pocock-skills.md |
Tích hợp Skills For Real Engineers |
docs/release-process.md |
Quy trình release |
MIT — xem LICENSE.
Xem CONTRIBUTING.md. Bug/feature → issue templates có sẵn.