agentleFS
ryanmacleanryanmaclean/skills/zellij-team/SKILL.md

zellij-team

Skill1 starsChanged 2 months agoMITView on GitHub

Use when spawning parallel Claude agent workers in visible Zellij panes — multi-agent visual coordination with real-time observation and ctrl-c control. Replaces tmux-based agent teams.

The file

We split this skill into the rules it gives an agent

1 rule. About 0 are common, 0 are distinctive, and 1 is very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈0

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Use --effort low on workers for routine tasks, high only for complex ones.

    line 76

≈ “Common” is an estimate: at least 1 in 5 of the 213,895 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Zellij Team — Parallel Claude Agents in Zellij Panes

Overview

Spawn N parallel claude workers, each in its own Zellij pane, so you can watch them work simultaneously and ctrl-c any pane to kill a runaway agent.

This is the Zellij-native equivalent of Claude Code's tmux agent teams backend. The current session is the team leader. Workers are spawned with explicit task prompts and run until they exit or you kill them.

Quick Start

# Spawn 3 agents on explicit tasks
nu ~/.claude/skills/zellij-team/zellij-team.nu \
  --tasks ["Fix the auth bug in src/auth.ex" \
           "Write tests for ElixirGastown.LLM.RateLimiter" \
           "Update README with new rate-limiter docs"]

# Spawn from task files
nu ~/.claude/skills/zellij-team/zellij-team.nu \
  --files [tasks/auth-fix.md tasks/test-rate-limiter.md tasks/docs.md]

# Custom session / tab name
nu ~/.claude/skills/zellij-team/zellij-team.nu \
  --tab "gas-city-workers" \
  --tasks ["task A" "task B"]

Interaction Model

ActionHow
Watch agentsLook at each pane — they stream output live
Kill one agentctrl-c in that pane
Kill allClose the Zellij tab
Switch panesAlt+arrow
Zoom a panectrl-p z
Send input to agentClick pane, type (only if agent paused at a question)

Layout

Workers open in a new tab in the current Zellij session, auto-split:

  • 2 workers → side by side (vertical split)
  • 3–4 workers → 2×2 grid
  • 5–6 workers → 2 rows, 3 cols
  • 7+ workers → 3 rows

The tab is named team-<timestamp> by default, or --tab NAME.

Agent Flags Used

Workers run with:

claude --dangerously-skip-permissions --permission-mode bypassPermissions

Rationale: workers are short-lived, task-scoped subprocesses. You (the leader) are watching and can ctrl-c. Full interactive permission prompts would stall them.

Override with --mode default if you want workers to prompt for permissions.

Token Efficiency

Each worker has its own context window. Keep task prompts focused:

  • Good: "Fix the 3 failing tests in test/rate_limiter_test.exs"
  • Bad: "You are an expert engineer, please consider all aspects of..."

Use --effort low on workers for routine tasks, high only for complex ones.

Key Rule: Never Hardcode Session Name

Uses $ZELLIJ_SESSION_NAME — see zellij skill for the canonical pattern.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.