Skip to content

Add coding agent hooks for Claude Code and Codex#221

Merged
sbertix merged 1 commit intomainfrom
sbertix/coding-agent-hooks
Apr 4, 2026
Merged

Add coding agent hooks for Claude Code and Codex#221
sbertix merged 1 commit intomainfrom
sbertix/coding-agent-hooks

Conversation

@sbertix
Copy link
Copy Markdown
Collaborator

@sbertix sbertix commented Apr 4, 2026

Summary

Port some of Supaterm's advanced coding agents' functionality.

  • Add Unix domain socket server (AgentHookSocketServer) for receiving busy state and notification messages from coding agents running inside Ghostty terminals.
  • Add settings UI ("Coding Agents" section) to install/uninstall hook configurations into ~/.claude/settings.json and ~/.codex/hooks.json.
  • Surface agent busy state in the tab bar and sidebar via shimmer/pulsing indicators.
  • Forward richer agent notifications through the hook system with deduplication against OSC 9 terminal notifications.

Test plan

  • AgentHookSocketServerTests — message parsing (busy, notification, malformed, edge cases)
  • AgentHookSettingsFileInstallerTests — install, uninstall, idempotency, legacy pruning, error handling
  • AgentHookCommandTests — command generation, ownership detection
  • AgentBusyStateTests — busy flag bubbling through surface → tab → worktree
  • SettingsFeatureAgentHookTests — TCA reducer state machine (check, install, uninstall, failure, loading guard)
  • CodexSettingsInstallerTests — enable hooks feature (success, failure, unavailable)
  • WorktreeTerminalManagerTests — socket server wiring, routing
  • SettingsFeatureTests.task wiring for all four hook checks
  • Build verification via make build-app

Introduce Unix domain socket server for receiving agent hook messages,
settings file installers for managing hook configuration, and UI for
toggling hook installation per agent. Includes busy state tracking on
terminal surfaces, notification forwarding, and deduplication logic.
@sbertix sbertix force-pushed the sbertix/coding-agent-hooks branch from 0b5598c to d84c895 Compare April 4, 2026 12:41
@sbertix sbertix merged commit 61356be into main Apr 4, 2026
1 check passed
@sbertix sbertix deleted the sbertix/coding-agent-hooks branch April 4, 2026 12:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant