NanoClaw is an open source project that provides a zero-trust, secure alternative to OpenClaw for running persistent AI agents. It isolates each agent in its own Docker container, keeps credentials outside the agent’s environment, and enforces human-in-the-loop approval for sensitive actions. The discussion covers the security architecture, agent sandboxing, proxy model, context-window management, and the vision of a minimal, forkable platform that lets developers customize agents easily.
Summarized by Podsumo
NanoClaw isolates each AI agent in its own Docker container, keeping credentials outside the environment and enforcing human-in-the-loop approval for sensitive actions.
The project takes an 'everything is a message' approach: all input/output flows through SQLite inbox/outbox files, making the system deterministic and easy to route.
Agents can communicate with each other and even create new agents, but approval gates are needed to prevent unintended data sharing across agents.
Context window management relies on Claude’s default compaction with a lower threshold (165k tokens) and prompt-based summarization of older messages.
NanoClaw is designed to be minimal and forkable; users add custom features via 'skills' (code + prompts) that coding agents apply deterministically, keeping the core small and auditable.
"Treat the agent as if it’s malicious. — Gabrielle Cohen"
"If you’re digging through a codebase and you see in the claw.md file at the top in big bold letters ‘never run drop production DB,’ then you know that agent has deleted a DB before – and it’s going to do it again. — Gabrielle Cohen"
"Anything within the agent’s environment, the agent will be able to get access to – no matter how hard I try to prevent it. — Gabrielle Cohen"