# Octomind Tap
> Run a fully-configured AI specialist with one command — no setup, no config files, no API plumbing.
The community registry for [Octomind](https://github.com/muvon/octomind), the CLI-first AI agent runtime. **140+ agents across 34 domains**, 100+ skill packs, 31 ready-made workflows, 120+ dependency scripts — each one a single TOML file that Octomind resolves and merges into your session at runtime.
```bash
octomind run developer # the developer domain
octomind run doctor # the doctor domain
octomind run doctor:blood # one specialist: interpret blood test results
```
Browse the catalog: [octomind.run/tap](https://octomind.run/tap/)
One diagram: who takes a request, what an agent file contains, and when skills load.
<picture>
<source media="(prefers-color-scheme: dark)" srcset="assets/how-it-works-dark.svg">
<img src="assets/how-it-works-light.svg" width="100%" alt="How the tap works. Who takes the request: octomind run with no agent starts the global assistant, which picks a domain; octomind run developer starts that domain's lead agent, which answers or delegates to a specialist; octomind run doctor:blood starts one exact specialist. What one agent is made of: a manifest file with a prompt and a list of capabilities; each capability is resolved to a provider, which starts tool servers and runs install scripts before the session. Loaded on demand: a skill loads when its rules match, adds instructions to the running session and can switch on more capabilities.">
</picture>
---
## Table of Contents
- [Quick Start](#quick-start)
- [Domains and Orchestrators](#domains-and-orchestrators)
- [What's in the Registry](#whats-in-the-registry)
- [Tag Format](#tag-format)
- [Capability System](#capability-system)
- [Workflows](#workflows)
- [Skills](#skills)
- [Dependency Scripts](#dependency-scripts)
- [Repository Layout](#repository-layout)
- [Contributing](#contributing)
- [License](#license)
---
## Quick Start
You need the `octomind` binary first — the tap ships with it as the default registry, so no tap registration is required.
```bash
# 1. Install Octomind (macOS & Linux) — single Rust binary, no runtime dependencies
curl -fsSL https://raw.githubusercontent.com/muvon/octomind/master/install.sh | bash
# 2. Sign in — models included, no API keys to manage
octomind login
# 3. Run a domain
octomind run doctor
```
The default tap is cloned automatically on first use and updated on every run.
```bash
# Pin to a specific version
octomind run developer:general@1.0
# Run a ready-made multi-step pipeline
octomind workflow develop
# Bootstrap your own tap (private or team) — rendered, validated, ready to run
octomind tap init acme/team && octomind run team
```
---
## Domains and Orchestrators
Agents are grouped into domains: `developer`, `doctor`, `content`, and so on. A domain with several agents has an orchestrator named `chief`, which knows every specialist in the domain and hands work to them. You only need to remember the domain name.
| Command | Runs |
|---------|------|
| `octomind run` | the global assistant, which routes work across all domains |
| `octomind run developer` | `developer:chief`, the orchestrator of the `developer` domain |
| `octomind run developer:tester` | that exact agent |
```mermaid
flowchart TD
user([You])
global["Global assistant<br/>assistant:chief"]
dev["Developer orchestrator<br/>developer:chief"]
doc["Doctor orchestrator<br/>doctor:chief"]
devs["Developer specialists<br/>tester, spec, plan, ..."]
docs["Doctor specialists<br/>blood, sleep, nutrition, ..."]
user -->|octomind run| global
user -->|octomind run developer| dev
user -->|octomind run doctor| doc
user -.->|octomind run doctor:blood| docs
global -->|hands a task to a domain| dev
global -->|hands a task to a domain| doc
dev -->|hands a task to a specialist| devs
doc -->|hands a task to a specialist| docs
```
An orchestrator stays inside its own domain, plus any other domains or single agents it declares in a header comment (`# Uses: content, seo:audit` in `agents/marketing/chief.toml`). Open-ended work across domains goes through the global assistant. The rules, the `chief` naming, and per-domain model settings are in [ARCHITECTURE.md](ARCHITECTURE.md#domains-and-orchestrators).
---
## What's in the Registry
| Directory | What it holds | Count |
|-----------|---------------|-------|
| `agents/<domain>/<spec>.toml` | Agent manifests — a system prompt, sampling params, and capability declarations | 140+ across 34 domains |
| `capabilities/<name>/` | Capability definitions — the tools an agent needs, decoupled from how they're provided | 60+ |
| `skills/<name>/SKILL.md` | Reusable instruction packs (AgentSkills spec) that auto-activate by context | 100+ |
| `workflows/<name>.toml` | Multi-step pipelines chaining agent runs (sequential / parallel / loop / conditional) | 31 |
| `deps/<org>/<tool>.sh` | Dependency install scripts — auto-run before sessions, macOS + Linux | 120+ |
| `model/` | Embedding model fine-tune powering capability auto-activation | — |
| `bin/load` | The resolver: merges capabilities into the final manifest (stdout) | — |
Agents span domains like `developer`, `doctor`, `lawyer`, `finance`, `security`, `devops`, `data`, `marketing`, `writer`, `research`, and more.
---
## Tag Format
```
domain # the domain's chief (<domain>:chief)
domain:spec[-sub-spec][@version] # one agent
```
| Part | Required | Description |
|------|----------|-------------|
| `domain` | ✅ | Top-level category (e.g. `developer`, `doctor`, `devops`) |
| `spec` | optional | Primary specialisation (e.g. `general`, `blood`, `kubernetes`). Omit it to run the domain's `chief`. |
| `-sub-spec` | optional | Variant of the spec (e.g. `rust-nightly`, `python-ml`) |
| `@version` | optional | Pinned version tag (e.g. `@1.0`). Omit for latest. |
**Examples:**
```
developer → agents/developer/chief.toml (the domain's orchestrator)
developer:general → agents/developer/general.toml
devops:kubernetes → agents/devops/kubernetes.toml
data:sql → agents/data/sql.toml
developer:general@1.0 → agents/developer/general.toml (version hint, future use)
```
> **Note on versioning:** `@x.y` is parsed and passed through, but the registry currently resolves to the same file path. Versioned paths are reserved for future use — for now, omit the version and rely on the 24-hour cache TTL.
---
## Capability System
Agents declare **what they need**, not how to get it. This is the only supported way — manifests never contain `[deps]`, `[roles.mcp]`, or `[[mcp.servers]]` blocks.
```toml
# agents/developer/general.toml
capabilities = ["core", "filesystem-read", "filesystem-write", "shell",
"codesearch-semantic", "codesearch-structural", "versioning"]
[[roles]]
system = "..."
welcome = "..."
temperature = 0.3
top_p = 0.9
top_k = 0
```
### How resolution works
1. `bin/load <domain>:<spec>` reads each capability → `capabilities/<name>/default.toml`.
2. `default.toml` is a symlink to the active provider (e.g. `octofs.toml`, `duckduckgo.toml`).
3. The resolver merges every provider's `[deps]`, `[roles.mcp]`, and `[[mcp.servers]]` into the final manifest on stdout.
### Capability highlights
| Capability | What it provides | Default provider |
|------------|-----------------|-----------------|
| `core` | `recall` — universal self-management (every agent); planning is supervisor-owned | built-in |
| `agent` | `agent_*` — delegate to your configured sub-agents | built-in |
| `orchestration` | `tap` (hand a task to the specialist that fits it) + `schedule` (defer/recur loops) — orchestrator-tier | built-in |
| `runtime` | `mcp` · `agent`-register · `skill` · `capability` — runtime config (high-trust) | built-in |
| `filesystem-read` / `filesystem-write` | `view`, `workdir` / `text_editor`, `batch_edit`, `extract_lines` | `octofs.toml` |
| `shell` | `shell` (command execution) | `octofs.toml` |
| `codesearch-semantic` | `semantic_search` | `octocode.toml` |
| `codesearch-structural` / `-graph` | `view` outline and AST modes, `symbol` definitions and references / `symbol` callers, callees, imports and type hierarchies; `octocode.toml` as alternative | `octofs.toml` |
| `memory-read` / `memory-write` | persistent memory tools | `octobrain.toml` |
| `websearch` | web search | `duckduckgo.toml` |
| `versioning` | git operations via octofs shell (default); MCP git server as `git.toml` | `octofs.toml` |
Beyond these, the registry ships 50+ domain capabilities — `legal-*`, `video-gen`, `image-gen`, `messaging-*`, `trading-crypto`, and more. See [ARCHITECTURE.md](ARCHITECTURE.md) for the full table.
> **Access tiers (least privilege).** A narrow domain specialist declares `core` plus its domain tools and never `orchestration` — so it can't delegate across domains or schedule loops; that server isn't in its tool set at all. Only agents that intend to orchestrate declare `orchestration`. See [ARCHITECTURE.md](ARCHITECTURE.md#capability-access-tiers-least-privilege).
### Switching providers
```bash
# Switch websearch from DuckDuckGo to Brave
ln -sf brave.toml capabilities/websearch/default.toml
# Or reset all defaults
bash scripts/setup-symlinks.sh
```
### Debugging resolution
```bash
# Inspect the fully merged manifest for an agent
bin/load developer:general
# Validate capability resolution for every agent in the registry
bash scripts/validate-capabilities.sh
```
---
## Workflows
Multi-step pipelines live outside agent manifests: portable TOML files that chain `octomind run` invocations — sequential, parallel, looping, or conditional — piping output between steps by name.
```bash
octomind workflow develop # plan → implement → review pipeline
octomind workflow deep-review # multi-lens code review
octomind workflow decode # confusing bill/lease/letter → verified plain-language decode
octomind workflow launch # product idea → go/no-go → go-to-market kit
```
31 ready-made workflows ship in `workflows/` — build, content, research, and everyday-life pipelines; see [workflows/README.md](workflows/README.md) for the full list. Author your own with the `octomind-workflow` skill or the `octomind:workflow` agent.
---
## Skills
Skills are reusable instruction packs ([AgentSkills](https://agentskills.io) spec) that inject domain knowledge into a session — and activate themselves when the context matches.
```markdown
---
name: git-workflow
title: "Git Workflow"
description: "Git commit conventions, branch naming, and workflow best practices..."
license: Apache-2.0
compatibility: "Requires git. Works with any git-based project."
capabilities: versioning
domains: developer devops
rules:
- file(.git)
---
```
- `rules:` predicates (`file()`, `match()`, `semantic()`, `grep()`, `env()`, …) drive auto-activation. Skills without `rules:` are manual-only.
- `capabilities:` auto-loads capabilities when the skill activates.
- `domains:` scopes auto-activation to agent categories.
- Optional `activate` and `validate` scripts alongside `SKILL.md` add event-driven activation and output validation.
Preload skills without activate scripts:
```bash
OCTOMIND_SKILLS=programming-rust,git-workflow octomind run developer
```
Skill auto-activation is powered by the embedding fine-tune in `model/` — see [model/README.md](model/README.md) for the training pipeline.
---
## Dependency Scripts
Capabilities can require external tools. Octomind runs the matching `deps/<org>/<tool>.sh` automatically before the session starts — exit non-zero aborts the session with a clear error.
```toml
# inside a capability file
[deps]
require = ["astral-sh/uv", "nodejs/node"]
```
Every dep script must:
1. **Source `deps/lib/platform.sh`** — all platform helpers come from there, never re-implemented
2. **Be idempotent** — exit 0 immediately if the tool is already installed
3. **Cover macOS + Linux** — brew on macOS; apt/dnf/pacman/zypper/apk + universal fallback on Linux
4. **Carry the required header** (parsed by tooling) and a companion `.md` doc:
```bash
# dep: astral-sh/uv
# type: dep
# description: Fast Python package installer and resolver
# check: uv
# https://docs.astral.sh/uv/
```
`type: mcp` marks scripts that exist to make an MCP server runnable; `type: dep` marks standalone CLI tools. The registry ships 120+ scripts — run `bash scripts/lint-deps.sh` to validate them.
---
## Repository Layout
```
agents/<domain>/<spec>.toml # Agent manifests — the primary contribution type
capabilities/<name>/ # Capability definitions
default.toml # Symlink → active provider (e.g. octofs.toml)
<provider>.toml # [deps], [roles.mcp], [[mcp.servers]]
deps/<org>/<tool>.sh # Dependency install scripts (+ companion .md)
deps/lib/platform.sh # Shared platform detection helpers
skills/<name>/SKILL.md # Reusable instruction packs (AgentSkills spec)
workflows/<name>.toml # Multi-step pipelines — octomind workflow <name>
model/ # Embedding fine-tune powering capability auto-activation
bin/load # Resolver: merges capabilities → final manifest (stdout)
scripts/ # Lint + validation tooling
templates/ # Canonical templates for agents, skills, deps, capabilities
scaffolds/tap/ # Source of truth for `octomind tap init` (new user taps)
ARCHITECTURE.md # Design doc — read before making changes
CONTRIBUTING.md # Contribution guidelines
```
### Taps
This repo is the **default tap** — always active, cloned to `~/.local/share/octomind/taps/`, auto-updated via `git pull` on every run. You can layer your own:
```bash
octomind tap myorg/agents # add a GitHub tap (checked before the default)
octomind tap myorg/agents /path/to/repo # add a local tap (no clone)
octomind tap # list active taps
octomind untap myorg/agents # remove a tap
```
### Create your own tap
One command bootstraps a private or public tap from the scaffold in
[`scaffolds/tap/`](scaffolds/tap/):
```bash
octomind tap init acme/team
```
This renders the scaffold into `./octomind-team/`, validates it, initializes
Git, and registers it as a local tap — the starter agent runs immediately:
```bash
octomind run team
```
Options:
```bash
octomind tap init acme/team --dir ../team-tap # destination (default ./octomind-<name>; must be empty)
octomind tap init acme/team --agent ops # starter agent's domain (default: the tap name); the agent is always <domain>:chief
```
The tap id `owner/name` maps to the GitHub repository `owner/octomind-<name>`.
Pick a name whose repository does not exist yet and that does not shadow an
active tap (`octomind tap` lists them; `muvon/tap` is the built-in default).
`init` creates no remote and pushes nothing. To publish, create the repository
and push from the generated directory:
```bash
gh repo create acme/octomind-team --private --source . --remote origin
git add -A && git commit -m "chore: scaffold tap"
git push -u origin HEAD
```
On other machines, add it with `octomind tap acme/team`. That command clones
`github.com/acme/octomind-team`, so a private repository needs Git access
(SSH key or `gh auth login`).
The scaffold is read from the installed default tap, not from a local checkout
of this repository. `scaffolds/tap/` here is the single source of truth for the
generated layout; any GitHub template repository is only a synchronized mirror.
### Placeholder variables
Manifests support placeholders expanded at runtime — run `octomind vars` to see them all:
| Placeholder | Behaviour |
|-------------|-----------|
| `{{INPUT:KEY}}` | Prompts once, stores in `~/.local/share/octomind/inputs.toml` — for global secrets (API tokens) |
| `{{ENV:KEY}}` | Reads the environment; if unset, prompts and saves to `./.env` — for project-scoped values |
| `{{CWD}}`, `{{DATE}}`, … | Runtime context — use in `welcome` only, never in `system` (breaks prompt caching) |
---
## Contributing
**The most valuable contribution is expertise, not code.** If you have domain knowledge — medicine, law, finance, security, DevOps — you can ship a specialist that thousands of people run with one command.
```bash
# 1. Start from the canonical template
cp templates/agent.toml agents/<domain>/<spec>.toml
# 2. Edit: capabilities, system prompt (XML-tagged blocks), sampling params
# 3. Validate
bash scripts/lint-manifests.sh agents/<domain>/<spec>.toml
bash scripts/validate-capabilities.sh
bin/load <domain>:<spec>
```
Key rules:
- Agents declare `capabilities = [...]` only — never `[deps]`, `[roles.mcp]`, or `[[mcp.servers]]` in a manifest
- System prompts use XML-tagged blocks in canonical order (`<identity>` → … → `<critical>`), 200–1000 words
- Exactly one `[[roles]]` entry; never set `name` (injected at runtime from the tag)
- New capabilities need a provider file, a `setup-symlinks.sh` entry, and a `DECLARED` registration
Full guidelines: [CONTRIBUTING.md](CONTRIBUTING.md) · Design doc: [ARCHITECTURE.md](ARCHITECTURE.md) · Agent conventions: [AGENTS.md](AGENTS.md)
---
## License
Apache 2.0 — see [LICENSE](LICENSE).
**Octomind** by [Muvon](https://muvon.io) | [Website](https://octomind.run) | [Documentation](https://octomind.run/docs/)