一键导入
skynet-dev
Manage the Skynet multi-agent collaboration network using the local dev CLI (pnpm skynet). Use when developing and testing Skynet locally.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Manage the Skynet multi-agent collaboration network using the local dev CLI (pnpm skynet). Use when developing and testing Skynet locally.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
| name | skynet-dev |
| description | Manage the Skynet multi-agent collaboration network using the local dev CLI (pnpm skynet). Use when developing and testing Skynet locally. |
You can manage the Skynet multi-agent collaboration network using the local dev CLI. All commands below are non-interactive (pass all options as flags) so you can run them directly via your shell tool.
Prerequisites: From the Skynet repo root, run pnpm install && pnpm build first.
Note: All commands use
pnpm skynetinstead ofskynet. This runs the locally built CLI.
pnpm skynet workspace new --name <workspace-name> [--host <host>] [--port <port>]
--name (required): Human-readable workspace name--host (optional): Bind address, default 0.0.0.0--port (optional): Port number, default 4117pnpm skynet workspace list
pnpm skynet workspace delete <workspace-uuid> --force
Removes the workspace from the registry and deletes all its data (agents, messages, config).
pnpm skynet workspace start <name-or-id> -d
pnpm skynet workspace stop <name-or-id>
pnpm skynet workspace status <name-or-id>
pnpm skynet workspace logs <name-or-id>
All agent commands require a running workspace. --workspace <name-or-id> is always required.
pnpm skynet agent new --name <agent-name> --type <agent-type> [--role <role>] [--persona <persona>] [--workdir <path>] [--skills <spec...>] --workspace <name-or-id>
--name (required): Agent display name--type (required): Agent type. Currently claude-code, opencode, and codex-cli are supported. Other types (gemini-cli, generic) are not yet supported — do not use them unless explicitly asked by the user.--role (optional): Agent's role description (e.g., "backend engineer")--persona (optional): Persona description for the agent's behavior--workdir (optional): Custom working directory (default: ~/.skynet/<ws>/<id>/work)--skills (optional, repeatable): Install skills into the agent's working directory via npx skills add. Format: source[:skill-name]. Can be specified multiple times (e.g., --skills github.com/org/repo --skills ./local-skill:my-skill)Working directory prompt: If the user does not explicitly specify --workdir, you must ask the user before running the command:
The agent's working directory determines where it reads/writes files. Would you like to:
- Specify a custom working directory (e.g., a project repo path)
- Use the default (
~/.skynet/<ws>/<id>/work)
If the user chooses a custom path, pass it via --workdir <path>. If they choose the default, omit --workdir.
Finding skills: If the user wants to create an agent with a particular skill but does not provide a specific skill source/path, search for it first:
npx skills find <query>
Review the search results with the user and confirm which skill to use before passing it to --skills.
pnpm skynet agent start <agent-name-or-id> --workspace <name-or-id>
Connects the agent to the workspace and starts processing messages as a background daemon (default). Use -f to run in foreground instead.
pnpm skynet agent stop <agent-name-or-id> --workspace <name-or-id>
pnpm skynet agent status <agent-name-or-id> --workspace <name-or-id>
pnpm skynet agent logs <agent-name-or-id> --workspace <name-or-id>
pnpm skynet agent delete <agent-uuid> --force --workspace <name-or-id>
Deletes the agent from the workspace. Fails if the agent is currently connected.
pnpm skynet agent interrupt <agent-name-or-id> --workspace <name-or-id>
Interrupts the agent's currently running task (equivalent to Ctrl+C). The agent remains connected and can receive new tasks.
pnpm skynet agent forget <agent-name-or-id> --workspace <name-or-id>
Clears the agent's conversation history so it starts fresh. Useful when reassigning an agent to an unrelated task.
pnpm skynet agent list --workspace <name-or-id>
pnpm skynet human new --name <human-name> --workspace <name-or-id>
pnpm skynet human delete <human-uuid> --force --workspace <name-or-id>
Deletes the human from the workspace. Fails if the human is currently connected.
pnpm skynet human list --workspace <name-or-id>
Do NOT run this command yourself.
pnpm skynet chatlaunches an interactive TUI for humans to join the workspace. When you need a human to join, tell them to run this command in a separate terminal.
pnpm skynet chat [--name <human-name>] --workspace <name-or-id>
--name (optional): Human name to join as (skips selection prompt)pnpm skynet doctor
Runs diagnostic checks for Node.js version, pnpm, git, agent CLIs (claude, gemini, codex), workspace status, and port availability. Use this to troubleshoot environment issues.
pnpm skynet status --workspace <name-or-id>
Shows all registered agents and humans with their id, name, role, persona, and online status.
pnpm install && pnpm buildpnpm skynet workspace new --name my-projectpnpm skynet workspace start my-project -dpnpm skynet agent new --workspace my-project --name backend --type claude-code --role "backend engineer"pnpm skynet agent start backend --workspace my-projectpnpm skynet human new --workspace my-project --name alicepnpm skynet chat --workspace my-project --name alicepnpm skynet status --workspace my-projectpnpm skynet agent stop backend --workspace my-project && pnpm skynet workspace stop my-projectAll runtime logs are written to ~/.skynet/<workspace-uuid>/logs/:
~/.skynet/<workspace-uuid>/logs/server.log~/.skynet/<workspace-uuid>/logs/<agent-uuid>.logpnpm e2e:skill-marketplace [options]
Runs a full end-to-end test of the Skynet workflow using the skill-marketplace scenario. This test:
claude-code) and a humanOptions:
| Flag | Default | Description |
|---|---|---|
--timeout <seconds> | 1800 (30 min) | Overall timeout |
--workdir <path> | /tmp/skynet-e2e-marketplace | Agent working directory |
--workspace <name> | e2e-skill-marketplace | Workspace name |
--skip-setup | false | Reuse existing workspace (skip creation) |
--skip-cleanup | false | Keep workspace running after test |
Examples:
# Run full test with defaults
pnpm e2e:skill-marketplace
# Run with custom timeout and workdir
pnpm e2e:skill-marketplace --timeout 3600 --workdir /tmp/my-test
# Resume a test (skip setup, reuse existing workspace)
pnpm e2e:skill-marketplace --skip-setup --workspace e2e-skill-marketplace
# Keep workspace running after test for manual inspection
pnpm e2e:skill-marketplace --skip-cleanup
Note: This test uses real
claude-codeagents and incurs API costs. Ensure your environment has the necessary API keys configured.
--force. Without --force, the command enters an interactive confirmation prompt that will hang and block the agent indefinitely.pnpm skynet status to see who is currently connected.~/.skynet/<workspace-uuid>/data.db.http://<host>:<port>/api/ for programmatic access.