Skip to content

feat(simplify): track file hashes to prevent repeated simplification proposals#32

Merged
kostyay merged 2 commits into
mainfrom
feat/persist-simplification-hashes
Mar 8, 2026
Merged

feat(simplify): track file hashes to prevent repeated simplification proposals#32
kostyay merged 2 commits into
mainfrom
feat/persist-simplification-hashes

Conversation

@kostyay
Copy link
Copy Markdown
Owner

@kostyay kostyay commented Mar 8, 2026

  • Add SHA-256 hashing of file content to detect when files have actually changed since last simplification
  • Persist simplified file hashes to $PI_CODING_AGENT_DIR/simplify-hashes.json, keyed by project directory to avoid collisions across workspaces
  • Skip simplification proposals for files whose content matches their stored hash, eliminating redundant proposals after a simplify run completes
  • Replace hasProposedSimplify flag with pendingSimplifyFiles to properly distinguish between agent-initiated simplification turns and user-initiated ones
  • Update hash store after each simplification run completes, ensuring only genuinely modified files are proposed for future simplification
  • Update changelog and extension documentation to reflect the new hash-based deduplication behavior

@kostyay kostyay changed the title WIP feat(simplify): track file hashes to prevent repeated simplification proposals Mar 8, 2026
@kostyay kostyay merged commit b2bc567 into main Mar 8, 2026
@kostyay kostyay deleted the feat/persist-simplification-hashes branch March 8, 2026 20:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant