Borrowing it
Nothing to install: this file belongs to longbridge/gpui-fast. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/longbridge/gpui-fast/main/.claude/commands/update-upstream.mdgit clone --depth 1 https://github.com/longbridge/gpui-fastWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/commands/longbridge/gpui-fast/update-upstream)<a href="https://agentmods.dev/commands/longbridge/gpui-fast/update-upstream"><img src="https://agentmods.dev/badge/commands/longbridge/gpui-fast/update-upstream/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/commands/longbridge/gpui-fast/update-upstream"><img src="https://agentmods.dev/badge/commands/longbridge/gpui-fast/update-upstream.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00026 | $0.01568 |
| Opus 5.5 | $0.00010 | $0.00627 |
| Sonnet 5.5 | $0.00005 | $0.00314 |
| Haiku 4.5 | $0.00003 | $0.00157 |
Grade A, and why
update-upstream scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 5d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 116 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Take a newer upstream zed into gpui-fast, following "Syncing with upstream" in
docs/upstream-sync.md. Read that document and UPSTREAM first; they are the
rules, this is the checklist. Target zed commit: $ARGUMENTS (empty means the
current main of zed-industries/zed).
0. Prepare
- Working tree must be clean;
git fetch origin. Never commit tomain. - A zed checkout lives at
~/github/zed. If missing:git clone --filter=blob:none https://github.com/zed-industries/zed ~/github/zed. Otherwisegit -C ~/github/zed fetch origin. - Resolve the target to a full hash (
NEW). Readzed_commit(OLD) andimport_commit(OLD_VENDOR) fromUPSTREAM. Report how many zed commits lie betweenOLDandNEWand which touch the tracked directories (git -C ~/github/zed log --oneline OLD..NEW -- <tracked dirs>). - Check whether zed now has crates that tracked crates depend on but
UPSTREAMdoesn't track (newpath/workspace = truedeps in theirCargo.tomls), or tracked crates zed deleted. - Check whether zed merged window composition (zed#62379). If it did, the
sync replaces
fast::compositionwith upstream's version (see "Where our API differs from upstream's"); stop and confirm the plan with the user before doing that.
1. Vendor commit (upstream code only)
Keep zed's commits: the vendor branch gets one commit per zed commit, not a single squashed import.
- If zed added crates we now need, add them to
trackedinUPSTREAMfirst (uncommitted is fine; the script reads the working tree'sUPSTREAM). Leave crates zed deleted intrackedfor the import, so their deletion is replayed; drop them fromtrackedin step 4. - Run
script/import-upstream --zed ~/github/zed NEW. Starting atOLD_VENDOR, it creates branchupstream/zed-<short NEW>in a worktree (../gpui-fast-upstream-<short NEW>) and replays every zed commit inOLD..NEWthat touches a tracked directory, limited to those directories, with its original author, committer, dates and message plus anUpstream-commit:trailer. It fails unless every tracked directory then matches zed atNEW. Its last line prints the new vendor commit. - Nothing of ours goes on this branch; root
Cargo.toml/Cargo.lockare ours and change in step 2.
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 5d ago Changed · +10 lines 31fbb5faa47c
- 1mo ago First seen · 106 lines · 26 tokens per session scan A 2bbe28fd7e82
update-upstream is a command published in the GitHub repository longbridge/gpui-fast (393 stars, last pushed yesterday), licensed Apache-2.0. It adds 26 tokens to every session and 1,568 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-10-01.
update-upstream compared with commands from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| update-upstreamlongbridge/gpui-fast | Command | 393 | yesterday | Apache-2.0 | A | 26 | Claude Code |
| merge-conflict-analysisrjmurillo/ai-agents | Command | 49 | yesterday | MIT | A | 0 | GitHub Copilot |
| release-notesOpenHands/extensions | Command | 176 | yesterday | MIT | A | 44 | Claude Code |
| commitechoVic/blade-code | Command | 181 | 24d ago | MIT | A | 8 | Claude Code |
| repo-audittractorjuice/arc-kit | Command | 2.3k | 2d ago | none | A | 29 | Claude Code |
| propsmill/infrahub-mcp | Command | 10 | yesterday | Apache-2.0 | A | 18 | Claude Code |
| codex-reviewoalders/kitchen-sink | Command | 5 | 3d ago | MIT | A | 41 | Claude Code |