Skip to content

Create monitor-session.sh script #9

Description

@yossiovadia

Task

Create the background monitoring script that watches a tmux session for approval prompts.

Implementation

  • Monitor tmux pane output every 2 seconds
  • Detect approval prompt patterns (Allow this tool call, y/n/always, etc.)
  • Write alert notifications to /tmp/claude-monitor-{session}.alert
  • Support reminder system (alert again every 5 minutes)
  • Clean exit when session ends

Acceptance Criteria

  • Script runs in background without issues
  • Detects approval prompts correctly
  • Creates alert files with proper JSON format
  • Sends reminders at configured intervals
  • Cleans up on session end

Related

Part of #8

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions