Home / Blog / Reactive Agent Filesystem over pi-durable
Tech News

Reactive Agent Filesystem over pi-durable

chativy released Reactive Agent Filesystem v0.1.0, a macFUSE FSKit mount that exposes Pi Durable agents as directories with per-agent UID isolation.

By Dillip Chowdary • Dec 06, 2026 • Source: github.com

Reactive Agent Filesystem over pi-durable
Image: github.com

At a glance

Product
Reactive Agent Filesystem (RAF)
Version
v0.1.0
Platform
macOS with macFUSE 5.3+ (FSKit)
Runtime
Node.js 22.19+, Go 1.25+ (source build)
Install
Homebrew, npm tarball, or git source
Fallback
RAF_DISABLE_HELPER=1 (dev-only)

Reactive Agent Filesystem, or RAF, is a filesystem interface built by chativy for reactive Pi Durable agents, detailed in chativy's RAF repository. Exposed as a macFUSE FSKit mount, RAF presents each agent directory under agents/ as a merged view combining a read-only lower directory with an agent-local upper directory.

This report covers RAF v0.1.0, its architecture, runtime components, installation methods, permission model, and command-line controls. It is intended for macOS developers and agent infrastructure builders evaluating how to expose Pi Durable sessions as standard files and directories.

01Filesystem boundary over Pi Durable runtime

Today, Pi Durable supplies its underlying agent runtime as an SDK. RAF exists to give agents a uniform way to access the rest of the system, with the long-term goal of turning that runtime into an operating-system capability available to every application.

02Merged overlays, event journals, and UID isolation

RAF implements a macFUSE FSKit mount featuring canonical nested agent paths, persistent per-agent execution UID and GID allocation, and strict separation between the creator and execution owner. It supports both parent-created and user-created subagents, backed by a merged lower and upper agent-root overlay with copy-up and whiteout semantics.

Prompt execution relies on a write-close trigger and a durable event journal, paired with an append-only newline input file and a cancel write-close control for active agents. Each agent supports five-field crontab scheduling, .template bootstrapping with template-provided config.json, status records, live nested by-status/ views, and user-, mount-, and agent-level system instructions and skill discovery.

Under the hood, a Go daemon owns filesystem events and appends them to <state-root>/.raf/events.jsonl. A single TypeScript bridge process consumes that journal, manages Pi Durable sessions and in-memory runtimes for all agents, spawns temporary agent-UID helper processes for coding tool calls, and integrates response.jsonl, response.md, inquiry, and done.

03Runtime components and state directory layout

RAF splits mount lifecycle management, TypeScript session bridging, and privileged UID execution across dedicated binaries and scripts. The package ships universal macOS arm64 and amd64 binaries for rafd and raf-exec.

Advertisement

Tech Pulse Daily

Get tomorrow's pulse first

Join engineers who read Tech Pulse before stand-up. Free, weekday mornings.

ComponentPurpose
rafPublic command for mount, unmount, and list
rafd mountDetached mount controller owning bridge lifecycle
src/main.tsTypeScript bridge owning Durable agent runtimes
src/tool-runner.tsShort-lived coding tool executor under agent UID
src/session-acl.tsGrants bridge access to agent-owned session directory
/usr/local/libexec/raf-execRoot-owned setuid helper launching UID/GID processes
/usr/local/libexec/raf-nodeRoot-owned wrapper executing installed Node runtime
/usr/local/libexec/raf-node-binCopied Node binary from helper installation

Inside a mount, mount/agents/ holds the canonical agent namespace, mount/skills/ stores creator-writable mount skills, and mount/by-status/ provides a read-only virtual status view. Persistent backing state lives in a sibling .rafstate/<mount-name>/ directory containing agents/ data, cron.jsonl, inquiries/current.json, and a .raf/ folder with mount.json, identities.json, events.jsonl, bridge-cursor.json, bridge.lock, bridge.sock, processes.json, system.md, skills/, sessions/, rafd, daemon.json, and daemon.log.

