harness-bujang 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +87 -0
- package/dist/index.js +906 -0
- package/package.json +57 -0
- package/templates/agents/en/architect-team.md +105 -0
- package/templates/agents/en/code-review-team.md +106 -0
- package/templates/agents/en/consultant.md +106 -0
- package/templates/agents/en/db-guard-team.md +94 -0
- package/templates/agents/en/dev-team.md +143 -0
- package/templates/agents/en/director.md +401 -0
- package/templates/agents/en/doc-sync-team.md +92 -0
- package/templates/agents/en/qa-team.md +100 -0
- package/templates/agents/en/security-team.md +99 -0
- package/templates/agents/en/verifier-team.md +97 -0
- package/templates/agents/ko/architect-team.md +110 -0
- package/templates/agents/ko/code-review-team.md +124 -0
- package/templates/agents/ko/consultant.md +106 -0
- package/templates/agents/ko/db-guard-team.md +116 -0
- package/templates/agents/ko/dev-team.md +144 -0
- package/templates/agents/ko/director.md +401 -0
- package/templates/agents/ko/doc-sync-team.md +114 -0
- package/templates/agents/ko/qa-team.md +122 -0
- package/templates/agents/ko/security-team.md +121 -0
- package/templates/agents/ko/verifier-team.md +119 -0
- package/templates/project-template/app/admin/harness/harness-client.tsx +493 -0
- package/templates/project-template/app/admin/harness/page.tsx +27 -0
- package/templates/project-template/app/api/harness/logs/route.ts +111 -0
- package/templates/project-template/app/api/harness/reply/route.ts +45 -0
- package/templates/project-template/lib/harness-db/index.ts +45 -0
- package/templates/project-template/lib/harness-db/sqlite.ts +128 -0
- package/templates/project-template/lib/harness-db/supabase.ts +64 -0
- package/templates/project-template/lib/harness-db/types.ts +35 -0
- package/templates/project-template/migrations/00010_harness_messages.sql +56 -0
- package/templates/project-template/migrations/00025_harness_insert_admin_only.sql +17 -0
- package/templates/templates/en/AGENT_LEARNING_LOG.seed.md +43 -0
- package/templates/templates/en/CLAUDE.md.harness-section.template +59 -0
- package/templates/templates/ko/AGENT_LEARNING_LOG.seed.md +43 -0
- package/templates/templates/ko/CLAUDE.md.harness-section.template +59 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 bjcho4141 (Field Coding)
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
# `harness-bujang` (CLI)
|
|
2
|
+
|
|
3
|
+
[](https://www.npmjs.com/package/harness-bujang)
|
|
4
|
+
|
|
5
|
+
Install the [Harness-Bujang](https://github.com/bjcho4141/harness-bujang) multi-agent harness into any project — Director, 7 specialist teams, Consultant, plus an optional real-time chat-room UI.
|
|
6
|
+
|
|
7
|
+
## Quick start
|
|
8
|
+
|
|
9
|
+
```bash
|
|
10
|
+
# English agents (default), drop into the current directory
|
|
11
|
+
npx harness-bujang init
|
|
12
|
+
|
|
13
|
+
# Korean agents (full 부장 persona)
|
|
14
|
+
npx harness-bujang init --lang=ko
|
|
15
|
+
|
|
16
|
+
# Into a different folder, skip the chat-room UI
|
|
17
|
+
npx harness-bujang init --target=./my-app --no-template
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
## What it does
|
|
21
|
+
|
|
22
|
+
1. **Scans** the project — framework (Next.js / SvelteKit / Astro / Rails / Django / …), language, DB (Supabase / Prisma / Drizzle / TypeORM), UI lib, payment integration, GitHub user.
|
|
23
|
+
2. **Installs agents** at `.claude/agents/` — 10 markdown files defining `director`, `consultant`, `dev-team`, `architect-team`, `code-review-team`, `security-team`, `db-guard-team`, `qa-team`, `verifier-team`, `doc-sync-team`. Placeholders are filled based on the scan.
|
|
24
|
+
3. **Updates `CLAUDE.md`** — appends the harness-engineering section (or creates `CLAUDE.md` if absent).
|
|
25
|
+
4. **Seeds the learning log** — `docs/AGENT_LEARNING_LOG.md` with the canonical format and the first entry.
|
|
26
|
+
5. **(Optional) Installs the chat-room UI** — Next.js admin page + API routes + Postgres migrations. Skipped automatically if your stack isn't Next.js.
|
|
27
|
+
|
|
28
|
+
## Commands
|
|
29
|
+
|
|
30
|
+
### `init`
|
|
31
|
+
|
|
32
|
+
```
|
|
33
|
+
npx harness-bujang init [options]
|
|
34
|
+
|
|
35
|
+
Options:
|
|
36
|
+
--lang=<ko|en> Agent language (default: en)
|
|
37
|
+
--target=<path> Project root (default: .)
|
|
38
|
+
--framework=<name> Override detected framework
|
|
39
|
+
--db=<name> Override detected DB
|
|
40
|
+
--no-template Skip chat-room UI install
|
|
41
|
+
--no-claude-md Skip CLAUDE.md edit
|
|
42
|
+
--no-learning-log Skip learning log seed
|
|
43
|
+
--yes, -y Overwrite existing files without asking
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
### `status`
|
|
47
|
+
|
|
48
|
+
```
|
|
49
|
+
npx harness-bujang status [path]
|
|
50
|
+
```
|
|
51
|
+
|
|
52
|
+
Verifies the install: agent files, `CLAUDE.md` section, learning log, chat-room UI. Counts unfilled `{{...}}` placeholders.
|
|
53
|
+
|
|
54
|
+
## How the harness works once installed
|
|
55
|
+
|
|
56
|
+
```
|
|
57
|
+
You (the principal)
|
|
58
|
+
↓ "Please add feature X"
|
|
59
|
+
Main Claude (acting as Director)
|
|
60
|
+
├─ INSERT chat: from='director' (plan)
|
|
61
|
+
├─ Agent(dev-team) — implementation
|
|
62
|
+
├─ Agent(code-review-team), Agent(security-team), … in parallel
|
|
63
|
+
├─ Agent(verifier-team) — final gate
|
|
64
|
+
└─ Reply with consolidated report
|
|
65
|
+
```
|
|
66
|
+
|
|
67
|
+
Every step writes to `harness_messages`, visible in the optional admin chat-room UI at `/admin/harness`.
|
|
68
|
+
|
|
69
|
+
## Korean vs English
|
|
70
|
+
|
|
71
|
+
The system was originally built in Korean (full 부장 persona, KakaoTalk-style chat UI). The English variant is a structural mirror — same hierarchy, same audit teams, same 5-level verification — but uses neutral role names (`Director`, `Consultant`).
|
|
72
|
+
|
|
73
|
+
If you want the Korean experience, pass `--lang=ko`. The brand-name is the same; only the agent prose changes.
|
|
74
|
+
|
|
75
|
+
## Building locally
|
|
76
|
+
|
|
77
|
+
```bash
|
|
78
|
+
git clone https://github.com/bjcho4141/harness-bujang.git
|
|
79
|
+
cd harness-bujang/packages/cli
|
|
80
|
+
npm install
|
|
81
|
+
npm run build # → dist/index.js
|
|
82
|
+
node dist/index.js init # test against a sample project
|
|
83
|
+
```
|
|
84
|
+
|
|
85
|
+
## License
|
|
86
|
+
|
|
87
|
+
MIT — see the root `LICENSE`.
|