- Settings → Claude: Peppa runs 'claude setup-token' in tmux, shows the
claude.com sign-in link, the user pastes the code into the form; the
1-year token is stored encrypted on the user (users.claude_token_enc)
- Claude sessions of the owner's projects get CLAUDE_CODE_OAUTH_TOKEN;
projects without an owner token keep using the machine login
- disconnect / reconnect; setup times out after 10 min and its tmux
session (and scrollback with the token) is killed right after saving
- mock-claude setup-token; 2 new tests (56 e2e total, green)
- verified on prod: the button yields the real claude.com authorize URL
- OpenSpec: pep-13 archived into spec agent-credentials
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- web board (Backlog / In progress / Review / Done) with drag-and-drop and
buttons; moveTask starts an agent on In progress, stops on Backlog/Done
- routine proposals go straight to apply; request_approval/ask_pm only for
architectural stoppers (RULES.md, MCP hints, template pushed to Gitea)
- Stop hook keeps the agent going (decision: block, max 2 in a row,
sessions.auto_nudges reset by a human answer) instead of pinging the PM
- review: ready-for-review message with Accept (acceptTask → done, session
stopped) in Telegram and web; a text reply goes back to the agent
- mock-claude honours Stop-hook block; 6 new e2e tests (48 total, green)
- OpenSpec: pep-7 archived (task-autonomy, web-workspace board)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- bot: own Bot API client, long polling with persisted offset, updates
claimed before acting (no replay after restart), outbox with retries
(429 retry_after, 5xx), /start pairing code (hashed, single use, 10 min),
only the paired chat/user is served
- PM questions rendered per kind: approve button / reply to reject,
option buttons, allow/always/deny, alerts with continue or resume/stop;
messages are closed with who answered what, incl. terminal answers
- stopping/resuming a session expires its open questions
- CLI: peppa telegram pair|status|unpair; launchd agent for the bot
- testkit: mock-telegram + 11 bot journeys (32 e2e tests, all green)
- fix: keep the tmux server alive when empty (exit-empty off) — a new
session could die with a server shutting down after the last kill
- fix: test env must load before runner modules (no leaks to real tmux)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- runner: provider abstraction (claude | codex); per-run launch.sh keeps
long argv out of tmux; Codex via notify callback + -c config for rules
and the peppa MCP server; session env carries DATABASE_URL/PEPPA_HOME
- testkit: mock-claude / mock-codex driven by scenarios — real hooks,
notify, MCP calls, raw-mode TUI input with bracketed paste, permission
dialog, usage limits, hangs, crashes, /clear
- 21 CJM tests on an isolated DB, tmux server and state dir (all green)
- fix: watchdog crash/stall alerts showed blank lines instead of the tail
- bins load .env without overriding the caller's env; tmux socket option
- AGENTS.md (was CLAUDE.md) and shared RULES.md: mock-first rule with a
mock prefix for anything blocked on external dependencies
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- peppa-bot account: repos peppa-bot/peppa and peppa-bot/template
- git-credential-peppa: per-repo credential helper with the bot token
- template split: RULES.md (shared, stays in Gitea) + AGENTS.md (project)
- runner fetches RULES.md from Gitea on each launch (cached fallback) and
passes it via --append-system-prompt-file; MCP get_rules for manual runs
- bootstrap-project.sh clones the template from Gitea
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- 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>
- 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>