Skip to content

Observer writes observations.jsonl relative to cwd instead of git root #10

Description

@marcoamtz

When a subagent changes the working directory (e.g., during file moves with cd), the observer agent creates .claude/homunculus/observations.jsonl relative to the current directory instead of the git root. This results in stray .claude/ directories nested inside source code folders.

Steps to reproduce:

Run a session that uses cd into a subdirectory (e.g., during a file reorganization)
The background observer creates .claude/homunculus/observations.jsonl in that subdirectory

Expected:

The observer should resolve the .claude/ path using git rev-parse --show-toplevel (or equivalent) to always write to the project root.

Version: 2.0.0-alpha (commit 59b6520)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions