{"id":"manage-mounts","name":"manage-mounts","summary":"エージェントコンテナがアクセスできるホストディレクトリを設定しましょう。マウント許可リストのエントリーを表示、追加、または削除できます。","body":"# Manage Mounts\n\nConfigure which host directories NanoClaw agent containers can access. The mount allowlist lives at `~/.config/nanoclaw/mount-allowlist.json`.\n\n## Show Current Config\n\n```bash\ncat ~/.config/nanoclaw/mount-allowlist.json 2>/dev/null || echo \"No mount allowlist configured\"\n```\n\nShow the current config to the user in a readable format: which directories are allowed, and whether each is read-only or read-write.\n\n## Add Directories\n\nAsk which directories the user wants agents to access. For each path:\n- Validate the path exists\n- Ask if it should be read-write (`allowReadWrite: true`) or read-only (`allowReadWrite: false`, the safer default)\n\nBuild the JSON config and write it:\n\n```bash\npnpm exec tsx setup/index.ts --step mounts --force -- --json '{\"allowedRoots\":[{\"path\":\"/path/to/dir\",\"allowReadWrite\":true}],\"blockedPatterns\":[]}'\n```\n\nUse `--force` to overwrite the existing config.\n\n## Remove Directories\n\nRead the current config, show it, ask which entry to remove, then write the updated config through the same write path (build the trimmed JSON and pass it to `--step mounts --force -- --json`):\n\n```bash\npnpm exec tsx setup/index.ts --step mounts --force -- --json '{\"allowedRoots\":[],\"blockedPatterns\":[]}'\n```\n\n## Reset to Empty\n\n```bash\npnpm exec tsx setup/index.ts --step mounts --force -- --empty\n```\n\n## After Changes\n\nThe allowlist is read fresh when a container is spawned, so new mounts apply to newly spawned containers automatically — no service restart needed.\n\nTo apply the new config to a group that already has a running container, restart just that group:\n\n```bash\nncl groups restart --id <group-id>\n```","author":"@nanocoai","ownerProfile":null,"authorContacts":null,"sourceUrl":"https://github.com/nanocoai/nanoclaw/tree/main/.claude/skills/manage-mounts","license":"MIT","category":"writing","lang":"en","tokens":391,"stars":0,"calls30d":1,"claimed":false,"visibility":"public","origin":"crawler","version":"0.1.0","createdAt":"2026-08-22","updatedAt":"2026-08-22","files":[],"requires":{"mcp":[],"tools":[]},"safety":{"flags":[],"scannedAt":"2026-08-22","hasScripts":false,"networkEndpoints":[]}}