Skip to main content

i-insist

Block agent tool calls with checks from your plugins or your own scripts. Works with Codex and Claude Code. When a check blocks an action, the agent sees the reason and stops. Say I insist when you want to override it.

Install

Requires uv, Python 3.12 or newer, and Linux or macOS.

uv tool install 'git+https://github.com/crypdick/i-insist@main'
i-insist install codex
i-insist install claude

Install only the integrations you use. Restart the agent and check hook trust with /hooks.

Installation and removal refuse changes that would transfer Codex's indexed hook settings to a different command. Review the affected registrations with /hooks before retrying; the installer never rewrites human trust or disable settings.

Installer locks live in a private per-user directory, outside your settings tree. See hook registration for locations and cleanup of lock files left by older versions.

Rules

Plugins supply their own checks. Rules live in ~/.i-insist/*.toml for global use or .i-insist/*.toml within a project. Global and applicable local rules run together.

Installation includes a rule requiring human approval to change .i-insist files, including symlinked configuration directories and registrations. Other checks come from your plugins or scripts.

To write your own, start with the runnable example and rule and checker reference. The uv version example is a global rule: copy its files into ~/.i-insist/ to block hand-edited versions in uv projects in favor of uv version --bump. Plugin installers replace their generated registrations, so don't edit those files to customize a plugin.

Human overrides

Include I insist anywhere in your message, in any capitalization:

I insist, update both protected files.

When a rule blocks a tool call, or a post rule flags one after it ran, its message names the rule, shows the triggering command or paths, and includes the checker's reason. For overridable rules, it also tells the agent to ask you to say I insist. Command previews show at most the first 500 characters, followed by … [truncated] when shortened. Checkers still receive the full command.

Approval lasts for the current response and resets with your next message or when you start or resume a session. Quoted text and code blocks count too. Teammate or subagent messages that arrive during the response don't reset it, because the harness doesn't report them as new prompts. Codex cached approval requires a nonempty matching turn_id on both prompt and tool events. Without it, checks still run normally; Claude doesn't require a turn ID.

Rules marked overridable = false still run. Invalid configuration still blocks approved calls. Approval doesn't override other plugins or the agent's own permissions.

These are cooperative guards, not a sandbox. They depend on the agent calling hooks, and checkers run with your account's privileges.

Configuration edits through structured file tools require approval. The built-in guard checks their explicit paths, including symlink aliases. It also catches simple literal shell writes. Unsupported shell syntax is left unchecked, not blocked conservatively. See configuration protection for scope.

Pre and post rules stop at the first denial or checker error. Post checks are feedback, not guaranteed cleanup callbacks; providers must expire saved state when a corresponding post check never runs.

Update or uninstall

Update the runner, then repeat the install command for each integration you use if the update changes hook registrations:

uv tool upgrade i-insist

Checks launched from uv-installed executables coordinate with uv tool upgrades. They wait for an active installation, then run against the restored environment. The wait counts toward the checker timeout; an overdue installation still blocks the tool call. See checker execution for scope.

To uninstall, remove each integration you installed before removing the runner:

i-insist uninstall codex
i-insist uninstall claude
uv tool uninstall i-insist

Uninstall leaves provider rules and approval caches in place.

Reference

Metadata

Release files for i-insist 0.6.7

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for i-insist 0.6.7
File Size Uploaded Provenance Actions
i_insist-0.6.7.tar.gz 111.2 kB With provenance Details for i_insist-0.6.7.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for i-insist 0.6.7
File Interpreter ABI Platform Actions
i_insist-0.6.7-py3-none-any.whl Python 3 none any Details for i_insist-0.6.7-py3-none-any.whl

Total release size: 129.8 kB

Release files / i_insist-0.6.7.tar.gz

Download URL i_insist-0.6.7.tar.gz
Size 111.2 kB
Tags Source
SHA-256 checksum
How to use checksums
d0822f344e7325d1c2d543e79ecca24d52a473e378935ac4f8fb233b7f69a9e8
BLAKE2b-256 checksum
How to use checksums
4c65bc990826489f2b02d51a69e72cb5dc8743f4c64ff5b0a45ab69ea80bbc30
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 18, 2026.

Transparency log

Release files / i_insist-0.6.7-py3-none-any.whl

Download URL i_insist-0.6.7-py3-none-any.whl
Size 18.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
cb71302693fd527cef8f9b9b047e64b8c63685e1e3b7909386da7b58e1bf7129
BLAKE2b-256 checksum
How to use checksums
243f8c928cb6e6fc058edd473a2d46e403d72e095d0f42b67f73c6aa3e6e9b28
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 18, 2026.

Transparency log

Security for i-insist 0.6.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for i_insist-0.6.7.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 18, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.6.7 This release

2 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page