motor / interlock 17 clones. Gauss counts each amp clone since Dec 1, 2026. It doesn't count pulls, or clones by an older Amp.
37 downloads. Gauss counts each artifact file download since Dec 2, 2026.
Give your agent this prompt to install Amp and clone this repository:
Install Amp by running `curl -fsSL https://gauss.motor.dev/motor/amp/artifacts/install.sh | sh`, run `amp learn` to learn how it works, then clone https://gauss.motor.dev/motor/interlock with `amp clone`. Copy Or install motor and get Gauss repositories, Piston remote compute, and Amp version control all in one tool. Sign up and give your agent this prompt:
Install the Motor CLI (which installs Amp too) by running `curl -fsSL https://gauss.motor.dev/motor/cli/artifacts/install.sh | sh`, sign me in with `motor auth`, run `motor learn` and `amp learn`, then clone https://gauss.motor.dev/motor/interlock with `amp clone`. Copy
interlock is a local Go CLI that decides whether a shell command is safe to run automatically or needs human approval.
It parses the command into a shell-agnostic IR (expanding variables, paths, symlinks, local scripts, and common obfuscations), scores it with an embedded 16.9M-parameter INT8 ModernBERT classifier (ettin-encoder-17m), and applies a deterministic policy engine with profiles and allow/deny rules. Everything ships inside a single static Go binary (~22 MB, CGO_ENABLED=0) and runs on CPU in ~8–16 ms per command (including cold startup).
Prebuilt binary (macOS / Linux):
curl -fsSL https://gauss.motor.dev/motor/interlock/artifacts/install.sh | sh Or with Go 1.26+:
go install gauss.motor.dev/motor/interlock@latest Or from a local checkout:
./scripts/install.sh Prebuilt static binaries (darwin-arm64, darwin-amd64, linux-amd64, linux-arm64, windows-amd64) are built by Piston on every landing to main and published under monotonic YYYY_MM_NNNN Gauss artifact versions (motor gauss artifact list motor/interlock), with a matching v0.YYYYMM.N Go module tag pushed automatically for go install ...@latest.
shell command + context | v +---------------------------------------------+ | 1. Parse and expand | | Resolve vars, paths, and obfuscation | +----------------------+----------------------+ | v +---------------------------------------------+ | 2. Score risks (local ML model) | | Rate file, network, and system danger | +----------------------+----------------------+ | v +---------------------------------------------+ | 3. Apply policy | | Check profile, rules, and confidence | +----------------------+----------------------+ | +-------------+-------------+ | | v v +-----------------+ +-----------------+ | safe | | blocked | | allow / run | | approve or deny | +-----------------+ +-----------------+ Usage
Classifies a command and prints a JSON (or --format text) report. Exit codes:
3: denied by explicit rule
interlock check --format text -- "rm -rf /etc/hosts" interlock check --profile read-only -- "touch ./out.txt" interlock check --rules .interlock.rules --audit-log session.jsonl -- "git push origin feat/ui" interlock run
Takes the same flags as check. If the command is safe, runs it in the configured shell, directory, and environment and returns the child's exit code. If blocked, refuses to run, writes the report to stderr, and exits with 120 (needs approval) or 121 (denied) so blocked decisions do not collide with normal command exit codes.
interlock run --cwd /work/app --workspace /work/app --no-inherit-env --env PATH=/usr/bin:/bin -- "go test ./..." interlock is a guardrail, not a sandbox. Static inspection and ML scoring catch common mistakes and hazards, but no classifier is perfect, and commands can still behave unexpectedly at runtime (for example, if a file changes or a script fetches new code). Pair interlock run with real isolation like containers, VMs, or scoped credentials whenever you run untrusted commands.
Passing explicit subagent context (--stdin-json)
When an agent runs commands in isolated subshells or worktrees, pass the context directly over stdin. Supplying "env" defaults inherit_env to false so ambient host variables do not leak in.
interlock check --stdin-json <<'EOF' { "command": "./do_it $TARGET", "shell": "zsh", "cwd": "/work/subagent-1", "workspace": "/work/subagent-1", "home": "/home/agent", "user": "agent", "os": "linux", "env": {"TARGET": "/etc/hosts", "PATH": "/usr/bin:/bin"}, "inherit_env": false } EOF You can also pass context via flags: --shell, --cwd, --workspace, --home, --user, --os, repeatable --env KEY=VAL, --env-file
interlock explain --format text -- "cd /etc && rm -f ./hosts" interlock audit session.jsonl interlock test-rules --rules .interlock.rules cases.json interlock update # self-update from Gauss artifacts (use --check to preview) interlock version What the frontend inspects
Shells: Bash, Zsh, POSIX sh, Fish, PowerShell, cmd.exe, plus a best-effort fallback tokenizer for other shells.
Expansion: cd/pushd threading (with subshell isolation), variable expansion ($VAR, ${VAR:-default}, %VAR%, $env:VAR), path canonicalization (~, .., symlink resolution, symlink-escape detection).
Local scripts & task runners: recursive inspection of ./script, sh/source (with positional arg binding, cycle/size limits), Makefile, package.json, justfile, Taskfile.yml, lightweight capability scanning for .py/.js/.rb/.pl scripts, and SHA-256 hashing of opaque local binaries.
Obfuscation & resource bombs: static decoding of Base64/Base32 (including file-backed base64 -D < file | sh), hex (xxd -r -p, \xHH), octal (\OOO), ANSI-C











