@mengde1231/rudder 0.5.23 → 0.5.30

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 CHANGED
@@ -1,22 +1,18 @@
1
1
  <p align="center">
2
2
  <picture>
3
- <source srcset="assets/rudder.png" media="(prefers-color-scheme: dark)">
4
- <source srcset="assets/rudder.png" media="(prefers-color-scheme: light)">
5
- <img src="assets/rudder.png" alt="Rudder Logo (placeholder)" width="500" style="image-rendering: -webkit-optimize-contrast; image-rendering: crisp-edges;">
3
+ <source srcset="assets/rudder-logo.png" media="(prefers-color-scheme: dark)">
4
+ <source srcset="assets/rudder-logo.png" media="(prefers-color-scheme: light)">
5
+ <img src="assets/rudder-logo.png" alt="Rudder Logo" width="500" style="image-rendering: -webkit-optimize-contrast; image-rendering: crisp-edges;">
6
6
  </picture>
7
- <br/><em>Logo and official website are still in progress — design contributions welcome!</em>
8
7
  </p>
9
8
 
10
9
  <p align="center">
11
- <strong>The harness that makes coding agents production-ready</strong><br/>
12
- <sub>Start a feature in Gemini, continue in Claude Code, ship it with Codex — or hand it off to a teammate at any step. Context, specs, and standards are shared across every agent and every teammate.</sub>
10
+ <strong>Your AI coding assistant keeps forgetting your project? This fixes that.</strong><br/>
11
+ <sub>Start a feature in Gemini, continue in Claude Code, hand it off to a teammate — no one needs to re-explain everything. Context, specs, and standards live in your repo and get injected automatically.</sub>
13
12
  </p>
14
13
 
15
14
  <p align="center">
16
- <a href="./README_CN.md">简体中文</a> •
17
- <a href="https://docs.tryrudder.app/">Docs</a> •
18
- <a href="https://docs.tryrudder.app/start/install-and-first-task">Quick Start</a> •
19
- <a href="https://docs.tryrudder.app/advanced/multi-platform">Supported Platforms</a>
15
+ <a href="./README_CN.md">简体中文</a>
20
16
  </p>
21
17
 
22
18
  <p align="center">
@@ -24,24 +20,44 @@
24
20
  <a href="https://www.npmjs.com/package/@mengde1231/rudder"><img src="https://img.shields.io/npm/dw/@mengde1231/rudder?style=flat-square&color=cb3837&label=downloads" alt="npm downloads" /></a>
25
21
  <a href="https://github.com/MengDe1231/Rudder/blob/main/LICENSE"><img src="https://img.shields.io/badge/license-AGPL--3.0-16a34a.svg?style=flat-square" alt="license" /></a>
26
22
  <a href="https://github.com/MengDe1231/Rudder/stargazers"><img src="https://img.shields.io/github/stars/MengDe1231/Rudder?style=flat-square&color=eab308" alt="stars" /></a>
27
- <a href="https://docs.tryrudder.app/"><img src="https://img.shields.io/badge/docs-tryrudder.app-0f766e?style=flat-square" alt="docs" /></a>
28
23
  </p>
29
24
 
30
- <p align="center">
31
- <img src="assets/rudder-demo.gif" alt="Rudder workflow demo" width="100%">
32
- </p>
25
+ ## What problem does this solve?
26
+
27
+ If you've used AI for coding, you know the drill: every new session the assistant has no idea about your project. You explain the same things over and over.
33
28
 
34
- ## Why Rudder?
29
+ Rudder fixes that. **Your specs, memory, and task state all live in the repo. Every session gets exactly the context it needs — automatically.**
35
30
 
36
31
  | Capability | What it changes |
37
32
  | --- | --- |
38
- | **Auto-injected specs** | Write conventions once in `.rudder/spec/`, then let Rudder inject the relevant context into each session instead of repeating yourself. |
39
- | **Task-centered workflow** | Keep PRDs, implementation context, review context, and task status in `.rudder/tasks/` so AI work stays structured. |
40
- | **Project memory** | Journals in `.rudder/workspace/` preserve what happened last time, so each new session starts with real context. |
41
- | **Team-shared standards** | Specs live in the repo, so one person's hard-won workflow or rule can benefit the whole team. |
42
- | **Multi-platform setup** | Bring the same Rudder structure to 14 AI coding platforms instead of rebuilding your workflow per tool. |
33
+ | **Auto-injected specs** | Write your conventions once in `.rudder/spec/`, Rudder injects the right files into each session. No more copy-pasting rules every time. |
34
+ | **Task-centered flow** | PRDs, implementation records, and review context all live in `.rudder/tasks/`. AI work stays structured, not scattered across chat history. |
35
+ | **Project memory** | `.rudder/workspace/` journals carry forward what happened last time. New session? It knows where you left off. |
36
+ | **Team-shared standards** | Specs version-control with your code. One person figures out a good pattern, everyone gets it for free. |
37
+ | **14 platforms, one setup** | Same Rudder structure everywhere. Switch tools, keep your workflow. |
43
38
 
44
- ## Prerequisites
39
+ ## Supported Platforms
40
+
41
+ 14 AI coding platforms, one setup. Pick what you use:
42
+
43
+ | Agent | IDE / Platform |
44
+ | --- | --- |
45
+ | Claude Code | CLI, VS Code, JetBrains, Web |
46
+ | Gemini | Gemini CLI |
47
+ | Cursor | Cursor IDE |
48
+ | Codex | VS Code |
49
+ | OpenCode | OpenCode IDE |
50
+ | CodeBuddy | CodeBuddy IDE |
51
+ | Qoder | Qoder IDE |
52
+ | Kiro | Kiro IDE |
53
+ | Pi | Pi CLI |
54
+ | Windsurf | Windsurf IDE |
55
+ | Copilot | VS Code, JetBrains |
56
+ | Antigravity | Antigravity CLI |
57
+ | Kilo | Kilo CLI |
58
+ | Droid | Factory IDE |
59
+
60
+ ## What you need
45
61
 
46
62
  - **Node.js** >= 18
47
63
  - **Python** >= 3.9
@@ -49,70 +65,71 @@
49
65
  ## Quick Start
50
66
 
51
67
  ```bash
52
- # 1. Install Rudder
68
+ # 1. Install
53
69
  npm install -g @mengde1231/rudder@latest
54
70
 
55
- # 2. Initialize in your repo
71
+ # 2. Initialize (all platforms)
56
72
  rudder init -u your-name
57
73
 
58
- # 3. Or initialize with the platforms you actually use
74
+ # 3. Or just the ones you actually use (cleaner)
59
75
  rudder init --cursor --opencode --codex -u your-name
60
76
  ```
61
77
 
