Atlas Creative16 downloadsBundle selected vault notes into one LLM-ready text block with a token estimate.
Bundle selected notes from your vault into one LLM-ready block of text, with a token estimate and a check against the context limits of the models you care about.
Open the command palette and run:
#.Right-click a folder or a note in the file explorer and choose Copy as context pack. A folder packs everything under it; a note packs just that note. Both use your default options.
Notes are sorted by path.
## Title section, optionally followed by Path: ... and a fenced yaml block of its frontmatter, then the body. Notes are separated by ---.<context>, with one <note path="..." title="..."> per note containing an optional <frontmatter> and a <body>. Bodies and frontmatter are wrapped in CDATA, so the content is not escaped.Options (set per pack, with defaults in settings):
| Option | Effect |
|---|---|
| Format | Markdown or XML |
| Include frontmatter | Add each note's frontmatter as YAML |
| Include file paths | Add each note's vault path |
| Strip embeds | Remove ![[...]] embeds |
| Strip images | Remove  images and image embeds such as ![[photo.png]] |
Runs of three or more blank lines are collapsed to two.
In Settings → Context Pack:
Token counts are a fast approximation (about four characters per token, with runs of whitespace collapsed). They are not produced by any model's real tokenizer, and the real count varies by model and by content. Leave some headroom when a pack is close to a limit.
Once Context Pack is listed, open Settings → Community plugins → Browse, search for "Context Pack", then select Install and Enable.
main.js, manifest.json and styles.css from the latest release.<your vault>/.obsidian/plugins/context-pack/.npm install
npm run dev # watch build
npm test # unit tests (Vitest)
npm run build # type-check and production build
tests/fixtures/vault is a small sample vault for manual testing. Open it as a vault in Obsidian and link or copy the built plugin files into its .obsidian/plugins/context-pack/ folder.
Make sure main builds and the tests pass.
Bump the version. This updates package.json, manifest.json and versions.json together and stages the changes:
npm version patch # or minor, major, or an exact version such as 0.2.0
npm version also creates a git commit and a tag named exactly like the version, with no v prefix, which is what Obsidian requires.
Push the commit and the tag:
git push origin main --follow-tags
The Release Obsidian plugin workflow builds the plugin and creates a draft GitHub release with main.js, manifest.json and styles.css attached. Review the draft, add notes, then publish it.