workthin
workthin
PricingBlogChangelogOverviewQuick StartConcepts

SetupTools Reference
HooksClaude Code HooksCursor HooksVS Code HooksGitHub Copilot HooksOpenAI Codex CLI HooksGemini CLI Hooks
Skills & Commands

Docs for LLMs

llms.txtllms-full.txt
MCP ServerHooks

Auto

wt hooks vscode

Or enable during wt init when prompted.

What gets written

wt hooks creates ~/.copilot/hooks/workthin.json (user-level, applies to all projects) with the following hooks:

EventAction
SessionStartPre-loads project knowledge into context
UserPromptSubmitSearches workthin with your prompt
StopReminds the AI to call create-knowledge

Note: VS Code does not support a SessionEnd event. Use Stop to capture knowledge at the end of each agent turn.

Manual

Create ~/.copilot/hooks/workthin.json:

{
  "hooks": [
    {
      "event": "SessionStart",
      "command": "wt search \"project recent solutions\" --hook 2>/dev/null || true"
    },
    {
      "event": "UserPromptSubmit",
      "command": "wt search \"$VSCODE_USER_PROMPT\" --hook 2>/dev/null || true"
    },
    {
      "event": "Stop",
      "command": "printf '{\"systemMessage\": \"Session complete. If you solved a problem, call create-knowledge.\"}'"
    }
  ]
}

See the VS Code hooks documentation for more details.

Cursor Hooks

Automatic workthin hooks for Cursor — search on sessionStart and beforeSubmitPrompt, capture on stop and sessionEnd.

GitHub Copilot Hooks

Automatic workthin hooks for GitHub Copilot CLI — search on sessionStart and userPromptSubmitted, capture on mainAgentStop and sessionEnd.

On this page

AutoWhat gets writtenManual