fraim-hub 2.0.280 β†’ 2.0.283

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (62) hide show
  1. package/README.md +467 -467
  2. package/bin/fraim-hub-2.js +11 -11
  3. package/bin/fraim-hub.js +16 -16
  4. package/dist/src/ai-hub/desktop-main.js +81 -16
  5. package/dist/src/ai-hub/hosts.js +14 -2
  6. package/dist/src/ai-hub/hub-install.js +34 -36
  7. package/dist/src/ai-hub/hub-launcher.js +27 -30
  8. package/dist/src/ai-hub/hub2-remote-config.js +3 -3
  9. package/dist/src/ai-hub/server.js +86 -27
  10. package/dist/src/cli/commands/setup.js +396 -0
  11. package/dist/src/cli/mcp/fraim-mcp-latest-launcher.js +266 -182
  12. package/dist/src/cli/mcp/mcp-server-registry.js +11 -3
  13. package/dist/src/cli/setup/auto-mcp-setup.js +309 -0
  14. package/dist/src/cli/setup/ide-invocation-surfaces.js +64 -64
  15. package/dist/src/cli/setup/user-level-sync.js +163 -0
  16. package/dist/src/core/resolve-phase-edge.js +33 -0
  17. package/dist/src/core/utils/setup-preferences.js +41 -0
  18. package/dist/src/first-run/install-state.js +72 -0
  19. package/dist/src/first-run/server.js +322 -0
  20. package/dist/src/first-run/session-service.js +1023 -0
  21. package/dist/src/services/email-service.js +623 -623
  22. package/extensions/office-word/manifest.xml +29 -29
  23. package/extensions/office-word/taskpane.html +251 -251
  24. package/index.js +83 -83
  25. package/package.json +226 -196
  26. package/public/ai-hub/excel-taskpane/index.html +298 -298
  27. package/public/ai-hub/excel-taskpane/manifest.xml +33 -33
  28. package/public/ai-hub/index.html +1268 -1240
  29. package/public/ai-hub/remote-ui-loader.js +63 -63
  30. package/public/ai-hub/review.css +678 -678
  31. package/public/ai-hub/script.js +16705 -16426
  32. package/public/ai-hub/styles.css +6489 -6445
  33. package/public/first-run/error-frame.js +100 -100
  34. package/public/first-run/index.html +35 -35
  35. package/public/first-run/script.js +747 -742
  36. package/public/first-run/styles.css +929 -929
  37. package/public/portfolio/ashley.html +523 -523
  38. package/public/portfolio/auditya.html +83 -83
  39. package/public/portfolio/banke.html +83 -83
  40. package/public/portfolio/beza.html +659 -659
  41. package/public/portfolio/careena.html +632 -632
  42. package/public/portfolio/casey.html +568 -568
  43. package/public/portfolio/celia.html +490 -490
  44. package/public/portfolio/deidre.html +642 -642
  45. package/public/portfolio/gautam.html +597 -597
  46. package/public/portfolio/hari.html +469 -469
  47. package/public/portfolio/huxley.html +1354 -1354
  48. package/public/portfolio/index.html +741 -741
  49. package/public/portfolio/maestro.html +518 -518
  50. package/public/portfolio/mandy.html +590 -590
  51. package/public/portfolio/mona.html +597 -597
  52. package/public/portfolio/pam.html +882 -882
  53. package/public/portfolio/procella.html +107 -107
  54. package/public/portfolio/qasm.html +568 -568
  55. package/public/portfolio/ricardo.html +489 -489
  56. package/public/portfolio/sade.html +559 -559
  57. package/public/portfolio/sam.html +654 -654
  58. package/public/portfolio/sechar.html +580 -580
  59. package/public/portfolio/sreya.html +599 -599
  60. package/public/portfolio/swen.html +596 -596
  61. package/dist/src/ai-hub/hub-release-download.js +0 -123
  62. package/dist/src/ai-hub/word-sideload.js +0 -95
