Skip to content

Rename the Agent-Safety Hook Scripts to Snake Case #3142

Closed

Description

@ptr727

Depends on #3140, which states that a Python file is lowercase snake_case.

Problem

Three agent-safety hook scripts under host-setup/agent-safety/claude/ use hyphenated names: the write guard, the stray-process sweep, and the tool-containment hook. Rebuild the exact list live with git ls-files 'host-setup/**/*.py' | grep -- - rather than copying it from here.

Work

  • Rename each one to snake_case and update every reference: the installer, its tests, the docs, and the host-wide instruction block.
  • Hook commands are written into each host's settings.json by path, so the installer must migrate an existing entry that points at an old name, rather than adding a second entry beside it. A host that never re-runs the installer would otherwise keep pointing at a file that no longer exists.
  • The hook keeps "gh-write-guard" as its name in prose. Only the file changes.

Activity

  1. added
    chore
    script
    on Oct 16, 2026
  2. ptr727 commented on Oct 23, 2026

    @ptr727
    OwnerAuthor

    Closed under the maintainer's decision (ptr727, 2026-10-23) on #3391: the backlog keeps real bugs with a stated failure, features the maintainer wants, and open decisions. A finding the review loop filed on code or text a change did not touch, a refactor or consolidation chore, a tracker, a wording item, or a guard shape no session has produced is closed rather than worked. Reopen with the input and the wrong result if this issue states one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    chorescript

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions