|
| 1 | +# Implementable Commands (The "No-Undo" Set) |
| 2 | + |
| 3 | +This document lists commands that can be implemented in Hermes Chat that do not require a "Global Undo" (as undoing system-level side-effects like `apt install` is impossible). These commands focus on **reversible**, **idempotent**, or **contextual** operations. |
| 4 | + |
| 5 | +## 🛠 Workspace & Code Operations |
| 6 | +*Manipulate the codebase and inspect files.* |
| 7 | + |
| 8 | +* `cat <path>`: View file content with line numbers. |
| 9 | +* `md <path>`: Render a Markdown file in the terminal. |
| 10 | +* `grep <pattern>`: Search for text/regex across the repository. |
| 11 | +* `find <pattern>`: Locate files matching a glob pattern. |
| 12 | +* `ls`: List directory contents. |
| 13 | +* `git <command>`: Run Git commands (e.g., `git status`, `git diff`). |
| 14 | +* `diff <path>`: Show changes for a specific file. |
| 15 | +* `run <command>`: Execute a shell command (with a built-in safety timeout). |
| 16 | + |
| 17 | +## 🧠 Intelligence & Memory |
| 18 | +*Manage the agent's understanding and context.* |
| 19 | + |
| 20 | +* `remember <text>`: Persistently save a fact or rule to `memory.log`. |
| 21 | +* `memories [term]`: Search long-term memory for a specific term. |
| 22 | +* `context`: View the current files and snippets held in the agent's active context window. |
| 23 | +* `pin <path>`: Keep a file permanently in the agent's context to prevent it from "forgetting." |
| 24 | +* `forget <id|term>`: Surgically remove specific information or assumptions from the current conversation history. |
| 25 | +* `semantic-search <term>`: Find conceptually related items via local embeddings. |
| 26 | + |
| 27 | +## 🧵 Session & Threading |
| 28 | +*Organize and navigate conversations.* |
| 29 | + |
| 30 | +* `new [name]`: Create and switch to a new conversation thread. |
| 31 | +* `switch <id|alias>`: Switch to an existing thread by ID or name. |
| 32 | +* `list`: List all existing conversation threads. |
| 33 | +* `rename <name>`: Change a thread's alias. |
| 34 | +* `history`: Show the conversation transcript for the current thread. |
| 35 | +* `export md`: Save the current thread as a Markdown file. |
| 36 | +* `retry`: Re-send the last prompt in the current thread. |
| 37 | +* `again`: Re-send the last prompt in a brand new thread (for comparison). |
| 38 | +* `best-of <n>`: Send the last prompt to `n` parallel threads and compare results. |
| 39 | +* `multiline`: Enter a multi-line input mode for large code blocks. |
| 40 | + |
| 41 | +## ⚙️ Configuration & System |
| 42 | +*Adjust the agent's runtime settings.* |
| 43 | + |
| 44 | +* `status`: View current runtime, model, thread, and git status. |
| 45 | +* `model <name>`: Switch the LLM model. |
| 46 | +* `provider <name>`: Switch the LLM provider (e.g., switching from cloud to local). |
| 47 | +* `time`: Toggle the display of execution time. |
| 48 | +* `verbose`: Toggle detailed JSONL event logging for debugging. |
| 49 | +* `auto-retry [on|off|N]`: Configure the number of automatic retries for failed turns. |
| 50 | + |
| 51 | +## 📊 Telemetry & Observability |
| 52 | +*Monitor cost, performance, and efficiency.* |
| 53 | + |
| 54 | +* `usage`: Show token consumption (Prompt/Completion) and estimated cost. |
| 55 | +* `stats`: View lifetime project statistics (total threads, total turns, total words). |
| 56 | +* `latency`: Monitor response speed (Time to First Token and total response time). |
| 57 | +* `efficiency`: Calculate the ratio of meaningful content vs. overhead/metadata. |
0 commit comments