Update README, add markdownlint and lychee via devenv
- README: list all subcommands, document orch session --resume, name the example machines, drop the missing ORCHESTRATOR.md reference - Add markdownlint-cli and lychee to devenv.nix - Add .markdownlint.json and .markdownlintignore; fix table lint errors in docs/safety.md and docs/cmd-protocol.md Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
f1ab948bb4
commit
5a80bc9fe1
6 files changed
+24
-5
No files matched your search
@@ -0,0 +1,4 @@
|
|||||||
|
{
|
||||||
|
"MD013": { "line_length": 120, "tables": false },
|
||||||
|
"MD046": false
|
||||||
|
}
|
||||||
@@ -0,0 +1,3 @@
|
|||||||
|
target/
|
||||||
|
# eval case prompts are fed to the agent verbatim; keep them byte-stable across runs
|
||||||
|
eval/*/task.md
|
||||||
@@ -9,6 +9,13 @@ git host: tasks come from a folder or any JSON command, results go to a local br
|
|||||||
orch report [FILE] success rate, tokens, retries, duration per profile and hx version
|
orch report [FILE] success rate, tokens, retries, duration per profile and hx version
|
||||||
orch bench eval --profile NAME --out A.jsonl run the eval cases; then: orch eval A.jsonl B.jsonl
|
orch bench eval --profile NAME --out A.jsonl run the eval cases; then: orch eval A.jsonl B.jsonl
|
||||||
orch audit [ID] every allowed/denied tool call
|
orch audit [ID] every allowed/denied tool call
|
||||||
|
orch TUI: sessions, session detail, goal view
|
||||||
|
orch session --repo DIR --machine M --name N create a state-machine session and run it
|
||||||
|
[--profile P] [--after s1,s2] [--scope S]
|
||||||
|
orch session --repo DIR --resume sN continue an unfinished session from its saved state
|
||||||
|
orch goal [TEXT] [--export] show or set the goal (--export adds the checks)
|
||||||
|
orch check NAME CMD [--owner sN] add an acceptance check (pass = exit 0)
|
||||||
|
orch checks [--owner sN | --main] run acceptance checks here, or on a clean copy of main
|
||||||
|
|
||||||
## How a run goes
|
## How a run goes
|
||||||
|
|
||||||
@@ -49,9 +56,12 @@ command = "python3 /work/adapters/gitea.py"
|
|||||||
`orch` without a subcommand opens the TUI: sessions overview (`enter` on a row opens the session detail, `esc` goes
|
`orch` without a subcommand opens the TUI: sessions overview (`enter` on a row opens the session detail, `esc` goes
|
||||||
back; `t` full test output, `d` diff, `l` event transcript, `o` open the worktree in hx). It reads `.hx/orch.db` of the
|
back; `t` full test output, `d` diff, `l` event transcript, `o` open the worktree in hx). It reads `.hx/orch.db` of the
|
||||||
current directory. `orch session --repo . --machine task --name NAME [--profile P]` creates a session and runs it.
|
current directory. `orch session --repo . --machine task --name NAME [--profile P]` creates a session and runs it.
|
||||||
Machines are TOML files in `.hx/machines/` or `~/.hx/machines/` (examples in `examples/machines/`). A `computer` step
|
`orch session --repo . --resume s1` continues an unfinished session (for example after a crash or a closed terminal)
|
||||||
|
from its saved state; `--machine`, `--name` and `--after` are not allowed with it. Machines are TOML files in
|
||||||
|
`.hx/machines/` or `~/.hx/machines/`. `examples/machines/` has four: `task` (plan, code, build, test, review, merge),
|
||||||
|
`docs` (write, lint, links), `e2e` (stack-up, e2e, stack-down) and `migration` (up, down, test). A `computer` step
|
||||||
with `report = "junit"` writes its JUnit XML to `$ORCH_REPORT` (also available as `{{report}}` in `cmd`); orch parses
|
with `report = "junit"` writes its JUnit XML to `$ORCH_REPORT` (also available as `{{report}}` in `cmd`); orch parses
|
||||||
it into counts and failing tests. See ORCHESTRATOR.md for the whole design.
|
it into counts and failing tests.
|
||||||
|
|
||||||
A running session can be steered from the session screen, also when `orch session` runs in another terminal: `i`
|
A running session can be steered from the session screen, also when `orch session` runs in another terminal: `i`
|
||||||
interrupt (the agent stops, you reply with a hint), `m` message to the agent, `s` force a state, `k` kill (type
|
interrupt (the agent stops, you reply with a hint), `m` message to the agent, `s` force a state, `k` kill (type
|
||||||
|
|||||||
@@ -9,5 +9,7 @@
|
|||||||
{
|
{
|
||||||
packages = with pkgs; [
|
packages = with pkgs; [
|
||||||
sqlite
|
sqlite
|
||||||
|
markdownlint-cli
|
||||||
|
lychee
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
@@ -29,7 +29,7 @@ is echoed back verbatim in later calls, so adapters stay stateless.
|
|||||||
## Operations
|
## Operations
|
||||||
|
|
||||||
| op | stdin | stdout |
|
| op | stdin | stdout |
|
||||||
|---|---|---|
|
| --- | --- | --- |
|
||||||
| `list` (source) | `{}` | `{"tasks": [Task, ...]}` |
|
| `list` (source) | `{}` | `{"tasks": [Task, ...]}` |
|
||||||
| `claim` (source) | `{"task": Task}` | `{"claimed": bool}`; false = someone else took it, orch skips it |
|
| `claim` (source) | `{"task": Task}` | `{"claimed": bool}`; false = someone else took it, orch skips it |
|
||||||
| `report` (source) | `{"task": Task, "run": Run}` | `{}`; called when a run ends in any state |
|
| `report` (source) | `{"task": Task, "run": Run}` | `{}`; called when a run ends in any state |
|
||||||
|
|||||||
+2
-2
@@ -48,9 +48,9 @@ A repo that already has its own `.hx/config.toml` is refused (`setup:` failure)
|
|||||||
hx reaches Claude in two ways:
|
hx reaches Claude in two ways:
|
||||||
|
|
||||||
| mode | who runs the tools | how `allow` is enforced |
|
| mode | who runs the tools | how `allow` is enforced |
|
||||||
|---|---|---|
|
| --- | --- | --- |
|
||||||
| `direct` (API provider) | hx | `orch guard` blocks the `tool_call` before the tool runs; orch re-checks the event stream |
|
| `direct` (API provider) | hx | `orch guard` blocks the `tool_call` before the tool runs; orch re-checks the event stream |
|
||||||
| `claude_cli` (hx starts the `claude` binary; auto-on when `claude` is in PATH and `HX_BASE_URL` is unset) | the `claude` binary | requires hx with johannes/hx#182: claude asks `mcp__hx__approve` first, hx puts the question on the event bus as `tool_call` (`bash{command}`, `write|edit|read{path}`), `orch guard` blocks it before the tool runs |
|
| `claude_cli` (hx starts the `claude` binary; auto-on when `claude` is in PATH and `HX_BASE_URL` is unset) | the `claude` binary | requires hx with johannes/hx#182: claude asks `mcp__hx__approve` first, hx puts the question on the event bus as `tool_call` (`bash{command}`, `write{path}`, `edit{path}`, `read{path}`), `orch guard` blocks it before the tool runs |
|
||||||
|
|
||||||
For `claude_cli` orch writes `permissions = "extensions-only"` into the generated worktree config. Then a question
|
For `claude_cli` orch writes `permissions = "extensions-only"` into the generated worktree config. Then a question
|
||||||
is allowed only while a live `tool_call` extension guards it: if the guard dies or never starts, hx denies (a dead
|
is allowed only while a live `tool_call` extension guards it: if the guard dies or never starts, hx denies (a dead
|
||||||
|
|||||||
Reference in new issue
Block a user