delegar-gemini

Automates routine server tasks via Gemini with automated post-execution verification checks.

SkillsDaily useCode: on GitHub

View the code on GitHub →

What it does

Delegating routine infrastructure maintenance directly to autonomous AI models can introduce silent regressions if actions are not verified. delegar-gemini dispatches predefined routine tasks—such as pairing smart devices or creating presence automations—to Gemini through a non-interactive CLI runner. To maintain strict safety guardrails, every execution runs automatic post-task verification checks to confirm device status, correct configuration options, and valid integration states. If all checks pass, the task is marked as verified without requiring manual inspection; if any validation check fails, the issue is logged and escalated for human review.

  • Dispatches routine tasks to Gemini using headless agent execution.
  • Automates smart device pairing with device-specific configuration profiles.
  • Sets up presence-based lighting automations across smart switches and bulbs.
  • Executes deterministic post-run checks to verify that every configuration step succeeded.
  • Maintains a history log recording task outcomes and verification statuses.

Commands

CommandWhat it does
delegar-gemini zigbee-emparejar --nombre "Living Room Sensor" --tipo sensor-presenciaRuns agent-assisted device pairing with preset configuration for a presence sensor.
delegar-gemini automatizacion-presencia --id living_room --sensor "Living Room Sensor" --luz light.living_room_lightCreates a presence-based automation linking a sensor to a light entity.
delegar-gemini libre prompt.txtRuns a custom task from a prompt file without automated verification checks.
delegar-gemini historialDisplays recent delegations and their verification results.

Design principles

  • Deterministic verification: marks tasks verified only when all automated system checks pass.
  • Tiered trust policy: bypasses manual review on verified tasks, escalating failures to human oversight.
  • Safe defaults: enforces standardized configuration profiles for each device type.

Built with

PythonAntigravity CLIGemini

Works with

Zigbee2MQTTHome Assistant