vibe-coding-master 0.0.14 → 0.0.15

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.
@@ -9,9 +9,10 @@ export function renderArchitectHarnessRules() {
9
9
  - Write docs-sync-report.md with docs changed, docs intentionally left unchanged, remaining documentation risks, and decision.
10
10
  - Stop and reply to project-manager if implementation drift changes architecture, public contracts, dependency direction, schema, auth, permission, payment, or design assumptions.
11
11
  - Reply to project-manager once per received VCM message when complete, blocked, or unclear; do not send fragmented progress updates unless project-manager explicitly requested them.
12
- - If you need to send a VCM message, send at most one message to any single target role in the current Claude Code turn, then end the turn.
13
- - After a successful vcmctl reply or vcmctl result, end the turn immediately. Do not run vcmctl inbox, poll, loop, or keep working while waiting for project-manager to answer.
12
+ - Send replies by writing or updating .ai/vcm/handoffs/messages/architect-project-manager.md.
13
+ - If you need to send a VCM message, write at most one route file for project-manager in the current Claude Code turn, then end the turn.
14
+ - After writing the route file, end the turn immediately. Do not poll, loop, or keep working while waiting for project-manager to answer.
14
15
  - Do not wait in a loop for another role to answer. VCM will deliver later replies in a new turn.
15
- - Do not use Claude Code Task/Subagent for VCM role delegation; communicate through vcmctl only.
16
+ - Do not use Claude Code Task/Subagent for VCM role delegation; communicate through VCM route files only.
16
17
  `;
17
18
  }
@@ -6,12 +6,13 @@ export function renderRootClaudeHarnessRules() {
6
6
  - Canonical task handoffs live under .ai/vcm/handoffs/ inside the current task runtime repo.
7
7
  - Use only the current task's handoff directory for task-specific artifacts.
8
8
  - Do not create or write task handoffs outside .ai/vcm/handoffs/ for the current task.
9
- - Use vcmctl for role-to-role messaging instead of asking the user to copy prompts.
9
+ - Use route files under .ai/vcm/handoffs/messages/ for role-to-role messaging instead of asking the user to copy prompts.
10
+ - A role-to-role call is represented by exactly one file named <from-role>-<to-role>.md, such as project-manager-coder.md or coder-project-manager.md.
11
+ - If you need to revise a not-yet-delivered message to the same target, update that route file instead of creating another message.
10
12
  - Non-PM roles only reply to project-manager; they do not message other roles directly.
11
13
  - Role messaging is turn-based: do not send more than one active message to the same target role.
12
- - After sending a message to a role, wait for that role to reply with vcmctl reply or vcmctl result before sending another message to the same role.
13
- - After any successful vcmctl send, vcmctl reply, or vcmctl result, end the current Claude Code turn. Treat the command as the final coordination action of this turn.
14
- - Do not run vcmctl inbox, poll files, start shell loops, or keep the turn open waiting for another role's answer. VCM will deliver replies in a later turn.
14
+ - After writing a route file for another role, end the current Claude Code turn. Treat the file write as the final coordination action of this turn.
15
+ - Do not poll files, start shell loops, or keep the turn open waiting for another role's answer. VCM scans pending route files after your Stop hook and delivers later replies in a new turn.
15
16
  - Do not use Claude Code Task/Subagent for VCM role delegation; VCM owns the four role sessions and the message queue.
16
17
  - If new information arrives while a role is still processing, update the relevant handoff artifact or wait; do not spam the target role's terminal.
17
18
  - High-risk decisions involving schema, auth, permissions, payment, billing, security, data deletion, or unclear user intent must stop for project-manager/user approval.
@@ -8,9 +8,10 @@ export function renderCoderHarnessRules() {
8
8
  - Do not change module boundaries, public contracts, dependency direction, or test strategy without project-manager/architect replan.
9
9
  - Stop and reply to project-manager when blocked, unclear, or when the plan no longer matches reality.
10
10
  - Reply to project-manager once per received VCM message when complete, blocked, or unclear; do not send fragmented progress updates unless project-manager explicitly requested them.
11
- - If you need to send a VCM message, send at most one message to any single target role in the current Claude Code turn, then end the turn.
12
- - After a successful vcmctl reply or vcmctl result, end the turn immediately. Do not run vcmctl inbox, poll, loop, or keep working while waiting for project-manager to answer.
11
+ - Send replies by writing or updating .ai/vcm/handoffs/messages/coder-project-manager.md.
12
+ - If you need to send a VCM message, write at most one route file for project-manager in the current Claude Code turn, then end the turn.
13
+ - After writing the route file, end the turn immediately. Do not poll, loop, or keep working while waiting for project-manager to answer.
13
14
  - Do not wait in a loop for another role to answer. VCM will deliver later replies in a new turn.
14
- - Do not use Claude Code Task/Subagent for VCM role delegation; communicate through vcmctl only.
15
+ - Do not use Claude Code Task/Subagent for VCM role delegation; communicate through VCM route files only.
15
16
  `;
16
17
  }
@@ -3,13 +3,13 @@ export function renderProjectManagerHarnessRules() {
3
3
 
4
4
  - You are the user-facing orchestration hub for the VCM task.
5
5
  - Clarify the user's request, classify task risk, and choose the role route.
6
- - Use vcmctl send to assign work to architect, coder, or reviewer.
7
- - Send role work as durable instructions with artifact refs when possible.
6
+ - Assign work by writing or updating .ai/vcm/handoffs/messages/project-manager-architect.md, project-manager-coder.md, or project-manager-reviewer.md.
7
+ - Send role work as durable instructions with optional YAML frontmatter, for example type: task and artifact_refs: .ai/vcm/handoffs/architecture-plan.md.
8
8
  - Enforce per-role turn-taking: keep at most one in-flight message per target role.
9
- - Before sending another task, question, revise, or review-request to the same role, wait for that role's vcmctl reply or vcmctl result.
9
+ - Before sending another task, question, revise, or review-request to the same role, wait for that role's reply file to be delivered back by VCM.
10
10
  - In one Claude Code turn, send at most one VCM message to any single target role.
11
- - After a successful vcmctl send, end the turn immediately. Do not send another VCM message, run vcmctl inbox, poll for the target role's response, or keep the conversation open waiting for another agent.
12
- - Continue orchestration only in a later turn after VCM delivers that role's vcmctl reply or vcmctl result.
11
+ - After writing a route file, end the turn immediately. Do not send another VCM message, poll for the target role's response, or keep the conversation open waiting for another agent.
12
+ - Continue orchestration only in a later turn after VCM delivers that role's result, blocked, question, or finding message.
13
13
  - Do not use Claude Code Task/Subagent for VCM role delegation; VCM manages the four role sessions.
14
14
  - Use cancel only for urgent supersession; include what is superseded.
15
15
  - Track the workflow gates: architecture plan, implementation/validation, review, docs sync, final acceptance.
@@ -10,9 +10,10 @@ export function renderReviewerHarnessRules() {
10
10
  - Escalate architecture, public contract, design, or documentation drift issues to project-manager for architect follow-up.
11
11
  - Do not take over broad implementation and do not weaken tests to pass validation.
12
12
  - Reply to project-manager once per received VCM message when complete, blocked, or unclear; do not send fragmented progress updates unless project-manager explicitly requested them.
13
- - If you need to send a VCM message, send at most one message to any single target role in the current Claude Code turn, then end the turn.
14
- - After a successful vcmctl reply or vcmctl result, end the turn immediately. Do not run vcmctl inbox, poll, loop, or keep working while waiting for project-manager to answer.
13
+ - Send replies by writing or updating .ai/vcm/handoffs/messages/reviewer-project-manager.md.
14
+ - If you need to send a VCM message, write at most one route file for project-manager in the current Claude Code turn, then end the turn.
15
+ - After writing the route file, end the turn immediately. Do not poll, loop, or keep working while waiting for project-manager to answer.
15
16
  - Do not wait in a loop for another role to answer. VCM will deliver later replies in a new turn.
16
- - Do not use Claude Code Task/Subagent for VCM role delegation; communicate through vcmctl only.
17
+ - Do not use Claude Code Task/Subagent for VCM role delegation; communicate through VCM route files only.
17
18
  `;
18
19
  }
@@ -2,6 +2,9 @@ export function renderMessageEnvelope(message) {
2
2
  const artifactRefs = message.artifactRefs.length > 0
3
3
  ? message.artifactRefs.map((artifact) => `- ${artifact}`).join("\n")
4
4
  : "- none";
5
+ const routeFileExample = message.toRole === "project-manager"
6
+ ? ".ai/vcm/handoffs/messages/project-manager-<target-role>.md"
7
+ : `.ai/vcm/handoffs/messages/${message.toRole}-project-manager.md`;
5
8
  return `
6
9
  [VCM MESSAGE]
7
10
  id: ${message.id}
@@ -17,9 +20,10 @@ ${artifactRefs}
17
20
 
18
21
  Instructions:
19
22
  - Read the message and execute only within this VCM task.
20
- - Reply to project-manager with vcmctl result when complete, or vcmctl reply when blocked or unclear.
21
- - After a successful vcmctl reply or vcmctl result, end this Claude Code turn immediately.
22
- - Do not run vcmctl inbox, poll, loop, or wait for project-manager in this turn. VCM will deliver later replies in a new turn.
23
+ - If you need to send a VCM message after handling this, write or update .ai/vcm/handoffs/messages/<your-role>-<target-role>.md.
24
+ - Non-PM roles reply only to project-manager, for example ${routeFileExample}.
25
+ - After writing a route file, end this Claude Code turn immediately.
26
+ - Do not poll, loop, or wait for another role in this turn. VCM scans route files after your Stop hook and delivers later replies in a new turn.
23
27
  [/VCM MESSAGE]
24
28
  `;
25
29
  }