agentp 0.11.10 → 0.12.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -231,21 +231,28 @@ Non-text Telegram updates (photos, stickers, etc.) are silently ignored.
231
231
  ### Slash commands
232
232
 
233
233
  | Command | Action |
234
- |---|---|
234
+ |---|---|---|
235
235
  | `/help [topic]` | Show general help or help for a topic (`servers`, `sessions`, `agents`, `models`, `allow`, `think`, `record`, `queue`) |
236
236
  | `/servers` | List all ocmux-served projects (▶ active, 🔌 disconnected, 💀 dead) |
237
- | `/servers switch <name> [--force]` | Switch active server; matches by full path, basename, or substring; `--force` takes over from another chat |
237
+ | `/server <name>` | Switch active server; matches by full path, basename, or substring |
238
+ | `/server --force <name>` | Take over a server from another chat |
238
239
  | `/resurrect [path]` | Restart a crashed server from its `.ocmux.json`; accepts optional directory path |
240
+ | `/sessions` | List sessions (numbered, newest first) |
241
+ | `/session <name-or-number>` | Switch to a session by name or position |
242
+ | `/session new [name]` | Create a new session |
243
+ | `/session rename <name>` | Rename the active session |
244
+ | `/agents` | List available agents/models |
245
+ | `/agent <name>` | Switch the active agent for subsequent messages (synced to server via API) |
246
+ | `/models` | List providers and models (▶ marks current) |
247
+ | `/model <providerID/modelID>` | Switch session model |
239
248
  | `/allow` | Approve a permission request once |
240
249
  | `/reject` | Deny a permission request |
241
250
  | `/always` | Approve and remember for the session |
242
251
  | `/answer <number>` | Respond to a question asked by the AI (structured multiple-choice) |
243
252
  | `/markdown` | Send the original markdown of the last response as a `.md` file; reply to a message to get that specific response |
244
- | `/agents list` | List available agents/models |
245
- | `/agents switch <name>` | Switch the active agent for subsequent messages (synced to server via API) |
246
253
  | `/shutdown [force\|clear]` | (requires `--dev`) Stop tgagentp; `clear` also wipes saved connections |
247
254
 
248
- > **Note on model/agent switching:** Changing the model in the OpenCode TUI's prompt dropdown is a **local UI action** — it only takes effect server-side after a message is sent *through the TUI*. If you change the model in the TUI and then send a prompt via `agentp` or Telegram, the old model will still be used. Use `/agents switch <name>` from Telegram (or `tgagentp`) to change models — this explicitly calls the API and syncs correctly.
255
+ > **Note on model/agent switching:** Changing the model in the OpenCode TUI's prompt dropdown is a **local UI action** — it only takes effect server-side after a message is sent *through the TUI*. If you change the model in the TUI and then send a prompt via `agentp` or Telegram, the old model will still be used. Use `/agent <name>` or `/model <providerID/modelID>` from Telegram (or `tgagentp`) to change models — this explicitly calls the API and syncs correctly.
249
256
 
250
257
  #### TUI Command Passthrough
251
258
 
@@ -255,7 +262,7 @@ Messages starting with `//` are forwarded to the OpenCode TUI as raw keystrokes
255
262
 
256
263
  ### Chat-server ownership
257
264
 
258
- Each server can be owned by at most one chat at a time. New chats start disconnected. Use `/servers switch <name>` to connect; `--force` takes over and notifies the previous owner. Connections are persisted to `/tmp/tgagentp-connections.json` and restored automatically on restart (server URL is re-discovered from `.ocmux.json`).
265
+ Each server can be owned by at most one chat at a time. New chats start disconnected. Use `/server <name>` to connect; `--force` takes over and notifies the previous owner. Connections are persisted to `/tmp/tgagentp-connections.json` and restored automatically on restart (server URL is re-discovered from `.ocmux.json`).
259
266
 
260
267
  ### Per-server state
261
268
 
@@ -287,7 +294,7 @@ tgagentp starts a tiny HTTP server on `127.0.0.1` that accepts `POST /send` requ
287
294
  - Port is written to `/tmp/tgagentp-port` for agentp discovery.
288
295
  - Authentication reuses `OPENCODE_SERVER_PASSWORD`.
289
296
  - Messages for the owning chat's active server are delivered immediately.
290
- - Messages for non-active servers are queued per-server with debounced notifications (configurable via `TGAGENTP_DEBOUNCE_MS`); delivered on `/servers switch`.
297
+ - Messages for non-active servers are queued per-server with debounced notifications (configurable via `TGAGENTP_DEBOUNCE_MS`); delivered on `/server <name>`.
291
298
  - Server health detection pre-sends: if a server is unreachable, messages are auto-queued and delivered when it comes back. `/flush` clears all queues.
292
299
  - When [/record](#tgagentp) is active, the gateway response includes the recorded conversation buffer. `agentp --qa` prepends this buffer (with rulers) to its stdout so the full Telegram context is available to OpenCode. Use `agentp --qa --flush` to flush the buffer without prepending.
293
300