M8: command registry, skills as slash commands, completion engine + popup, rpc complete
Closes #68, closes #69, closes #70, closes #71, closes #72
This commit is contained in:
1 parent
6f0addcd47
commit
65765ce2b3
10 files changed
+651
-125
No files matched your search
@@ -12,9 +12,11 @@ hx --provider codex -p "hello" # one-shot, Codex
|
||||
hx -c # continue last session in this directory
|
||||
```
|
||||
|
||||
TUI: `enter` send, `alt-enter`/`ctrl-j` newline, `esc` abort, `ctrl-o` expand tool output, `tab` completes `@file`
|
||||
(mentioned files are attached), `pgup`/`pgdn` scroll. Commands: `/model <name>`, `/provider claude|codex`,
|
||||
`/compact`, `/clear`, `/quit`. Messages typed while the agent works are queued.
|
||||
TUI: `enter` send, `alt-enter`/`ctrl-j` newline, `esc` abort, `ctrl-o` expand tool output, `pgup`/`pgdn` scroll.
|
||||
`/help` lists commands: builtins (`/model`, `/provider`, `/compact`, `/clear`, `/lsp`, `/mcp`, `/quit`), MCP
|
||||
prompts (`/server:prompt`) and skills. Typing `/` opens a completion popup for commands and their arguments
|
||||
(`up`/`down` select, `tab`/`enter` accept, `esc` close); `tab` completes `@file` (mentioned files are
|
||||
attached). Messages typed while the agent works are queued.
|
||||
|
||||
Config: `~/.hx/config.toml`, overridden per project by `.hx/config.toml`:
|
||||
|
||||
@@ -48,6 +50,9 @@ description go into the system prompt; the model reads the file when a task matc
|
||||
`~/.agent/skills` (shared with other agents), `~/.hx/skills`, then `.hx/skills` in the project; a later
|
||||
directory wins when names collide.
|
||||
|
||||
Each skill is also a command: `/<name> [args]` sends the skill file plus `args` as the prompt. Builtin
|
||||
commands win when names collide.
|
||||
|
||||
## Lens
|
||||
|
||||
After every tool round, hx asks the language server about files the agent wrote or edited and appends
|
||||
@@ -137,8 +142,10 @@ One JSON object per line on stdout. `type` is one of:
|
||||
|
||||
JSON-RPC 2.0, one message per line on stdin/stdout. Events arrive as `event` notifications (params = the
|
||||
event object above). Methods: `prompt {text}` (replies `{message, usage}` when the run ends), `abort`,
|
||||
`state`, `messages`, `fork {id}`, `clear`, `set_model {model}`, `compact`. One prompt at a time; other
|
||||
methods are rejected while it runs (except `abort`). Example client: `examples/rpc_client.py`.
|
||||
`state`, `messages`, `fork {id}`, `clear`, `set_model {model}`, `compact`, `complete {line, cursor?}`
|
||||
(replies `{start, items: [{label, detail}]}`; `label` replaces `line[start..cursor]`, cursor is a byte
|
||||
offset defaulting to the end). One prompt at a time; other methods are rejected while it runs (except
|
||||
`abort` and `complete`). Example client: `examples/rpc_client.py`.
|
||||
|
||||
### Extensions
|
||||
|
||||
|
||||
Reference in new issue
Block a user