harness-bujang 0.5.2 β 0.5.4
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/README.md +55 -8
- package/dist/index.js +25 -16
- package/package.json +1 -1
- package/templates/agents/en/director.md +119 -476
- package/templates/agents/ko/director.md +108 -465
- package/templates/project-template/app/api/harness/logs/route.ts +2 -2
- package/templates/project-template/app/api/harness/reply/route.ts +1 -1
- package/templates/project-template/lib/harness-db/index.ts +24 -11
- package/templates/templates/en/CLAUDE.md.harness-section.template +94 -38
- package/templates/templates/ko/CLAUDE.md.harness-section.template +87 -31
package/README.md
CHANGED
|
@@ -36,22 +36,69 @@ npx harness-bujang update
|
|
|
36
36
|
> you've added to existing agent files. `CLAUDE.md` and
|
|
37
37
|
> `docs/AGENT_LEARNING_LOG.md` are never touched by any of the three commands.
|
|
38
38
|
|
|
39
|
-
###
|
|
39
|
+
### π¬ Open the chat-room β two ways (natural language recommended)
|
|
40
40
|
|
|
41
|
+
After install, just **say it in plain language** inside Claude Code β the Director will spawn the viewer in the background:
|
|
42
|
+
|
|
43
|
+
```
|
|
44
|
+
"Director, open the chat room"
|
|
45
|
+
"λΆμ₯λ ν‘λ°© μ΄μ΄μ£ΌμΈμ"
|
|
46
|
+
"open chat" / "show the chat"
|
|
47
|
+
```
|
|
48
|
+
|
|
49
|
+
β The Director auto-runs `npx harness-bujang chat` (background) β browser opens β http://localhost:7777 KakaoTalk-style room.
|
|
50
|
+
|
|
51
|
+
To close, also natural language:
|
|
52
|
+
```
|
|
53
|
+
"close the chat room"
|
|
54
|
+
"ν‘λ°© λ«μμ€"
|
|
55
|
+
```
|
|
56
|
+
|
|
57
|
+
Manual command (works on any stack β Next.js, Rails, Django, Express, β¦):
|
|
41
58
|
```bash
|
|
42
|
-
# Standalone viewer (works on Next.js, Rails, Django, Express, β¦) β no setup
|
|
43
59
|
npx harness-bujang chat
|
|
44
|
-
# β opens http://localhost:7777 in your browser
|
|
45
60
|
```
|
|
46
61
|
|
|
47
|
-
|
|
48
|
-
project that uses the SQLite chat backend (the default). For projects that have
|
|
49
|
-
not posted any messages yet, pass `--create` to bootstrap an empty DB and seed:
|
|
62
|
+
β Reads `.harness/chat.db` directly. From 0.5.3, the DB is auto-created on first run if missing.
|
|
50
63
|
|
|
51
|
-
|
|
52
|
-
|
|
64
|
+
### π¬ How to use it β call by name
|
|
65
|
+
|
|
66
|
+
After install, the harness runs **inside Claude Code** by addressing personas:
|
|
67
|
+
|
|
68
|
+
```
|
|
69
|
+
"Director, please add a refund API"
|
|
70
|
+
"λΆμ₯λ, κ²°μ νλΆ API λ§λ€μ΄μ£ΌμΈμ"
|
|
71
|
+
β Director persona
|
|
72
|
+
ββ Pre-confirm: "Plan to invoke dev-team + security-team + db-guard. Proceed?"
|
|
73
|
+
ββ Principal OK β parallel team dispatch (per mapping table)
|
|
74
|
+
ββ Each step β chat-room INSERT (live in viewer)
|
|
75
|
+
ββ Consolidated principal report
|
|
76
|
+
|
|
77
|
+
"Cofounder, is our BM viable?"
|
|
78
|
+
"곡λλν, μ°λ¦¬ BM μ΄λλ‘ κ°λ λ κΉ?"
|
|
79
|
+
β Cofounder persona (peer, not subordinate)
|
|
80
|
+
ββ Equal debate + push-back
|
|
81
|
+
ββ Calls consultant / research-team / analysis-team if data needed
|
|
82
|
+
ββ Pushes the decision
|
|
53
83
|
```
|
|
54
84
|
|
|
85
|
+
**Calling rules**:
|
|
86
|
+
|
|
87
|
+
| Trigger | What happens |
|
|
88
|
+
|---------|--------------|
|
|
89
|
+
| **"Director, ..."** / "λΆμ₯λ, ..." | Director persona β pre-confirm, mapping, chat INSERT, consolidated report |
|
|
90
|
+
| **"Cofounder, ..."** / "곡λλν, ..." | Cofounder persona β peer debate / strategy / decision push |
|
|
91
|
+
| **plain "..."** (no name) | Plain Claude β knows harness rules but skips the full workflow |
|
|
92
|
+
| **"dev-team, ..."** directly | β Won't work β the 16 teams are dispatched **by** Director / Cofounder, not addressed directly by the principal |
|
|
93
|
+
|
|
94
|
+
> π‘ **For the full workflow (pre-confirm + mapping + chat + consolidated report), name the persona.** For quick one-offs, plain Claude is fine.
|
|
95
|
+
|
|
96
|
+
Natural-language triggers:
|
|
97
|
+
- Open chat: `"λΆμ₯λ ν‘λ°© μ΄μ΄μ£ΌμΈμ"` / `"open the chat room"`
|
|
98
|
+
- Code review: `"Director, please review the PR"` / `"λΆμ₯λ PR 리뷰 λΆνλ립λλ€"`
|
|
99
|
+
- Onboard team: `"Director, hire a marketing team"` / `"λΆμ₯λ λ§μΌν
ν μ±μ©ν΄μ£ΌμΈμ"`
|
|
100
|
+
- Strategy: `"Cofounder, what do you think?"` / `"곡λλν μ견 μ’"`
|
|
101
|
+
|
|
55
102
|
## What it does
|
|
56
103
|
|
|
57
104
|
1. **Scans** the project β framework (Next.js / SvelteKit / Astro / Rails / Django / β¦), language, DB (Supabase / Prisma / Drizzle / TypeORM), UI lib, payment integration, GitHub user.
|
package/dist/index.js
CHANGED
|
@@ -400,9 +400,30 @@ async function runInit(args) {
|
|
|
400
400
|
if (scan.framework.startsWith("Next.js") && opts.installTemplate) {
|
|
401
401
|
console.log(` ${c.cyan("3.")} Watch ${c.bold(context.ADMIN_HARNESS_ROUTE)} for live updates (after env setup)`);
|
|
402
402
|
} else {
|
|
403
|
-
console.log(` ${c.cyan("3.")} Watch the chat room: ${c.bold("npx harness-bujang chat
|
|
403
|
+
console.log(` ${c.cyan("3.")} Watch the chat room: ${c.bold("npx harness-bujang chat")} ${c.dim("\u2192 http://localhost:7777")}`);
|
|
404
404
|
}
|
|
405
405
|
console.log();
|
|
406
|
+
printRestartReminder(opts.lang);
|
|
407
|
+
}
|
|
408
|
+
function printRestartReminder(lang) {
|
|
409
|
+
const ko = lang === "ko";
|
|
410
|
+
const line = (s) => ` ${c.dim("\u2502")} ${s}`;
|
|
411
|
+
const top = ` ${c.dim("\u256D" + "\u2500".repeat(64) + "\u256E")}`;
|
|
412
|
+
const bot = ` ${c.dim("\u2570" + "\u2500".repeat(64) + "\u256F")}`;
|
|
413
|
+
console.log(top);
|
|
414
|
+
console.log(line(ko ? c.bold(c.yellow("\u26A0\uFE0F Claude Code \uAC00 \uC774\uBBF8 \uB5A0 \uC788\uB2E4\uBA74 \uC5D0\uC774\uC804\uD2B8 \uC7AC\uB85C\uB4DC \uD544\uC694!")) : c.bold(c.yellow("\u26A0\uFE0F Claude Code already running? Reload agents!"))));
|
|
415
|
+
console.log(line(""));
|
|
416
|
+
console.log(line(ko ? "\uC5D0\uC774\uC804\uD2B8 \uB4F1\uB85D\uC740 \uC138\uC158 \uC2DC\uC791 \uC2DC\uC810\uC5D0\uB9CC \uC77C\uC5B4\uB098\uBBC0\uB85C \uC0C8\uB85C \uAE50 \uD300\uC774" : "Agents are registered at session start only, so the new teams"));
|
|
417
|
+
console.log(line(ko ? "\uBC14\uB85C \uC778\uC2DD\uB418\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4. \uB2E4\uC74C \uC911 \uD55C \uAC00\uC9C0\uB97C \uD574\uC8FC\uC138\uC694:" : "won't be visible yet. Pick one:"));
|
|
418
|
+
console.log(line(""));
|
|
419
|
+
console.log(line(` ${c.green("A.")} ${c.bold(ko ? "Claude Code \uC548\uC5D0\uC11C: " : "Inside Claude Code: ")}${c.cyan("/agents")}`));
|
|
420
|
+
console.log(line(` ${c.dim(ko ? "\u2192 \uC5D0\uC774\uC804\uD2B8 \uBA54\uB274\uC5D0\uC11C \uC7AC\uB85C\uB4DC" : "\u2192 open the agent menu / refresh")}`));
|
|
421
|
+
console.log(line(""));
|
|
422
|
+
console.log(line(` ${c.green("B.")} ${c.bold(ko ? "\uC548\uB418\uBA74 Claude Code \uC644\uC804 \uC885\uB8CC \u2192 \uAC19\uC740 \uD3F4\uB354\uC5D0\uC11C \uB2E4\uC2DC \uC2DC\uC791" : "Or fully restart Claude Code in this folder")}`));
|
|
423
|
+
console.log(line(""));
|
|
424
|
+
console.log(line(c.dim(ko ? "/clear \uB294 \uCEE8\uD14D\uC2A4\uD2B8\uB9CC \uBE44\uC6C1\uB2C8\uB2E4 \u2014 \uC5D0\uC774\uC804\uD2B8 \uC7AC\uB4F1\uB85D \uC548 \uB428" : "/clear only wipes context \u2014 it does NOT re-register agents")));
|
|
425
|
+
console.log(bot);
|
|
426
|
+
console.log();
|
|
406
427
|
}
|
|
407
428
|
async function promptInteractive(opts, scan) {
|
|
408
429
|
const lang = await select({
|
|
@@ -933,19 +954,6 @@ async function runChat(args) {
|
|
|
933
954
|
}
|
|
934
955
|
const dbPath = resolveDbPath(opts.target);
|
|
935
956
|
if (!fs5.existsSync(dbPath)) {
|
|
936
|
-
if (!opts.create) {
|
|
937
|
-
console.log();
|
|
938
|
-
console.log(c4.red(`\u2716 Chat DB not found at ${c4.bold(dbPath)}`));
|
|
939
|
-
console.log();
|
|
940
|
-
console.log(" This usually means the harness has not posted any messages yet,");
|
|
941
|
-
console.log(" or the project does not use the SQLite chat backend.");
|
|
942
|
-
console.log();
|
|
943
|
-
console.log(" Run with " + c4.bold("--create") + " to create an empty DB and schema:");
|
|
944
|
-
console.log(" " + c4.cyan("bujang chat --create"));
|
|
945
|
-
console.log();
|
|
946
|
-
process.exitCode = 1;
|
|
947
|
-
return;
|
|
948
|
-
}
|
|
949
957
|
fs5.mkdirSync(path5.dirname(dbPath), { recursive: true });
|
|
950
958
|
await runSql(dbPath, SCHEMA_SQL);
|
|
951
959
|
const seedId = `seed-${Date.now()}`;
|
|
@@ -954,7 +962,7 @@ async function runChat(args) {
|
|
|
954
962
|
`INSERT INTO harness_messages (id, "from", "to", type, message, severity)
|
|
955
963
|
VALUES ('${seedId}', '\uBD80\uC7A5', '\uB300\uD45C\uB2D8', 'info', '\uD1A1\uBC29\uC774 \uC0DD\uC131\uB418\uC5C8\uC2B5\uB2C8\uB2E4. \uCCAB \uBA85\uB839\uC744 \uB0B4\uB824\uC8FC\uC138\uC694.', 'info');`
|
|
956
964
|
);
|
|
957
|
-
console.log(c4.dim(` created empty DB
|
|
965
|
+
console.log(c4.dim(` created empty chat DB at ${dbPath}`));
|
|
958
966
|
} else {
|
|
959
967
|
await runSql(dbPath, SCHEMA_SQL);
|
|
960
968
|
}
|
|
@@ -1950,6 +1958,7 @@ async function runUpdate(args) {
|
|
|
1950
1958
|
console.log(" To overwrite everything (e.g. for a clean reset), use instead:");
|
|
1951
1959
|
console.log(` ${c6.cyan("npx harness-bujang init --yes")}`);
|
|
1952
1960
|
console.log();
|
|
1961
|
+
printRestartReminder(opts.lang);
|
|
1953
1962
|
}
|
|
1954
1963
|
async function resolveAssetPaths2() {
|
|
1955
1964
|
const packaged = path7.resolve(__dirname3, "..", "templates");
|
|
@@ -2162,7 +2171,7 @@ async function main() {
|
|
|
2162
2171
|
break;
|
|
2163
2172
|
case "--version":
|
|
2164
2173
|
case "-v":
|
|
2165
|
-
console.log("0.5.
|
|
2174
|
+
console.log("0.5.4");
|
|
2166
2175
|
break;
|
|
2167
2176
|
case "--help":
|
|
2168
2177
|
case "-h":
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "harness-bujang",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.4",
|
|
4
4
|
"description": "Install the Harness-Bujang multi-agent harness into any project β Director, 7 specialist teams, real-time chat-room UI. Korean and English personas. Works with Claude Code, Cursor, Cline, Aider, or any tool that reads .claude/agents/.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"claude-code",
|