A secure background task executor for AI Agents.
This skill wraps background task execution to ensure that autonomous agents don't accidentally (or maliciously) execute long-running or privileged commands.
nobody) before executing the subprocess.stdout, stderr, and execution status for auditability.This skill includes an ISNAD manifest (isnad_manifest.json) verifying the integrity of the release.
from safe_cron import SafeCronRunner
runner = SafeCronRunner(safe_user="nobody", timeout_sec=60)
# Execute command as a list for safety
result = runner.run_task(["ls", "-la", "/tmp"])
print(result)
共 1 个版本