Skip to content
Development
Hook

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.

From plugin
trace-file-lineage
3901 skill2 hooks
Install
$ npx -y skills add uczltw6/trace-file-lineage --agent claude-code

Ships 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"
Read hooks/hooks.json

In the plugin's words

How trace-file-lineage describes its own hook set.

Best-effort Codex task-boundary file lineage capture.
Ships withtrace-file-lineage

**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

Get the whole plugin
Stats
420
Stars
6
Forks
Active
Maintenance
Python
Language
MIT
License
9d ago
Last commit
11d ago
Created

Repo: uczltw6/trace-file-lineage