Index of every page on this site: llms.txt
All skills
sandharbor avatar

/work

@62fef7a
Run it yourself

Delegate work to a new agent in an isolated worktree

  • 1 file
  • 1.7 KB
  • Updated 7 months ago
  • GitHub
Use this Skill: https://skilld.dev/gh/sandharbor/meadow/work

Nothing lands on disk. Nothing to clean up.

Fork this Skill

Edit a local copy. It keeps the author and licence.

SKILL.md

≈15 tokens for metadata: the name and description. ≈408 when used: this file.

How this Skill uses context

Before choosing a Skill, your Agent reads its name and description. All available Skills share that space.

This Skill turns off automatic use in Claude Code. Its description stays out of the automatic Skill list by default.

Example settings and source

The example uses a 200k-token context and default Claude Code settings. The count includes the name, description, separators, and when_to_use when present. Codex also counts local file paths.

Skit's source and limits: Codex 0.160.1, Claude Code 2.1.292.

Delegate Work to a New Agent

Spin up a new agent worktree and hand off the task. This is a delegation — you create the agent, pass it the work description, and return control to the user. You do NOT implement the work yourself.

Step 1: Prepare the delegation

  1. Parse the user's description to determine what needs to be built.
  2. Pick a short kebab-case name (e.g., add-dark-mode, fix-login-redirect).
  3. Compose a clear task prompt that includes everything the new agent needs to know to do the work. Include relevant context, file paths, requirements, and any constraints the user mentioned.

Step 2: Write the task to a temp file

Write the task prompt to a temporary file. This avoids any shell quoting issues with complex multi-line descriptions.

# Write task to a temp file (use Write tool, not echo/cat)
/tmp/meadow_task_<name>.txt

Step 3: Create the agent

cd <repo-root>/_agent/manager/agents-manager-node
./node_modules/.bin/tsx src/cli.ts create --name <chosen-name> --task-file /tmp/meadow_task_<name>.txt

The CLI will:

  • Create a worktree with proper agent manager conventions
  • Copy the task into _agent/agent/messages/in/initial_prompt.txt in the worktree
  • Launch a tmux session that runs ./prepare, then hands the task to claude

The new agent will appear in the agent manager sidebar automatically.

Step 4: Report back

Tell the user:

  • The agent name and worktree path
  • That the agent is preparing and will start on the task automatically
  • They can monitor it in the agent manager sidebar or attach directly: tmux attach -t meadow_agent_<name>

Source: SKILL.md on GitHub

skilld matched fixed text patterns in SKILL.md and file names. Patterns miss obfuscated code.

skilld run checks every file with the same patterns. It asks for approval before it loads a Skill with a behavior marked Needs approval.

No third-party reports yet.

Signed by skilld at 62fef7a. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub 3 weeks ago.

Activeupdated 7 months ago
disable-model-invocation
true

README badge

README badge for sandharbor/meadow/work