---
created: 2026-03-31T14:07:53.657Z
title: Log psyche wrapper output to file
area: psyche
files:
  - src/live/timed_pulse.rs
  - src/live/timed_pulse_wait.rs
---

## Problem

The psyche wrapper runs as a detached process executing `claude -p` sessions. Currently there's no persistent log of what the psyche process outputs — if something goes wrong or you want to review psyche behavior after the fact, there's no record. This makes debugging psyche issues difficult and limits observability into what the psyche is doing over its lifetime.

## Solution

Have the psyche wrapper capture all stdout/stderr from the `claude -p` child process and append it to a log file. Likely location: `~/.claude/owlery/<id>/psyche.log` or similar, co-located with the perch. Consider log rotation or size limits to prevent unbounded growth.
