Ambient capture
Let context accumulate as you work, without running anything by hand. A post-commit git hook captures each commit's repo/branch/commit context straight into your context graph, so it fills in from real activity.
Install the hook
stn hooks install # add a post-commit hook that runs `stn glob`
stn hooks uninstall # remove the stndp hook
The installer writes .git/hooks/post-commit in the current repository. It refuses
to overwrite a pre-existing post-commit hook it didn't write, and re-running
hooks install is safe.
What it captures
The hook runs stn glob after each commit —
the same one-shot capture your agent's SessionStart hook performs. It
records this session's git context (branch, commit, recent commits, and your GitHub activity)
into the graph and is idempotent: re-capturing the same commit is a no-op, so it
only ever writes new context. Unlike checkpoint it carries no human focus and never
surfaces in stn resume.
You can also run it by hand any time, or wire it to a different trigger (a login shell, an editor hook):
stn glob # capture this session's context once (idempotent)
stn glob --no-github # skip the GitHub activity lookup (no network)
stn glob --force # re-capture even if nothing changed