r/coolgithubprojects • u/Slight-Resident-8677 • 6h ago
Folderhand - a zero-install, portable, sandboxed AI agent that lives inside any folder
github.com
Folderhand is an open-source, zero-install, portable AI agent for macOS that lives entirely inside a single folder. Instead of giving an agent broad shell access to your machine, Folderhand uses macOS’s native sandbox to lock the agent—and every child process it spawns—inside that specific directory.
GitHub: https://github.com/blixild-jacek/folderhand
Unique use cases:
- Client-ready deliverables: Instead of sending a static zip file of reports to a client or freelancer, you send the entire Folderhand folder. The recipient opens it on their Mac with their own API key and can immediately ask the agent, "Explain how you calculated column D" or "Regenerate these charts with our brand colors."
- Client-isolated environments: Freelancers and consultants can keep a separate Folderhand copy inside each client's project folder. Each folder keeps its own domain-specific RULES.md, chat history, and generated helper scripts. When the project ends, you archive or delete the folder—leaving zero background daemons, global dependencies, or leftover config files on your Mac.
- Offline "Air-Gapped" Travel Folder: Pair a Folderhand folder with a local Ollama model on a MacBook before a long flight. Every tool the agent needs (
opencode,Bun,ripgrep) is already bundled inside.folderhand/, so you can batch-process documents, write scripts, and organize files completely offline with zero setup.
How it works under the hood:
- The "Locked Room" (macOS Sandbox): Built on
opencodeand a custom sandbox profile (derived from Agent Safehouse), the agent can read and write inside its host folder, but the OS prevents it from deleting/renaming files, modifying its own rules/tools, or reading anything outside the folder. - Out-of-Sandbox Network Gate: The agent has no direct internet access. All outbound requests go through a lightweight Bun proxy outside the sandbox that injects your API key from the macOS Keychain (so the agent never sees your credentials) and triggers a native prompt if the agent tries to reach any domain other than your AI provider.
- Truly Portable State: Everything—pinned binaries (
opencode,Bun,ripgrep), chat history, undo snapshots, and an auto-updatedHANDOFF.md—lives in.folderhand/. Zip the folder or sync it via iCloud Drive/Dropbox, and anyone on a Mac can open it and pick up the session. - Declarative Watch Rules (
RULES.md): Define plain-English triggers (e.g., when a file drops intoinbox/or on a schedule). Any edit toRULES.mdpauses execution until manually re-approved so untrusted changes can't silently run on your key. - BYOK & Local Models: Works with Ollama and LM Studio (32k+ context), as well as Blixild AI, OpenAI, Anthropic, Gemini, Mistral, and OpenRouter.
Licensed under Apache 2.0. Currently Apple Silicon native (Intel via Rosetta), signed and notarized for macOS.
Currently in alpha!