2.5 KiB
2.5 KiB
Usage
Commands
| Command | Description |
|---|---|
/new [agent] [workspace] |
Create a new session (new topic) |
/newchat |
New session, same agent & workspace |
/cancel |
Cancel current session |
/status |
Show session or system status |
/agents |
List available agents |
/help |
Show help |
/menu |
Show menu keyboard |
Examples
/new claude my-app → Claude in ~/openacp-workspace/my-app/
/new codex api-server → Codex in ~/openacp-workspace/api-server/
/new claude ~/code/project → Absolute path
/new → Default agent and workspace
Session Flow
/new claude my-project— creates a new forum topic + spawns agent- Send your coding request
- Agent responds with streaming text, tool calls, code
- Permission needed → inline buttons (Allow / Always Allow / Reject)
- File written → "View file" link opens Monaco Editor in browser
/cancelto stop,/newfor another session
Workspaces
| Input | Resolves to |
|---|---|
| (none) | ~/openacp-workspace/ |
my-app |
~/openacp-workspace/my-app/ |
~/code/project |
~/code/project/ |
/absolute/path |
/absolute/path/ |
Base directory is configurable via workspace.baseDir in config.
Session Persistence & Resume
Sessions survive OpenACP restarts:
- Session data is persisted to
~/.openacp/sessions.json - After a restart, existing Telegram topics remain
- Send a message in an old topic → lazy resume kicks in:
- Agent subprocess respawns with the same session ID
- Agent reconnects to its internal state
- Your message is forwarded to the resumed agent
- Sessions older than
sessionStore.ttlDays(default: 30) are cleaned up
Resume works for sessions with status active or finished. Cancelled/error sessions are not resumable.
Skill Commands
AI agents can publish available skills (like /compact, /review, /debug). When they do:
- An inline keyboard with skill buttons is pinned in the session topic
- Click a skill button to invoke it
- Skills update dynamically as the agent's capabilities change
Multiple Sessions
Run sessions in parallel — each /new creates a separate topic with its own agent subprocess. Limited by security.maxConcurrentSessions (default: 5).
Assistant
The Assistant topic is an always-on AI helper:
- Knows your available agents and commands
- Helps create sessions interactively
- Provides guidance on OpenACP usage
- Shows a menu keyboard on startup