@agent-lint/mcp 0.5.0 → 0.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,15 @@
1
1
  # @agent-lint/mcp Changelog
2
2
 
3
+ ## 0.6.0
4
+
5
+ ### Minor Changes
6
+
7
+ - 4d64e2a: Add workflow discipline guidance to agents, workflows, and plans artifact types.
8
+
9
+ New `buildWorkflowDisciplineGuidance()` section in guidelines output covers plan-first default, subagent strategy, self-improvement loops, verification gates, demand elegance, and autonomous problem solving — inspired by Boris Cherny's Claude Code team workflow patterns.
10
+
11
+ Prompt packs for agents, workflows, and plans now include workflow discipline bullets. README resources updated with the source reference.
12
+
3
13
  ## 0.5.0
4
14
 
5
15
  ### Minor Changes
package/dist/bin.js CHANGED
@@ -4,7 +4,7 @@ import {
4
4
  logMcp,
5
5
  runHttpServer,
6
6
  runStdioServer
7
- } from "./chunk-NJGL2ALY.js";
7
+ } from "./chunk-J6ASFYU4.js";
8
8
 
9
9
  // src/bin.ts
10
10
  var nodeVersion = parseInt(process.versions.node.split(".")[0], 10);
@@ -17834,6 +17834,13 @@ var promptPacks = {
17834
17834
  "- Distinguish trusted project instructions from untrusted external text.",
17835
17835
  "- Prefer references like @docs/... instead of long explanations.",
17836
17836
  "",
17837
+ "Workflow discipline (include when the project benefits from structured agent behavior):",
17838
+ "- Plan-first: enter plan mode for non-trivial tasks (3+ steps); re-plan when blocked.",
17839
+ "- Subagent strategy: offload research and parallel analysis to subagents; one task per subagent.",
17840
+ "- Self-improvement: capture corrections in a lessons file and review at session start.",
17841
+ "- Verification before done: prove correctness with tests, logs, or diffs before marking complete.",
17842
+ "- Autonomous problem solving: resolve bugs and failing CI end-to-end without hand-holding.",
17843
+ "",
17837
17844
  "Guardrails:",
17838
17845
  sharedGuardrails
17839
17846
  ].join("\n")
@@ -17888,6 +17895,11 @@ var promptPacks = {
17888
17895
  "",
17889
17896
  "Every step must be actionable and testable.",
17890
17897
  "",
17898
+ "Workflow discipline:",
17899
+ "- Plan-first: design the workflow before executing; re-plan when a step fails.",
17900
+ "- Verification gates: each ordered step should define how to confirm it succeeded.",
17901
+ "- Autonomous execution: workflows should resolve errors inline rather than escalating for every failure.",
17902
+ "",
17891
17903
  "Guardrails:",
17892
17904
  sharedGuardrails
17893
17905
  ].join("\n")
@@ -17915,6 +17927,11 @@ var promptPacks = {
17915
17927
  "- Use concise checkboxes",
17916
17928
  "- Include rollback notes for risky changes",
17917
17929
  "",
17930
+ "Workflow discipline:",
17931
+ "- Plan-first: write the plan before any implementation begins; re-plan when blocked.",
17932
+ "- Verification gates: each phase should include acceptance criteria that prove correctness.",
17933
+ "- Self-improvement: capture lessons learned during execution to refine future plans.",
17934
+ "",
17918
17935
  "Guardrails:",
17919
17936
  sharedGuardrails
17920
17937
  ].join("\n")
@@ -18098,6 +18115,54 @@ function buildSkillSpecificGuidance() {
18098
18115
  "- **Better**: `Cherry-pick the commit onto a clean branch. Resolve conflicts preserving intent. If it can't land cleanly, explain why.`"
18099
18116
  ].join("\n");
18100
18117
  }
