Skip to content

feat: open subagent workers with lich open --subagent - #33

Merged
omartelo merged 1 commit into
mainfrom
feat/subagent-journey
Oct 5, 2026
Merged

omartelo merged 1 commit into
mainfrom
feat/subagent-journey

Conversation

@omartelo

@omartelo omartelo commented Oct 5, 2026

Copy link
Copy Markdown
Collaborator

Client side of omartelo/lich feat/subagent-journey: the agent-cards mod always opens the worker with lich open --subagent, makes a subagent/… worktree only for isolation: "worktree" (otherwise the worker shares this checkout, like a native subagent), and tells the model the full report arrives on its own as a [lich] note. A lich without --subagent refuses the flag and the subagent runs natively with a toast.

Tests: node 268/268, claude plugin test . 17/17, validate ok. Proven live end to end with the lich branch (six checks, see the lich PR).

… checkout unless it asks for a worktree

The mod now always passes `lich open --subagent`, so lich types the worker's
full report at the caller's prompt and the model no longer has to collect it.
Like Claude Code's native agent, the worker shares the caller's checkout; only
`isolation: "worktree"` gets `--worktree subagent/<slug>-<id>` and `--base`,
and only then is git asked for the current branch. A worker in the shared
checkout is recognised by LICH_SUBAGENT_CARDS=off, which lich sets on every
`--subagent` session; the subagent/ branch rule still covers isolated calls.
@omartelo
omartelo merged commit 97bf1a8 into main Oct 5, 2026
3 checks passed
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.

1 participant