Afs

From redis/agent-filesystem · View interactive version

Afs is an AI agent skill from the GitHub repository redis/agent-filesystem. Use when agents need persistent shared storage, when saving or restoring workspace state, or when coordinating file access across multiple agents and machines. Creates Redis-backed workspaces, checkpoints and restores agent state, mounts shared filesystems locally, searches workspace contents, and f

How to use this skill

Skill file

Agent Filesystem

AFS is a workspace system for agents, backed by Redis. Use it when you want a

durable workspace that still feels like normal files and directories, with

explicit checkpoints and easy movement between MCP, sync mode, and live mounts.

When to Use This Skill

Use for:

Avoid for:

Preferred Interfaces

1. `afs mcp`

Use afs mcp when the agent can talk over MCP and does not need a local

directory.

2. Sync mode + `afs` CLI

Use sync mode when the agent or user wants a real local directory:

./afs ws mount my-project ~/my-project
cd ~/my-project

3. Live mount mode

Use ./afs config set --mode mount before mounting when you need the

workspace exposed directly as a mount rather than through the sync daemon.

Common Flows

Create or import a workspace

./afs ws create my-project
./afs ws import my-project ./existing-dir
./afs ws list                          # verify the workspace exists

Start working locally

./afs ws mount my-project ~/my-project
./afs status                           # verify the mount is active
cd ~/my-project

Search a workspace

./afs fs grep --workspace my-project "TODO auth"
./afs fs grep --workspace my-project --path /src -E "timeout|retry"

Save and restore stable points

./afs cp create my-project before-refactor
./afs cp list my-project               # verify the checkpoint was saved
./afs cp restore my-project before-refactor
./afs cp list my-project               # confirm the restore completed

Fork work for a second line of effort

./afs ws fork my-project my-project-experiment
./afs ws list                          # verify the fork appears

Key Points

workspace directly.

Further Reading

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.