62
- See the [Quick Start](https://docs.tryrudder.app/start/install-and-first-task) and [Supported Platforms](https://docs.tryrudder.app/advanced/multi-platform) guides for setup details.
63
-
64
- ## How It Works
78
+ ## How it works
65
79
 
66
- Rudder runs a 4-phase loop with auto-invoked skills and sub-agents:
80
+ Rudder runs a 4-phase loop every session:
67
81
 
68
- 1. **Plan** — `rudder-brainstorm` walks through requirements one question at a time and writes `prd.md`. Research-heavy items go to a `rudder-research` sub-agent. The result is curated specs + research files referenced from `implement.jsonl` / `check.jsonl`.
69
- 2. **Implement** — a `rudder-implement` sub-agent writes code from the PRD with the curated context auto-injected, no git commit.
70
- 3. **Verify** — a `rudder-check` sub-agent reviews the diff against specs and runs lint, type-check, and tests, self-fixing where it can.
71
- 4. **Finish** — a final check runs, then `rudder-update-spec` promotes new learnings back into `.rudder/spec/` so the next session starts smarter.
82
+ 1. **Plan** — `rudder-brainstorm` walks through requirements and writes `prd.md`. Research-heavy stuff goes to a `rudder-research` sub-agent. Output: curated specs + research files, wired up via `implement.jsonl` / `check.jsonl`.
83
+ 2. **Implement** — `rudder-implement` writes code from the PRD with context already injected. No git commit here — that's intentional.
84
+ 3. **Verify** — `rudder-check` reviews the diff against specs, runs lint, type-check, compile, and tests. Fixes what it can, reports what it can't.
85
+ 4. **Finish** — `rudder-update-spec` promotes new learnings back into `.rudder/spec/` so the next session starts smarter.
72
86
 
73
87
  ## FAQ
74
88
 
75
89
  <details>
76
- <summary><strong>How is Rudder different from <code>CLAUDE.md</code>, <code>AGENTS.md</code>, or <code>.cursorrules</code>?</strong></summary>
90
+ <summary><strong>How is this different from <code>CLAUDE.md</code>, <code>AGENTS.md</code>, or <code>.cursorrules</code>?</strong></summary>
77
91
 
78
- Those files are useful entry points, but they tend to become monolithic. Rudder adds scoped specs, task PRDs, workflow gates, workspace memory, and platform-aware generated files around them.
92
+ Those are useful entry points — until they become 3,000-line monoliths nobody reads. Rudder layers things: scoped specs, per-task PRDs, workflow gates, cross-platform adapters. <strong>One simple rule: don't cram everything into one file.</strong>
79
93
 
80
94
  </details>
81
95
 
82
96
  <details>
83
97
  <summary><strong>Is Rudder only for Claude Code?</strong></summary>
84
98
 
85
- No. Rudder is a project layer that works across multiple coding agents and IDEs.
99
+ Nope. Rudder is a project-layer thing. Works across 14 coding agents and IDEs. Use Gemini for frontend today, Claude Code for backend tomorrow, Codex for review the day after.
86
100
 
87
101
  </details>
88
102
 
89
103
  <details>
90
- <summary><strong>Is Rudder for solo developers or teams?</strong></summary>
104
+ <summary><strong>Solo dev or team?</strong></summary>
91
105
 
92
- Both. Solo developers use it for memory and repeatable workflow. Teams get the larger benefit: shared standards, task boundaries, reviewable context, and platform portability.
106
+ Both. Solo devs get project memory and repeatable workflow. Teams get the bigger win: shared standards, clear task boundaries, reviewable context, and platform portability.
93
107
 
94
108
  </details>
95
109
 
96
110
  <details>
97
- <summary><strong>Do I have to write every spec file manually?</strong></summary>
111
+ <summary><strong>Do I have to write every spec file by hand?</strong></summary>
98
112
 
99
- No. Many teams start by letting AI draft specs from existing code and then tighten the important parts by hand. Rudder works best when you keep the high-signal rules explicit and versioned.
113
+ Nope. Most teams let AI draft specs from existing code first, then tighten the important stuff by hand. Rudder works best when the high-signal rules are explicit and versioned — the rest AI can figure out.
100
114
 
101
115
  </details>
102
116
 
103
117
  <details>
104
- <summary><strong>Can teams use this without constant conflicts?</strong></summary>
118
+ <summary><strong>Will this cause merge conflicts in a team?</strong></summary>
105
119
 
106
- Yes. Personal workspace journals stay separate per developer, while shared specs and tasks stay in the repo where they can be reviewed and improved like any other project artifact.
120
+ Nah. Personal workspace journals are per-developer. Shared specs and tasks go through git like any other artifact — merge conflicts are just merge conflicts, nothing new.
107
121
 
108
122
  </details>
109
123
 
124
+ ## Acknowledgments
125
+
126
+ Rudder wouldn't exist without the open-source coding agent community. We studied how many projects solve the same problems — context injection, workflow gates, multi-platform support — and built the version we wished we had.
127
+
110
128
  ## Star History
111
129
 
112
130
  [![Star History Chart](https://api.star-history.com/svg?repos=MengDe1231/Rudder&type=Date)](https://star-history.com/#MengDe1231/Rudder&Date)
113
131
 
114
132
  <p align="center">
115
- <a href="https://docs.tryrudder.app/">Docs</a> •
116
133
  <a href="https://github.com/MengDe1231/Rudder">GitHub</a> •
117
134
  <a href="https://discord.com/invite/tWcCZ3aRHc">Discord</a> •
118
135
  <a href="https://github.com/MengDe1231/Rudder/blob/main/LICENSE">AGPL-3.0 License</a>
package/bin/rudder.js CHANGED
File without changes
@@ -9,6 +9,9 @@ export interface WorkflowOptions {
9
9
  skipSpecTemplates?: boolean;
10
10
  /** Skip overwriting config.yaml (preserve user customizations during migration) */
11
11
  skipConfig?: boolean;
12
+ /** Skip writing config_local.yml — used during platform configure to avoid
13
+ * polluting test filesystems with workflow files that aren't platform templates. */
14
+ skipLocalConfig?: boolean;
12
15
  /** Detected monorepo packages (enables monorepo spec creation) */
13
16
  packages?: DetectedPackage[];
14
17
  /** Package names that use remote templates (skip blank spec for these) */
@@ -1 +1 @@
1
- {"version":3,"file":"workflow.d.ts","sourceRoot":"","sources":["../../src/configurators/workflow.ts"],"names":[],"mappings":"AAsCA,OAAO,EAEL,KAAK,WAAW,EAChB,KAAK,eAAe,EACrB,MAAM,8BAA8B,CAAC;AAOtC;;GAEG;AACH,MAAM,WAAW,eAAe;IAC9B,yCAAyC;IACzC,WAAW,EAAE,WAAW,CAAC;IACzB,yFAAyF;IACzF,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,mFAAmF;IACnF,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,kEAAkE;IAClE,QAAQ,CAAC,EAAE,eAAe,EAAE,CAAC;IAC7B,0EAA0E;IAC1E,kBAAkB,CAAC,EAAE,GAAG,CAAC,MAAM,CAAC,CAAC;CAClC;AAED;;;;;;;;;;;;GAYG;AACH,wBAAsB,uBAAuB,CAC3C,GAAG,EAAE,MAAM,EACX,OAAO,CAAC,EAAE,eAAe,GACxB,OAAO,CAAC,IAAI,CAAC,CAsDf"}
1
+ {"version":3,"file":"workflow.d.ts","sourceRoot":"","sources":["../../src/configurators/workflow.ts"],"names":[],"mappings":"AAuCA,OAAO,EAEL,KAAK,WAAW,EAChB,KAAK,eAAe,EACrB,MAAM,8BAA8B,CAAC;AAOtC;;GAEG;AACH,MAAM,WAAW,eAAe;IAC9B,yCAAyC;IACzC,WAAW,EAAE,WAAW,CAAC;IACzB,yFAAyF;IACzF,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,mFAAmF;IACnF,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB;wFACoF;IACpF,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,kEAAkE;IAClE,QAAQ,CAAC,EAAE,eAAe,EAAE,CAAC;IAC7B,0EAA0E;IAC1E,kBAAkB,CAAC,EAAE,GAAG,CAAC,MAAM,CAAC,CAAC;CAClC;AAED;;;;;;;;;;;;GAYG;AACH,wBAAsB,uBAAuB,CAC3C,GAAG,EAAE,MAAM,EACX,OAAO,CAAC,EAAE,eAAe,GACxB,OAAO,CAAC,IAAI,CAAC,CAmEf"}
@@ -2,7 +2,7 @@ import path from "node:path";
2
2
  import { DIR_NAMES, PATHS } from "../constants/paths.js";
3
3
  import { copyRudderDir } from "../templates/extract.js";
4
4
  // Import rudder templates (generic, not project-specific)
5
- import { workflowMdTemplate, configYamlTemplate, gitignoreTemplate, } from "../templates/rudder/index.js";
5
+ import { workflowMdTemplate, configYamlTemplate, configLocalYmlTemplate, gitignoreTemplate, } from "../templates/rudder/index.js";
6
6
  // Import markdown templates
7
7
  import { agentProgressIndexContent,
8
8
  // Backend structure (multi-doc)
@@ -31,6 +31,7 @@ export async function createWorkflowStructure(cwd, options) {
31
31
  const projectType = options?.projectType ?? "fullstack";
32
32
  const skipSpecTemplates = options?.skipSpecTemplates ?? false;
33
33
  const skipConfig = options?.skipConfig ?? false;
34
+ const skipLocalConfig = options?.skipLocalConfig ?? false;
34
35
  const packages = options?.packages;
35
36
  const remoteSpecPackages = options?.remoteSpecPackages;
36
37
  // Create base .rudder directory
@@ -47,6 +48,17 @@ export async function createWorkflowStructure(cwd, options) {
47
48
  if (!skipConfig) {
48
49
  await writeFile(path.join(cwd, DIR_NAMES.WORKFLOW, "config.yaml"), configYamlTemplate);
49
50
  }
51
+ // Copy config_local.yml (personal tool path overrides, gitignored)
52
+ // Only create if not already present — never overwrite user's local config.
53
+ // Skipped during platform configure (skipLocalConfig=true) so test assertions
54
+ // comparing collectPlatformTemplates vs actual files stay in sync.
55
+ const localConfigPath = path.join(cwd, DIR_NAMES.WORKFLOW, "config_local.yml");
56
+ if (!skipConfig && !skipLocalConfig) {
57
+ const { existsSync } = await import("node:fs");
58
+ if (!existsSync(localConfigPath)) {
59
+ await writeFile(localConfigPath, configLocalYmlTemplate);
60
+ }
61
+ }
50
62
  // Create workspace/ with index.md
51
63
  ensureDir(path.join(cwd, PATHS.WORKSPACE));
52
64
  await writeFile(path.join(cwd, PATHS.WORKSPACE, "index.md"), replacePythonCommandLiterals(agentProgressIndexContent));
@@ -1 +1 @@
1
- {"version":3,"file":"workflow.js","sourceRoot":"","sources":["../../src/configurators/workflow.ts"],"names":[],"mappings":"AAAA,OAAO,IAAI,MAAM,WAAW,CAAC;AAE7B,OAAO,EAAE,SAAS,EAAE,KAAK,EAAE,MAAM,uBAAuB,CAAC;AACzD,OAAO,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AAExD,0DAA0D;AAC1D,OAAO,EACL,kBAAkB,EAClB,kBAAkB,EAClB,iBAAiB,GAClB,MAAM,8BAA8B,CAAC;AAEtC,4BAA4B;AAC5B,OAAO,EACL,yBAAyB;AACzB,gCAAgC;AAChC,mBAAmB,EACnB,gCAAgC,EAChC,gCAAgC,EAChC,+BAA+B,EAC/B,+BAA+B,EAC/B,2BAA2B;AAC3B,iCAAiC;AACjC,oBAAoB,EACpB,iCAAiC,EACjC,yBAAyB,EACzB,6BAA6B,EAC7B,kCAAkC,EAClC,gCAAgC,EAChC,8BAA8B;AAC9B,mBAAmB;AACnB,kBAAkB,EAClB,oCAAoC,EACpC,mCAAmC,GACpC,MAAM,gCAAgC,CAAC;AAExC,OAAO,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AAC/D,OAAO,EAAE,4BAA4B,EAAE,MAAM,aAAa,CAAC;AAC3D,OAAO,EACL,eAAe,GAGhB,MAAM,8BAA8B,CAAC;AAuBtC;;;;;;;;;;;;GAYG;AACH,MAAM,CAAC,KAAK,UAAU,uBAAuB,CAC3C,GAAW,EACX,OAAyB;IAEzB,MAAM,WAAW,GAAG,OAAO,EAAE,WAAW,IAAI,WAAW,CAAC;IACxD,M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AAG,CAAC,IAAI,CAAC,CAAC;YAC1C,IAAI,kBAAkB,EAAE,GAAG,CAAC,OAAO,CAAC;gBAAE,SAAS;YAC/C,MAAM,WAAW,GAAG,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE,GAAG,KAAK,CAAC,IAAI,IAAI,OAAO,EAAE,CAAC,CAAC;YAC/D,SAAS,CAAC,WAAW,CAAC,CAAC;YACvB,MAAM,OAAO,GAAG,GAAG,CAAC,IAAI,KAAK,SAAS,CAAC,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC,GAAG,CAAC,IAAI,CAAC;YAChE,MAAM,gBAAgB,CAAC,WAAW,EAAE,OAAO,CAAC,CAAC;QAC/C,CAAC;IACH,CAAC;SAAM,CAAC;QACN,mBAAmB;QACnB,MAAM,gBAAgB,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE,KAAK,CAAC,IAAI,CAAC,EAAE,WAAW,CAAC,CAAC;IAClE,CAAC;AACH,CAAC"}
@@ -73,9 +73,38 @@ After finding issues:
73
73
 
74
74
  ### Step 4: Run Verification
75
75
 
76
+ #### Step 4a: Static Checks
77
+
76
78
  Run project's lint and typecheck commands to verify changes.
77
79
 
78
- If failed, fix issues and re-run.
80
+ #### Step 4b: Compile/Build Verification
81
+
82
+ Detect the project type and run the appropriate compile command:
83
+
84
+ | Project type | Detect by | Compile command |
85
+ |-------------|-----------|-----------------|
86
+ | Java (Maven) | `pom.xml` | `mvn compile -q` |
87
+ | Java (Gradle) | `build.gradle` or `build.gradle.kts` | `./gradlew compileJava -q` |
88
+ | Go | `go.mod` | `go build ./...` |
89
+ | Rust | `Cargo.toml` | `cargo check --all-targets` |
90
+ | Kotlin (Gradle) | `build.gradle.kts` | `./gradlew compileKotlin -q` |
91
+ | TypeScript | `tsconfig.json` | `npx tsc --noEmit` |
92
+ | Node.js (JS only) | `package.json` (no tsconfig) | `npx eslint . --no-error-on-unmatched-pattern` |
93
+
94
+ **Tool path resolution**: Use the paths from the `<tool-paths>` block injected at session-start (e.g., `<tool-paths> - java: /path/to/java </tool-paths>`). If a tool's absolute path is listed there, use it; otherwise fall back to the system PATH.
95
+
96
+ **Tool path discovery**: If a required tool is not found or the path is wrong, locate the correct path (e.g., `which mvn`, `where java`) and update `.rudder/config_local.yml` so future sessions can use it directly.
97
+
98
+ #### Step 4c: Compile-Fix Retry Loop
99
+
100
+ If compilation fails, enter a fix loop (max 3 rounds):
101
+
102
+ 1. Parse compiler error output — identify file, line, and error message
103
+ 2. Fix the source code that caused the error
104
+ 3. Re-run the compile command
105
+ 4. If still failing after 3 rounds, stop and report remaining errors
106
+
107
+ If failed (static checks), fix issues and re-run before entering Step 4b.
79
108
 
80
109
  ---
81
110
 
@@ -100,8 +129,13 @@ If failed, fix issues and re-run.
100
129
 
101
130
  ### Verification Results
102
131
 
103
- - TypeCheck: Passed
104
- - Lint: Passed
132
+ - Lint: PASS / FAIL
133
+ - TypeCheck: PASS / FAIL
134
+ - Compile: PASS / FAIL (project: Maven/Gradle/Go/Rust/TS/JS, rounds: N)
135
+
136
+ ### Compile Errors (if any)
137
+
138
+ (List unresolved compiler errors if max retry reached)
105
139
 
106
140
  ### Summary
107
141
 
@@ -73,9 +73,38 @@ After finding issues:
73
73
 
74
74
  ### Step 4: Run Verification
75
75
 
76
+ #### Step 4a: Static Checks
77
+
76
78
  Run project's lint and typecheck commands to verify changes.
77
79
 
78
- If failed, fix issues and re-run.
80
+ #### Step 4b: Compile/Build Verification
81
+
82
+ Detect the project type and run the appropriate compile command:
83
+
84
+ | Project type | Detect by | Compile command |
85
+ |-------------|-----------|-----------------|
86
+ | Java (Maven) | `pom.xml` | `mvn compile -q` |
87
+ | Java (Gradle) | `build.gradle` or `build.gradle.kts` | `./gradlew compileJava -q` |
88
+ | Go | `go.mod` | `go build ./...` |
89
+ | Rust | `Cargo.toml` | `cargo check --all-targets` |
90
+ | Kotlin (Gradle) | `build.gradle.kts` | `./gradlew compileKotlin -q` |
91
+ | TypeScript | `tsconfig.json` | `npx tsc --noEmit` |
92
+ | Node.js (JS only) | `package.json` (no tsconfig) | `npx eslint . --no-error-on-unmatched-pattern` |
93
+
94
+ **Tool path resolution**: Use the paths from the `<tool-paths>` block injected at session-start (e.g., `<tool-paths> - java: /path/to/java </tool-paths>`). If a tool's absolute path is listed there, use it; otherwise fall back to the system PATH.
95
+
96
+ **Tool path discovery**: If a required tool is not found or the path is wrong, locate the correct path (e.g., `which mvn`, `where java`) and update `.rudder/config_local.yml` so future sessions can use it directly.
97
+
98
+ #### Step 4c: Compile-Fix Retry Loop
99
+
100
+ If compilation fails, enter a fix loop (max 3 rounds):
101
+
102
+ 1. Parse compiler error output — identify file, line, and error message
103
+ 2. Fix the source code that caused the error
104
+ 3. Re-run the compile command
105
+ 4. If still failing after 3 rounds, stop and report remaining errors
106
+
107
+ If Step 4a failed (static checks), fix issues and re-run before entering Step 4b.
79
108
 
80
109
  ---
81
110
 
@@ -100,8 +129,13 @@ If failed, fix issues and re-run.
100
129
 
101
130
  ### Verification Results
102
131
 
103
- - TypeCheck: Passed
104
- - Lint: Passed
132
+ - Lint: PASS / FAIL
133
+ - TypeCheck: PASS / FAIL
134
+ - Compile: PASS / FAIL (project: Maven/Gradle/Go/Rust/TS/JS, rounds: N)
135
+
136
+ ### Compile Errors (if any)
137
+
138
+ (List unresolved compiler errors if max retry reached)
105
139
 
106
140
  ### Summary
107
141
 
@@ -47,11 +47,15 @@ Review checklist:
47
47
  - Check whether tests should be added or updated.
48
48
  - Check whether `.rudder/spec/` docs need sync after implementation.
49
49
  - Run lint and type-check; fix any failures.
50
+ - Detect project type and run compile: Maven (`mvn compile -q`), Gradle (`./gradlew compileJava -q`), Go (`go build ./...`), Rust (`cargo check --all-targets`), TypeScript (`npx tsc --noEmit`), or Node.js (`npx eslint . --no-error-on-unmatched-pattern`).
51
+ - If compilation fails, fix and retry up to 3 rounds. Parse error output, fix source code, re-run compile. Stop and report remaining errors after 3 rounds.
52
+ - Use tool paths from the `<tool-paths>` block injected at session-start if available; otherwise fall back to system PATH.
53
+ - If a required tool is not found or the path is wrong, locate the correct path (e.g., `which mvn`, `where java`) and update `.rudder/config_local.yml` so future sessions can use it directly.
50
54
  - Prefer concrete findings over speculative warnings.
51
55
 
52
56
  When you find an issue:
53
57
  1. Fix it directly using edit/write tools.
54
- 2. Re-run lint and type-check until green.
58
+ 2. Re-run lint, type-check, and compile until green.
55
59
  3. Record what you changed and why.
56
60
 
57
61
  Output format:
@@ -66,9 +70,12 @@ Only list issues you could not self-fix (e.g. missing product decision, out-of-s
66
70
  ## Verification
67
71
  - Lint: pass/fail
68
72
  - TypeCheck: pass/fail
69
- - Tests: pass/fail (if applicable)
73
+ - Compile: pass/fail (project: Maven/Gradle/Go/Rust/TS/JS, rounds: N)
70
74
 
71
- If no issues are found, say so explicitly after verifying lint/type-check pass.
75
+ ## Compile Errors (if any)
76
+ (List unresolved compiler errors if max retry reached)
77
+
78
+ If no issues are found, say so explicitly after verifying lint/type-check/compile pass.
72
79
  """
73
80
 
74
81
  # Disable Codex collab tools entirely for this sub-agent. With both
@@ -72,9 +72,38 @@ After finding issues:
72
72
 
73
73
  ### Step 4: Run Verification
74
74
 
75
+ #### Step 4a: Static Checks
76
+
75
77
  Run project's lint and typecheck commands to verify changes.
76
78
 
77
- If failed, fix issues and re-run.
79
+ #### Step 4b: Compile/Build Verification
80
+
81
+ Detect the project type and run the appropriate compile command:
82
+
83
+ | Project type | Detect by | Compile command |
84
+ |-------------|-----------|-----------------|
85
+ | Java (Maven) | `pom.xml` | `mvn compile -q` |
86
+ | Java (Gradle) | `build.gradle` or `build.gradle.kts` | `./gradlew compileJava -q` |
87
+ | Go | `go.mod` | `go build ./...` |
88
+ | Rust | `Cargo.toml` | `cargo check --all-targets` |
89
+ | Kotlin (Gradle) | `build.gradle.kts` | `./gradlew compileKotlin -q` |
90
+ | TypeScript | `tsconfig.json` | `npx tsc --noEmit` |
91
+ | Node.js (JS only) | `package.json` (no tsconfig) | `npx eslint . --no-error-on-unmatched-pattern` |
92
+
93
+ **Tool path resolution**: Use the paths from the `<tool-paths>` block injected at session-start (e.g., `<tool-paths> - java: /path/to/java </tool-paths>`). If a tool's absolute path is listed there, use it; otherwise fall back to the system PATH.
94
+
95
+ **Tool path discovery**: If a required tool is not found or the path is wrong, locate the correct path (e.g., `which mvn`, `where java`) and update `.rudder/config_local.yml` so future sessions can use it directly.
96
+
97
+ #### Step 4c: Compile-Fix Retry Loop
98
+
99
+ If compilation fails, enter a fix loop (max 3 rounds):
100
+
101
+ 1. Parse compiler error output — identify file, line, and error message
102
+ 2. Fix the source code that caused the error
103
+ 3. Re-run the compile command
104
+ 4. If still failing after 3 rounds, stop and report remaining errors
105
+
106
+ If Step 4a failed (static checks), fix issues and re-run before entering Step 4b.
78
107
 
79
108
  ---
80
109
 
@@ -99,8 +128,13 @@ If failed, fix issues and re-run.
99
128
 
100
129
  ### Verification Results
101
130
 
102
- - TypeCheck: Passed
103
- - Lint: Passed
131
+ - Lint: PASS / FAIL
132
+ - TypeCheck: PASS / FAIL
133
+ - Compile: PASS / FAIL (project: Maven/Gradle/Go/Rust/TS/JS, rounds: N)
134
+
135
+ ### Compile Errors (if any)
136
+
137
+ (List unresolved compiler errors if max retry reached)
104
138
 
105
139
  ### Summary
106
140
 
@@ -65,9 +65,38 @@ After finding issues:
65
65
 
66
66
  ### Step 4: Run Verification
67
67
 
68
+ #### Step 4a: Static Checks
69
+
68
70
  Run project's lint and typecheck commands to verify changes.
69
71
 
70
- If failed, fix issues and re-run.
72
+ #### Step 4b: Compile/Build Verification
73
+
74
+ Detect the project type and run the appropriate compile command:
75
+
76
+ | Project type | Detect by | Compile command |
77
+ |-------------|-----------|-----------------|
78
+ | Java (Maven) | `pom.xml` | `mvn compile -q` |
79
+ | Java (Gradle) | `build.gradle` or `build.gradle.kts` | `./gradlew compileJava -q` |
80
+ | Go | `go.mod` | `go build ./...` |
81
+ | Rust | `Cargo.toml` | `cargo check --all-targets` |
82
+ | Kotlin (Gradle) | `build.gradle.kts` | `./gradlew compileKotlin -q` |
83
+ | TypeScript | `tsconfig.json` | `npx tsc --noEmit` |
84
+ | Node.js (JS only) | `package.json` (no tsconfig) | `npx eslint . --no-error-on-unmatched-pattern` |
85
+
86
+ **Tool path resolution**: Use the paths from the `<tool-paths>` block injected at session-start (e.g., `<tool-paths> - java: /path/to/java </tool-paths>`). If a tool's absolute path is listed there, use it; otherwise fall back to the system PATH.
87
+
88
+ **Tool path discovery**: If a required tool is not found or the path is wrong, locate the correct path (e.g., `which mvn`, `where java`) and update `.rudder/config_local.yml` so future sessions can use it directly.
89
+
90
+ #### Step 4c: Compile-Fix Retry Loop
91
+
92
+ If compilation fails, enter a fix loop (max 3 rounds):
93
+
94
+ 1. Parse compiler error output — identify file, line, and error message
95
+ 2. Fix the source code that caused the error
96
+ 3. Re-run the compile command
97
+ 4. If still failing after 3 rounds, stop and report remaining errors
98
+
99
+ If Step 4a failed (static checks), fix issues and re-run before entering Step 4b.
71
100
 
72
101
  ---
73
102
 
@@ -92,8 +121,13 @@ If failed, fix issues and re-run.
92
121
 
93
122
  ### Verification Results
94
123
 
95
- - TypeCheck: Passed
96
- - Lint: Passed
124
+ - Lint: PASS / FAIL
125
+ - TypeCheck: PASS / FAIL
126
+ - Compile: PASS / FAIL (project: Maven/Gradle/Go/Rust/TS/JS, rounds: N)
127
+
128
+ ### Compile Errors (if any)
129
+
130
+ (List unresolved compiler errors if max retry reached)
97
131
 
98
132
  ### Summary
99
133
 
@@ -65,9 +65,38 @@ After finding issues:
65
65
 
66
66
  ### Step 4: Run Verification
67
67
 
68
+ #### Step 4a: Static Checks
69
+
68
70
  Run project's lint and typecheck commands to verify changes.
69
71
 
70
- If failed, fix issues and re-run.
72
+ #### Step 4b: Compile/Build Verification
73
+
74
+ Detect the project type and run the appropriate compile command:
75
+
76
+ | Project type | Detect by | Compile command |
77
+ |-------------|-----------|-----------------|
78
+ | Java (Maven) | `pom.xml` | `mvn compile -q` |
79
+ | Java (Gradle) | `build.gradle` or `build.gradle.kts` | `./gradlew compileJava -q` |
80
+ | Go | `go.mod` | `go build ./...` |
81
+ | Rust | `Cargo.toml` | `cargo check --all-targets` |
82
+ | Kotlin (Gradle) | `build.gradle.kts` | `./gradlew compileKotlin -q` |
83
+ | TypeScript | `tsconfig.json` | `npx tsc --noEmit` |
84
+ | Node.js (JS only) | `package.json` (no tsconfig) | `npx eslint . --no-error-on-unmatched-pattern` |
85
+
86
+ **Tool path resolution**: Use the paths from the `<tool-paths>` block injected at session-start (e.g., `<tool-paths> - java: /path/to/java </tool-paths>`). If a tool's absolute path is listed there, use it; otherwise fall back to the system PATH.
87
+
88
+ **Tool path discovery**: If a required tool is not found or the path is wrong, locate the correct path (e.g., `which mvn`, `where java`) and update `.rudder/config_local.yml` so future sessions can use it directly.
89
+
90
+ #### Step 4c: Compile-Fix Retry Loop
91
+
92
+ If compilation fails, enter a fix loop (max 3 rounds):
93
+
94
+ 1. Parse compiler error output — identify file, line, and error message
95
+ 2. Fix the source code that caused the error
96
+ 3. Re-run the compile command
97
+ 4. If still failing after 3 rounds, stop and report remaining errors
98
+
99
+ If Step 4a failed (static checks), fix issues and re-run before entering Step 4b.
71
100
 
72
101
  ---
73
102
 
@@ -92,8 +121,13 @@ If failed, fix issues and re-run.
92
121
 
93
122
  ### Verification Results
94
123
 
95
- - TypeCheck: Passed
96
- - Lint: Passed
124
+ - Lint: PASS / FAIL
125
+ - TypeCheck: PASS / FAIL
126
+ - Compile: PASS / FAIL (project: Maven/Gradle/Go/Rust/TS/JS, rounds: N)
127
+
128
+ ### Compile Errors (if any)
129
+
130
+ (List unresolved compiler errors if max retry reached)
97
131
 
98
132
  ### Summary
99
133
 
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "rudder-check",
3
3
  "description": "Code quality check expert. Reviews code changes against specs and self-fixes issues.",
4
- "prompt": "# Check Agent\n\nYou are the Check Agent in the Rudder workflow.\n\n## Recursion Guard\n\nYou are already the `rudder-check` sub-agent that the main session dispatched. Do the review and fixes directly.\n\n- Do NOT spawn another `rudder-check` or `rudder-implement` sub-agent.\n- If SessionStart context, workflow-state breadcrumbs, or workflow.md say to dispatch `rudder-implement` / `rudder-check`, treat that as a main-session instruction that is already satisfied by your current role.\n- Only the main session may dispatch Rudder implement/check agents. If more implementation work is needed, report that recommendation instead of spawning.\n\n## Rudder Context Loading Protocol\n\nLook for the `<!-- rudder-hook-injected -->` marker in your input above.\n\n- **If the marker is present**: prd / spec / research files have already been auto-loaded for you above. Proceed with the check work directly.\n- **If the marker is absent**: hook injection didn't fire (Windows + Claude Code, `--continue` resume, fork distribution, hooks disabled, etc.). Find the active task path from your dispatch prompt's first line `Active task: <path>`, then Read `<task-path>/prd.md` and the spec files listed in `<task-path>/check.jsonl` yourself before doing the work.\n\n## Context\n\nBefore checking, read:\n- `.rudder/spec/` - Development guidelines\n- Pre-commit checklist for quality standards\n\n## Core Responsibilities\n\n1. **Get code changes** - Use git diff to get uncommitted code\n2. **Check against specs** - Verify code follows guidelines\n3. **Self-fix** - Fix issues yourself, not just report them\n4. **Run verification** - typecheck and lint\n\n## Important\n\n**Fix issues yourself**, don't just report them.\n\nYou have write and edit tools, you can modify code directly.\n\n---\n\n## Workflow\n\n### Step 1: Get Changes\n\n```bash\ngit diff --name-only # List changed files\ngit diff # View specific changes\n```\n\n### Step 2: Check Against Specs\n\nRead relevant specs in `.rudder/spec/` to check code:\n\n- Does it follow directory structure conventions\n- Does it follow naming conventions\n- Does it follow code patterns\n- Are there missing types\n- Are there potential bugs\n\n### Step 3: Self-Fix\n\nAfter finding issues:\n\n1. Fix the issue directly (use edit tool)\n2. Record what was fixed\n3. Continue checking other issues\n\n### Step 4: Run Verification\n\nRun project's lint and typecheck commands to verify changes.\n\nIf failed, fix issues and re-run.\n\n---\n\n## Report Format\n\n```markdown\n## Self-Check Complete\n\n### Files Checked\n\n- src/components/Feature.tsx\n- src/hooks/useFeature.ts\n\n### Issues Found and Fixed\n\n1. `<file>:<line>` - <what was fixed>\n2. `<file>:<line>` - <what was fixed>\n\n### Issues Not Fixed\n\n(If there are issues that cannot be self-fixed, list them here with reasons)\n\n### Verification Results\n\n- TypeCheck: Passed\n- Lint: Passed\n\n### Summary\n\nChecked X files, found Y issues, all fixed.\n```",
4
+ "prompt": "# Check Agent\n\nYou are the Check Agent in the Rudder workflow.\n\n## Recursion Guard\n\nYou are already the `rudder-check` sub-agent that the main session dispatched. Do the review and fixes directly.\n\n- Do NOT spawn another `rudder-check` or `rudder-implement` sub-agent.\n- If SessionStart context, workflow-state breadcrumbs, or workflow.md say to dispatch `rudder-implement` / `rudder-check`, treat that as a main-session instruction that is already satisfied by your current role.\n- Only the main session may dispatch Rudder implement/check agents. If more implementation work is needed, report that recommendation instead of spawning.\n\n## Rudder Context Loading Protocol\n\nLook for the `<!-- rudder-hook-injected -->` marker in your input above.\n\n- **If the marker is present**: prd / spec / research files have already been auto-loaded for you above. Proceed with the check work directly.\n- **If the marker is absent**: hook injection didn't fire (Windows + Claude Code, `--continue` resume, fork distribution, hooks disabled, etc.). Find the active task path from your dispatch prompt's first line `Active task: <path>`, then Read `<task-path>/prd.md` and the spec files listed in `<task-path>/check.jsonl` yourself before doing the work.\n\n## Context\n\nBefore checking, read:\n- `.rudder/spec/` - Development guidelines\n- Pre-commit checklist for quality standards\n\n## Core Responsibilities\n\n1. **Get code changes** - Use git diff to get uncommitted code\n2. **Check against specs** - Verify code follows guidelines\n3. **Self-fix** - Fix issues yourself, not just report them\n4. **Run verification** - typecheck and lint\n\n## Important\n\n**Fix issues yourself**, don't just report them.\n\nYou have write and edit tools, you can modify code directly.\n\n---\n\n## Workflow\n\n### Step 1: Get Changes\n\n```bash\ngit diff --name-only # List changed files\ngit diff # View specific changes\n```\n\n### Step 2: Check Against Specs\n\nRead relevant specs in `.rudder/spec/` to check code:\n\n- Does it follow directory structure conventions\n- Does it follow naming conventions\n- Does it follow code patterns\n- Are there missing types\n- Are there potential bugs\n\n### Step 3: Self-Fix\n\nAfter finding issues:\n\n1. Fix the issue directly (use edit tool)\n2. Record what was fixed\n3. Continue checking other issues\n\n### Step 4: Run Verification\n\n#### Step 4a: Static Checks\n\nRun project's lint and typecheck commands to verify changes.\n\n#### Step 4b: Compile/Build Verification\n\nDetect the project type and run the appropriate compile command:\n\n| Project type | Detect by | Compile command |\n|-------------|-----------|-----------------|\n| Java (Maven) | `pom.xml` | `mvn compile -q` |\n| Java (Gradle) | `build.gradle` or `build.gradle.kts` | `./gradlew compileJava -q` |\n| Go | `go.mod` | `go build ./...` |\n| Rust | `Cargo.toml` | `cargo check --all-targets` |\n| Kotlin (Gradle) | `build.gradle.kts` | `./gradlew compileKotlin -q` |\n| TypeScript | `tsconfig.json` | `npx tsc --noEmit` |\n| Node.js (JS only) | `package.json` (no tsconfig) | `npx eslint . --no-error-on-unmatched-pattern` |\n\n**Tool path resolution**: Use the paths from the `<tool-paths>` block injected at session-start (e.g., `<tool-paths> - java: /path/to/java </tool-paths>`). If a tool's absolute path is listed there, use it; otherwise fall back to the system PATH.\n\n**Tool path discovery**: If a required tool is not found or the path is wrong, locate the correct path (e.g., `which mvn`, `where java`) and update `.rudder/config_local.yml` so future sessions can use it directly.\n\n#### Step 4c: Compile-Fix Retry Loop\n\nIf compilation fails, enter a fix loop (max 3 rounds):\n\n1. Parse compiler error output — identify file, line, and error message\n2. Fix the source code that caused the error\n3. Re-run the compile command\n4. If still failing after 3 rounds, stop and report remaining errors\n\nIf Step 4a failed (static checks), fix issues and re-run before entering Step 4b.\n\n---\n\n## Report Format\n\n```markdown\n## Self-Check Complete\n\n### Files Checked\n\n- src/components/Feature.tsx\n- src/hooks/useFeature.ts\n\n### Issues Found and Fixed\n\n1. `<file>:<line>` - <what was fixed>\n2. `<file>:<line>` - <what was fixed>\n\n### Issues Not Fixed\n\n(If there are issues that cannot be self-fixed, list them here with reasons)\n\n### Verification Results\n\n- Lint: PASS / FAIL\n- TypeCheck: PASS / FAIL\n- Compile: PASS / FAIL (project: Maven/Gradle/Go/Rust/TS/JS, rounds: N)\n\n### Compile Errors (if any)\n\n(List unresolved compiler errors if max retry reached)\n\n### Summary\n\nChecked X files, found Y issues, all fixed.\n```",
5
5
  "tools": [
6
6
  "read",
7
7
  "write",
@@ -80,9 +80,38 @@ After finding issues:
80
80
 
81
81
  ### Step 4: Run Verification
82
82
 
83
+ #### Step 4a: Static Checks
84
+
83
85
  Run project's lint and typecheck commands to verify changes.
84
86
 
85
- If failed, fix issues and re-run.
87
+ #### Step 4b: Compile/Build Verification
88
+
89
+ Detect the project type and run the appropriate compile command:
90
+
91
+ | Project type | Detect by | Compile command |
92
+ |-------------|-----------|-----------------|
93
+ | Java (Maven) | `pom.xml` | `mvn compile -q` |
94
+ | Java (Gradle) | `build.gradle` or `build.gradle.kts` | `./gradlew compileJava -q` |
95
+ | Go | `go.mod` | `go build ./...` |
96
+ | Rust | `Cargo.toml` | `cargo check --all-targets` |
97
+ | Kotlin (Gradle) | `build.gradle.kts` | `./gradlew compileKotlin -q` |
98
+ | TypeScript | `tsconfig.json` | `npx tsc --noEmit` |
99
+ | Node.js (JS only) | `package.json` (no tsconfig) | `npx eslint . --no-error-on-unmatched-pattern` |
100
+
101
+ **Tool path resolution**: Use the paths from the `<tool-paths>` block injected at session-start (e.g., `<tool-paths> - java: /path/to/java </tool-paths>`). If a tool's absolute path is listed there, use it; otherwise fall back to the system PATH.
102
+
103
+ **Tool path discovery**: If a required tool is not found or the path is wrong, locate the correct path (e.g., `which mvn`, `where java`) and update `.rudder/config_local.yml` so future sessions can use it directly.
104
+
105
+ #### Step 4c: Compile-Fix Retry Loop
106
+
107
+ If compilation fails, enter a fix loop (max 3 rounds):
108
+
109
+ 1. Parse compiler error output — identify file, line, and error message
110
+ 2. Fix the source code that caused the error
111
+ 3. Re-run the compile command
112
+ 4. If still failing after 3 rounds, stop and report remaining errors
113
+
114
+ If Step 4a failed (static checks), fix issues and re-run before entering Step 4b.
86
115
 
87
116
  ---
88
117
 
@@ -107,8 +136,13 @@ If failed, fix issues and re-run.
107
136
 
108
137
  ### Verification Results
109
138
 
110
- - TypeCheck: Passed
111
- - Lint: Passed
139
+ - Lint: PASS / FAIL
140
+ - TypeCheck: PASS / FAIL
141
+ - Compile: PASS / FAIL (project: Maven/Gradle/Go/Rust/TS/JS, rounds: N)
142
+
143
+ ### Compile Errors (if any)
144
+
145
+ (List unresolved compiler errors if max retry reached)
112
146
 
113
147
  ### Summary
114
148
 
@@ -24,6 +24,41 @@ You are already the `rudder-check` sub-agent that the main session dispatched. D
24
24
  4. Fix issues directly when they are within scope.
25
25
  5. Run the relevant lint, typecheck, and focused tests available for the touched code.
26
26
 
27
+ ## Verification
28
+
29
+ ### Step 4a: Static Checks
30
+
31
+ Run project's lint and typecheck commands to verify changes.
32
+
33
+ ### Step 4b: Compile/Build Verification
34
+
35
+ Detect the project type and run the appropriate compile command:
36
+
37
+ | Project type | Detect by | Compile command |
38
+ |-------------|-----------|-----------------|
39
+ | Java (Maven) | `pom.xml` | `mvn compile -q` |
40
+ | Java (Gradle) | `build.gradle` or `build.gradle.kts` | `./gradlew compileJava -q` |
41
+ | Go | `go.mod` | `go build ./...` |
42
+ | Rust | `Cargo.toml` | `cargo check --all-targets` |
43
+ | Kotlin (Gradle) | `build.gradle.kts` | `./gradlew compileKotlin -q` |
44
+ | TypeScript | `tsconfig.json` | `npx tsc --noEmit` |
45
+ | Node.js (JS only) | `package.json` (no tsconfig) | `npx eslint . --no-error-on-unmatched-pattern` |
46
+
47
+ **Tool path resolution**: Use the paths from the `<tool-paths>` block injected at session-start (e.g., `<tool-paths> - java: /path/to/java </tool-paths>`). If a tool's absolute path is listed there, use it; otherwise fall back to the system PATH.
48
+
49
+ **Tool path discovery**: If a required tool is not found or the path is wrong, locate the correct path (e.g., `which mvn`, `where java`) and update `.rudder/config_local.yml` so future sessions can use it directly.
50
+
51
+ ### Step 4c: Compile-Fix Retry Loop
52
+
53
+ If compilation fails, enter a fix loop (max 3 rounds):
54
+
55
+ 1. Parse compiler error output — identify file, line, and error message
56
+ 2. Fix the source code that caused the error
57
+ 3. Re-run the compile command
58
+ 4. If still failing after 3 rounds, stop and report remaining errors
59
+
60
+ If Step 4a failed (static checks), fix issues and re-run before entering Step 4b.
61
+
27
62
  ## Review Priorities
28
63
 
29
64
  - Behavioral regressions and missing requirements.
@@ -33,4 +68,36 @@ You are already the `rudder-check` sub-agent that the main session dispatched. D
33
68
 
34
69
  ## Output
35
70
 
36
- Report findings fixed, files changed, and verification results. If no issues remain, say that clearly.
71
+ Report findings fixed, files changed, and verification results. Use this format:
72
+
73
+ ```markdown
74
+ ## Self-Check Complete
75
+
76
+ ### Files Checked
77
+
78
+ - <changed files>
79
+
80
+ ### Issues Found and Fixed
81
+
82
+ 1. `<file>:<line>` - <what was fixed>
83
+
84
+ ### Issues Not Fixed
85
+
86
+ (If there are issues that cannot be self-fixed, list them here with reasons)
87
+
88
+ ### Verification Results
89
+
90
+ - Lint: PASS / FAIL
91
+ - TypeCheck: PASS / FAIL
92
+ - Compile: PASS / FAIL (project: Maven/Gradle/Go/Rust/TS/JS, rounds: N)
93
+
94
+ ### Compile Errors (if any)
95
+
96
+ (List unresolved compiler errors if max retry reached)
97
+
98
+ ### Summary
99
+
100
+ Checked X files, found Y issues, all fixed.
101
+ ```
102
+
103
+ If no issues remain, say that clearly.
@@ -66,9 +66,38 @@ After finding issues:
66
66
 
67
67
  ### Step 4: Run Verification
68
68
 
69
+ #### Step 4a: Static Checks
70
+
69
71
  Run project's lint and typecheck commands to verify changes.
70
72
 
71
- If failed, fix issues and re-run.
73
+ #### Step 4b: Compile/Build Verification
74
+
75
+ Detect the project type and run the appropriate compile command:
76
+
77
+ | Project type | Detect by | Compile command |
78
+ |-------------|-----------|-----------------|
79
+ | Java (Maven) | `pom.xml` | `mvn compile -q` |
80
+ | Java (Gradle) | `build.gradle` or `build.gradle.kts` | `./gradlew compileJava -q` |
81
+ | Go | `go.mod` | `go build ./...` |
82
+ | Rust | `Cargo.toml` | `cargo check --all-targets` |
83
+ | Kotlin (Gradle) | `build.gradle.kts` | `./gradlew compileKotlin -q` |
84
+ | TypeScript | `tsconfig.json` | `npx tsc --noEmit` |
85
+ | Node.js (JS only) | `package.json` (no tsconfig) | `npx eslint . --no-error-on-unmatched-pattern` |
86
+
87
+ **Tool path resolution**: Use the paths from the `<tool-paths>` block injected at session-start (e.g., `<tool-paths> - java: /path/to/java </tool-paths>`). If a tool's absolute path is listed there, use it; otherwise fall back to the system PATH.
88
+
89
+ **Tool path discovery**: If a required tool is not found or the path is wrong, locate the correct path (e.g., `which mvn`, `where java`) and update `.rudder/config_local.yml` so future sessions can use it directly.
90
+
91
+ #### Step 4c: Compile-Fix Retry Loop
92
+
93
+ If compilation fails, enter a fix loop (max 3 rounds):
94
+
95
+ 1. Parse compiler error output — identify file, line, and error message
96
+ 2. Fix the source code that caused the error
97
+ 3. Re-run the compile command
98
+ 4. If still failing after 3 rounds, stop and report remaining errors
99
+
100
+ If Step 4a failed (static checks), fix issues and re-run before entering Step 4b.
72
101
 
73
102
  ---
74
103
 
@@ -93,8 +122,13 @@ If failed, fix issues and re-run.
93
122
 
94
123
  ### Verification Results
95
124
 
96
- - TypeCheck: Passed
97
- - Lint: Passed
125
+ - Lint: PASS / FAIL
126
+ - TypeCheck: PASS / FAIL
127
+ - Compile: PASS / FAIL (project: Maven/Gradle/Go/Rust/TS/JS, rounds: N)
128
+
129
+ ### Compile Errors (if any)
130
+
131
+ (List unresolved compiler errors if max retry reached)
98
132
 
99
133
  ### Summary
100
134
 
@@ -32,6 +32,19 @@ max_journal_lines: 2000
32
32
  #
33
33
  # session_auto_commit: false
34
34
 
35
+ #-------------------------------------------------------------------------------
36
+ # Code Auto-Commit (Phase 3.4)
37
+ #-------------------------------------------------------------------------------
38
+
39
+ # Whether the AI should auto-commit code after implementation without asking.
40
+ # - false (default): AI runs ``git diff --stat``, states the commit message,
41
+ # then asks for user confirmation (Y/n) before running ``git commit``.
42
+ # - true: AI commits directly without prompting.
43
+ #
44
+ # Accepts: true / false / yes / no / 1 / 0 / on / off (case-insensitive).
45
+ #
46
+ # code_auto_commit: false
47
+
35
48
  #-------------------------------------------------------------------------------
36
49
  # Task Lifecycle Hooks
37
50
  #-------------------------------------------------------------------------------
@@ -93,7 +106,7 @@ max_journal_lines: 2000
93
106
  # Tool Path Configuration
94
107
  #-------------------------------------------------------------------------------
95
108
  # Declare tools your project requires. Rudder will:
96
- # 1. Check config.local.yaml for machine-specific absolute paths
109
+ # 1. Check config_local.yml for machine-specific absolute paths
97
110
  # 2. Auto-detect from version files (.sdkmanrc, .nvmrc, .tool-versions, etc.)
98
111
  # 3. Fall back to searching PATH
99
112
  #
@@ -110,7 +123,7 @@ max_journal_lines: 2000
110
123
  # mvn:
111
124
  # version: "3.9"
112
125
  #
113
- # Personal overrides (.rudder/config.local.yaml — gitignored):
126
+ # Personal overrides (.rudder/config_local.yml — gitignored):
114
127
  # tools:
115
128
  # java:
116
129
  # path: "/usr/local/sdkman/candidates/java/21.0.2-open/bin/java"
@@ -0,0 +1,17 @@
1
+ # Local tool path overrides (machine-specific, not shared with team).
2
+ # This file is gitignored — see .rudder/.gitignore.
3
+ #
4
+ # When the AI detects a missing tool or wrong version during session-start,
5
+ # it will uncomment and fill in the correct absolute path for your machine.
6
+ #
7
+ # tools:
8
+ # java:
9
+ # path: "/path/to/your/java/bin/java"
10
+ # mvn:
11
+ # path: "/path/to/your/maven/bin/mvn"
12
+ # node:
13
+ # path: "/path/to/your/node/bin/node"
14
+ # go:
15
+ # path: "/path/to/your/go/bin/go"
16
+ # python:
17
+ # path: "/path/to/your/python/bin/python"
@@ -32,4 +32,4 @@
32
32
  **/*.pyc
33
33
 
34
34
  # Personal tool path overrides (machine-specific, not shared)
35
- config.local.yaml
35
+ config_local.yml
@@ -44,6 +44,7 @@ export declare const getContextScript: string;
44
44
  export declare const addSessionScript: string;
45
45
  export declare const workflowMdTemplate: string;
46
46
  export declare const configYamlTemplate: string;
47
+ export declare const configLocalYmlTemplate: string;
47
48
  export declare const gitignoreTemplate: string;
48
49
  /**
49
50
  * Get all script templates as a map of relative path to content
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/templates/rudder/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAcH,eAAO,MAAM,WAAW,QAAsC,CAAC;AAG/D,eAAO,MAAM,UAAU,QAA6C,CAAC;AACrE,eAAO,MAAM,WAAW,QAA0C,CAAC;AACnE,eAAO,MAAM,eAAe,QAA8C,CAAC;AAC3E,eAAO,MAAM,gBAAgB,QAAgD,CAAC;AAC9E,eAAO,MAAM,eAAe,QAA+C,CAAC;AAC5E,eAAO,MAAM,eAAe,QAA+C,CAAC;AAC5E,eAAO,MAAM,gBAAgB,QAAgD,CAAC;AAC9E,eAAO,MAAM,gBAAgB,QAAgD,CAAC;AAC9E,eAAO,MAAM,YAAY,QAA2C,CAAC;AACrE,eAAO,MAAM,QAAQ,QAAuC,CAAC;AAC7D,eAAO,MAAM,SAAS,QAAwC,CAAC;AAC/D,eAAO,MAAM,SAAS,QAAwC,CAAC;AAC/D,eAAO,MAAM,WAAW,QAA0C,CAAC;AACnE,eAAO,MAAM,WAAW,QAA0C,CAAC;AACnE,eAAO,MAAM,iBAAiB,QAAiD,CAAC;AAChF,eAAO,MAAM,eAAe,QAA+C,CAAC;AAC5E,eAAO,MAAM,oBAAoB,QAEhC,CAAC;AACF,eAAO,MAAM,qBAAqB,QAEjC,CAAC;AACF,eAAO,MAAM,mBAAmB,QAE/B,CAAC;AACF,eAAO,MAAM,kBAAkB,QAE9B,CAAC;AACF,eAAO,MAAM,gBAAgB,QAAgD,CAAC;AAG9E,eAAO,MAAM,kBAAkB,QAA2C,CAAC;AAC3E,eAAO,MAAM,mBAAmB,QAA4C,CAAC;AAC7E,eAAO,MAAM,UAAU,QAAkC,CAAC;AAC1D,eAAO,MAAM,gBAAgB,QAAyC,CAAC;AACvE,eAAO,MAAM,gBAAgB,QAAyC,CAAC;AAGvE,eAAO,MAAM,kBAAkB,QAA8B,C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,UAAU,QAAkC,CAAC;AAC1D,eAAO,MAAM,gBAAgB,QAAyC,CAAC;AACvE,eAAO,MAAM,gBAAgB,QAAyC,CAAC;AAGvE,eAAO,MAAM,kBAAkB,QAA8B,CAAC;AAC9D,eAAO,MAAM,kBAAkB,QAA8B,CAAC;AAC9D,eAAO,MAAM,sBAAsB,QAAmC,CAAC;AACvE,eAAO,MAAM,iBAAiB,QAAgC,CAAC;AAE/D;;GAEG;AACH,wBAAgB,aAAa,IAAI,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAqCnD"}
@@ -56,6 +56,7 @@ export const addSessionScript = readTemplate("scripts/add_session.py");
56
56
  // Configuration files
57
57
  export const workflowMdTemplate = readTemplate("workflow.md");
58
58
  export const configYamlTemplate = readTemplate("config.yaml");
59
+ export const configLocalYmlTemplate = readTemplate("config_local.yml");
59
60
  export const gitignoreTemplate = readTemplate("gitignore.txt");
60
61
  /**
61
62
  * Get all script templates as a map of relative path to content
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/templates/rudder/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AACvC,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AAC1C,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAEzC,MAAM,UAAU,GAAG,aAAa,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AAClD,MAAM,SAAS,GAAG,OAAO,CAAC,UAAU,CAAC,CAAC;AAEtC,SAAS,YAAY,CAAC,YAAoB;IACxC,OAAO,YAAY,CAAC,IAAI,CAAC,SAAS,EAAE,YAAY,CAAC,EAAE,OAAO,CAAC,CAAC;AAC9D,CAAC;AAED,gCAAgC;AAChC,MAAM,CAAC,MAAM,WAAW,GAAG,YAAY,CAAC,qBAAqB,CAAC,CAAC;AAE/D,0BAA0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next_content_line(lines: list[str], start: int) -> tuple[int, str]:
166
166
  # Defaults
167
167
  DEFAULT_SESSION_COMMIT_MESSAGE = "chore: record journal"
168
168
  DEFAULT_MAX_JOURNAL_LINES = 2000
169
- DEFAULT_SESSION_AUTO_COMMIT = False
169
+ DEFAULT_SESSION_AUTO_COMMIT = False # journal / task archive auto-commit
170
+ DEFAULT_CODE_AUTO_COMMIT = False # Phase 3.4 code commit
170
171
 
171
172
  CONFIG_FILE = "config.yaml"
172
173
 
@@ -243,6 +244,29 @@ def get_session_auto_commit(repo_root: Path | None = None) -> bool:
243
244
  return DEFAULT_SESSION_AUTO_COMMIT
244
245
 
245
246
 
247
+ def get_code_auto_commit(repo_root: Path | None = None) -> bool:
248
+ """Whether Phase 3.4 should auto-commit code without user confirmation.
249
+
250
+ Default: ``False`` — AI shows ``git diff --stat``, states commit message,
251
+ and asks for user confirmation (Y/n) before committing.
252
+ Set ``code_auto_commit: true`` to skip the confirmation step.
253
+
254
+ Accepts native YAML booleans and the string aliases
255
+ ``true / false / yes / no / 1 / 0 / on / off`` (case-insensitive).
256
+ Invalid values fall back to ``False``.
257
+ """
258
+ config = _load_config(repo_root)
259
+ raw = config.get("code_auto_commit", DEFAULT_CODE_AUTO_COMMIT)
260
+ if isinstance(raw, bool):
261
+ return raw
262
+ s = str(raw).strip().lower()
263
+ if s in ("true", "yes", "1", "on"):
264
+ return True
265
+ if s in ("false", "no", "0", "off"):
266
+ return False
267
+ return DEFAULT_CODE_AUTO_COMMIT
268
+
269
+
246
270
  def get_hooks(event: str, repo_root: Path | None = None) -> list[str]:
247
271
  """Get hook commands for a lifecycle event.
248
272
 
@@ -449,11 +473,11 @@ def get_spec_scope(repo_root: Path | None = None) -> list[str] | str | None:
449
473
  # Tool Path Configuration
450
474
  # =============================================================================
451
475
 
452
- LOCAL_CONFIG_FILE = "config.local.yaml"
476
+ LOCAL_CONFIG_FILE = "config_local.yml"
453
477
 
454
478
 
455
479
  def _load_local_config(repo_root: Path | None = None) -> dict:
456
- """Load .rudder/config.local.yaml (personal overrides). Returns {} on missing."""
480
+ """Load .rudder/config_local.yml (personal overrides). Returns {} on missing."""
457
481
  root = repo_root or get_repo_root()
458
482
  local_config_file = root / DIR_WORKFLOW / LOCAL_CONFIG_FILE
459
483
  try:
@@ -464,9 +488,10 @@ def _load_local_config(repo_root: Path | None = None) -> dict:
464
488
 
465
489
 
466
490
  def resolve_tools(repo_root: Path | None = None) -> dict[str, dict]:
467
- """Merge tools from config.yaml with local path overrides from config.local.yaml.
491
+ """Merge tools from config.yaml with local path overrides from config_local.yml.
468
492
 
469
- config.local.yaml wins on path; config.yaml declares what tools are needed.
493
+ config_local.yml wins on path; config.yaml declares what tools are needed.
494
+ Tools only in config_local.yml (discovered by AI during sessions) are also included.
470
495
  Returns dict like:
471
496
  {
472
497
  "java": {"path": "/usr/.../java", "version": "21"},
@@ -479,9 +504,9 @@ def resolve_tools(repo_root: Path | None = None) -> dict[str, dict]:
479
504
  config = _load_config(root)
480
505
  tools = config.get("tools")
481
506
  if not isinstance(tools, dict):
482
- return {}
507
+ tools = {}
483
508
 
484
- # Read personal overrides from config.local.yaml
509
+ # Read personal overrides from config_local.yml
485
510
  local = _load_local_config(root)
486
511
  local_tools = local.get("tools")
487
512
  local_overrides: dict[str, dict] = {}
@@ -499,4 +524,9 @@ def resolve_tools(repo_root: Path | None = None) -> dict[str, dict]:
499
524
  merged[k] = v
500
525
  result[name] = merged
501
526
 
527
+ # Include tools only in config_local.yml (AI-discovered)
528
+ for name, cfg in local_overrides.items():
529
+ if name not in result:
530
+ result[name] = cfg
531
+
502
532
  return result
@@ -135,11 +135,11 @@ def read_rudder_config(repo_root: Optional[Path] = None) -> dict:
135
135
  # Tool Path Configuration (mirrors config.py for hook usage)
136
136
  # =============================================================================
137
137
 
138
- LOCAL_CONFIG_FILE = "config.local.yaml"
138
+ LOCAL_CONFIG_FILE = "config_local.yml"
139
139
 
140
140
 
141
141
  def _load_local_config(repo_root: Optional[Path] = None) -> dict:
142
- """Load .rudder/config.local.yaml (personal overrides). Returns {} on missing."""
142
+ """Load .rudder/config_local.yml (personal overrides). Returns {} on missing."""
143
143
  root = repo_root or Path.cwd()
144
144
  local_config_file = root / ".rudder" / LOCAL_CONFIG_FILE
145
145
  try:
@@ -152,13 +152,14 @@ def _load_local_config(repo_root: Optional[Path] = None) -> dict:
152
152
  def resolve_tools(repo_root: Optional[Path] = None) -> dict[str, dict]:
153
153
  """Merge tools from config.yaml with local path overrides.
154
154
 
155
- config.local.yaml wins on path; config.yaml declares what tools are needed.
155
+ config_local.yml wins on path; config.yaml declares what tools are needed.
156
+ Tools only in config_local.yml (discovered by AI during sessions) are also included.
156
157
  """
157
158
  root = repo_root or Path.cwd()
158
159
  config = read_rudder_config(root)
159
160
  tools = config.get("tools")
160
161
  if not isinstance(tools, dict):
161
- return {}
162
+ tools = {}
162
163
 
163
164
  local = _load_local_config(root)
164
165
  local_tools = local.get("tools")
@@ -176,4 +177,25 @@ def resolve_tools(repo_root: Optional[Path] = None) -> dict[str, dict]:
176
177
  merged[k] = v
177
178
  result[name] = merged
178
179
 
180
+ # Include tools only in config_local.yml (AI-discovered)
181
+ for name, cfg in overrides.items():
182
+ if name not in result:
183
+ result[name] = cfg
184
+
179
185
  return result
186
+
187
+
188
+ def get_code_auto_commit(repo_root: Optional[Path] = None) -> bool:
189
+ """Whether Phase 3.4 should auto-commit code without user confirmation.
190
+
191
+ Default: False — AI shows changes, states commit message, and asks
192
+ for user confirmation (Y/n) before committing.
193
+ Set ``code_auto_commit: true`` to skip the confirmation step.
194
+ """
195
+ root = repo_root or Path.cwd()
196
+ config = read_rudder_config(root)
197
+ raw = config.get("code_auto_commit", False)
198
+ if isinstance(raw, bool):
199
+ return raw
200
+ s = str(raw).strip().lower()
201
+ return s in ("true", "yes", "1", "on")
@@ -199,7 +199,7 @@ Then run `task.py start <task-dir>` to flip status to in_progress.
199
199
 
200
200
  [workflow-state:in_progress]
201
201
  **Flow**: rudder-implement → rudder-check → rudder-update-spec → commit (Phase 3.4) → `/rudder:finish-work`.
202
- **Main-session default (no override)**: dispatch the `rudder-implement` / `rudder-check` sub-agents — the main agent does NOT edit code by default. Phase 3.4 commit (required, once): after rudder-update-spec, or whenever implementation is verifiably complete, the main agent **drives the commit** — state the commit plan in user-facing text, then run `git commit` — BEFORE suggesting `/rudder:finish-work`. `/finish-work` refuses to run on a dirty working tree (paths outside `.rudder/workspace/` and `.rudder/tasks/`).
202
+ **Main-session default (no override)**: dispatch the `rudder-implement` / `rudder-check` sub-agents — the main agent does NOT edit code by default. Phase 3.4 commit (required, once): after rudder-update-spec, or whenever implementation is verifiably complete, the main agent **drives the commit** — run `git diff --stat` to show changes, state the proposed commit message, then check `code_auto_commit` in `.rudder/config.yaml`: if **false** (default), **ask the user for confirmation (Y/n)** before running `git commit`; if **true**, commit directly without prompting. Only after commit, suggest `/rudder:finish-work`. `/finish-work` refuses to run on a dirty working tree (paths outside `.rudder/workspace/` and `.rudder/tasks/`).
203
203
  **Sub-agent self-exemption**: if you are already running as `rudder-implement`, implement directly from the loaded task context and do NOT spawn another `rudder-implement`; if you are already running as `rudder-check`, review/fix directly and do NOT spawn another `rudder-check`. The default dispatch rule applies to the main session only.
204
204
  **Sub-agent dispatch protocol (all platforms, all sub-agents)**: When you spawn `rudder-implement` / `rudder-check` / `rudder-research`, your dispatch prompt **MUST** start with one line: `Active task: <task path from \`task.py current\`>`. No exceptions. On class-2 platforms (codex / copilot / gemini / qoder) the sub-agent depends on this line because there is no hook to inject task context. On class-1 platforms (claude / cursor / opencode / kiro / codebuddy / droid) the line is normally redundant — the hook injects context directly — but it serves as a critical fallback when the hook fails (Windows + Claude Code PreToolUse silent skip, `--continue` resume, fork distribution, hooks disabled, etc.). For `rudder-research`, the line tells the sub-agent which `{task_dir}/research/` to write into.
205
205
  **Inline override** (per-turn only, escape hatch for sub-agent dispatch): the user's CURRENT message MUST explicitly contain one of: "do it inline" / "no sub-agent" / "你直接改" / "别派 sub-agent" / "main session 写就行" / "不用 sub-agent". **Without seeing one of these phrases you must NOT inline on your own**; do not invent an override the user never said.
@@ -213,7 +213,7 @@ Then run `task.py start <task-dir>` to flip status to in_progress.
213
213
  [workflow-state:in_progress-inline]
214
214
  **Flow** (inline mode): main session loads `rudder-before-dev` → main session edits code → main session loads `rudder-check` → run lint / type-check / tests → fix → `rudder-update-spec` → commit (Phase 3.4) → `/rudder:finish-work`.
215
215
  **Main-session default (inline dispatch_mode)**: the main agent edits code directly. Do NOT dispatch `rudder-implement` / `rudder-check` sub-agents. Load the `rudder-before-dev` skill before writing code; load the `rudder-check` skill before reporting completion.
216
- Phase 3.4 commit (required, once): after `rudder-update-spec`, or whenever implementation is verifiably complete, the main agent **drives the commit** — state the commit plan in user-facing text, then run `git commit` — BEFORE suggesting `/rudder:finish-work`. `/finish-work` refuses to run on a dirty working tree (paths outside `.rudder/workspace/` and `.rudder/tasks/`).
216
+ Phase 3.4 commit (required, once): after `rudder-update-spec`, or whenever implementation is verifiably complete, the main agent **drives the commit** — run `git diff --stat` to show changes, state the proposed commit message, then check `code_auto_commit` in `.rudder/config.yaml`: if **false** (default), **ask the user for confirmation (Y/n)** before running `git commit`; if **true**, commit directly without prompting. Only after commit, suggest `/rudder:finish-work`. `/finish-work` refuses to run on a dirty working tree (paths outside `.rudder/workspace/` and `.rudder/tasks/`).
217
217
  [/workflow-state:in_progress-inline]
218
218
 
219
219
  ### Phase 3: Finish
@@ -537,6 +537,8 @@ The check agent's job:
537
537
  - Review code changes against specs
538
538
  - Auto-fix issues it finds
539
539
  - Run lint and typecheck to verify
540
+ - Run compile/build verification (Maven: `mvn compile`, Go: `go build ./...`, etc.)
541
+ - If compilation fails, fix errors and retry (max 3 rounds) before reporting
540
542
 
541
543
  [/Claude Code, Cursor, OpenCode, codex-sub-agent, Kiro, Gemini, Qoder, CodeBuddy, Copilot, Droid, Pi]
542
544
 
@@ -545,6 +547,7 @@ The check agent's job:
545
547
  Load the `rudder-check` skill and verify the code per its guidance:
546
548
  - Spec compliance
547
549
  - lint / type-check / tests
550
+ - Compile/build verification (detect project type, run `mvn compile` / `go build` / `cargo check`, fix errors up to 3 rounds)
548
551
  - Cross-layer consistency (when changes span layers)
549
552
 
550
553
  If issues are found → fix → re-check, until green.
@@ -568,6 +571,7 @@ Goal: ensure code quality, capture lessons, record the work.
568
571
  Load the `rudder-check` skill and do a final verification:
569
572
  - Spec compliance
570
573
  - lint / type-check / tests
574
+ - Compile/build verification (detect project type, run compile command, fix errors up to 3 rounds)
571
575
  - Cross-layer consistency (when changes span layers)
572
576
 
573
577
  If issues are found → fix → re-check, until green.
@@ -504,6 +504,8 @@ def _build_tool_paths_block(rudder_dir: Path) -> str:
504
504
  if version:
505
505
  parts.append(f"(required version: {version})")
506
506
  lines.append(f"- {name}: {' '.join(parts)}")
507
+ lines.append("")
508
+ lines.append("If a tool is missing or the path is wrong, locate the correct path and update `.rudder/config_local.yml`.")
507
509
  lines.append("</tool-paths>")
508
510
  return "\n".join(lines)
509
511
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mengde1231/rudder",
3
- "version": "0.5.23",
3
+ "version": "0.5.30",
4
4
  "description": "AI capabilities grow like ivy — Rudder provides the structure to guide them along a disciplined path",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -12,31 +12,6 @@
12
12
  "publishConfig": {
13
13
  "access": "public"
14
14
  },
15
- "scripts": {
16
- "build": "pnpm run clean && tsc && pnpm run copy-templates",
17
- "clean": "node -e \"require('node:fs').rmSync('dist', { recursive: true, force: true })\"",
18
- "copy-templates": "node scripts/copy-templates.js",
19
- "dev": "tsc --watch",
20
- "start": "node ./dist/cli/index.js",
21
- "test": "vitest run",
22
- "test:watch": "vitest",
23
- "test:coverage": "vitest run --coverage",
24
- "lint": "eslint src/ test/",
25
- "lint:fix": "eslint src/ test/ --fix",
26
- "format": "prettier --write src/",
27
- "format:check": "prettier --check src/",
28
- "typecheck": "tsc --noEmit",
29
- "lint:py": "basedpyright",
30
- "lint:all": "pnpm lint && pnpm lint:py",
31
- "prepublishOnly": "pnpm run build && cp ../../README.md ../../LICENSE .",
32
- "release": "node scripts/check-manifest-continuity.js && pnpm test && git add -A -- ':!docs-site' && (git diff-index --quiet HEAD || git commit -m 'chore: pre-release updates') && pnpm version --no-git-tag-version patch && V=$(node -p \"require('./package.json').version\") && git add package.json && git commit -m \"$V\" && git tag \"v$V\" && git push origin main --tags",
33
- "release:minor": "node scripts/check-manifest-continuity.js && pnpm test && git add -A -- ':!docs-site' && (git diff-index --quiet HEAD || git commit -m 'chore: pre-release updates') && pnpm version --no-git-tag-version minor && V=$(node -p \"require('./package.json').version\") && git add package.json && git commit -m \"$V\" && git tag \"v$V\" && git push origin main --tags",
34
- "release:major": "node scripts/check-manifest-continuity.js && pnpm test && git add -A -- ':!docs-site' && (git diff-index --quiet HEAD || git commit -m 'chore: pre-release updates') && pnpm version --no-git-tag-version major && V=$(node -p \"require('./package.json').version\") && git add package.json && git commit -m \"$V\" && git tag \"v$V\" && git push origin main --tags",
35
- "release:beta": "node scripts/check-manifest-continuity.js && node scripts/check-docs-changelog.js --type beta && pnpm test && git add -A -- ':!docs-site' && (git diff-index --quiet HEAD || git commit -m 'chore: pre-release updates') && pnpm version --no-git-tag-version prerelease --preid beta && V=$(node -p \"require('./package.json').version\") && git add package.json && git commit -m \"$V\" && git tag \"v$V\" && git push origin HEAD --tags",
36
- "release:rc": "node scripts/check-manifest-continuity.js && node scripts/check-docs-changelog.js --type rc && pnpm test && git add -A -- ':!docs-site' && (git diff-index --quiet HEAD || git commit -m 'chore: pre-release updates') && pnpm version --no-git-tag-version prerelease --preid rc && V=$(node -p \"require('./package.json').version\") && git add package.json && git commit -m \"$V\" && git tag \"v$V\" && git push origin HEAD --tags",
37
- "release:promote": "node scripts/check-manifest-continuity.js && node scripts/check-docs-changelog.js --type promote && pnpm test && git add -A -- ':!docs-site' && (git diff-index --quiet HEAD || git commit -m 'chore: pre-release updates') && pnpm version --no-git-tag-version \"$(node -p \"require('./package.json').version.replace(/-.*/, '')\")\" && V=$(node -p \"require('./package.json').version\") && git add package.json && git commit -m \"$V\" && git tag \"v$V\" && git push origin main --tags",
38
- "manifest": "node scripts/create-manifest.js"
39
- },
40
15
  "keywords": [
41
16
  "ai",
42
17
  "workflow",
@@ -84,5 +59,29 @@
84
59
  "repository": {
85
60
  "type": "git",
86
61
  "url": "https://github.com/MengDe1231/Rudder.git"
62
+ },
63
+ "scripts": {
64
+ "build": "pnpm run clean && tsc && pnpm run copy-templates",
65
+ "clean": "node -e \"require('node:fs').rmSync('dist', { recursive: true, force: true })\"",
66
+ "copy-templates": "node scripts/copy-templates.js",
67
+ "dev": "tsc --watch",
68
+ "start": "node ./dist/cli/index.js",
69
+ "test": "vitest run",
70
+ "test:watch": "vitest",
71
+ "test:coverage": "vitest run --coverage",
72
+ "lint": "eslint src/ test/",
73
+ "lint:fix": "eslint src/ test/ --fix",
74
+ "format": "prettier --write src/",
75
+ "format:check": "prettier --check src/",
76
+ "typecheck": "tsc --noEmit",
77
+ "lint:py": "basedpyright",
78
+ "lint:all": "pnpm lint && pnpm lint:py",
79
+ "release": "node scripts/check-manifest-continuity.js && pnpm test && git add -A -- ':!docs-site' && (git diff-index --quiet HEAD || git commit -m 'chore: pre-release updates') && pnpm version --no-git-tag-version patch && V=$(node -p \"require('./package.json').version\") && git add package.json && git commit -m \"$V\" && git tag \"v$V\" && git push origin main --tags",
80
+ "release:minor": "node scripts/check-manifest-continuity.js && pnpm test && git add -A -- ':!docs-site' && (git diff-index --quiet HEAD || git commit -m 'chore: pre-release updates') && pnpm version --no-git-tag-version minor && V=$(node -p \"require('./package.json').version\") && git add package.json && git commit -m \"$V\" && git tag \"v$V\" && git push origin main --tags",
81
+ "release:major": "node scripts/check-manifest-continuity.js && pnpm test && git add -A -- ':!docs-site' && (git diff-index --quiet HEAD || git commit -m 'chore: pre-release updates') && pnpm version --no-git-tag-version major && V=$(node -p \"require('./package.json').version\") && git add package.json && git commit -m \"$V\" && git tag \"v$V\" && git push origin main --tags",
82
+ "release:beta": "node scripts/check-manifest-continuity.js && node scripts/check-docs-changelog.js --type beta && pnpm test && git add -A -- ':!docs-site' && (git diff-index --quiet HEAD || git commit -m 'chore: pre-release updates') && pnpm version --no-git-tag-version prerelease --preid beta && V=$(node -p \"require('./package.json').version\") && git add package.json && git commit -m \"$V\" && git tag \"v$V\" && git push origin HEAD --tags",
83
+ "release:rc": "node scripts/check-manifest-continuity.js && node scripts/check-docs-changelog.js --type rc && pnpm test && git add -A -- ':!docs-site' && (git diff-index --quiet HEAD || git commit -m 'chore: pre-release updates') && pnpm version --no-git-tag-version prerelease --preid rc && V=$(node -p \"require('./package.json').version\") && git add package.json && git commit -m \"$V\" && git tag \"v$V\" && git push origin HEAD --tags",
84
+ "release:promote": "node scripts/check-manifest-continuity.js && node scripts/check-docs-changelog.js --type promote && pnpm test && git add -A -- ':!docs-site' && (git diff-index --quiet HEAD || git commit -m 'chore: pre-release updates') && pnpm version --no-git-tag-version \"$(node -p \"require('./package.json').version.replace(/-.*/, '')\")\" && V=$(node -p \"require('./package.json').version\") && git add package.json && git commit -m \"$V\" && git tag \"v$V\" && git push origin main --tags",
85
+ "manifest": "node scripts/create-manifest.js"
87
86
  }
88
- }
87
+ }