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 copilot-cli

Or enable during wt init when prompted.

What gets written

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

EventAction
sessionStartPre-loads project knowledge into context
userPromptSubmittedSearches workthin with your prompt
mainAgentStopReminds the AI to call create-knowledge
sessionEndSame reminder at session end

Manual

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

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

See the GitHub Copilot hooks documentation for more details.

VS Code Hooks

Automatic workthin hooks for VS Code Copilot Chat — search on SessionStart and UserPromptSubmit, capture on Stop.

OpenAI Codex CLI Hooks

Automatic workthin hooks for OpenAI Codex CLI — search on SessionStart and UserPromptSubmit, capture on Stop.

On this page

AutoWhat gets writtenManual