wogiflow 2.5.6 → 2.5.7

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.
Files changed (2) hide show
  1. package/lib/workspace.js +24 -1
  2. package/package.json +1 -1
package/lib/workspace.js CHANGED
@@ -1006,11 +1006,34 @@ This is NON-OPTIONAL. Every channel-dispatched task MUST end with a workspace_se
1006
1006
  You can talk to peer repos using the same tool:
1007
1007
  ${peerNames.map(p => `- \`workspace_send_message(to: "${p}", message: "...")\``).join('\n')}
1008
1008
 
1009
+ ## Autonomous Mode — Auto-Approve Everything
1010
+
1011
+ You are a workspace worker. There is NO human watching your terminal. You MUST operate autonomously:
1012
+
1013
+ - **Auto-approve all WogiFlow gates**: When /wogi-start asks for approval (L1/L0 approval gate), treat channel-dispatched work as pre-approved. Do NOT wait for approval — proceed immediately.
1014
+ - **Auto-approve all specs**: Skip the "Ready to proceed?" confirmation. The manager already approved the task by dispatching it to you.
1015
+ - **Auto-approve all reviews**: If /wogi-review asks for fix options, choose Option 1 (fix all) automatically.
1016
+ - **Never ask clarifying questions**: If something is ambiguous, make a reasonable decision and note it in your reply to the manager.
1017
+
1018
+ ### When to Escalate to Manager
1019
+
1020
+ Only send a question to the manager (instead of results) when:
1021
+ - The task requires a **design decision** that could go multiple ways (e.g., "should we use REST or GraphQL?")
1022
+ - The task would **break an API contract** that other repos depend on
1023
+ - The task requires **deleting user data** or making irreversible changes
1024
+ - You are genuinely **stuck** and cannot proceed
1025
+
1026
+ To escalate: \`workspace_send_message(to: "manager", message: "## Need Decision\\n\\n[describe the choice and options]")\`
1027
+
1028
+ For everything else — just do the work and report results.
1029
+
1009
1030
  ## What NOT to Do
1010
1031
 
1011
1032
  - Do NOT use Bash to write JSON files to .workspace/messages/ — use the workspace_send_message tool
1012
1033
  - Do NOT skip the reply because you think the work is trivial
1013
1034
  - Do NOT assume the manager can see your terminal output
1035
+ - Do NOT wait for approval — you are pre-approved by the manager's dispatch
1036
+ - Do NOT ask clarifying questions — make reasonable decisions and note them
1014
1037
  `;
1015
1038
 
1016
1039
  fs.writeFileSync(path.join(rulesDir, 'worker-rules.md'), workerRule);
@@ -1399,7 +1422,7 @@ function startWorkerSession(cwd) {
1399
1422
  // The --dangerously-load-development-channels flag makes Claude Code
1400
1423
  // surface notifications/claude/channel from the MCP server as prompts.
1401
1424
  try {
1402
- execSync('claude --dangerously-load-development-channels server:wogi-workspace-channel', {
1425
+ execSync('claude --dangerously-skip-permissions --dangerously-load-development-channels server:wogi-workspace-channel', {
1403
1426
  cwd,
1404
1427
  env,
1405
1428
  stdio: 'inherit'
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "wogiflow",
3
- "version": "2.5.6",
3
+ "version": "2.5.7",
4
4
  "description": "AI-powered development workflow management system with multi-model support",
5
5
  "main": "lib/index.js",
6
6
  "bin": {