Git diff
Collapsible per-file diffs: unstaged, staged, last commit, history, and the files the agent touched this turn.
- web · html
- by alekdob
- v0.1.0
- 5 x 6 cells
- git
about
One collapsible entry per changed file with +n/-n counts, hunks in a horizontally scrolling pre. Modes: Unstaged, Staged, Last commit, History.
This turn shows the files the pane's agent touched since its status last flipped to working, by comparing mtimes with the flip time. Refreshes every 4 seconds while the agent runs.
Uses shell.run for git and the ctx / onContext hooks for the agent status: nothing else.
module.json
{
"id": "gitdiff",
"name": "Git diff",
"kind": "web",
"entry": "index.html",
"w": 5,
"h": 6,
"description": "Collapsible per-file diffs: unstaged, staged, last commit, history, and the files the agent touched this turn.",
"author": "alekdob",
"tags": [
"git"
],
"version": "0.1.0",
"glyph": [
"..#..",
"#####",
"..#..",
".....",
"#####"
]
}