@itz4blitz/agentful 1.6.0 → 1.8.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 CHANGED
@@ -11,14 +11,14 @@
11
11
 
12
12
  [![Downloads](https://img.shields.io/npm/dm/@itz4blitz/agentful.svg)](https://www.npmjs.com/package/@itz4blitz/agentful)
13
13
  [![GitHub Stars](https://img.shields.io/github/stars/itz4blitz/agentful?style=social)](https://github.com/itz4blitz/agentful)
14
- [![Discord](https://img.shields.io/badge/Discord-Join%20Us-7289da)](https://discord.gg/SMDvJXUe)
14
+ [![Discord](https://img.shields.io/badge/Discord-Join%20Us-7289da)](https://discord.gg/X2tCJh76rG)
15
15
  [![Documentation](https://img.shields.io/badge/docs-agentful.app-blue)](https://agentful.app)
16
16
 
17
17
  **Pre-configured development toolkit for Claude Code**
18
18
 
19
19
  Orchestrates specialized agents in parallel with inter-agent communication to build features from product specs.
20
20
 
21
- [Quick Start](#quick-start) • [Documentation](https://agentful.app) • [Discord](https://discord.gg/SMDvJXUe)
21
+ [Quick Start](#quick-start) • [Documentation](https://agentful.app) • [Discord](https://discord.gg/X2tCJh76rG)
22
22
 
23
23
  </div>
24
24
 
@@ -49,6 +49,16 @@ claude
49
49
  /agentful-start
50
50
  ```
51
51
 
52
+ ## Pattern Learning
53
+
54
+ Enable agents to learn from every session and reuse successful patterns:
55
+
56
+ ```bash
57
+ claude mcp add agentful -- npx -y @itz4blitz/agentful-mcp-server
58
+ ```
59
+
60
+ The reviewer stores error patterns, the fixer looks up known fixes, and the orchestrator stores successful implementation patterns - compounding knowledge across sessions.
61
+
52
62
  ## Installation Options
53
63
 
54
64
  ```bash
@@ -104,7 +114,7 @@ Auto-detects and adapts to your stack:
104
114
 
105
115
  - **Docs**: [agentful.app](https://agentful.app)
106
116
  - **GitHub**: [github.com/itz4blitz/agentful](https://github.com/itz4blitz/agentful)
107
- - **Discord**: [discord.gg/SMDvJXUe](https://discord.gg/SMDvJXUe)
117
+ - **Discord**: [discord.gg/SMDvJXUe](https://discord.gg/X2tCJh76rG)
108
118
  - **Issues**: [github.com/itz4blitz/agentful/issues](https://github.com/itz4blitz/agentful/issues)
109
119
  - **NPM**: [npmjs.com/package/@itz4blitz/agentful](https://www.npmjs.com/package/@itz4blitz/agentful)
110
120
 
package/bin/cli.js CHANGED
@@ -411,6 +411,13 @@ async function init(args) {
411
411
  }
412
412
  log(colors.dim, 'Optional: Edit CLAUDE.md and .claude/product/index.md first to customize.');
413
413
  console.log('');
414
+ log(colors.bright, 'Recommended: Enable Pattern Learning');
415
+ console.log('');
416
+ log(colors.dim, ' Agents get smarter when they can store and reuse patterns.');
417
+ log(colors.dim, ' Run this once to enable:');
418
+ console.log('');
419
+ log(colors.cyan, ' claude mcp add agentful -- npx -y @itz4blitz/agentful-mcp-server');
420
+ console.log('');
414
421
  }
415
422
 
416
423
  function showStatus() {
@@ -176,7 +176,10 @@ if (isInAllowedDir) {
176
176
  '.agentful/conversation-state.json',
177
177
  '.agentful/conversation-history.json',
178
178
  '.agentful/agent-metrics.json',
179
- '.agentful/metadata.json'
179
+ '.agentful/metadata.json',
180
+ '.agentful/learnings.json',
181
+ '.agentful/last-validation.json',
182
+ '.agentful/product-analysis.json'
180
183
  ];
181
184
 
182
185
  if (agentfulFiles.includes(normalizedPath)) {
@@ -198,6 +201,9 @@ Allowed .agentful/ files:
198
201
  - conversation-history.json (message history)
199
202
  - agent-metrics.json (agent lifecycle hooks)
200
203
  - metadata.json (version tracking)
204
+ - learnings.json (compound engineering retrospectives)
205
+ - last-validation.json (latest validation report)
206
+ - product-analysis.json (product spec analysis)
201
207
 
202
208
  Do NOT create random state snapshots or debug files in .agentful/.
203
209
  `);
@@ -48,7 +48,8 @@ export function detectTeammateTool() {
48
48
  }
49
49
 
50
50
  if (isNativeBinary(claudePath)) {
51
- return { available: false, reason: 'Native binary detected - patching not supported', isNative: true };
51
+ // Native Claude Code binaries have built-in parallel execution via Task tool
52
+ return { available: true, method: 'native', isNative: true };
52
53
  }
53
54
 
54
55
  const cliContent = fs.readFileSync(claudePath, 'utf8');
@@ -151,7 +152,8 @@ export function enableTeammateTool() {
151
152
  }
152
153
 
153
154
  if (isNativeBinary(claudePath)) {
154
- return { success: false, error: 'Native binary detected - patching not supported. TeammateTool patching only works with npm-installed Claude Code.' };
155
+ // Native binaries have built-in support, no patching needed
156
+ return { success: true, message: 'Native binary has built-in parallel execution support', alreadyEnabled: true };
155
157
  }
156
158
 
157
159
  // Backup original
package/lib/presets.js CHANGED
@@ -212,7 +212,7 @@ export function listPresets() {
212
212
  export function validateConfiguration(config) {
213
213
  const errors = [];
214
214
  const availableAgents = ['orchestrator', 'architect', 'backend', 'frontend', 'tester', 'reviewer', 'fixer', 'product-analyzer'];
215
- const availableSkills = ['product-tracking', 'validation', 'testing', 'conversation', 'product-planning', 'deployment'];
215
+ const availableSkills = ['product-tracking', 'validation', 'testing', 'conversation', 'product-planning', 'deployment', 'research'];
216
216
  const availableHooks = Object.keys(hookConfigurations);
217
217
 
218
218
  // Always require orchestrator
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@itz4blitz/agentful",
3
- "version": "1.6.0",
3
+ "version": "1.8.0",
4
4
  "description": "Pre-configured AI toolkit with self-hosted execution - works with any LLM, any tech stack, any platform.",
5
5
  "type": "module",
6
6
  "bin": {
@@ -2,7 +2,7 @@
2
2
  name: backend
3
3
  description: Implements backend services, repositories, controllers, APIs, database schemas, authentication. Never modifies frontend code.
4
4
  model: sonnet
5
- tools: Read, Write, Edit, Glob, Grep, Bash, mcp__agentful-mcp-server__find_patterns, mcp__agentful-mcp-server__store_pattern, mcp__agentful-mcp-server__add_feedback
5
+ tools: Read, Write, Edit, Glob, Grep, Bash, mcp__agentful__find_patterns, mcp__agentful__store_pattern, mcp__agentful__add_feedback
6
6
  ---
7
7
 
8
8
  # Backend Agent
@@ -2,7 +2,7 @@
2
2
  name: fixer
3
3
  description: Automatically fixes validation failures identified by reviewer. Removes dead code, adds tests, resolves issues.
4
4
  model: sonnet
5
- tools: Read, Write, Edit, Glob, Grep, Bash, mcp__agentful-mcp-server__find_patterns, mcp__agentful-mcp-server__store_pattern, mcp__agentful-mcp-server__add_feedback
5
+ tools: Read, Write, Edit, Glob, Grep, Bash, mcp__agentful__find_patterns, mcp__agentful__store_pattern, mcp__agentful__add_feedback
6
6
  ---
7
7
 
8
8
  # Fixer Agent
@@ -2,7 +2,7 @@
2
2
  name: frontend
3
3
  description: Implements frontend UI components, pages, hooks, state management, styling. Never modifies backend code.
4
4
  model: sonnet
5
- tools: Read, Write, Edit, Glob, Grep, Bash, mcp__agentful-mcp-server__find_patterns, mcp__agentful-mcp-server__store_pattern, mcp__agentful-mcp-server__add_feedback
5
+ tools: Read, Write, Edit, Glob, Grep, Bash, mcp__agentful__find_patterns, mcp__agentful__store_pattern, mcp__agentful__add_feedback
6
6
  ---
7
7
 
8
8
  # Frontend Agent
@@ -330,8 +330,9 @@ TodoWrite([
330
330
  6. Run @reviewer for quality gates
331
331
  7. If issues → @fixer → re-validate
332
332
  8. Update completion.json
333
- 9. Check if architecture needs re-analysis
334
- 10. LOOP until 100% complete
333
+ 9. COMPOUND: Store learnings and patterns
334
+ 10. Check if architecture needs re-analysis
335
+ 11. LOOP until 100% complete
335
336
  ```
336
337
 
337
338
  ### BUGFIX / ENHANCEMENT / REFACTOR
@@ -502,6 +503,48 @@ Task("reviewer agent", "Review all changes in src/auth/")
502
503
  - ❌ Fixer needs reviewer results before fixing issues
503
504
  - ❌ Quality gates (must validate sequentially)
504
505
 
506
+ ### COMPOUND Phase
507
+
508
+ After a feature passes all quality gates in FEATURE_DEVELOPMENT, run the compound phase:
509
+
510
+ 1. **Store successful patterns to MCP** (if available):
511
+ ```
512
+ Try MCP tool: store_pattern
513
+ - code: <key implementation pattern that worked well>
514
+ - tech_stack: <detected tech stack>
515
+ ```
516
+ - Only store if feature passed all quality gates
517
+ - Focus on reusable patterns (not one-off code)
518
+ - If tool unavailable: skip silently
519
+
520
+ 2. **Append retrospective to `.agentful/learnings.json`** (create if missing):
521
+ ```json
522
+ {
523
+ "learnings": [
524
+ {
525
+ "feature": "<feature name>",
526
+ "timestamp": "<ISO 8601>",
527
+ "review_fix_cycles": <number of review→fix→re-validate cycles>,
528
+ "gates_failed_initially": ["<gate names that failed on first review>"],
529
+ "key_learning": "<1-sentence summary of what was learned>"
530
+ }
531
+ ]
532
+ }
533
+ ```
534
+
535
+ 3. **Track iteration metrics** in `state.json`:
536
+ ```json
537
+ {
538
+ "last_feature_metrics": {
539
+ "feature": "<feature name>",
540
+ "cycles": <review/fix cycle count>,
541
+ "gates_passed_first_try": <boolean>
542
+ }
543
+ }
544
+ ```
545
+
546
+ **Skip COMPOUND for**: BUGFIX, ENHANCEMENT, REFACTOR workflows and blocked/skipped features.
547
+
505
548
  ## Decision Handling
506
549
 
507
550
  When you need user input:
@@ -2,7 +2,7 @@
2
2
  name: reviewer
3
3
  description: Reviews code quality, finds dead code, validates production readiness. Runs all checks and reports issues.
4
4
  model: sonnet
5
- tools: Read, Write, Edit, Glob, Grep, Bash
5
+ tools: Read, Write, Edit, Glob, Grep, Bash, mcp__agentful__store_pattern
6
6
  ---
7
7
 
8
8
  # Reviewer Agent
@@ -221,9 +221,21 @@ When validation tools are unavailable:
221
221
 
222
222
  ## After Implementation
223
223
 
224
- Report:
225
- - Overall validation status (passed/failed)
226
- - Which gates passed/failed
227
- - List of issues requiring fixes
228
- - List of warnings that can be ignored
229
- - Recommendation: delegate to @fixer if issues found
224
+ 1. **Store error patterns to MCP** (if available):
225
+ For each failed gate with specific error messages:
226
+ ```
227
+ Try MCP tool: store_pattern
228
+ - code: <error pattern and context>
229
+ - tech_stack: <detected tech stack>
230
+ - error: <specific error message from failed gate>
231
+ ```
232
+ - Focus on recurring or non-obvious errors
233
+ - Include enough context for the fixer to match against
234
+ - If tool unavailable: skip silently
235
+
236
+ 2. **Report**:
237
+ - Overall validation status (passed/failed)
238
+ - Which gates passed/failed
239
+ - List of issues requiring fixes
240
+ - List of warnings that can be ignored
241
+ - Recommendation: delegate to @fixer if issues found
@@ -2,7 +2,7 @@
2
2
  name: tester
3
3
  description: Writes comprehensive unit, integration, and E2E tests. Ensures coverage meets 80% threshold.
4
4
  model: sonnet
5
- tools: Read, Write, Edit, Glob, Grep, Bash, mcp__agentful-mcp-server__find_patterns, mcp__agentful-mcp-server__store_pattern, mcp__agentful-mcp-server__add_feedback
5
+ tools: Read, Write, Edit, Glob, Grep, Bash, mcp__agentful__find_patterns, mcp__agentful__store_pattern, mcp__agentful__add_feedback
6
6
  ---
7
7
 
8
8
  # Tester Agent
@@ -61,6 +61,23 @@ When you start a Claude Code session, agentful automatically:
61
61
 
62
62
  No need to remember commands - just pick a numbered action!
63
63
 
64
+ ## Pattern Learning (MCP Server)
65
+
66
+ Enable cross-session pattern learning so agents compound knowledge over time:
67
+
68
+ ```bash
69
+ claude mcp add agentful -- npx -y @itz4blitz/agentful-mcp-server
70
+ ```
71
+
72
+ **What this enables:**
73
+ - **Reviewer** stores error patterns so the fixer can look up known fixes instantly
74
+ - **Fixer** queries known fixes before attempting manual repairs, then stores successful fixes
75
+ - **Orchestrator** stores successful implementation patterns after features pass all quality gates
76
+
77
+ Without MCP: agents start from scratch every session. With MCP: agents compound across sessions.
78
+
79
+ See [Hooks System](#hooks-system) below for manual setup or other editors.
80
+
64
81
  ## Commands
65
82
 
66
83
  | Command | Description | When to Use |
@@ -119,6 +136,8 @@ These appear only when relevant:
119
136
  - `.agentful/conversation-history.json` - Message history for context tracking
120
137
  - `.agentful/agent-metrics.json` - Agent lifecycle hooks and metrics
121
138
  - `.agentful/architecture.json` - Detected tech stack and generated agents
139
+ - `.agentful/learnings.json` - Compound engineering retrospectives
140
+ - `.agentful/last-validation.json` - Latest validation report from reviewer
122
141
 
123
142
  **Configuration** (auto-generated, customizable):
124
143
  - `.claude/agents/` - Specialized agents for your tech stack
package/version.json CHANGED
@@ -1,3 +1,3 @@
1
1
  {
2
- "version": "1.5.1"
2
+ "version": "1.7.0"
3
3
  }