Documentation
¶
Overview ¶
Package check_task_completion implements the ctx system check-task-completion subcommand.
It counts Edit/Write tool calls and periodically nudges the agent to check whether any tasks should be marked done in TASKS.md.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Cmd ¶
Cmd returns the "ctx system check-task-completion" subcommand.
Returns:
- *cobra.Command: Configured check-task-completion subcommand
func Run ¶
Run executes the check-task-completion hook logic.
Tracks a per-session prompt counter and emits a task completion nudge when the counter reaches the configured interval. The counter resets after each nudge. Disabled when the nudge interval is zero or negative.
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.