TUI hosts sessions: new-session form, named worktrees, resume, faster permissions

- Use the terminal's own colors and background; the key bar and the Needs-you
  panel wrap, fixed-width panels shrink on narrow terminals.
- Sessions run on threads of the TUI (tui/host.rs), capped by the profile's
  `workers`; quitting asks for `yes` and suspends them. New `suspend` command
  keeps the state so a session can be resumed.
- `N` opens a new-session form: machine, name, --after, a named branch or
  worktree (place.rs; never deleted by orch), and a "keep for a PR" option.
- `u` resumes suspended sessions and ones whose process died.
- `A` allows identical permission requests across sessions, `P` saves an allow
  rule to the profile with toml_edit (comments kept).
- Fix clippy lint in report.rs so tests/all.sh passes; add GLOSSARY.md.

Includes the already staged `orch init` work (init.rs, example profile).

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
johannesandClaude Sonnet 5.5 committed 2026-11-14 18:04:41 +01:00
1 parent 5a80bc9fe1
commit cfb735cdb3
22 files changed
+1623 -115

No files matched your search

+29
View File
@@ -0,0 +1,29 @@
# orch
Runs many hx coding agents in parallel on one repository, each in its own git worktree, and gives one human a single place to steer them.
## Language
**Session**:
One agent run through a machine, on one branch in one worktree. Hosted by the TUI, or by a separate `orch session` process.
_Avoid_: Job, run (a "run" is the older single-task `orch run`)
**Machine**:
A TOML definition of the states a session passes through and the steps in each.
_Avoid_: Workflow, pipeline
**Need**:
A point where a session waits on the human: a permission request, a review, a question, or an escalation.
_Avoid_: Prompt, interrupt (an interrupt is something the human sends)
**Named worktree**:
A worktree or branch the human picks for a session, such as a ticket branch, instead of the default `hx/sN-slug`. orch never deletes one it did not create.
_Avoid_: Custom branch, existing worktree
**Host**:
The process whose threads run a session. A session has one host; other processes can only steer it through the database.
_Avoid_: Daemon, worker (a worker is a slot in `orch pull`)
**Allow rule**:
An entry in a profile's `allow` list that lets the agent use a tool without asking.
_Avoid_: Permission, whitelist