一键导入
bosun-config
Bosun configuration — models, sandbox, daemon, Pi settings. Use when changing models, editing config, or understanding how bosun is set up.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Bosun configuration — models, sandbox, daemon, Pi settings. Use when changing models, editing config, or understanding how bosun is set up.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Bootstrap a new project using bosun as a foundation — via bun dependency (recommended) or git submodule. Creates a downstream project that inherits bosun's multi-agent infrastructure while adding custom agents, skills, and extensions. Works standalone — fetchable by any pi agent via raw GitHub URL.
Search curated markdown memory like sessions, plans, docs, and skills. Use when recalling prior context or looking for relevant historical/project knowledge.
Analyze Pi session JSONL files using jq patterns. Use when extracting metrics, tool usage, costs, or reviewing session history. Load for session export, summarization, or workflow analysis.
Session-based browser plan review primitives for Bosun. Provides a local-first state model, markdown-aware anchor extraction, and review-session persistence for reviewing existing plan files in dedicated CDP browser windows. Triggers: "plan-review", "review this plan", "review markdown plan".
Session-based browser diff review primitives for Bosun. Provides transport- agnostic v1 schemas plus local state and git snapshot helpers for immutable review rounds. Triggers: "diff-review", "reround", "review round", "snapshot-backed review".
Browser automation via Chrome DevTools Protocol. Connects to Chromium running with --remote-debugging-port=9222. Use for: navigate, click, fill, screenshot, inspect DOM, capture console logs, debug errors, monitor network, viewport emulation, visual review, overflow detection. Triggers: "browser", "go to", "click", "fill form", "take screenshot", "web page", "scrape", "console errors", "debug", "network requests", "visual review", "responsive", "viewport", "overflow".
| name | bosun-config |
| description | Bosun configuration — models, sandbox, daemon, Pi settings. Use when changing models, editing config, or understanding how bosun is set up. |
Configuration for the bosun sandboxed multi-agent environment.
| To change... | Edit this file | Then run |
|---|---|---|
| Models | config.toml [models] | just init |
| Stock agent behavior | packages/pi-bosun/agents/{name}.md | (direct edit, checked in) |
| Shared bosun prompt policy | packages/pi-bosun/slots/*.md | (direct edit, checked in) |
| Project-specific agent overrides | .pi/agents/{name}.md | (direct edit, checked in if you choose) |
| Pi settings/packages | config.toml | just init (regenerates .pi/settings.json) |
| Env vars (sandbox) | config.toml [env] | Restart session |
| Daemon settings | config.toml [daemon] | just init then restart daemon |
| Sandbox (tool-level) | config.toml [sandbox] | just init |
| Sandbox (process-level) | config.toml [env], [paths] | just init then restart |
config.toml ← Source of truth (user edits this)
│
└─→ just init ← Runs scripts/init.ts
│
├─→ .pi/settings.json (Pi package list)
├─→ .pi/agents.json (model tiers, backend config)
├─→ .pi/daemon.json (daemon settings)
├─→ .pi/sandbox.json (tool-level restrictions)
├─→ .pi/bwrap.json (process-level sandbox)
├─→ .pi/pi-q.json (Q data paths)
└─→ .pi/pi-bash-readonly.json (bash sandbox: network, writable paths)
Generated .pi/*.json files are gitignored. Don't edit them directly.
In this repo, stock bosun agents live in packages/pi-bosun/agents/*.md and shared prompt slots live in packages/pi-bosun/slots/*.md. Use .pi/agents/*.md only for local project overrides. Agent frontmatter uses model tier names (not specific model strings).
In config.toml:
[models]
lite = "<your-fast-model>" # Fast, cheap — e.g. gpt-4.1-mini, claude-haiku-4-5
medium = "<your-balanced-model>" # Balanced — e.g. gpt-5.3-codex, claude-sonnet-4-6
high = "<your-best-model>" # Best quality — e.g. gpt-5.4, claude-opus-4-6
oracle = "<your-reasoning-model>" # Deep reasoning — e.g. gpt-5.4, o3
Agent frontmatter references tiers by name:
model: high # Resolved to actual model string at spawn time
vim config.toml # Edit [models] section
just init # Regenerate .pi/agents.json
# New spawned agents will use the updated model
# In config.toml [env]
allowed = [
"ANTHROPIC_API_KEY",
"MY_CUSTOM_VAR", # Add here
]
Then restart: just stop && just start
.pi/agents/my-agent.md with frontmatter:
---
name: my-agent
description: What this agent does.
model: medium
extensions:
- pi-question
- pi-mesh
---
spawn_agent({ agent: "my-agent", task: "..." })packages/pi-bosun/agents/*.md for stock agent role/instructionspackages/pi-bosun/slots/*.md for shared reusable prompt fragmentsjust init only when changing generated config/prompt outputs such as .pi/prompts/spawn.md# In config.toml [sandbox]
[sandbox.filesystem]
deny_read = ["~/.ssh", "~/.aws"]
allow_write = [".", "/tmp"]
deny_write = [".env", "*.pem"]
Then: just init (active sessions pick up changes on next tool call)
scripts/sandbox.sh wraps the entire Pi process. Config: [env] + [paths] in config.toml → .pi/bwrap.json.[sandbox] in config.toml → .pi/sandbox.json.