holdfast

    1

    Holdfast helps Claude Code enforce persistent, plain-English rules through tool-call hooks, preventing AI agents from violating user-defined constraints during coding tasks.

    Free

    Security scanned

    Works with the AI Agents you already use

    Claude CodeClaude CodeCursorCursorCodex CLICodex CLIDeepSeekDeepSeekMuseMuse+22 more

    holdfast

    Example session with this skill installed

    Install Holdfast in this repo and make sure I don't delete any files in the 'docs' folder without asking me first.

    • Read your context and instructions
    • Compiled the holdfast

    I have installed Holdfast and registered your protection rule. Claude Code will now prompt for your manual approval before any tool attempts to modify or delete files within the docs/ directory.

    Installation and Rule Status

    ComponentStatusDetails
    Python EnvironmentInstalled~/.holdfast/venv
    Hook StatusActiveRegistered in .claude/settings.local.json
    Active Rules1 Found"Don't delete any files in the 'docs' folder without asking me first."
    Last DecisionN/ANo actions attempted since install

    Holdfast is now monitoring all tool calls. If I attempt to run a command like rm docs/readme.md or a Python script that deletes files in that path, Holdfast will intercept the call and wait for your explicit "yes" in the chat.

    Next steps

    1. Run git status to trigger a harmless tool call and confirm the hook is firing.
    2. Check ~/.holdfast/venv/bin/holdfast status to see the currently active session rules.
    3. Try a dry run with ~/.holdfast/venv/bin/holdfast explain --rule "Don't delete docs" -- "rm docs/test.txt" to see the guard in action.

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

    About this skill

    Holdfast helps developers keep AI coding agents under control.

    • Enforces plain-English rules through Claude Code hooks.
    • Blocks actions that violate user-defined constraints.
    • Keeps rules active across long sessions.
    • Helps prevent unwanted code changes.

    Requires Holdfast CLI and Claude Code.

    GitHub: https://github.com/yli949-gif/holdfast

    Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for Agents & Orchestration.

    Requires macOS/Linux and Python 3.10+. Not a security sandbox. 63-92ms overhead per tool call. Effectiveness depends on clear phrasing of rules.

    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 6 days ago

    • Free with an Agensi account

    Software
    Git

    Permissions

    Terminal / Shell
    Read Files
    Write Files
    Listed6 days ago

    What's inside

    Frequently Asked Questions

    Holdfast acts as a persistent hook-based guard that intercepts tool calls before they execute. Unlike standard system prompts, these rules are stored on disk and enforced at the execution layer, meaning they won't be forgotten when Claude Code hits context limits or spawns subagents.

    Currently, Holdfast is purpose-built for the Claude Code CLI. It requires a Linux or macOS environment, Python 3.10+, and works within any active Git repository where Claude Code is initialized.

    Holdfast intercepts high-risk tool calls like Bash commands and file writes, comparing them against your defined plain-English rules. If a command violates a rule—such as deleting a protected file—the tool call is blocked before it can execute, and the agent is informed of the restriction.

    When you purchase Holdfast, you receive the full Python utility package, the hook registration script, and comprehensive documentation for local setup. You also get access to all minor version updates and bug fixes for the current major release.

    Holdfast is designed for efficiency, adding a negligible overhead of approximately 63ms to 92ms per tool call. This ensures your guardrails are enforced in near real-time without noticeably slowing down your development workflow.

    New in Agents & Orchestration

    Free