@pjmendonca/devflow 1.18.0 → 1.20.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.
Files changed (49) hide show
  1. package/.claude/commands/brainstorm.md +28 -0
  2. package/.claude/commands/init.md +102 -6
  3. package/.claude/skills/brainstorm/SKILL.md +531 -0
  4. package/.claude/skills/dashboard/SKILL.md +118 -0
  5. package/CHANGELOG.md +62 -0
  6. package/README.md +2 -2
  7. package/bin/devflow-dashboard.js +10 -0
  8. package/bin/devflow-swarm.js +11 -0
  9. package/bin/devflow.js +2 -0
  10. package/package.json +3 -1
  11. package/tooling/.automation/memory/knowledge/kg_integration-test.json +116 -1
  12. package/tooling/.automation/memory/knowledge/kg_test-story.json +392 -2
  13. package/tooling/.automation/memory/shared/shared_integration-test.json +37 -1
  14. package/tooling/.automation/memory/shared/shared_test-story.json +109 -1
  15. package/tooling/.automation/memory/shared/shared_test.json +235 -1
  16. package/tooling/.automation/memory/shared/shared_validation-check.json +40 -1
  17. package/tooling/.automation/validation/history/2026-01-03_val_1287a74c.json +41 -0
  18. package/tooling/.automation/validation/history/2026-01-03_val_3b24071f.json +32 -0
  19. package/tooling/.automation/validation/history/2026-01-03_val_44d77573.json +32 -0
  20. package/tooling/.automation/validation/history/2026-01-03_val_5b31dc51.json +32 -0
  21. package/tooling/.automation/validation/history/2026-01-03_val_74267244.json +32 -0
  22. package/tooling/.automation/validation/history/2026-01-03_val_8b2d95c7.json +59 -0
  23. package/tooling/.automation/validation/history/2026-01-03_val_d875b297.json +41 -0
  24. package/tooling/.automation/validation/history/2026-01-16_val_0b81ec2f.json +41 -0
  25. package/tooling/.automation/validation/history/2026-01-16_val_26c18e64.json +32 -0
  26. package/tooling/.automation/validation/history/2026-01-16_val_32af0152.json +32 -0
  27. package/tooling/.automation/validation/history/2026-01-16_val_353d1569.json +32 -0
  28. package/tooling/.automation/validation/history/2026-01-16_val_39e3c143.json +59 -0
  29. package/tooling/.automation/validation/history/2026-01-16_val_77fb42e4.json +32 -0
  30. package/tooling/.automation/validation/history/2026-01-16_val_a0752656.json +41 -0
  31. package/tooling/.automation/validation/history/2026-01-16_val_a29213b0.json +41 -0
  32. package/tooling/.automation/validation/history/2026-01-16_val_a9375d4c.json +32 -0
  33. package/tooling/.automation/validation/history/2026-01-16_val_c147bbdf.json +32 -0
  34. package/tooling/.automation/validation/history/2026-01-16_val_d06ccf8d.json +32 -0
  35. package/tooling/.automation/validation/history/2026-01-16_val_d6a80295.json +59 -0
  36. package/tooling/.automation/validation/history/2026-01-16_val_dce5005d.json +41 -0
  37. package/tooling/.automation/validation/history/2026-01-16_val_e53b3a63.json +32 -0
  38. package/tooling/docs/stories/.gitkeep +0 -0
  39. package/tooling/docs/templates/brainstorm-guide.md +314 -0
  40. package/tooling/docs/templates/story.md +66 -0
  41. package/tooling/scripts/lib/__init__.py +1 -1
  42. package/tooling/scripts/lib/cost_display.py +7 -1
  43. package/tooling/scripts/lib/pair_programming.py +6 -4
  44. package/tooling/scripts/lib/swarm_orchestrator.py +13 -11
  45. package/tooling/scripts/live_dashboard.py +832 -0
  46. package/tooling/scripts/new-doc.py +1 -1
  47. package/tooling/scripts/run-collab.py +2 -2
  48. package/tooling/scripts/run-story.py +21 -9
  49. package/tooling/scripts/setup-checkpoint-service.py +1 -1
@@ -0,0 +1,118 @@
1
+ ---
2
+ name: dashboard
3
+ description: Launch live status dashboard in a terminal
4
+ ---
5
+
6
+ # Live Dashboard Skill
7
+
8
+ Launch or provide instructions for the Devflow live status dashboard - a real-time display of context usage, cost tracking, and agent activity.
9
+
10
+ ## Usage
11
+
12
+ ```
13
+ /dashboard [story-key] [options]
14
+ ```
15
+
16
+ ## Options
17
+
18
+ | Option | Description |
19
+ |--------|-------------|
20
+ | story-key | Story to monitor (default: 'default') |
21
+ | --refresh N | Refresh interval in seconds (default: 0.5) |
22
+ | --compact | Single-line compact mode |
23
+ | --width N | Dashboard width (default: 70) |
24
+
25
+ ## Prompt
26
+
27
+ You are helping the user launch the Devflow live dashboard.
28
+
29
+ **Arguments:** $ARGUMENTS
30
+
31
+ ### Dashboard Launch Instructions
32
+
33
+ The live dashboard is a terminal-based real-time display that needs to run in a separate terminal to show continuous updates while you work.
34
+
35
+ **Option 1: VS Code Split Terminal (Recommended)**
36
+
37
+ Tell the user:
38
+
39
+ 1. Open the VS Code integrated terminal (Ctrl+` or Cmd+`)
40
+ 2. Click the "Split Terminal" button (or press Cmd+Shift+5 / Ctrl+Shift+5)
41
+ 3. In the new terminal pane, run:
42
+
43
+ ```bash
44
+ python3 tooling/scripts/live_dashboard.py $ARGUMENTS
45
+ ```
46
+
47
+ Or if using npm:
48
+ ```bash
49
+ npx devflow dashboard $ARGUMENTS
50
+ ```
51
+
52
+ **Option 2: Separate Terminal Window**
53
+
54
+ For a floating dashboard window:
55
+
56
+ ```bash
57
+ # Open a new terminal and run:
58
+ cd [project-root] && python3 tooling/scripts/live_dashboard.py $ARGUMENTS
59
+ ```
60
+
61
+ **Option 3: Compact Mode (less screen space)**
62
+
63
+ For minimal display:
64
+ ```bash
65
+ python3 tooling/scripts/live_dashboard.py --compact $ARGUMENTS
66
+ ```
67
+
68
+ ### Dashboard Features
69
+
70
+ The dashboard displays:
71
+
72
+ ```
73
+ +------------------------------------------------------------------+
74
+ | DEVFLOW LIVE DASHBOARD Updated: HH:MM |
75
+ +------------------------------------------------------------------+
76
+ | ACTIVITY |
77
+ | Agent: DEV [2/3] Development (3:45) |
78
+ | Task: Implementing user authentication |
79
+ +------------------------------------------------------------------+
80
+ | CONTEXT |
81
+ | Usage: [================--------] 65.2% ^ |
82
+ | Tokens: 130.4K/200K ~14 exchanges left |
83
+ +------------------------------------------------------------------+
84
+ | COST |
85
+ | Budget: [====--------------------] 12.3% |
86
+ | Spent: $1.85 / $15.00 In: 45.2K Out: 12.1K |
87
+ +------------------------------------------------------------------+
88
+ | RECENT |
89
+ | > +3.2K tokens (45s ago) |
90
+ | > +2.8K tokens (1m ago) |
91
+ +------------------------------------------------------------------+
92
+ ```
93
+
94
+ - **Activity**: Current agent, phase, task, and elapsed time
95
+ - **Context**: Visual progress bar with trend indicator and remaining exchanges
96
+ - **Cost**: Budget usage with token breakdown
97
+ - **Recent**: Token history showing recent activity
98
+
99
+ ### Color Coding
100
+
101
+ - Green: Safe levels (< 50% context, < 75% budget)
102
+ - Yellow: Caution (50-75% context, 75-90% budget)
103
+ - Red: Critical (> 75% context, > 90% budget)
104
+
105
+ ### Tips
106
+
107
+ 1. **High refresh rate**: Use `--refresh 0.25` for faster updates
108
+ 2. **Narrow terminal**: Use `--width 60` for smaller panes
109
+ 3. **Minimal mode**: Use `--compact` for single-line status
110
+ 4. **Stop dashboard**: Press Ctrl+C to exit
111
+
112
+ ### If No Data Shows
113
+
114
+ The dashboard reads from:
115
+ - Context state: `tooling/.automation/context/context_[story-key].json`
116
+ - Cost data: `tooling/.automation/costs/sessions/*.json`
117
+
118
+ If these files don't exist yet, run a story or use `/develop` to generate tracking data.
package/CHANGELOG.md CHANGED
@@ -5,6 +5,68 @@ All notable changes to this project will be documented in this file.
5
5
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
6
6
  and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
