Skip to content

armgit / ruflo

Public Imported from GitHub
0

🌊 The original agent harness. Deploy intelligent multi-player swarms, coordinate autonomous workflows, and build conversational AI systems. Features adaptive memory, self-learning intelligence, federation, vector RAG integration, and native Claude Code / Codex / Hermes and many more Integrated

Release v2.7.0-alpha.13 - Fix statusline portability

rUvfdc975466040
diff --git a/.claude-flow/metrics/performance.json b/.claude-flow/metrics/performance.json
index 2b9517ab57..27b22230ce 100644
--- a/.claude-flow/metrics/performance.json
+++ b/.claude-flow/metrics/performance.json
@@ -1,7 +1,7 @@
{
- "startTime": 1760922760448,
- "sessionId": "session-1760922760448",
- "lastActivity": 1760922760448,
+ "startTime": 1760925940538,
+ "sessionId": "session-1760925940538",
+ "lastActivity": 1760925940538,
"sessionDuration": 0,
"totalTasks": 1,
"successfulTasks": 1,
diff --git a/.claude-flow/metrics/system-metrics.json b/.claude-flow/metrics/system-metrics.json
index a402116f85..9eb03c490a 100644
--- a/.claude-flow/metrics/system-metrics.json
+++ b/.claude-flow/metrics/system-metrics.json
@@ -310,5 +310,1277 @@
"cpuLoad": 0.061875,
"platform": "linux",
"uptime": 1516.76
+ },
+ {
+ "timestamp": 1760922787303,
+ "memoryTotal": 67427545088,
+ "memoryUsed": 4869447680,
+ "memoryFree": 62558097408,
+ "memoryUsagePercent": 7.221748431809079,
+ "memoryEfficiency": 92.77825156819092,
+ "cpuCount": 16,
+ "cpuLoad": 0.05,
+ "platform": "linux",
+ "uptime": 1546.77
+ },
+ {
+ "timestamp": 1760922817333,
+ "memoryTotal": 67427545088,
+ "memoryUsed": 4885032960,
+ "memoryFree": 62542512128,
+ "memoryUsagePercent": 7.244862546344407,
+ "memoryEfficiency": 92.75513745365559,
+ "cpuCount": 16,
+ "cpuLoad": 0.070625,
+ "platform": "linux",
+ "uptime": 1576.8
+ },
+ {
+ "timestamp": 1760922847351,
+ "memoryTotal": 67427545088,
+ "memoryUsed": 4911718400,
+ "memoryFree": 62515826688,
+ "memoryUsagePercent": 7.2844390131506245,
+ "memoryEfficiency": 92.71556098684937,
+ "cpuCount": 16,
+ "cpuLoad": 0.074375,
+ "platform": "linux",
+ "uptime": 1606.81
+ },
+ {
+ "timestamp": 1760922877381,
+ "memoryTotal": 67427545088,
+ "memoryUsed": 5147856896,
+ "memoryFree": 62279688192,
+ "memoryUsagePercent": 7.634649740371696,
+ "memoryEfficiency": 92.3653502596283,
+ "cpuCount": 16,
+ "cpuLoad": 0.0875,
+ "platform": "linux",
+ "uptime": 1636.84
+ },
+ {
+ "timestamp": 1760922907411,
+ "memoryTotal": 67427545088,
+ "memoryUsed": 5010968576,
+ "memoryFree": 62416576512,
+ "memoryUsagePercent": 7.43163431125983,
+ "memoryEfficiency": 92.56836568874017,
+ "cpuCount": 16,
+ "cpuLoad": 0.084375,
+ "platform": "linux",
+ "uptime": 1666.87
+ },
+ {
+ "timestamp": 1760922937420,
+ "memoryTotal": 67427545088,
+ "memoryUsed": 5021749248,
+ "memoryFree": 62405795840,
+ "memoryUsagePercent": 7.447622839369418,
+ "memoryEfficiency": 92.55237716063058,
+ "cpuCount": 16,
+ "cpuLoad": 0.084375,
+ "platform": "linux",
+ "uptime": 1696.88
+ },
+ {
+ "timestamp": 1760922967431,
+ "memoryTotal": 67427545088,
+ "memoryUsed": 5143744512,
+ "memoryFree": 62283800576,
+ "memoryUsagePercent": 7.628550772962112,
+ "memoryEfficiency": 92.37144922703789,
+ "cpuCount": 16,
+ "cpuLoad": 0.088125,
+ "platform": "linux",
+ "uptime": 1726.89
+ },
+ {
+ "timestamp": 1760922997454,
+ "memoryTotal": 67427545088,
+ "memoryUsed": 4931952640,
+ "memoryFree": 62495592448,
+ "memoryUsagePercent": 7.314447876699775,
+ "memoryEfficiency": 92.68555212330023,
+ "cpuCount": 16,
+ "cpuLoad": 0.071875,
+ "platform": "linux",
+ "uptime": 1756.92
+ },
+ {
+ "timestamp": 1760923027455,
+ "memoryTotal": 67427545088,
+ "memoryUsed": 5019426816,
+ "memoryFree": 62408118272,
+ "memoryUsagePercent": 7.4441785021968725,
+ "memoryEfficiency": 92.55582149780312,
+ "cpuCount": 16,
+ "cpuLoad": 0.099375,
+ "platform": "linux",
+ "uptime": 1786.92
+ },
+ {
+ "timestamp": 1760923057485,
+ "memoryTotal": 67427545088,
+ "memoryUsed": 4959490048,
+ "memoryFree": 62468055040,
+ "memoryUsagePercent": 7.3552878746028005,
+ "memoryEfficiency": 92.6447121253972,
+ "cpuCount": 16,
+ "cpuLoad": 0.09125,
+ "platform": "linux",
+ "uptime": 1816.95
+ },
+ {
+ "timestamp": 1760923087516,
+ "memoryTotal": 67427545088,
+ "memoryUsed": 4934057984,
+ "memoryFree": 62493487104,
+ "memoryUsagePercent": 7.317570256429384,
+ "memoryEfficiency": 92.68242974357062,
+ "cpuCount": 16,
+ "cpuLoad": 0.07375,
+ "platform": "linux",
+ "uptime": 1846.98
+ },
+ {
+ "timestamp": 1760923117545,
+ "memoryTotal": 67427545088,
+ "memoryUsed": 5053722624,
+ "memoryFree": 62373822464,
+ "memoryUsagePercent": 7.495041703512063,
+ "memoryEfficiency": 92.50495829648794,
+ "cpuCount": 16,
+ "cpuLoad": 0.083125,
+ "platform": "linux",
+ "uptime": 1877.01
+ },
+ {
+ "timestamp": 1760923147576,
+ "memoryTotal": 67427545088,
+ "memoryUsed": 5501534208,
+ "memoryFree": 61926010880,
+ "memoryUsagePercent": 8.159179161602164,
+ "memoryEfficiency": 91.84082083839783,
+ "cpuCount": 16,
+ "cpuLoad": 0.10375,
+ "platform": "linux",
+ "uptime": 1907.04
+ },
+ {
+ "timestamp": 1760923177581,
+ "memoryTotal": 67427545088,
+ "memoryUsed": 5059043328,
+ "memoryFree": 62368501760,
+ "memoryUsagePercent": 7.502932698198368,
+ "memoryEfficiency": 92.49706730180164,
+ "cpuCount": 16,
+ "cpuLoad": 0.09875,
+ "platform": "linux",
+ "uptime": 1937.04
+ },
+ {
+ "timestamp": 1760923207607,
+ "memoryTotal": 67427545088,
+ "memoryUsed": 4989444096,
+ "memoryFree": 62438100992,
+ "memoryUsagePercent": 7.399711927059266,
+ "memoryEfficiency": 92.60028807294073,
+ "cpuCount": 16,
+ "cpuLoad": 0.0725,
+ "platform": "linux",
+ "uptime": 1967.07
+ },
+ {
+ "timestamp": 1760923237612,
+ "memoryTotal": 67427545088,
+ "memoryUsed": 4952653824,
+ "memoryFree": 62474891264,
+ "memoryUsagePercent": 7.345149252484676,
+ "memoryEfficiency": 92.65485074751533,
+ "cpuCount": 16,
+ "cpuLoad": 0.065,
+ "platform": "linux",
+ "uptime": 1997.07
+ },
+ {
+ "timestamp": 1760923267623,
+ "memoryTotal": 67427545088,
+ "memoryUsed": 4932354048,
+ "memoryFree": 62495191040,
+ "memoryUsagePercent": 7.315043194235771,
+ "memoryEfficiency": 92.68495680576423,
+ "cpuCount": 16,
+ "cpuLoad": 0.044375,
+ "platform": "linux",
+ "uptime": 2027.09
+ },
+ {
+ "timestamp": 1760923297637,
+ "memoryTotal": 67427545088,
+ "memoryUsed": 4968853504,
+ "memoryFree": 62458691584,
+ "memoryUsagePercent": 7.3691745673302,
+ "memoryEfficiency": 92.6308254326698,
+ "cpuCount": 16,
+ "cpuLoad": 0.030625,
+ "platform": "linux",
+ "uptime": 2057.1
+ },
+ {
+ "timestamp": 1760923327667,
+ "memoryTotal": 67427545088,
+ "memoryUsed": 4935409664,
+ "memoryFree": 62492135424,
+ "memoryUsagePercent": 7.319574897111816,
+ "memoryEfficiency": 92.68042510288818,
+ "cpuCount": 16,
+ "cpuLoad": 0.034375,
+ "platform": "linux",
+ "uptime": 2087.13
+ },
+ {
+ "timestamp": 1760923357695,
+ "memoryTotal": 67427545088,
+ "memoryUsed": 4955090944,
+ "memoryFree": 62472454144,
+ "memoryUsagePercent": 7.348763680381791,
+ "memoryEfficiency": 92.6512363196182,
+ "cpuCount": 16,
+ "cpuLoad": 0.040625,
+ "platform": "linux",
+ "uptime": 2117.16
+ },
+ {
+ "timestamp": 1760923387724,
+ "memoryTotal": 67427545088,
+ "memoryUsed": 4963938304,
+ "memoryFree": 62463606784,
+ "memoryUsagePercent": 7.361884964848625,
+ "memoryEfficiency": 92.63811503515137,
+ "cpuCount": 16,
+ "cpuLoad": 0.04625,
+ "platform": "linux",
+ "uptime": 2147.19
+ },
+ {
+ "timestamp": 1760923417726,
+ "memoryTotal": 67427545088,
+ "memoryUsed": 5058785280,
+ "memoryFree": 62368759808,
+ "memoryUsagePercent": 7.502549994068087,
+ "memoryEfficiency": 92.49745000593191,
+ "cpuCount": 16,
+ "cpuLoad": 0.053125,
+ "platform": "linux",
+ "uptime": 2177.19
+ },
+ {
+ "timestamp": 1760923447743,
+ "memoryTotal": 67427545088,
+ "memoryUsed": 5188243456,
+ "memoryFree": 62239301632,
+ "memoryUsagePercent": 7.694545974095305,
+ "memoryEfficiency": 92.3054540259047,
+ "cpuCount": 16,
+ "cpuLoad": 0.12,
+ "platform": "linux",
+ "uptime": 2207.21
+ },
+ {
+ "timestamp": 1760923477773,
+ "memoryTotal": 67427545088,
+ "memoryUsed": 5242847232,
+ "memoryFree": 62184697856,
+ "memoryUsagePercent": 7.775527382996869,
+ "memoryEfficiency": 92.22447261700313,
+ "cpuCount": 16,
+ "cpuLoad": 0.104375,
+ "platform": "linux",
+ "uptime": 2237.24
+ },
+ {
+ "timestamp": 1760923507779,
+ "memoryTotal": 67427545088,
+ "memoryUsed": 5281304576,
+ "memoryFree": 62146240512,
+ "memoryUsagePercent": 7.832562447746459,
+ "memoryEfficiency": 92.16743755225355,
+ "cpuCount": 16,
+ "cpuLoad": 0.101875,
+ "platform": "linux",
+ "uptime": 2267.24
+ },
+ {
+ "timestamp": 1760923537782,
+ "memoryTotal": 67427545088,
+ "memoryUsed": 5991157760,
+ "memoryFree": 61436387328,
+ "memoryUsagePercent": 8.88532683813553,
+ "memoryEfficiency": 91.11467316186447,
+ "cpuCount": 16,
+ "cpuLoad": 0.18875,
+ "platform": "linux",
+ "uptime": 2297.24
+ },
+ {
+ "timestamp": 1760923567801,
+ "memoryTotal": 67427545088,
+ "memoryUsed": 6145507328,
+ "memoryFree": 61282037760,
+ "memoryUsagePercent": 9.114238580063192,
+ "memoryEfficiency": 90.88576141993681,
+ "cpuCount": 16,
+ "cpuLoad": 0.30875,
+ "platform": "linux",
+ "uptime": 2327.26
+ },
+ {
+ "timestamp": 1760923597831,
+ "memoryTotal": 67427545088,
+ "memoryUsed": 5779279872,
+ "memoryFree": 61648265216,
+ "memoryUsagePercent": 8.57109637382977,
+ "memoryEfficiency": 91.42890362617023,
+ "cpuCount": 16,
+ "cpuLoad": 0.244375,
+ "platform": "linux",
+ "uptime": 2357.29
+ },
+ {
+ "timestamp": 1760923627861,
+ "memoryTotal": 67427545088,
+ "memoryUsed": 5721284608,
+ "memoryFree": 61706260480,
+ "memoryUsagePercent": 8.485085139215917,
+ "memoryEfficiency": 91.51491486078409,
+ "cpuCount": 16,
+ "cpuLoad": 0.17,
+ "platform": "linux",
+ "uptime": 2387.32
+ },
+ {
+ "timestamp": 1760923657866,
+ "memoryTotal": 67427545088,
+ "memoryUsed": 5774123008,
+ "memoryFree": 61653422080,
+ "memoryUsagePercent": 8.56344836589285,
+ "memoryEfficiency": 91.43655163410715,
+ "cpuCount": 16,
+ "cpuLoad": 0.148125,
+ "platform": "linux",
+ "uptime": 2417.33
+ },
+ {
+ "timestamp": 1760923687896,
+ "memoryTotal": 67427545088,
+ "memoryUsed": 5700227072,
+ "memoryFree": 61727318016,
+ "memoryUsagePercent": 8.453855267251102,
+ "memoryEfficiency": 91.5461447327489,
+ "cpuCount": 16,
+ "cpuLoad": 0.100625,
+ "platform": "linux",
+ "uptime": 2447.36
+ },
+ {
+ "timestamp": 1760923717927,
+ "memoryTotal": 67427545088,
+ "memoryUsed": 5730451456,
+ "memoryFree": 61697093632,
+ "memoryUsagePercent": 8.498680247844055,
+ "memoryEfficiency": 91.50131975215595,
+ "cpuCount": 16,
+ "cpuLoad": 0.085625,
+ "platform": "linux",
+ "uptime": 2477.39
+ },
+ {
+ "timestamp": 1760923747958,
+ "memoryTotal": 67427545088,
+ "memoryUsed": 5492436992,
+ "memoryFree": 61935108096,
+ "memoryUsagePercent": 8.145687322342516,
+ "memoryEfficiency": 91.85431267765749,
+ "cpuCount": 16,
+ "cpuLoad": 0.065,
+ "platform": "linux",
+ "uptime": 2507.42
+ },
+ {
+ "timestamp": 1760923777966,
+ "memoryTotal": 67427545088,
+ "memoryUsed": 5794766848,
+ "memoryFree": 61632778240,
+ "memoryUsagePercent": 8.594064696315465,
+ "memoryEfficiency": 91.40593530368453,
+ "cpuCount": 16,
+ "cpuLoad": 0.11,
+ "platform": "linux",
+ "uptime": 2537.43
+ },
+ {
+ "timestamp": 1760923807997,
+ "memoryTotal": 67427545088,
+ "memoryUsed": 6255169536,
+ "memoryFree": 61172375552,
+ "memoryUsagePercent": 9.276875686095867,
+ "memoryEfficiency": 90.72312431390414,
+ "cpuCount": 16,
+ "cpuLoad": 0.193125,
+ "platform": "linux",
+ "uptime": 2567.46
+ },
+ {
+ "timestamp": 1760923838023,
+ "memoryTotal": 67427545088,
+ "memoryUsed": 5788360704,
+ "memoryFree": 61639184384,
+ "memoryUsagePercent": 8.584563914414478,
+ "memoryEfficiency": 91.41543608558553,
+ "cpuCount": 16,
+ "cpuLoad": 0.30875,
+ "platform": "linux",
+ "uptime": 2597.49
+ },
+ {
+ "timestamp": 1760923868054,
+ "memoryTotal": 67427545088,
+ "memoryUsed": 5471485952,
+ "memoryFree": 61956059136,
+ "memoryUsagePercent": 8.114615391764803,
+ "memoryEfficiency": 91.8853846082352,
+ "cpuCount": 16,
+ "cpuLoad": 0.194375,
+ "platform": "linux",
+ "uptime": 2627.52
+ },
+ {
+ "timestamp": 1760923898083,
+ "memoryTotal": 67427545088,
+ "memoryUsed": 5624930304,
+ "memoryFree": 61802614784,
+ "memoryUsagePercent": 8.342184631902107,
+ "memoryEfficiency": 91.65781536809789,
+ "cpuCount": 16,
+ "cpuLoad": 0.135,
+ "platform": "linux",
+ "uptime": 2657.55
+ },
+ {
+ "timestamp": 1760923928113,
+ "memoryTotal": 67427545088,
+ "memoryUsed": 6220066816,
+ "memoryFree": 61207478272,
+ "memoryUsagePercent": 9.224815775039952,
+ "memoryEfficiency": 90.77518422496004,
+ "cpuCount": 16,
+ "cpuLoad": 0.235,
+ "platform": "linux",
+ "uptime": 2687.58
+ },
+ {
+ "timestamp": 1760923958125,
+ "memoryTotal": 67427545088,
+ "memoryUsed": 6214324224,
+ "memoryFree": 61213220864,
+ "memoryUsagePercent": 9.216299089473978,
+ "memoryEfficiency": 90.78370091052602,
+ "cpuCount": 16,
+ "cpuLoad": 0.298125,
+ "platform": "linux",
+ "uptime": 2717.59
+ },
+ {
+ "timestamp": 1760923988127,
+ "memoryTotal": 67427545088,
+ "memoryUsed": 5866061824,
+ "memoryFree": 61561483264,
+ "memoryUsagePercent": 8.69980038031071,
+ "memoryEfficiency": 91.3001996196893,
+ "cpuCount": 16,
+ "cpuLoad": 0.30625,
+ "platform": "linux",
+ "uptime": 2747.59
+ },
+ {
+ "timestamp": 1760924018157,
+ "memoryTotal": 67427545088,
+ "memoryUsed": 5564280832,
+ "memoryFree": 61863264256,
+ "memoryUsagePercent": 8.252237011948205,
+ "memoryEfficiency": 91.74776298805179,
+ "cpuCount": 16,
+ "cpuLoad": 0.21375,
+ "platform": "linux",
+ "uptime": 2777.62
+ },
+ {
+ "timestamp": 1760924048160,
+ "memoryTotal": 67427545088,
+ "memoryUsed": 5492609024,
+ "memoryFree": 61934936064,
+ "memoryUsagePercent": 8.14594245842937,
+ "memoryEfficiency": 91.85405754157063,
+ "cpuCount": 16,
+ "cpuLoad": 0.15375,
+ "platform": "linux",
+ "uptime": 2807.62
+ },
+ {
+ "timestamp": 1760924078191,
+ "memoryTotal": 67427545088,
+ "memoryUsed": 5578543104,
+ "memoryFree": 61849001984,
+ "memoryUsagePercent": 8.273389008482242,
+ "memoryEfficiency": 91.72661099151776,
+ "cpuCount": 16,
+ "cpuLoad": 0.11875,
+ "platform": "linux",
+ "uptime": 2837.65
+ },
+ {
+ "timestamp": 1760924108218,
+ "memoryTotal": 67427545088,
+ "memoryUsed": 5459705856,
+ "memoryFree": 61967839232,
+ "memoryUsagePercent": 8.097144644483961,
+ "memoryEfficiency": 91.90285535551604,
+ "cpuCount": 16,
+ "cpuLoad": 0.08375,
+ "platform": "linux",
+ "uptime": 2867.68
+ },
+ {
+ "timestamp": 1760924138224,
+ "memoryTotal": 67427545088,
+ "memoryUsed": 5596647424,
+ "memoryFree": 61830897664,
+ "memoryUsagePercent": 8.300239044289377,
+ "memoryEfficiency": 91.69976095571062,
+ "cpuCount": 16,
+ "cpuLoad": 0.130625,
+ "platform": "linux",
+ "uptime": 2897.69
+ },
+ {
+ "timestamp": 1760924168231,
+ "memoryTotal": 67427545088,
+ "memoryUsed": 6202605568,
+ "memoryFree": 61224939520,
+ "memoryUsagePercent": 9.198919462224156,
+ "memoryEfficiency": 90.80108053777585,
+ "cpuCount": 16,
+ "cpuLoad": 0.138125,
+ "platform": "linux",
+ "uptime": 2927.69
+ },
+ {
+ "timestamp": 1760924198262,
+ "memoryTotal": 67427545088,
+ "memoryUsed": 5549162496,
+ "memoryFree": 61878382592,
+ "memoryUsagePercent": 8.229815409648628,
+ "memoryEfficiency": 91.77018459035138,
+ "cpuCount": 16,
+ "cpuLoad": 0.194375,
+ "platform": "linux",
+ "uptime": 2957.72
+ },
+ {
+ "timestamp": 1760924228284,
+ "memoryTotal": 67427545088,
+ "memoryUsed": 5584416768,
+ "memoryFree": 61843128320,
+ "memoryUsagePercent": 8.282100083447725,
+ "memoryEfficiency": 91.71789991655227,
+ "cpuCount": 16,
+ "cpuLoad": 0.213125,
+ "platform": "linux",
+ "uptime": 2987.75
+ },
+ {
+ "timestamp": 1760924258314,
+ "memoryTotal": 67427545088,
+ "memoryUsed": 5907632128,
+ "memoryFree": 61519912960,
+ "memoryUsagePercent": 8.76145219329863,
+ "memoryEfficiency": 91.23854780670138,
+ "cpuCount": 16,
+ "cpuLoad": 0.156875,
+ "platform": "linux",
+ "uptime": 3017.78
+ },
+ {
+ "timestamp": 1760924288343,
+ "memoryTotal": 67427545088,
+ "memoryUsed": 5677215744,
+ "memoryFree": 61750329344,
+ "memoryUsagePercent": 8.419727778299862,
+ "memoryEfficiency": 91.58027222170014,
+ "cpuCount": 16,
+ "cpuLoad": 0.149375,
+ "platform": "linux",
+ "uptime": 3047.81
+ },
+ {
+ "timestamp": 1760924318360,
+ "memoryTotal": 67427545088,
+ "memoryUsed": 5703131136,
+ "memoryFree": 61724413952,
+ "memoryUsagePercent": 8.458162207383966,
+ "memoryEfficiency": 91.54183779261604,
+ "cpuCount": 16,
+ "cpuLoad": 0.121875,
+ "platform": "linux",
+ "uptime": 3077.82
+ },
+ {
+ "timestamp": 1760924348387,
+ "memoryTotal": 67427545088,
+ "memoryUsed": 5703925760,
+ "memoryFree": 61723619328,
+ "memoryUsagePercent": 8.459340693118488,
+ "memoryEfficiency": 91.54065930688151,
+ "cpuCount": 16,
+ "cpuLoad": 0.090625,
+ "platform": "linux",
+ "uptime": 3107.85
+ },
+ {
+ "timestamp": 1760924378418,
+ "memoryTotal": 67427545088,
+ "memoryUsed": 5695148032,
+ "memoryFree": 61732397056,
+ "memoryUsagePercent": 8.446322678020142,
+ "memoryEfficiency": 91.55367732197986,
+ "cpuCount": 16,
+ "cpuLoad": 0.1175,
+ "platform": "linux",
+ "uptime": 3137.88
+ },
+ {
+ "timestamp": 1760924408448,
+ "memoryTotal": 67427545088,
+ "memoryUsed": 5618688000,
+ "memoryFree": 61808857088,
+ "memoryUsagePercent": 8.332926836750506,
+ "memoryEfficiency": 91.6670731632495,
+ "cpuCount": 16,
+ "cpuLoad": 0.085625,
+ "platform": "linux",
+ "uptime": 3167.91
+ },
+ {
+ "timestamp": 1760924438455,
+ "memoryTotal": 67427545088,
+ "memoryUsed": 5676634112,
+ "memoryFree": 61750910976,
+ "memoryUsagePercent": 8.418865175339542,
+ "memoryEfficiency": 91.58113482466045,
+ "cpuCount": 16,
+ "cpuLoad": 0.086875,
+ "platform": "linux",
+ "uptime": 3197.92
+ },
+ {
+ "timestamp": 1760924468479,
+ "memoryTotal": 67427545088,
+ "memoryUsed": 5721927680,
+ "memoryFree": 61705617408,
+ "memoryUsagePercent": 8.486038862207257,
+ "memoryEfficiency": 91.51396113779275,
+ "cpuCount": 16,
+ "cpuLoad": 0.07,
+ "platform": "linux",
+ "uptime": 3227.94
+ },
+ {
+ "timestamp": 1760924498508,
+ "memoryTotal": 67427545088,
+ "memoryUsed": 5880250368,
+ "memoryFree": 61547294720,
+ "memoryUsagePercent": 8.720843032807524,
+ "memoryEfficiency": 91.27915696719248,
+ "cpuCount": 16,
+ "cpuLoad": 0.0925,
+ "platform": "linux",
+ "uptime": 3257.97
+ },
+ {
+ "timestamp": 1760924528520,
+ "memoryTotal": 67427545088,
+ "memoryUsed": 5645467648,
+ "memoryFree": 61782077440,
+ "memoryUsagePercent": 8.372643020937621,
+ "memoryEfficiency": 91.62735697906238,
+ "cpuCount": 16,
+ "cpuLoad": 0.09375,
+ "platform": "linux",
+ "uptime": 3287.98
+ },
+ {
+ "timestamp": 1760924558549,
+ "memoryTotal": 67427545088,
+ "memoryUsed": 6321258496,
+ "memoryFree": 61106286592,
+ "memoryUsagePercent": 9.374890466129377,
+ "memoryEfficiency": 90.62510953387063,
+ "cpuCount": 16,
+ "cpuLoad": 0.171875,
+ "platform": "linux",
+ "uptime": 3318.01
+ },
+ {
+ "timestamp": 1760924588579,
+ "memoryTotal": 67427545088,
+ "memoryUsed": 6267936768,
+ "memoryFree": 61159608320,
+ "memoryUsagePercent": 9.295810428541758,
+ "memoryEfficiency": 90.70418957145824,
+ "cpuCount": 16,
+ "cpuLoad": 0.22625,
+ "platform": "linux",
+ "uptime": 3348.04
+ },
+ {
+ "timestamp": 1760924618609,
+ "memoryTotal": 67427545088,
+ "memoryUsed": 5648932864,
+ "memoryFree": 61778612224,
+ "memoryUsagePercent": 8.377782190687132,
+ "memoryEfficiency": 91.62221780931287,
+ "cpuCount": 16,
+ "cpuLoad": 0.260625,
+ "platform": "linux",
+ "uptime": 3378.07
+ },
+ {
+ "timestamp": 1760924648636,
+ "memoryTotal": 67427545088,
+ "memoryUsed": 5650948096,
+ "memoryFree": 61776596992,
+ "memoryUsagePercent": 8.380770927704578,
+ "memoryEfficiency": 91.61922907229543,
+ "cpuCount": 16,
+ "cpuLoad": 0.165625,
+ "platform": "linux",
+ "uptime": 3408.1
+ },
+ {
+ "timestamp": 1760924678655,
+ "memoryTotal": 67427545088,
+ "memoryUsed": 5716570112,
+ "memoryFree": 61710974976,
+ "memoryUsagePercent": 8.478093195502339,
+ "memoryEfficiency": 91.52190680449766,
+ "cpuCount": 16,
+ "cpuLoad": 0.108125,
+ "platform": "linux",
+ "uptime": 3438.12
+ },
+ {
+ "timestamp": 1760924708685,
+ "memoryTotal": 67427545088,
+ "memoryUsed": 5769334784,
+ "memoryFree": 61658210304,
+ "memoryUsagePercent": 8.556347078142048,
+ "memoryEfficiency": 91.44365292185795,
+ "cpuCount": 16,
+ "cpuLoad": 0.093125,
+ "platform": "linux",
+ "uptime": 3468.15
+ },
+ {
+ "timestamp": 1760924738703,
+ "memoryTotal": 67427545088,
+ "memoryUsed": 5609951232,
+ "memoryFree": 61817593856,
+ "memoryUsagePercent": 8.319969568339507,
+ "memoryEfficiency": 91.6800304316605,
+ "cpuCount": 16,
+ "cpuLoad": 0.05625,
+ "platform": "linux",
+ "uptime": 3498.17
+ },
+ {
+ "timestamp": 1760924768729,
+ "memoryTotal": 67427545088,
+ "memoryUsed": 5617569792,
+ "memoryFree": 61809975296,
+ "memoryUsagePercent": 8.331268452185949,
+ "memoryEfficiency": 91.66873154781405,
+ "cpuCount": 16,
+ "cpuLoad": 0.034375,
+ "platform": "linux",
+ "uptime": 3528.19
+ },
+ {
+ "timestamp": 1760924798759,
+ "memoryTotal": 67427545088,
+ "memoryUsed": 5897289728,
+ "memoryFree": 61530255360,
+ "memoryUsagePercent": 8.74611365474365,
+ "memoryEfficiency": 91.25388634525635,
+ "cpuCount": 16,
+ "cpuLoad": 0.039375,
+ "platform": "linux",
+ "uptime": 3558.22
+ },
+ {
+ "timestamp": 1760924828788,
+ "memoryTotal": 67427545088,
+ "memoryUsed": 6327111680,
+ "memoryFree": 61100433408,
+ "memoryUsagePercent": 9.383571167751187,
+ "memoryEfficiency": 90.61642883224881,
+ "cpuCount": 16,
+ "cpuLoad": 0.051875,
+ "platform": "linux",
+ "uptime": 3588.25
+ },
+ {
+ "timestamp": 1760924858791,
+ "memoryTotal": 67427545088,
+ "memoryUsed": 7008206848,
+ "memoryFree": 60419338240,
+ "memoryUsagePercent": 10.39368530895431,
+ "memoryEfficiency": 89.6063146910457,
+ "cpuCount": 16,
+ "cpuLoad": 0.114375,
+ "platform": "linux",
+ "uptime": 3618.25
+ },
+ {
+ "timestamp": 1760924888822,
+ "memoryTotal": 67427545088,
+ "memoryUsed": 7848771584,
+ "memoryFree": 59578773504,
+ "memoryUsagePercent": 11.640304528003403,
+ "memoryEfficiency": 88.3596954719966,
+ "cpuCount": 16,
+ "cpuLoad": 0.22,
+ "platform": "linux",
+ "uptime": 3648.28
+ },
+ {
+ "timestamp": 1760924918847,
+ "memoryTotal": 67427545088,
+ "memoryUsed": 5861593088,
+ "memoryFree": 61565952000,
+ "memoryUsagePercent": 8.693172916721212,
+ "memoryEfficiency": 91.30682708327879,
+ "cpuCount": 16,
+ "cpuLoad": 0.260625,
+ "platform": "linux",
+ "uptime": 3678.31
+ },
+ {
+ "timestamp": 1760924948876,
+ "memoryTotal": 67427545088,
+ "memoryUsed": 5838581760,
+ "memoryFree": 61588963328,
+ "memoryUsagePercent": 8.659045427769971,
+ "memoryEfficiency": 91.34095457223003,
+ "cpuCount": 16,
+ "cpuLoad": 0.1625,
+ "platform": "linux",
+ "uptime": 3708.34
+ },
+ {
+ "timestamp": 1760924978907,
+ "memoryTotal": 67427545088,
+ "memoryUsed": 5980569600,
+ "memoryFree": 61446975488,
+ "memoryUsagePercent": 8.869623819456471,
+ "memoryEfficiency": 91.13037618054352,
+ "cpuCount": 16,
+ "cpuLoad": 0.12375,
+ "platform": "linux",
+ "uptime": 3738.37
+ },
+ {
+ "timestamp": 1760925008938,
+ "memoryTotal": 67427545088,
+ "memoryUsed": 5928366080,
+ "memoryFree": 61499179008,
+ "memoryUsagePercent": 8.792202166433409,
+ "memoryEfficiency": 91.20779783356659,
+ "cpuCount": 16,
+ "cpuLoad": 0.1025,
+ "platform": "linux",
+ "uptime": 3768.4
+ },
+ {
+ "timestamp": 1760925038946,
+ "memoryTotal": 67427545088,
+ "memoryUsed": 6059810816,
+ "memoryFree": 61367734272,
+ "memoryUsagePercent": 8.98714436079693,
+ "memoryEfficiency": 91.01285563920307,
+ "cpuCount": 16,
+ "cpuLoad": 0.101875,
+ "platform": "linux",
+ "uptime": 3798.41
+ },
+ {
+ "timestamp": 1760925068976,
+ "memoryTotal": 67427545088,
+ "memoryUsed": 6417801216,
+ "memoryFree": 61009743872,
+ "memoryUsagePercent": 9.51807040820498,
+ "memoryEfficiency": 90.48192959179502,
+ "cpuCount": 16,
+ "cpuLoad": 0.166875,
+ "platform": "linux",
+ "uptime": 3828.44
+ },
+ {
+ "timestamp": 1760925099005,
+ "memoryTotal": 67427545088,
+ "memoryUsed": 5914714112,
+ "memoryFree": 61512830976,
+ "memoryUsagePercent": 8.771955295540835,
+ "memoryEfficiency": 91.22804470445917,
+ "cpuCount": 16,
+ "cpuLoad": 0.249375,
+ "platform": "linux",
+ "uptime": 3858.47
+ },
+ {
+ "timestamp": 1760925129021,
+ "memoryTotal": 67427545088,
+ "memoryUsed": 6262538240,
+ "memoryFree": 61165006848,
+ "memoryUsagePercent": 9.287804015149495,
+ "memoryEfficiency": 90.71219598485051,
+ "cpuCount": 16,
+ "cpuLoad": 0.2075,
+ "platform": "linux",
+ "uptime": 3888.48
+ },
+ {
+ "timestamp": 1760925159051,
+ "memoryTotal": 67427545088,
+ "memoryUsed": 6525874176,
+ "memoryFree": 60901670912,
+ "memoryUsagePercent": 9.678350542768614,
+ "memoryEfficiency": 90.32164945723139,
+ "cpuCount": 16,
+ "cpuLoad": 0.14625,
+ "platform": "linux",
+ "uptime": 3918.51
+ },
+ {
+ "timestamp": 1760925189055,
+ "memoryTotal": 67427545088,
+ "memoryUsed": 6489509888,
+ "memoryFree": 60938035200,
+ "memoryUsagePercent": 9.624419633742427,
+ "memoryEfficiency": 90.37558036625757,
+ "cpuCount": 16,
+ "cpuLoad": 0.115,
+ "platform": "linux",
+ "uptime": 3948.52
+ },
+ {
+ "timestamp": 1760925219085,
+ "memoryTotal": 67427545088,
+ "memoryUsed": 6740615168,
+ "memoryFree": 60686929920,
+ "memoryUsagePercent": 9.996827200519895,
+ "memoryEfficiency": 90.0031727994801,
+ "cpuCount": 16,
+ "cpuLoad": 0.135625,
+ "platform": "linux",
+ "uptime": 3978.55
+ },
+ {
+ "timestamp": 1760925249109,
+ "memoryTotal": 67427545088,
+ "memoryUsed": 6994677760,
+ "memoryFree": 60432867328,
+ "memoryUsagePercent": 10.373620678123775,
+ "memoryEfficiency": 89.62637932187623,
+ "cpuCount": 16,
+ "cpuLoad": 0.18375,
+ "platform": "linux",
+ "uptime": 4008.57
+ },
+ {
+ "timestamp": 1760925279112,
+ "memoryTotal": 67427545088,
+ "memoryUsed": 6004387840,
+ "memoryFree": 61423157248,
+ "memoryUsagePercent": 8.904948018148437,
+ "memoryEfficiency": 91.09505198185157,
+ "cpuCount": 16,
+ "cpuLoad": 0.318125,
+ "platform": "linux",
+ "uptime": 4038.57
+ },
+ {
+ "timestamp": 1760925309141,
+ "memoryTotal": 67427545088,
+ "memoryUsed": 5904871424,
+ "memoryFree": 61522673664,
+ "memoryUsagePercent": 8.75735786657148,
+ "memoryEfficiency": 91.24264213342852,
+ "cpuCount": 16,
+ "cpuLoad": 0.2175,
+ "platform": "linux",
+ "uptime": 4068.6
+ },
+ {
+ "timestamp": 1760925339162,
+ "memoryTotal": 67427545088,
+ "memoryUsed": 5897490432,
+ "memoryFree": 61530054656,
+ "memoryUsagePercent": 8.746411313511649,
+ "memoryEfficiency": 91.25358868648836,
+ "cpuCount": 16,
+ "cpuLoad": 0.160625,
+ "platform": "linux",
+ "uptime": 4098.62
+ },
+ {
+ "timestamp": 1760925369192,
+ "memoryTotal": 67427545088,
+ "memoryUsed": 6425784320,
+ "memoryFree": 61001760768,
+ "memoryUsagePercent": 9.529909937568808,
+ "memoryEfficiency": 90.4700900624312,
+ "cpuCount": 16,
+ "cpuLoad": 0.16875,
+ "platform": "linux",
+ "uptime": 4128.65
+ },
+ {
+ "timestamp": 1760925399222,
+ "memoryTotal": 67427545088,
+ "memoryUsed": 6556356608,
+ "memoryFree": 60871188480,
+ "memoryUsagePercent": 9.72355822749185,
+ "memoryEfficiency": 90.27644177250815,
+ "cpuCount": 16,
+ "cpuLoad": 0.121875,
+ "platform": "linux",
+ "uptime": 4158.68
+ },
+ {
+ "timestamp": 1760925429252,
+ "memoryTotal": 67427545088,
+ "memoryUsed": 6572752896,
+ "memoryFree": 60854792192,
+ "memoryUsagePercent": 9.747875126436636,
+ "memoryEfficiency": 90.25212487356336,
+ "cpuCount": 16,
+ "cpuLoad": 0.07375,
+ "platform": "linux",
+ "uptime": 4188.71
+ },
+ {
+ "timestamp": 1760925459282,
+ "memoryTotal": 67427545088,
+ "memoryUsed": 6685675520,
+ "memoryFree": 60741869568,
+ "memoryUsagePercent": 9.915347668782088,
+ "memoryEfficiency": 90.08465233121791,
+ "cpuCount": 16,
+ "cpuLoad": 0.0525,
+ "platform": "linux",
+ "uptime": 4218.74
+ },
+ {
+ "timestamp": 1760925489313,
+ "memoryTotal": 67427545088,
+ "memoryUsed": 6415364096,
+ "memoryFree": 61012180992,
+ "memoryUsagePercent": 9.514455980307869,
+ "memoryEfficiency": 90.48554401969213,
+ "cpuCount": 16,
+ "cpuLoad": 0.04625,
+ "platform": "linux",
+ "uptime": 4248.78
+ },
+ {
+ "timestamp": 1760925519344,
+ "memoryTotal": 67427545088,
+ "memoryUsed": 6519705600,
+ "memoryFree": 60907839488,
+ "memoryUsagePercent": 9.669202091654236,
+ "memoryEfficiency": 90.33079790834576,
+ "cpuCount": 16,
+ "cpuLoad": 0.04125,
+ "platform": "linux",
+ "uptime": 4278.81
+ },
+ {
+ "timestamp": 1760925549375,
+ "memoryTotal": 67427545088,
+ "memoryUsed": 6483795968,
+ "memoryFree": 60943749120,
+ "memoryUsagePercent": 9.615945470857596,
+ "memoryEfficiency": 90.3840545291424,
+ "cpuCount": 16,
+ "cpuLoad": 0.061875,
+ "platform": "linux",
+ "uptime": 4308.84
+ },
+ {
+ "timestamp": 1760925579405,
+ "memoryTotal": 67427545088,
+ "memoryUsed": 6569402368,
+ "memoryFree": 60858142720,
+ "memoryUsagePercent": 9.742906047411697,
+ "memoryEfficiency": 90.2570939525883,
+ "cpuCount": 16,
+ "cpuLoad": 0.05625,
+ "platform": "linux",
+ "uptime": 4338.87
+ },
+ {
+ "timestamp": 1760925609435,
+ "memoryTotal": 67427545088,
+ "memoryUsed": 6596907008,
+ "memoryFree": 60830638080,
+ "memoryUsagePercent": 9.783697447964842,
+ "memoryEfficiency": 90.21630255203516,
+ "cpuCount": 16,
+ "cpuLoad": 0.099375,
+ "platform": "linux",
+ "uptime": 4368.9
+ },
+ {
+ "timestamp": 1760925639465,
+ "memoryTotal": 67427545088,
+ "memoryUsed": 7128547328,
+ "memoryFree": 60298997760,
+ "memoryUsagePercent": 10.572159076378206,
+ "memoryEfficiency": 89.4278409236218,
+ "cpuCount": 16,
+ "cpuLoad": 0.0975,
+ "platform": "linux",
+ "uptime": 4398.93
+ },
+ {
+ "timestamp": 1760925669477,
+ "memoryTotal": 67427545088,
+ "memoryUsed": 7430434816,
+ "memoryFree": 59997110272,
+ "memoryUsagePercent": 11.019880386127813,
+ "memoryEfficiency": 88.98011961387219,
+ "cpuCount": 16,
+ "cpuLoad": 0.16,
+ "platform": "linux",
+ "uptime": 4428.94
+ },
+ {
+ "timestamp": 1760925699477,
+ "memoryTotal": 67427545088,
+ "memoryUsed": 7281033216,
+ "memoryFree": 60146511872,
+ "memoryUsagePercent": 10.798306844031606,
+ "memoryEfficiency": 89.2016931559684,
+ "cpuCount": 16,
+ "cpuLoad": 0.233125,
+ "platform": "linux",
+ "uptime": 4458.94
+ },
+ {
+ "timestamp": 1760925729496,
+ "memoryTotal": 67427545088,
+ "memoryUsed": 7173496832,
+ "memoryFree": 60254048256,
+ "memoryUsagePercent": 10.638822491072212,
+ "memoryEfficiency": 89.3611775089278,
+ "cpuCount": 16,
+ "cpuLoad": 0.14125,
+ "platform": "linux",
+ "uptime": 4488.96
+ },
+ {
+ "timestamp": 1760925759512,
+ "memoryTotal": 67427545088,
+ "memoryUsed": 7112278016,
+ "memoryFree": 60315267072,
+ "memoryUsagePercent": 10.548030492164195,
+ "memoryEfficiency": 89.4519695078358,
+ "cpuCount": 16,
+ "cpuLoad": 0.085625,
+ "platform": "linux",
+ "uptime": 4518.97
+ },
+ {
+ "timestamp": 1760925789542,
+ "memoryTotal": 67427545088,
+ "memoryUsed": 7080083456,
+ "memoryFree": 60347461632,
+ "memoryUsagePercent": 10.500283595909877,
+ "memoryEfficiency": 89.49971640409012,
+ "cpuCount": 16,
+ "cpuLoad": 0.090625,
+ "platform": "linux",
+ "uptime": 4549
+ },
+ {
+ "timestamp": 1760925819555,
+ "memoryTotal": 67427545088,
+ "memoryUsed": 7058558976,
+ "memoryFree": 60368986112,
+ "memoryUsagePercent": 10.468361211709313,
+ "memoryEfficiency": 89.53163878829069,
+ "cpuCount": 16,
+ "cpuLoad": 0.055,
+ "platform": "linux",
+ "uptime": 4579.02
+ },
+ {
+ "timestamp": 1760925849585,
+ "memoryTotal": 67427545088,
+ "memoryUsed": 7092654080,
+ "memoryFree": 60334891008,
+ "memoryUsagePercent": 10.518926754256505,
+ "memoryEfficiency": 89.48107324574349,
+ "cpuCount": 16,
+ "cpuLoad": 0.04625,
+ "platform": "linux",
+ "uptime": 4609.05
+ },
+ {
+ "timestamp": 1760925879615,
+ "memoryTotal": 67427545088,
+ "memoryUsed": 7059845120,
+ "memoryFree": 60367699968,
+ "memoryUsagePercent": 10.470268657691992,
+ "memoryEfficiency": 89.52973134230801,
+ "cpuCount": 16,
+ "cpuLoad": 0.0575,
+ "platform": "linux",
+ "uptime": 4639.08
+ },
+ {
+ "timestamp": 1760925909617,
+ "memoryTotal": 67427545088,
+ "memoryUsed": 7135817728,
+ "memoryFree": 60291727360,
+ "memoryUsagePercent": 10.582941613382204,
+ "memoryEfficiency": 89.4170583866178,
+ "cpuCount": 16,
+ "cpuLoad": 0.03875,
+ "platform": "linux",
+ "uptime": 4669.08
+ },
+ {
+ "timestamp": 1760925939637,
+ "memoryTotal": 67427545088,
+ "memoryUsed": 7295356928,
+ "memoryFree": 60132188160,
+ "memoryUsagePercent": 10.81954996059666,
+ "memoryEfficiency": 89.18045003940334,
+ "cpuCount": 16,
+ "cpuLoad": 0.065,
+ "platform": "linux",
+ "uptime": 4699.1
}
]
\ No newline at end of file
diff --git a/.claude-flow/metrics/task-metrics.json b/.claude-flow/metrics/task-metrics.json
index 6a8c4311a8..0d7f86fed0 100644
--- a/.claude-flow/metrics/task-metrics.json
+++ b/.claude-flow/metrics/task-metrics.json
@@ -1,10 +1,10 @@
[
{
- "id": "cmd-hooks-1760922760567",
+ "id": "cmd-hooks-1760925940639",
"type": "hooks",
"success": true,
- "duration": 7.204723000000001,
- "timestamp": 1760922760574,
+ "duration": 7.158918000000028,
+ "timestamp": 1760925940646,
"metadata": {}
}
]
\ No newline at end of file
diff --git a/.claude/statusline-command.sh b/.claude/statusline-command.sh
new file mode 100644
index 0000000000..eb0dd05496
--- /dev/null
+++ b/.claude/statusline-command.sh
@@ -0,0 +1,175 @@
+#!/bin/bash
+
+# Read JSON input from stdin
+INPUT=$(cat)
+MODEL=$(echo "$INPUT" | jq -r '.model.display_name // "Claude"')
+CWD=$(echo "$INPUT" | jq -r '.workspace.current_dir // .cwd')
+DIR=$(basename "$CWD")
+
+# Replace claude-code-flow with branded name
+if [ "$DIR" = "claude-code-flow" ]; then
+ DIR="🌊 Claude Flow"
+fi
+
+# Get git branch
+BRANCH=$(cd "$CWD" 2>/dev/null && git branch --show-current 2>/dev/null)
+
+# Start building statusline
+echo -ne "\033[1m$MODEL\033[0m in \033[36m$DIR\033[0m"
+[ -n "$BRANCH" ] && echo -ne " on \033[33mβŽ‡ $BRANCH\033[0m"
+
+# Claude-Flow integration
+FLOW_DIR="$CWD/.claude-flow"
+
+if [ -d "$FLOW_DIR" ]; then
+ echo -ne " β”‚"
+
+ # 1. Swarm Configuration & Topology
+ if [ -f "$FLOW_DIR/swarm-config.json" ]; then
+ STRATEGY=$(jq -r '.defaultStrategy // empty' "$FLOW_DIR/swarm-config.json" 2>/dev/null)
+ if [ -n "$STRATEGY" ]; then
+ # Map strategy to topology icon
+ case "$STRATEGY" in
+ "balanced") TOPO_ICON="⚑mesh" ;;
+ "conservative") TOPO_ICON="⚑hier" ;;
+ "aggressive") TOPO_ICON="⚑ring" ;;
+ *) TOPO_ICON="⚑$STRATEGY" ;;
+ esac
+ echo -ne " \033[35m$TOPO_ICON\033[0m"
+
+ # Count agent profiles as "configured agents"
+ AGENT_COUNT=$(jq -r '.agentProfiles | length' "$FLOW_DIR/swarm-config.json" 2>/dev/null)
+ if [ -n "$AGENT_COUNT" ] && [ "$AGENT_COUNT" != "null" ] && [ "$AGENT_COUNT" -gt 0 ]; then
+ echo -ne " \033[35mπŸ€– $AGENT_COUNT\033[0m"
+ fi
+ fi
+ fi
+
+ # 2. Real-time System Metrics
+ if [ -f "$FLOW_DIR/metrics/system-metrics.json" ]; then
+ # Get latest metrics (last entry in array)
+ LATEST=$(jq -r '.[-1]' "$FLOW_DIR/metrics/system-metrics.json" 2>/dev/null)
+
+ if [ -n "$LATEST" ] && [ "$LATEST" != "null" ]; then
+ # Memory usage
+ MEM_PERCENT=$(echo "$LATEST" | jq -r '.memoryUsagePercent // 0' | awk '{printf "%.0f", $1}')
+ if [ -n "$MEM_PERCENT" ] && [ "$MEM_PERCENT" != "null" ]; then
+ # Color-coded memory (green <60%, yellow 60-80%, red >80%)
+ if [ "$MEM_PERCENT" -lt 60 ]; then
+ MEM_COLOR="\033[32m" # Green
+ elif [ "$MEM_PERCENT" -lt 80 ]; then
+ MEM_COLOR="\033[33m" # Yellow
+ else
+ MEM_COLOR="\033[31m" # Red
+ fi
+ echo -ne " ${MEM_COLOR}πŸ’Ύ ${MEM_PERCENT}%\033[0m"
+ fi
+
+ # CPU load
+ CPU_LOAD=$(echo "$LATEST" | jq -r '.cpuLoad // 0' | awk '{printf "%.0f", $1 * 100}')
+ if [ -n "$CPU_LOAD" ] && [ "$CPU_LOAD" != "null" ]; then
+ # Color-coded CPU (green <50%, yellow 50-75%, red >75%)
+ if [ "$CPU_LOAD" -lt 50 ]; then
+ CPU_COLOR="\033[32m" # Green
+ elif [ "$CPU_LOAD" -lt 75 ]; then
+ CPU_COLOR="\033[33m" # Yellow
+ else
+ CPU_COLOR="\033[31m" # Red
+ fi
+ echo -ne " ${CPU_COLOR}βš™ ${CPU_LOAD}%\033[0m"
+ fi
+ fi
+ fi
+
+ # 3. Session State
+ if [ -f "$FLOW_DIR/session-state.json" ]; then
+ SESSION_ID=$(jq -r '.sessionId // empty' "$FLOW_DIR/session-state.json" 2>/dev/null)
+ ACTIVE=$(jq -r '.active // false' "$FLOW_DIR/session-state.json" 2>/dev/null)
+
+ if [ "$ACTIVE" = "true" ] && [ -n "$SESSION_ID" ]; then
+ # Show abbreviated session ID
+ SHORT_ID=$(echo "$SESSION_ID" | cut -d'-' -f1)
+ echo -ne " \033[34mπŸ”„ $SHORT_ID\033[0m"
+ fi
+ fi
+
+ # 4. Performance Metrics from task-metrics.json
+ if [ -f "$FLOW_DIR/metrics/task-metrics.json" ]; then
+ # Parse task metrics for success rate, avg time, and streak
+ METRICS=$(jq -r '
+ # Calculate metrics
+ (map(select(.success == true)) | length) as $successful |
+ (length) as $total |
+ (if $total > 0 then ($successful / $total * 100) else 0 end) as $success_rate |
+ (map(.duration // 0) | add / length) as $avg_duration |
+ # Calculate streak (consecutive successes from end)
+ (reverse |
+ reduce .[] as $task (0;
+ if $task.success == true then . + 1 else 0 end
+ )
+ ) as $streak |
+ {
+ success_rate: $success_rate,
+ avg_duration: $avg_duration,
+ streak: $streak,
+ total: $total
+ } | @json
+ ' "$FLOW_DIR/metrics/task-metrics.json" 2>/dev/null)
+
+ if [ -n "$METRICS" ] && [ "$METRICS" != "null" ]; then
+ # Success Rate
+ SUCCESS_RATE=$(echo "$METRICS" | jq -r '.success_rate // 0' | awk '{printf "%.0f", $1}')
+ TOTAL_TASKS=$(echo "$METRICS" | jq -r '.total // 0')
+
+ if [ -n "$SUCCESS_RATE" ] && [ "$TOTAL_TASKS" -gt 0 ]; then
+ # Color-code: Green (>80%), Yellow (60-80%), Red (<60%)
+ if [ "$SUCCESS_RATE" -gt 80 ]; then
+ SUCCESS_COLOR="\033[32m" # Green
+ elif [ "$SUCCESS_RATE" -ge 60 ]; then
+ SUCCESS_COLOR="\033[33m" # Yellow
+ else
+ SUCCESS_COLOR="\033[31m" # Red
+ fi
+ echo -ne " ${SUCCESS_COLOR}🎯 ${SUCCESS_RATE}%\033[0m"
+ fi
+
+ # Average Time
+ AVG_TIME=$(echo "$METRICS" | jq -r '.avg_duration // 0')
+ if [ -n "$AVG_TIME" ] && [ "$TOTAL_TASKS" -gt 0 ]; then
+ # Format smartly: seconds, minutes, or hours
+ if [ $(echo "$AVG_TIME < 60" | bc -l 2>/dev/null || echo 0) -eq 1 ]; then
+ TIME_STR=$(echo "$AVG_TIME" | awk '{printf "%.1fs", $1}')
+ elif [ $(echo "$AVG_TIME < 3600" | bc -l 2>/dev/null || echo 0) -eq 1 ]; then
+ TIME_STR=$(echo "$AVG_TIME" | awk '{printf "%.1fm", $1/60}')
+ else
+ TIME_STR=$(echo "$AVG_TIME" | awk '{printf "%.1fh", $1/3600}')
+ fi
+ echo -ne " \033[36m⏱️ $TIME_STR\033[0m"
+ fi
+
+ # Streak (only show if > 0)
+ STREAK=$(echo "$METRICS" | jq -r '.streak // 0')
+ if [ -n "$STREAK" ] && [ "$STREAK" -gt 0 ]; then
+ echo -ne " \033[91mπŸ”₯ $STREAK\033[0m"
+ fi
+ fi
+ fi
+
+ # 5. Active Tasks (check for task files)
+ if [ -d "$FLOW_DIR/tasks" ]; then
+ TASK_COUNT=$(find "$FLOW_DIR/tasks" -name "*.json" -type f 2>/dev/null | wc -l)
+ if [ "$TASK_COUNT" -gt 0 ]; then
+ echo -ne " \033[36mπŸ“‹ $TASK_COUNT\033[0m"
+ fi
+ fi
+
+ # 6. Check for hooks activity
+ if [ -f "$FLOW_DIR/hooks-state.json" ]; then
+ HOOKS_ACTIVE=$(jq -r '.enabled // false' "$FLOW_DIR/hooks-state.json" 2>/dev/null)
+ if [ "$HOOKS_ACTIVE" = "true" ]; then
+ echo -ne " \033[35mπŸ”—\033[0m"
+ fi
+ fi
+fi
+
+echo
diff --git a/bin/claude-flow b/bin/claude-flow
index 658740c35b..941bb38068 100755
--- a/bin/claude-flow
+++ b/bin/claude-flow
@@ -1,7 +1,7 @@
#!/bin/sh
# Claude-Flow Smart Dispatcher - Detects and uses the best available runtime
-VERSION="2.7.0-alpha.11"
+VERSION="2.7.0-alpha.12"
# Determine the correct path based on how the script is invoked
if [ -L "$0" ]; then
diff --git a/docker-test/Dockerfile.alpha11-test b/docker-test/Dockerfile.alpha11-test
new file mode 100644
index 0000000000..e5563bca3d
--- /dev/null
+++ b/docker-test/Dockerfile.alpha11-test
@@ -0,0 +1,26 @@
+# Dockerfile for testing [email protected]
+# Tests: init command, skills system, MCP server, regressions
+
+FROM node:20-slim
+
+# Set working directory
+WORKDIR /test
+
+# Install required dependencies
+RUN apt-get update && apt-get install -y \
+ git \
+ curl \
+ && rm -rf /var/lib/apt/lists/*
+
+# Install claude-flow@alpha globally
+RUN npm install -g claude-flow@alpha
+
+# Verify version is alpha.11
+RUN claude-flow --version | grep "2.7.0-alpha.11" || exit 1
+
+# Create test script
+COPY test-alpha11.sh /test/test-alpha11.sh
+RUN chmod +x /test/test-alpha11.sh
+
+# Default command
+CMD ["/test/test-alpha11.sh"]
diff --git a/docker-test/Dockerfile.alpha12-test b/docker-test/Dockerfile.alpha12-test
new file mode 100644
index 0000000000..d6ac3225ed
--- /dev/null
+++ b/docker-test/Dockerfile.alpha12-test
@@ -0,0 +1,47 @@
+FROM node:20-slim
+
+WORKDIR /app
+
+# Install dependencies
+RUN apt-get update && apt-get install -y \
+ git \
+ curl \
+ jq \
+ && rm -rf /var/lib/apt/lists/*
+
+# Install [email protected] from npm
+RUN npm install -g [email protected]
+
+# Verify version
+RUN claude-flow --version
+
+# Create test directory
+WORKDIR /test
+
+# Test the init command
+CMD echo "Testing [email protected] from npm registry..." && \
+ claude-flow init --skip-open --project-name alpha12-test && \
+ echo "" && \
+ echo "========================================" && \
+ echo "βœ… VERIFICATION RESULTS" && \
+ echo "========================================" && \
+ echo "" && \
+ echo "πŸ“ Directory Structure:" && \
+ ls -la .claude/ && \
+ echo "" && \
+ echo "πŸ“‹ Skills Directory:" && \
+ ls -la .claude/skills/ 2>/dev/null || echo "⚠️ Skills directory not found" && \
+ echo "" && \
+ echo "πŸ“Š Skills Count:" && \
+ find .claude/skills -name "SKILL.md" 2>/dev/null | wc -l && \
+ echo "" && \
+ echo "πŸ”§ Statusline Script:" && \
+ ls -lh .claude/statusline-command.sh && \
+ stat -c "Permissions: %a" .claude/statusline-command.sh && \
+ echo "" && \
+ echo "✨ Testing statusline execution:" && \
+ bash .claude/statusline-command.sh <<< '{"model": {"display_name": "Claude"}, "workspace": {"current_dir": "/test"}}' && \
+ echo "" && \
+ echo "========================================" && \
+ echo "βœ… All tests passed!" && \
+ echo "========================================"
diff --git a/docker-test/Dockerfile.local-test b/docker-test/Dockerfile.local-test
new file mode 100644
index 0000000000..133f36a55d
--- /dev/null
+++ b/docker-test/Dockerfile.local-test
@@ -0,0 +1,42 @@
+# Dockerfile for testing LOCAL claude-flow (with skills-copier fix)
+# Tests the fix BEFORE publishing to npm
+
+FROM node:20-slim
+
+# Set working directory
+WORKDIR /app
+
+# Install required dependencies
+RUN apt-get update && apt-get install -y \
+ git \
+ curl \
+ && rm -rf /var/lib/apt/lists/*
+
+# Copy package files first (for better layer caching)
+COPY package.json package-lock.json ./
+
+# Copy source files
+COPY bin/ ./bin/
+COPY src/ ./src/
+COPY .claude/ ./.claude/
+COPY scripts/ ./scripts/
+COPY docs/ ./docs/
+
+# Install dependencies (use legacy-peer-deps to avoid conflicts in Docker)
+RUN npm install --legacy-peer-deps
+
+# Link locally so we can test with npx/global commands
+RUN npm link
+
+# Verify local version
+RUN claude-flow --version
+
+# Create test directory
+WORKDIR /test
+
+# Create test script
+COPY docker-test/test-local-fix.sh /test/test-local-fix.sh
+RUN chmod +x /test/test-local-fix.sh
+
+# Default command
+CMD ["/test/test-local-fix.sh"]
diff --git a/docker-test/test-alpha11.sh b/docker-test/test-alpha11.sh
new file mode 100644
index 0000000000..e9f109a6d2
--- /dev/null
+++ b/docker-test/test-alpha11.sh
@@ -0,0 +1,244 @@
+#!/bin/bash
+# Test script for [email protected]
+
+set -e # Exit on error
+
+echo "=================================================="
+echo "🐳 Testing [email protected] in Docker"
+echo "=================================================="
+echo ""
+
+# Color codes
+GREEN='\033[0;32m'
+RED='\033[0;31m'
+YELLOW='\033[1;33m'
+NC='\033[0m' # No Color
+
+# Test counter
+PASSED=0
+FAILED=0
+
+# Helper functions
+pass() {
+ echo -e "${GREEN}βœ… PASS:${NC} $1"
+ ((PASSED++))
+}
+
+fail() {
+ echo -e "${RED}❌ FAIL:${NC} $1"
+ ((FAILED++))
+}
+
+info() {
+ echo -e "${YELLOW}ℹ️ INFO:${NC} $1"
+}
+
+section() {
+ echo ""
+ echo "=================================================="
+ echo "πŸ” $1"
+ echo "=================================================="
+}
+
+# Test 1: Version Check
+section "Test 1: Version Check"
+VERSION=$(claude-flow --version 2>&1 | grep -oP '\d+\.\d+\.\d+-alpha\.\d+' || echo "unknown")
+if [ "$VERSION" = "2.7.0-alpha.11" ]; then
+ pass "Version is 2.7.0-alpha.11"
+else
+ fail "Version is $VERSION, expected 2.7.0-alpha.11"
+fi
+
+# Test 2: Init Command
+section "Test 2: Init Command Creates Directory Structure"
+cd /test
+npx claude-flow init --skip-open --project-name "test-project" 2>&1 || true
+
+# Check .claude directory created
+if [ -d ".claude" ]; then
+ pass ".claude directory created"
+else
+ fail ".claude directory not created"
+fi
+
+# Check subdirectories
+EXPECTED_DIRS=("agents" "commands" "skills" "checkpoints" "cache")
+for dir in "${EXPECTED_DIRS[@]}"; do
+ if [ -d ".claude/$dir" ]; then
+ pass ".claude/$dir directory created"
+ else
+ fail ".claude/$dir directory not created"
+ fi
+done
+
+# Test 3: Skills Files
+section "Test 3: Skills System Files"
+
+# Count skills files
+SKILL_COUNT=$(find .claude/skills -name "SKILL.md" 2>/dev/null | wc -l)
+if [ "$SKILL_COUNT" -gt 0 ]; then
+ pass "Found $SKILL_COUNT skill files"
+else
+ fail "No skill files found in .claude/skills/"
+fi
+
+# Check for specific important skills
+CRITICAL_SKILLS=(
+ "agentdb-vector-search/SKILL.md"
+ "swarm-orchestration/SKILL.md"
+ "sparc-methodology/SKILL.md"
+ "skill-builder/SKILL.md"
+)
+
+for skill in "${CRITICAL_SKILLS[@]}"; do
+ if [ -f ".claude/skills/$skill" ]; then
+ pass "Critical skill exists: $skill"
+ else
+ fail "Missing critical skill: $skill"
+ fi
+done
+
+# Test 4: SKILL.md YAML Frontmatter Validation
+section "Test 4: YAML Frontmatter Validation"
+
+VALID_SKILLS=0
+INVALID_SKILLS=0
+
+for skill_file in .claude/skills/*/SKILL.md; do
+ if [ -f "$skill_file" ]; then
+ # Check for YAML frontmatter
+ if head -n 5 "$skill_file" | grep -q "^---$"; then
+ # Check for name field
+ if head -n 20 "$skill_file" | grep -q "^name:"; then
+ # Check for description field
+ if head -n 20 "$skill_file" | grep -q "^description:"; then
+ ((VALID_SKILLS++))
+ else
+ info "Missing description in: $skill_file"
+ ((INVALID_SKILLS++))
+ fi
+ else
+ info "Missing name in: $skill_file"
+ ((INVALID_SKILLS++))
+ fi
+ else
+ info "Missing YAML frontmatter in: $skill_file"
+ ((INVALID_SKILLS++))
+ fi
+ fi
+done
+
+if [ $INVALID_SKILLS -eq 0 ]; then
+ pass "All $VALID_SKILLS skills have valid YAML frontmatter"
+else
+ fail "$INVALID_SKILLS skills have invalid YAML frontmatter"
+fi
+
+# Test 5: Memory Commands
+section "Test 5: Memory System (Regression Test)"
+
+# Test memory store
+npx claude-flow memory store test-key "test value" --namespace test 2>&1 > /tmp/memory-test.log || true
+if grep -q "Stored" /tmp/memory-test.log || grep -q "stored" /tmp/memory-test.log || grep -q "success" /tmp/memory-test.log; then
+ pass "Memory store command works"
+else
+ info "Memory store output: $(cat /tmp/memory-test.log)"
+ fail "Memory store command failed"
+fi
+
+# Test 6: Help Command
+section "Test 6: Help Command (Regression Test)"
+npx claude-flow --help > /tmp/help.txt 2>&1
+if grep -q "claude-flow" /tmp/help.txt; then
+ pass "Help command works"
+else
+ fail "Help command failed"
+fi
+
+# Test 7: Init Help
+section "Test 7: Init Help (Regression Test)"
+npx claude-flow init --help > /tmp/init-help.txt 2>&1
+if grep -q "init" /tmp/init-help.txt; then
+ pass "Init help command works"
+else
+ fail "Init help command failed"
+fi
+
+# Test 8: File Structure Validation
+section "Test 8: File Structure Validation"
+
+# Check that important files exist
+IMPORTANT_FILES=(
+ ".claude/settings.json"
+)
+
+for file in "${IMPORTANT_FILES[@]}"; do
+ if [ -f "$file" ]; then
+ pass "Important file exists: $file"
+ else
+ info "Optional file not found: $file (may be created on first use)"
+ fi
+done
+
+# Test 9: Agents Directory
+section "Test 9: Agents Directory Structure"
+AGENT_COUNT=$(find .claude/agents -name "*.md" 2>/dev/null | wc -l)
+if [ "$AGENT_COUNT" -gt 0 ]; then
+ pass "Found $AGENT_COUNT agent files"
+else
+ fail "No agent files found"
+fi
+
+# Test 10: Package Integrity
+section "Test 10: Package Integrity"
+if npm list -g claude-flow 2>&1 | grep -q "[email protected]"; then
+ pass "Package installed correctly"
+else
+ fail "Package not installed correctly"
+fi
+
+# Test 11: Skills Content Validation
+section "Test 11: Skills Content Validation"
+
+# Check that skills have content (not just frontmatter)
+SKILLS_WITH_CONTENT=0
+for skill_file in .claude/skills/*/SKILL.md; do
+ if [ -f "$skill_file" ]; then
+ LINE_COUNT=$(wc -l < "$skill_file")
+ if [ "$LINE_COUNT" -gt 20 ]; then
+ ((SKILLS_WITH_CONTENT++))
+ fi
+ fi
+done
+
+if [ $SKILLS_WITH_CONTENT -gt 15 ]; then
+ pass "$SKILLS_WITH_CONTENT skills have substantial content"
+else
+ fail "Only $SKILLS_WITH_CONTENT skills have substantial content (expected 15+)"
+fi
+
+# Test 12: ReasoningBank Integration
+section "Test 12: ReasoningBank Integration (Regression Test)"
+npx claude-flow memory query "test" --reasoningbank 2>&1 > /tmp/rb-test.log || true
+if grep -q "No results" /tmp/rb-test.log || grep -q "Found" /tmp/rb-test.log || grep -q "Querying" /tmp/rb-test.log; then
+ pass "ReasoningBank integration works"
+else
+ info "ReasoningBank output: $(cat /tmp/rb-test.log)"
+ fail "ReasoningBank integration failed"
+fi
+
+# Test Summary
+section "Test Summary"
+echo ""
+echo "Total Tests Run: $((PASSED + FAILED))"
+echo -e "${GREEN}Passed: $PASSED${NC}"
+echo -e "${RED}Failed: $FAILED${NC}"
+echo ""
+
+if [ $FAILED -eq 0 ]; then
+ echo -e "${GREEN}πŸŽ‰ All tests passed!${NC}"
+ exit 0
+else
+ echo -e "${RED}❌ Some tests failed${NC}"
+ exit 1
+fi
diff --git a/docker-test/test-local-fix.sh b/docker-test/test-local-fix.sh
new file mode 100644
index 0000000000..65f03fdc17
--- /dev/null
+++ b/docker-test/test-local-fix.sh
@@ -0,0 +1,235 @@
+#!/bin/bash
+# Test script for LOCAL claude-flow (skills-copier fix validation)
+
+set -e # Exit on error
+
+echo "=========================================="
+echo "πŸ”§ Testing LOCAL claude-flow Skills Fix"
+echo "=========================================="
+echo ""
+
+# Color codes
+GREEN='\033[0;32m'
+RED='\033[0;31m'
+YELLOW='\033[1;33m'
+NC='\033[0m' # No Color
+
+# Test counter
+PASSED=0
+FAILED=0
+
+# Helper functions
+pass() {
+ echo -e "${GREEN}βœ… PASS:${NC} $1"
+ ((PASSED++))
+}
+
+fail() {
+ echo -e "${RED}❌ FAIL:${NC} $1"
+ ((FAILED++))
+}
+
+info() {
+ echo -e "${YELLOW}ℹ️ INFO:${NC} $1"
+}
+
+section() {
+ echo ""
+ echo "=========================================="
+ echo "πŸ” $1"
+ echo "=========================================="
+}
+
+# Test 1: Version Check
+section "Test 1: Version Check"
+VERSION=$(claude-flow --version 2>&1)
+info "Version: $VERSION"
+if [[ "$VERSION" == *"2.7.0-alpha.11"* ]]; then
+ pass "Version detected"
+else
+ fail "Unexpected version: $VERSION"
+fi
+
+# Test 2: Init Command
+section "Test 2: Init Command with Skills System"
+cd /test
+
+# Run init with verbose output
+info "Running: npx claude-flow init --skip-open --project-name test-project"
+npx claude-flow init --skip-open --project-name "test-project" 2>&1 | tee /tmp/init-output.log
+
+echo ""
+info "Init output saved to /tmp/init-output.log"
+echo ""
+
+# Test 3: Directory Structure
+section "Test 3: Directory Structure Created"
+
+# Check .claude directory created
+if [ -d ".claude" ]; then
+ pass ".claude directory created"
+else
+ fail ".claude directory not created"
+ exit 1
+fi
+
+# Check subdirectories
+EXPECTED_DIRS=("agents" "commands" "skills" "checkpoints" "cache")
+for dir in "${EXPECTED_DIRS[@]}"; do
+ if [ -d ".claude/$dir" ]; then
+ pass ".claude/$dir directory created"
+ else
+ fail ".claude/$dir directory not created"
+ fi
+done
+
+# Test 4: Skills Files (CRITICAL TEST)
+section "Test 4: Skills Files Created (CRITICAL)"
+
+# Count skills directories
+SKILL_DIR_COUNT=$(find .claude/skills -mindepth 1 -maxdepth 1 -type d 2>/dev/null | wc -l)
+info "Found $SKILL_DIR_COUNT skill directories"
+
+# Count SKILL.md files
+SKILL_COUNT=$(find .claude/skills -name "SKILL.md" 2>/dev/null | wc -l)
+if [ "$SKILL_COUNT" -gt 0 ]; then
+ pass "✨ Found $SKILL_COUNT skill files (fix is working!)"
+else
+ fail "❌ CRITICAL: No skill files found - fix failed!"
+ info "Init output:"
+ cat /tmp/init-output.log
+ exit 1
+fi
+
+# Expected minimum skills (should be 21)
+if [ "$SKILL_COUNT" -ge 21 ]; then
+ pass "All 21+ skills present"
+else
+ fail "Only $SKILL_COUNT skills found (expected 21+)"
+fi
+
+# Test 5: Critical Skills Verification
+section "Test 5: Critical Skills Verification"
+
+CRITICAL_SKILLS=(
+ "agentdb-vector-search/SKILL.md"
+ "agentdb-memory-patterns/SKILL.md"
+ "swarm-orchestration/SKILL.md"
+ "sparc-methodology/SKILL.md"
+ "skill-builder/SKILL.md"
+ "flow-nexus-platform/SKILL.md"
+ "github-code-review/SKILL.md"
+ "pair-programming/SKILL.md"
+ "hive-mind-advanced/SKILL.md"
+ "reasoningbank-intelligence/SKILL.md"
+)
+
+for skill in "${CRITICAL_SKILLS[@]}"; do
+ if [ -f ".claude/skills/$skill" ]; then
+ pass "Critical skill exists: $skill"
+ else
+ fail "Missing critical skill: $skill"
+ fi
+done
+
+# Test 6: YAML Frontmatter Validation
+section "Test 6: YAML Frontmatter Validation"
+
+VALID_SKILLS=0
+INVALID_SKILLS=0
+
+for skill_file in .claude/skills/*/SKILL.md; do
+ if [ -f "$skill_file" ]; then
+ # Check for YAML frontmatter
+ if head -n 5 "$skill_file" | grep -q "^---$"; then
+ # Check for name field
+ if head -n 20 "$skill_file" | grep -q "^name:"; then
+ # Check for description field
+ if head -n 20 "$skill_file" | grep -q "^description:"; then
+ ((VALID_SKILLS++))
+ else
+ info "Missing description in: $skill_file"
+ ((INVALID_SKILLS++))
+ fi
+ else
+ info "Missing name in: $skill_file"
+ ((INVALID_SKILLS++))
+ fi
+ else
+ info "Missing YAML frontmatter in: $skill_file"
+ ((INVALID_SKILLS++))
+ fi
+ fi
+done
+
+if [ $INVALID_SKILLS -eq 0 ]; then
+ pass "All $VALID_SKILLS skills have valid YAML frontmatter"
+else
+ fail "$INVALID_SKILLS skills have invalid YAML frontmatter"
+fi
+
+# Test 7: Skills Content Validation
+section "Test 7: Skills Content Validation"
+
+SKILLS_WITH_CONTENT=0
+for skill_file in .claude/skills/*/SKILL.md; do
+ if [ -f "$skill_file" ]; then
+ LINE_COUNT=$(wc -l < "$skill_file")
+ if [ "$LINE_COUNT" -gt 20 ]; then
+ ((SKILLS_WITH_CONTENT++))
+ fi
+ fi
+done
+
+if [ $SKILLS_WITH_CONTENT -gt 15 ]; then
+ pass "$SKILLS_WITH_CONTENT skills have substantial content"
+else
+ fail "Only $SKILLS_WITH_CONTENT skills have substantial content (expected 15+)"
+fi
+
+# Test 8: Skills Discoverability
+section "Test 8: Skills Discoverability"
+
+# List all skill directories
+info "Discovered skills:"
+for skill_dir in .claude/skills/*/; do
+ if [ -d "$skill_dir" ]; then
+ skill_name=$(basename "$skill_dir")
+ if [ -f "$skill_dir/SKILL.md" ]; then
+ echo " βœ“ $skill_name"
+ fi
+ fi
+done
+
+# Test 9: File Paths Debug
+section "Test 9: Skills Source Path Validation"
+
+info "Checking skills-copier source paths..."
+if grep -q "Using packaged skill files" /tmp/init-output.log; then
+ pass "Skills copied from npm package location"
+elif grep -q "Using local development skill files" /tmp/init-output.log; then
+ pass "Skills copied from local development location"
+elif grep -q "Using global npm skill files" /tmp/init-output.log; then
+ pass "Skills copied from global npm location"
+else
+ info "Source path detection:"
+ grep "πŸ“ Using" /tmp/init-output.log || echo "No source path logged"
+fi
+
+# Test Summary
+section "Test Summary"
+echo ""
+echo "Total Tests Run: $((PASSED + FAILED))"
+echo -e "${GREEN}Passed: $PASSED${NC}"
+echo -e "${RED}Failed: $FAILED${NC}"
+echo ""
+
+if [ $FAILED -eq 0 ]; then
+ echo -e "${GREEN}πŸŽ‰ All tests passed! Skills-copier fix is working!${NC}"
+ echo ""
+ echo "βœ… READY TO PUBLISH alpha.12"
+ exit 0
+else
+ echo -e "${RED}❌ Some tests failed - fix needs more work${NC}"
+ exit 1
+fi
diff --git a/package.json b/package.json
index c585ff6518..e21744e375 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
{
"name": "claude-flow",
- "version": "2.7.0-alpha.12",
+ "version": "2.7.0-alpha.13",
"description": "Enterprise-grade AI agent orchestration with WASM-powered ReasoningBank memory and AgentDB vector database (always uses latest agentic-flow)",
"mcpName": "io.github.ruvnet/claude-flow",
"main": "cli.mjs",
diff --git a/src/cli/simple-commands/init/index.js b/src/cli/simple-commands/init/index.js
index c9515979ca..0e7ffacc0e 100644
--- a/src/cli/simple-commands/init/index.js
+++ b/src/cli/simple-commands/init/index.js
@@ -173,14 +173,14 @@ fi
BRANCH=$(cd "$CWD" 2>/dev/null && git branch --show-current 2>/dev/null)
# Start building statusline
-echo -ne "\\033[1m$MODEL\\033[0m in \\033[36m$DIR\\033[0m"
-[ -n "$BRANCH" ] && echo -ne " on \\033[33mβŽ‡ $BRANCH\\033[0m"
+printf "\\033[1m$MODEL\\033[0m in \\033[36m$DIR\\033[0m"
+[ -n "$BRANCH" ] && printf " on \\033[33mβŽ‡ $BRANCH\\033[0m"
# Claude-Flow integration
FLOW_DIR="$CWD/.claude-flow"
if [ -d "$FLOW_DIR" ]; then
- echo -ne " β”‚"
+ printf " β”‚"
# 1. Swarm Configuration & Topology
if [ -f "$FLOW_DIR/swarm-config.json" ]; then
@@ -193,12 +193,12 @@ if [ -d "$FLOW_DIR" ]; then
"aggressive") TOPO_ICON="⚑ring" ;;
*) TOPO_ICON="⚑$STRATEGY" ;;
esac
- echo -ne " \\033[35m$TOPO_ICON\\033[0m"
+ printf " \\033[35m$TOPO_ICON\\033[0m"
# Count agent profiles as "configured agents"
AGENT_COUNT=$(jq -r \'.agentProfiles | length\' "$FLOW_DIR/swarm-config.json" 2>/dev/null)
if [ -n "$AGENT_COUNT" ] && [ "$AGENT_COUNT" != "null" ] && [ "$AGENT_COUNT" -gt 0 ]; then
- echo -ne " \\033[35mπŸ€– $AGENT_COUNT\\033[0m"
+ printf " \\033[35mπŸ€– $AGENT_COUNT\\033[0m"
fi
fi
fi
@@ -220,7 +220,7 @@ if [ -d "$FLOW_DIR" ]; then
else
MEM_COLOR="\\033[31m" # Red
fi
- echo -ne " \${MEM_COLOR}πŸ’Ύ \${MEM_PERCENT}%\\033[0m"
+ printf " \${MEM_COLOR}πŸ’Ύ \${MEM_PERCENT}%\\033[0m"
fi
# CPU load
@@ -234,7 +234,7 @@ if [ -d "$FLOW_DIR" ]; then
else
CPU_COLOR="\\033[31m" # Red
fi
- echo -ne " \${CPU_COLOR}βš™ \${CPU_LOAD}%\\033[0m"
+ printf " \${CPU_COLOR}βš™ \${CPU_LOAD}%\\033[0m"
fi
fi
fi
@@ -247,7 +247,7 @@ if [ -d "$FLOW_DIR" ]; then
if [ "$ACTIVE" = "true" ] && [ -n "$SESSION_ID" ]; then
# Show abbreviated session ID
SHORT_ID=$(echo "$SESSION_ID" | cut -d\'-\' -f1)
- echo -ne " \\033[34mπŸ”„ $SHORT_ID\\033[0m"
+ printf " \\033[34mπŸ”„ $SHORT_ID\\033[0m"
fi
fi
@@ -288,7 +288,7 @@ if [ -d "$FLOW_DIR" ]; then
else
SUCCESS_COLOR="\\033[31m" # Red
fi
- echo -ne " \${SUCCESS_COLOR}🎯 \${SUCCESS_RATE}%\\033[0m"
+ printf " \${SUCCESS_COLOR}🎯 \${SUCCESS_RATE}%\\033[0m"
fi
# Average Time
@@ -302,13 +302,13 @@ if [ -d "$FLOW_DIR" ]; then
else
TIME_STR=$(echo "$AVG_TIME" | awk \'{printf "%.1fh", $1/3600}\')
fi
- echo -ne " \\033[36m⏱️ $TIME_STR\\033[0m"
+ printf " \\033[36m⏱️ $TIME_STR\\033[0m"
fi
# Streak (only show if > 0)
STREAK=$(echo "$METRICS" | jq -r \'.streak // 0\')
if [ -n "$STREAK" ] && [ "$STREAK" -gt 0 ]; then
- echo -ne " \\033[91mπŸ”₯ $STREAK\\033[0m"
+ printf " \\033[91mπŸ”₯ $STREAK\\033[0m"
fi
fi
fi
@@ -317,7 +317,7 @@ if [ -d "$FLOW_DIR" ]; then
if [ -d "$FLOW_DIR/tasks" ]; then
TASK_COUNT=$(find "$FLOW_DIR/tasks" -name "*.json" -type f 2>/dev/null | wc -l)
if [ "$TASK_COUNT" -gt 0 ]; then
- echo -ne " \\033[36mπŸ“‹ $TASK_COUNT\\033[0m"
+ printf " \\033[36mπŸ“‹ $TASK_COUNT\\033[0m"
fi
fi
@@ -325,7 +325,7 @@ if [ -d "$FLOW_DIR" ]; then
if [ -f "$FLOW_DIR/hooks-state.json" ]; then
HOOKS_ACTIVE=$(jq -r \'.enabled // false\' "$FLOW_DIR/hooks-state.json" 2>/dev/null)
if [ "$HOOKS_ACTIVE" = "true" ]; then
- echo -ne " \\033[35mπŸ”—\\033[0m"
+ printf " \\033[35mπŸ”—\\033[0m"
fi
fi
fi