Hooks
What trace-file-lineage runs automatically, and when. A hook is a command Claude Code fires at a fixed moment, without you asking for it.
$ npx -y skills add uczltw6/trace-file-lineage --agent claude-codeShips with trace-file-lineage. Installing the plugin gets these hooks.
What fires, and when
UserPromptSubmit
Fires before Claude sees each prompt you send. A plugin can use it to inject context, so the same instruction reaches the model every turn instead of only at session start.
python3 "$PLUGIN_ROOT/platforms/codex/hook.py"
Stop
python3 "$PLUGIN_ROOT/platforms/codex/hook.py"
In the plugin's words
How trace-file-lineage describes its own hook set.
Best-effort Codex task-boundary file lineage capture.
**Trace where files came from, keep AI-agent output in the right place, and see what each task changed — locally, with evidence, and with honest uncertainty.** Built for Python and notebook work: research code, data analysis, and the piles of files AI coding
Repo: uczltw6/trace-file-lineage

