Skip to content

Studio: starting plotkeeper in a git repository registers it #756

Done

Description

@danielrispler

Parent

#753

What to build

cd repo && npx plotkeeper shows that repository, with no agent run first. A second plotkeeper started while one runs registers its folder through the running server and opens the page on that repository. #753, "Projects" (start-up registration).

Acceptance criteria

  • The first instance resolves its start folder's git root with the lookup sessions use (studio_understanding::worktree_root), maps it through project_of, and adds that project through a new Projects method that takes one folder and no session; both lookups are exposed from their crates as needed.
  • A second instance (Instance::Second) sends its folder to the running server over the local API, authenticated with the server's existing token, then opens the page on that repository's map, not the project shown last.
  • A folder with no git root registers nothing; a <main>/.claude/worktrees/<task> folder registers <main>; any other worktree is its own project, as for sessions.
  • A table test over temporary folders covers the in-process and API paths: a git root, a task worktree, a non-git folder, a second instance's folder reaching the list only with the token, and the page it opens.
  • docs/studio/behaviour/sessions.md and plotkeeper.md describe it; system-map.json follows any change of how parts connect.

Reading

Touches

  • Files: server/src/projects.rs, server/src/bin/plotkeeper.rs, server/src/api.rs, server/src/web.rs, core/src/session.rs, core/src/studio/roots.rs, docs/studio/behaviour/sessions.md, docs/studio/behaviour/plotkeeper.md, system-map.json
  • Session: auto mode
  • Route: strong · effort high — a new write to the persisted project list and a token-checked API call across a trust boundary

Activity

  1. added
    ready-for-agent
    on Nov 27, 2026
  2. danielrispler commented on Nov 28, 2026

    @danielrispler
    OwnerAuthor

    Resolved in PR #776 (squash e6034bf on main), spec #753. Built on the integration branch as 4f6ba77: starting plotkeeper in a git repository registers it (temporary folders skipped).

    Route outcome: strong·high claude/opus → pass | 24m

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    ready-for-agent

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions