@team-ai/teamai-cli 0.40.9 → 0.50.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +167 -11
- package/README.ja.md +32 -29
- package/README.ko.md +32 -29
- package/README.md +32 -29
- package/README.th.md +32 -29
- package/README.zh-CN.md +32 -29
- package/agents/README.md +68 -0
- package/agents/README.zh-CN.md +68 -0
- package/agents/teamai-recall.md +10 -9
- package/dist/cli.js +210551 -136899
- package/dist/index.js +291 -0
- package/dist/runtime-paseo.js +27562 -0
- package/dist/runtime-sandbox.js +94740 -0
- package/dist/runtime-t3.js +41891 -0
- package/drivers/teamai-claude.yaml +6 -0
- package/drivers/teamai-codex.yaml +6 -0
- package/drivers/teamai-local.yaml +5 -0
- package/drivers/teamai-opencode.yaml +6 -0
- package/drivers/teamai-paseo.yaml +6 -0
- package/drivers/teamai-sandbox.yaml +7 -0
- package/drivers/teamai-t3.yaml +8 -0
- package/hooks/teamai-env-hint/HOOK.yaml +1 -0
- package/hooks/teamai-env-hint/README.md +80 -0
- package/hooks/teamai-env-hint/README.zh-CN.md +80 -0
- package/hooks/teamai-env-hint/exec.md +1 -0
- package/hooks/teamai-env-hint/secrets-rule.md +1 -0
- package/hooks/teamai-env-hint/secrets.md +1 -0
- package/hooks/teamai-env-hint/variables.md +1 -0
- package/hooks/teamai-friction-reminder/HOOK.yaml +1 -0
- package/hooks/teamai-friction-reminder/README.md +117 -0
- package/hooks/teamai-friction-reminder/README.zh-CN.md +117 -0
- package/hooks/teamai-friction-reminder/action-gap.md +1 -0
- package/hooks/teamai-friction-reminder/action-gap.zh.md +1 -0
- package/hooks/teamai-friction-reminder/action-share-learnings.md +1 -0
- package/hooks/teamai-friction-reminder/action-share-learnings.zh.md +1 -0
- package/hooks/teamai-friction-reminder/action.md +1 -0
- package/hooks/teamai-friction-reminder/action.zh.md +1 -0
- package/hooks/teamai-friction-reminder/gap-reasons.md +1 -0
- package/hooks/teamai-friction-reminder/gap-reasons.zh.md +1 -0
- package/hooks/teamai-friction-reminder/gap.md +1 -0
- package/hooks/teamai-friction-reminder/gap.zh.md +1 -0
- package/hooks/teamai-friction-reminder/params.yaml +12 -0
- package/hooks/teamai-friction-reminder/problem-reasons.md +1 -0
- package/hooks/teamai-friction-reminder/problem-reasons.zh.md +1 -0
- package/hooks/teamai-friction-reminder/problem.md +1 -0
- package/hooks/teamai-friction-reminder/problem.zh.md +1 -0
- package/hooks/teamai-friction-reminder/reason-correction.md +1 -0
- package/hooks/teamai-friction-reminder/reason-correction.zh.md +1 -0
- package/hooks/teamai-friction-reminder/reason-interrupt.md +1 -0
- package/hooks/teamai-friction-reminder/reason-interrupt.zh.md +1 -0
- package/hooks/teamai-friction-reminder/reason-tool-error.md +1 -0
- package/hooks/teamai-friction-reminder/reason-tool-error.zh.md +1 -0
- package/hooks/teamai-friction-reminder/reason-tool-reject.md +1 -0
- package/hooks/teamai-friction-reminder/reason-tool-reject.zh.md +1 -0
- package/hooks/teamai-friction-reminder/task.md +1 -0
- package/hooks/teamai-friction-reminder/task.zh.md +1 -0
- package/hooks/teamai-mr-hint/HOOK.yaml +1 -0
- package/hooks/teamai-mr-hint/README.md +81 -0
- package/hooks/teamai-mr-hint/README.zh-CN.md +81 -0
- package/hooks/teamai-mr-hint/offer-command.en.md +7 -0
- package/hooks/teamai-mr-hint/offer-command.md +10 -0
- package/hooks/teamai-mr-hint/offer-workflow.en.md +7 -0
- package/hooks/teamai-mr-hint/offer-workflow.md +10 -0
- package/hooks/teamai-mr-hint/params.yaml +2 -0
- package/hooks/teamai-package-hint/HOOK.yaml +1 -0
- package/hooks/teamai-package-hint/README.md +64 -0
- package/hooks/teamai-package-hint/README.zh-CN.md +64 -0
- package/hooks/teamai-package-hint/message.md +3 -0
- package/hooks/teamai-todowrite-hint/HOOK.yaml +1 -0
- package/hooks/teamai-todowrite-hint/README.md +68 -0
- package/hooks/teamai-todowrite-hint/README.zh-CN.md +68 -0
- package/hooks/teamai-todowrite-hint/message.en.md +6 -0
- package/hooks/teamai-todowrite-hint/message.md +9 -0
- package/package.json +41 -14
- package/rules/teamai-recall/README.md +78 -0
- package/rules/teamai-recall/README.zh-CN.md +78 -0
- package/rules/teamai-recall/RULE.en.md +36 -0
- package/rules/teamai-recall/RULE.md +43 -0
- package/rules/teamai-recall/block-direct.md +27 -0
- package/rules/teamai-recall/block.en.md +42 -0
- package/rules/teamai-recall/block.md +44 -0
- package/runtimes/teamai-paseo.yaml +5 -0
- package/runtimes/teamai-sandbox.yaml +3 -0
- package/runtimes/teamai-t3.yaml +5 -0
- package/sandboxes/teamai-bwrap.yaml +2 -0
- package/sandboxes/teamai-default.yaml +4 -0
- package/sandboxes/teamai-docker.yaml +5 -0
- package/sandboxes/teamai-podman.yaml +4 -0
- package/sandboxes/teamai-sbx.yaml +4 -0
- package/sandboxes/teamai-seatbelt.yaml +2 -0
- package/sandboxes/teamai-vercel.yaml +4 -0
- package/scorers/README.md +103 -0
- package/scorers/README.zh-CN.md +103 -0
- package/scorers/teamai-adoption.md +11 -0
- package/scorers/teamai-correctness.md +17 -0
- package/scorers/teamai-routing.md +11 -0
- package/skill-data/core/SKILL.md +4 -3
- package/skill-data/core/references/commands.md +300 -67
- package/skill-data/core/references/contribute-member.md +4 -4
- package/skill-data/core/references/troubleshooting.md +128 -18
- package/skill-data/setup/references/join-member.md +13 -9
- package/skill-data/setup/references/manage-admin.md +41 -17
- package/skill-data/setup/references/setup-admin.md +2 -2
- package/skill-data/setup/references/uninstall.md +30 -9
- package/skill-data/share/SKILL.md +17 -12
- package/skill-data/share/references/doc-template.md +3 -4
- package/skill-data/wiki/SKILL.md +1 -1
- package/skill-data/wiki/references/agents/graph-rag-agent.md +5 -1
- package/skill-data/workflow/SKILL.md +39 -16
- package/skill-data/workflow/references/fleet.md +13 -0
- package/skill-data/workflow/references/judging.md +17 -10
- package/skill-data/workflow/references/places.md +64 -7
- package/skill-data/workflow/references/sandbox.md +3 -3
- package/skill-data/workflow/references/session-hosts.md +27 -0
- package/skill-data/workflow-local/SKILL.md +4 -3
- package/skill-data/workflow-local/references/ci.md +1 -1
- package/skills/teamai/SKILL.md +4 -3
- package/workflows/README.md +103 -0
- package/workflows/README.zh-CN.md +103 -0
- package/workflows/teamai-benchmark.yaml +78 -0
- package/workflows/teamai-ci-extract-mr.yaml +66 -0
- package/workflows/teamai-codebase-deep-enrich/README.md +123 -0
- package/workflows/teamai-codebase-deep-enrich/README.zh-CN.md +123 -0
- package/workflows/teamai-codebase-deep-enrich/WORKFLOW.yaml +119 -0
- package/workflows/teamai-codebase-deep-enrich/architecture.md +30 -0
- package/workflows/teamai-codebase-deep-enrich/component.md +30 -0
- package/workflows/teamai-codebase-deep-enrich/params.yaml +1 -0
- package/workflows/teamai-codebase-deep-enrich/scenarios.md +32 -0
- package/workflows/teamai-codebase-enrich.yaml +98 -0
- package/workflows/teamai-draft-learning-updates/README.md +116 -0
- package/workflows/teamai-draft-learning-updates/README.zh-CN.md +116 -0
- package/workflows/teamai-draft-learning-updates/WORKFLOW.yaml +61 -0
- package/workflows/teamai-draft-learning-updates/params.yaml +4 -0
- package/workflows/teamai-finished-sessions/README.md +101 -0
- package/workflows/teamai-finished-sessions/README.zh-CN.md +101 -0
- package/workflows/teamai-finished-sessions/WORKFLOW.yaml +43 -0
- package/workflows/teamai-finished-sessions/params.yaml +1 -0
- package/workflows/teamai-import-from-iwiki.yaml +90 -0
- package/workflows/teamai-import-from-mr/README.md +104 -0
- package/workflows/teamai-import-from-mr/README.zh-CN.md +104 -0
- package/workflows/teamai-import-from-mr/WORKFLOW.yaml +94 -0
- package/workflows/teamai-import-from-mr/draft.en.md +48 -0
- package/workflows/teamai-import-from-mr/draft.zh.md +48 -0
- package/workflows/teamai-import-from-repo/README.md +106 -0
- package/workflows/teamai-import-from-repo/README.zh-CN.md +106 -0
- package/workflows/teamai-import-from-repo/WORKFLOW.yaml +109 -0
- package/workflows/teamai-import-from-repo/narrative.md +83 -0
- package/workflows/teamai-import-learnings.yaml +83 -0
- package/workflows/teamai-import-rules.yaml +34 -0
- package/workflows/teamai-new-scorer.yaml +54 -0
- package/workflows/teamai-promote-learning/README.md +122 -0
- package/workflows/teamai-promote-learning/README.zh-CN.md +122 -0
- package/workflows/teamai-promote-learning/WORKFLOW.yaml +102 -0
- package/workflows/teamai-promote-learning/params.yaml +4 -0
- package/workflows/teamai-score.yaml +121 -0
- package/workflows/teamai-self-improvement.yaml +37 -0
- package/workflows/teamai-session-to-task.yaml +69 -0
- package/workflows/teamai-sessions-to-tasks.yaml +62 -0
- package/workflows/teamai-share-learnings-from-sessions.yaml +36 -0
- package/workflows/teamai-share-learnings.yaml +25 -0
- package/workflows/teamai-share-session.yaml +21 -0
- package/workflows/teamai-try-scorer.yaml +32 -0
- package/skill-data/workflow/references/hosts.md +0 -27
package/CHANGELOG.md
CHANGED
|
@@ -4,28 +4,92 @@ All notable changes to this project will be documented in this file. See [standa
|
|
|
4
4
|
|
|
5
5
|
## [Unreleased]
|
|
6
6
|
|
|
7
|
+
- Use `teamai uninstall --keep-shared-hooks` from a workspace if a pre-partition install (with its own `.teamai/config.yaml`) still needs the machine-wide hooks. Such installs are not registered in the partition directory, so uninstall cannot discover them automatically ([#1825](https://github.com/Tencent/teamai-cli/issues/1825)).
|
|
8
|
+
|
|
7
9
|
### ✨ Features
|
|
8
10
|
|
|
9
|
-
-
|
|
11
|
+
- Teams can require an effective role for selected skill namespaces with `sharing.skills.roleRequiredNamespaces`. Tags and projects cannot bypass the condition, and each workspace child is filtered before aggregation. Members still choose their own role; omitted or empty configuration keeps existing delivery.
|
|
12
|
+
- `teamai init --http` and `teamai source add-http` accept `--replace-token --token <key>` to use the supplied token without checking whether the old one works. An `sk-` token belongs to one agent, as before; other agents' credentials and workspace bindings at the same endpoint are retained. Without this option, a working agent token is still kept. This changes the connection credential only; existing model keys still require a successful configuration sync.
|
|
13
|
+
- The gates `teamai recall promote` applies, `min_confidence`, `min_upvoted`, `min_users` and `min_age_days`, are the `params.yaml` of the default workflow folder `teamai-promote-learning`, shipped at the values the code held. A team tunes them with `workflows/teamai-promote-learning/params.yaml` at its root, holding only the keys it changes; teamai's `WORKFLOW.yaml` and its other values stay in force. The listing, the `promote-candidate` and `promote-publish` steps and the dashboard read the same file, so none offers a learning another rejects. Pull and `teamai review --branch` refuse a value out of range or a key the workflow does not take, naming the file and the field, and the version pull last took stays in force. A member on an older teamai keeps the old gates, so upgrade every member before tuning them (for [#1829](https://github.com/Tencent/teamai-cli/issues/1829)).
|
|
14
|
+
- `teamai recall maintenance --update-quality` reads which entries it drafts, `min_recalled`, `max_upvoted` and `min_users`, and how many adopted learnings each prompt shows, `max_related`, from the `params.yaml` of the default workflow folder `teamai-draft-learning-updates`, shipped at the values the code held. A team changes them with `workflows/teamai-draft-learning-updates/params.yaml` at its root; the `--dry-run` listing, the `stale` and `draft-context` steps and the dashboard read the same file, and pull refuses a value out of range or an unknown key as it does for the promotion gates (for [#1829](https://github.com/Tencent/teamai-cli/issues/1829)).
|
|
15
|
+
- How long an attended session is idle before it is finished is the `idle` of the default workflow folder `teamai-finished-sessions`'s `params.yaml`, `6h`, rather than `--idle 6h` in its steps and a constant elsewhere. A team sets it with `workflows/teamai-finished-sessions/params.yaml` at its root, from `10m` to `7d`, and the listing, the dashboard's session sharing panel, the share proposals and the usage report's outcomes all count a session finished at that time; the panel and the proposals name it. `teamai session list --finished --idle` still overrides it for one listing (for [#1829](https://github.com/Tencent/teamai-cli/issues/1829)).
|
|
16
|
+
- `teamai codebase --deep-enrich` writes as many component docs at once as the `concurrency` of the default workflow folder `teamai-codebase-deep-enrich`'s `params.yaml`, `5`, rather than a constant in code. A team that hits its AI tool's rate limit sets `concurrency: 2` in `workflows/teamai-codebase-deep-enrich/params.yaml`, from 1 to 20; `teamai import` keeps the `5` that `teamai-import-from-repo` passes (for [#1829](https://github.com/Tencent/teamai-cli/issues/1829)).
|
|
17
|
+
- A team changes one file of a teamai default hook, rule or workflow folder by keeping that file in a folder of the default's name; every other file stays teamai's and keeps its improvements. Contracts such as the recall rule's kept lines and a hook default's keys are checked on the resulting folder. A team file that replaces no file of the default: pull warns, names it and keeps teamai's file, and `teamai review --branch` fails. A run of such a folder records the teamai version it took files from, and `teamai list --json` marks each file's layer.
|
|
18
|
+
- Agents and scorers can be folders. `agents/[<ns>/]<name>/AGENT.md` is delivered like a rule folder and names its files with `${TEAMAI_AGENT_DIR}`; Claude Code gets the user-scope directory in `additionalDirectories`, and another tool that cannot read it gets a warning. `scorers/[<ns>/]<name>/SCORER.md` names its files with `${TEAMAI_SCORER_DIR}`, and the judge reads them in its evidence directory.
|
|
19
|
+
- `teamai update` records every TeamAI copy this machine runs from in `~/.teamai/installations.json`, and `teamai update` and `teamai doctor` list them. With `updatePolicy: auto` and `updateOtherInstallations: true`, an update of a running copy that is already current can update one other registered npm-global copy per run under its own `--prefix`; npm exiting 0 without changing that copy is a failure. Volta, vendored and local copies are listed with their manual remedy and are never passed to npm (for [#1753](https://github.com/Tencent/teamai-cli/issues/1753)).
|
|
20
|
+
- Workflows, hooks, rules, MCP servers and benchmark suites can be folders, as skills are: a directory under the type's directory, at any depth, that holds the type's marker (`WORKFLOW.yaml`, `HOOK.yaml`, `RULE.md`, `MCP.yaml` or `SUITE.yaml`), with the files the resource needs beside it. Only that exact name is a marker, so `rule.md` is read as before. A folder names its own files through `TEAMAI_WORKFLOW_DIR`, `${TEAMAI_HOOK_DIR}`, `${TEAMAI_RULE_DIR}` or `${TEAMAI_MCP_DIR}`, which are reserved team env names. A folder that is a symlink is not read, and pull and `teamai review --branch` name it. Pull copies a hook, rule or MCP folder beside the configuration that names it: `~/.teamai/<type>/` in user scope; in a workspace, each worktree's `.teamai/delivered/<type>/` for rules and MCP servers, which git ignores whatever `sharing.gitExclude` says, so a pull in one worktree never changes what another runs or reads; and for hooks, which every worktree of a remote team's workspace runs from the same entries, `~/.teamai/projects/<slug>/hooks/`, or each single-repo worktree's `.teamai/delivered/hooks/`. It writes that path with forward slashes and no quotes. A rule folder keeps its path across versions, and a file a new version drops stays until the folder goes. A hook or MCP folder sits at `<name>.<version>/`, the version taken from its files, `HOOK.yaml` or `MCP.yaml` included, and a version's files never change, so a tool whose configuration pull could not rewrite, or one the member excluded, keeps running the files it was written with. Every checkout of one commit gives the same version, since a file counts as git stores it, and pull copies none of the files git ignores. A folder holding a git submodule or a repository of its own is refused. In single-repo, editing only a script rewrites the folder's path in `.claude/settings.json`. Pull removes a folder once the team drops it and no configuration names it. Uninstall keeps a delivered folder that a file it leaves still names, in any worktree, and says which file. `SCORER.md` and `AGENT.md` are reserved as well. Upgrade every member before committing a folder: an older teamai skips it, or reads each of its files on its own (for [#1787](https://github.com/Tencent/teamai-cli/issues/1787), [#1791](https://github.com/Tencent/teamai-cli/issues/1791)).
|
|
21
|
+
- A workflow can be a folder, `workflows/[<ns>/]<name>/WORKFLOW.yaml`, with the scripts, prompts and notes it needs. Every process a step starts gets `TEAMAI_WORKFLOW_DIR`, the run's own copy of the folder, which stays as the run started it whatever a later pull does. `workflow resume --claim` rebuilds that copy on another machine, and `doctor --fix` removes a copy no run and no pulled workflow uses; a run it swept past `workflows.retention` uses none. `prompt_file` and the new `answer_file` name a file of the folder. A workflow folder holds UTF-8 text only, 1 MB in all, and no symlink, or pull refuses it with `workflow_folder_invalid`; a file and a folder of one name leave the workflow nothing to run, and pull skips a `teamai-` folder that names no default, with a warning. `teamai status` counts a folder as one workflow, single-repo push sends every file of it, and a benchmark arm cannot run one yet (for [#1787](https://github.com/Tencent/teamai-cli/issues/1787)).
|
|
22
|
+
- The defaults `teamai-import-from-mr`, `teamai-codebase-deep-enrich` and `teamai-import-from-repo` are workflow folders. What they ask the AI tool is in files of their own, `draft.en.md` and `draft.zh.md`, `component.md`, `architecture.md` and `scenarios.md`, and `narrative.md`, with the same text as before, and each folder has a `README.md` on its inputs, outputs and settings. To change a prompt, copy that file from the installed package to the same path in the team repo, edit it and push; the folder's other files stay teamai's, and a team's `workflows/<name>.yaml` still replaces the default as before. (for [#1787](https://github.com/Tencent/teamai-cli/issues/1787)).
|
|
23
|
+
- A team hook can be a folder, `hooks/[<ns>/]<id>/HOOK.yaml` beside the scripts it runs, with the keys of a `hooks.yaml` entry except `id`, `roles` and `projects`; `${TEAMAI_HOOK_DIR}` in `command` names the folder. In single-repo, Claude Code's command names it through `$CLAUDE_PROJECT_DIR`. `requireTeamScripts` keeps a folder hook whose command names `${TEAMAI_HOOK_DIR}`. `${TEAMAI_HOOK_DIR}` in `hooks.yaml`, or an id that is both an entry and a folder, stops team hooks for the run, and `teamai review --branch` fails a branch with either, or with a `HOOK.yaml` that does not parse. A single-repo worktree's folders are removed on uninstall. Once a worktree is removed, the next pull of another worktree, or `teamai doctor --fix`, removes the team hook entries it left in HOME (for [#1787](https://github.com/Tencent/teamai-cli/issues/1787)).
|
|
24
|
+
- A team MCP server can be a folder, `mcp/[<ns>/]<name>/MCP.yaml` beside the files it runs, with the keys of an `mcp.yaml` server except `name`, `roles` and `projects`, stdio only; `${TEAMAI_MCP_DIR}` in `command`, `args` and `env` names the folder for every tool `mcp/mcp.yaml` reaches. In single-repo each tool's MCP file holds the worktree's absolute path. `requires` and `sharing.mcp.allowedCommands` apply to the runner, as for any server. A folder with `transport: http` or `sse`, `${TEAMAI_MCP_DIR}` in `mcp.yaml`, or a name that is both a server there and a folder stops team MCP for the run and keeps what is installed (for [#1787](https://github.com/Tencent/teamai-cli/issues/1787)).
|
|
25
|
+
- A benchmark suite can be a folder, `benchmarks/[<ns>/]<suite>/SUITE.yaml`; `suite.yaml` keeps working. A directory holding both is invalid, and pull and `teamai benchmark try` name both files. Docs and messages show `SUITE.yaml` (for [#1787](https://github.com/Tencent/teamai-cli/issues/1787)).
|
|
26
|
+
- teamai's hints keep their thresholds and texts in default hook folders the package ships: `hooks/teamai-friction-reminder/`, `teamai-mr-hint/`, `teamai-todowrite-hint/`, `teamai-env-hint/` and `teamai-package-hint/`, each with a `README.md` listing its parameters, ranges, variables and switches. A team replaces one with a folder of the same name at the root of its repo: `HOOK.yaml` holds `description` and `with:`, where a key left out keeps teamai's value, and each text is `<text>.md` with `{{ name }}` variables. Pull refuses a replacement that sets a parameter out of range or one the default does not take, reads a variable its text does not offer, leaves a text out, has a `command`, or sits in a namespace, names why, and keeps teamai's folder in force. Each hint reads the replacement in every tool, the older `teamai contribute-check`, `mr-hint` and `todowrite-hint` entry points included. With `language: en` or `zh`, a hint prints `<text>.en.md` or `<text>.zh.md` when its folder has one. With no replacement every hint prints what it did, except that a team with `language: zh` now sees the friction reminder in Chinese (for [#1787](https://github.com/Tencent/teamai-cli/issues/1787)).
|
|
27
|
+
- The friction reminder's reasons are texts of `hooks/teamai-friction-reminder/`, `reason-interrupt.md`, `reason-tool-reject.md`, `reason-correction.md` and `reason-tool-error.md`, with `{{ count }}`, `{{ times }}` and `{{ tool_calls }}` worded in the language of the file read. A team rewords one with a file of that name in its folder, and a team with `language: zh` now sees them in Chinese rather than in English inside the Chinese reminder (for [#1829](https://github.com/Tencent/teamai-cli/issues/1829)).
|
|
28
|
+
- A team rule can be a folder: `rules/[<ns>/]<name>/RULE.md` beside the files it sends the agent to, named by its path as a rule file is. `RULE.<language>.md` gives the body for a `language` under the frontmatter of `RULE.md`. Pull copies the folder to each worktree's `.teamai/delivered/rules/`, which git ignores, and puts its path, with forward slashes, in place of `${TEAMAI_RULE_DIR}`: every tool reads it there, a tool that reads nothing outside the project by its path from the project root. A user-scope rule names `~/.teamai/rules/`, granted to Claude Code through `permissions.additionalDirectories` in `~/.claude/settings.json` (uninstall takes it back), and pull warns once for each other tool that may ask before reading it. Push proposes nothing from a folder's copies. teamai's recall rule is now the folder `rules/teamai-recall/`, which a team replaces with its own at the root of the team repo; pull refuses a replacement missing a line recall needs or holding a link, keeps teamai's, and `teamai review --branch` fails it. Upgrade every member before committing a rule folder (for [#1787](https://github.com/Tencent/teamai-cli/issues/1787)).
|
|
29
|
+
- The dashboard's Resources page has a Resource layers panel: for the selected workspace, every definition of each workflow, hook, MCP server, benchmark suite and rule folder, with its layer (teamai's default, the team root, or a namespace), whether it is a file, folder or entry, what it replaces, and whether pull uses it, with what pull prints and the fix when it does not. A folder's row lists its files with size and executable mark, the total against a workflow folder's 1 MB limit, where pull delivers it, and the command it runs; a rule folder's names the language file its text comes from and where each tool reads `${TEAMAI_RULE_DIR}`. teamai's recall rule and its five default hooks are listed beside the team's replacements, the hooks with each `with:` parameter against teamai's, and a default workflow that cannot start against the team's workflows is shown as held. The Overview counts the problems and links there. Names, paths and sizes only, never a file's content or an env value (for [#1787](https://github.com/Tencent/teamai-cli/issues/1787)).
|
|
30
|
+
- OpenClaw, Hermes and DeepSeek Harness write team MCP servers and HTTP-delivered models to their user config files, through the same pull, `teamai mcp list`, doctor and uninstall as other tools. Workspace MCP ownership and reporting stay with the workspace: uninstall keeps entries another workspace still owns and preserves member edits. Unreadable ownership records keep the config and retry records intact; removal counts include only entries actually deleted. Delivered models are added beside the member's settings, without changing the current model, primary or fallbacks.
|
|
31
|
+
- Shared MCP delivery recognizes matching records from other scopes when updating a server. Uninstall also protects surviving owners in previously used config files after a tool home changes.
|
|
32
|
+
- Antigravity CLI (`agy`) is a built-in tool: `teamai init --agent agy` delivers skills, rules (`trigger: always_on`, or `model_decision` for a rule with `paths:`), team culture, agents (with agy's own tool names), MCP (user `~/.gemini/config/mcp_config.json`; a project's through a `.agents/plugins/teamai` plugin) and hooks, the team's `tools: [agy]` hooks included, to `~/.gemini/config` and a project's `.agents`, never to Gemini CLI's files. teamai records agy's skill loads and tokens, reads its sessions (read-only: `session migrate` takes them to other tools), switches it to a `gemini`-protocol model gateway with `teamai models switch`, and runs its own AI calls, local workflow steps and local scorer judge on it (for [#1426](https://github.com/Tencent/teamai-cli/issues/1426)).
|
|
33
|
+
- Antigravity 2.0 and Antigravity IDE get what a pull delivers for agy, since they read the same `~/.gemini/config` and `.agents`: skills, rules, team culture, MCP servers and hooks, the team's included. Antigravity 2.0 also runs the agents, and its conversations are read beside the CLI's as `agy` sessions, with their tokens on the dashboard. The tool shows as Antigravity in `init`, `doctor` and the docs. An alias effort for agy now says to write it into the model id, such as `gemini-3.8-flash-high` (for [#1426](https://github.com/Tencent/teamai-cli/issues/1426)).
|
|
34
|
+
- A coding session can run a team workflow with `--driver skill`. `invoke: allow`, `ask` or `deny` (the default) in a workflow says whether an agent session may start it, and `alias` gives it a second name for `workflow start`. `teamai pull` writes a skill for each `allow` or `ask` workflow, which sends the agent to `teamai skill get workflow`: `workflow-<alias>` when its alias starts it, else `workflow-<name>`, and a default's own name, such as `teamai-share-session`. The alias is the name people see: `teamai list workflows` shows `alias (name)`, and a run record carries it, so the dashboard's Workflow Runs page shows it first. Command steps run in background processes, prompt steps in child agents the session starts, a required approval goes only to the person, and scored steps are judged in the background by the confined judge of the session's tool. `teamai skill get workflow-local` covers unattended runs with the local driver. teamai before 0.28.0 drops a workflow that sets `invoke` or `alias`, and `teamai review --branch` warns about each one (for [#1086](https://github.com/Tencent/teamai-cli/issues/1086)).
|
|
10
35
|
- With `--driver skill`, the session's agent works an `interactive` step with the person. A host that makes a worktree for each child has TeamAI check and adopt it, and a host that starts no child has the agent work each step in the checkout itself. A run the session cannot finish goes to the local driver: describe routes it there before it starts when a step that waits for env or a budget works in a workspace the run opens, and otherwise the session hands the person `teamai workflow resume <run>` once only those steps are left (for [#1086](https://github.com/Tencent/teamai-cli/issues/1086)).
|
|
11
36
|
- `teamai workflow resume <run> --driver skill` continues a published run from a coding session: it claims the run as `resume` does, with `--claim` from the install that owns it, takes the options of a skill start, and answers the first turn. `next --takeover` with `--driver skill` drives a run this machine has that no session drives yet (for [#1086](https://github.com/Tencent/teamai-cli/issues/1086)).
|
|
12
37
|
- `teamai workflow next --prepare` has TeamAI prepare a leased workspace, and `report` commits, pushes and fills `changes` or `read` for it. `--prepare --attempt <attempt>` prepares an attempt the driver already leased, and `--adopt <dir>` runs it in a place the host made (for [#1086](https://github.com/Tencent/teamai-cli/issues/1086)).
|
|
13
38
|
- A workflow run is attended or unattended: `TEAMAI_MODE` (`attended` or `unattended`) decides, else `CI`, else attended. Every process TeamAI starts for a step, setup included, gets the run's `TEAMAI_MODE` with either driver. In an unattended run, `workflow start --describe --driver skill` asks no question: it answers the recommended start with `--auto-approve`, or `denied` for a workflow that needs a person (for [#1086](https://github.com/Tencent/teamai-cli/issues/1086)).
|
|
14
39
|
- `driver.can.env` takes `"commands"`: the driver scopes team env for command steps and setup only, and a prompt step with `requires.env` waits (for [#1086](https://github.com/Tencent/teamai-cli/issues/1086)).
|
|
15
|
-
- `teamai score --next` takes `run`, to take only that run's workflow passes, and `canTakeLease: false`, to renew `running` and take nothing (for [#1086](https://github.com/Tencent/teamai-cli/issues/1086)).
|
|
16
40
|
- `teamai pull --team-ref <ref>` pins a workspace and its checkouts to a team branch, tag, or commit. Later pulls and hooks follow the pin; passing the default branch unpins. Revision switches remove unchanged copies the new tree lacks, keep edits, and block all pushes while pinned. `--team-ref` with `--dry-run` is refused. `status` shows the pin. An older CLI saving the workspace's local config drops `repo.ref`, which unpins it (for [#1183](https://github.com/Tencent/teamai-cli/issues/1183)).
|
|
17
|
-
- teamai's own AI calls (enrich, codebase, import, promote
|
|
41
|
+
- teamai's own AI calls (enrich, codebase, import, promote) also run on OpenCode, Cursor CLI, Copilot, Qoder, Kiro, Pi, Oh My Pi, Muse Code and Hermes. `TEAMAI_AI_TOOL`, then `ai.tool` in the workspace's config, then `ai.tool` in `~/.teamai/config.yaml`, picks the tool instead of the first one installed; `~/.teamai/config.yaml` may hold only `ai` on a machine with no user-scope install. Without them, a machine with no Claude Code or Codex now uses OpenCode before CodeBuddy. Workflow prompt steps run on CodeBuddy and WorkBuddy, and fall back to `TEAMAI_AI_TOOL`, `workflows.tools.default` and the two `ai.tool` levels, in that order. Cursor CLI, Pi and WorkBuddy can judge scorers (for [#1389](https://github.com/Tencent/teamai-cli/issues/1389)).
|
|
18
42
|
- `teamai workflow publish` offers a running run, and `teamai workflow resume --next` claims the oldest one a runner can finish in a checkout of the same business repository, so a CI job finishes the runs members start. Any claim, or the owner's own resume, takes the offer away, so two runners never drive one run. `teamai workflow resume` with no run id lists the runs this checkout can resume, and the dashboard's Workflow Runs page shows the runs handed over with the command that takes each (for [#1390](https://github.com/Tencent/teamai-cli/issues/1390)).
|
|
19
|
-
- teamai ships default workflows a team gets without writing them
|
|
20
|
-
- `workflow start --describe
|
|
21
|
-
|
|
43
|
+
- teamai ships default workflows a team gets without writing them: `teamai-share-learnings` shares what a session taught as team learnings, one or several after one approval, each recorded as an outcome of the session, then runs `teamai-share-session`, which publishes the session's transcript and scores it. pull writes no `teamai-share-learnings` skill while recall is off or the source is read-only, since its learning step runs `share`, and `teamai recall enable`/`disable` add or remove that skill at once. A team file of the same name replaces a default; for one name the project's team file wins, then the user scope's, then teamai's default. A team `teamai-share-session` keeps the six inputs `teamai-share-learnings` passes it, with their types: with other inputs, or one of another type, pull warns and writes no `teamai-share-learnings` skill, `teamai-share-learnings` refuses to start with `invalid_inputs` before any learning is shared, and the friction reminder goes back to `teamai skill get share`. `teamai list skills -v` labels the skills pull generates for workflows `[workflow]`. `teamai list workflows` shows each workflow's source (`team` or `default`), `workflow start --describe` reports it as `source`, a run records it as `origin` with the teamai version of a default, and the dashboard's Workflow Runs page shows it in a Definition column, with the learnings a run shared beside its pull requests in an Outcomes column. A run of a default continued on a machine whose teamai ships another version of it refuses with `definition_mismatch` (for [#1388](https://github.com/Tencent/teamai-cli/issues/1388)).
|
|
44
|
+
- `workflow start --describe teamai-share-learnings --driver skill`, and the same for `teamai-share-session`, proposes a `value` and a `why` for each input, for the calling session: the session and its tool, publishing when the attended publish policy is `ask`, the scorers that sample the session when attended scoring is `ask`, and whether teamai's own judge or the session's agent judges. A team override gets values for the inputs that keep their name and type (for [#1388](https://github.com/Tencent/teamai-cli/issues/1388)).
|
|
45
|
+
- The dashboard's Overview has a **Member settings** panel: for the selected workspace, each member setting some level sets, its value, the level and file that set it, and what the levels below say, as `teamai doctor` lists them, plus the keys of a settings-only `~/.teamai/config.yaml` that nothing reads. The Session sharing panel names the setting behind the daily judging limit (for [#1459](https://github.com/Tencent/teamai-cli/issues/1459)).
|
|
46
|
+
- `teamai benchmark run <suite>` runs a benchmark suite from `benchmarks/<suite>/`: each task, a starting commit with a check or success criteria, goes to every arm (a tool, model, team revision or team workflow) a few times, each trial in its own clean clone on a machine declared a sandbox. The run prints a pass-rate table and publishes its record for the dashboard's Benchmarks page. `try` checks one task before it joins a suite, `plan` and `report` print the plan and the table, and `--fail-on-regression` fails a CI job when an arm's pass rate dropped by more than chance against the last comparable published run. It runs as `teamai-benchmark`, a default workflow the team can replace (for [#1180](https://github.com/Tencent/teamai-cli/issues/1180)).
|
|
47
|
+
- Ask the session that finished a bug fix, a feature or a refactor to keep it as a benchmark task: `teamai-session-to-task`, a default workflow, drafts the task file with you and proposes it to the team as a pull request. describe proposes the commit the session started at, the commit at `HEAD` that completes the task and the suite whose repo is the checkout's origin, says why for each, and names a task that already comes from this session or commit. The benchmarks guide has a team repo CI job that tries each new task with `teamai benchmark try` (for [#1402](https://github.com/Tencent/teamai-cli/issues/1402)).
|
|
48
|
+
- Every skipped workflow step says why in its run file's `message`, and the dashboard's run page shows it under the step's status: an `if` that is false, with the expression as written, a step it needs that failed, was cancelled or was skipped, a stopped run or workflow step, a `for_each` item after one that did not succeed, a spent allowance, or an approval answered no (for [#1670](https://github.com/Tencent/teamai-cli/issues/1670)).
|
|
49
|
+
- A workflow step with `deliver: publish` in `workspace: { team: { branch: teamai-reports } }` (or `teamai-learnings`) runs in a checkout of origin's tip of that branch, and teamai pushes what it staged in the member's own paths, such as `scores/<member>/`, without merging the default branch in. Offline, the commit waits on this machine, and the next `teamai pull`, `teamai score --push` or `teamai score --drain` sends it; `--drain` names the branch whose data stays pending and exits 1. In an isolated run, such as a benchmark run, the step is skipped, so its driver needs no team workspace. `teamai-score` uses it: its `publish` step publishes each judged group's labels, without reasoning, as the group finishes, and a team `teamai-score.yaml` that drops that step or publishes elsewhere is refused `score_override_publish` (for [#1670](https://github.com/Tencent/teamai-cli/issues/1670)).
|
|
50
|
+
- `teamai-score`, a default workflow, labels one workflow pass, session or team session with its scorers. Its command steps run the score verbs `teamai score plan`, `evidence`, `stage check|ci|protected`, `label`, `write`, `publish` and `settle`, which answer `score_attempt_required` outside a `teamai-score` run, and its judge is a prompt confined to the evidence. `teamai score --run`, `--session` or `--team-session` with `--scorer` starts it with `demand: named` on the driver `--driver` or `workflows.driver` names, else the local driver, and prints the labels it wrote; `--driver none` only starts it, and `--label <value>` records a person's label on a session. A scorer's `stages:` picks which of `check`, `ci` and `protected` may decide it before its judge (for [#1670](https://github.com/Tencent/teamai-cli/issues/1670)).
|
|
51
|
+
- A team replaces `teamai-score` with its own `workflows/teamai-score.yaml`, which may reword the judge prompt or drop the `ci` and `protected` stages. Pull refuses a file that changes what a label means, with a `score_override_*` code, and another workflow with `alias: teamai-score` (`default_override_alias`); teamai's default runs instead. Inside a project, a user-scope `teamai-score` is ignored. Another workflow runs it as a `workflow: teamai-score` step, and pull warns on such a step with no `timeout`. Pull refuses `scorers:` on a step that runs `teamai-score` or `teamai-finished-sessions` (`judging_scored`), so a judging run is never judged. A step with `scorers.start: workflow` leaves its passes to its workflow's own `teamai-score` steps (for [#1670](https://github.com/Tencent/teamai-cli/issues/1670)).
|
|
52
|
+
- Workflow keys any workflow can use: `continue_on_failure: true` lets a step fail without failing its workflow; `private: true` keeps the workflow's step sessions and outputs on this machine, publishes no record of its runs and leaves them out of the dashboard's Local runs; every step of a run gets one `$TEAMAI_RUN_DIR`, removed when the run ends; a run records who started it in `startedBy` (`person`, `agent` or `cli`); `run.id` reads the root run's id; and a prompt step's `model` may be a template, rendered when the step is leased (for [#1670](https://github.com/Tencent/teamai-cli/issues/1670)).
|
|
53
|
+
- `workspace: { confined: <dir> }` runs a prompt step whose tool reads that one directory and nothing else, at the isolation the `confined.json` there asks for. The local driver runs it in a judge profile. The skill driver runs it in the background on a `verified` tool, or in a fresh subagent at `best-effort`, and gives one up that it can never take once nothing else of the run is left and `continue_on_failure` allows it. A driver of your own is given such a step once it declares `can.confined` offers (for [#1670](https://github.com/Tencent/teamai-cli/issues/1670)).
|
|
54
|
+
- `teamai benchmark run <suite> --task <id> --arm <name>`, each repeatable, runs only those tasks and arms, through the new `tasks` and `arms` inputs of `teamai-benchmark`; an unknown name is refused before any run starts. The dashboard keeps a suite's newest run of every task and arm as its current version. The regression gate moves into `teamai-benchmark.yaml` too, as a `regression` step that reads the `fail_on_regression` input, so `--fail-on-regression` fails a job under any driver that runs the workflow. teamai's own `teamai-benchmark` is `invoke: deny`, so it runs under `--driver local`, and a `--driver skill` start of it answers `invoke_denied`; a team copy with `invoke: allow` gates under `--driver skill` too (for [#1670](https://github.com/Tencent/teamai-cli/issues/1670)).
|
|
55
|
+
- A `team.branch` template may read the outputs of the steps its step needs, rendered when the step is leased, and the skill driver runs team workspace steps on a host that starts child agents. A change the clone reaches through a symlink is refused with `push_failed`, and a pull request whose branch changes one file is titled after it. `teamai-session-to-task` drafts and proposes the task from the team workspace, on `teamai/session-to-task/<suite>/<id>`, and asking again updates the same pull request (for [#1670](https://github.com/Tencent/teamai-cli/issues/1670)).
|
|
56
|
+
- The dashboard's run details list each scorer of a pass judged here with its judging state, such as waiting for CI, lapsed or failed, why it has no label, the command that judges it again, and its `teamai-score` runs. **Judging on this machine**, below Local runs, counts this week's labels and judge tokens, what decided them, the missing labels and why, and session launches per day against `daily_limit` (for [#1670](https://github.com/Tencent/teamai-cli/issues/1670)).
|
|
57
|
+
- `workflows.driver` names the driver `teamai score`, `teamai score --drain` and a session start's judging use when no `--driver` is given: `local`, the default, `none`, which leaves the run to any driver's `teamai workflow next` and says so, or the name of another driver. A run for a driver this machine does not run starts waiting for it, and the command prints how to drive it here with `teamai workflow resume <run> --driver local`. It is read from the scope's `config.yaml`, then `~/.teamai/config.yaml`, then the team's `teamai.yaml`; `skill` and `fleet` are refused as a default, and `teamai doctor` names the file that set it. Every driver can run the judging workflows: the skill driver also judges on a host that starts no child agent, in the background at best-effort on the session's tool (for [#1670](https://github.com/Tencent/teamai-cli/issues/1670)).
|
|
58
|
+
|
|
59
|
+
- A workflow's header takes `workspace: new`: started on its own, the whole run works in one copy and ends by naming its branch, such as `Run r1a2… left its changes on branch teamai/r1a2…/_run. Bring them in with: git merge teamai/r1a2…/_run`; run from a step inside a copy, it continues that copy and opens no other. `pull` refuses a `workspace: read-only` step that runs such a workflow (for [#1689](https://github.com/Tencent/teamai-cli/issues/1689)).
|
|
60
|
+
- `teamai workflow resume --next` takes a run whose person step is only possible later, and skips only a run whose ready steps need a person now. A runner that reaches a required approval, an `interactive` step or a choice without a default publishes the run offered on `teamai-reports`, names the step and `teamai workflow resume <run> --claim`, and exits 0; the next runner leaves it, and the `resume` list shows it as `needs a person`, or `may need a person at <step>` while it is only possible. An unattended `start --driver local` and an unattended `--driver skill` session hand the run off the same way (for [#1689](https://github.com/Tencent/teamai-cli/issues/1689)).
|
|
61
|
+
- A run that succeeds deletes, here and on origin, each `teamai/<run>/…` branch whose tip a branch that stays holds: a pull request branch or the run's final copy. `teamai doctor --fix` removes what runs settled longer ago than `workflows.retention` (a duration, such as `14d`, the default, or `never`) left: branches, worktrees, kept refs and base pins, except pull request branches, also of runs other machines published. Workflow durations take the unit `d`. `teamai doctor` and the dashboard's Member settings show where `workflows.retention` comes from, and a settled run's details list its branches: kept and why, deleted, or kept for inspection until a date (for [#1689](https://github.com/Tencent/teamai-cli/issues/1689)).
|
|
62
|
+
- `steps.<id>.pr` is `{ url }` on a `deliver: pr` step that opened or took a pull request, and `null` otherwise, so `if: steps.fix.pr == null` tells a step with nothing to deliver apart; `steps.<id>.results[n].pr` and `steps.<id>.passes[n].pr` read it per item and per pass. A `cancel` reports its run record as published when it published it, and `teamai score --drain` says the step sessions of one run it cannot read in one line (for [#1689](https://github.com/Tencent/teamai-cli/issues/1689)).
|
|
63
|
+
|
|
64
|
+
- Every AI call teamai makes for a feature now runs in a default workflow a team can replace with a file of the same name: `import` (`teamai-import-from-repo`, `teamai-import-learnings`, `teamai-import-rules`, `teamai-import-from-iwiki`, `teamai-import-from-mr`), `teamai ci extract-mr` (`teamai-ci-extract-mr`), `codebase --deep-enrich` and enrich (`teamai-codebase-deep-enrich`, `teamai-codebase-enrich`), `recall promote` (`teamai-promote-learning`) and `recall maintenance --update-quality` (`teamai-draft-learning-updates`). A workflow asks an AI tool through an `answer` step, which may take `workspace: new` to read a worktree of its own, so the answers of a fan-out run side by side; a command step may declare the paths it `writes`; a workflow may give its inputs defaults; `steps.<id>.failure` says why a step failed (for [#1589](https://github.com/Tencent/teamai-cli/issues/1589)).
|
|
65
|
+
- `teamai session show <sessionId> --source <platform>` prints a session of this machine, redacted, and `teamai session list --finished --all --within <duration>` lists every finished session to share learnings from. `teamai-share-learnings-from-sessions`, a default workflow, offers them one by one (for [#1589](https://github.com/Tencent/teamai-cli/issues/1589)).
|
|
66
|
+
- `teamai-try-scorer` runs scorer files against sessions and a control before a team adopts them, and warns when a rubric passes the control; `teamai-new-scorer` drafts a scorer with you, tries it and proposes it as a pull request (for [#1589](https://github.com/Tencent/teamai-cli/issues/1589)).
|
|
67
|
+
- `teamai recall promote <learningId>` without `--category` has the member's AI tool pick the category and say why, instead of taking the keyword suggestion (for [#1589](https://github.com/Tencent/teamai-cli/issues/1589)).
|
|
68
|
+
- A member's `scoring.skill_routing` and `scoring.recall_adoption` in `config.yaml` win over the team's; `~/.teamai/config.yaml` can only turn them off. The routing rubric ships as the default scorer `teamai-routing`, which a team replaces with `scorers/teamai-routing.md` (for [#1589](https://github.com/Tencent/teamai-cli/issues/1589)).
|
|
69
|
+
- A benchmark judges every arm with the same instrument: start pins, per scorer, one judge tool (its `tool`, else `defaults.tool`) and its model, the plan and record keep them as `judges`, and each trial's verdicts say who decided them (`check` or the judge's tool, model and effort) and whether that is what the plan pinned. A task's check decides its trial with no judge launched; a task takes a `check`, `successCriteria` or both, and with both a failing check decides and a passing one leaves the trial to the judge. Results compare two arms only on pairs one decider judged, and name the pairs left out (for [#1793](https://github.com/Tencent/teamai-cli/issues/1793)).
|
|
70
|
+
- `teamai-correctness` is a default scorer a team replaces with `scorers/teamai-correctness.md`: its labels, scores and `passingScore` judge every task with success criteria, and a graded rubric adds a Mean correctness score column to the results. A task lists `scorers` of its own beside the suite's, and the results show each arm's pass rate per scorer with its 95% interval (for [#1793](https://github.com/Tencent/teamai-cli/issues/1793)).
|
|
71
|
+
- The usage table shows cost per passed trial and each arm against the defaults arm: `dominates: same pass rate, 56% cheaper per passed trial; 0 pp (-30 to +30, not separated)`. `teamai benchmark run` prints what the run will cost before it starts, from the newest earlier succeeded run of the suite, and the results show it beside what it cost (for [#1793](https://github.com/Tencent/teamai-cli/issues/1793)).
|
|
72
|
+
- `calibration: { rate: 20 }` in `suite.yaml` has the correctness judge also label that share of the trials whose check failed on a task with a check and success criteria, storing nothing; the results show each judge's false pass rate with its 95% interval as Judge calibration (for [#1793](https://github.com/Tencent/teamai-cli/issues/1793)).
|
|
73
|
+
- The dashboard's Benchmarks page shows who judged each task (`check (8) · claude claude-sonnet-5-5 (6)`), each judge's calibration, each arm's pass rate per scorer, each arm against the defaults arm, and a run's cost beside its estimate (for [#1793](https://github.com/Tencent/teamai-cli/issues/1793)).
|
|
74
|
+
- Build a suite from past sessions: `teamai-sessions-to-tasks`, a default workflow, lists with `teamai session list --finished --all --suite benchmarks/<suite> --sizes "S=40,3 M=200,10 L=800,30"` the sessions of this machine, and the ones teammates pushed, that ended in a commit of the suite's repository, with the start and solution commits and the size of the change, and drafts a task from each one you pick. The Stop hook records how a session ended, and `teamai session show --team-session <name> --author <member> --suite benchmarks/<suite>` reads a pushed one, for the suite's repository wherever it runs (for [#1793](https://github.com/Tencent/teamai-cli/issues/1793)).
|
|
75
|
+
- `teamai pull` writes `~/.teamai/bin/teamai` on macOS and Linux for members of Claude Code, Codex, `claude-internal`, `tclaude`, `codex-internal` and `tcodex`, whose hooks start teamai through it without waiting for a login shell.
|
|
76
|
+
- `teamai doctor` checks `~/.teamai/bin/teamai` when a tool's hook file has an entry that starts teamai through it. When the file is gone, out of date, or names a Node or a teamai that no longer exists, the hook still runs but waits for a login shell first; doctor names the hook files and says to run `teamai pull`.
|
|
22
77
|
### Changed
|
|
23
78
|
|
|
79
|
+
- A team's `rules/teamai-recall/` is checked against the same contract as a default hook's folder. Pull names every line a text is missing, not only the first, and refuses a recall text that holds `{{ }}`, which the recall rule offers no variable for (for [#1829](https://github.com/Tencent/teamai-cli/issues/1829)).
|
|
80
|
+
- Pull reads every folder marker, so the skipped-folders warnings are gone: the doctor check, the list in `teamai status` and the dashboard's Skipped folders panel. A checkout record from an older release that lists skipped folders makes the next pull sync in full once, so it delivers them.
|
|
81
|
+
- `teamai push` refuses to put a rule, agent or scorer file inside a folder of its type: `<path>/ holds <MARKER>, so the file would be one of its files, not a resource of its own.` A scorer folder pushes as one scorer.
|
|
82
|
+
- A teamai default scorer is replaced by a file only, `scorers/teamai-<name>.md`. Pull warns about `scorers/teamai-<name>/SCORER.md`, names the file to keep instead, and teamai's default keeps running.
|
|
83
|
+
- What teamai delivers is called a resource everywhere a member reads it, and the mode where the team repo is the project's own repo is called self mode, as `--self` and `repo.kind: self` name it. `teamai init --help`, `codebase --lint` (`Resources: N`), benchmark output (`Resource effect`, `team resources`), the dashboard (`Team resources`, `Resource effect`, `RESOURCES`, 团队资源) and the docs no longer say asset, AI asset or single-repo mode.
|
|
84
|
+
- On Windows, workflow commands, checks and place setup run in Git Bash instead of cmd.exe, so `"$NAME"` reads the step's `env` as it does on Linux and macOS, and the default scoring, finished-sessions, benchmark and sharing workflows reach their work. A command written for cmd.exe needs rewriting for a POSIX shell. Without Git for Windows, teamai warns and keeps cmd.exe.
|
|
85
|
+
- MCP injection, removal and `uninstall` leave an invalid Codex `config.toml` and its ownership records unchanged, report the file, and exit 1, including with `--dry-run`. They used to edit the invalid TOML or drop its ownership records and report success. Valid TOML with a leading UTF-8 BOM remains supported.
|
|
24
86
|
- `teamai import --dir`, `--from-repo`, `--from-repo-list` and `--from-org` exit 1 when a codebase's deep enrich leaves component or architecture docs missing or fails, and print the command that resumes it: in a team repo the same import without `--incremental`, keeping `--max-files`, `--domain` and `--ssh` (`--from-repo <url>` for each unfinished repo of a batch), with `--output` `teamai codebase --deep-enrich --output <dir>`. The extracted evidence is still published, and a deep enrich error is now a warning instead of a debug line. A deep enrich refused at a symbolic link says to replace it before retrying. The teamwiki update of `import --from-mr` and `teamai ci extract-mr`, and `codebase --upgrade-wiki`, still exit 0 (for [#1500](https://github.com/Tencent/teamai-cli/issues/1500)).
|
|
25
87
|
- `teamai init --http` exits 1, before it writes anything, when the HTTP local agent already uses another endpoint or token; `--force` replaces it as before. Running it again with the same endpoint and token succeeds, and a first `init --http --scope user` now sets up the local agent and its token file, which it used to skip without saying so. An endpoint in `TEAMAI_HTTP_ENDPOINT` does not count as an existing local agent. `teamai source add-http` on the endpoint already set up, without `--token`, keeps the stored token instead of clearing it (for [#1500](https://github.com/Tencent/teamai-cli/issues/1500)).
|
|
88
|
+
- In a project with Muse Code and Antigravity CLI both installed, `.agents/agents` holds agy's copy of each agent, since agy is known to read it; Muse Code, whose project agents read is unknown, gets none there (for [#1426](https://github.com/Tencent/teamai-cli/issues/1426)).
|
|
26
89
|
- `teamai pull` exits 1 when the team repo cannot be fetched, as it already did for a pinned ref. A pull a session hook or git hook runs (`--silent`) still exits 0 and records the failure as before (for [#1500](https://github.com/Tencent/teamai-cli/issues/1500)).
|
|
27
|
-
- The friction reminder offers the `
|
|
28
|
-
- Member settings in `~/.teamai/config.yaml` now apply in every workspace and self scope whose own config does not set them, also in workspaces of other teams, and that file needs no `repo` or `username`. A member with a user install who set one there for user scope only, such as `recallEnabled`, `coAuthorEnabled`, `usageReportEnabled` or `workflows.*`, sees it apply in their workspaces too. `teamai doctor` lists each member setting with the level that set it. An AI call fails when the workspace config where it runs cannot be read, a bad `workflows.allow` in `~/.teamai/config.yaml` stops workflow commands, the HTTP local agent reads `codexTrustEnabled` from that file, and a stop hook prices with its scope's `modelAliases` (for [#1459](https://github.com/Tencent/teamai-cli/issues/1459)).
|
|
90
|
+
- The friction reminder offers the `teamai-share-learnings` workflow, which teams can override with `workflows/teamai-share-learnings.yaml`. It fires on the same Stops as before, at most once per session, and keeps its old text, naming `teamai skill get share`, in a session teamai launched, in a workflow worktree, in an unattended session, while the session drives a workflow run that is not done, and when the team's `teamai-share-learnings` sets `invoke: deny`. A session resumed more than a day after its reminder is no longer reminded again. In the dashboard, attended `ask` now reads "proposed when the friction reminder offers teamai-share-learnings" (for [#1388](https://github.com/Tencent/teamai-cli/issues/1388)).
|
|
91
|
+
- Member settings in `~/.teamai/config.yaml` now apply in every workspace and self scope whose own config does not set them, also in workspaces of other teams, and that file needs no `repo` or `username`. A member with a user install who set one there for user scope only, such as `recallEnabled`, `coAuthorEnabled`, `usageReportEnabled` or `workflows.*`, sees it apply in their workspaces too. `updatePolicy` and `autoCompactTokens` act on the whole machine, so one scope decides them: the user scope when there is one, else the workspace or self scope that runs, which takes them from `~/.teamai/config.yaml` when its own config leaves them unset. `teamai doctor` lists each member setting with the level that set it. An AI call fails when the workspace config where it runs cannot be read, a bad `workflows.allow` in `~/.teamai/config.yaml` stops workflow commands, the HTTP local agent reads `codexTrustEnabled` from that file, and a stop hook prices with its scope's `modelAliases` (for [#1459](https://github.com/Tencent/teamai-cli/issues/1459)).
|
|
92
|
+
- `scoring` in `~/.teamai/config.yaml` now applies in every workspace and self scope, to each mode and limit their own `config.yaml` leaves unset, and only where it is stricter than the team: it can turn a mode off, lower `daily_limit` (counted in each workspace, as the team's is) or ask for `verified` isolation, and never starts judging. It used to apply only in user scope. `teamai doctor` prints `Session judging` with what set each mode and the daily limit, and names `~/.teamai/config.yaml` for a publish policy a workspace takes from it (for [#1459](https://github.com/Tencent/teamai-cli/issues/1459)).
|
|
29
93
|
- With `--driver skill`, the start question says what each optional approval and choice guards: the command, prompt step, workflow or end it comes before, or the steps that wait for it, and a choice's options and default. It used to list only the gated steps' names. The workflow's `facts.gates` in the describe reply gains `guards`, plus `options` and `default` for a choice and `deliver` for an approval before a pull request, and drops `hasDefault`, which `default` replaces (for [#1416](https://github.com/Tencent/teamai-cli/issues/1416)).
|
|
30
94
|
- Sessions a workflow step launches no longer count as the member's sessions, interventions, prompts and tokens, in either run mode. `stats/<member>.yaml` gains `attended` and `unattended`, which hold the part of those counts recorded in each mode; `teamai digest` and the dashboard show the rest as `not recorded`. Dashboard events, session captures, run records, step passes and score labels record `runMode`, and `teamai doctor` prints the run mode and what set it (for [#1384](https://github.com/Tencent/teamai-cli/issues/1384)).
|
|
31
95
|
- A session teamai starts for its own AI calls carries `TEAMAI_LAUNCHED_BY` and runs none of teamai's hooks, as a scorer judge already did, so it no longer pulls, records usage or reminds about recall. A Codex call also runs outside a git repository (for [#1389](https://github.com/Tencent/teamai-cli/issues/1389)).
|
|
@@ -35,9 +99,91 @@ All notable changes to this project will be documented in this file. See [standa
|
|
|
35
99
|
- `teamai push --role <ns>` fails with exit 2 when no role or project declares `<ns>` for that type, as `--project` already does. It used to write the files under `<ns>` anyway, where pull delivers them to nobody. A team with neither manifest still accepts any namespace (for [#1101](https://github.com/Tencent/teamai-cli/issues/1101)).
|
|
36
100
|
- `teamai contribute --namespace ""` writes to the shared root `learnings/`, also for a member whose default is a namespace. It used to be rejected, so such a member could not reach the shared root (for [#1101](https://github.com/Tencent/teamai-cli/issues/1101)).
|
|
37
101
|
- In single-repo mode, `teamai push` from a branch behind the default branch leaves out a team file under `.teamai/` that the default branch changed since and the member did not, and names it. It used to push the member's older copy over the teammate's change. When the member changed that file too, push stops with exit 2 and names it; merge the default branch and push again (for [#1101](https://github.com/Tencent/teamai-cli/issues/1101)).
|
|
102
|
+
- The session archive names a repository's directory with `~XX` escapes, such as `sessions/repos/github.com~2Facme~2Fapp`, instead of `%XX`, which GitHub and GitLab decode back into `/` and then answer 404 for in the web UI and the contents API. `teamai session push` moves an archive still under its `%XX` name, and folds in sessions an older teamai pushed there after the move. Upgrade the team together: until then, an older teamai writes under `%XX` and does not list the sessions under `~XX`.
|
|
103
|
+
- A scored pass is labelled by its own `teamai-score` run under every driver. The `workflow report` or `workflow next` that settles the pass starts the run and lists it in `started` until it ends, and the driver drives it: the local driver before `workflow start` returns, unattended too, where `teamai score --drain` used to judge the pass; the skill driver as a child run of the session's run; your own driver with `workflow next` and `report`. Pull warns on a `scorers.start: workflow` step that no `workflow: teamai-score` step after it scores. A run that ended more than 14 days ago gets no scoring (for [#1670](https://github.com/Tencent/teamai-cli/issues/1670)).
|
|
104
|
+
- A step whose scorers set `sampling: all` has each pass judged by its own `teamai-score` run, and its run ends without waiting for them: `workflow next` no longer answers `wait` with `judging`, and the run file no longer records `verdicts`. A benchmark judges its trials with the `subjects` and `score` steps of `teamai-benchmark.yaml`, and `report` lists each trial's verdicts in `table.verdicts`. A trial's `scoringCost` counts the judges whose labels decided it, no longer the ones that failed. Start refuses a suite whose judge needs `verified` isolation on a machine whose judge tools run only best-effort (for [#1670](https://github.com/Tencent/teamai-cli/issues/1670)).
|
|
105
|
+
- A scorer judges each pass and each session once, as `scores/marks.jsonl` in the data home records. The upgrade carries the judge attempts over there once, and `teamai doctor` says how many open passes and sessions it carried: the next `teamai score --drain`, or a session start where sessions are judged or archived automatically, starts `teamai-score` for each, a pass only within 14 days of its run's last change. A label is written under `scores/labels.lock`, so a push never clears one still being written (for [#1670](https://github.com/Tencent/teamai-cli/issues/1670)).
|
|
106
|
+
- Judging a person or an agent names for a session (`demand: named`) counts toward `daily_limit`, and is never refused by it (for [#1670](https://github.com/Tencent/teamai-cli/issues/1670)).
|
|
107
|
+
- A group whose scorers take `ci` waits for CI that has not finished, up to the `2h` its `ci` step sets, and its mark waits too, which is not a lapse: the next `teamai-finished-sessions` judges it once CI finished. A group whose scorers do not take `ci` is judged at once (for [#1670](https://github.com/Tencent/teamai-cli/issues/1670)).
|
|
108
|
+
- A run judges with the scorers of the team revision it started from, plus the member's uncommitted or unpushed edits to them at start, so a rubric edited or pushed while a run is open changes the next run, not this one. Runs started before the upgrade keep the scorers they pinned (for [#1670](https://github.com/Tencent/teamai-cli/issues/1670)).
|
|
109
|
+
- Upgrading changes five things a team runs into (for [#1689](https://github.com/Tencent/teamai-cli/issues/1689)):
|
|
110
|
+
- a run that succeeds deletes its intermediate `teamai/<run>/…` branches, here and on origin;
|
|
111
|
+
- `teamai doctor --fix` removes a failed or cancelled run's branches and worktrees 14 days after it ended (`workflows.retention`), where they used to stay until removed by hand;
|
|
112
|
+
- an unattended person step offers the run and exits 0 with a `handoff` reply, where it used to fail `hitl_required` and exit 1, which changes a CI job's exit code;
|
|
113
|
+
- `teamai workflow retry` of a run past its retention is refused `run_expired`, and of a succeeded run whose branches cannot be brought back `branches_not_restored`;
|
|
114
|
+
- `teamai pull` refuses a workflow that reads `pr` on a step without `deliver: pr`.
|
|
115
|
+
- `teamai roles add`, `update`, `remove` and `set`, and `teamai projects add`, `update`, `remove` and `set`, exit 1 when they refuse the change or it fails. They printed the reason and then exited 0, so a script or a CI job read a refusal as success. A refusal covers an unknown role or project, a duplicate id, a call with nothing to update, a namespace list that would leave a role or project with none, and a manifest that cannot be read or validated; a failure covers a preview, a worktree or a push that could not be prepared. A failed push used to leave the manifest written locally with no pull request opened. `roles set` on a team-assigned role exited 1 already, as did a dirty preview or a detached clone that an edit reports before it starts.
|
|
116
|
+
- `teamai roles list` exits 1 as well when the roles manifest is missing or cannot be read, which is where it already printed `✖`; `--json` still exits 0, since it answers with the member's own roles. `teamai projects list` on a team with no projects manifest still exits 0, as that team is not misconfigured.
|
|
117
|
+
- In a GitHub or TGit project, the MR hint shows at the session's first prompt instead of at session start, for a tool with a prompt hook: the session start looks for merged MRs after it returns, and the next prompt shows what it found, once. A hint turned off before that prompt is dropped unshown, so a later session hints those MRs again. A tool without a prompt hook still shows it at session start.
|
|
118
|
+
|
|
119
|
+
### 🐛 Bug Fixes
|
|
120
|
+
|
|
121
|
+
- Two workflow folders whose files differ no longer share a `sourceHash`. Every folder's `sourceHash` changes once with this, so a folder run published by an older teamai answers `definition_mismatch` when a newer one claims it, and the reverse; continue such a run on a machine with the teamai that published it, or start a new run. A team folder that holds only `params.yaml` no longer makes pull warn about teamai's own steps (for [#1883](https://github.com/Tencent/teamai-cli/issues/1883)).
|
|
122
|
+
- A recorded `toolRoots.codex` no longer re-roots Codex's shared `~/.agents/skills` read. `pull` and `doctor` check that Codex reads the directories teamai writes, and a member who recorded `CODEX_HOME` at init had the shared directory reported unread on every pull — with advice that cannot help, since the write judged unread is the shared one, not the configured path. A declared read follows a recorded root only when it hangs off one of the tool's own roots, so `~/.agents/skills` stays a read and Codex's own `skills` moves with its home (for [#1886](https://github.com/Tencent/teamai-cli/issues/1886)).
|
|
123
|
+
- An edit to a doc the team has, made in the docs mirror (`sharing.docs.localDir`), is offered by `teamai status` and `teamai push` at its team path `docs/<rel>`, instead of only an edit to the team clone's checkout, which `pull` keeps clean. A mirror file that matches any version of that doc in the team's history is a copy, not an edit, and is left out, so a stale copy cannot propose to overwrite the team's newer file; a file for a doc the team does not have stays where it is, since the user-scope mirror is machine-wide; an edit in the checkout still wins for the same path (for [#1851](https://github.com/Tencent/teamai-cli/issues/1851)).
|
|
124
|
+
- `teamai push --file <local file> --path <team path>` answers which pull request is open when the local file holds the default branch's bytes and a request of the branch --branch names still proposes others, instead of reporting that there is nothing to push and leaving that request as it was.
|
|
125
|
+
- `teamai push --file <local file> --path <team path>` is back: it proposes exactly one file, byte for byte, at exactly one team path as a pull request, leaving the team clone's other edits out. 0.30.0 removed it on the mistaken premise that it had never been released; it was released in 0.29.0 and documented for [#1402](https://github.com/Tencent/teamai-cli/issues/1402), and the removal left no migration path or changelog entry. `teamai-session-to-task` no longer calls it (its propose step delivers through the workflow engine), so this restoration is for members and scripts that used it directly (for [#1852](https://github.com/Tencent/teamai-cli/issues/1852)).
|
|
126
|
+
- The local-agent report now lists every rule the reporting tool actually receives, with its `rule_type`: rule files scanned on disk, prompts delivered through the tool's claudemd block (`prompt`), and agent hooks recorded for that tool (`hook`). A prompt or hook that shares its slug with a file in the rules directory is reported as what the manifest says it delivered, not as a rule. Entries are taken only from the current tool's user or workspace scope, an unknown version is omitted rather than invented, and a legacy manifest entry with no recorded tools counts only while the tool's managed rules block confirms the delivery. A rule the manifest does not record, and a manifest rule that does not reach this tool, now report `source: "local"` instead of `enterprise`, so a backend's counts per source move accordingly.
|
|
127
|
+
- Team scripts (`prePull`, `postPull`, `postInit`, `postDeploy`) are started with `windowsHide: true`, so a Windows member no longer gets a console window per script when the pull comes from a git hook that has no terminal (for [#1805](https://github.com/Tencent/teamai-cli/issues/1805)).
|
|
128
|
+
- A project uninstall removes a tool's machine-wide hooks when no other install on the machine runs that tool: the Codex family's user hooks, the Pi and Oh My Pi extensions and Pi's `teamai-agent-*` extensions, OpenCode's user plugin and `teamai-agent-*` plugins in every OpenCode home teamai wrote, the Kiro and Antigravity hooks, the bridged team hook file, Copilot's built-ins in `$COPILOT_HOME/hooks`, and the Hermes plugin and hook. It keeps them, and names them, while the user scope, another project, an HTTP agent or a project whose config does not parse may run the tool, and on `uninstall --agent`. The OpenClaw and DeepSeek Harness hooks follow the same rule: a project uninstall used to remove them even while another project ran them. A project uninstall also keeps the built-in hooks in a tool's home settings while the HTTP agent runs them. Removing teamai's Codex hooks also takes back Codex's trust of them in `~/.codex/config.toml`, and leaves the member's own hooks and their trust (for [#1825](https://github.com/Tencent/teamai-cli/issues/1825), [#955](https://github.com/Tencent/teamai-cli/issues/955)).
|
|
129
|
+
- Uninstall takes back what workflow worktrees set up in a checkout once none is left: `.teamai/workflow-worktrees`, `.teamai/workflow-hooks`, their block in `.git/info/exclude`, and `extensions.worktreeConfig`, which goes back to the member's own value. In self mode it removes the `teamai-learnings` and `teamai-reports` worktrees from the project repository, and their branches unless one holds commits origin does not have, such as a publish that could not push: that branch stays, and the preview names it. It also removes the empty agents folders self mode's init makes.
|
|
130
|
+
- `teamai push` ignores CRLF-only differences in `teamai.yaml` (for [#1830](https://github.com/Tencent/teamai-cli/issues/1830)).
|
|
131
|
+
- A call the host blocked before it ran no longer counts as a failing tool, so a Claude Code session where the auto-mode classifier timed out eight times no longer reaches the friction threshold that offers `teamai-share-learnings`. The Stop scan counted every `tool_result` with `is_error: true` that was not a permission denial as a tool error, and Claude Code marks a call it refuses to start that way; the message names the member's gateway model first (`RCH10-CQ-2MM is temporarily unavailable (timed out), so auto mode cannot determine the safety of Bash right now`), so the scan matches the sentence after it rather than the model. Such a call now counts as neither a rejection nor an error, and a session whose tools really did fail scores as before (for [#1821](https://github.com/Tencent/teamai-cli/issues/1821)).
|
|
132
|
+
- A Cursor hook whose command runs `teamai` is no longer removed by a built-in-only refresh. Cursor entries count as teamai's only by a built-in command marker or a managed record, as the other formats already did, so a member or team hook such as `teamai env exec -- npm test` survives `teamai hooks inject` and `teamai pull`.
|
|
133
|
+
- `teamai push --branch <name>` can push to the same destination again. A destination branch an earlier push left locally is checked out and extended, and one that only origin has is created from origin's tip; `git checkout -b` used to fail on the existing branch, or the new commit was rejected non-fast-forward.
|
|
134
|
+
- `teamai uninstall` removes what it created and then emptied: a shell profile that held nothing but teamai's block, a tool settings file whose only content was teamai's hooks, the hook wrapper in `~/.teamai/bin`, an empty `dashboard/session-owners.jsonl`, and the directories that held only those — including a profile or settings file that existed before `init` and held nothing else. `debug.log` stays, since a failed uninstall is explained there (for [#1808](https://github.com/Tencent/teamai-cli/issues/1808)).
|
|
135
|
+
- `hook-dispatch` removes the temp file that carries a payload to a background child on every exit, including the paths that return before reading it, and a background pass clears payload files an earlier one left in the temp directory. A Windows hook whose child exited early, or one killed before its child started, kept a full hook payload — tool input and output — in `%TEMP%` for good (for [#1812](https://github.com/Tencent/teamai-cli/issues/1812)).
|
|
136
|
+
- Pull says when it could not apply the team MCP servers, and why, such as `Team MCP servers were not applied: EACCES: permission denied, open '.../.mcp.json...'`. It wrote that only to `~/.teamai/debug.log`, so a failed write looked like a pull that changed nothing
|
|
137
|
+
- A tool teamai starts in a directory gets `PWD` set to that directory. OpenCode works in `PWD`, not in its process's directory, so a workflow step or benchmark trial on OpenCode started from a member's checkout edited that checkout instead of its own worktree or clone (for [#1793](https://github.com/Tencent/teamai-cli/issues/1793)).
|
|
138
|
+
- A label a local confined judge gave names the model alias its scorer asked for, beside the model the tool reported. It named only the model, so a benchmark read every judged verdict as a deviation from its pinned judge (for [#1793](https://github.com/Tencent/teamai-cli/issues/1793)).
|
|
139
|
+
- `teamai update` exits 1 when the install fails, the running install is still the old version, or the hook refresh after an update fails. It printed the failure and exited 0 before, so a script read a broken update as success. An unreachable registry with nothing newer still exits 0.
|
|
140
|
+
- Pending-review queue writes share a lock, so accepting or rejecting an item does not drop a section another import just queued, and two removals do not race over one temp file. A failed atomic replacement keeps the queue and removes its temp file; a busy lock reports an error for retry.
|
|
141
|
+
- An import or `codebase --deep-enrich` that stopped, and that `teamai workflow resume` can continue, keeps other imports out of its teamwiki until its run ends, not only while one of its steps runs; the refusal names the run and how to resume or cancel it. The import lock moves from beside the teamwiki to `~/.teamai/locks`, so an `--output` teamwiki in a checkout stays clean; an older teamai on the same machine does not see a lock this one holds (for [#1589](https://github.com/Tencent/teamai-cli/issues/1589)).
|
|
142
|
+
- `teamai review --branch` in single-repo mode checks the team files under `.teamai/` on the branch. It listed them relative to `.teamai/` but read them from the repository root, so it skipped every file and reported a clean branch (for [#1767](https://github.com/Tencent/teamai-cli/issues/1767)).
|
|
143
|
+
- A hook dispatch that fails with an unexpected error records it in `~/.teamai/debug.log`. A git hook runs silent and a background dispatch discards its stderr, so such a failure left no trace anywhere (for [#1768](https://github.com/Tencent/teamai-cli/issues/1768)).
|
|
144
|
+
- Background hooks on Windows launch through headless conhost and avoid detached console creation, preventing Windows Terminal windows from opening on each dispatch (for [#1747](https://github.com/Tencent/teamai-cli/issues/1747)).
|
|
145
|
+
- With `language: en` in `teamai.yaml`, the recall block teamai writes into a tool's instruction file, such as `.claude/rules/teamai-context.md`, and adds through a session hook is English only. It kept the Chinese self-exemption paragraph that the `teamai-recall` rule already drops (for [#1769](https://github.com/Tencent/teamai-cli/issues/1769)).
|
|
146
|
+
|
|
147
|
+
- `teamai recall maintenance --update-quality` finds a skill that reaches the recall threshold. A skill's vote id is its bare name, while the file is `skills/<name>/SKILL.md` or `skills/<namespace>/<name>/SKILL.md`, so looking the id up as `<id>.md` never matched and every skill was skipped without a word. An entry that clears a threshold and still matches no file is now reported rather than dropped, and the type it is reported under comes from the directory that matched, so it reads `docs`, `rules` or `skills` on Windows too (for [#1735](https://github.com/Tencent/teamai-cli/issues/1735)).
|
|
148
|
+
- The learnings a draft incorporates are chosen by topic instead of by popularity. The most-opened entries used to take every slot before non-learnings were filtered out, so a draft could carry five popular docs and no learning at all, or one about an unrelated subject. A learning whose name, title and tags share no word with the entry is now left out, and a namespaced learning's vote id matches its file on Windows (for [#1735](https://github.com/Tencent/teamai-cli/issues/1735)).
|
|
149
|
+
- The Stop hook no longer waits on the team remote to push votes. The push ran inside the 4.5 s foreground budget, so on a remote a few seconds away the hook's exit cut it every time: the Stop waited 4.5 s, the vote commit stayed unpushed in the reports checkout, and the next Stop tried again until a pull carried it. The push now runs in the detached pass of Stop and SessionEnd, with a 30 s budget (for [#1766](https://github.com/Tencent/teamai-cli/issues/1766)).
|
|
150
|
+
- A tool call and a prompt keep the agent waiting less. On macOS and Linux, a hook with nothing to print starts the background process and exits before the CLI bundle loads: a tool call went from 177 ms to 32 ms, a prompt from 200 ms to 31 ms (median of 25 interleaved runs each, without the login shell). A prompt still runs in full while a package or contribute hint waits for it, or on a machine that syncs over HTTP. `~/.teamai/debug.log` shows `[hook-dispatch] post-tool-use/claude fast path` for each one. Outside any teamai scope the background process runs no handler and logs `no scope`, unless the machine syncs over HTTP. A config load reads `manifest/members.yaml` once per commit of the team repo, kept with teamai's other git answers in the temporary directory, so a tool call in a scope starts no git process where it started 10. Windows now keeps those answers between runs too, in `%TEMP%\teamai` when the temporary directory is inside the user's profile, as it is by default (for [#1788](https://github.com/Tencent/teamai-cli/issues/1788)).
|
|
151
|
+
- A session start keeps the agent waiting less. It looks for merged MRs after it returns, so it no longer waits on `git remote get-url` and `gh pr list` (or a REST call of up to 8 s). It reads the team delivery and the skills of the delivered revision once, remembering what a revision names, and on macOS reads the process table with one `ps` where it ran ten. A repeated session start in a workspace waits on 2 git processes where it waited on 7, and on one other process where it waited on 10.
|
|
152
|
+
- A tool call and a prompt on macOS and Linux no longer wait for your login shell to load your profile and the team env. With Claude Code 2.1.119 or later, `~/.claude/settings.json` runs the PostToolUse hook without waiting for it, except for `TodoWrite`, whose reminder still reaches the agent in the same turn. With Codex 0.148.0 or later, when every Codex build teamai finds (`codex` on PATH and the desktop app's) is that new, `~/.codex/hooks.json` does the same. Below those versions, when the version cannot be read, and for `claude-internal`, `tclaude`, `codex-internal` and `tcodex` at any version, the PostToolUse entry starts teamai through `~/.teamai/bin/teamai` and leaves the login shell to the background process. The UserPromptSubmit entry starts teamai that way for all of these tools, and a prompt is answered without the login shell once teamai has seen, from inside it, that the session's directory does not sync over HTTP. Windows and a project file a repository commits keep today's entries. After an upgrade or downgrade across these versions, the next session start or `teamai pull` rewrites the entry.
|
|
153
|
+
- A Stop reads the checkout with one `git status --branch` for both the session's end record and the dashboard's Stop event, where it ran three git commands.
|
|
154
|
+
- `git worktree add` waits the same however many worktrees the repository has: teamai's git hook adds the new checkout's git exclude lines while git waits and leaves the other checkouts to the pull it starts after. With four checkouts the wait drops from 16 git processes to 10. A pull asks git which delivered paths each checkout tracks and offers once, not once for the exclude sync and again for the check after it.
|
|
155
|
+
- A login bash that loads the team env asks git for the directory's repository once, not once for each of the two passes of the env loader.
|
|
156
|
+
- `teamai uninstall` removes the rules, skills and agents directories it emptied, so a project no longer keeps an empty `.claude/rules` after a workspace uninstall. A directory that still holds anything of yours, an empty folder included, stays, and so does the tool's own directory.
|
|
38
157
|
|
|
39
158
|
### 💥 Breaking Changes
|
|
40
159
|
|
|
160
|
+
- **A default hook's parameters live in `params.yaml`, not in `HOOK.yaml`'s `with:`.** `hooks/teamai-friction-reminder/` and `hooks/teamai-mr-hint/` ship `params.yaml`, and a team folder holding only its own `params.yaml` keeps teamai's `HOOK.yaml` and texts. A key it leaves out keeps teamai's value. Pull refuses a team `HOOK.yaml` that still has `with:` and names `params.yaml`, and until the keys move there teamai's folder is in force, so move them before members upgrade (for [#1829](https://github.com/Tencent/teamai-cli/issues/1829)).
|
|
161
|
+
- **A team folder named like a teamai default holds only the files it changes.** `hooks/teamai-<x>/`, `rules/teamai-<x>/` and `workflows/teamai-<x>/` at the team root take every file they leave out, marker included, from teamai's default, and a file of the team's replaces teamai's of that name with its language variants. A lone `rules/teamai-recall/<x>.md`, which pull delivered as a rule of its own, is now part of teamai's recall rule. Have every member upgrade before you commit a folder that holds only some files: an older teamai reads `rules/teamai-recall/block.md` as an always-on rule of its own.
|
|
162
|
+
- **`TEAMAI_AGENT_DIR` is a reserved team env name.** It names an agent folder's own copy, so a team value for it is ignored and pull warns about it.
|
|
163
|
+
- **A skill can be one file, so a file under `skills/` can be a skill.** `skills/[<ns>/]<name>.md` whose frontmatter has a `description` is delivered as `<name>/SKILL.md`. Notes without one, such as `NOTES.md` or `README.md`, stay notes.
|
|
164
|
+
- **`teamai codebase --lint --json`, the `teamai-benchmark` workflow's `table` output and `teamai dashboard`'s `/api/workspaces` rename keys.** `assetGraph`, `assetCount` and the unresolved reason `no-asset` are `resourceGraph`, `resourceCount` and `no-resource`, `table.assets` is `table.resources`, and each `/api/workspaces` project reports `repoAnchor` instead of `projectAnchor`. A script or a team workflow that reads the old keys finds nothing there. Nothing teamai stores changes: benchmark records hold no such key, and session events keep their `projectAnchor` field.
|
|
165
|
+
- **A directory that holds a folder marker is one resource, and every file in it is that resource's.** A repo with `rules/onboarding/RULE.md` delivered it as the rule `onboarding/RULE`, and each other `.md` file there as a rule of its own; `rules/onboarding/` is now the rule folder `onboarding`, and pull removes the copies it delivered of those files and says so once. `workflows/release/WORKFLOW.yaml` was a workflow named `WORKFLOW` and is now the workflow folder `release`. `scorers/<name>/SCORER.md` and `agents/<name>/AGENT.md` are scorer and agent folders. To keep the files as they were, rename the marker, such as `git mv rules/onboarding/RULE.md rules/onboarding/overview.md` (for [#1787](https://github.com/Tencent/teamai-cli/issues/1787), [#1791](https://github.com/Tencent/teamai-cli/issues/1791)).
|
|
166
|
+
- **Team env names `TEAMAI_WORKFLOW_DIR`, `TEAMAI_HOOK_DIR`, `TEAMAI_RULE_DIR` and `TEAMAI_MCP_DIR` are reserved.** Each names a folder's own copy, so a team value for one is ignored and pull warns about it. A team that already sets one renames it (for [#1787](https://github.com/Tencent/teamai-cli/issues/1787)).
|
|
167
|
+
- **The TodoWrite hint has no hook entry of its own.** It runs in the `PostToolUse` `*` entry, `Hook dispatch post-tool-use wildcard`. The `--matcher TodoWrite` entry is no longer installed, and the next pull removes it, from a project's team-only settings file too. A timeout a team set for it in `hooks/hooks.yaml` (`builtin.overrides` for `Hook dispatch post-tool-use TodoWrite`) now applies to nothing: remove it, or set the timeout on `Hook dispatch post-tool-use wildcard`, where it applies to every tool call. `teamai doctor` notes the ignored override and still passes. `builtin.disabled` with either key still turns the hint off. On Cursor, Codex and WorkBuddy the hint has the wildcard's 10 s timeout where its entry had 3 s (for [#1788](https://github.com/Tencent/teamai-cli/issues/1788)).
|
|
168
|
+
- **With recall off, the hooks record no recall adoption, cast or push no vote, and give no `TodoWrite` reminder.** `recall-attribution`, `votes-sync`, `votes-push` and the `TodoWrite` reminder read the same switch as `teamai recall status`: `TEAMAI_RECALL_DISABLED=1`, then the member's `recallEnabled`, then the team's `sharing.recall.enabled`, which is off by default. They used to check only the variable, so a team that never turned recall on still collected votes, and its agents were told to use a `teamai-recall` agent pull had removed; it now collects none and gets no such reminder. `teamai recall enable` and `disable` take effect at the next hook event (for [#1788](https://github.com/Tencent/teamai-cli/issues/1788)).
|
|
169
|
+
- **WorkBuddy's user-scope rules, team instructions, agents and MCP file go to the data root of the app that launched last, not to the one whose directory exists.** A pull used to hold those surfaces unless `~/.workbuddy/` was there; on a machine where `.workbuddy-ai/` launched last it delivered the skill and held the rest, and where both roots exist it wrote to `~/.workbuddy/` even when that was the other product's leftover. `.workbuddy/` is WorkBuddy's data root and `.workbuddy-ai/` is WorkBuddy AI's — a separate install with its own executable and update channel — and uninstalling either leaves its root behind, so presence named the wrong one. Each root records its launch in `last-launch.json`, the newer record names the live app, and `teamai doctor` takes that root as the install proof. Project scope still moves skills only, a team's `userScope` override keeps the destination it names, `settings.json` and hooks stay in `.workbuddy/`, and an install with no record on either side keeps the old rule, where a present `.workbuddy-ai/` wins (for [#1273](https://github.com/Tencent/teamai-cli/issues/1273)).
|
|
170
|
+
- **`teamai doctor` exits 0 when `hooks/list` answers with a config error for the cwd.** It reports the Codex error (for example an MCP server entry Codex rejects) as a note, where it used to exit 1 and fail "Codex trusts the teamai hooks" with every hook listed as `not loaded`. Codex returns no hooks and an `errors` list in that case, which says nothing about trust, so a CI job that read that exit 1 now sees 0 (for [#1748](https://github.com/Tencent/teamai-cli/issues/1748)).
|
|
171
|
+
- **`teamai remove` exits 1 when it removes nothing, and the `roles` and `projects` edits exit 1 when their branch reaches no pull request.** A refusal covers an unsupported resource type, a call with no name, and a name no file matches; a failure covers a handler that deleted no file, a push that failed, and a branch pushed without the pull request that reviews the removal. All of them printed the reason and then exited 0, so a script or a CI job read a refusal, or a removal that never reached the team, as done. A provider that reaches only git, and a checkout whose `repo` and remote both name no hosted repository, open no pull request at all, so those cases stay 0.
|
|
172
|
+
- **GitHub `teamai import --from-mr` exits 1 when a full 100-commit `gh pr view` result cannot be completed through `gh api` or the REST fallback.** It previously exited 0 and extracted a learning from only the first 100 commit headlines. A failed import now starts no AI extraction and writes no learning for that PR; scripts must handle the non-zero exit and retry after fixing access or request failures. A complete import still exits 0 (for [#1744](https://github.com/Tencent/teamai-cli/pull/1744)).
|
|
173
|
+
- **`teamai-share-session` and `teamai-share-learnings` no longer take `judge`.** They take the judging offers of the driver that runs them. A team copy that declares or passes `judge` fails to parse until it drops it (for [#1670](https://github.com/Tencent/teamai-cli/issues/1670)).
|
|
174
|
+
- **Labels decided by a stage carry judge kind `stage`.** teamai 0.29.0 and earlier skip those label lines (for [#1670](https://github.com/Tencent/teamai-cli/issues/1670)).
|
|
175
|
+
- **A run can carry `awaits`, and an archived pass of a fan-out item its `item`.** An older teamai refuses to claim a published run that carries either, so upgrade every install that claims a team's runs together (for [#1670](https://github.com/Tencent/teamai-cli/issues/1670)).
|
|
176
|
+
- **`teamai benchmark run` refuses a suite whose judge cannot run here.** A scorer's judge tool, its `tool` else the suite's `defaults.tool`, must be on the machine, and its model alias must name a model for that tool, or start answers `scoring_unavailable` or `judge_model_unavailable` before any trial runs. A scorer name with `:` is refused in a suite as in a task (for [#1793](https://github.com/Tencent/teamai-cli/issues/1793)).
|
|
177
|
+
- **Benchmark plans and run records are version 2.** A run an older teamai started is not resumed (`benchmark_plan_outdated`, start it again with `teamai benchmark run <suite>`). Version 1 records still show on the dashboard, but `--fail-on-regression` and the dashboard's pooled rates compare only runs of one version, so the first run after upgrading has nothing to compare with. A suite's pass rates can move with the upgrade too: `teamai-benchmark` now judges a trial's suite scorers that share a judge tool, model and stages in one batched call, and the default `teamai-correctness` rubric judges success criteria from the task and the diff, not the transcript (for [#1793](https://github.com/Tencent/teamai-cli/issues/1793)).
|
|
178
|
+
- **A team's own `teamai-benchmark.yaml` judges a trial only with `subjects` and `score` steps.** teamai's workflow added them after `trials`; copy them into yours, or its trials that need a judge end `unscored`. To take `--task`, `--arm` or `--fail-on-regression`, it declares the `tasks`, `arms` and `fail_on_regression` inputs and carries the `regression` step, as teamai's does (for [#1670](https://github.com/Tencent/teamai-cli/issues/1670)).
|
|
179
|
+
- **`teamai score` is refused inside an agent session.** `teamai score --run`, `--session` or `--team-session`, a hand label included, answers `invoke_denied` there and names the line the person runs in their own terminal. To score its own session, an agent runs `teamai-share-session` (for [#1670](https://github.com/Tencent/teamai-cli/issues/1670)).
|
|
180
|
+
- **`teamai score --run --queue` is removed.** Pass `--driver none`, which starts the `teamai-score` run and leaves it to any driver. `teamai score --run`, `--session` and `--team-session` exit 1 with the code of a scorer left without a label, such as `judge_pending`. `teamai score --run --scorer <name>` takes only a scorer a step of the run lists, read at the team revision the run started from, and answers `scorer_not_found` for any other, which it read from the scorer cache before (for [#1670](https://github.com/Tencent/teamai-cli/issues/1670)).
|
|
181
|
+
- **A driver of your own judges a scored pass by driving the `teamai-score` run that `workflow report` or `workflow next` lists in `started`.** Its judge step is a confined prompt, given only to a driver that declares `can.confined` offers and reports `confined` (for [#1670](https://github.com/Tencent/teamai-cli/issues/1670)).
|
|
182
|
+
- **`teamai score` refuses a scorer name beside a scorer file.** `teamai score --scorer ./draft.md --scorer <name>` answers `invalid_arguments`: a scorer file is only tried, and a named scorer is labelled by a `teamai-score` run, so score them in separate commands. Before, the named scorer's label was stored without a run (for [#1670](https://github.com/Tencent/teamai-cli/issues/1670)).
|
|
183
|
+
- **`teamai score --next`, `--lease`, `--submit`, `--json` and `--stdin` are removed, with judge leases.** A driver judges a pass or a session by driving its `teamai-score` run with `teamai workflow next` and `report`: a pass's run comes in `started`, and `teamai score --session <id> --scorer <name> --driver none` starts a session's (for [#1670](https://github.com/Tencent/teamai-cli/issues/1670)).
|
|
184
|
+
- **A team workflow that runs `teamai-share-session` as a step passes `demand`.** `teamai-share-session` declares `demand: auto | named` and passes it to `teamai-score`: `named` when a person or an agent asks for the session, so every scorer judges it, `auto` from `teamai-finished-sessions`, which samples it and keeps to `daily_limit`. `teamai-share-learnings` passes `named`, and describe proposes it. Pull refuses a team workflow that passes no `demand`, naming the values it takes, and a team `teamai-share-session` declares it too (for [#1670](https://github.com/Tencent/teamai-cli/issues/1670)).
|
|
185
|
+
- **Finished sessions are archived and judged by `teamai-finished-sessions`, a default workflow a team can replace.** A session start's pull starts it in each scope that judges or archives attended sessions automatically, and drives it in a detached process; `teamai score --drain` starts and drives it too. It lists the finished sessions with `teamai session list --finished`, runs `teamai-share-session` for each, then starts `teamai-score` again for each pass and session whose judging lapsed (`teamai score subjects --lapsed`), so a member's session start also rescores the lapsed workflow passes of that data home. A team file of that name changes `--idle` or the run's `timeout`. A person may start it with other inputs, such as `--inputs '{"publish":"never","scorers":["review-quality"]}'`; a run the CLI or an agent started lists sessions only as the policies say (`policy_override_refused`). The hidden `teamai score-sessions` command is removed (for [#1670](https://github.com/Tencent/teamai-cli/issues/1670)).
|
|
186
|
+
- **A session's lapsed judging is started again, until the fourth lapse.** Before, a lapse closed a session for automatic judging. It starts again with the scorers its marks hold, unsampled: a scorer someone named is judged again, and is never refused by `daily_limit`; a scorer the session policy would add now is not. Each start counts toward `daily_limit`, and each session a run launches counts once, a batch of scorers on it once too. `teamai score --drain` keeps its exit codes and its lines, says `teamai workflow next` where it said `score --next` (for [#1670](https://github.com/Tencent/teamai-cli/issues/1670)).
|
|
41
187
|
- **An HTTP agent access token (`sk-`) is enrolled for one agent at a time.** `teamai init --http --token sk-<key> --agent claude,codebuddy`, or `--token` with no `--agent` on a machine whose endpoint already holds tokens for several agents, is refused with `An access token works for one agent only. Re-run with --agent <tool> naming the agent it is for`: the backend binds an access token to the first agent instance that reports with it, so one shared by several agents left all but the first at 401 while this machine still reported success. Run `init --http` (or `add-http`) once per tool, with `--agent <tool>` and that tool's own token; each agent then keeps its own, and an agent with no token of its own falls back to the shared token this machine already had. Members who set up several tools with one `sk-` token in a single `init` have to run it once per tool. A user token (`hk-`) still works for every agent: it stays shared, with any number of `--agent`, and each agent named with `--agent` drops a token of its own so it reports with the shared one.
|
|
42
188
|
- **Sessions are archived on teamai-reports on every git-kind team.** `teamai session push`, `session migrate` and `workflow publish --sessions` archive there, as self mode already did. Members on 0.28.0 or earlier do not list, search or resume sessions archived there, and their `workflow resume` does not restore step sessions archived there, until they upgrade. Sessions archived on the default branch before stay readable to both (for [#1385](https://github.com/Tencent/teamai-cli/issues/1385)).
|
|
43
189
|
- **Unattended runs now publish and score their sessions by default.** In CI, on a cloud VM or in a hosted job (`CI` or `TEAMAI_MODE=unattended`), `teamai score --drain`, which the local driver runs at the end of a run and every other driver runs before it ends, archives to teamai-reports, scrubbed: the captured sessions of this machine recorded as unattended, and the step sessions of the workflow runs driven here. Every scorer with `sessions: true` judges a sample of those captured sessions, within `daily_limit`. To keep the old behavior, set `unattended: off`: `sessions: { publish: { unattended: off } }` in `teamai.yaml` and `sessions: { unattended: off }` in `scorers/scoring.yaml` (for [#1385](https://github.com/Tencent/teamai-cli/issues/1385)).
|
|
@@ -46,13 +192,12 @@ All notable changes to this project will be documented in this file. See [standa
|
|
|
46
192
|
- **No workflow run starts or is driven from inside a workflow step.** The local driver now sets `TEAMAI_WORKFLOW_ATTEMPT` for the commands it runs, the tools of its prompt steps and setup. Every `teamai workflow` command that changes a run, `respond` included, answers `nested_workflow` there. `workflow start` also answers it in a workflow worktree and on a `teamai/<run>/...` branch. To run another workflow as part of a run, add it as a `workflow` step (for [#1086](https://github.com/Tencent/teamai-cli/issues/1086)).
|
|
47
193
|
- **An answer sent from inside an agent session counts as the agent's.** `teamai workflow respond --json` with a driver identity, and an answer typed in a terminal, record `agent: true` when the process has one of those variables, and a required approval refuses them with `agent_in_path`. So does a `teamai dashboard` started inside an agent session. The variables are evidence, not attestation: the person answers a required approval from their own terminal or the dashboard (for [#1086](https://github.com/Tencent/teamai-cli/issues/1086)).
|
|
48
194
|
- **Upgrade every install that publishes or resumes workflow runs.** A run this version publishes records its business repository, and its offer while it runs. teamai before this version answers `snapshot_unsupported` ("Update teamai and try again") on `workflow resume` and `--claim` of such a run, even of a run it published itself once a newer install took it over. Runs an older teamai published are not offered: resume them by id, or publish them again after upgrading to offer them (for [#1390](https://github.com/Tencent/teamai-cli/issues/1390)).
|
|
49
|
-
- A driver that lists a judge lease ref in `teamai workflow next` `running` gets `judge_lease`, and the run does not change. The ref used to come back in `cancelled`. Renew judge leases with `teamai score --next` (for [#1086](https://github.com/Tencent/teamai-cli/issues/1086)).
|
|
50
195
|
- teamai before 0.28.0 answers `driver.can.env: "commands"` with `invalid_json`. An external driver checks the CLI version before it sends `"commands"` (for [#1086](https://github.com/Tencent/teamai-cli/issues/1086)).
|
|
51
196
|
- **User-scope env no longer loads inside a project unless the project inherits the user scope.** Set `inheritUserScope: true` (`teamai init <repo> --inherit-user-scope`) in a project that needs the user scope's variables; its secrets stay out (#1018).
|
|
52
197
|
- `teamai codebase --extract` is removed, with its `--incremental` and `--max-files`: it wrote a second `teamwiki/` into the source repo, which recall never read. Use `teamai import --dir <repo>` (`--incremental` to re-extract only what changed), and `--output <dir>` to keep the result in `<dir>/teamwiki/` instead of the team repo. `teamai codebase --lint`, `--reconcile`, `--deep-enrich` and `--status` read the same teamwiki the import wrote.
|
|
53
198
|
- `teamai import --from-repo`, `--from-repo-list` and `--from-org` with `--output <dir>` now write `<dir>/teamwiki/`, as `--dir` and `teamai codebase` always did, instead of a `teamwiki/` beside `<dir>`; they no longer also rebuild or push the team repo. Without `--output`, an import now fails when teamai is not initialized, instead of writing to `./.teamai/team-repo/teamwiki/`.
|
|
54
199
|
- `teamai ci extract-mr --mode write` must run in the merged source checkout with `--team-repo` outside it (see `examples/ci/`); a team repo cloned inside the checkout skips the teamwiki update.
|
|
55
|
-
- **Upgrade every member together: team instructions leave the shared `AGENTS.md`.** `teamai pull` no longer writes the culture, `claudemd/` and recall blocks into the project's `AGENTS.md`, `~/AGENTS.md`, `~/.agents/AGENTS.md` or another tool's file, since members with different roles resolve different `claudemd/` selections and the shared file ended up holding whoever pulled last. Each installed tool gets them in its own file or session hook: Claude Code in `.claude/rules/teamai-context.md` (project) and `~/.claude/CLAUDE.md` (user); Cursor in `teamai-context.mdc` under `.cursor/rules` and `~/.cursor/rules`; CodeBuddy and WorkBuddy in one `.codebuddy/rules/teamai-context.md`, and WorkBuddy in `~/.workbuddy/rules/teamai-context.md`; OpenCode in `.opencode/teamai-context.md` and `~/.config/opencode/teamai-context.md`, listed in its `instructions`; Oh My Pi in `~/.omp/agent/RULES.md` and, in a project, through teamai's OMP extension; Pi through teamai's Pi extension in a project; Hermes in `$HERMES_HOME/SOUL.md` and, in a project, through a Hermes plugin teamai installs and enables. Copilot keeps `.github/copilot-instructions.md`. The first pull after updating removes the blocks earlier releases left in `AGENTS.md`, `~/AGENTS.md`, `.claude/CLAUDE.md`, `.codebuddy/CODEBUDDY.md`, `.omp/AGENTS.md`, `~/.omp/agent/AGENTS.md` and a moved tool's `claudemd` from the team's `toolPaths`, keeps everything else in those files, and names each file it changes; a block with a missing or repeated marker is left with a warning. A member still on an older release writes the blocks back into the shared files, so have everyone update. Pull writes only for installed tools, rewrites nothing that is current, removes the recall block when recall is disabled, and `--dry-run` lists the files it would change. Hermes skips project instructions over 4,000 characters, which pull and `teamai doctor` report. `teamai doctor` checks that each tool can load its instructions. A team `toolPaths` entry without `rules` keeps its configured `claudemd` for Claude Code, Cursor, CodeBuddy and WorkBuddy, and an entry with only `claudemd` is still delivered to. A team rule named `teamai-context` is not delivered, since it would land on teamai's own file, and a copy an earlier release delivered is removed unless the member changed it; neither a tombstone of that rule nor a namespaced placement of it reaches teamai's file. The HTTP local agent strips the old blocks of the tools a prompt reached, probes each tool as pull does, and its project prompts reach Pi, Oh My Pi and Hermes through their extension or plugin and the Codex family through its session hooks. It acks a prompt as failed, with the reason, when it reaches no tool: a target file teamai did not write, an extension or plugin that is missing, or text over Hermes' 4,000-character section. OpenCode counts `~/.claude/CLAUDE.md` as its fallback while that file holds teamai blocks, also from an excluded Claude Code, and pull warns when nothing keeps them current. A Hermes plugin named `teamai-instructions` or an Oh My Pi `teamai-hooks.ts` that teamai did not write is left alone, and a file CodeBuddy and WorkBuddy share gets the `teamai-recall` subagent block only when both have the subagent. teamai does not change `.gitignore`, `.git/info/exclude` or the index; a team that tracks a generated file such as `.github/copilot-instructions.md` still commits one member's selection. A project uninstall keeps the global Pi, Oh My Pi and Hermes adapters and Codex's user hooks
|
|
200
|
+
- **Upgrade every member together: team instructions leave the shared `AGENTS.md`.** `teamai pull` no longer writes the culture, `claudemd/` and recall blocks into the project's `AGENTS.md`, `~/AGENTS.md`, `~/.agents/AGENTS.md` or another tool's file, since members with different roles resolve different `claudemd/` selections and the shared file ended up holding whoever pulled last. Each installed tool gets them in its own file or session hook: Claude Code in `.claude/rules/teamai-context.md` (project) and `~/.claude/CLAUDE.md` (user); Cursor in `teamai-context.mdc` under `.cursor/rules` and `~/.cursor/rules`; CodeBuddy and WorkBuddy in one `.codebuddy/rules/teamai-context.md`, and WorkBuddy in `~/.workbuddy/rules/teamai-context.md`; OpenCode in `.opencode/teamai-context.md` and `~/.config/opencode/teamai-context.md`, listed in its `instructions`; Oh My Pi in `~/.omp/agent/RULES.md` and, in a project, through teamai's OMP extension; Pi through teamai's Pi extension in a project; Hermes in `$HERMES_HOME/SOUL.md` and, in a project, through a Hermes plugin teamai installs and enables. Copilot keeps `.github/copilot-instructions.md`. The first pull after updating removes the blocks earlier releases left in `AGENTS.md`, `~/AGENTS.md`, `.claude/CLAUDE.md`, `.codebuddy/CODEBUDDY.md`, `.omp/AGENTS.md`, `~/.omp/agent/AGENTS.md` and a moved tool's `claudemd` from the team's `toolPaths`, keeps everything else in those files, and names each file it changes; a block with a missing or repeated marker is left with a warning. A member still on an older release writes the blocks back into the shared files, so have everyone update. Pull writes only for installed tools, rewrites nothing that is current, removes the recall block when recall is disabled, and `--dry-run` lists the files it would change. Hermes skips project instructions over 4,000 characters, which pull and `teamai doctor` report. `teamai doctor` checks that each tool can load its instructions. A team `toolPaths` entry without `rules` keeps its configured `claudemd` for Claude Code, Cursor, CodeBuddy and WorkBuddy, and an entry with only `claudemd` is still delivered to. A team rule named `teamai-context` is not delivered, since it would land on teamai's own file, and a copy an earlier release delivered is removed unless the member changed it; neither a tombstone of that rule nor a namespaced placement of it reaches teamai's file. The HTTP local agent strips the old blocks of the tools a prompt reached, probes each tool as pull does, and its project prompts reach Pi, Oh My Pi and Hermes through their extension or plugin and the Codex family through its session hooks. It acks a prompt as failed, with the reason, when it reaches no tool: a target file teamai did not write, an extension or plugin that is missing, or text over Hermes' 4,000-character section. OpenCode counts `~/.claude/CLAUDE.md` as its fallback while that file holds teamai blocks, also from an excluded Claude Code, and pull warns when nothing keeps them current. A Hermes plugin named `teamai-instructions` or an Oh My Pi `teamai-hooks.ts` that teamai did not write is left alone, and a file CodeBuddy and WorkBuddy share gets the `teamai-recall` subagent block only when both have the subagent. teamai does not change `.gitignore`, `.git/info/exclude` or the index; a team that tracks a generated file such as `.github/copilot-instructions.md` still commits one member's selection. A project uninstall keeps the global Pi, Oh My Pi and Hermes adapters and Codex's user hooks while another install on the machine may run that tool, and names them; `teamai hooks remove` removes them (for [#945](https://github.com/Tencent/teamai-cli/issues/945), [#1825](https://github.com/Tencent/teamai-cli/issues/1825)).
|
|
56
201
|
- An env variable, hook or MCP server with a key its schema does not know, such as a misspelled `role:` or a hand-added `notes:`, is no longer delivered to anyone: the key used to be dropped silently, so a misspelled restriction shipped the entry to every member. `teamai pull`, the list commands, `teamai status` and `teamai doctor` name the file, the entry and the key. `teamai env add` also warns when it updates a variable carrying the unknown key; it, `teamai env remove` and `teamai remove mcp` keep the key when they rewrite the file. A key that a later version adds to these entries is unknown to this one too, so an entry that uses it is not delivered to a member still on this version: upgrade every member before the team uses a new entry key, as for a new `resources:` key (for [#822](https://github.com/Tencent/teamai-cli/issues/822)).
|
|
57
202
|
- `manifest/projects.yaml` and `manifest/roles.yaml` now reject a resource namespace that is not a single path segment, as a project id already had to be (the id keeps its own narrower ASCII rule). A namespace becomes a directory component (`skills/<namespace>/`, `agents/<namespace>/`, `learnings/<namespace>/`), so `../evil`, `a/b`, `C:evil`, a bare `..`, any name with a trailing `.` or space — which Win32 strips, making `.. ` arrive as `..` and `frontend.` as `frontend` — and a Windows device name such as `CON` or `COM1` under `resources:` no longer parse; the error names the offending entry. Nothing else is rejected: a namespace that is a plain directory name still parses, non-ASCII names and names with a space included. A manifest that fails to parse now reports the offending entry on one line (`Invalid projects manifest: projects.0.resources.skills.1: ...`) instead of dumping a raw validation object. Two namespaces of one resource type that differ only by case (`frontend`, `Frontend`) are rejected too, within a manifest and between the two, since they name one directory on Windows and macOS. A manifest that ships any of these — a device name, a trailing `.`, a case-only pair — parsed before and fails every pull now; rename the directory and the entry together.
|
|
58
203
|
- **Upgrade every member before a team declares a new axis.** `resources:` in `manifest/roles.yaml` and `manifest/projects.yaml` accepts `env`, `hooks`, `mcp`, `models`, `docs` and `wiki`, but teamai 0.25.0 and the 0.26.0 betas reject a `resources:` key they do not know, so a team that declares one breaks pull for every member still on those versions. From this version on, an unknown `resources:` key prints one warning naming the role or project and the key, and the scope syncs as if the key were absent; `teamai roles` and `teamai projects` keep the key when they save the manifest. `teamai roles|projects add/update --namespaces` never write the new keys, so nothing declares them until an admin does by hand (for [#707](https://github.com/Tencent/teamai-cli/issues/707); `wiki` added for [#912](https://github.com/Tencent/teamai-cli/issues/912)).
|
|
@@ -60,6 +205,13 @@ All notable changes to this project will be documented in this file. See [standa
|
|
|
60
205
|
- Each tool reads only its own `tool_extras.<tool>` from a YAML agent. Qoder, Qoder CN, ZCode and OMP used to receive `tool_extras.claude` and ignore their own key, which `teamai push` wrote their edits to, so an edit never reached them; a team that relied on Claude extras reaching these tools moves those fields to `tool_extras.qoder`, `tool_extras.qoder-cn`, `tool_extras.zcode` or `tool_extras.omp`. tclaude and tcodex read `tool_extras.tclaude` and `tool_extras.tcodex` and fill the fields those lack from `tool_extras.claude` and `tool_extras.codex`, and `teamai push` writes their edits to their own key instead of the Claude or Codex one. The first ordinary pull after updating re-renders a copy an older CLI wrote this way when that CLI recorded delivering it and the member has not changed it since; any other copy is left as it is until the team next changes the agent (for [#830](https://github.com/Tencent/teamai-cli/issues/830)).
|
|
61
206
|
- **Upgrade every member before a team introduces model aliases.** An older CLI ignores `models/aliases.yaml` and writes `model: strong` into every tool as is, a model no tool knows, and its `teamai push` reads a model changed in a deployed copy as an edit, so it can replace `model: strong` in the team's agent with a concrete model such as `opus`. Have everyone update first, then add `models/aliases.yaml` and move agents to an alias. TeamAI does not check versions; the first ordinary pull after a member updates replaces a literal `model: strong` with the resolved model (for [#830](https://github.com/Tencent/teamai-cli/issues/830)).
|
|
62
207
|
- **A single-repo (`kind: self`) team keeps one `teamai-reports` and one `teamai-learnings` checkout per repository, in its project partition (`~/.teamai/projects/<slug>/side-branches/`), for the user scope too.** The first command after the upgrade removes the user-scope checkouts in `~/.teamai/reports-wt` and `~/.teamai/learnings-wt`, and a project-scope checkout an older install left at the partition root. Their commits stay on the branch; a checkout with uncommitted changes is kept and named. teamai 0.28.0 run on the same machine afterwards cannot publish reports or learnings from either scope; they stay queued locally (`~/.teamai/user-usage.jsonl`, the partition's `usage.jsonl`, and the pending-learnings queues) until an upgraded pull sends them (for [#1443](https://github.com/Tencent/teamai-cli/issues/1443)).
|
|
208
|
+
- **`teamai import --resume` is gone.** An import's review is part of its workflow run: continue a stopped import with `teamai workflow resume <run>`, which the import prints when it starts. `--resume` exits 1 and says so (for [#1589](https://github.com/Tencent/teamai-cli/issues/1589)).
|
|
209
|
+
- **Imports and maintenance exit 1 where they used to exit 0.** A file `import --from-tools`, `--from-claude` or `--from-iwiki` cannot classify fails the import and writes nothing, and `recall maintenance --update-quality` exits 1 when an entry could not be drafted (for [#1589](https://github.com/Tencent/teamai-cli/issues/1589)).
|
|
210
|
+
- **`import --from-claude` (now `--from-tools`) writes each accepted item by its type** into `rules/`, `docs/` or `learnings/`, where every item used to go to `learnings/` (for [#1589](https://github.com/Tencent/teamai-cli/issues/1589)).
|
|
211
|
+
- **The votes-judge Stop hook is removed.** Adoption is judged by the `recall_adoption` scorer instead. `TEAMAI_UPVOTE_JUDGE=1` still works, read as `scoring: { recall_adoption: true, sessions: { attended: auto } }` for each key the member config leaves unset, and `teamai doctor` names it (for [#1589](https://github.com/Tencent/teamai-cli/issues/1589)).
|
|
212
|
+
- **Confidence rates adoption among the sessions that recalled a doc.** Reads rate every recalling session and a judge's verdicts the rest, so a team's existing confidence values, and the learnings `recall promote` and `--archive` pick from them, change after the first sync (for [#1589](https://github.com/Tencent/teamai-cli/issues/1589)).
|
|
213
|
+
- **A driver of your own may send `queued` to `workflow next`, `report` and `respond --json`.** The step timeout of each listed attempt then counts from that call, and the answer gives each its new deadline in `deadlines`. A command step that exits non-zero, other than 65, now fails `command_failed` (for [#1589](https://github.com/Tencent/teamai-cli/issues/1589)).
|
|
214
|
+
- **`teamai benchmark run` and `teamai self-improvement run` follow `workflows.driver`** when `--driver` is not given, where they always ran on the local driver (for [#1589](https://github.com/Tencent/teamai-cli/issues/1589)).
|
|
63
215
|
|
|
64
216
|
### ✨ Features
|
|
65
217
|
|
|
@@ -101,10 +253,14 @@ All notable changes to this project will be documented in this file. See [standa
|
|
|
101
253
|
|
|
102
254
|
### 🐛 Bug Fixes
|
|
103
255
|
|
|
256
|
+
- Cursor Stop hooks count user-aborted transcript turns and human prompts, where both stayed at zero. Quota and model errors are not counted as interrupts, and repeated Stop hooks keep one cumulative snapshot (for [#1736](https://github.com/Tencent/teamai-cli/issues/1736)).
|
|
257
|
+
- A workflow prompt step whose tool writes `"failure": null` in its result file succeeds. It used to fail though the tool had done the work. The result instruction now asks the tool to leave `failure` out unless the step failed.
|
|
258
|
+
- An attempt's `result.json` holds no secret of the run on disk: teamai masks a command's outputs, a tool's stdout result and a failed confined judge's output before it writes them, and the skill driver masks the result a child wrote once it reports. Before, the local driver masked them only when it reported, and the skill driver's child result not at all.
|
|
259
|
+
- `teamai codebase --reconcile` in a team repo commits the `teamwiki/.indices/graph-index.json` it updates and pushes it, under the import lock. It used to leave that file modified, so the next `teamai push` failed with `Cannot push: the team repo has uncommitted changes`. Product pages are not committed with it, even when staged, a run that finds nothing new leaves the file and pushes nothing, a push the remote refuses fails the command with git's reason, and the next run publishes a graph that a failed push left committed. `--dry-run` and `--output` publish nothing.
|
|
104
260
|
- `teamai init <url>` refuses to initialize a repository whose default branch holds `.teamai/teamai.yaml` with `mode: self` and no root `teamai.yaml` as a standalone team repo, preventing an unintended default skeleton from being pushed to the business repo's main branch (for [#1500](https://github.com/Tencent/teamai-cli/issues/1500)).
|
|
105
261
|
- A driver's `workflow next` without `claim` answers `not_owner` once the local `teamai-reports` checkout shows another install claimed the run, instead of leasing from a stale copy. A claim that loses a race answers `state_moved`, not `reports_failed`. An unattended `workflow resume --driver skill` no longer refuses a run that already ended as needing a person, and refuses `--hitl person`, which nobody would answer (for [#1390](https://github.com/Tencent/teamai-cli/issues/1390)).
|
|
106
262
|
- A failed write to teamai-reports or teamai-learnings reports what went wrong, such as the cause ssh gives, on one line without git's progress, in `teamai score --push`, `session push`, `pull` and `score --drain`, and where `pull`, `contribute` and `import` publish learnings (for [#1385](https://github.com/Tencent/teamai-cli/issues/1385)).
|
|
107
|
-
- A session archived on teamai-reports, scrubbed, now masks the value of every secret the team declares in `env/secrets.yaml`, whatever its name, as judge evidence and run records do. It used to mask only secret-shaped values and environment variables with secret-looking names. This covers `score --drain`,
|
|
263
|
+
- A session archived on teamai-reports, scrubbed, now masks the value of every secret the team declares in `env/secrets.yaml`, whatever its name, as judge evidence and run records do. It used to mask only secret-shaped values and environment variables with secret-looking names. This covers `score --drain`, `teamai-finished-sessions`, `session push --session`, `workflow publish --sessions`, and `session push` and `session migrate --push` with `--scrub`, except into a `--repo-root` clone. A tool call whose arguments no longer parse once masked, as when a declared secret is a number in them, keeps the masked text; it used to keep the original arguments, secrets included (for [#1385](https://github.com/Tencent/teamai-cli/issues/1385)).
|
|
108
264
|
- An archived session no longer keeps the start of a secret its first prompt carried in its title, in `_index.json` or in its file name. The title was cut to its length before it was redacted, so the cut left a start of the secret the redactor no longer recognized. Titles are now redacted first, and a title cut inside a secret the team declares is masked from where that secret starts (for [#1385](https://github.com/Tencent/teamai-cli/issues/1385)).
|
|
109
265
|
- `teamai init` now reports the returned cause when member registration fails, including failures before the roster callback, and identifies a busy `teamai-reports` branch. Both paths give a retry hint and keep local setup non-blocking (for [#1267](https://github.com/Tencent/teamai-cli/issues/1267)).
|
|
110
266
|
- `teamai session pull` no longer stops when two machines archived sessions for the same repo. It merges whatever the member's `pull.rebase` says, rebuilds a conflicted `_index.json` from the session files and commits the merge. A conflict in any other file aborts the merge and names the files, and an unfinished rebase, merge or other git operation is left as it is, with the step that finishes it. `teamai session push` pulls once and pushes again when the remote moved ahead, instead of keeping the commit local. A failed git step prints git's own reason (for [#1133](https://github.com/Tencent/teamai-cli/issues/1133)).
|