@@ -71,7 +71,36 @@ Next steps
7171- Controlled Execution: ` modules ` , ` module-plan ` , ` run `
7272- Enterprise: ` profiles ` , ` report ` , ` export ` , ` bundle ` , ` diff ` ,
7373 ` simulate-fixes `
74- - Admin: ` help ` , ` completion ` , ` console ` , ` opsec ` , ` schema ` , ` quality-gate `
74+ - Admin: ` help ` , ` discover ` , ` next ` , ` completion ` , ` console ` , ` opsec ` ,
75+ ` schema ` , ` quality-gate `
76+
77+ ## Command Discovery And Next Steps
78+
79+ ` relayx discover ` searches the CommandSpec registry, examples, output
80+ contracts, help topics, and safety notes. Use it when you know the task but do
81+ not remember the command.
82+
83+ ``` bash
84+ relayx discover epa
85+ relayx discover jsonl
86+ relayx discover route --group Route/Pivot
87+ relayx discover execution --format json
88+ ```
89+
90+ ` relayx next ` suggests concrete follow-up commands. With no result, it prints a
91+ first-run path. With a result, it summarizes top paths and suggests review,
92+ evidence, route, validation, execution-planning, and enterprise handoff
93+ commands. With ` --path-id ` , it focuses the guidance on that path.
94+
95+ ``` bash
96+ relayx next
97+ relayx next --result examples/tutorial/sample-result.json
98+ relayx next --result examples/tutorial/sample-result.json --path-id PX-0001
99+ relayx next -r examples/tutorial/sample-result.json -p PX-0001 -f json
100+ ```
101+
102+ ` next ` is read-only. It does not perform validation, execution, probing, export,
103+ or file modification.
75104
76105## Operator Console
77106
@@ -84,9 +113,24 @@ and guardrails as scripted workflows.
84113relayx console
85114relayx console --result examples/tutorial/sample-result.json --path-id PX-0001 --opsec-policy strict
86115relayx console --script console.txt
116+ relayx console --history-file ~ /.relayx/history
117+ relayx console --no-history --no-completion
87118relayx --no-color console --result examples/tutorial/sample-result.json
88119```
89120
121+ Interactive sessions use the terminal readline backend when available. That
122+ enables Up/Down command history navigation, incremental line editing, Tab completion
123+ for console commands, help topics, ` show ` targets, OPSEC policies, and
124+ result-file paths, plus Ctrl-L clear-screen behavior on terminals that support
125+ it. RelayX also provides explicit ` clear ` and ` cls ` commands.
126+
127+ History is persisted to ` RELAYX_HISTORY_FILE ` , or ` ~/.relayx/history ` by
128+ default. Use ` --history-file ` to choose a different file, ` --no-history ` or
129+ ` RELAYX_NO_HISTORY=1 ` to disable history, and prefix a command with a leading
130+ space to keep that command out of persistent history. Commands containing
131+ obvious secret-bearing flags such as ` --password ` or ` --token ` are not saved.
132+ Script mode keeps deterministic text behavior and does not use readline.
133+
90134The prompt reflects context:
91135
92136``` text
@@ -108,13 +152,20 @@ show paths Run paths with the selected result
108152show matrix Run matrix with the selected result
109153show sources Run sources with the selected result
110154explain [query] Explain a query or the selected path
155+ menu Show grouped console commands and tips
156+ next Suggest next commands from selected result/path
157+ discover <keyword> Search commands and topics from the console
111158validate [args...] Run validate with context-filled result/path/policy
112159run [args...] Run controlled execution with context-filled inputs
113160export [args...] Run export with context-filled result
114161bundle [args...] Run bundle with context-filled result
115162help [topic] Render curated RelayX help
163+ ? Alias for help
164+ clear / cls Clear the interactive terminal
165+ history [limit] Show recent commands from the current session
166+ history clear Clear in-memory and persisted console history
116167back Clear path first, then result
117- exit Leave the console
168+ exit / quit Leave the console
118169```
119170
120171Console shortcuts call the same CLI handlers and preserve the same guardrails.
0 commit comments