Upgrade SessionStart hook for project-aware context injection #13

Closed
opened 2026-02-24 18:42:51 +00:00 by forgejo_admin · 0 comments
Contributor

Summary

SessionStart currently injects a generic SOP list. It should detect the current project from the cwd's git remote, fetch the project page, and inject project-specific context (active plan, relevant SOPs, open bugs).

Changes

  • hooks/session-start-context.sh: Add project detection and project page fetch
    • Match git remote URL against pal-e-docs projects
    • Fetch project page note if matched
    • Inject: project name, active plan, relevant SOPs, open bugs/TODOs
    • Fall back to generic SOP injection if no match
    • Include template reference line

Part of

Plan: plan-2026-02-24-enforcement-unification (Phase 3)

## Summary SessionStart currently injects a generic SOP list. It should detect the current project from the cwd's git remote, fetch the project page, and inject project-specific context (active plan, relevant SOPs, open bugs). ## Changes - `hooks/session-start-context.sh`: Add project detection and project page fetch - Match git remote URL against pal-e-docs projects - Fetch project page note if matched - Inject: project name, active plan, relevant SOPs, open bugs/TODOs - Fall back to generic SOP injection if no match - Include template reference line ## Part of Plan: `plan-2026-02-24-enforcement-unification` (Phase 3)
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
ldraney/claude-custom#13
No description provided.