package/README.md CHANGED
@@ -1,467 +1,467 @@
1
- # πŸš€ FRAIM β€” AI Workforce Infrastructure
2
- **"Brilliant AI isn't how industries get built. Organizations are."** β€” FRAIM transforms every layer of the AI-powered company at once: **AI agents** become an accountable, improving workforce; **their operators** become capable AI managers who hold the line on quality, delegation, and evidence; and **executives** gain clear optics on AI proficiency across the entire organization.
3
-
4
-
5
- πŸš€ **The Problem with AI Coding Today**
6
-
7
- Current "vibe coding" frameworks are great at getting from idea to prototype. They fail spectacularly at going from prototype to production or evolving complex codebases.
8
-
9
- AI agents are like brilliant but inexperienced developers. They need:
10
- β€’ Clear guardrails to prevent costly mistakes
11
- β€’ Structured jobs, skills, and rules to avoid chaos
12
- β€’ Evidence-based validation (not "looks good" claims)
13
- β€’ Learning systems to improve over time
14
- β€’ Balance between determinism and creativity
15
-
16
- 🎯 **Introducing FRAIM: Framework for Rigor-based AI Management**
17
-
18
- FRAIM transforms you from a solo developer into an AI manager orchestrating multiple agents with enterprise-grade discipline.
19
-
20
- **The Transformation:**
21
- ❌ Before: "It's working now. The login button exists."
22
- βœ… After: "Implementation complete. 12/12 tests pass, API endpoint validated, UI screenshots provided."
23
-
24
- **Real Results:**
25
- β€’ Dramatic reduction in AI-generated code that needs rework
26
- β€’ Faster delivery through structured jobs
27
- β€’ Higher test coverage through mandatory evidence collection
28
- β€’ Zero agent conflicts through phase-based coordination
29
-
30
- **The RIGOR Methodology:**
31
- R - Reviews: Structured feedback with evidence
32
- I - Isolation: Agents don't interfere unless coordinated
33
- G - GitOps: Git as single source of truth
34
- O - Observability: Complete visibility into AI activities
35
- R - Retrospectives: Continuous learning from experience
36
-
37
- πŸ€– **Works with any AI agent** (Cursor, Claude, Windsurf) - no vendor lock-in.
38
-
39
- **The bottom line:** FRAIM isn't just about using AI β€” it transforms every layer of your AI-powered company: agents become an accountable workforce, operators become capable AI managers, and executives gain clear optics on AI proficiency across the whole org.
40
-
41
-
42
-
43
- ### The Human-Developer Parallel
44
-
45
- | **Human Development** | **AI Agent Development** | **FRAIM Solution** |
46
- |----------------------|-------------------------|-------------------|
47
- | **Code Reviews** | Random quality checks | Structured review jobs with evidence requirements |
48
- | **Testing Standards** | "Looks good" claims | Mandatory test evidence with failure reproduction |
49
- | **Team Coordination** | Agent conflicts and overlaps | Phase-based isolation with clear handoffs |
50
- | **Learning Culture** | Repeated mistakes | Retrospective-driven improvement system |
51
- | **Process Discipline** | Ad-hoc approaches | Proven jobs, skills, and deterministic scripts from real projects |
52
- | **Quality Gates** | Unreliable outcomes | Deterministic validation with rollback capabilities |
53
-
54
-
55
- ## πŸ”₯ The Problems FRAIM Solves
56
-
57
- ### ❌ **The Current State of AI Development**
58
- - **"Looks Good" Syndrome**: Agents claim success without evidence
59
- - **Quality Lottery**: Inconsistent code quality and reliability
60
- - **Agent Chaos**: Multiple agents stepping on each other's work
61
- - **No Learning**: Repeated mistakes without improvement
62
- - **Ad-hoc Processes**: Every project reinvents the wheel
63
- - **False Confidence**: Broken code marked as "working"
64
- - **Hanging Agents**: Commands that hang requiring human intervention
65
- - **Lost Output**: No visibility into long-running task progress
66
-
67
- ### βœ… **The FRAIM Solution**
68
-
69
- #### πŸ›‘οΈ **Agent Integrity & Test Ethics**
70
- **Problem**: Agents claim "tests pass" when they actually fail
71
- **Solution**: Mandatory evidence collection, test immutability rules, and accountability frameworks
72
- ```bash
73
- # Before FRAIM: "Tests look good!"
74
- # After FRAIM: "Here's the test output proving all 47 tests pass"
75
- ```
76
-
77
- #### πŸ§ͺ **Comprehensive Testing Guidelines**
78
- **Problem**: Superficial testing that misses real issues
79
- **Solution**: Multi-layer validation (database, API, UI, integration) with mandatory evidence
80
- ```bash
81
- # Before: Mock everything, hope it works
82
- # After: Test real systems, prove it works, show evidence
83
- ```
84
-
85
- #### πŸ—£οΈ **Clear Communication Standards**
86
- **Problem**: Vague progress reports and unclear accountability
87
- **Solution**: Structured progress updates with concrete evidence and absolute accountability
88
- ```bash
89
- # Before: "Working on it, almost done"
90
- # After: "Fixed API timeout, tests passing, evidence attached, ready for review"
91
- ```
92
-
93
- #### πŸ—οΈ **Architectural Discipline**
94
- **Problem**: Agents create architectural chaos and technical debt
95
- **Solution**: Clean separation of concerns, type safety, and testability patterns
96
- ```bash
97
- # Before: Spaghetti code with mixed responsibilities
98
- # After: Clean layers with proper boundaries and validation
99
- ```
100
-
101
- #### 🎯 **Spike-First Development**
102
- **Problem**: Agents build complex solutions without validating assumptions
103
- **Solution**: 5-15 minute proof-of-concepts before major implementation
104
- ```bash
105
- # Before: Build 3-week solution, discover it doesn't work
106
- # After: 10-minute spike, validate approach, then build confidently
107
- ```
108
-
109
- #### πŸ”„ **Continuous Learning System**
110
- **Problem**: Same mistakes repeated across projects
111
- **Solution**: Retrospective-driven knowledge capture and pattern recognition
112
- ```bash
113
- # Before: Every agent learns the same lessons from scratch
114
- # After: Knowledge accumulates, patterns emerge, quality improves
115
- ```
116
-
117
- #### 🧹 **Simplicity Discipline**
118
- **Problem**: Over-engineered solutions that are hard to maintain
119
- **Solution**: "Keep it simple" principles with complexity budgets
120
- ```bash
121
- # Before: 500-line solution to a 10-line problem
122
- # After: Minimal, focused solution that actually works
123
- ```
124
-
125
- #### πŸ”§ **Git Safety & Timeout Management**
126
- **Problem**: Agents hang on interactive Git commands and long-running tasks, requiring human intervention
127
- **Solution**: Safe Git commands and timeout scripts with output visibility
128
- ```bash
129
- # Before: Agent hangs on "git log" (opens pager) or tests run forever
130
- # After: Non-interactive commands with timeouts and log files for visibility
131
- # Example: exec-with-timeout.ts runs tests with timeout and saves output to files
132
- ```
133
-
134
- #### πŸ”„ **Merge Requirements & Branch Safety**
135
- **Problem**: Agents accidentally overwrite master branch or create merge conflicts
136
- **Solution**: Mandatory rebase discipline with conflict resolution patterns
137
- ```bash
138
- # Before: Force pushes that destroy other work
139
- # After: Rebase-on-master with force-with-lease for safety
140
- ```
141
-
142
- #### πŸ› **Systematic Debugging Patterns**
143
- **Problem**: Agents struggle with complex debugging and repeat the same mistakes
144
- **Solution**: Structured debugging methodology with evidence collection and pattern recognition
145
- ```bash
146
- # Before: Random debugging attempts, no learning
147
- # After: Systematic approach with documented patterns and regression tests
148
- ```
149
-
150
- #### πŸ“‹ **Package Scripts & Output Visibility**
151
- **Problem**: Long-running tasks hang agents and provide no visibility into progress
152
- **Solution**: Background execution with log files and timeout management
153
- ```bash
154
- # Before: "npm test" hangs agent, no output visibility
155
- # After: "npm test" runs in background, saves to test.log, agent can observe progress
156
- # Example: exec-with-timeout.ts prevents hangs and provides output visibility
157
- ```
158
-
159
- ## πŸš€ **Proven Benefits from Real Projects**
160
-
161
- - **Dramatic reduction** in AI-generated code that needs rework through evidence-based validation
162
- - **Faster delivery** through structured jobs and clear handoffs
163
- - **Higher test coverage** through mandatory testing guidelines and evidence collection
164
- - **Zero agent conflicts** through phase-based isolation and coordination
165
- - **Complete accountability** - agents fix their own mistakes with evidence
166
-
167
- ## 🎬 **The FRAIM Experience: From Chaos to Clarity**
168
-
169
- ### **Before FRAIM: Single Agent Chaos**
170
- ```bash
171
- # You: "Add user authentication to the app"
172
- # Agent: "I'll add login functionality"
173
- #
174
- # 10 minutes later...
175
- # Agent: "I've designed the UX to be modern and beautiful. What do you think?"
176
- # You: "It's way too complex and does not work with the rest of the product. Just make it simple"
177
- # Agent: "You are right. I've made it too complex, let me simplify it right now"
178
- # You: "I've told you this 10 times already!!!! "
179
- #
180
- # 1 hour later...
181
- # Agent: "Implementation complete. Solution looks good."
182
- # You: "I get an error on the first screen."
183
- # Agent: "What error do you see? Can you write it out for me or give me a screenshot?"
184
- # You: "C'mon, do this yourself."
185
- #
186
- # 2 hours later...
187
- # Agent: <Stuck waiting for a playwright test which hasn't relinquished control>
188
- # You: "You've made no progress"
189
- # Agent: "You are right. I keep getting stuck. Could you test the implementation for me?"
190
- #
191
- # 3 hours later...
192
- # Agent: "Ok I'm all done, test cases are passing"
193
- # You: "Wait, what... you changed existing tests to make them pass ... everything is broken!!"
194
- ```
195
-
196
- ### **After FRAIM: Single Agent Excellence**
197
- ```bash
198
- # You: "Add user authentication to the app"
199
- # Agent: "Starting design phase. Creating RFC with UX mockups, validation rules, and API specs"
200
- #
201
- # 10 minutes later...
202
- # Agent: "Design complete. UX mockups created, validation rules defined, API endpoints specified.
203
- # Evidence: 3 mockup images, validation requirements document, API spec ready for review"
204
- # You: "Looks good, proceed to implementation"
205
- #
206
- # 1 hour later...
207
- # Agent: "Implementation complete. Code written, tests created, all tests passing.
208
- # Evidence: Test output showing existing 120/120 tests pass, new 12/12 tests pass, API endpoint tested with curl,
209
- # UI tested with screenshots showing login form and error states"
210
- # During PR review...
211
- # Reviewer: "Password validation is too strict"
212
- # Agent: "Fixed password validation rules, updated tests, evidence provided.
213
- # Evidence: New test output showing updated validation, UI screenshots with new rules"
214
- #
215
- # Result: In best case, hours of frustration, rework saved. In worst case, reputation saved from deploying broken code to production.
216
- ```
217
-
218
- ## πŸ—οΈ **Enterprise-Grade Framework Structure**
219
-
220
- ## πŸš€ **Get Started in 60 Seconds**
221
-
222
- ### **⚠️ Prerequisites**
223
-
224
- **Shell Requirements:**
225
- - **Windows**: Must use Git Bash (install from https://git-scm.com/download/win)
226
- - **macOS/Linux**: Default terminal works fine
227
-
228
- **Why Git Bash on Windows?** All FRAIM scripts use Unix-style paths and Bash commands. Git Bash ensures consistent behavior across platforms.
229
-
230
- ### **Install & Initialize**
231
-
232
- **Recommended: Use npx (no installation needed)**
233
- ```bash
234
- npx fraim@latest setup --key=<your-fraim-key>
235
-
236
- # Optional: Create alias for convenience
237
- echo 'alias fraim="npx fraim"' >> ~/.bashrc
238
- source ~/.bashrc
239
- ```
240
-
241
- **Alternative: Global install**
242
- ```bash
243
- npm install -g fraim
244
- fraim setup --key=<your-fraim-key>
245
- ```
246
-
247
- > **πŸ’‘ Why npx?** Works with any Node version (16+), no conflicts when switching Node versions, always uses correct dependencies, and identical functionality to global install. Perfect for users with nvm, volta, or multiple Node versions.
248
-
249
- The setup command supports three modes:
250
-
251
- **Conversational Mode**: FRAIM job guidance only, no platform integration required
252
- ```bash
253
- fraim setup --key=<your-fraim-key>
254
- # Select "Conversational Mode" when prompted
255
- ```
256
-
257
- **Integrated Mode**: Single platform for both code hosting and issue tracking
258
- ```bash
259
- fraim setup --key=<your-fraim-key>
260
- # Select "Integrated Mode" when prompted
261
- # Choose platform: GitHub, Azure DevOps, or GitLab
262
- ```
263
-
264
- **Split Mode**: Separate platforms for code hosting and issue tracking
265
- ```bash
266
- fraim setup --key=<your-fraim-key>
267
- # Select "Split Mode" when prompted
268
- # Choose code repository platform: GitHub, Azure DevOps, or GitLab
269
- # Choose issue tracking platform: GitHub, Azure DevOps, GitLab, or Jira
270
- ```
271
-
272
- Common Split mode combinations:
273
- - GitHub (code) + Jira (issues)
274
- - GitLab (code) + Jira (issues)
275
- - Azure DevOps (code) + GitHub (issues)
276
-
277
- ### **πŸ”§ Additional Commands**
278
-
279
- After initial setup, you can use these commands:
280
-
281
- ```bash
282
- # Add FRAIM to additional IDEs (after initial setup)
283
- fraim add-ide --ide claude # Configure specific IDE
284
- fraim add-ide --ide antigravity # Configure Gemini Antigravity
285
- fraim add-ide --all # Configure all detected IDEs
286
- fraim add-ide --list # List supported IDEs
287
-
288
- # Add platform integrations to existing setup
289
- fraim setup --github # Add GitHub integration
290
- fraim setup --ado # Add Azure DevOps integration
291
- fraim setup --gitlab # Add GitLab integration
292
- fraim setup --jira # Add Jira integration
293
-
294
- # Project initialization
295
- fraim init-project # Initialize FRAIM in current project
296
-
297
- # Testing and validation
298
- fraim doctor --test-mcp # Test MCP server connections
299
- fraim doctor # Diagnose configuration issues
300
-
301
- # Sync and maintenance
302
- fraim sync # Sync latest jobs, skills, rules, and templates
303
- ```
304
-
305
- **πŸ’‘ Pro Tip**: Use `fraim add-ide` when you install a new IDE after initial setup. It reuses your existing FRAIM and platform tokens, making it much faster than running full setup again.
306
-
307
- ### **Which Job Should I Run?**
308
-
309
- FRAIM's primary execution unit is a **job**. Jobs define the phased path. Skills and rules support the job; they are not the thing you "run" first.
310
-
311
- Use these defaults:
312
- - `feature-specification` when the request is still fuzzy or needs clarified requirements, UX, or acceptance criteria.
313
- - `technical-design` after the spec is approved and you need the implementation plan, file touchpoints, and risk handling.
314
- - `feature-implementation` for code changes, bug fixes, and documentation updates that should be executed and validated.
315
- - `test-execution` when you need reproduction coverage, missing tests, or stronger regression protection before implementation.
316
- - `browser-application-validation` or `ui-polish-validation` after user-facing UI changes or when the ask is explicitly browser validation.
317
- - `implementation-feature-review` when you need to verify the delivered behavior matches the feature spec.
318
- - `implementation-design-review` when you need to verify the code matches the approved technical design.
319
- - `issue-retrospective` after the work is complete and you want durable learnings captured.
320
-
321
- Typical path for a larger feature:
322
- - `feature-specification` -> `technical-design` -> `feature-implementation` -> review job -> `issue-retrospective`
323
-
324
- Typical path for a small bug fix:
325
- - `feature-implementation` -> review job if needed -> `issue-retrospective`
326
-
327
- Once FRAIM is connected in your IDE, ask your agent to `list FRAIM jobs` or name the specific job directly, for example: `Run the feature-implementation job for issue #123`.
328
-
329
- ### **🧩 Personalized Jobs, Skills, and Rules**
330
-
331
- Project-specific customization now lives under `fraim/personalized-employee/`.
332
-
333
- Recommended layout:
334
-
335
- ```text
336
- fraim/
337
- personalized-employee/
338
- jobs/
339
- skills/
340
- rules/
341
- templates/
342
- ```
343
-
344
- Use `fraim override` to create a local starting point:
345
-
346
- ```bash
347
- fraim override --inherit jobs/product-building/feature-implementation.md
348
- fraim override --copy rules/engineering/architecture-standards.md
349
- ```
350
-
351
- Guidance:
352
- - Put phased job customizations in `fraim/personalized-employee/jobs/...`
353
- - Put reusable local capability snippets in `fraim/personalized-employee/skills/...`
354
- - Put broad team conventions in `fraim/personalized-employee/rules/...`
355
- - Put local deliverable tweaks in `fraim/personalized-employee/templates/...`
356
- - Do not edit synced content under `fraim/ai-employee/` or `fraim/ai-manager/`; `fraim sync` will overwrite it
357
- - Legacy `.fraim/overrides/` is still read for compatibility, but new work should go in `fraim/personalized-employee/`
358
-
359
- ### **πŸ”§ Jira Integration Setup**
360
-
361
- FRAIM uses the official Model Context Protocol (MCP) server for Jira integration. The setup command automatically configures the correct format.
362
-
363
- **Jira API Token Requirements**:
364
- 1. Go to https://id.atlassian.com/manage-profile/security/api-tokens
365
- 2. Click "Create API token"
366
- 3. Give it a name (e.g., "FRAIM Integration")
367
- 4. Copy the token (starts with ATATT3...)
368
- 5. Use this token during `fraim setup`
369
-
370
- **Correct MCP Configuration** (automatically generated):
371
- ```json
372
- {
373
- "jira": {
374
- "command": "uvx",
375
- "args": ["mcp-atlassian"],
376
- "env": {
377
- "JIRA_URL": "https://mycompany.atlassian.net",
378
- "JIRA_USERNAME": "user@mycompany.com",
379
- "JIRA_API_TOKEN": "your-token-here"
380
- }
381
- }
382
- }
383
- ```
384
-
385
- **⚠️ Common Issues**:
386
- - **Old package name**: If you see `@modelcontextprotocol/server-jira` in your config, this package doesn't exist. Run `fraim setup --jira` to update to the correct `mcp-atlassian` package.
387
- - **Token format**: Jira API tokens typically start with `ATATT3`. If your token doesn't match this format, verify you created an API token (not a personal access token).
388
- - **First run slow**: The first time `uvx` runs the Jira MCP server, it downloads the package. This is normal and only happens once.
389
-
390
- **Troubleshooting**:
391
- ```bash
392
- # Test Jira MCP connection
393
- fraim doctor --test-mcp
394
-
395
- # Reconfigure Jira integration
396
- fraim setup --jira
397
-
398
- # Check configuration
399
- cat ~/.kiro/settings/mcp.json # For Kiro IDE
400
- cat ~/Library/Application\ Support/Claude/claude_desktop_config.json # For Claude Desktop (macOS)
401
- ```
402
-
403
-
404
- ## 🌟 **Why FRAIM is the Future**
405
-
406
- ### **1. Proven in Production**
407
- Every rule, job, skill, and pattern has been tested in real projects. This isn't theoreticalβ€”it is battle-tested.
408
-
409
- ### **2. Enterprise Discipline**
410
- The same rigor you'd apply to managing human developers, applied to AI agents.
411
-
412
- ### **3. Continuous Improvement**
413
- Built-in learning systems that make your AI agents better over time.
414
-
415
- ### **4. Complete Transparency**
416
- Full visibility into what each agent is doing, with evidence-based validation.
417
-
418
- ### **5. Zero Vendor Lock-in**
419
- Works with any AI agent (Cursor, Claude, Windsurf, future agents).
420
-
421
-
422
- ## πŸš€ **Ready to Transform Your Development?**
423
-
424
- ### **Start Your AI Management Journey**
425
-
426
- ```bash
427
- # Watch the magic happen
428
- gh issue create --title "Add API rate limiting" --label "phase:design"
429
- # β†’ Agent: "RFC created, architecture validated, ready for implementation"
430
-
431
- gh issue edit 123 --remove-label "phase:design" --add-label "phase:impl"
432
- # β†’ Agent: "Implementation complete, tests passing, evidence provided"
433
-
434
- gh issue edit 123 --remove-label "phase:impl" --add-label "phase:tests"
435
- # β†’ Agent: "Performance validated, security checked, ready for production"
436
-
437
- # Result: Production-ready feature in 2 hours instead of 2 days
438
- ```
439
-
440
-
441
-
442
- ### **Join the Future of Development**
443
-
444
- - 🌟 [**GitHub Repository**](https://github.com/mathursrus/FRAIM) - Star us to follow development
445
- - πŸ› [**Issue Tracker**](https://github.com/mathursrus/FRAIM/issues) - Report bugs or request features
446
-
447
- ---
448
-
449
- ## 🎯 **The Bottom Line**
450
-
451
- **FRAIM isn't just about using AI β€” it transforms every layer of your AI-powered company: agents become an accountable workforce, operators become capable AI managers, and executives gain clear optics on AI proficiency across the whole org.**
452
-
453
- Stop fighting with AI agents. Start building your AI organization.
454
-
455
- **This is the future of how we work.**
456
-
457
- ---
458
-
459
- <div align="center">
460
-
461
- **πŸš€ Ready to become an AI manager? Start with FRAIM today.**
462
-
463
- [![npm version](https://img.shields.io/npm/v/fraim.svg)](https://www.npmjs.com/package/fraim)
464
- [![GitHub stars](https://img.shields.io/github/stars/mathursrus/FRAIM.svg)](https://github.com/mathursrus/FRAIM/stargazers)
465
- [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
466
-
467
- </div>
1
+ # πŸš€ FRAIM β€” AI Workforce Infrastructure
2
+ **"Brilliant AI isn't how industries get built. Organizations are."** β€” FRAIM transforms every layer of the AI-powered company at once: **AI agents** become an accountable, improving workforce; **their operators** become capable AI managers who hold the line on quality, delegation, and evidence; and **executives** gain clear optics on AI proficiency across the entire organization.
3
+
4
+
5
+ πŸš€ **The Problem with AI Coding Today**
6
+
7
+ Current "vibe coding" frameworks are great at getting from idea to prototype. They fail spectacularly at going from prototype to production or evolving complex codebases.
8
+
9
+ AI agents are like brilliant but inexperienced developers. They need:
10
+ β€’ Clear guardrails to prevent costly mistakes
11
+ β€’ Structured jobs, skills, and rules to avoid chaos
12
+ β€’ Evidence-based validation (not "looks good" claims)
13
+ β€’ Learning systems to improve over time
14
+ β€’ Balance between determinism and creativity
15
+
16
+ 🎯 **Introducing FRAIM: Framework for Rigor-based AI Management**
17
+
18
+ FRAIM transforms you from a solo developer into an AI manager orchestrating multiple agents with enterprise-grade discipline.
19
+
20
+ **The Transformation:**
21
+ ❌ Before: "It's working now. The login button exists."
22
+ βœ… After: "Implementation complete. 12/12 tests pass, API endpoint validated, UI screenshots provided."
23
+
24
+ **Real Results:**
25
+ β€’ Dramatic reduction in AI-generated code that needs rework
26
+ β€’ Faster delivery through structured jobs
27
+ β€’ Higher test coverage through mandatory evidence collection
28
+ β€’ Zero agent conflicts through phase-based coordination
29
+
30
+ **The RIGOR Methodology:**
31
+ R - Reviews: Structured feedback with evidence
32
+ I - Isolation: Agents don't interfere unless coordinated
33
+ G - GitOps: Git as single source of truth
34
+ O - Observability: Complete visibility into AI activities
35
+ R - Retrospectives: Continuous learning from experience
36
+
37
+ πŸ€– **Works with any AI agent** (Cursor, Claude, Windsurf) - no vendor lock-in.
38
+
39
+ **The bottom line:** FRAIM isn't just about using AI β€” it transforms every layer of your AI-powered company: agents become an accountable workforce, operators become capable AI managers, and executives gain clear optics on AI proficiency across the whole org.
40
+
41
+
42
+
43
+ ### The Human-Developer Parallel
44
+
45
+ | **Human Development** | **AI Agent Development** | **FRAIM Solution** |
46
+ |----------------------|-------------------------|-------------------|
47
+ | **Code Reviews** | Random quality checks | Structured review jobs with evidence requirements |
48
+ | **Testing Standards** | "Looks good" claims | Mandatory test evidence with failure reproduction |
49
+ | **Team Coordination** | Agent conflicts and overlaps | Phase-based isolation with clear handoffs |
50
+ | **Learning Culture** | Repeated mistakes | Retrospective-driven improvement system |
51
+ | **Process Discipline** | Ad-hoc approaches | Proven jobs, skills, and deterministic scripts from real projects |
52
+ | **Quality Gates** | Unreliable outcomes | Deterministic validation with rollback capabilities |
53
+
54
+
55
+ ## πŸ”₯ The Problems FRAIM Solves
56
+
57
+ ### ❌ **The Current State of AI Development**
58
+ - **"Looks Good" Syndrome**: Agents claim success without evidence
59
+ - **Quality Lottery**: Inconsistent code quality and reliability
60
+ - **Agent Chaos**: Multiple agents stepping on each other's work
61
+ - **No Learning**: Repeated mistakes without improvement
62
+ - **Ad-hoc Processes**: Every project reinvents the wheel
63
+ - **False Confidence**: Broken code marked as "working"
64
+ - **Hanging Agents**: Commands that hang requiring human intervention
65
+ - **Lost Output**: No visibility into long-running task progress
66
+
67
+ ### βœ… **The FRAIM Solution**
68
+
69
+ #### πŸ›‘οΈ **Agent Integrity & Test Ethics**
70
+ **Problem**: Agents claim "tests pass" when they actually fail
71
+ **Solution**: Mandatory evidence collection, test immutability rules, and accountability frameworks
72
+ ```bash
73
+ # Before FRAIM: "Tests look good!"
74
+ # After FRAIM: "Here's the test output proving all 47 tests pass"
75
+ ```
76
+
77
+ #### πŸ§ͺ **Comprehensive Testing Guidelines**
78
+ **Problem**: Superficial testing that misses real issues
79
+ **Solution**: Multi-layer validation (database, API, UI, integration) with mandatory evidence
80
+ ```bash
81
+ # Before: Mock everything, hope it works
82
+ # After: Test real systems, prove it works, show evidence
83
+ ```
84
+
85
+ #### πŸ—£οΈ **Clear Communication Standards**
86
+ **Problem**: Vague progress reports and unclear accountability
87
+ **Solution**: Structured progress updates with concrete evidence and absolute accountability
88
+ ```bash
89
+ # Before: "Working on it, almost done"
90
+ # After: "Fixed API timeout, tests passing, evidence attached, ready for review"
91
+ ```
92
+
93
+ #### πŸ—οΈ **Architectural Discipline**
94
+ **Problem**: Agents create architectural chaos and technical debt
95
+ **Solution**: Clean separation of concerns, type safety, and testability patterns
96
+ ```bash
97
+ # Before: Spaghetti code with mixed responsibilities
98
+ # After: Clean layers with proper boundaries and validation
99
+ ```
100
+
101
+ #### 🎯 **Spike-First Development**
102
+ **Problem**: Agents build complex solutions without validating assumptions
103
+ **Solution**: 5-15 minute proof-of-concepts before major implementation
104
+ ```bash
105
+ # Before: Build 3-week solution, discover it doesn't work
106
+ # After: 10-minute spike, validate approach, then build confidently
107
+ ```
108
+
109
+ #### πŸ”„ **Continuous Learning System**
110
+ **Problem**: Same mistakes repeated across projects
111
+ **Solution**: Retrospective-driven knowledge capture and pattern recognition
112
+ ```bash
113
+ # Before: Every agent learns the same lessons from scratch
114
+ # After: Knowledge accumulates, patterns emerge, quality improves
115
+ ```
116
+
117
+ #### 🧹 **Simplicity Discipline**
118
+ **Problem**: Over-engineered solutions that are hard to maintain
119
+ **Solution**: "Keep it simple" principles with complexity budgets
120
+ ```bash
121
+ # Before: 500-line solution to a 10-line problem
122
+ # After: Minimal, focused solution that actually works
123
+ ```
124
+
125
+ #### πŸ”§ **Git Safety & Timeout Management**
126
+ **Problem**: Agents hang on interactive Git commands and long-running tasks, requiring human intervention
127
+ **Solution**: Safe Git commands and timeout scripts with output visibility
128
+ ```bash
129
+ # Before: Agent hangs on "git log" (opens pager) or tests run forever
130
+ # After: Non-interactive commands with timeouts and log files for visibility
131
+ # Example: exec-with-timeout.ts runs tests with timeout and saves output to files
132
+ ```
133
+
134
+ #### πŸ”„ **Merge Requirements & Branch Safety**
135
+ **Problem**: Agents accidentally overwrite master branch or create merge conflicts
136
+ **Solution**: Mandatory rebase discipline with conflict resolution patterns
137
+ ```bash
138
+ # Before: Force pushes that destroy other work
139
+ # After: Rebase-on-master with force-with-lease for safety
140
+ ```
141
+
142
+ #### πŸ› **Systematic Debugging Patterns**
143
+ **Problem**: Agents struggle with complex debugging and repeat the same mistakes
144
+ **Solution**: Structured debugging methodology with evidence collection and pattern recognition
145
+ ```bash
146
+ # Before: Random debugging attempts, no learning
147
+ # After: Systematic approach with documented patterns and regression tests
148
+ ```
149
+
150
+ #### πŸ“‹ **Package Scripts & Output Visibility**
151
+ **Problem**: Long-running tasks hang agents and provide no visibility into progress
152
+ **Solution**: Background execution with log files and timeout management
153
+ ```bash
154
+ # Before: "npm test" hangs agent, no output visibility
155
+ # After: "npm test" runs in background, saves to test.log, agent can observe progress
156
+ # Example: exec-with-timeout.ts prevents hangs and provides output visibility
157
+ ```
158
+
159
+ ## πŸš€ **Proven Benefits from Real Projects**
160
+
161
+ - **Dramatic reduction** in AI-generated code that needs rework through evidence-based validation
162
+ - **Faster delivery** through structured jobs and clear handoffs
163
+ - **Higher test coverage** through mandatory testing guidelines and evidence collection
164
+ - **Zero agent conflicts** through phase-based isolation and coordination
165
+ - **Complete accountability** - agents fix their own mistakes with evidence
166
+
167
+ ## 🎬 **The FRAIM Experience: From Chaos to Clarity**
168
+
169
+ ### **Before FRAIM: Single Agent Chaos**
170
+ ```bash
171
+ # You: "Add user authentication to the app"
172
+ # Agent: "I'll add login functionality"
173
+ #
174
+ # 10 minutes later...
175
+ # Agent: "I've designed the UX to be modern and beautiful. What do you think?"
176
+ # You: "It's way too complex and does not work with the rest of the product. Just make it simple"
177
+ # Agent: "You are right. I've made it too complex, let me simplify it right now"
178
+ # You: "I've told you this 10 times already!!!! "
179
+ #
180
+ # 1 hour later...
181
+ # Agent: "Implementation complete. Solution looks good."
182
+ # You: "I get an error on the first screen."
183
+ # Agent: "What error do you see? Can you write it out for me or give me a screenshot?"
184
+ # You: "C'mon, do this yourself."
185
+ #
186
+ # 2 hours later...
187
+ # Agent: <Stuck waiting for a playwright test which hasn't relinquished control>
188
+ # You: "You've made no progress"
189
+ # Agent: "You are right. I keep getting stuck. Could you test the implementation for me?"
190
+ #
191
+ # 3 hours later...
192
+ # Agent: "Ok I'm all done, test cases are passing"
193
+ # You: "Wait, what... you changed existing tests to make them pass ... everything is broken!!"
194
+ ```
195
+
196
+ ### **After FRAIM: Single Agent Excellence**
197
+ ```bash
198
+ # You: "Add user authentication to the app"
199
+ # Agent: "Starting design phase. Creating RFC with UX mockups, validation rules, and API specs"
200
+ #
201
+ # 10 minutes later...
202
+ # Agent: "Design complete. UX mockups created, validation rules defined, API endpoints specified.
203
+ # Evidence: 3 mockup images, validation requirements document, API spec ready for review"
204
+ # You: "Looks good, proceed to implementation"
205
+ #
206
+ # 1 hour later...
207
+ # Agent: "Implementation complete. Code written, tests created, all tests passing.
208
+ # Evidence: Test output showing existing 120/120 tests pass, new 12/12 tests pass, API endpoint tested with curl,
209
+ # UI tested with screenshots showing login form and error states"
210
+ # During PR review...
211
+ # Reviewer: "Password validation is too strict"
212
+ # Agent: "Fixed password validation rules, updated tests, evidence provided.
213
+ # Evidence: New test output showing updated validation, UI screenshots with new rules"
214
+ #
215
+ # Result: In best case, hours of frustration, rework saved. In worst case, reputation saved from deploying broken code to production.
216
+ ```
217
+
218
+ ## πŸ—οΈ **Enterprise-Grade Framework Structure**
219
+
220
+ ## πŸš€ **Get Started in 60 Seconds**
221
+
222
+ ### **⚠️ Prerequisites**
223
+
224
+ **Shell Requirements:**
225
+ - **Windows**: Must use Git Bash (install from https://git-scm.com/download/win)
226
+ - **macOS/Linux**: Default terminal works fine
227
+
228
+ **Why Git Bash on Windows?** All FRAIM scripts use Unix-style paths and Bash commands. Git Bash ensures consistent behavior across platforms.
229
+
230
+ ### **Install & Initialize**
231
+
232
+ **Recommended: Use npx (no installation needed)**
233
+ ```bash
234
+ npx fraim@latest setup --key=<your-fraim-key>
235
+
236
+ # Optional: Create alias for convenience
237
+ echo 'alias fraim="npx fraim"' >> ~/.bashrc
238
+ source ~/.bashrc
239
+ ```
240
+
241
+ **Alternative: Global install**
242
+ ```bash
243
+ npm install -g fraim
244
+ fraim setup --key=<your-fraim-key>
245
+ ```
246
+
247
+ > **πŸ’‘ Why npx?** Works with any Node version (16+), no conflicts when switching Node versions, always uses correct dependencies, and identical functionality to global install. Perfect for users with nvm, volta, or multiple Node versions.
248
+
249
+ The setup command supports three modes:
250
+
251
+ **Conversational Mode**: FRAIM job guidance only, no platform integration required
252
+ ```bash
253
+ fraim setup --key=<your-fraim-key>
254
+ # Select "Conversational Mode" when prompted
255
+ ```
256
+
257
+ **Integrated Mode**: Single platform for both code hosting and issue tracking
258
+ ```bash
259
+ fraim setup --key=<your-fraim-key>
260
+ # Select "Integrated Mode" when prompted
261
+ # Choose platform: GitHub, Azure DevOps, or GitLab
262
+ ```
263
+
264
+ **Split Mode**: Separate platforms for code hosting and issue tracking
265
+ ```bash
266
+ fraim setup --key=<your-fraim-key>
267
+ # Select "Split Mode" when prompted
268
+ # Choose code repository platform: GitHub, Azure DevOps, or GitLab
269
+ # Choose issue tracking platform: GitHub, Azure DevOps, GitLab, or Jira
270
+ ```
271
+
272
+ Common Split mode combinations:
273
+ - GitHub (code) + Jira (issues)
274
+ - GitLab (code) + Jira (issues)
275
+ - Azure DevOps (code) + GitHub (issues)
276
+
277
+ ### **πŸ”§ Additional Commands**
278
+
279
+ After initial setup, you can use these commands:
280
+
281
+ ```bash
282
+ # Add FRAIM to additional IDEs (after initial setup)
283
+ fraim add-ide --ide claude # Configure specific IDE
284
+ fraim add-ide --ide antigravity # Configure Gemini Antigravity
285
+ fraim add-ide --all # Configure all detected IDEs
286
+ fraim add-ide --list # List supported IDEs
287
+
288
+ # Add platform integrations to existing setup
289
+ fraim setup --github # Add GitHub integration
290
+ fraim setup --ado # Add Azure DevOps integration
291
+ fraim setup --gitlab # Add GitLab integration
292
+ fraim setup --jira # Add Jira integration
293
+
294
+ # Project initialization
295
+ fraim init-project # Initialize FRAIM in current project
296
+
297
+ # Testing and validation
298
+ fraim doctor --test-mcp # Test MCP server connections
299
+ fraim doctor # Diagnose configuration issues
300
+
301
+ # Sync and maintenance
302
+ fraim sync # Sync latest jobs, skills, rules, and templates
303
+ ```
304
+
305
+ **πŸ’‘ Pro Tip**: Use `fraim add-ide` when you install a new IDE after initial setup. It reuses your existing FRAIM and platform tokens, making it much faster than running full setup again.
306
+
307
+ ### **Which Job Should I Run?**
308
+
309
+ FRAIM's primary execution unit is a **job**. Jobs define the phased path. Skills and rules support the job; they are not the thing you "run" first.
310
+
311
+ Use these defaults:
312
+ - `feature-specification` when the request is still fuzzy or needs clarified requirements, UX, or acceptance criteria.
313
+ - `technical-design` after the spec is approved and you need the implementation plan, file touchpoints, and risk handling.
314
+ - `feature-implementation` for code changes, bug fixes, and documentation updates that should be executed and validated.
315
+ - `test-execution` when you need reproduction coverage, missing tests, or stronger regression protection before implementation.
316
+ - `browser-application-validation` or `ui-polish-validation` after user-facing UI changes or when the ask is explicitly browser validation.
317
+ - `implementation-feature-review` when you need to verify the delivered behavior matches the feature spec.
318
+ - `implementation-design-review` when you need to verify the code matches the approved technical design.
319
+ - `issue-retrospective` after the work is complete and you want durable learnings captured.
320
+
321
+ Typical path for a larger feature:
322
+ - `feature-specification` -> `technical-design` -> `feature-implementation` -> review job -> `issue-retrospective`
323
+
324
+ Typical path for a small bug fix:
325
+ - `feature-implementation` -> review job if needed -> `issue-retrospective`
326
+
327
+ Once FRAIM is connected in your IDE, ask your agent to `list FRAIM jobs` or name the specific job directly, for example: `Run the feature-implementation job for issue #123`.
328
+
329
+ ### **🧩 Personalized Jobs, Skills, and Rules**
330
+
331
+ Project-specific customization now lives under `fraim/personalized-employee/`.
332
+
333
+ Recommended layout:
334
+
335
+ ```text
336
+ fraim/
337
+ personalized-employee/
338
+ jobs/
339
+ skills/
340
+ rules/
341
+ templates/
342
+ ```
343
+
344
+ Use `fraim override` to create a local starting point:
345
+
346
+ ```bash
347
+ fraim override --inherit jobs/product-building/feature-implementation.md
348
+ fraim override --copy rules/engineering/architecture-standards.md
349
+ ```
350
+
351
+ Guidance:
352
+ - Put phased job customizations in `fraim/personalized-employee/jobs/...`
353
+ - Put reusable local capability snippets in `fraim/personalized-employee/skills/...`
354
+ - Put broad team conventions in `fraim/personalized-employee/rules/...`
355
+ - Put local deliverable tweaks in `fraim/personalized-employee/templates/...`
356
+ - Do not edit synced content under `fraim/ai-employee/` or `fraim/ai-manager/`; `fraim sync` will overwrite it
357
+ - Legacy `.fraim/overrides/` is still read for compatibility, but new work should go in `fraim/personalized-employee/`
358
+
359
+ ### **πŸ”§ Jira Integration Setup**
360
+
361
+ FRAIM uses the official Model Context Protocol (MCP) server for Jira integration. The setup command automatically configures the correct format.
362
+
363
+ **Jira API Token Requirements**:
364
+ 1. Go to https://id.atlassian.com/manage-profile/security/api-tokens
365
+ 2. Click "Create API token"
366
+ 3. Give it a name (e.g., "FRAIM Integration")
367
+ 4. Copy the token (starts with ATATT3...)
368
+ 5. Use this token during `fraim setup`
369
+
370
+ **Correct MCP Configuration** (automatically generated):
371
+ ```json
372
+ {
373
+ "jira": {
374
+ "command": "uvx",
375
+ "args": ["mcp-atlassian"],
376
+ "env": {
377
+ "JIRA_URL": "https://mycompany.atlassian.net",
378
+ "JIRA_USERNAME": "user@mycompany.com",
379
+ "JIRA_API_TOKEN": "your-token-here"
380
+ }
381
+ }
382
+ }
383
+ ```
384
+
385
+ **⚠️ Common Issues**:
386
+ - **Old package name**: If you see `@modelcontextprotocol/server-jira` in your config, this package doesn't exist. Run `fraim setup --jira` to update to the correct `mcp-atlassian` package.
387
+ - **Token format**: Jira API tokens typically start with `ATATT3`. If your token doesn't match this format, verify you created an API token (not a personal access token).
388
+ - **First run slow**: The first time `uvx` runs the Jira MCP server, it downloads the package. This is normal and only happens once.
389
+
390
+ **Troubleshooting**:
391
+ ```bash
392
+ # Test Jira MCP connection
393
+ fraim doctor --test-mcp
394
+
395
+ # Reconfigure Jira integration
396
+ fraim setup --jira
397
+
398
+ # Check configuration
399
+ cat ~/.kiro/settings/mcp.json # For Kiro IDE
400
+ cat ~/Library/Application\ Support/Claude/claude_desktop_config.json # For Claude Desktop (macOS)
401
+ ```
402
+
403
+
404
+ ## 🌟 **Why FRAIM is the Future**
405
+
406
+ ### **1. Proven in Production**
407
+ Every rule, job, skill, and pattern has been tested in real projects. This isn't theoreticalβ€”it is battle-tested.
408
+
409
+ ### **2. Enterprise Discipline**
410
+ The same rigor you'd apply to managing human developers, applied to AI agents.
411
+
412
+ ### **3. Continuous Improvement**
413
+ Built-in learning systems that make your AI agents better over time.
414
+
415
+ ### **4. Complete Transparency**
416
+ Full visibility into what each agent is doing, with evidence-based validation.
417
+
418
+ ### **5. Zero Vendor Lock-in**
419
+ Works with any AI agent (Cursor, Claude, Windsurf, future agents).
420
+
421
+
422
+ ## πŸš€ **Ready to Transform Your Development?**
423
+
424
+ ### **Start Your AI Management Journey**
425
+
426
+ ```bash
427
+ # Watch the magic happen
428
+ gh issue create --title "Add API rate limiting" --label "phase:design"
429
+ # β†’ Agent: "RFC created, architecture validated, ready for implementation"
430
+
431
+ gh issue edit 123 --remove-label "phase:design" --add-label "phase:impl"
432
+ # β†’ Agent: "Implementation complete, tests passing, evidence provided"
433
+
434
+ gh issue edit 123 --remove-label "phase:impl" --add-label "phase:tests"
435
+ # β†’ Agent: "Performance validated, security checked, ready for production"
436
+
437
+ # Result: Production-ready feature in 2 hours instead of 2 days
438
+ ```
439
+
440
+
441
+
442
+ ### **Join the Future of Development**
443
+
444
+ - 🌟 [**GitHub Repository**](https://github.com/mathursrus/FRAIM) - Star us to follow development
445
+ - πŸ› [**Issue Tracker**](https://github.com/mathursrus/FRAIM/issues) - Report bugs or request features
446
+
447
+ ---
448
+
449
+ ## 🎯 **The Bottom Line**
450
+
451
+ **FRAIM isn't just about using AI β€” it transforms every layer of your AI-powered company: agents become an accountable workforce, operators become capable AI managers, and executives gain clear optics on AI proficiency across the whole org.**
452
+
453
+ Stop fighting with AI agents. Start building your AI organization.
454
+
455
+ **This is the future of how we work.**
456
+
457
+ ---
458
+
459
+ <div align="center">
460
+
461
+ **πŸš€ Ready to become an AI manager? Start with FRAIM today.**
462
+
463
+ [![npm version](https://img.shields.io/npm/v/fraim.svg)](https://www.npmjs.com/package/fraim)
464
+ [![GitHub stars](https://img.shields.io/github/stars/mathursrus/FRAIM.svg)](https://github.com/mathursrus/FRAIM/stargazers)
465
+ [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
466
+
467
+ </div>