mirror of
https://github.com/getcompanion-ai/co-mono.git
synced 2026-04-18 05:01:55 +00:00
Rewrite RPC documentation with accurate types
This commit is contained in:
parent
70b84532bb
commit
dc9a4b0fe4
4 changed files with 727 additions and 529 deletions
|
|
@ -786,7 +786,19 @@ Execute shell commands directly and add output to the LLM context by prefixing w
|
|||
- **History**: Commands are added to editor history (navigate with Up/Down arrows)
|
||||
- **Visual feedback**: Editor border turns green in bash mode; cancelled commands show yellow warning
|
||||
|
||||
Output is automatically added to the conversation context, allowing the LLM to see command results without manual copy-paste.
|
||||
**How bash output reaches the LLM:**
|
||||
|
||||
When you execute a bash command, the output is stored as a `BashExecutionMessage` in the conversation state. This message is transformed and sent to the LLM as part of your **next prompt**. The LLM sees it as a user message formatted like:
|
||||
|
||||
```
|
||||
Ran `ls -la`
|
||||
\`\`\`
|
||||
total 48
|
||||
drwxr-xr-x ...
|
||||
\`\`\`
|
||||
```
|
||||
|
||||
This means you can run multiple bash commands before sending a prompt, and all outputs will be included in the context together.
|
||||
|
||||
### Keyboard Shortcuts
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue