Get Team Context Tool
get-team-context-toolThe team's org map: every repository the team ships to, how alive each one is (merged/open
PR activity, top contributors, last merge), how each deploys to production, whether each is
ready for a coding agent (a compact readiness flag with failing check keys — call
get-repo-readiness for the full checks and recommendations), how repos relate (taught
links plus shared-contributor signals), and the team's confirmed working conventions.
Everything is derived from live shipping data, so it never goes stale like a hand-maintained
repo list in an agent rules file.
Pass repository (the repo you are working in) to get a FOCUSED map: that repository's
details, the repositories most relevant to it with the reasons they matter, and the rest as
names only — the right call at session start in a multi-repo org, instead of pulling the
whole atlas. When the map is wrong or incomplete, teach it with link-repositories.
For size/review norms, use assess-change-fit.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| repository | No | The repository you are working in, as owner/name (from `git remote get-url origin`) or a bare repo name. Binds the session to the owning team AND focuses the map: you get this repo, the repos most relevant to it (with reasons), and the rest as names only. | |
| window_days | No | Activity window in days for PR/contributor signals. Defaults to 90, clamped to 7–180. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| team | Yes | Team name. | |
| focus | No | Present in focused mode: the repository the map is scoped to. | |
| links | Yes | Taught repository relationships (from, to, relation, note) — recorded via link-repositories. | |
| conventions | Yes | Confirmed team/repo working conventions the team has taught its Coderbuds agents. Focused mode returns only team-wide and focus-repo conventions. | |
| window_days | Yes | Activity window in days. | |
| repositories | Yes | Active repositories with activity level, top contributors, production deploy setup, and a compact agent-readiness verdict (ready flag + failing check keys; use get-repo-readiness for detail). Full map: most active first. Focused map: the focus repository first, then the most relevant repositories, each with `relevance.reasons`. | |
| relationships | Yes | Repository pairs the same people ship to, with shared-contributor counts and co_changes (how often one author merged into both within 48h — "ships together in practice", which ranks a pair higher). Pairs taught as unrelated are suppressed. | |
| other_repositories | No | Present in focused mode: the remaining active repositories, names only. | |
| archived_repositories | Yes | Decommissioned repositories, by name — they exist but no work should land there. |