Skip to content

Share the project file and ~/.agent/env reader in agent-client - #145

Merged
lydakis merged 11 commits into
mainfrom
claude/project-thread-45hlbm-client
Oct 26, 2026
Merged

lydakis merged 11 commits into
mainfrom
claude/project-thread-45hlbm-client

Conversation

@lydakis

@lydakis lydakis commented Oct 26, 2026 •

Copy link
Copy Markdown
Owner

Second of five stacked PRs for Sonny. It is based on #144, so merge that first.

What

  • Code moves out of the app. The app's project-file helpers (project.rs) and its ~/.agent/env reader (env_file.rs) move from app/src-tauri into agent-client. A terminal client can then compose a folder's lead the same way the app does. The app now calls the client's copies, and its behavior doesn't change.
  • Finding a folder's project stops at the repository's top. The home folder's project now covers only home itself, so it never claims a repo under home.
  • The coordinator lists only its own project's agents when it names or finds a task (client/src/policy.rs, app/agents/coordinator.md).

Tests

cargo test --workspace: all pass, except the ssh test that fails on main in a container without ssh. The moved tests run under agent-client now.

No visible change, so no screenshots.

Stack

  1. Add configure: change a bot's model, effort, instructions and gate #144 configure
  2. This PR: shared project file and env reader
  3. Sonny
  4. Sonny pictures
  5. Sonny Homebrew formula

Protocol 14. configure replaces what a bot's client chose when it made
it: its instructions, a model of the same family with an optional
effort, and a root bot's gate (approve: [] alone removes it; a bot
another bot made keeps the gates it descends from). It is refused
while a turn runs or waits parked, answers which fields changed, and
tells followers with a live configured event. ready.providers now
names the efforts each binding's family takes, and the client keeps
it.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_01LutDnsMA6fqW8Qwj2Wcoks
The app's project file helpers and its ~/.agent/env reader move to
agent-client, so a terminal client composes a lead the app's way.
Finding a folder's project now stops at its repository's top, and the
home folder's project applies to home itself only, so a repo under
home is never claimed by it. The coordinator lists only its own
project's agents when it names or finds a task.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_01LutDnsMA6fqW8Qwj2Wcoks
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 26, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review 🔄 Running since 2026-10-26T02:32:04.493115Z 5a6cc0e New commits
🔒 Security Review ✅ Completed 2026-10-26T02:34:55.226690Z 5a6cc0e New commits
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

Clearing the thinking binding makes the next request strip thinking
written under the old instructions. The docs now say a client-made
fork's gates can be replaced too, since that client could make an
ungated bot anyway.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_01LutDnsMA6fqW8Qwj2Wcoks
…figure

A turn that ran before configure moved the bot keeps the model and effort
it ran at, in its record and as the cache the next turn takes as held. A
keyed creation keeps a fingerprint of the instructions it was sent with,
so a resend still matches after they are replaced. Schema 49.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_01LutDnsMA6fqW8Qwj2Wcoks
@lydakis
lydakis changed the base branch from claude/project-thread-45hlbm-configure to main October 26, 2026 02:31
@lydakis
lydakis merged commit 56e8ebc into main Oct 26, 2026
lydakis added a commit that referenced this pull request Oct 26, 2026
…155)

#145 changed the line to name the task with ls --name; the release's node test still looked for the older wording and failed v0.3.0's build.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_01LutDnsMA6fqW8Qwj2Wcoks
@lydakis lydakis mentioned this pull request Oct 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants