mirror of
https://github.com/getcompanion-ai/companion-skill.git
synced 2026-04-15 09:01:13 +00:00
Initial companion-offload skill for Claude Code
This commit is contained in:
commit
ec7919c4ba
4 changed files with 352 additions and 0 deletions
62
README.md
Normal file
62
README.md
Normal file
|
|
@ -0,0 +1,62 @@
|
|||
# Companion Offload Skill
|
||||
|
||||
A [skills.sh](https://skills.sh) skill for Claude Code that offloads tasks to a Companion sandbox in the cloud.
|
||||
|
||||
## What it does
|
||||
|
||||
When you invoke this skill, Claude will:
|
||||
|
||||
1. Use `companion ssh` to connect to your sandbox
|
||||
2. Sync your entire project, environment variables, and Claude session history
|
||||
3. Install Claude Code on the sandbox if needed
|
||||
4. Start a Claude Code session with `--dangerously-skip-permissions` so it runs autonomously
|
||||
|
||||
The remote session picks up right where you left off - full context, full environment.
|
||||
|
||||
## Install
|
||||
|
||||
```bash
|
||||
npx skills add getcompanion-ai/companion-skill
|
||||
```
|
||||
|
||||
## Usage
|
||||
|
||||
Inside a Claude Code session, tell Claude to offload:
|
||||
|
||||
- "offload this task to my companion"
|
||||
- "continue this in the cloud"
|
||||
- "run this on my sandbox"
|
||||
|
||||
Or use the standalone script:
|
||||
|
||||
```bash
|
||||
./companion-offload/scripts/offload.sh "finish implementing the API"
|
||||
```
|
||||
|
||||
## Prerequisites
|
||||
|
||||
- `companion` CLI installed: `npm install -g @getcompanion/cli`
|
||||
- Logged in: `companion login`
|
||||
- A running sandbox: `companion create <handle>`
|
||||
- `rsync` available locally
|
||||
|
||||
## Remote workspace
|
||||
|
||||
Files are synced to whichever path exists on the sandbox:
|
||||
|
||||
- `/home/node/.openclaw/workspace`
|
||||
- `/home/node/.pi/workspace`
|
||||
|
||||
## Reconnecting
|
||||
|
||||
After offloading, reconnect to the remote session:
|
||||
|
||||
```bash
|
||||
companion ssh
|
||||
cd /home/node/.openclaw/workspace
|
||||
claude --continue
|
||||
```
|
||||
|
||||
## License
|
||||
|
||||
MIT
|
||||
Loading…
Add table
Add a link
Reference in a new issue