Repository navigation
feat: let opencode sub-agents delegate privately - #27
Merged
Merged
Conversation
send_to_session takes private and passes --private to lich send, which keeps the answer to its ticket: no note at the session's prompt, and only wait_for_answer with that ticket returns it. Needs a lich with lich send --private (lichdotdev/lich#639).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
lich#639 added private errands: a sub-agent reaches lich as its session, so an ordinary send has its answer drained by any no-ticket collect and announced at the session's prompt.
privatekeeps the answer to its ticket.The MCP providers got
privatefrom lich's own schema. opencode's tools are this plugin's, sosend_to_sessiongains it here:--privatetolich send, and only for a literaltrue, the same ruleforcefollows.open_sessionis left alone: it takes noprompthere, andlich open --privateneeds one.Do not release this before a lich release that contains #639. An older
lich sendrejects the unknown flag, so only private sends would fail.Once both are out, lich's ceilings bullet and README row for opencode can drop "through
lich send --private".Test plan
node --test tests/*.test.mjs: 199 pass--privateis sent only forprivate: true, and is absent forundefined,false,'true'and1