Submitting Feedback from Agent Sessions

AI agents can submit feedback about their work session back to Ticket House. This is useful for:

  • Reporting what was accomplished during a session
  • Flagging issues or blockers encountered
  • Providing status updates on ticket progress

Feedback is submitted via the ticket_comment MCP tool, which adds a comment to the ticket's thread. Agents can also update the ticket's status using ticket_update.

Shell Hooks

Ticket House supports shell hooks that run at specific points in the worktree lifecycle. Configure hooks in your .ticket-house.json:

{
  "hooks": {
    "post-worktree-create": "scripts/hooks/post-worktree-create",
    "pre-worktree-remove": "scripts/hooks/pre-worktree-remove",
    "post-track-activate": "scripts/hooks/on-activate",
    "pre-track-deactivate": "scripts/hooks/on-deactivate"
  }
}

Available Hooks

HookWhenArguments
post-worktree-create After a worktree is created $1 worktree path, $2 ticket ID, $3 branch name
pre-worktree-remove Before a worktree is deleted $1 worktree path, $2 ticket ID, $3 branch name
post-track-activate After a track (worktree) becomes active $1 worktree path, $2 ticket ID, $3 branch name
pre-track-deactivate Before a track is deactivated $1 worktree path, $2 ticket ID, $3 branch name

The REPO_ROOT environment variable is set for all hooks. A non-zero exit code from pre-worktree-remove aborts the deletion; other hooks only produce warnings on failure.