maxsimcli 3.3.1 → 3.5.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/README.md +7 -2
- package/dist/assets/CHANGELOG.md +14 -0
- package/dist/assets/templates/agents/maxsim-executor.md +53 -0
- package/dist/assets/templates/agents/maxsim-plan-checker.md +2 -0
- package/dist/assets/templates/agents/maxsim-planner.md +2 -0
- package/dist/assets/templates/agents/maxsim-verifier.md +49 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -8,8 +8,13 @@
|
|
|
8
8
|
|
|
9
9
|
[](https://www.npmjs.com/package/maxsimcli)
|
|
10
10
|
[](https://www.npmjs.com/package/maxsimcli)
|
|
11
|
-
[](https://github.com/maystudios/maxsim)
|
|
12
|
+
[](LICENSE)
|
|
13
|
+
|
|
14
|
+
<br>
|
|
15
|
+
|
|
16
|
+
[](https://maxsimcli.dev/)
|
|
17
|
+
[](https://maxsimcli.dev/docs)
|
|
13
18
|
|
|
14
19
|
<br>
|
|
15
20
|
|
package/dist/assets/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,17 @@
|
|
|
1
|
+
# [3.5.0](https://github.com/maystudios/maxsim/compare/v3.4.0...v3.5.0) (2026-02-26)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Features
|
|
5
|
+
|
|
6
|
+
* **website:** comprehensive SEO overhaul with meta tags, sitemap, and structured data ([33db639](https://github.com/maystudios/maxsim/commit/33db6392345312f84a2d89a355a64d7d00335612))
|
|
7
|
+
|
|
8
|
+
# [3.4.0](https://github.com/maystudios/maxsim/compare/v3.3.1...v3.4.0) (2026-02-26)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Features
|
|
12
|
+
|
|
13
|
+
* **agents:** add self-improvement loop to MAXSIM agents ([48e12c3](https://github.com/maystudios/maxsim/commit/48e12c36a56013a880ca31524f47250aedcbb4bc))
|
|
14
|
+
|
|
1
15
|
## [3.3.1](https://github.com/maystudios/maxsim/compare/v3.3.0...v3.3.1) (2026-02-26)
|
|
2
16
|
|
|
3
17
|
|
|
@@ -21,6 +21,8 @@ Before executing, discover project context:
|
|
|
21
21
|
|
|
22
22
|
**Project instructions:** Read `./CLAUDE.md` if it exists in the working directory. Follow all project-specific guidelines, security requirements, and coding conventions.
|
|
23
23
|
|
|
24
|
+
**Self-improvement lessons:** Read `.planning/LESSONS.md` if it exists — accumulated lessons from past executions on this codebase. Apply them proactively to avoid known mistakes before they become deviations.
|
|
25
|
+
|
|
24
26
|
**Project skills:** Check `.agents/skills/` directory if it exists:
|
|
25
27
|
1. List available skills (subdirectories)
|
|
26
28
|
2. Read `SKILL.md` for each skill (lightweight index ~130 lines)
|
|
@@ -356,6 +358,57 @@ Or: "None - plan executed exactly as written."
|
|
|
356
358
|
**Auth gates section** (if any occurred): Document which task, what was needed, outcome.
|
|
357
359
|
</summary_creation>
|
|
358
360
|
|
|
361
|
+
<self_improvement>
|
|
362
|
+
After documenting deviations in SUMMARY.md, extract lessons to improve future agent runs.
|
|
363
|
+
|
|
364
|
+
**Only run when deviations occurred** — skip entirely if "None - plan executed exactly as written."
|
|
365
|
+
|
|
366
|
+
**For each deviation (Rule 1-3), determine the lesson type:**
|
|
367
|
+
|
|
368
|
+
- **Codebase Pattern:** Something specific to THIS project's setup, conventions, or architecture
|
|
369
|
+
- **Common Mistake:** A recurring coding issue agents should fix proactively before it happens
|
|
370
|
+
|
|
371
|
+
**Write or update `.planning/LESSONS.md`.**
|
|
372
|
+
|
|
373
|
+
If the file does not exist, create it first using the Write tool:
|
|
374
|
+
|
|
375
|
+
```markdown
|
|
376
|
+
# MAXSIM Self-Improvement Lessons
|
|
377
|
+
|
|
378
|
+
> Auto-updated by MAXSIM agents after each execution. Read this at the start of every planning and execution session.
|
|
379
|
+
|
|
380
|
+
## Codebase Patterns
|
|
381
|
+
<!-- Project-specific conventions, gotchas, and setup details discovered during execution -->
|
|
382
|
+
|
|
383
|
+
## Common Mistakes
|
|
384
|
+
<!-- Recurring issues agents should fix proactively — before they cause deviations -->
|
|
385
|
+
|
|
386
|
+
## Planning Insights
|
|
387
|
+
<!-- Scope, dependency, or requirement gaps that planners should anticipate -->
|
|
388
|
+
```
|
|
389
|
+
|
|
390
|
+
Then append new lessons under the matching section using the Edit tool.
|
|
391
|
+
|
|
392
|
+
**Lesson format:**
|
|
393
|
+
```
|
|
394
|
+
- [YYYY-MM-DD] [{phase}-{plan}] {actionable lesson — specific, avoidable, codebase-aware}
|
|
395
|
+
```
|
|
396
|
+
|
|
397
|
+
**Examples of good lessons:**
|
|
398
|
+
- `[2026-02-26] [01-02] All API routes require CORS headers — add cors middleware to every new Express route`
|
|
399
|
+
- `[2026-02-26] [02-01] user.profile can be null — always guard with ?. before accessing nested fields`
|
|
400
|
+
- `[2026-02-26] [03-02] bun is the package manager here (not npm) — use bun run, bun add, bun install`
|
|
401
|
+
|
|
402
|
+
**Examples of bad lessons (too generic — do not add):**
|
|
403
|
+
- "Always add error handling" — not codebase-specific
|
|
404
|
+
- "Check for null values" — not actionable enough
|
|
405
|
+
|
|
406
|
+
**Rules:**
|
|
407
|
+
- Cap at 3 new lessons per execution — choose the most codebase-specific
|
|
408
|
+
- Check for existing similar lessons before appending to avoid duplicates
|
|
409
|
+
- Append to the existing file using Edit, never overwrite
|
|
410
|
+
</self_improvement>
|
|
411
|
+
|
|
359
412
|
<self_check>
|
|
360
413
|
After writing SUMMARY.md, verify claims before proceeding.
|
|
361
414
|
|
|
@@ -31,6 +31,8 @@ Before verifying, discover project context:
|
|
|
31
31
|
|
|
32
32
|
**Project instructions:** Read `./CLAUDE.md` if it exists in the working directory. Follow all project-specific guidelines, security requirements, and coding conventions.
|
|
33
33
|
|
|
34
|
+
**Self-improvement lessons:** Read `.planning/LESSONS.md` if it exists — accumulated lessons from past executions. Use planning insights as an additional verification dimension: flag plans that repeat known gap patterns or ignore documented codebase conventions.
|
|
35
|
+
|
|
34
36
|
**Project skills:** Check `.agents/skills/` directory if it exists:
|
|
35
37
|
1. List available skills (subdirectories)
|
|
36
38
|
2. Read `SKILL.md` for each skill (lightweight index ~130 lines)
|
|
@@ -33,6 +33,8 @@ Before planning, discover project context:
|
|
|
33
33
|
|
|
34
34
|
**Project instructions:** Read `./CLAUDE.md` if it exists in the working directory. Follow all project-specific guidelines, security requirements, and coding conventions.
|
|
35
35
|
|
|
36
|
+
**Self-improvement lessons:** Read `.planning/LESSONS.md` if it exists — accumulated lessons from past executions on this codebase. Apply planning insights proactively: avoid known gaps, include wiring tasks for patterns that historically broke, reference codebase-specific conventions in task actions.
|
|
37
|
+
|
|
36
38
|
**Project skills:** Check `.agents/skills/` directory if it exists:
|
|
37
39
|
1. List available skills (subdirectories)
|
|
38
40
|
2. Read `SKILL.md` for each skill (lightweight index ~130 lines)
|
|
@@ -16,6 +16,12 @@ If the prompt contains a `<files_to_read>` block, you MUST use the `Read` tool t
|
|
|
16
16
|
**Critical mindset:** Do NOT trust SUMMARY.md claims. SUMMARYs document what Claude SAID it did. You verify what ACTUALLY exists in the code. These often differ.
|
|
17
17
|
</role>
|
|
18
18
|
|
|
19
|
+
<project_context>
|
|
20
|
+
Before verifying, load project context:
|
|
21
|
+
|
|
22
|
+
**Self-improvement lessons:** Read `.planning/LESSONS.md` if it exists — accumulated lessons from past executions. Use planning insights to sharpen your verification focus (e.g., known stub patterns, wiring gaps common in this codebase).
|
|
23
|
+
</project_context>
|
|
24
|
+
|
|
19
25
|
<core_principle>
|
|
20
26
|
**Task completion ≠ Goal achievement**
|
|
21
27
|
|
|
@@ -470,6 +476,49 @@ Automated checks passed. Awaiting human verification.
|
|
|
470
476
|
|
|
471
477
|
</output>
|
|
472
478
|
|
|
479
|
+
<self_improvement>
|
|
480
|
+
After writing VERIFICATION.md, if status is `gaps_found`, extract planning lessons.
|
|
481
|
+
|
|
482
|
+
**Purpose:** Help future planners anticipate gaps that planning typically misses on this codebase.
|
|
483
|
+
|
|
484
|
+
**For each gap, determine the root cause:**
|
|
485
|
+
- Artifact completely missing → planner assumed it would appear as a side effect of another task
|
|
486
|
+
- Artifact is a stub → executor left a placeholder; planner needs explicit `min_lines` in must_haves
|
|
487
|
+
- Wiring broken → component exists but not connected; planner should add an explicit wiring task
|
|
488
|
+
|
|
489
|
+
**Append to `.planning/LESSONS.md`** under `## Planning Insights` using the Edit tool.
|
|
490
|
+
|
|
491
|
+
If `.planning/LESSONS.md` does not exist, create it with the Write tool using this header:
|
|
492
|
+
|
|
493
|
+
```markdown
|
|
494
|
+
# MAXSIM Self-Improvement Lessons
|
|
495
|
+
|
|
496
|
+
> Auto-updated by MAXSIM agents after each execution. Read this at the start of every planning and execution session.
|
|
497
|
+
|
|
498
|
+
## Codebase Patterns
|
|
499
|
+
<!-- Project-specific conventions, gotchas, and setup details discovered during execution -->
|
|
500
|
+
|
|
501
|
+
## Common Mistakes
|
|
502
|
+
<!-- Recurring issues agents should fix proactively — before they cause deviations -->
|
|
503
|
+
|
|
504
|
+
## Planning Insights
|
|
505
|
+
<!-- Scope, dependency, or requirement gaps that planners should anticipate -->
|
|
506
|
+
```
|
|
507
|
+
|
|
508
|
+
**Lesson format:**
|
|
509
|
+
```
|
|
510
|
+
- [YYYY-MM-DD] [verifier:{phase}] {what was missed and how future planners can prevent it}
|
|
511
|
+
```
|
|
512
|
+
|
|
513
|
+
**Examples of good planning insights:**
|
|
514
|
+
- `[2026-02-26] [verifier:03] Auth middleware was missing even though routes required it — always include auth wiring as an explicit task when plans touch protected endpoints`
|
|
515
|
+
- `[2026-02-26] [verifier:02] ChatList component was a stub (< 20 lines) — set min_lines ≥ 30 in must_haves for components that render data`
|
|
516
|
+
|
|
517
|
+
**Only add if the gap reveals a repeatable planning pattern** — not a one-off typo. Cap at 2 lessons per verification.
|
|
518
|
+
|
|
519
|
+
**Do not commit LESSONS.md** — the orchestrator handles committing phase artifacts.
|
|
520
|
+
</self_improvement>
|
|
521
|
+
|
|
473
522
|
<critical_rules>
|
|
474
523
|
|
|
475
524
|
**DO NOT trust SUMMARY claims.** Verify the component actually renders messages, not a placeholder.
|
package/package.json
CHANGED