Commit Graph

3 Commits

Author SHA1 Message Date
Асель
5184fc214c Adopt Cowork harness lessons: blocking hooks, generations, resume
- hooks move from the project template to a per-run --settings file
- PermissionRequest / AskUserQuestion hooks wait for the PM's answer in the
  DB and return the decision to Claude; fall back to the terminal dialog
  after PEPPA_HOOK_WAIT_SEC (awaiting_hook prevents double delivery)
- sessions.generation + PEPPA_GENERATION: stale hooks are ignored;
  peppa session resume relaunches with claude --resume
- SessionEnd no longer marks the process done (/clear, /resume)
- StopFailure rate_limit -> rate_limited status
- MCP: agents cannot set done or approve their own proposal

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-12 19:34:07 +05:00
Асель
967f70ac09 Add runner: tmux sessions, Claude hook ingestion and watchdog
- startSession: trusts the workspace in ~/.claude.json, runs interactive
  claude in tmux with PEPPA_SESSION_ID, remain-on-exit for crash status
- answerAndDeliver: PM answers go into the terminal (permission menu keys,
  approval -> task status + instruction, free text via bracketed paste)
- peppa-hook: session-start/prompt/notification/stop/session-end update
  session status and raise PM questions; never fails the Claude session
- watchdog: detects dead panes, vanished sessions, stalls, usage limits;
  launchd agent under caffeinate (scripts/install-launchd.sh)
- CLI: peppa session start|list|send|attach|stop, peppa watchdog

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-12 19:28:07 +05:00
Асель
9824ce4c18 Add Peppa MCP server, core domain package and peppa CLI
- @peppa/core: projects, goals, tasks (atomic per-project numbering),
  PM questions, progress events, pg NOTIFY on peppa_events
- @peppa/mcp (peppa-mcp): get_task, list_tasks, list_goals, create_task,
  update_task, request_approval, ask_pm, report_progress
- @peppa/cli (peppa): project/goal/task/q commands
- questions/events now link to project and task; session is optional
- scripts/install-bins.sh; bootstrap-project.sh registers the project

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-12 19:18:35 +05:00