Skip to content

Intelligent workspace cleanup to prevent over-committing temporary files #11

@carmandale

Description

@carmandale

Problem: Claude Code hooks currently enforce clean workspace by committing everything, including temporary files, logs, and potentially sensitive data. This leads to messy commits and poor git hygiene.

Current Behavior:

  • Hook requires clean workspace before new work
  • Claude commits all changes indiscriminately to satisfy hook
  • Results in commits with .log files, temporary files, node_modules, etc.
  • User feedback: "feels messy and over-committing"

Needed Solution:

  • Intelligent analysis of workspace changes
  • Distinguish valuable changes from temporary files
  • Smart cleanup suggestions vs blind committing
  • Protection against committing secrets/sensitive data
  • Maintain workflow enforcement while improving git hygiene

Impact: Critical for maintaining professional development standards and preventing security issues from accidental commits of sensitive data.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions