# Gitvow Trace

> When a code region looks surprising or unfamiliar, find who wrote each line, agent or person, in which session and step, with the stated plan. Use for "what happened here", "who wrote this", or before deleting code whose purpose is unclear.

- Skill: `wirevow/gitvow-trace` (Agent Skill)
- Install (CLI): `npx skillmds@latest add wirevow/gitvow-trace`
- Raw SKILL.md: https://api.skillmd.com/api/skills/wirevow/gitvow-trace/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: AI & ML
- Author: wirevow (https://skillmd.com/u/wirevow)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/wirevow/gitvow-trace

---


# Who wrote these lines?

Run:

```sh
gitvow trace <path>:<start>-<end>     # a range
gitvow trace <path>                   # the whole file
```

Each line group shows `agent` with the session, step and the plan stated at the time, or `person` with the commit. Ranges are grouped by commit so a mixed region reads as a sequence of authorship.

How to use the answer:
- Lines by a person after an agent session are the human's decision; preserve their intent.
- An agent plan that does not mention the region is a signal the lines were incidental; check `gitvow why <path>` for the wider story before changing them.
- To see the exact file the agent produced at that step, list `gitvow snapshots --session <id>` and use `gitvow diff <id> <n>` or `gitvow restore <id> <n>`.

