Skip to content

Commit 24d7839

Browse files
Syaticlaude
andcommitted
Add sheldon plugin for agent shell function
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> Entire-Checkpoint: 5215fbfb326a
1 parent 5f3c735 commit 24d7839

2 files changed

Lines changed: 20 additions & 1 deletion

File tree

README.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,14 @@ Use `docker compose exec` (not `docker attach`). Each `exec` spawns an independe
4343

4444
## Shell Function (no compose.yml needed)
4545

46-
Add to your `~/.zshrc` to run from any project directory:
46+
With [sheldon](https://github.com/rossmacarthur/sheldon), add to `~/.config/sheldon/plugins.toml`:
47+
48+
```toml
49+
[plugins.agent-stack]
50+
github = "Syati/agent-stack"
51+
```
52+
53+
Or add the function directly to your `~/.zshrc`:
4754

4855
```bash
4956
agent() {

agent-stack.plugin.zsh

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
agent() {
2+
docker run -it \
3+
-v $(pwd):/workspace \
4+
-v /var/run/docker.sock:/var/run/docker.sock \
5+
-v ${HOME}/.gitconfig:/home/agent/.gitconfig:ro \
6+
-v agent-claude-home:/home/agent/.claude \
7+
-v agent-codex-home:/home/agent/.codex \
8+
-v agent-mise-data:/home/agent/.local/share/mise \
9+
--env-file ${HOME}/.agent-stack.env \
10+
--add-host host.docker.internal:host-gateway \
11+
ghcr.io/syati/agent-stack zsh
12+
}

0 commit comments

Comments
 (0)