Available in
Marketplaces, most starred first
Tags
Add to README
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
By viekoMITIn 1 marketplace
Carries session context forward by keeping a living index.md in your repo that the next session reads at start. Claude Code adapter hooks into the Stop event and reads session titles from the transcript file; the file stays local with no external services.
Trending plugins
7-day copy clicks
Claude loads one when your task matches it, or you run it by name.
1 marketplace, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Session context persistence for AI coding. A file convention + per-host adapters. Pick up exactly where you left off, across sessions, agents, and machines.
<git-root>/.bonfire/
├── index.md
└── .gitignore (optional — gitignore if you want per-machine memory; commit if you want cross-machine)
index.md contains two managed fence blocks:
# my-repo
<!-- bonfire:auto-inflight:start v1 -->
## In flight
_Updated 2026-05-20 from pi:13e47a9f on `vieko/lead-bot-ash-migration`_
### Goal
PR #147 review prep + GTMENG-1182 calibration
### Next Steps
1. Address inline feedback on classifier
2. Run preflight calibration once classifier is stable
<!-- bonfire:auto-inflight:end -->
<!-- bonfire:auto-sessions:start v1 -->
## Sessions
- 2026-05-20 [pi:13e47a9f] vieko/lead-bot-ash-migration — PR #147 review + calibration
- 2026-05-19 [claude:9a8f1d2e] main — Update AGENTS.md PR convention
<!-- bonfire:auto-sessions:end -->
Everything outside the fences is yours to curate. Anything inside is managed by a bonfire adapter.
The canonical curated heading is ## Notes — the place for free-form context that complements the auto-managed ## In flight block (open intents, project decisions, runbooks). Sessions are different: they cap at 5 newest rows inside the fence; older entries overflow to a sidecar (log.md), not to an in-file ## Session archive heading. Bonfire is opinionated about not accumulating session prose in index.md — see skills/bonfire/commands/migrate.md if you're upgrading a pre-v7 file with paragraph-shaped session entries.
pi install git:github.com/vieko/[email protected]
(Use @main to follow latest, or pin to any tagged version.)
Hooks session_compact (rich structured summary) + session_shutdown (first-user-prompt fallback). Footer status, collision-resistant session ids, opt-in per repo. See pi/.
Add to ~/.claude/settings.json (paste, no install script):
{
"hooks": {
"Stop": [
{
"hooks": [
{ "type": "command", "command": "node /path/to/bonfire/claude/update-bonfire.mjs" }
]
}
]
}
}
Reads {type: "ai-title"} entries directly from the session JSONL. Idempotent across turns. See claude/.
Use the cross-agent fallback skill:
npx skills add vieko/bonfire
/skill:bonfire end # invoke manually at session end
See skills/bonfire/.
When the skill runs under Pi 0.82.0+, it uses Pi's bash-tool session env vars (PI_SESSION_ID, PI_SESSION_FILE) to derive the exact same short session id as the native adapter (so rows de-dupe instead of duplicating) and to read the session JSONL directly. On other hosts — or older Pi — it degrades to the generic rules in end.md.
In a linked Git worktree, adapters keep the in-flight block local and also upsert the session's row into the main worktree's index (when the main worktree has opted in). The main worktree is resolved via git rev-parse --path-format=absolute --git-common-dir or the first git worktree list --porcelain entry. Detached worktrees do not mirror a row; the main index's in-flight block is never changed by a worktree session.
Adapters honor an opt-in gate — they never auto-create .bonfire/ in random repos:
cd <your-repo>
mkdir .bonfire
Disable per repo:
rm -rf .bonfire
Or keep .bonfire/ but disable automation only:
echo '{ "auto": false }' > .bonfire/config.json
AI agents are stateless. Every conversation starts from scratch. The agent doesn't remember what you decided yesterday, why you chose that architecture, or where you left off.
Bonfire maintains a living context document — read at session start, updated at session end. No external services. No ritual. Just a markdown file in your repo, kept current by per-host adapters or by the agent itself.
The three layers serve different audiences:
pi/, claude/) — opinionated TypeScript/JS that uses each host's native hook surface. Zero ritual once installed.skills/bonfire/) — outcome-oriented spec for agents that lack a native adapter. The agent figures out the procedure.The adapter writes inside the fence markers and never touches anything else. Your prose, your sections, your headings are yours.
.bonfire/index.md is the only required file. Everything else inside .bonfire/ is yours — it's gitignored by default and serves as the personal sidecar dir for the repo. Common patterns:
Built from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.
vieko-bonfire@cascade-ai-ml-agents-misc-1 is listed by joshuarweaver/cascade-ai-ml-agents-misc-1 — review the source before installing
npx claudepluginhub joshuarweaver/cascade-ai-ml-agents-misc-1 --plugin vieko-bonfirePlugins from other owners that cover similar ground