chore: make pi-only rpc with fixed sessions
This commit is contained in:
@@ -1,12 +1,10 @@
|
||||
# Agent Integration 🤖
|
||||
|
||||
CLAWDIS can work with any AI agent that accepts prompts via CLI. Here's how to set them up.
|
||||
CLAWDIS now ships with a single coding agent: Pi (the Tau CLI). Legacy Claude/Codex/Gemini/Opencode paths have been removed.
|
||||
|
||||
## Supported Agents
|
||||
## Pi / Tau
|
||||
|
||||
### Tau / Pi
|
||||
|
||||
The recommended agent for CLAWDIS. Built by Mario Zechner, forked with love.
|
||||
The recommended (and only) agent for CLAWDIS. Built by Mario Zechner, forked with love.
|
||||
|
||||
```json
|
||||
{
|
||||
@@ -41,40 +39,11 @@ For streaming tool output and better integration:
|
||||
}
|
||||
```
|
||||
|
||||
RPC mode gives you:
|
||||
RPC mode is enforced by CLAWDIS (we rewrite `--mode` to `rpc` for Pi invocations). It gives you:
|
||||
- 💻 Real-time tool execution display
|
||||
- 📊 Token usage tracking
|
||||
- 🔄 Streaming responses
|
||||
|
||||
### Claude Code
|
||||
|
||||
```json
|
||||
{
|
||||
"command": [
|
||||
"claude",
|
||||
"-p",
|
||||
"{{BodyStripped}}"
|
||||
]
|
||||
}
|
||||
```
|
||||
|
||||
### Custom Agents
|
||||
|
||||
Any CLI that:
|
||||
1. Accepts a prompt as an argument
|
||||
2. Outputs text to stdout
|
||||
3. Exits when done
|
||||
|
||||
```json
|
||||
{
|
||||
"command": [
|
||||
"/path/to/my-agent",
|
||||
"--prompt", "{{Body}}",
|
||||
"--format", "text"
|
||||
]
|
||||
}
|
||||
```
|
||||
|
||||
## Session Management
|
||||
|
||||
### Per-Sender Sessions
|
||||
@@ -90,6 +59,7 @@ Each phone number gets its own conversation history:
|
||||
}
|
||||
}
|
||||
```
|
||||
By default CLAWDIS stores sessions under `~/.clawdis/sessions` and will create the folder automatically.
|
||||
|
||||
### Global Session
|
||||
|
||||
|
||||
Reference in New Issue
Block a user