A Team For A System Administrator
One person runs many servers and devices. The main screen is where you work; the helpers watch, audit, do the chores and keep the records, so you spend your time on what needs a person.
mbm2 team generate --preset sysadmin --hosts-from-ssh-config --dry-run # see everything it would write
mbm2 team generate --preset sysadmin --hosts-from-ssh-config # then apply
or type /team edit in the main tab and talk it through (Make or reorganize the team by
chatting). --hosts-from-ssh-config is optional:
without it no inventory and no ssh rule is written.
You Are The Lead
There is no pm and no lead role. The main tab is the lead: workers.json says "lead": "main", the main tab's
session hands chores to the helpers with delegate_task and takes their reports, and the team panel and mbm2 team status --all show lead: you (main tab). You can also write to a helper directly (@ops), or send it work with
mbm2 team send. A change a helper made is never final until you have seen it where it matters: every write on a
host asks you first.
The Four Members
| Member | Does | Runs as | Model |
|---|---|---|---|
<team>-watch (хяналт) |
Read-only rounds over the inventory: disks, memory, failed units, certificates, the age of backups, pending security updates, errors in the logs. Every finding is a «Needs you» item with a severity (critical, warning, info). Woken on a schedule within team_wake_per_hour; it never changes a host |
session, read-only | cheap and fast (deepseek-v4.1-flash, qwen3.8-flash) |
<team>-ops (үйлчилгээ) |
The chores you or the main tab hand over: updates, configuration, users and keys, restarts. One host at a time: it reads the state first, takes a backup before an edit, shows the plan or the diff. It tells docs every change |
session in ask mode | strong (gpt-6.2-sol) |
<team>-sec (аюулгүй байдал) |
Read-only audit: open ports, users and sudoers, ssh settings, the age of keys, known CVEs of what is installed. A weekly report; a critical finding at once. --without sec leaves it out |
session, read-only | strong, with a cheap fallback |
<team>-docs (баримт бичиг) |
Keeps the inventory, the runbooks and a change log: every change ops makes with the host, what, why and how to undo it. It writes where a secret lives, never the secret |
session, edits documentation files only | cheap |
The flow: you or the main tab → ops → docs → you. watch and sec → «Needs you» → you → ops. Findings
reach you through the same list as permission questions and reviews (/needs, mbm2 needs), so nothing a helper
saw waits in a place you do not look.
What Always Waits For You
- Every write on a host.
opsruns in ask mode, so each command that changes something asks first, and you see the command before it runs. PickAllow oncewhile you build trust;Allow alwaysis yours to give, per command. - A reboot, a firewall change, a database change and a deletion are always yours to approve:
ops's own instructions say so, and a message from another member is information, never your approval. - Reading is free:
watchandsecread; they never need to ask for a write because they never make one.
The Inventory And The ssh Rules
--hosts-from-ssh-config reads the Host lines of ~/.ssh/config and nothing else: no key, no IdentityFile, no
user, no address, no password, no Include. Wildcards (Host *), negations and names with odd characters are
skipped. It writes:
hosts.mdin the project: the host aliases, and groups made from the word each alias starts with (web-1,web-2andweb.euare the groupweb; a group is two hosts or more; the rest areother). The groups are the members' areas. Edit the file freely: run the command again only when you want it rebuilt from the ssh config.- Permission rules in the project's
mbm.json(permission.bash):ssh *is refused, thenssh <host>andssh <host> *ask for each host of the inventory. The last matching rule decides, so the refusal comes first and the questions after it; the rest of the file keeps its comments and order.ssh -o … hostwith options before the host does not match the host's rule and is refused: put the options in~/.ssh/config.
The preview shows both files like every other write, the old ones are copied to .mbm/backups/team-<time>/project/
first, and a file whose permission.bash is not an object is left alone with a note saying which rules to add. The
rules cover ssh; scp and rsync keep the project's other bash rules, so add scp * and rsync * rules the same
way if you want them held to the inventory.
Day To Day
mbm2 team status --all # every task, its owner and state; lead: you (main tab)
mbm2 needs # what waits for you: findings, writes, reviews
mbm2 team model <team>/<team>-watch qwen3.8-flash # change a member's model later
See Agent teams for the other presets and Permissions for the prompts you answer.
Published from revision f88fc66f 2026-11-30