# Reviewing the whole agent roster (roles, boundaries, models) Use when the user asks to review "all agents", their duties, limits and models, or to restructure profiles (split, merge, rename, add). This is an approval-gated, multi-file change: deliver findings + a numbered plan + questions first, apply only after approval, one decision group at a time. ## 1. Inventory in one pass (read-only) With the user's explicit permission for this review, walk each profile's config in a single script and print one line per profile: `model.provider/model.default`, `agent.reasoning_effort`, `fallback_providers`, `delegation.provider/model`, SOUL.md chars, MEMORY/USER chars, skill count, non-`auto` auxiliary slots. Skip leftover `.deleted*` dirs but report them. - Telegram bot presence: count matching lines only (`grep -c TELEGRAM_BOT_TOKEN .env`), never print values. - Another person's profile (e.g. an assistant run for a friend or family member): skip it unless that person and the user agree; never read its memories or conversations. - Add `hermes auth list` (live providers) and the cron list per profile (step 3). ## 2. Diff the SOULs, not read them whole Count every stripped line across all SOUL.md files; lines present in ≥5 profiles are the shared template (start/security boilerplate). Print each profile with those lines removed — what remains is the role-specific contract, small enough to compare side by side. Profiles with custom, non-template security text are deliberately isolated (separate employer/business/person): review them, but exclude them from roster-wide template edits. ## 3. Detect scope creep from cron jobs `hermes -p cron list --all` for every profile. A recurring job outside the profile's stated role is the clearest drift signal (e.g. a discovery agent running a social account's posting/stats jobs; an email assistant running a quota report for a cancelled subscription). Also scan its MEMORY.md and locally-created skills for work outside the role. Report each job as in-role / out-of-role / dead (tied to a provider or subscription that no longer exists), and ask where out-of-role work should move — do not move or pause it unasked. When a SOUL is narrower than what the user actually uses the agent for, do not default to recommending a narrowing: ask whether to formalize the real usage first. Users often deliberately grow useful agents (e.g. a discovery agent becoming a tool coordinator) and expect the SOUL to catch up with reality. ## 4. Cross-check every description layer against config - SOUL "Model" sections vs `config.yaml` (they drift; config is what runs). - Root `AGENTS.md` roster and the notes vault `Agent Rolleri.md` / role cards vs the actual profile list: missing profiles, cards with no profile, stale facts (old models, retired workers). - Fallback chains containing a provider the user no longer pays for or has ruled out. - Profiles with no fallback at all. - Role weight vs model tier (see `agent-model-tiering`): unresolved-incident roles (repair specialist) need the strongest model; planning-only roles may not need it. ## 5. Before splitting or adding coder roles, map projects to stacks Detect each repo's stack under `` (pubspec.yaml → Flutter, Gradle files → Android, `*.xcodeproj`/`ios/` → iOS, package.json → web/node, manifest.json → browser extension, Python files → Python). A per-stack split (android/ios/flutter/web) can leave a project with no owner (e.g. a Python desktop app) or create a role with no current project (no native iOS repo) — surface both as questions. Prefer `hermes profile rename` for a role that continues (keeps skills, memory, bot) and a fresh `profile create` (no clone) for a genuinely new role so stale cloned memory does not travel. ## 6. Permissions shown to the user: enforced vs declared When describing or designing an agent's permissions (folders, accounts, apps), separate what Hermes enforces (toolsets, approval settings, which credentials/tokens exist in that profile) from what is only written in SOUL.md prose. Presenting declared rules as enforced gives a false sense of security. ## 7. Small mechanics - Rename the default profile's display name: `hermes profile rename default ""` — the canonical id stays `default`; then update its SOUL title and the roster docs (approval-gated files) separately. - Deleting leftover `.deleted*` profile dirs needs explicit user approval; check first that they are real dirs (no symlinks out), unused by any process, and say no backup was kept. - A profile the user says is working well is frozen: leave it out of the plan entirely. ## 8. Whole-system audit (roles + skills + docs + folders) When the review covers "every md file, every skill, every folder" (separation of duties, "where do I find X", projects vs videos never in one folder), the coordinator does steps 1 to 4 itself, writes raw notes, then fans out read-only auditors early, before its own context grows large (a 250K+ coordinator context preceded a gateway kill). - Write one shared context file first: goal in the user's terms, hard exclusions (another person's profile/folder, private/personal/backup paths excluded before scanning, only the approved external-disk folder, no secrets printed, skip node_modules/.git/build), the verified ground truth (repos, workspaces, profiles), and the report format. - Split by domain, one auditor each: skills inventory vs roles; vault guide layer + role cards + lessons; project notes vs repo md + git evidence; media/workspace folder layout. - Finding categories that make reports mergeable: STALE, BROKEN POINTER, ROLE OVERLAP, FOLDER MIX, DUPLICATE/CONFLICT, MISSING ("where is X" gap); each with evidence path and a smallest-fix proposal. Each auditor states honestly what it skipped. - Reports are appended incrementally (see `interrupted-work-recovery.md`). The coordinator merges them into one numbered plan and applies nothing until approved. - Verify every alarming finding yourself before it reaches the user. Auditors see artifacts, not intent: a "profile X deleted N records against its SOUL" finding can be a deletion the user ordered minutes earlier. Ask the user (or, with the user's explicit permission, check that profile's own session history) whether that action was ordered; registry/log timestamps ending in `Z` are UTC (convert to the user's time zone). Report the corrected finding (real issue: SOUL text out of date), and say which findings you did not verify. - For a file that vanished during the audit, ask the user and the agents that had access before blaming an agent; searching other profiles' conversation databases needs the user's explicit permission and never covers isolated profiles. If nothing matches, ask instead of guessing. - Merge into one summary file next to the reports (root problems, then phases with an owner per phase: the orchestrator for guides/skills/SOULs, the librarian for the vault, project PMs for project notes, the storage agent for moves) and write the lesson note the root AGENTS.md requires. - When the user says another agent's analysis is still coming and the plan will be built together step by step, stop after delivering findings; do not start any phase. ## 9. Merging a sibling agent's plan into the audit When a product PM sends its own architecture/migration plan that touches the same area (e.g. media storage): - Read the plan files in that profile's scratch dir, then re-count its key numbers with a read-only script (record counts, path-prefix breakdown) before endorsing them. - Check whether the plan cements a problem the audit flagged, e.g. registering a mixed folder (videos inside the code root) as a permanent storage source. Propose: decide the target layout first, mark the old location legacy/read-only, and run code-only phases (config consolidation, registry + tests) in parallel while data-migration phases wait for that decision. - For protected-disk guards on the user's machine, prefer an allowlist (only the approved external folder may be a source) over a blocklist of forbidden disks; keep the blocklist for other installs. Marker files go inside the approved folder, never at the volume root, and are never deleted. - Answer each of the PM's questions with agree/adjust plus a reason, give one combined phase order (audit phases and product phases interleaved), and end with the decisions still open. ## 10. Decision plan file in the notes vault (the user's preferred approval format) When the plan is large and the user wants to answer at their own pace, write it to the vault as a temporary file, not as a long chat message. - Path: vault root, `Everything/GEÇİCİ - Planı .md`, frontmatter `tags: [gecici, plan]` and `durum: taslak`. State at the top that it is temporary and will be moved to `_to_delete/` when the work ends (vault notes are never deleted). - Order: how to use (fill `Cevap:` lines, blank = take my recommendation, write "hayır" to refuse, say "hazır" when done) → goals → principles agreed in chat → current state with evidence and numbers → target layout → numbered steps (owner, scope, acceptance check, which items still need separate approval) → safety frame → questions grouped by theme. - Every question: bold numbered title, options as bullets with the recommendation first and marked "(önerim)", then an empty `Cevap:` line. End with an open "anything to add" item. - When conversation decides something, record it as a decision (in principles or the step), not as a question; if the question already exists, fill its `Cevap:` line as "the user (sohbette): ..." and update every section that described the old recommendation; add new questions for what the decision opened up. - After any insertion, renumber questions to stay contiguous, update every "Soru N" cross-reference, keep list items in order, and verify with a count of `Cevap:` lines and an em-dash count of 0; inserted blocks silently break numbering and references. - Do not start any step until he says "hazır"; then re-read the whole file, because he may have edited text beyond the answer lines. ## 11. Adding a new role profile (e.g. a sales/marketing agent) Mechanics (clone, rename, removal) are in `agent-integration-operations` → `references/profile-lifecycle.md`; this is the role-design part. 1. Check overlap first: read the SOULs of neighbouring roles and the skills of agents that already do part of the job (e.g. a content-strategy agent for calendars, a launch-distribution skill). Define the new role so it decides, and neighbours produce; put the remaining boundary question into the plan file instead of blocking creation. 2. `hermes profile create --clone-from --description "..."` (cloning a lean profile carries the model and auth wiring; the "no API keys yet" warning is harmless when the global pool serves it; confirm with the probe below). 3. Prune the cloned skills by MOVING unrelated skill dirs to a scratch folder (not deleting), then copy only role skills from the shared skills directory keeping the category path. Point to other agents' reference lists by path in the SOUL rather than copying them (one source). 4. Rewrite SOUL.md with: what the role decides; what it hands to which specialist; the research-before-first-time-work section; where to read (hub notes, repos read-only, media); its the notes vault write area as absolute paths; limits (outbound actions need the user); shared red lines; the excluded profile. 5. Probe: `hermes -p chat -Q -q "Tek cümleyle: sen kimsin ve bir işi ilk kez yaparken plandan önce ne yaparsın?"`; the answer must restate the role and the research rule. 6. First task: brief file in the profile's `workspace/`, launched in the background with `env -u PYTHONPATH -u PYTHONHOME hermes -p chat -Q --query-file --max-turns N` and `notify=true`; the brief demands the product's real current state first, a research note, then the plan note, with both paths named. Confirm it is working via the brief's required progress/report file and the background process status. 7. Record the new role and its open boundary question in the decision plan file. ## Report shape Inventory (grouped by model tier) → numbered findings (most important first: policy conflicts, no-fallback profiles, tier mismatches, doc drift, overlaps, maintenance) → proposed order of work → questions under their own heading at the end.