Skip to content

enhancement(core): reactive hook events for environment changes — CwdChanged, FileChanged #2487

@bug-ops

Description

@bug-ops

Source

Competitive parity: Claude Code v2.1.83, Goose v1.27.x — both expose environment-change hook events.

Gap

No CwdChanged or FileChanged events in Zeph's hook/event system. Claude Code exposes these as lifecycle hooks; Goose has similar reactive triggers. Enables patterns like auto-reloading code index context when a file the agent referenced is modified externally.

Zeph applicability

  • zeph-index has file watching (watch = true config) but does not emit hook events on change
  • Hooks system (if present) could dispatch file_changed events to skills or tools
  • Implementation sketch: watch via notify crate, emit HookEvent::FileChanged { path } and HookEvent::CwdChanged { new_cwd }; route through existing hook dispatcher

Metadata

Metadata

Assignees

Labels

P3Research — medium-high complexityenhancementNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions