instinct-cli 0.3.9

Shared local memory for coding agents. Save a fix once and find it again in a new session or another connected tool.
# Session-bound task continuation

`instinct continue-tasks --session SESSION_ID --tasks-dir ABS_DIRECTORY` is an explicit opt-in Stop-hook adapter. It reads a hook event from stdin and only the task directory selected by the owner. It does not discover other sessions, read transcripts, change tasks, execute task content, or open a lesson bank.

For a matching session's non-recursive Stop event, unfinished tasks (`pending` or `in_progress`) are actionable when every `blockedBy` dependency is completed/deleted and no nonempty `metadata.continuation_blocked_reason` is present. In-progress tasks come first, then numeric task ID. A blocked dependency or absent dependency keeps its dependent task blocked. Empty/completed lists are silent.

An actionable list emits `decision: block` and a short instruction to read the next task and perform its next authorized step. Only IDs and counts are printed; subjects, descriptions and blockers are not injected. A status summary or handoff does not mark a task complete. Explicit blockers must describe actual external dependencies; they are not an excuse to abandon executable work.

## Hook configuration

After verifying the binary on disposable fixtures, add a command hook under `Stop` with an **absolute binary path**, the exact current session ID, and the task directory for that session. Back up the settings file and preserve all existing entries. This adapter does not install itself or change default plugin behavior.

The native task directory format depends on the harness version. Pass its exact path rather than assuming it is the full session UUID; some harnesses use `session-<short-id>`. Session ID is compared exactly before any directory access. This command is not a permission boundary for malicious local writers: use an owner-controlled task directory.

## Limits and safety

- At most 64 KiB of hook input; at most 1,024 directory entries and 4 MiB of task data, with each task file at most 64 KiB.
- Reject symlink task files and a symlink task directory; parent paths must be owner-controlled. Portable path checks do not protect against a hostile concurrent replacement.
- Malformed, unreadable or changing task state emits a diagnostic, not an invented continuation decision. Two scans compare selected task IDs; they are not an atomic filesystem snapshot.
- `stop_hook_active: true` is silent to avoid a self-sustaining loop. This is one corrective continuation per normal Stop event, **not an autonomous forever scheduler**.
- The user can interrupt or pause. The reminder explicitly grants no permissions and cannot override approval gates, a user stop request, or security restrictions.
- No task completion is inferred from text. Only the authoritative task status changes completion.

Pipe-test evidence proves the command's behavior, not that a live harness has reloaded settings. Actual hook dispatch must be observed separately. Removing the one added hook entry rolls back the integration without modifying other hooks or task history.