--- covers: - Cargo.toml - package.json - Makefile - bin/** - install - src/** - extensions/*/agents/** - extensions/*/profiles/** - extensions/*/commands/** - extensions/*/model-tiers.json - extensions/codex/skills/** - extensions/codex/AGENTS.override.md - extensions/claude/CLAUDE.md - extensions/gemini/** - extensions/antigravity/** - scripts/render_coverage_scorecard.py - scripts/generate_how_to_use_agentic_gif.py --- # agentic reference Technical details moved from the README: layout, install options, platform matrix, JEV and run history. Start with the [README](../README.md) for the overview. --- ## What this is agent-guides is a structured knowledge base for AI coding agents. Instead of writing long system prompts, you install focused, composable guidance files that agents load on demand based on the task at hand. Each **area** (e.g., `devops/kubernetes`) provides: | File type | Purpose | When loaded | |:--------------------|:------------------------------------------|:-----------------------------------| | `AGENTS.md` | Navigation index, load order, constraints | First — always | | `rules/*.md` | Hard constraints the agent must follow | Always, for the active spec | | `skills/*/SKILL.md` | Technical capabilities and patterns | On demand, matching "When to load" | | `workflows/*.md` | Step-by-step checklists, each with an `Example request:` line | On `/command` trigger | `agentic` does not install `prompts/*.md` files. An upgrade removes prompt files that an older release installed when they are unchanged; edited copies stay in place. --- --- ## Repository structure ```text agent-guides/ ├── areas/ │ ├── software/ # Application development │ │ ├── general/ # Shared rules + develop-feature, debug-issue, new-project, refactor-module, code-review │ │ ├── backend/ # Python/Go/Java services: API contracts, data access, security, testing │ │ ├── frontend/ # Rules only: components, accessibility, performance │ │ ├── data-engineering/ # Rules only: pipelines, schemas, governance, PII │ │ ├── mlops/ # Rules only: reproducibility, governance, serving safety │ │ ├── mobile/ # Rules only: offline, performance, store compliance │ │ ├── qa/ # Rules only: test strategy, data, flakiness, gates │ │ └── security/ # Secure coding, secrets, dependencies, compliance │ └── devops/ # Platform and operations │ ├── kubernetes/ # Workload standards, Helm, pod troubleshooting, upgrades │ ├── ci-cd/ # GitLab CI first, GitHub Actions, supply chain, release pipeline │ ├── infrastructure/ # Terraform, Ansible, state, drift, iac-change │ ├── observability/ # Golden signals, alerting, retention, SLO alerts │ ├── sre/ # On-call, SLO policy, incident-response │ ├── networking/ # Rules only: ingress, segmentation, TLS │ ├── devsecops/ # Scan gates, SBOM and signing, policy-as-code │ └── database-ops/ # Access, backups, production migrations ├── extensions/ │ ├── opencode/ # OpenCode agent definitions, commands, skills │ │ └── agents/ # SDLC agents + post-task specialists for .opencode/agents/ │ ├── claude/ # Claude Code configs │ │ └── agents/ # SDLC agents + post-task specialists for .claude/agents/ │ ├── antigravity/ # Antigravity platform configs │ ├── codex/ # Codex custom agents and override configs │ │ └── agents/ # SDLC agents + post-task specialists for .codex/agents/ │ └── gemini/ # Gemini-specific configs │ │ └── agents/ # SDLC agents + post-task specialists for .gemini/agents/ ├── areas/template/ # Authoring templates — start here for new content ├── docs/ # Setup and usage guides ├── AGENTS.md # Root agent guidance (loaded into every project) └── src/ # Rust CLI installer (self-contained binary) ``` ### README images - `images/coverage_scorecard.png`: `python3 scripts/render_coverage_scorecard.py` after `make build`. It reads the `areas/` catalog, `reports/area-quality.json` (`make assess-areas`), the `scripts/check_artifacts.py` findings, the always-on budget (`scripts/context_budget.py --all-selections`), and `reports/bench-round6.json`, a copy of benchmark round 6 from [results.md](agentic-v2-lean/results.md). It renders with headless Chrome and Pillow; `--no-render` updates only `reports/coverage-scorecard.jsx`. - `images/how_to_use_agentic.gif`: `scripts/generate_how_to_use_agentic_gif.py --work ` (needs `pyte` and Pillow in a venv, and headless Chrome). It drives the real `agentic tui` (lean profile per host, a demo company rule) and asks each host's main session one short question. It makes three paid host calls; `--reuse` renders saved answers again. --- ## Install details ### Requirements `agentic` is a single self-contained binary — no runtime dependencies. The knowledge base (areas, extensions) is embedded into the binary. - required: nothing (the binary works standalone) - optional: agent binaries such as `codex`, `opencode`, `claude`, `gemini` (for doctor smoke checks and actual agent work) Build from source (Rust toolchain required): ```bash make release-build && make install ``` ### Upgrade behavior ```bash agentic upgrade agentic upgrade --project-dir /path/to/project agentic upgrade --force --dry-run agentic upgrade --force ``` `upgrade` downloads the newest release binary from GitHub Releases and atomically replaces the installed one, then synchronizes project instructions using the new executable. Recognizable legacy artifacts are adopted; non-overlapping local edits are merged. Conflicts are replaced after backup, and fully user-owned instructions are preserved. `--force` rebuilds Agentic artifacts without prompts, using manifest settings or `default + software.general` when settings are unavailable. `AGENTIC_SKIP_BINARY_UPGRADE=1` skips the GitHub release query and the binary replacement: `upgrade` only refreshes the project (offline machines, CI, a pinned binary). - **No `.agentic.json`.** When the project has Agentic files but no `.agentic.json`, `upgrade` stops with an error: the install settings are unknown. Run `agentic install --project-dir --agent-os ... --areas ... --specializations ...` (or `agentic tui`) with the intended settings. `--force` keeps the old behaviour and rebuilds with `default + software.general`. - **Removed specializations.** `install` and `upgrade` replace a removed specialization with its successors and print a warning. The alias table is `SPEC_ALIASES` in `src/kb.rs`: | Removed | Installed instead | |---|---| | `software.full-stack` | `software.backend`, `software.frontend`, `software.general` | | `software.platform` | `devops.kubernetes`, `devops.infrastructure`, `devops.ci-cd` (adds the `devops` area) | An alias applies only when the knowledge base no longer has that specialization. - **Unknown specializations.** A specialization that does not exist and has no alias stops `install` and `upgrade` with `unknown specialization(s): . Available: ...`. `upgrade --force` falls back to `default + software.general`. - **Company rules.** `upgrade` replays `settings.company_rules`, fetches git sources again (or uses the cached copy offline), and removes company files that a source dropped and pack rules that became excluded ([company rules](company-rules.md)). - **Root `AGENTS.md` mode.** `upgrade` replays `settings.agents_md` (see [Root AGENTS.md: generate or keep](#root-agentsmd-generate-or-keep)). In `keep` mode, `upgrade` and `upgrade --force` never change, move, or delete root `AGENTS.md`. Unrelated project files and global configuration are preserved. Backups live in `.agentic-backups/` and may contain credentials; exclude them from source control. See [smart upgrade behavior](agentic-upgrade/README.md) for details. --- ## SDLC agent team: details The same 7-agent SDLC team works across **Claude Code**, **OpenCode**, **Codex**, and any tool that supports agent or subagent files. Agentic also ships post-task review specialists for instruction quality and docs/memory hygiene, automatic for hooked workflows and optional elsewhere. | Agent | Role | Invoke when | |:------------------|:-----------------------------------------------|:----------------------------------------------| | `product-owner` | Scope, acceptance criteria, SDLC orchestration | Start of any feature; final acceptance | | `pm` | Planning, milestones, risk register | Scope is defined, execution needs tracking | | `team-lead` | Architecture, code review, quality gates | Planning and pre-release sign-off | | `developer` | Implementation, tests, delivery | Implementation plan is approved | | `qa` | Verification, defect classification, go/no-go | Developer hands off an increment | | `analyst` | Requirements, scenarios, API/data contracts, UX states | Planning; requirement and contract review | | `devops-engineer` | CI/CD, IaC, platform reliability | Anything touching infra, pipelines, or deploy | Each agent has an `Identity`, `Communication Style`, `Success Metrics`, and explicit `Boundaries` (OpenCode agents also carry a one-line `vibe`), so roles never overlap and handoffs are always documented. In Claude Code the `product-owner` runs as the main session because subagents cannot start other subagents. Post-task specialists run outside the mandatory SDLC role matrix. The six delivery workflows listed in the [Review Pipeline](review-pipeline.md) invoke both automatically after successful top-level delivery: | Agent | Role | Invoke when | |:-----------------------|:-------------------------------------------------|:-------------------------------------------------| | `instruction-reviewer` | Post-task instruction effectiveness review | Successful delivery workflow with a review hook | | `memory-curator` | Post-task docs and memory hygiene recommendations | Successful delivery workflow with a review hook | See [Review Pipeline](review-pipeline.md) for the guidance-mode pipeline and `.reviews//` output convention. The installed [REVIEW_PIPELINE.md](../REVIEW_PIPELINE.md) is loaded only at review time. Reports are compact, evidence-backed, and advisory; no instructions, docs, or memory are changed automatically. | Platform | Agent path | Format | Guide | |:------------|:--------------------------------|:-------------------------------|:------------------------------------------------------------------------------------------------| | Claude Code | `project/.claude/agents/*.md` | Markdown with YAML frontmatter | [Claude Code subagents](https://docs.claude.com/en/docs/claude-code/sub-agents) · [setup](claude-code/README.md) | | OpenCode | `project/.opencode/agents/*.md` | Markdown with frontmatter | [OpenCode agents](https://opencode.ai/docs/agents/) · [repo setup note](opencode_setup.md) | | Codex | `project/.codex/agents/*.toml` | TOML custom agents | [Codex subagents](https://developers.openai.com/codex/subagents) | | Gemini | `project/.gemini/agents/*.md` | Markdown with YAML frontmatter | [Gemini subagents](https://geminicli.com/docs/core/subagents) | --- ## JEV: native decision hooks [JEV](jev-integration/README.md) is an optional, paid decision service (TypeSafe AI) that runs inside each host's native hooks. It does not add an MCP server or a workflow runner. - **Workflow selection.** On the first prompt it picks one of the installed `.agent/workflows/*.md` (options use each workflow's `selection.use-when`), or `native` / `clarify`, and tells the host to execute the workflow as the declared initiator. A role-neutral workflow (no `roles`, no `execution.initiator`) runs in the main session; with `team`, each step goes to the installed role agent that fits it, one subagent per step at most. - **Model routing.** Before a subagent starts, it picks the cheapest sufficient tier (`fast` / `balanced` / `frontier`). The hook maps the tier to a model: Claude `haiku`/`sonnet`/`opus`, Codex `extensions/codex/model-tiers.json`, OpenCode by catalog price, or by the shipped tier map `extensions/opencode/model-tiers.json` when the catalog has no usable prices. Without a confident answer the role default applies; on OpenCode it falls back to the role's tier model, so a default install also routes. Explicit pins are preserved. - **Permission decisions.** allow / deny / ask from path and command metadata (never file content), with automatic approval limited to bounded project paths. - **Review packet.** A task-scoped `.agentic/jev/review-*.json` packet goes to `instruction-reviewer`. - **Safety and audit.** Errors, timeouts (8 s) and confidence below the per-question threshold (`settings.jev.thresholds`, default 0.9) keep the native behavior. Cleansed audit records with `decision`, `outcome` and `model_source` are kept 30 days in `.agentic/jev/`. ```sh agentic install --project-dir --agent-os claude,codex,opencode --areas software \ --specializations software.backend,software.general --enable-jev # TYPESAFE_API_KEY or JEV_API_KEY in env/.env make blackbox-claude # paid real-CLI check; also blackbox-codex, blackbox-opencode, blackbox (all) ``` --- ## Feature support by platform ✅ supported **and verified in a real CLI blackbox run** · ☑️ supported, covered by offline tests only · ➖ not supported | Feature | OpenCode | Codex | Claude Code | Gemini | Cursor · Kilocode · Antigravity | |:--|:-:|:-:|:-:|:-:|:-:| | SDLC role subagents (9 roles incl. `analyst`, reviewers) | ✅ | ✅ | ✅ | ☑️ | ➖ | | Rules (auto-loaded) | ☑️ | ☑️ ¹ | ✅ | ☑️ ¹ | ☑️ | | Skills | ☑️ | ☑️ ¹ | ✅ | ☑️ ¹ | ☑️ | | Workflows as commands | ✅ | ✅ ¹ | ✅ | ☑️ ¹ | ☑️ ¹ | | MCP servers (Context7, Playwright, …) | ☑️ | ☑️ | ☑️ | ☑️ | ☑️ (Cursor, Kilocode) | | Memory guidance (`MEMORY.md`) | ☑️ | ☑️ | ✅ | ☑️ | ☑️ | | Post-task review (`instruction-reviewer` + `memory-curator`) | ✅ | ✅ | ✅ | ☑️ | ➖ | | Model profiles per role | ☑️ (openai, githubcopilot, user) | ☑️ (TOML defaults) | ☑️ (`anthropic`) | ➖ | ➖ | | Telegram: task finished | ✅ (plugin) ² | ✅ (hooks) | ✅ (hooks) | ➖ | ➖ | | Telegram: waiting for input | ✅ (plugin) ² | ☑️ (hooks) ² | ☑️ (hooks) ² | ➖ | ➖ | | **JEV** · workflow selection | ✅ | ✅ | ✅ | ➖ | ➖ | | **JEV** · subagent model routing | ✅ | ✅ | ✅ | ➖ | ➖ | | **JEV** · permission decisions | ☑️ | ☑️ | ☑️ | ➖ | ➖ | | **JEV** · reviewer evidence packet | ☑️ | ✅ | ✅ | ➖ | ➖ | | Real-CLI blackbox target | `make blackbox-opencode` | `make blackbox-codex` | `make blackbox-claude` | ➖ | ➖ | ¹ Through the shared `.agent/` directory that `AGENTS.md` tells the agent to read, not a native discovery path. ² Real CLI, real Telegram bot, outside the blackbox target (2026-10-16). OpenCode V2 delivered both events; the Claude/Codex waiting messages were sent through the same script with recorded hook payloads. Real runs: - **Claude Code 2.1.301, Agentic 1.4.0, 2026-10-16:** all ten checks passed (`.agentic-blackbox/20261016-165654`). JEV permission evaluations fell back below confidence 0.9 in that run. - **Claude Code 2.1.302, Agentic 1.4.0, 2026-10-17, `opus` session:** all ten checks passed (`.agentic-blackbox/20261017-232709`) after the hand-back and profile-fallback fixes. JEV routed exploration to `haiku`; the other spawns fell back to the Claude profile role models (`developer`/`qa` → `sonnet`, `team-lead` → `opus`, reviewers → `haiku`) instead of inheriting `opus`. See [verification](jev-integration/verification.md). - **OpenCode 2.0.29 (`openai/gpt-6-luna`), Agentic 1.4.0, 2026-10-16** (`.agentic-blackbox/20261016-233233`): JEV selected the workflow, and the agent ran PO → `pm` → `team-lead` → `developer` → `qa` → `instruction-reviewer` + `memory-curator` with the new role names. An independent probe verified the calculator. JEV answered `no_decision` for all ten spawns, so subagent model routing was not re-confirmed (it was in the 1.3.0 run). - **Codex 0.163.0, Agentic 1.4.0, 2026-10-17** (`.agentic-blackbox/20261016-232317`): all six checks passed. JEV selected the workflow and applied `gpt-6-luna` to 8 of 9 spawns (PO, `pm`, `team-lead`, `developer`, `qa`, both reviewers); the calculator was verified independently, and the Telegram `Stop` hook delivered. The run used `BLACKBOX_CODEX_SANDBOX=danger-full-access`, because this host (`kernel.apparmor_restrict_unprivileged_userns=1`) blocks the bubblewrap `workspace-write` sandbox. - **Codex 0.161.0 and OpenCode V2, Agentic 1.3.0, 2026-10-14:** model routing and calculator checks passed. Details: [JEV verification](jev-integration/verification.md). --- ## What gets installed where `agentic` installs shared guidance into `.agent/` and selected IDE files into directories like `.claude/`, `.opencode/`, and `.codex/`. Generated runtime guidance goes to `AGENTS.md`; OpenCode also gets `.opencode/AGENTS.md`. With `--agents-md keep`, root `AGENTS.md` belongs to the project and the generated guidance goes to other files (see [below](#root-agentsmd-generate-or-keep)). ```text project/.agent/ ├── rules/ ← constraints active for every task in this project ├── company/ ← company rules (only with settings.company_rules) ├── skill-packs/ ← /LICENSE of each skill pack (only with settings.skill_packs) ├── skills/ ← capabilities loaded on demand (pack, company, and skill pack skills) └── workflows/ ← processes triggered by slash commands project/.claude/ ← with --agent-os claude ├── CLAUDE.md ← @AGENTS.md / @MEMORY.md imports ├── agents/ ← 9 role subagents (tools + model per profile) ├── rules/ ← auto-loaded rules; company--.md copies of company rules ├── skills/ ← native skills ├── commands/ ← one / wrapper per .agent/workflows/*.md └── settings.json← agent: product-owner, MCP approvals, JEV/Telegram hooks (ownership-tracked) ``` --- ### Company rules in the manifest `settings.company_rules` is optional; without it the feature is off. | Field | Meaning | |---|---| | `sources[]` | `{"path": ""}` or `{"git": "", "ref": "", "subdir": ""}`, in order; the first source wins on equal paths. | | `exclude[]` | Pack rule ids `//` that install skips; `replaces:` in a company rule adds to it. | A source may also hold `skills//**` and `workflows/.md`. Install places them on every selected host next to the pack skills and workflows; a company one replaces the pack one with the same name, and `AGENTS.md` lists them. Company files in `managed_files` have `marker: company` and `source: company:/` (skills and workflows: `company:/skills/` and `company:/workflows/`). Install flags: `--company-rules-path `, `--company-rules-git [#ref][:subdir]`, `--company-rules-exclude `. See [company rules](company-rules.md). ### Skill packs in the manifest `settings.skill_packs` is optional; without it the feature is off. Each entry has `id`, `git` (with `ref`) or `path`, `skills_root` (default `skills`), `select`, `exclude`, and, for a git pack, the locked `commit`. Install writes every skill (any directory with `SKILL.md` below `skills_root`, flattened to `/`) into the skills directory of each selected host and `.agent/skills/`, and the pack license to `.agent/skill-packs//LICENSE`. Files in `managed_files` have `marker: skill-pack` and `source: skill-pack://`. A skill name that clashes with a pack, company, or other skill pack skill is an error. Install flag: `--skill-pack [#ref][:skills_root]|`. Commands: `agentic skills add|list|remove|update`. See [skill packs](skill-packs.md). ### Root AGENTS.md: generate or keep `agentic install --agents-md ` selects who owns root `AGENTS.md`. `--agents-md=keep` also works. | Mode | Root `AGENTS.md` | Generated guidance | |---|---|---| | `generate` (default) | agentic writes it and tracks it in `managed_files`. | `AGENTS.md`; `.opencode/AGENTS.md` for OpenCode. | | `keep` | The project owns it. agentic never writes, overwrites, moves, or deletes it. If it is missing, agentic does not create it and prints a note. | `.agent/AGENTS.md` (always) and `AGENTS.override.md` at the project root for Codex. OpenCode gets `.agent/AGENTS.md` from the plugin `.opencode/plugins/agentic-agents-md.ts`; `.opencode/AGENTS.md` is not written. | In `keep` mode each generated file holds the text of root `AGENTS.md`, a `---` separator, and then the usual generated content: header, company rules lines, shared guidance, and specialization sections. Both files carry the agentic marker and a `managed_files` entry, so `upgrade` updates them and removes them when they become obsolete. A changed root `AGENTS.md` reaches the generated files on the next `install` or `upgrade`. How each host reads the guidance in `keep` mode: - **Claude Code.** The installed `.claude/CLAUDE.md` imports `@../.agent/AGENTS.md` instead of `@../AGENTS.md`. - **Codex.** In each directory Codex checks `AGENTS.override.md` before `AGENTS.md` and includes at most one file per directory, so the root `AGENTS.override.md` replaces root `AGENTS.md` for Codex. Source: [Codex: AGENTS.md](https://learn.chatgpt.com/docs/agent-configuration/agents-md) (checked 2026-10-28). The `team` profile file `.codex/AGENTS.override.md` is a different file and does not change. - **OpenCode.** OpenCode 2.0.x loads only the global and the project `AGENTS.md` (from the current directory up to the project root). In a local check (OpenCode 2.0.29, 2026-10-28) it ignored `instructions` from every config source and did not read `.opencode/AGENTS.md`, although the [rules page](https://opencode.ai/docs/rules/) documents `instructions`. So in `keep` mode agentic installs the plugin `.opencode/plugins/agentic-agents-md.ts` and does not write `.opencode/AGENTS.md`. The plugin uses the session `context` hook, the same hook that the gate plugin uses: it adds the text of `.agent/AGENTS.md` (without the agentic metadata block) as one system part to every request. It reads the file again when the file changes. The plugin is a managed file: `generate` mode does not install it and removes an unchanged copy. Root `AGENTS.md` also reaches OpenCode natively, so the short root text is in context twice. The check above with a code word in `.agent/AGENTS.md` returned the code word with the plugin installed. - **Other hosts** (`default`, Cursor, Kilo Code) read root `AGENTS.md` only. `.agentic.json` stores `settings.agents_md: "keep"`; `generate` writes no key. `install` without `--agents-md`, the TUI, and `upgrade` use the saved mode. The TUI does not ask for the mode. Switching modes: - **`generate` → `keep`.** The generated root `AGENTS.md` stays in place, and the manifest stops tracking it. The file now belongs to the project. While it still carries the agentic marker, agentic does not copy its text into the generated files and prints a warning: replace it with the short project `AGENTS.md`. - **`keep` → `generate`.** agentic removes `.agent/AGENTS.md` and the root `AGENTS.override.md` that it generated, if they are unchanged; otherwise it keeps them and prints a warning. The same applies to the OpenCode plugin `.opencode/plugins/agentic-agents-md.ts`. A root `AGENTS.md` that the project owns is not overwritten (`Skipping unmanaged target on rerun`); delete or move it to get the generated file again. After a `keep` install, agentic prints the generated paths that the project usually adds to `.gitignore`: `.agent/*` (except files the project commits, such as `.agent/company`), `.agents/`, `.claude/` (except `rules/company-*` with company rules), `.codex/`, `.opencode/`, `AGENTS.override.md`, `.agentic.json`, `MEMORY.md`, `REVIEW_PIPELINE.md`, `CLAUDE.md`. See [committing only a short AGENTS.md](company-rules.md#commit-only-a-short-agentsmd). --- ## Agent IDE options (interactive install) ### MCP - `opencode-docs` (safe): adds OpenCode documentation through a local MCP server. - `playwright` (sensitive): adds browser automation through Playwright MCP. - `kubernetes` (dangerous): adds Kubernetes cluster access through Kubernetes MCP. - `youtube-transcript` (safe): adds YouTube transcript lookup through a local MCP server. - `docker-mcp` (dangerous): adds Docker MCP Gateway as the generated `docker` MCP server. - `context7` (safe): adds a remote MCP server for up-to-date framework, library, SDK, and API documentation. - `anydb` (dangerous): adds database access through AnyDB MCP. ### Telegram notifications (OpenCode, Claude Code, Codex) - Every host sends through the shared `.agent/notify/telegram.py`: OpenCode through its V2 plugin, Claude Code and Codex through native hooks. Messages arrive when the agent finishes and when it waits for input (permission or question). - Agent Markdown is rendered as Telegram formatting: bold, code, links, lists, tables as monospace blocks. Long answers arrive as a `.md` attachment with a preview. - The header names the agent and the model (`🤖 product-owner · claude-opus-5-5`). Only the coordinator's final turn, with no background work left, says `✅ Задача завершена`; other turns say `💬 Промежуточный ответ`. - Enable with `--enable-telegram` or the interactive prompt; credentials stay in `~/.config/agentic/config.json`. See [Telegram notifications](notifications/README.md). ### OpenCode Plugins - `Agent Model Mapping`: maps `.opencode/agents/*.md` roles to main and fallback OpenCode models during interactive `agentic install`/`agentic tui`. Stored internally as `agent-model-mapper`; OpenCode startup never prompts or writes project files. ### Role profiles (all hosts) A profile has two axes: the role set and an optional model profile. Each host has its own store: ```text ~/.config/agentic//profiles//profile.json # host = claude | codex | opencode {"name": "my", "base": "team", "agents": ["developer", "qa"], "models": "anthropic"} ``` - `base` (`lean` or `team`) drives host behavior: Codex memories and `AGENTS.override.md`, the Claude main agent (`product-owner`, only when the profile lists it), and the Claude workflow command wording. - `agents` is a subset of `explorer`, `reviewer` and the 9 team roles. Only these agent files are installed; the OpenCode config declares only these roles. Unknown names, bases, or ids fail the install before any write. - `models` names a model profile: `anthropic`/`none` for Claude Code, an OpenCode model profile id for OpenCode. Codex has no model profiles and ignores it with a warning. `null` keeps the current model profile. - `lean/` and `team/` are seeded the first time `agentic profile` or the TUI runs. Existing files are not overwritten; an edited `lean/profile.json` is used instead of the built-in definition. One exception: an unedited `lean` seed of an older release (`"agents": ["explorer", "reviewer"]`, `"models": null`) follows the built-in `lean` (`explorer` only) and is rewritten on the next seed. To keep the reviewer, use a custom profile. - A directory with only `opencode.json` stays an OpenCode model profile and is not listed as a role profile. - `.agentic.json` stores `settings.profile_ids` (host → id) and `settings.profile`, the base for JEV: `team` only when every selected host has a `team` base. `settings.profile_defs` keeps a copy of each custom profile, so a sync or upgrade without the user file (for example on a teammate's machine) installs the same roles. - Install: `--profile ` for every host, or `--profile claude=team,codex=lean` per host. The TUI asks once per selected host, after the Agent OS step. - CLI: `agentic profile list|show |use [--project DIR]|create --from lean|team`, each with an optional `--host`. `use` reinstalls through the upgrade path: it removes unmodified role files of the old profile, keeps edited ones, and saves the new choice. Restart the agent session afterward. - Host commands: `/profile ` in Claude Code (`.claude/commands/profile.md`) and OpenCode (`.opencode/commands/profile.md`); the Codex skill `.agents/skills/agentic-profile/`, or `! agentic profile use team` in the Codex prompt. ### OpenCode Model Profiles - `models: OpenAI (openai) · role→model`: applies the bundled OpenAI model mapping from `extensions/opencode/profiles/openai/`. - `models: GitHub Copilot (githubcopilot) · role→model`: applies the bundled GitHub Copilot model mapping from `extensions/opencode/profiles/githubcopilot/`. - User profiles: place `opencode.json` files under `$HOME/.config/agentic/opencode/profiles//`. For example, `$HOME/.config/agentic/opencode/profiles/DT/opencode.json` appears in the optional OpenCode plugin menu as `models: DT · role→model`. - `none`: applies no model profile and does not copy the baseline `extensions/opencode/opencode.json` just for profile selection. OpenCode MCPs, Telegram notifications, and model mapping may still create or update `.opencode/opencode.json` when those options are selected. ### Claude Code Model Profiles - The interactive menu labels read `models: Anthropic (anthropic) · role→model alias (opus, sonnet, haiku)` and `models: none · every agent inherits the session model`. - `anthropic` (default): `opus` for product-owner and team-lead, `sonnet` for developer, qa, devops-engineer and analyst, `haiku` for pm and both reviewers. Written as `model:` in `.claude/agents/*.md`. - `none` (`--claude-profile none`): every role inherits the session model. - With JEV enabled, models stay open so JEV hooks route each Agent call to an alias.