Zenshinzo

AI Agent Setup — DevOps skill for Claude Code

DevOps community

Claude Code + tmux + Obsidian, with Grok, Codex and agy isolated in Docker.

How to install AI Agent Setup

This entry records only its repository, not the path inside it, so there is no exact command to give. Open Zenshinzo/ai-agent-setup and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

What AI Agent Setup does

Claude Code + tmux + Obsidian, with Grok, Codex and agy isolated in Docker.

Alternatives in DevOps

  • Codeg — Aggregate and browse AI coding agent sessions (Claude Code, Codex, Gemini CLI, etc.) in one place 850 ★
  • Coi — Give the agent a machine 743 ★
  • Code On Incus — Give each AI agent its own isolated machine with root, Docker, and systemd 670 ★

README

AI agent setup

How I run Claude Code day to day, plus Grok Build, Codex and Antigravity (agy) as tools, each locked in its own Docker container.

Write-up: [7 Habits of My AI Agent Setup](https://zenshinzo.com/words/7-habits-of-my-ai-agent-setup/)

What's here

Path What it does
bin/tmux-picker On ssh login: pick a tmux session or start a new one with Claude in it
bin/claude-main-session Keeps one Claude (with Remote Control) running in tmux from boot
bin/session-snap Records every tmux session and its Claude conversation
bin/session-restore After a reboot: brings the sessions back and resumes each conversation
bin/session-purpose One line saying what each session is for (session-purpose --list shows them all)
bin/dlog Appends a timestamped line to today's log in the vault (optional Discord mirror)
tmux/tmux.conf Hooks that run session-snap when a session opens, closes or is renamed
docker/grok, docker/codex, docker/agy One locked-down container per agent
vault-template/CLAUDE.md A starter instructions file for your vault

Install

Linux or macOS, with tmux, Python 3.9+, and Claude Code. Make sure `~/.local/bin` is on your PATH.

mkdir -p ~/.local/bin
for f in bin/*; do install -m 755 "$f" ~/.local/bin/; done
grep -q session-snap ~/.tmux.conf 2>/dev/null || cat tmux/tmux.conf >> ~/.tmux.conf
tmux source-file ~/.tmux.conf 2>/dev/null || true   # if tmux is already running

Snapshot every 10 minutes too, so a session's conversation is on record even if nothing opens or closes before a reboot (`crontab -e`):

*/10 * * * * $HOME/.local/bin/session-snap

Start the picker on every ssh login (add to `~/.bashrc` or `~/.zshrc`):

if [ -r "$HOME/.local/bin/tmux-picker" ]; then
  TMUX_PICKER_RC=1
  . "$HOME/.local/bin/tmux-picker"
  unset TMUX_PICKER_RC
fi

Vault: the scripts look for `$AGENT_VAULT`, then `~/vault`. Put a timezone nam