korovin-aa97

Agent Self Edit Gate — Development skill for Claude Code

Development community

Policy-enforced self-edit gateway for coding agents: mutable behaviour, protected authority, verifiable receipts.

How to install Agent Self Edit Gate

This entry records only its repository, not the path inside it, so there is no exact command to give. Open korovin-aa97/agent-self-edit-gate and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

What Agent Self Edit Gate does

Policy-enforced self-edit gateway for coding agents: mutable behaviour, protected authority, verifiable receipts.

Alternatives in Development

  • Forward Implementation First — Stop your coding agent from stalling real work on self-invented bookkeeping - receipts, hashes, locks, certifi 186 ★
  • Context — View or edit agent context for Self-Care analysis 28 ★
  • Adversarial Contract Gate — Self-evaluation is a trap — grade against a contract with a separate evaluator 27 ★

README

Agent Self-Edit Gate

Agent Self-Edit Gate flow: a requested edit passes through a guarded write and produces a verifiable receipt.

**Policy-enforced self-edit gateway for coding agents: let agents improve prompts and skills without rewriting permissions, hooks, or enforcement.**

[!IMPORTANT] **This is not a sandbox.** The CLI is an enforcement boundary only when a sandbox, OS policy, or protected broker makes it the agent's only writer. With unrestricted shell or filesystem access, an agent can bypass it. Read the [threat model](docs/THREAT_MODEL.md) before deployment.

[Run the 15-second demo](#15-second-demo) · [Read the threat model](docs/THREAT_MODEL.md)

[![CI](https://github.com/korovin-aa97/agent-self-edit-gate/actions/workflows/ci.yml/badge.svg)](https://github.com/korovin-aa97/agent-self-edit-gate/actions/workflows/ci.yml) [![PyPI](https://img.shields.io/pypi/v/agent-self-edit-gate.svg)](https://pypi.org/project/agent-self-edit-gate/) [![Python 3.12+](https://img.shields.io/badge/python-3.12%2B-3776AB.svg)](https://www.python.org/) [![License: Apache-2.0](https://img.shields.io/badge/license-Apache--2.0-blue.svg)](LICENSE)

Coding-agent behaviour and authority often live side by side:

.claude/skills/reviewer/SKILL.md   behaviour: may improve
.claude/settings.json             authority: must not self-edit
.codex/agents/reviewer.toml       behaviour: may improve
.codex/config.toml                authority: must not self-edit

Agent Self-Edit Gate puts a deterministic write path between “the agent wants to edit itself” and “the repository accepts that edit.” Policy is plain TOML; decisions never depend on an LLM. Accepted writes are atomic and leave a two-phase, hash-chained receipt.

15-second demo

python -m pip install "agent-self-edit-gate==0.1.3"
git clone --depth 1 --branch v0.1.3 \
  https://github.com/korovin-aa97/agent-self-ed