plugins/claude/code/scripts
Snider 930fd1a132
feat(session-history): Enhanced context preservation with session history (#79)
This commit introduces a new session history feature to improve context preservation between sessions. The previous mechanism, which relied on a simple scratchpad file, has been replaced with a more robust system that stores structured session data in `~/.claude/sessions/history.json`.

Key features of this new system include:
- Structured session history: Session data, including the module, branch, and key actions, is stored in a JSON file.
- Auto-capture of file modifications: The `session-history-capture.sh` script, triggered before each tool use, captures file modifications from `git status` and records them as key actions.
- Context restoration on session start: The `session-history-restore.sh` script, triggered at the start of a new session, displays a summary of the most recent session's context.
- Pruning of old sessions: Sessions older than seven days are automatically pruned from the history.

Limitation:
This implementation does not include the auto-extraction of pending tasks and decisions from the conversation history, as was originally requested. An investigation revealed that it is not currently possible for a hook script to access the conversation history, which is a prerequisite for this feature. The groundwork for this functionality has been laid in the JSON structure, and it can be implemented in the future if the platform's capabilities are extended to allow access to the conversation history.
2026-02-02 07:27:13 +00:00
..
auto-approve.sh refactor: restructure as plugin monorepo 2026-02-01 19:44:26 +00:00
block-docs.sh refactor: restructure as plugin monorepo 2026-02-01 19:44:26 +00:00
capture-context.sh refactor: restructure as plugin monorepo 2026-02-01 19:44:26 +00:00
check-coverage.sh feat: Add test coverage tracking and reporting (#89) 2026-02-02 07:22:54 +00:00
check-debug.sh refactor: restructure as plugin monorepo 2026-02-01 19:44:26 +00:00
core-status.sh feat(code): add /core:status multi-repo status command (#78) 2026-02-02 07:26:48 +00:00
deps.py feat(/core:deps): show module dependencies (#82) 2026-02-02 07:19:58 +00:00
detect-module.sh feat(plugin): Implement workspace awareness to detect the current module (#75) 2026-02-02 07:17:36 +00:00
detect-secrets.sh feat(code): add secret detection hook (#67) 2026-02-02 07:13:28 +00:00
doc-api.sh feat: /core:doc generate documentation (#92) 2026-02-02 07:23:51 +00:00
doc-changelog.sh feat: /core:doc generate documentation (#92) 2026-02-02 07:23:51 +00:00
doc-class-parser.php feat: /core:doc generate documentation (#92) 2026-02-02 07:23:51 +00:00
doc-class.sh feat: /core:doc generate documentation (#92) 2026-02-02 07:23:51 +00:00
doc-module.sh feat: /core:doc generate documentation (#92) 2026-02-02 07:23:51 +00:00
doc.sh feat: /core:doc generate documentation (#92) 2026-02-02 07:23:51 +00:00
ensure-commit.sh refactor: restructure as plugin monorepo 2026-02-01 19:44:26 +00:00
env.sh feat: Add /core:env for environment management (#70) 2026-02-02 07:14:37 +00:00
extract-actionables.sh refactor: restructure as plugin monorepo 2026-02-01 19:44:26 +00:00
go-format.sh refactor: restructure as plugin monorepo 2026-02-01 19:44:26 +00:00
log.sh feat(core): add /core:log command for smart log viewing (#77) 2026-02-02 07:17:59 +00:00
migrate.sh feat(code): add /core:migrate Laravel migration helpers (#88) 2026-02-02 07:22:17 +00:00
perf.sh feat(code): add /core:perf performance profiling helpers (#90) 2026-02-02 07:23:05 +00:00
php-format.sh refactor: restructure as plugin monorepo 2026-02-01 19:44:26 +00:00
post-commit-check.sh refactor: restructure as plugin monorepo 2026-02-01 19:44:26 +00:00
pr-created.sh refactor: restructure as plugin monorepo 2026-02-01 19:44:26 +00:00
qa-filter.sh refactor: restructure as plugin monorepo 2026-02-01 19:44:26 +00:00
qa-verify.sh feat(plugin): Implement workspace awareness to detect the current module (#75) 2026-02-02 07:17:36 +00:00
refactor.php feat: Add initial structure for /core:refactor command (#91) 2026-02-02 07:23:32 +00:00
release.sh feat(code): add /core:release command (#86) 2026-02-02 07:21:12 +00:00
session-history-capture.sh feat(session-history): Enhanced context preservation with session history (#79) 2026-02-02 07:27:13 +00:00
session-history-restore.sh feat(session-history): Enhanced context preservation with session history (#79) 2026-02-02 07:27:13 +00:00
session-history.sh feat(code): add session history management script (#93) 2026-02-02 07:24:03 +00:00
smart-commit.sh feat(code): implement /core:commit smart commit command (#73) 2026-02-02 07:16:29 +00:00
status.sh feat(core): Add /core:status command for multi-repo status (#72) 2026-02-02 07:15:08 +00:00
suggest-compact.sh refactor: restructure as plugin monorepo 2026-02-01 19:44:26 +00:00
test_deps.py feat(/core:deps): show module dependencies (#82) 2026-02-02 07:19:58 +00:00
todo.sh feat(/core): Add /core:todo command to track TODOs (#95) 2026-02-02 07:24:49 +00:00