
gardawg
io.github.Oceans-Niagara/gardawg
Deterministic AI-code guardrails, physical-layer link analyzer, and seeded chaos proxy.
Documentation
Gardawg 
Link-aware static analysis, physical-layer airtime budgets, and seeded chaos proxies in one offline-first binary.
Gardawg is a 100% offline-first Rust CLI and MCP server by Oceans Niagara, LLC. It enforces deterministic AST rules and quality gates on your code, checks payloads against real physical-layer limits (LoRa, BLE, Wi-Fi, LEO satellite, UART), and runs seeded chaos/impairment proxies - with zero LLM dependencies inside Gardawg and zero code leaving your machine. AST rules cover Python, Rust, TypeScript, JavaScript, C and C++ (including Arduino .ino).
- Website, WASM sandbox & licensing: https://oceans-niagara.github.io/gardawg/
- Interactive sandbox: https://oceans-niagara.github.io/gardawg/sandbox.html
What It Catches
GR000Syntax & stray fences: parse errors and stray Markdown code fences, even withouttsc/cargo/ruff.GR001Money floats:f32/f64on money and quantity identifiers.GR002Missing timeouts:fetch,axios,reqwest,requests,httpx,socket.socket(),HTTPServer, and Crecv/connectcalls without explicit timeouts.GR004-GR005Swallowed errors & stubs: emptycatch/except: pass, ignored C returns, non-atomic state writes,todo!(),NotImplementedError, and placeholder comments.GR006-GR007Security & panics: hardcoded secrets (sk_live_,AKIA,ghp_, private keys),eval/exec/shell=True/strcpy, and non-test Rust.unwrap().- Link budgets & AST rules:
budgetcomputes the Shannon ceiling, MTU fragmentation, airtime, and BER loss;--linkadds loop-send batching, framing, and timeout checks. - Chaos, verify & SARIF: seeded TCP/UDP/HTTP impairment proxies,
gardawg verify, and OASIS SARIF 2.1.0 output (--format sarif).
init detects your stack and generates gardawg.toml, AGENTS.md, .mcp.json, and opencode.json. Re-sync them after editing gardawg.toml with gardawg sync.
Install & Multi-Project Quickstart
Prebuilt binaries (no Rust required): download from GitHub Releases. Headless builds suit CI and servers; -gui builds add the desktop dashboard.
| OS | Headless | GUI |
|---|---|---|
| Windows | gardawg-windows-x86_64.exe | gardawg-gui-windows-x86_64.exe |
| macOS (Apple Silicon) | gardawg-macos-arm64 | gardawg-gui-macos-arm64 |
| macOS (Intel) | gardawg-macos-x86_64 | gardawg-gui-macos-x86_64 |
| Linux | gardawg-linux-x86_64 | gardawg-gui-linux-x86_64 |
Option 1: Global PATH Install (Recommended for Multiple Repos)
Run gardawg install (alias install-path) to copy the binary + adjacent gardawg.lic into %LOCALAPPDATA%\Programs\gardawg (Windows) or ~/.local/bin (macOS/Linux) and add it to your user PATH - or move gardawg.exe + gardawg.lic there manually:
# Windows (PowerShell)
.\gardawg-windows-x86_64.exe install
# In ANY repo root (new terminal):
gardawg init --link
gardawg check --format text
# macOS / Linux
chmod +x ./gardawg-macos-arm64
./gardawg-macos-arm64 install
gardawg init --link
init --link defaults to wifi-24g-congested (for general networked apps). Pass --link-profile ble-1m or --link-profile lora-sf12 for constrained RF/serial links, or edit [link] profile = "..." in gardawg.toml anytime.
Option 2: Point at Any Project Without Modifying PATH (-w)
.\gardawg-windows-x86_64.exe -w C:\path\to\project init --link
init automatically writes the binary's full path into .mcp.json and opencode.json, so MCP works from your AI tools even without gardawg on PATH.
Build from Source & Core Commands
cargo install --git https://github.com/Oceans-Niagara/gardawg
cargo install --git https://github.com/Oceans-Niagara/gardawg --features gui
gardawg check --format sarif
gardawg budget --profile lora-sf12 --bytes 64 --hz 10
gardawg proxy --listen 127.0.0.1:9000 --target 127.0.0.1:9001 --profile ble-1m --seed 42
gardawg verify --profile wifi-24g-congested --udp --listen 127.0.0.1:9000 --upstream 127.0.0.1:9001 --cmd "python client.py"
gardawg resilience --openapi openapi.yaml
gardawg mcp
gardawg resilience example: pass --openapi openapi.yaml (requires schemathesis on PATH) or set [resilience] openapi_spec / keploy_cmd in gardawg.toml. Start your API on 127.0.0.1:8080 (or set [resilience] upstream), then run gardawg resilience --openapi openapi.yaml.
Desktop GUI (gardawg-gui)
Download the -gui binary (or build with --features gui). Launch it with no arguments (gardawg-gui) and use the top toolbar Mode switcher to toggle anytime between Standalone Simulator and Live Proxy (with editable Listen/Target endpoints and TCP/UDP selection), or pass --target on the CLI to start directly in live proxy mode:
# Standalone simulator & interactive payload calculator (no --target needed)
.\gardawg-gui-windows-x86_64.exe
# Live UDP impairment proxy + real-time throughput/drop plots
.\gardawg-gui-windows-x86_64.exe gui --udp --listen 127.0.0.1:9000 --target 127.0.0.1:9001 --profile ble-1m
AI Agents (MCP) & Local Models
Gardawg itself is 100% offline - your host coding CLI (OpenCode, Claude Code, Cursor, Windsurf, etc.) chooses which LLM runs.
- Primary Workflow - Agentic MCP Guardrails (
AGENTS.md+.mcp.json/opencode.json):gardawg initwires Gardawg's stdio MCP server into your project and writes a 3-stepAGENTS.mdcontract (evaluate_payload->gardawg_check->verify_runtime). Pair it with OpenCode's built-in models or any tool-capable coding model so your agent checks link budgets before designing frames, fixes AST findings after every edit, and smoke-tests through the impairment proxy automatically. - 100% Local Ollama in
opencode.json:gardawg initincludes a commented Ollama"provider"template (http://127.0.0.1:11434/v1with"tool_call": true) inopencode.jsonso you can uncomment it with any tool-capableollama listtag. - Lightweight CLI Repair Helper (
gardawg fix): for localized single-file fixes (such as adding missingtimeout=arguments or moving hardcoded secrets toos.environ) using small local Ollama models (1.5B-3B) without full agentic overhead:
gardawg fix --model ollama/qwen2.5-coder:3b
gardawg fix --model ollama/qwen2.5-coder:1.5b --file src/client.py --dry-run
Tools
When run as an MCP server (gardawg mcp), Gardawg exposes the following four tools to AI coding agents:
list_link_profiles
List physical-layer RF/serial link profiles (lora-sf12, ble-1m, wifi-24g-congested, leo-sat, uart-9600, plus licensed custom profiles).
- Parameters: None
evaluate_payload
Step 1 (Budget first): Compute Shannon ceiling, protocol goodput, MTU fragmentation, safe byte limit, and BER loss before writing wire framing code.
profile(string, required): Physical link profile ID (e.g.,lora-sf12,ble-1m,wifi-24g-congested,leo-sat,uart-9600).payload_bytes(integer, required): Payload size in bytes (minimum1).hz(number, required): Transmit rate in Hz (minimum0.001).
check
Step 2 (Check every edit): Run unified single-pass AST + physical-layer link rules + external compiler/linter gate (alias: gardawg_check).
path(string, optional): Subpath or file to scan.profile(string, optional): RF/serial link profile ID (e.g.,lora-sf12).hz(number, optional, default10.0): Assumed transmit rate in Hz.ast_only(boolean, optional, defaultfalse): Run only AST rules without external compiler/linter gates.pedantic(boolean, optional, defaultfalse): Enable pedantic rule checks.
verify_runtime
Step 3 (Verify runtime): Run an automated black-box smoke test through the impairment/chaos proxy and return structured runtime diagnostics (alias: smoke_test).
command(string, required): Shell command to run (e.g.,"python app.py").profile(string, optional): Physical link profile ID (e.g.,lora-sf12,ble-1m).upstream(string, optional): Targethost:portto proxy to (e.g.,127.0.0.1:8080).probe_path(string, optional): HTTP path to probe through the chaos proxy (e.g.,/health).duration_secs(integer, optional, default4): Duration of the smoke test in seconds.udp(boolean, optional, defaultfalse): Use UDP proxy mode instead of TCP/HTTP.
See BENCHMARKS.md for latency measurements (45 ms median check) and a 46-run controlled agent evaluation (0/5 -> 5/5 bilateral CRC-16/CCITT-FALSE and binary framing on constrained UART/LoRa tasks).
Licensing
Gardawg is dual-licensed: the open-source codebase is licensed under the GNU Affero General Public License v3.0 (AGPL-3.0-only), while commercial licenses (Pro, Team, and Enterprise) without AGPL-3.0 copyleft obligations are available from Oceans Niagara, LLC at oceansniagara.com.
Offline Ed25519-signed keys (LG1...), verified locally with zero network calls. Perpetual, one-time purchase.
License lookup order (first match wins):
--license-key <key-or-path>GARDAWG_LICENSE_KEY(orLINKGUARD_LICENSE) environment variable./gardawg.lic(or./linkguard.lic) in the current working directory<exe_dir>/gardawg.lic(or<exe_dir>/linkguard.lic) next to thegardawgbinary (global fallback across all repos)%APPDATA%\gardawg\license.lic(Windows) or~/.config/gardawg/license.lic(macOS/Linux)
Verify anytime with gardawg license.
- Free ($0): core CLI, AST rules, quality gates, SARIF output, built-in link profiles, seeded proxy/chaos/verify,
gardawg fix --model ollama/<tag>, stdio MCP server, and browser sandbox. - Pro ($19.99 one-time - Local Workstations): everything in Free, plus
gardawg resilience, customprofiles.toml, local--baselineratchet, andgardawg-guidesktop dashboard with CSV/JSON export (ci_allowed: false- local workstations only). - Team ($59.99 one-time - Up to 6 Seats + CI): everything in Pro, plus CI/CD runner support (
ci_allowed: true),gardawg sync --checkconfig drift gate,[agents].custom_rulesenforcement, and offline 90-day contributor cap (<= 6non-bot committers viagit shortlog). - Enterprise ($299+ - Unlimited Seats & CI): everything in Team with
max_seats: null(unlimited developers & CI runners), multi-profile matrix sweeps (gardawg check --profile-matrix ble-1m,wifi-24g-congested,lora-sf12), and organization-stamped SARIF audit headers (Licensed to <Org> - Enterprise).
© 2026 Oceans Niagara, LLC • connect@oceansniagara.com
MCP Registry: mcp-name: io.github.Oceans-Niagara/gardawg
gardawgcargo install gardawg