04macOS requirements, installation, and helper setup

Running RAF requires macOS with macFUSE 5.3 or newer, the FSKit file-system extension enabled in System Settings, and Node.js 22.19 or newer. Go 1.25 or newer is required only when building from a source checkout or developing the package.

Developers can install v0.1.0 via Homebrew by tapping chativy/raf, installing chativy/raf/raf, and upgrading with brew upgrade. Alternatively, users can download chativy-raf-0.1.0.tgz and run npm install -g, or clone the repository, run npm install --ignore-scripts, and launch ./raf mount.

On the first raf mount, a single sudo prompt installs the root-owned setuid helper and copies the active Node executable to /usr/local/libexec/raf-node-bin with a wrapper at /usr/local/libexec/raf-node. This design supports Homebrew, nvm, and asdf setups without relying on user-home paths, though changing Node versions requires rerunning sudo raf install-helper and remounting.

Note: RAF_DISABLE_HELPER=1 is a development-only fallback that runs tool calls under the bridge user UID and prints a warning; normal mounts refuse to start without the root-owned setuid helper.

05Mount controls, background jobs, and chat TUI

Running raf mount or its alias npm run up uses the mountpoint basename as its state instance, mapping the default ./mount to .rafstate/mount/. It builds and starts rafd in the background, waits until both the mount and bridge are ready, and returns to the shell while Finder displays the mounted volume name.

Multiple independent mounts such as ./mount-a and ./mount-b can run simultaneously using sibling .rafstate/ directories, with --mount-root available as an option flag and .raf/mount.json preventing basename collisions. raf list scans the system mount table and sibling .rafstate/ folders to report daemon and bridge state without a central registry, while raf unmount terminates the daemon process group and cleans metadata.

For background jobs, raf ps hides exited jobs by default, --all shows active and exited jobs, --exited filters to exited jobs, and raf kill agent-001 <job-id> accepts any unique UUID prefix. From an agent directory like mount/agents/agent-001, raf tui opens a minimal chat client, and outside an agent directory it lists agents across the containing or all discovered RAF mounts.

Frequently asked questions

What operating system and dependencies does RAF v0.1.0 require?

RAF requires macOS with macFUSE 5.3 or newer and the FSKit file-system extension enabled in System Settings. It also requires Node.js 22.19 or newer, while Go 1.25 or newer is needed only for development or building from source.

Why does RAF prompt for sudo during the first mount?

The first raf mount prompts for sudo to install /usr/local/libexec/raf-exec as a root-owned setuid helper and copy the active Node binary to /usr/local/libexec/raf-node-bin. This allows RAF to drop each coding tool invocation to the owning agent's isolated UID/GID.

How do the Go daemon and TypeScript bridge communicate?

The Go daemon (rafd) owns filesystem events and appends triggers to /.raf/events.jsonl. A single TypeScript bridge process (src/main.ts) consumes that journal, tracks its offset in bridge-cursor.json, and manages Pi Durable sessions and in-memory runtimes for all agents.

How can users run multiple RAF mounts or inspect background jobs?

Users can start separate mounts in different terminals with commands like ./raf mount ./mount-a and ./raf mount ./mount-b, each backed by its own .rafstate/ / directory. Background jobs can be inspected with raf ps (with --all or --exited) and stopped using raf kill with a unique job UUID prefix.

Sources

Dillip Chowdary

Author

Dillip Chowdary

Writes Tech Bytes coverage of AI, engineering, and the tools that actually ship. Editor of Tech Pulse Daily.

Related on Tech Bytes

Advertisement

5-min tech signal

Weekday briefing for engineers who skip the noise.

No spam · Unsubscribe anytime

Advertisement

✈️ CareerPilot

Your AI job-search copilot

Match your resume against live Ashby, Greenhouse & Lever openings — fit scores, job-specific resume optimization and email alerts.

Find matching jobs →

Free Tools

Browse all tools →