Skip to content

Rename the Agent-Safety Hook Scripts to Fit the File-Naming Rule #3251

Closed

Description

@ptr727

Problem

The file-naming audit check added for #3141 reports three of the hub's own files as breaking CODESTYLE.md "Script and Utility File Names", since a .py stem is lowercase snake_case:

  • host-setup/agent-safety/claude/gh-write-guard.py
  • host-setup/agent-safety/claude/stray-process-sweep.py
  • host-setup/agent-safety/claude/tool-containment.py

The "Installed commands" bullet does not cover them as they stand either, since an installed command carries no extension unless the platform needs one to run it. Either reading puts each of these names out of line with the rule.

Work

Rename them, along with every reference, the installer, the tests, and the settings each hook is registered in, to one of:

  • a snake_case .py name, such as gh_write_guard.py, run by its path
  • an installed-command name, lowercase-hyphenated with no extension, where the Claude Code hook slot counts as a system slot

The tree is host-setup/agent-safety/, which is worked only in an attended session, so the unattended loop does not take this issue.

Activity

  1. added
    enhancement
    pre-existing
    on Oct 20, 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

    enhancementpre-existing

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions