Guardrailed Agent Harness
A command-line delegation tool and execution harness that allows large language models to automate smart-home configuration and maintenance tasks under strict deterministic validation rules.

About this project
Delegating server maintenance and smart home configuration to language models often risks unintended system modifications or command hallucinations. This project establishes an automated delegation CLI that executes predefined administrative recipes—such as device pairing or presence automation generation—while confining the model within strict bounds. Instead of granting open-ended shell access, tasks are executed through scoped helper utilities that automatically reject critical system targets. The framework enforces deterministic post-execution checks against live API state, verifies entity creation, mandates dry-run testing for scripts, and maintains structured audit logs of model prompts and real changes. This creates a safe, reliable bridge for developers looking to integrate autonomous AI assistants into everyday homelab administration.
What you need
- Linux server or workstation
- LLM CLI runner
- Home Assistant instance
- Zigbee2MQTT gateway
- Python and Bash runtime
Highlights
- Executes parameterized administrative recipes through scoped tools that prevent the AI from modifying protected devices.
- Performs automated post-execution validations against live Home Assistant and Zigbee APIs before logging results.
- Enforces mandatory dry-run modes, non-background execution limits, and structured audit logs with human approval gates.