Available in
Marketplaces, most starred first
Tags
Add to README
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
By onlooker-communityv0.10.3MITIn 1 marketplace
Per-change provenance — answers "why does this line exist?". Records session/turn metadata plus a secret-redacted, size-capped snippet for every Edit/Write/MultiEdit, and for each file a Bash command changes, at PostToolUse into a per-project change ledger, then traces a file or line back to the change that introduced it by joining records to the transcripts historian preserves. Emits lineage.* events for audit. Builds on the Onlooker ecosystem plugin.
Claude loads one when your task matches it, or you run it by name.
2 cautions to review before installing
A hook runs when Claude uses the Bash tool
A hook runs when Claude writes or edits files
Static checks of hooks, mods, MCP servers and commands. Not a security audit.
1 marketplace, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Per-change provenance for the Onlooker ecosystem — "why does this line exist?"
Git records what changed and scribe records a session's intent, but nothing
connects a specific piece of code to the prompt, agent, and session that
produced it. Lineage records provenance for every Edit/Write/MultiEdit at
PostToolUse, then answers /lineage <file>:<line> by joining its change records
to the transcripts historian preserves.
Lineage is a sibling plugin to ecosystem and assumes the Onlooker
observability substrate (~/.onlooker/) is present.
| Hook | Matcher | What Lineage does |
|---|---|---|
PostToolUse | Edit, Write, MultiEdit, Bash | Derives the project key from cwd, reads the current turn from the session tracker, extracts the change's added content, redacts secrets + caps size, and appends a record to the per-project change ledger — one for an edit-tool call, one per changed file for a Bash call. Emits a lean lineage.change.recorded (metadata + digest, never the content). Skips disabled sessions, ignored paths, and files outside the repo. |
The /lineage skill is the query side: it reads the ledger and resolves each
change's originating prompt at query time. It makes no LLM call.
Lineage records the added content of each change (redacted, capped at
max_snippet_chars). To answer "why does line N exist?", it reads the current
line's text and finds the most recent change whose added content contains it.
This is honest about what it is: what change introduced this content, and why —
not a git-blame-exact line mapping. If later edits move or rewrite the line, the
match is the most recent change that introduced the matching text.
Lineage watches Bash as well as the edit tools, so a change made with a
heredoc, sed -i, or a short script still lands in the ledger. It gets there a
different way: git is asked what changed, rather than the tool being asked what
it did. Two fields say what that record is worth.
provenance_kind separates an authored edit from mechanical churn — a
formatter, a package manager, a branch switch. Classification reads the command
string, and anything unrecognized is recorded as authored. An
unclassified writer therefore shows up as noise rather than disappearing, which
is the failure this exists to prevent.
content_scope is the honest caveat. When the file was clean beforehand,
delta means the captured content is exactly this change. When it was already
modified, cumulative means the content also includes earlier uncommitted
work, because git diffs against the last commit and not against the last edit.
cumulative is the common case, since agents usually work with a dirty
tree. The content-anchored lookup tolerates it — a line is attributed to a
slightly later change rather than to nothing — but a cumulative record is a
weaker claim than a delta one.
/lineage prints the scope on every answer, so the caveat travels with the
claim instead of staying in the ledger. Records the tool itself reported —
Edit, Write, MultiEdit — carry no content_scope and are shown as
exact: the tool said what it changed. A Bash record with no scope predates
the field and is shown as unknown.
authorship is the third. Git says what changed, not who changed it, and
the shell path only learns about a change when some session next runs a
command. A change made with no lineage hook behind it — an editor save, a
checkout, a script outside Claude, a session still on an older plugin — would
otherwise be credited to whichever session looked first. So when a changed
file's mtime is older than the start of the command that noticed it, that
command cannot have written it, and the record is marked authorship: "unknown" with authorship_reason: "predates_call". It keeps the observing
session in observed_by_session_id and drops session_id, turn and
transcript_path, so /lineage names no author and resolves no prompt for it.
The command's start comes from the duration_ms Claude Code reports, minus
attribution_slack_seconds. A payload without duration_ms is attributed the
old way. The check cannot see a change made by something else during a long
command, and a command that preserves mtimes (cp -p, tar, rsync -a) reads
as predates_call. Both are deliberate trade-offs: the first is the residual
case, the second errs toward a missing author rather than a false one.
Lineage records only session_id + turn (+ a transcript_path pointer) on the
hot path — never the prompt. The prompt is resolved lazily at query time:
Built from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.
npx claudepluginhub onlooker-community/ecosystem --plugin lineagePlugins from other owners that cover similar ground