7
 
8
+ ## [1.20.0] - 2026-01-16
9
+
10
+ ### Fixed
11
+ - **Import Error** - Fixed Python stdlib `platform` module conflict in multiple scripts
12
+ - `run-collab.py`, `run-story.py`, `new-doc.py`, `setup-checkpoint-service.py` now use `from lib.platform import`
13
+ - `swarm_orchestrator.py`, `pair_programming.py`, `cost_display.py` now prioritize lib.platform over stdlib
14
+ - Resolves `ImportError: cannot import name 'IS_MACOS' from 'platform'` on Python 3.14+
15
+
16
+ ### Added
17
+ - **Live Dashboard** - Real-time terminal status display for monitoring Devflow sessions
18
+ - Rich ASCII dashboard with box-drawing characters and color-coded progress bars
19
+ - Shows context usage, cost tracking, current agent/activity, and token history
20
+ - Configurable refresh rate (default 0.5s) for responsive updates
21
+ - Compact single-line mode with `--compact` flag
22
+ - Run via `devflow dashboard` or `python3 tooling/scripts/live_dashboard.py`
23
+ - New `/dashboard` skill with instructions for VS Code split terminal setup
24
+
25
+ - **Swarm Command** - Added `devflow swarm` CLI command for multi-agent swarm mode
26
+ - New `bin/devflow-swarm.js` wrapper that calls run-collab.py with --swarm flag
27
+ - Added to devflow.js dispatcher and package.json bin entries
28
+
29
+ ## [1.19.0] - 2026-01-03
30
+
31
+ ### Added
32
+ - **Story Discovery Phase in Init Wizard** - Optional Phase 4 for quick story brainstorming
33
+ - Vision discovery with problem, users, success metrics, and competitive advantage
34
+ - Core feature identification with comma-separated input
35
+ - First sprint planning with story proposals
36
+ - Automatic story file generation in `tooling/docs/stories/`
37
+ - Integration with sprint-status.yaml for backlog tracking
38
+
39
+ - **Brainstorm Skill** - Full workshop for product discovery and story creation
40
+ - `/brainstorm` command for 30-minute comprehensive workshops
41
+ - `--quick` mode for 10-minute vision + features session
42
+ - `--journey` mode for focused user journey mapping
43
+ - `--features` mode for rapid feature brainstorming
44
+ - `--decompose EPIC` to break epics into stories
45
+ - `--prioritize` to re-prioritize existing backlog
46
+
47
+ - **Brainstorming Techniques Guide** - Reference documentation for discovery methods
48
+ - Guided Discovery (Socratic method) with vision and feature questions
49
+ - User Journey Mapping with 5-stage framework (Trigger, Entry, Core, Success, Retention)
50
+ - Rapid Feature List with MoSCoW prioritization
51
+ - Story Decomposition with INVEST criteria
52
+ - RICE scoring and Impact/Effort matrix for prioritization
53
+
54
+ - **Story Template** - New `tooling/docs/templates/story.md` for feature stories
55
+ - User story format with acceptance criteria
56
+ - Priority and effort sizing (XS/S/M/L/XL)
57
+ - Technical notes, business rules, and dependencies
58
+ - Testing strategy and definition of done
59
+
60
+ - **Stories Directory** - `tooling/docs/stories/` for story file storage
61
+ - Stories use format: `STORY-{sprint}-{number}-{slug}.md`
62
+ - Integrated with sprint-status.yaml tracking
63
+
64
+ ### Changed
65
+ - **Init Wizard** - Now 6 phases (added Story Discovery as Phase 4)
66
+ - Quick Mode skips story discovery, recommends `/brainstorm` after setup
67
+ - Phase 6 summary includes story count and brainstorm command reference
68
+ - Directory structure now includes `tooling/docs/stories/` and `tooling/docs/templates/`
69
+
8
70
  ## [1.18.0] - 2025-12-30
9
71
 
10
72
  ### Added
