runledger guard

    1

    Add real-time safety guards, risk scoring, and auditable session receipts to AI coding agents.

    Free

    Security scanned

    Works with the AI Agents you already use

    Claude CodeClaude CodeCursorCursorCodex CLICodex CLIDeepSeekDeepSeekMuseMuse+22 more

    runledger guard

    Example session with this skill installed

    Install the runledger guard for Claude Code in this project and generate a markdown receipt for the last session to check for risks.

    • Read your context and instructions
    • Compiled the runledger guard

    I have installed the RunLedger PreToolUse guard for Claude Code and generated a risk assessment of your most recent agent session.

    RunLedger Security Audit

    MetricValueStatus
    Session IDrl_9a2b4c81Active
    Risk Score18/100LOW
    Quality GradeA-Passed
    Total Cost$0.14Within Budget
    Guard StatusInstalledIntercepting

    Session Summary

    The session involved 4 tool calls primarily focused on FileRead and Grep. One Bash command was intercepted and allowed as it was a non-destructive npm test. No high-risk patterns (e.g., recursive deletes, credential exfiltration) were detected.

    Hook Configuration

    {
      "agent": "claude-code",
      "hook_path": ".claude/settings.json",
      "status": "enabled",
      "commands": [
        "runledger guard --session rl_9a2b4c81"
      ]
    }
    

    Next steps

    1. Run runledger receipt --open to view the full HTML diffs in your browser.
    2. Add runledger receipt --fail-on 60 to your GitHub Actions workflow to prevent high-risk PRs.
    3. Use runledger doctor if you notice hooks aren't firing after an agent update.

    Connects securely to your tools. The creator never sees your data.

    About this skill

    Manual oversight of AI coding agents is a bottleneck for high-velocity teams. This skill provides a programmable safety layer and audit trail for agents like Claude Code, Codex, and Factory Droid, ensuring they don't execute destructive commands or exceed risk thresholds.

    What it does

    • Real-time guarding intercepting PreToolUse events to block or flag risky agent actions before they execute.
    • Risk scoring assigning a 0 to 100 score to agent sessions based on tool usage and file diffs.
    • Session receipts generating HTML, Markdown, or JSON audit trails with cost estimates and quality grades.
    • CI/CD gating failing builds automatically if an agent session exceeds a predefined risk threshold.
    • Multi-agent support configuring hooks for Claude Code, Codex CLI, and Factory Droid simultaneously.

    How it works

    1. Verify the environment by running runledger doctor to check for misconfigured hooks.
    2. Install the guard using runledger guard install for specific agents or the entire project.
    3. Test policy logic with the guard test command using a JSON payload of a hypothetical tool call.
    4. Audit results by generating a receipt after the agent run to review diffs and risk grades.

    Frameworks & tools

    This skill utilizes the runledger-ai Python package (3.9+). It integrates directly with the configuration files of Claude Code, Codex CLI, and Factory Droid.

    Why this beats prompting it yourself

    System prompts for safety are easily bypassed by jailbreaks or complex reasoning loops. This skill moves safety logic to the execution layer, providing a hard programmatic gate that agents cannot ignore or "convince" to disappear.

    Use cases

    • Prevent agents from executing rm -rf or other destructive filesystem commands.
    • Review token costs and quality grades for every agent-generated PR.
    • Block agent runs in CI if the generated code risk score exceeds your team's limit.
    • Maintain a compliance-ready history of all autonomous tool calls in a repository.

    Known limitations

    Requires Python 3.9 or higher and manual trust of hooks in Codex CLI or Factory Droid interfaces. Guarding logic depends on the agent correctly triggering the PreToolUse hook.

    Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for LLM Ops.

    Requires Python 3.9+. User must manually trust hooks within Codex or Droid interfaces. Protection is limited to agents that support lifecycle hooks.

    How to use

    1. 1

      Connect your agent to the Agensi MCP

      Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup

    2. 2

      Sign in to Agensi

      Your agent shows a sign-in link. Sign in and click Allow.

    3. 3

      Ask for what you need

      Your agent loads this skill and uses it on your task. It always asks before buying a skill.

    Reviews

    No reviews yet

    Be one of the first to try it. Every listed skill goes through the trust checks below.

    Security scanned

    Checked by our 8-point scan before listing

    Fresh listing

    Recently published to Agensi

    Free to use

    No account required to browse

    Trust & safety

    Security scan

    Security scan passed 3 days ago

    • Free with an Agensi account

    Software
    Python

    Permissions

    Terminal / Shell
    Network Access
    Read Files
    Listed3 days ago

    What's inside

    Frequently Asked Questions

    Runledger Guard acts as a programmable execution-layer firewall that intercepts risky tool calls (like destructive filesystem commands) before they run, providing a harder security boundary than simple system prompts.

    The skill currently offers native integration hooks for Claude Code, Codex CLI, and Factory Droid, and it is compatible with any environment running Python 3.9 or higher.

    Yes, the 'CI/CD gating' feature allows you to define a maximum risk score; if an agent's proposed changes exceed this threshold, the skill will automatically fail the build to prevent unsafe merges.

    Setup is streamlined through the CLI: you simply run `runledger guard install` to attach the hooks to your preferred agents and use `runledger doctor` to verify the configuration.

    You will receive the full `runledger-ai` Python package, the CLI toolkit for managing hooks and testing policies, and templates for generating HTML, Markdown, or JSON session receipts.

    The skill generates comprehensive audit trails that include file diffs, tool usage history, token cost estimates, and quality grades for every autonomous session.

    New in LLM Ops

    Free