stack-absorb
Skill8.6k starsChanged 2 months agoApache-2.0View on GitHub
Manually distribute working-tree changes (or a batch of edits already made on the current branch) across the correct branches of a Graphite (gt) stack, when gt absorb's blame-based auto-split doesn't match the logical grouping - e.g. new code with no prior line to blame onto, or changes that conceptually belong with a commit gt's algorithm wouldn't pick. Use when asked to "split these changes into the stack", "absorb this properly", "put this fix on the right branch", or when a change was made on top of a branch but really belongs several branches down.
- Deletes or force-pushes
Trending
Quiet since October.about the whole repository
Who's talking about maximhq/bifrost
- @ponceto91.bsky.social“permettant d'unifier l'accès à plusieurs fournisseurs avec une API compatible OpenAI ⬇️ …”Bluesky · Jan 25, 2026 · 26 likes
- A Hacker News story“Bitfrost – LLM gateway 90x faster than Litellm at p99”Hacker News · Aug 7, 2025 · 8 points
- A Hacker News story“50× faster than LiteLLM: Bifrost is a Go-based LLM gateway built for scale.”Hacker News · Dec 8, 2025 · 5 points
- A Hacker News story“I Found One Interesting Open Source GitHub Gem”Hacker News · Sep 16, 2026 · 3 points
- A Hacker News story“Show HN: Changed how I use agent harnesses”Hacker News · Aug 3, 2026 · 3 points
The biggest 5 of 54 mentions linking to the repository that our crawl found. Each line is their own headline.
See all 54
Talked about on GitHub, Hacker News and Bluesky (54 times).
On GitHub · 35
- Jul 22, 2026feat: dispatch binding tiers — post-merge audit + production wiring 5/5 + real Bifrost SDK — KooshaPari/OmniRoute2 reactions · 7 comments
- Oct 5, 2026deps: Bump the "all-dependencies" group with 1 update across multiple ecosystems — cynative/cynative1 reaction · 2 comments
- Sep 30, 2026Add verified Bifrost CLI 0.10.6 to Zeus — rcamarda390/my-docker-images1 reaction
- Sep 17, 2026chore(main): release 1.12.2 — cynative/cynative1 reaction · 2 comments
- Sep 16, 2026[Bug] openai_compatible 渠道的 Responses→Chat 转换会静默丢弃工具调用(同 chunk 并行调用只剩第一个 / 无 id 的调用整块丢失) — tbphp/gpt-load1 reaction · 1 comment
30 more on GitHub
- Sep 15, 2026deps: Bump the "all-dependencies" group with 2 updates across multiple ecosystems — cynative/cynative1 reaction · 2 comments
- Sep 11, 2026deps: Bump the "all-dependencies" group with 1 update across multiple ecosystems — cynative/cynative1 reaction · 2 comments
- Sep 7, 2026Assistant: support for OpenCode Go provider — posit-dev/positron1 reaction · 3 comments
- Sep 7, 2026Bifrost Gemini chat completions drops inlineData image/audio parts — Atharva-Kanherkar/kairo1 reaction
- Sep 3, 2026chore(deps): remediate PROD-5181 non-critical findings — pluralsh/console1 reaction · 5 comments
- Sep 3, 2026chore(deps): remediate PROD-5181 dependencies — pluralsh/console1 reaction · 5 comments
- Sep 3, 2026fix(deps): remediate Nexus and agent image CVEs — pluralsh/console1 reaction · 3 comments
- Sep 3, 2026feat(search): add Search1API as a search provider — BerriAI/litellm1 reaction · 7 comments
- Sep 2, 2026fix(nexus): remediate Go dependency vulnerabilities — pluralsh/console1 reaction · 3 comments
- Sep 1, 2026fix(nexus): remediate Bifrost and x/crypto vulnerabilities — pluralsh/console1 reaction · 3 comments
- Aug 31, 2026deps: Bump the "all-dependencies" group with 2 updates across multiple ecosystems — cynative/cynative1 reaction · 1 comment
- Aug 28, 2026chore(main): release 1.10.2 — cynative/cynative1 reaction · 1 comment
- Aug 25, 2026docs: add Bifrost to Deployment and observability — owainlewis/awesome-artificial-intelligence1 reaction · 3 comments
- Aug 24, 2026deps: Bump the "all-dependencies" group with 2 updates across multiple ecosystems — cynative/cynative1 reaction
- Aug 21, 2026deps: Bump the "all-dependencies" group with 1 update across multiple ecosystems — cynative/cynative1 reaction · 3 comments
- Aug 19, 2026chore(main): release 1.10.0 — cynative/cynative1 reaction · 1 comment
- Aug 18, 2026chore(main): release 1.9.4 — cynative/cynative1 reaction · 1 comment
- Aug 17, 2026deps: Bump the "all-dependencies" group with 1 update across multiple ecosystems — cynative/cynative1 reaction
- Aug 17, 2026deps: Bump the "all-dependencies" group with 2 updates across multiple ecosystems — cynative/cynative1 reaction
- Aug 14, 2026chore(main): release 1.9.3 — cynative/cynative1 reaction · 1 comment
- Aug 14, 2026deps: Bump the "all-dependencies" group with 1 update across multiple ecosystems — cynative/cynative1 reaction
- Aug 10, 2026deps: Bump the "all-dependencies" group with 1 update across multiple ecosystems — cynative/cynative1 reaction
- Jul 30, 2026deps: Bump the "all-dependencies" group with 2 updates across multiple ecosystems — cynative/cynative1 reaction
- Jul 29, 2026chore(main): release 1.9.0 — cynative/cynative1 reaction · 1 comment
- Jul 27, 2026deps: Bump the "all-dependencies" group with 1 update across multiple ecosystems — cynative/cynative1 reaction
- Jul 18, 2026fix(argis): restore full Go suite after Bifrost schema/API drift — KooshaPari/OmniRoute1 reaction · 2 comments
- Jul 9, 2026Enterprise-grade audit: docs, prompts, examples — luminik-io/alfred1 reaction · 4 comments
- Apr 30, 2026MM-68606: Support Claude Opus 4.7 — mattermost/mattermost-plugin-agents1 reaction · 2 comments
- Mar 5, 2026Add structured output support and update bifrost to v1.4.6 — mattermost/mattermost-plugin-agents1 reaction · 4 comments
- Feb 2, 2026[Feature] - Support Bifrost — kaitranntt/ccs1 reaction · 2 comments
On Hacker News · 15
- Aug 7, 2025Bitfrost – LLM gateway 90x faster than Litellm at p99says it tested it8 points · 1 comment
- Dec 8, 202550× faster than LiteLLM: Bifrost is a Go-based LLM gateway built for scale.5 points
- Sep 16, 2026I Found One Interesting Open Source GitHub Gem3 points
- Aug 3, 2026Show HN: Changed how I use agent harnesses3 points
- Dec 9, 2025Show HN: Bifrost – open-source LLM Gateway (50x lower latency than LiteLLM)3 points
10 more on Hacker News
- Aug 7, 2026Show HN: A model router should also provide a MCP gateway2 points
- Jul 2, 2026Show HN: Fastest Enterprise AI Gateway2 points
- Jan 30, 2026Show HN: Fastest LLM gateway (50x faster than LiteLLM)says it tested it2 points
- Dec 10, 2025Every LLM gateway we tested failed at scale – ended up building Bifrostsays it tested it2 points · 1 comment
- Aug 11, 2026The worst part of using multiple LLM providers is not the API differences1 point
- Aug 10, 2026I thought an LLM gateway was unnecessary. Then we added a second model provider1 point · 1 comment
- Aug 5, 2026Show HN: Bifrost: Enterprise MCP Gateway with Built-In Security: OAuth 2.0, RBAC1 point
- Aug 3, 2026Is Hermes Agent unusable without a model router?1 point · 1 comment
- Mar 19, 2026Bifrost CLI and Codex CLI: One Command to Set Up OpenAI Agent with Any Model1 point
- Feb 13, 2026Show HN: Bifrost: Fastest enterprise AI gateway1 point
On Bluesky · 4
- Jan 25, 2026permettant d'unifier l'accès à plusieurs fournisseurs avec une API compatible OpenAI ⬇️ github.com/maximhq/bifr... — @ponceto91.bsky.social26 likes and reposts
- Oct 29, 2025https://github.com/maximhq/bifrost/ — @tom-doerr.bsky.social1 likes and repost
- Jun 11, 2025An open-source middleware that serves as a unified gateway to various AI model providers, enabling seamless integration and fallback… — @golangch.bsky.social1 likes and repost
- Jun 8, 2025Bifrost seems interesting at least. An LLM proxy that claims to be 40x faster than LiteLLM, production oriented (ie handling high… — @pedromadruga.comsays it tested it1 likes and repost
In this repository15 other files it gives its agents.
- AGENTS.mdAGENTS.md
- add-pricing-fieldSkill
- api-validatorSkill
- changelog-writerSkill
- docs-writerSkill
- e2e-testSkill
- harness-test-writerSkill
- helm-updateSkill
- investigate-issueSkill
- release-checklistSkill
- resolve-pr-commentsSkill
- resolve-pr-comments-stackSkill
- review-prSkill
- security-auditSkill
- split-commit-into-stackSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
20 rules. About 0 are common, 10 are distinctive, and 10 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈10
Distinctive · estimate
This author's own choices. Worth a look.
10
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 17
Check git status --short first.
- Distinctive: line 23
Read its output critically:
- Very specific: line 25
If every hunk absorbs into a commit that's a good semantic fit, there's no significant "Not absorbed" leftover, and no untracked files were …
- Distinctive: line 28
If it scatters hunks across commits that are a poor conceptual fit (a stale docs-sync commit, a commit about a different concern that …
- Very specific: line 57
If --points-at returns a branch, that's the owner.
- Very specific: line 72
If a target file/section doesn't exist yet on the candidate branch (check with git show "<branch>:<path>"), the change belongs on a *later* …
- Distinctive: line 78
Before touching anything, copy the final intended content of every changed file somewhere safe (the session scratchpad), preserving each …
- Distinctive: line 102
Never git reset --hard or touch files you didn't back up.
- Distinctive: line 115
Read the current content of each file at this branch's tip - it usually differs from the top-of-stack version (later branches may have …
- Very specific: line 121
Verify: run the appropriate build/typecheck for whatever you touched (tsc --noEmit, go build ./..., etc.) before committing anything.
- Very specific: line 123
Check git status --short again - it must show *only* the files you intended to touch.
- Very specific: line 127
Commit with gt modify -a -m "<message>" (amends the branch's existing commit and auto-restacks everything above it).
- Very specific: line 131
Before running gt modify, regenerate any derived/bundled output that must stay in sync with the source you just edited - gt modify itself …
- Very specific: line 160
Verify the file typechecks/builds after resolving, with no markers left: grep -cE "^(<<<<<<<|=======|>>>>>>>)" "<file>" should be 0.
- Distinctive: line 167
After the last branch is committed and restacked:
- Distinctive: line 175
Verify from the *highest* branch your changes touched or that got restacked as a result (not necessarily the branch the user started on) - …
- Distinctive: line 184
Do not push anything - this workflow only rewrites local branches.
- Distinctive: line 188
Never git stash in this repo (see project convention: toolchain/lockfile churn makes pops conflict).
- Very specific: line 190
Never include unrelated dirty files in a gt modify -a - confirm git status --short shows only the intended paths first, every time, even if …
- Distinctive: line 194
Never invent commit content: if a file/section a change should modify doesn't exist yet at the candidate branch, that's a sign you picked …
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Stack Absorb
Distribute a set of changes across the correct commits in a Graphite stack, by hand,
when gt absorb's blame-based algorithm won't produce a clean result. This is slower
than gt absorb -f but gives a coherent, reviewable history: each target branch gets
exactly the hunks that belong to it, described in its own commit message, with nothing
stray swept in.
When to reach for this vs. plain gt absorb
Check git status --short first. Untracked (??) files are never absorbed even with
gt absorb -a - that flag only stages unstaged tracked changes, file creations are
never picked up. If any untracked files are part of the intended change, treat them as
part of the manual split below rather than expecting the dry-run to cover them.
Then try gt absorb -a --dry-run first - it's free and sometimes it's exactly right.
Read its output critically:
- If every hunk absorbs into a commit that's a good semantic fit, there's no
significant "Not absorbed" leftover, and no untracked files were left out of
consideration, just run
gt absorb -a -f(or let the user run it) and stop here. - If it scatters hunks across commits that are a poor conceptual fit (a stale
docs-sync commit, a commit about a different concern that happens to touch the same
lines), or leaves substantial new code as "Not absorbed" (no prior line to blame
onto - new functions, new JSX blocks, new state), that's the signal to do this
manually. Tell the user what
gt absorb --dry-runwould do and why it's messier than a hand split, and confirm before proceeding (AskUserQuestion) - this is a judgment call about commit history shape, not a mechanical one.
Step 1: Map every change to its target branch
For each distinct concern in the diff, find the commit that should own it:
git log --oneline -S"<distinctive string from the change>" --all -- "<file>"Pick a string that's specific to the concept being changed (a function name, a UI
label, an error message), not boilerplate. The oldest/most relevant match is usually
the commit that introduced what you're now modifying. Then resolve that commit to a
current branch tip - git branch --contains alone is not the answer, only a candidate
list: in a stacked history every branch above the true owner also contains that
commit, since it's in their ancestry too.
git branch --contains "<hash>" # candidates: the owner + everything upstack of it
git branch --points-at "<hash>" # non-empty only if <hash> IS a branch tip itself
gt log long # see the full stack shape with commit messagesIf --points-at returns a branch, that's the owner. Otherwise, treat --contains's
output as candidates only, cross-check against gt log long for which branch's own
commits plausibly introduce the concept, and record which one you picked. If more than
one candidate still looks plausible, stop and ask the user (AskUserQuestion) rather
than guessing.
Group the diff's hunks by target branch. A single file's changes routinely split across two or more branches (e.g. a bugfix on an old branch, a rename + new feature on a newer one) - that's expected, not a problem.
Judgment, not blame: the "right" branch is the one that owns the concept being
touched, which is not always the same as the last branch to edit that exact line. A
generated file (e.g. a bundled openapi.json) belongs with whichever branch changed
its source, not with whatever branch happens to have last regenerated it.
If a target file/section doesn't exist yet on the candidate branch (check with
git show "<branch>:<path>"), the change belongs on a later branch - find the commit
that actually introduces that file/section instead.
Step 2: Back up, then return to clean HEAD
Before touching anything, copy the final intended content of every changed file somewhere safe (the session scratchpad), preserving each file's relative path so two files with the same basename in different directories don't clobber each other's backup. Abort before touching the working tree if any backup fails:
mkdir -p "<scratchpad>/$(dirname "<file>")" && cp "<file>" "<scratchpad>/<file>" # for each modified fileThen restore tracked files to the current branch's committed state. Set aside any
intended untracked (newly-created) files separately first, since they have no
committed state to restore to and git restore/git checkout won't touch them:
git status --short # confirm what's dirty first
git restore --source=HEAD --staged --worktree -- "<tracked-files>" # NOT git checkout --
# (checkout only resets the
# worktree from the index,
# not the index itself)
# NOT git stash - never use
# git stash in this repo
git status --short # confirm the tree is clean againNever git reset --hard or touch files you didn't back up. If git status shows
files you don't recognize as part of this change, stop and ask the user before doing
anything - don't assume it's safe to revert or sweep in.
Step 3: Apply each branch's slice, bottom-up
Process target branches from the bottom of the stack upward (earliest commit first) - this matters because later branches' restacks will replay onto whatever the earlier branch ends up containing.
For each target branch:
gt checkout <branch>and confirmgit status --shortis clean before editing.- Read the current content of each file at this branch's tip - it usually differs from the top-of-stack version (later branches may have renamed things, added props, etc.), so re-derive the edit against what's actually here rather than blindly replaying the final diff. Verify the "before" text matches what you expect before editing.
- Apply only this branch's slice of the change.
- Verify: run the appropriate build/typecheck for whatever you touched (
tsc --noEmit,go build ./..., etc.) before committing anything. - Check
git status --shortagain - it must show only the files you intended to touch. If unrelated files are dirty (leftover debug instrumentation, a stray edit from elsewhere), do not sweep them in with-a; stage the intended files explicitly, or ask the user what to do with the stray diff first. - Commit with
gt modify -a -m "<message>"(amends the branch's existing commit and auto-restacks everything above it). Usegt modify -cinstead if this should be a new commit on the branch rather than folded into the existing one. Never use plaingit commithere - it won't restack descendants. - Before running
gt modify, regenerate any derived/bundled output that must stay in sync with the source you just edited -gt modifyitself does not know about repository-specific generators. For OpenAPI edits, runcd docs/openapi && python3 bundle.py, then confirmgit status --shortlists both the edited source YAML anddocs/openapi/openapi.jsonbefore committing, so the generated file lands in the same commit as its source.
Step 4: Resolve restack conflicts
A restack conflict is expected whenever another stacked branch independently touched
the same lines (e.g. two different features both added a prop to the same component).
gt modify/gt restack will stop and report it:
Hit conflict restacking <branch> on <parent>.
Unmerged files: <path>To resolve:
- Stay on the conflicted branch with the operation paused - don't
gt checkoutaway or start a newgt restack; the conflict markers are already sitting in the working tree from the operation that just stopped.gt abortonly cancels the paused operation entirely, it is not a way to "restart" it. grep -n "^<<<<<<<\|^=======\|^>>>>>>>" "<file>"to locate every conflict region in the file - there is often more than one.- Resolve each region by hand. The common case in this workflow is "keep both sides" (two independent additions near the same spot) - merge them in a sensible order rather than picking one side and discarding the other.
- Verify the file typechecks/builds after resolving, with no markers left:
grep -cE "^(<<<<<<<|=======|>>>>>>>)" "<file>"should be 0. gt add "<file>"for every resolved file, thengt continue.- Repeat if
gt continuehits another conflict further up the stack.
Step 5: Final verification
After the last branch is committed and restacked:
gt log short # no "(needs restack)" on any branch in your chain
grep -rlE '^(<<<<<<<|=======|>>>>>>>)' -- "<touched dirs>" # must be empty
git status --short # cleanVerify from the highest branch your changes touched or that got restacked as a result (not necessarily the branch the user started on) - restacking replays every commit above your changes, and a downstream branch could in principle break even without a conflict (e.g. a type that was fine in isolation becomes wrong once combined with a later branch's edits). If independent branches upstack diverged from each other, run the full build/typecheck from each affected branch's tip. Only after that, return to whatever branch the user was originally on.
Report back per-branch: which branch got what, and the verification status of each. Do not push anything - this workflow only rewrites local branches.
Guardrails
- Never
git stashin this repo (see project convention: toolchain/lockfile churn makes pops conflict). - Never include unrelated dirty files in a
gt modify -a- confirmgit status --shortshows only the intended paths first, every time, even if it was clean a moment ago (checking out a different branch can surface a different set of stray changes). - Never invent commit content: if a file/section a change should modify doesn't exist yet at the candidate branch, that's a sign you picked the wrong branch, not a reason to create it early.
- Confirm the overall plan with the user before executing when the mapping required real judgment (not purely mechanical) - name the target branch for each file/concern and get a go-ahead before checking out and editing anything.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