package/README.md CHANGED
@@ -747,7 +747,7 @@ Free to use in commercial and personal projects.
747
747
 
748
748
 
749
749
  <!-- VERSION_START - Auto-updated by update_version.py -->
750
- **Version**: 1.18.0
750
+ **Version**: 1.20.0
751
751
  **Status**: Production Ready
752
- **Last Updated**: 2025-12-30
752
+ **Last Updated**: 2026-01-16
753
753
  <!-- VERSION_END -->
@@ -0,0 +1,10 @@
1
+ #!/usr/bin/env node
2
+
3
+ const path = require('path');
4
+ const { execPythonScript, getScriptsDir } = require('../lib/exec-python');
5
+
6
+ const scriptPath = path.join(getScriptsDir(), 'live_dashboard.py');
7
+ const args = process.argv.slice(2);
8
+
9
+ const exitCode = execPythonScript(scriptPath, args);
10
+ process.exit(exitCode);
@@ -0,0 +1,11 @@
1
+ #!/usr/bin/env node
2
+
3
+ const path = require('path');
4
+ const { execPythonScript, getScriptsDir } = require('../lib/exec-python');
5
+
6
+ const scriptPath = path.join(getScriptsDir(), 'run-collab.py');
7
+ const args = process.argv.slice(2);
8
+
9
+ // Prepend --swarm flag to run in swarm mode
10
+ const exitCode = execPythonScript(scriptPath, ['--swarm', ...args]);
11
+ process.exit(exitCode);
package/bin/devflow.js CHANGED
@@ -6,6 +6,8 @@ const commands = {
6
6
  'install': 'Install Devflow into your project',
7
7
  'story': 'Run full story pipeline (context + dev + review)',
8
8
  'collab': 'Run collaborative story with mode selection',
9
+ 'swarm': 'Run multi-agent swarm mode (debate/consensus)',
10
+ 'dashboard': 'Live status dashboard (context, cost, activity)',
9
11
  'checkpoint': 'Create or restore context checkpoints',
10
12
  'memory': 'View or query shared agent memory',
11
13
  'cost': 'View cost dashboard and spending analytics',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pjmendonca/devflow",
3
- "version": "1.18.0",
3
+ "version": "1.20.0",
4
4
  "description": "Development workflow automation with Claude Code - agent-based development system with cost tracking",
5
5
  "keywords": [
6
6
  "devflow",
@@ -33,6 +33,8 @@
33
33
  "devflow-checkpoint": "bin/devflow-checkpoint.js",
34
34
  "devflow-memory": "bin/devflow-memory.js",
35
35
  "devflow-collab": "bin/devflow-collab.js",
36
+ "devflow-swarm": "bin/devflow-swarm.js",
37
+ "devflow-dashboard": "bin/devflow-dashboard.js",
36
38
  "devflow-create-persona": "bin/devflow-create-persona.js",
37
39
  "devflow-personalize": "bin/devflow-personalize.js",
38
40
  "devflow-validate-overrides": "bin/devflow-validate-overrides.js",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "story_key": "integration-test",
3
- "last_updated": "2025-12-30T10:50:21.128645",
3
+ "last_updated": "2026-01-16T12:33:48.829767",
4
4
  "decisions": {},
5
5
  "topic_index": {},
6
6
  "handoffs": [
@@ -931,6 +931,121 @@
931
931
  "Implement the required functionality",
932
932
  "Write tests for the implementation"
933
933
  ]
934
+ },
935
+ {
936
+ "id": "handoff_72587485",
937
+ "timestamp": "2026-01-03T14:30:38.051699",
938
+ "from_agent": "SM",
939
+ "to_agent": "DEV",
940
+ "story_key": "integration-test",
941
+ "summary": "Ready for implementation",
942
+ "key_decisions": [],
943
+ "blockers_resolved": [],
944
+ "watch_out_for": [],
945
+ "files_touched": [
946
+ ".claude/commands/brainstorm.md",
947
+ ".claude/commands/init.md",
948
+ ".claude/skills/brainstorm/SKILL.md",
949
+ ".gitignore",
950
+ "CHANGELOG.md",
951
+ "README.md",
952
+ "package.json",
953
+ "pyproject.toml",
954
+ "tooling/docs/stories/.gitkeep",
955
+ "tooling/docs/templates/brainstorm-guide.md",
956
+ "tooling/docs/templates/story.md",
957
+ "tooling/scripts/lib/__init__.py"
958
+ ],
959
+ "next_steps": [
960
+ "Review the acceptance criteria in the story context",
961
+ "Examine the 12 files that have context",
962
+ "Implement the required functionality",
963
+ "Write tests for the implementation"
964
+ ]
965
+ },
966
+ {
967
+ "id": "handoff_cb6d7c7a",
968
+ "timestamp": "2026-01-16T12:33:30.919040",
969
+ "from_agent": "SM",
970
+ "to_agent": "DEV",
971
+ "story_key": "integration-test",
972
+ "summary": "Ready for implementation",
973
+ "key_decisions": [],
974
+ "blockers_resolved": [],
975
+ "watch_out_for": [],
976
+ "files_touched": [
977
+ ".claude/commands/brainstorm.md",
978
+ ".claude/commands/init.md",
979
+ ".claude/skills/brainstorm/SKILL.md",
980
+ ".claude/skills/dashboard/SKILL.md",
981
+ "CHANGELOG.md",
982
+ "README.md",
983
+ "bin/devflow-dashboard.js",
984
+ "bin/devflow-swarm.js",
985
+ "bin/devflow.js",
986
+ "package.json",
987
+ "pyproject.toml",
988
+ "tooling/docs/stories/.gitkeep",
989
+ "tooling/docs/templates/brainstorm-guide.md",
990
+ "tooling/docs/templates/story.md",
991
+ "tooling/scripts/lib/__init__.py",
992
+ "tooling/scripts/lib/cost_display.py",
993
+ "tooling/scripts/lib/pair_programming.py",
994
+ "tooling/scripts/lib/swarm_orchestrator.py",
995
+ "tooling/scripts/live_dashboard.py",
996
+ "tooling/scripts/new-doc.py",
997
+ "tooling/scripts/run-collab.py",
998
+ "tooling/scripts/run-story.py",
999
+ "tooling/scripts/setup-checkpoint-service.py"
1000
+ ],
1001
+ "next_steps": [
1002
+ "Review the acceptance criteria in the story context",
1003
+ "Examine the 23 files that have context",
1004
+ "Implement the required functionality",
1005
+ "Write tests for the implementation"
1006
+ ]
1007
+ },
1008
+ {
1009
+ "id": "handoff_a2389911",
1010
+ "timestamp": "2026-01-16T12:33:48.829611",
1011
+ "from_agent": "SM",
1012
+ "to_agent": "DEV",
1013
+ "story_key": "integration-test",
1014
+ "summary": "Ready for implementation",
1015
+ "key_decisions": [],
1016
+ "blockers_resolved": [],
1017
+ "watch_out_for": [],
1018
+ "files_touched": [
1019
+ ".claude/commands/brainstorm.md",
1020
+ ".claude/commands/init.md",
1021
+ ".claude/skills/brainstorm/SKILL.md",
1022
+ ".claude/skills/dashboard/SKILL.md",
1023
+ "CHANGELOG.md",
1024
+ "README.md",
1025
+ "bin/devflow-dashboard.js",
1026
+ "bin/devflow-swarm.js",
1027
+ "bin/devflow.js",
1028
+ "package.json",
1029
+ "pyproject.toml",
1030
+ "tooling/docs/stories/.gitkeep",
1031
+ "tooling/docs/templates/brainstorm-guide.md",
1032
+ "tooling/docs/templates/story.md",
1033
+ "tooling/scripts/lib/__init__.py",
1034
+ "tooling/scripts/lib/cost_display.py",
1035
+ "tooling/scripts/lib/pair_programming.py",
1036
+ "tooling/scripts/lib/swarm_orchestrator.py",
1037
+ "tooling/scripts/live_dashboard.py",
1038
+ "tooling/scripts/new-doc.py",
1039
+ "tooling/scripts/run-collab.py",
1040
+ "tooling/scripts/run-story.py",
1041
+ "tooling/scripts/setup-checkpoint-service.py"
1042
+ ],
1043
+ "next_steps": [
1044
+ "Review the acceptance criteria in the story context",
1045
+ "Examine the 23 files that have context",
1046
+ "Implement the required functionality",
1047
+ "Write tests for the implementation"
1048
+ ]
934
1049
  }
935
1050
  ]
936
1051
  }