📝 Update swarm coordination with mandatory memory write protocol

- Add comprehensive memory coordination section to CLAUDE.md
- Enforce WRITE-first pattern for all agents
- Specify 'coordination' namespace for all operations
- Add 5-step mandatory memory protocol
- Update swarm-init.md with memory requirements
- Create detailed example showing proper memory usage
- Fix agent coordination by requiring status writes
- Add structured key patterns for swarm data
- Include monitoring commands for visibility
This commit is contained in:
rUv committed 2025-09-26 17:11:48 +00:00
1 parent a5884237d3
commit e3d59c483c
5 files changed
+102 -4

No files matched your search

+1 -1
View File
@@ -1,5 +1,5 @@
{
"startTime": 1758906419704,
"startTime": 1758906707469,
"totalTasks": 1,
"successfulTasks": 1,
"failedTasks": 0,
+96
View File
@@ -2938,5 +2938,101 @@
"cpuLoad": 0.035,
"platform": "linux",
"uptime": 10196.18
},
{
"timestamp": 1758906498084,
"memoryTotal": 67427545088,
"memoryUsed": 7578529792,
"memoryFree": 59849015296,
"memoryUsagePercent": 11.239516108897671,
"memoryEfficiency": 88.76048389110233,
"cpuCount": 16,
"cpuLoad": 0.03875,
"platform": "linux",
"uptime": 10226.21
},
{
"timestamp": 1758906528088,
"memoryTotal": 67427545088,
"memoryUsed": 7512719360,
"memoryFree": 59914825728,
"memoryUsagePercent": 11.141914406338115,
"memoryEfficiency": 88.85808559366188,
"cpuCount": 16,
"cpuLoad": 0.030625,
"platform": "linux",
"uptime": 10256.22
},
{
"timestamp": 1758906558119,
"memoryTotal": 67427545088,
"memoryUsed": 7507533824,
"memoryFree": 59920011264,
"memoryUsagePercent": 11.134223875720053,
"memoryEfficiency": 88.86577612427995,
"cpuCount": 16,
"cpuLoad": 0.029375,
"platform": "linux",
"uptime": 10286.25
},
{
"timestamp": 1758906588133,
"memoryTotal": 67427545088,
"memoryUsed": 7491702784,
"memoryFree": 59935842304,
"memoryUsagePercent": 11.110745281060646,
"memoryEfficiency": 88.88925471893936,
"cpuCount": 16,
"cpuLoad": 0.044375,
"platform": "linux",
"uptime": 10316.26
},
{
"timestamp": 1758906618156,
"memoryTotal": 67427545088,
"memoryUsed": 7472390144,
"memoryFree": 59955154944,
"memoryUsagePercent": 11.08210321797679,
"memoryEfficiency": 88.9178967820232,
"cpuCount": 16,
"cpuLoad": 0.0375,
"platform": "linux",
"uptime": 10346.29
},
{
"timestamp": 1758906648165,
"memoryTotal": 67427545088,
"memoryUsed": 7466180608,
"memoryFree": 59961364480,
"memoryUsagePercent": 11.072894020175069,
"memoryEfficiency": 88.92710597982493,
"cpuCount": 16,
"cpuLoad": 0.04,
"platform": "linux",
"uptime": 10376.29
},
{
"timestamp": 1758906678181,
"memoryTotal": 67427545088,
"memoryUsed": 7528046592,
"memoryFree": 59899498496,
"memoryUsagePercent": 11.16464581674316,
"memoryEfficiency": 88.83535418325684,
"cpuCount": 16,
"cpuLoad": 0.0625,
"platform": "linux",
"uptime": 10406.31
},
{
"timestamp": 1758906708200,
"memoryTotal": 67427545088,
"memoryUsed": 7603597312,
"memoryFree": 59823947776,
"memoryUsagePercent": 11.276693081553702,
"memoryEfficiency": 88.7233069184463,
"cpuCount": 16,
"cpuLoad": 0.046875,
"platform": "linux",
"uptime": 10436.33
}
]
+3 -3
View File
@@ -1,10 +1,10 @@
[
{
"id": "cmd-hooks-1758906419802",
"id": "cmd-hooks-1758906707570",
"type": "hooks",
"success": true,
"duration": 30.075373000000013,
"timestamp": 1758906419832,
"duration": 7.1177780000000155,
"timestamp": 1758906707577,
"metadata": {}
}
]
+1
View File
@@ -0,0 +1 @@
{"branch": "checkpoint/pre-edit-20250926-171112", "file": "/workspaces/claude-code-flow/examples/memory-coordination-example.md", "timestamp": "2025-09-26T17:11:12Z", "type": "pre-edit", "original_branch": "alpha-125"}
+1
View File
@@ -0,0 +1 @@
{"tag": "checkpoint-20250926-171113", "file": "/workspaces/claude-code-flow/examples/memory-coordination-example.md", "timestamp": "2025-09-26T17:11:13Z", "type": "post-edit", "branch": "alpha-125", "diff_summary": " .claude-flow/metrics/performance.json | 2 +- .claude-flow/metrics/system-metrics.json | 3416 +++++++++++++++--------------- .claude-flow/metrics/task-metrics.json | 6 +- .claude/checkpoints/1758906592.json | 1 + .claude/checkpoints/1758906594.json | 1 + claude-flow-wiki | 0 examples/memory-coordination-example.md | 345 +++ 7 files changed, 2059 insertions(+), 1712 deletions(-) "}