Skip to content

v3.80.12 — safer command hook, federation sends real work, honest memory output

Latest

Choose a tag to compare

@ruvnet ruvnet released this 28 Nov 23:22
· 1 commit to main since this release
e069357

A safety release: the hook that checks commands before an agent runs them now catches more dangerous deletes. It also fixes federation, swarm status, memory commands and the docs ruflo init installs. Update with npx ruflo@latest.

The safety hook now blocks deleting your home folder or a whole Windows drive

Before: rm -rf ~ and Remove-Item -Recurse C:\ were allowed. Now: both are blocked with exit code 2.

The pre-bash hook that ruflo init installs is meant to stop an agent from running a destructive command. It let rm -rf ~, rm -rf "$HOME"/* and Windows commands such as Remove-Item -Recurse -Force C:\ or rd /s /q d: through. On Windows it also approved a hook call that carried no command at all, because it read cmd.exe's PROMPT variable instead. Now all of these are blocked. Ordinary commands such as rm -rf ~/build still run. Re-run ruflo init (or update) to get the new helpers. Thanks to @yovanyfx (#5166, #5171) and @jgsilva71-afk (#5176).

Hook helpers no longer drop your edits or wipe a damaged memory file

Before: only the first edit per session was recorded and a corrupt store was overwritten. Now: every edit is recorded and the damaged file is kept.

The generated helpers in .claude/helpers had several small bugs that quietly lost data:

  • Only the first edit in each session was recorded.
  • An edit whose result mentioned the word "error" was counted as a failure.
  • A damaged store file was overwritten with an empty one.
  • On Windows, the status line could run a sqlite3 or npx committed into the project.

Now every edit is recorded and a damaged file is kept as <name>.corrupt. Stores are written all at once, so a crash part-way through can't leave a half-written file. The status line only runs tools found on your system PATH, outside the project folder. auto-commit.sh no longer pushes by default and only stages files git already tracks. Reported by @jgsilva71-afk. (#5176, #5183)

Federated nodes can now send real work, not just heartbeats

Before: only heartbeat reached the other node. Now: task-assignment, memory-query and context-share arrive too.

With two properly pinned, trusted nodes, every message type except heartbeat and status-broadcast failed while being signed, with "accepts only plain objects". A federation could find its peers but could not hand over a task or answer a memory query. The message is now signed as the plain JSON the other node receives, so every type goes through. Reported by @marcellogentile, fixed by @Tong-bit-art. (#5153, #5170)

swarm_status now counts the swarm's tasks

Before: taskCount stayed 0 through create, assign and complete. Now: it follows the task.

swarm_status reported taskCount: 0 for the whole life of a swarm, while task_summary in the same session showed tasks being created and finished. It now counts from the same task store and adds a per-status breakdown. New tasks are linked to their swarm, and task_create accepts an optional swarmId. Reported by @marcellogentile. (#5154, #5179)

Memory commands now say what really happens

Before: CSV export silently wrote JSON and memory.backend looked applied. Now: both print a clear warning.

memory export -f csv (and -f binary) silently wrote JSON and reported vectors it hadn't written. It now tells you it fell back to JSON and that vectors aren't exported yet. config set memory.backend saved a value nothing reads. It now warns you that the setting has no effect, and memory stats shows the configured value. Reported by @marcellogentile. (#5158, #5162 by @leninworld; #5157, #5180)

The commands and skills ruflo init installs now use commands that exist

Before: memory query printed help and exit 0. Now: memory search --query returns results.

Several command pages and skills that init installs told agents to run commands that don't exist, such as memory query, memory usage or agentdb create-plugin. They printed help or "Unknown command", often with exit code 0, so the step silently did nothing. The swarm, memory and agentdb pages now use real commands and MCP tools. Tests now check every command, tool and import they mention. Reported by @marcellogentile and @leninworld. (#5155, #5160, #5161, #5167; #5163, #5165, #5168 by @leninworld; #5181)

Busy managed-agent runs no longer lose session records

Before: some of eight simultaneous sessions failed to save. Now: all eight are saved.

When several managed-agent sessions finished at once, the ledger gave up after about 200 ms of waiting for its lock. A session you had just paid for could then go unrecorded. It now waits up to 2 seconds for a live writer, and still clears a lock left by a writer that crashed. Thanks to @Tong-bit-art. (#5172)

Also in this release

  • @claude-flow/memory 3.4.2: the cache:cleared event now reports how many entries were cleared, instead of always 0. (#5173, #5174)
  • The cost-tracker plugin (0.31.5, updates through the plugin marketplace) now uses the current Claude prices. Opus 4.5–4.8 were priced 3× too high, and Haiku 5.5, Sonnet 5.5 and Fable 5/5.2 were also off. Reported by @linqiang-max. (#5169, #5182)

Published from CI with SLSA provenance for @claude-flow/cli, claude-flow and ruflo.