KeiSeiKit-1.0/_blocks/registries/agent-profiles.toml
Parfii-bot c15e5589b9 feat: three-layer agent registries (providers/models/profiles)
Splits agent definition into stable provider + swappable model + role-bound
profile. Adding a new LLM API is one row in providers.toml; new model is
one row in models.toml; agent invocation picks any (provider, model) pair
through agent-profiles.toml default_model_ref.

- providers.toml: 10 providers — anthropic, openai, codex (OAuth), xai,
  deepseek, google, ollama-local, mlx-local, lmstudio-local, litellm-proxy
- models.toml: 11 models with cost_*_per_mtok_micro + context_window +
  verified_at + deprecated_at
- agent-profiles.toml: 18 representative profiles; manifest_path points
  to the canonical .md in ~/.claude/agents/

Three-layer DNA per the new architecture:
  agent-shell::<provider>:<model>:<caps>::<scope8>::<body8>-<nonce8>

This commit only adds registries — kei-model-router still hardcodes
the Claude-only Model enum. Wave 4 will rewire it to read TOML.
2026-05-13 20:51:04 +08:00

186 lines
7.5 KiB
TOML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# Реестр профилей агентов. Слой 3 из трёх.
#
# Профиль — это (role + caps + default_model_ref + system_prompt_ref).
# Не привязан к конкретному провайдеру: provider+model выбирается
# kei-model-router'ом по подсказке caller'а либо берётся default_model_ref.
#
# Источник истины для существующих 59 манифестов — `.md` файлы в
# `~/.claude/agents/`. Этот toml содержит ТОЛЬКО core/default-профили
# для marketplace UI и kei-model-router; per-manifest detail остаётся
# в `.md` файлах с frontmatter.
#
# Caps-bundle алфавит:
# FS-RO — Read/Glob/Grep only
# FS-RW — Read/Write/Edit
# BASH — Bash shell
# WEB — WebFetch/WebSearch
# AGENT — может спавнить sub-агентов (RULE 0.12)
# PLAN — Plan Mode allowed
#
# Стандартные комбинации:
# RO-WEB-FS — researcher / validator (read+web)
# FS-RW-BASH-PLAN — code-implementer (full + plan)
# RO-FS — critic / auditor (read-only no web)
# FS-RW-BASH-AGENT — orchestrator-meta (can spawn)
# ─── Core implementer family ───────────────────────────────────────────
[[profile]]
id = "code-implementer"
role = "code-implementer"
caps = "FS-RW-BASH-PLAN"
default_model_ref = "anthropic/claude-sonnet-4-6"
description = "Generic Rust/TS/Python/Go/Swift/Flutter implementer. Constructor Pattern. RULE 0.20 → sonnet default."
manifest_path = "~/.claude/agents/code-implementer.md"
[[profile]]
id = "code-implementer-rust"
role = "code-implementer"
caps = "FS-RW-BASH-PLAN"
default_model_ref = "anthropic/claude-sonnet-4-6"
description = "Rust specialist. Cargo, traits, async/tokio, rusqlite, tests."
manifest_path = "~/.claude/agents/code-implementer-rust.md"
[[profile]]
id = "code-implementer-typescript"
role = "code-implementer"
caps = "FS-RW-BASH-PLAN"
default_model_ref = "anthropic/claude-sonnet-4-6"
description = "Next.js 16 / Node / browser. Type-safe API contracts."
manifest_path = "~/.claude/agents/code-implementer-typescript.md"
# ─── Researcher family ─────────────────────────────────────────────────
[[profile]]
id = "researcher"
role = "researcher"
caps = "RO-WEB-FS"
default_model_ref = "anthropic/claude-sonnet-4-6"
description = "Web+codebase research. Evidence-Graded findings. Read-only."
manifest_path = "~/.claude/agents/researcher.md"
[[profile]]
id = "researcher-web"
role = "researcher-web"
caps = "WEB"
default_model_ref = "anthropic/claude-sonnet-4-6"
description = "Web research specialist. WebFetch/WebSearch only."
manifest_path = "~/.claude/agents/researcher-web.md"
[[profile]]
id = "researcher-code"
role = "researcher-code"
caps = "RO-FS"
default_model_ref = "anthropic/claude-sonnet-4-6"
description = "Codebase research. Glob/Grep/Read only."
manifest_path = "~/.claude/agents/researcher-code.md"
# ─── Critic / auditor family ───────────────────────────────────────────
[[profile]]
id = "critic"
role = "critic"
caps = "RO-FS-WEB"
default_model_ref = "anthropic/claude-sonnet-4-6"
description = "Anti-patterns, tech debt, security issues, bugs. Severity-sorted findings."
manifest_path = "~/.claude/agents/critic.md"
[[profile]]
id = "security-auditor"
role = "security-auditor"
caps = "RO-FS-WEB"
default_model_ref = "anthropic/claude-opus-4-7"
description = "9-point differential security review. Risk-classified findings. Opus default — security needs depth."
manifest_path = "~/.claude/agents/security-auditor.md"
[[profile]]
id = "codex-reviewer"
role = "codex-reviewer"
caps = "RO-FS-WEB"
default_model_ref = "codex/gpt-5-codex"
description = "RULE 0.23 DUAL REVIEW. Independent second-opinion via OpenAI Codex CLI."
manifest_path = "~/.claude/agents/codex-reviewer.md"
# ─── Infra family ──────────────────────────────────────────────────────
[[profile]]
id = "infra-implementer"
role = "infra-implementer"
caps = "FS-RW-BASH"
default_model_ref = "anthropic/claude-sonnet-4-6"
description = "Deploys, CI/CD, secrets, container/IaC. Per-project credential isolation."
manifest_path = "~/.claude/agents/infra-implementer.md"
[[profile]]
id = "modal-runner"
role = "modal-runner"
caps = "FS-RW-BASH"
default_model_ref = "anthropic/claude-opus-4-7"
description = "Modal compute orchestrator. Cost gating, KILL GUARD. Opus — irreversible $$ actions need depth."
manifest_path = "~/.claude/agents/modal-runner.md"
# ─── ML family ─────────────────────────────────────────────────────────
[[profile]]
id = "ml-implementer"
role = "ml-implementer"
caps = "FS-RW-BASH-PLAN"
default_model_ref = "anthropic/claude-opus-4-7"
description = "ML training/inference. Math-First, Pre-Experiment Check, Modal protocol."
manifest_path = "~/.claude/agents/ml-implementer.md"
[[profile]]
id = "ml-researcher"
role = "ml-researcher"
caps = "RO-WEB-FS"
default_model_ref = "anthropic/claude-opus-4-7"
description = "ML literature, benchmarks, reproducibility. Math-First read-only."
manifest_path = "~/.claude/agents/ml-researcher.md"
# ─── Specialist anchors (project-specialists) ──────────────────────────
#
# Полный список 59 манифестов остаётся в `~/.claude/agents/*.md`.
# Здесь — представительные anchors, marketplace UI обходит directory
# и собирает остальные из frontmatter.
[[profile]]
id = "cartoon-studio-specialist"
role = "project-specialist"
caps = "FS-RW-BASH-AGENT"
default_model_ref = "anthropic/claude-sonnet-4-6"
description = "Cartoon Studio AI video generation. Next.js 16 + Drizzle + SQLite. Flux 2 Pro / Kling O3 / ElevenLabs."
manifest_path = "~/.claude/agents/cartoon-studio-specialist.md"
[[profile]]
id = "keisei-os-specialist"
role = "project-specialist"
caps = "FS-RW-BASH-AGENT"
default_model_ref = "anthropic/claude-sonnet-4-6"
description = "KeiSei OS 4-layer runtime, 13 primitives, 14 Brain Tools."
manifest_path = "~/.claude/agents/keisei-os-specialist.md"
# ─── Validator / cost-guardian (lightweight) ───────────────────────────
[[profile]]
id = "validator"
role = "validator"
caps = "RO-FS-WEB"
default_model_ref = "anthropic/claude-haiku-4-5"
description = "RULE 0.4 fact-checker. API existence, version compat, doc claims. Haiku — narrow tasks."
manifest_path = "~/.claude/agents/validator.md"
[[profile]]
id = "cost-guardian"
role = "cost-guardian"
caps = "RO-FS-BASH-WEB"
default_model_ref = "anthropic/claude-haiku-4-5"
description = "Pre-launch compute cost verification. Dashboard balance, running jobs, head-room."
manifest_path = "~/.claude/agents/cost-guardian.md"
[[profile]]
id = "patent-compliance"
role = "patent-compliance"
caps = "RO-FS-BASH"
default_model_ref = "anthropic/claude-haiku-4-5"
description = "Pre-filing IP cross-ref scan. Greps for unfiled-patent references."
manifest_path = "~/.claude/agents/patent-compliance.md"