Documentation
¶
Overview ¶
Package check_persistence implements the ctx system check-persistence subcommand.
It tracks prompts since the last .context/ file modification and nudges the agent to persist learnings, decisions, or task updates.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Cmd ¶
Cmd returns the "ctx system check-persistence" subcommand.
Returns:
- *cobra.Command: Configured check-persistence subcommand
func Run ¶
Run executes the check-persistence hook logic.
Tracks how many prompts have passed without any context file updates and emits a persistence nudge when the threshold is reached. State is stored per-session in the .context/state/ directory.
Parameters:
- cmd: Cobra command for output
- stdin: standard input for hook JSON
Returns:
- error: Always nil (hook errors are non-fatal)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.