The project currently has three moving parts:
claude_list_sessions.py scans local Claude profile directories:
~/.claude-p/sessions~/.claude-w/sessions~/.claude/sessionsFor each live session it resolves:
claude_send_msg.py does not write to /dev/pts/N directly.
Instead it uses the proven helper:
/home/xertrov/src/meta-agent/apps/ma_adapter_claude/priv/pty_injectThat helper:
pidfd_getfd()200 msclaude_read_history.py reads the target session’s JSONL transcript and extracts recent user and assistant messages.
This is the primary verification surface.