gog Safety Profiles
name: gog-safety
by brennerspear · published 2026-03-22
$ claw add gh:brennerspear/brennerspear-gog-safety---
name: gog-safety
description: Build and deploy safety-profiled gogcli binaries with compile-time command removal. Use when setting up gog for an AI agent with restricted permissions — choosing between L1 (draft only), L2 (collaborate), or L3 (standard write). Covers building from PR #366, deploying to remote hosts, and verifying blocked commands.
---
# gog Safety Profiles
Build and deploy `gog` binaries with compile-time command removal. Commands that are disabled don't exist in the binary — no runtime bypass possible.
Quick Start
1. Choose a safety level
| Level | Use case | Can send email/chat? |
|-------|----------|---------------------|
| **L1** | Email triage, drafting, inbox organization | No |
| **L2** | L1 + commenting, RSVP, collaborative work | No |
| **L3** | Full write access, no dangerous admin ops | Yes |
For full details: `references/levels.md`
2. Build
# Build for current platform
./scripts/build-gog-safe.sh L1
# Cross-compile for Linux ARM64 (e.g., AWS Graviton)
./scripts/build-gog-safe.sh L1 --arch arm64 --os linux
# Custom output
./scripts/build-gog-safe.sh L2 --output /tmp/gog-l2Requires: Go 1.22+, git. First run clones the PR #366 branch (~30s).
3. Deploy
# Deploy to a remote host via SSH
./scripts/deploy-gog-safe.sh spock /tmp/gogcli-safety-build/bin/gog-l1-safe
# Deploy with verification (tests blocked + allowed commands)
./scripts/deploy-gog-safe.sh spock /tmp/gogcli-safety-build/bin/gog-l1-safe --verifyThe deploy script:
4. Rollback
ssh <host> 'sudo mv /usr/local/bin/gog-backup /usr/local/bin/gog'How It Works
Uses gogcli's compile-time safety profiles feature (PR #366 on `steipete/gogcli`). A YAML file specifies which commands are enabled (`true`) or removed (`false`). The build system generates Go source files with only the enabled commands, then compiles. The resulting binary's version is tagged with `-safe`.
YAML Profiles
In `references/`:
Custom profiles: copy any YAML, edit the `true`/`false` flags, pass to `build-gog-safe.sh`.
Verification
After deployment, verify with:
ssh <host> "gog --version" # Should show -safe suffix
ssh <host> "gog gmail send --help 2>&1" # Should fail (L1/L2)
ssh <host> "gog gmail drafts create --help" # Should work (all levels)Known Edge Cases
More tools from the same signal band
Order food/drinks (点餐) on an Android device paired as an OpenClaw node. Uses in-app menu and cart; add goods, view cart, submit order (demo, no real payment).
Sign plugins, rotate agent credentials without losing identity, and publicly attest to plugin behavior with verifiable claims and authenticated transfers.
The philosophical layer for AI agents. Maps behavior to Spinoza's 48 affects, calculates persistence scores, and generates geometric self-reports. Give your...