18118
+ var WORKFLOW_DISCIPLINE_TYPES = /* @__PURE__ */ new Set([
18119
+ "agents",
18120
+ "workflows",
18121
+ "plans"
18122
+ ]);
18123
+ function buildWorkflowDisciplineGuidance() {
18124
+ return [
18125
+ "## Workflow discipline",
18126
+ "",
18127
+ "Include guidance on how agents should approach tasks, not just what artifacts look like.",
18128
+ "",
18129
+ "### 1. Plan-first default",
18130
+ "",
18131
+ "- Enter plan mode for any non-trivial task (3+ steps or architectural decisions).",
18132
+ "- If execution hits a blocker, stop and re-plan immediately \u2014 do not push through a failing approach.",
18133
+ "- Use plan mode for verification steps, not only for building.",
18134
+ "",
18135
+ "### 2. Subagent strategy",
18136
+ "",
18137
+ "- Offload research, exploration, and parallel analysis to subagents to keep the main context window clean.",
18138
+ "- One focused task per subagent for predictable results.",
18139
+ "- For complex problems, prefer more subagents over longer single-agent sessions.",
18140
+ "",
18141
+ "### 3. Self-improvement loop",
18142
+ "",
18143
+ "- After any correction, capture the pattern in a lessons file (e.g. `tasks/lessons.md`).",
18144
+ "- Write rules that prevent the same mistake from recurring.",
18145
+ "- Review accumulated lessons at session start for the active project.",
18146
+ "",
18147
+ "### 4. Verification before done",
18148
+ "",
18149
+ "- Never mark a task complete without proving it works: run tests, check logs, diff behavior.",
18150
+ "- Ask: *Would a staff engineer approve this?*",
18151
+ "- When relevant, diff behavior between the base branch and your changes.",
18152
+ "",
18153
+ "### 5. Demand elegance (balanced)",
18154
+ "",
18155
+ "- For non-trivial changes, pause and ask whether a more elegant solution exists.",
18156
+ "- If a fix feels hacky, step back and implement the clean solution with full context.",
18157
+ "- Skip this for simple, obvious fixes \u2014 do not over-engineer.",
18158
+ "",
18159
+ "### 6. Autonomous problem solving",
18160
+ "",
18161
+ "- When given a bug report, resolve it end-to-end without requiring hand-holding.",
18162
+ "- Point at logs, errors, and failing tests \u2014 then fix them.",
18163
+ "- Fix failing CI tests without being told how."
18164
+ ].join("\n");
18165
+ }
18101
18166
  function buildGuardrailsBlock() {
18102
18167
  return [
18103
18168
  "## Guardrails",
@@ -18154,6 +18219,7 @@ function buildGuidelines(type, client = "generic") {
18154
18219
  buildTemplateSkeleton(type),
18155
18220
  "",
18156
18221
  ...type === "skills" ? ["---", "", buildSkillSpecificGuidance(), ""] : [],
18222
+ ...WORKFLOW_DISCIPLINE_TYPES.has(type) ? ["---", "", buildWorkflowDisciplineGuidance(), ""] : [],
18157
18223
  "---",
18158
18224
  "",
18159
18225
  "## File discovery",
@@ -20924,8 +20990,8 @@ function resolveServerVersion() {
20924
20990
  if (process.env.npm_package_name === "@agent-lint/mcp" && process.env.npm_package_version) {
20925
20991
  return process.env.npm_package_version;
20926
20992
  }
20927
- if ("0.5.0".length > 0) {
20928
- return "0.5.0";
20993
+ if ("0.6.0".length > 0) {
20994
+ return "0.6.0";
20929
20995
  }
20930
20996
  try {
20931
20997
  const pkg = JSON.parse(
@@ -21405,4 +21471,4 @@ strip-bom-string/index.js:
21405
21471
  * Released under the MIT License.
21406
21472
  *)
21407
21473
  */
21408
- //# sourceMappingURL=chunk-NJGL2ALY.js.map
21474
+ //# sourceMappingURL=chunk-J6ASFYU4.js.map