Repository navigation
Releases
v0.1.5
Plugin sources, richer Copilot support, and tighter diffs.
New
- Plugin sources.
apply,diff,status,syncanddoctorcan take a plugin directory, or a git URL to one, as well as a kitbag profile. A plugin is a folder withrules/<name>.mdat its root and nokitbag.toml. Frontmatter acceptsglobs(a list or a comma-separated string),pathsandapplyTo. A rule without those fields applies everywhere. Tools that cannot scope a rule still load it always-on, labelled with its globs. The plugin is named from.claude-plugin/plugin.jsonorplugin.json, or after its directory. Nothing is written into the plugin;sync --fromrefuses one, so a profile is not created inside it. (#78, agent-plugins-spec discussion #100) - Copilot commands and skills. The
copilottarget now carries commands as VS Code prompt files (.github/prompts/<name>.prompt.mdat project scope) and skills under$COPILOT_HOME/skills/and.github/skills/. Custom agents and chat modes are still listed by capture and not carried. (#22, #74)
Changed
- A bare
$VARin a Copilot project.mcp.jsonor.github/mcp.jsonis captured as a reference, as in the user file. The warning about references inurlandcwdnow says neither Copilot CLI's nor VS Code's docs say they expand there. (#22)
Fixes
undoafter anapplyorsyncthat had nothing to write no longer leavesstatussayingtool editedwhere it should sayprofile changed. (#63)capture --forceinto an existing profile keeps MCP servers it found in no tool (for example one disabled everywhere, or one for a tool not installed here).--prunedrops them instead. (#59)- An apply that left a disabled MCP server in place no longer says only "Up to date" above the warning. A corrupt
applied-servers.jsonis kept asapplied-servers.json.bakbefore it is rewritten. The README says how git source URLs are matched and that some tools hash resolved secret values. (#60)
Security
- Diffs now mask secrets already in a tool's config that they used to show: a random-looking value under an ordinary name, a flag whose value is on the next line of a pretty-printed
argsarray, and single-quoted TOML values. Checksums, image digests (ghcr.io/…@sha256:…), ObjectIds and ULIDs stay visible unless they sit under a secret-sounding name. (#75)
Full details in CHANGELOG.md.
Note
kitbag is still early: redaction is best-effort, so review a captured profile before sharing it, and only apply profiles from sources you trust. See SECURITY.md.
Install
curl -fsSL https://raw.githubusercontent.com/cargopete/kitbag/main/install.sh | shWindows (PowerShell): irm https://raw.githubusercontent.com/cargopete/kitbag/main/install.ps1 | iex
This release also attaches install.sh and install.ps1. To pin the installer to 0.1.5:
curl -fsSL https://github.com/cargopete/kitbag/releases/download/v0.1.5/install.sh | shOr download an archive below; each has a matching .sha256.
v0.1.4
New targets, doctor insights, and a second round of safety hardening.
New
- opencode target for MCP servers and instructions, at user and project scope. Secrets stay off disk as
{env:VAR}. Project instructions shareAGENTS.mdwith Codex, Cursor and Antigravity. Rules, commands, skills, agents and plugins are still to do. (#26) - GitHub Copilot target for MCP servers, instructions and rules, for Copilot CLI and the Copilot agent in VS Code. Project servers go to
.mcp.json, shared with Claude Code. Prompt files, custom agents, chat modes and skills are still to do. (#22) claudeis accepted as an alias for theclaude-codetarget, and never matchesclaude-desktop. (#55)kitbag doctor --why [DIR]shows, per tool, which instruction files it loads in that directory, which it skips and why, and known traps. Nothing is started or written. (#44)kitbag doctor --mcp-tokensestimates, per tool, how many tokens each MCP server's tool definitions take, so you can see what to switch off. Starting servers is opt-in and only on setups you trust. (#51)
Changed
capture --fromhelp lists the target ids, and the Antigravity rules note is clearer when Gemini CLI is also targeted. (#58)
Fixes and safety
- On Unix, a skill script that lost its executable bit is no longer "Up to date":
applyanddiffreport it andapplyrestores the bit, with the usual undo. (#52) - Docs and messages that didn't match behaviour are aligned, including the English of
looks like a secret (openai-key), what diffs actually mask, that a git#refmust be a branch or tag, and that backups are kept until you delete them. (#38) - Interrupted applies can be undone (
doctorreports them;undo <id>restores them). A project apply re-checks confinement at write time. Nested settings and skill support files get the same secret checks as structured config. Installers fail closed on a bad checksum and replace the binary atomically. The release workflow pins actions to commit SHAs, narrows permissions, attests each archive, and attachesinstall.shandinstall.ps1to every GitHub Release. (#37)
Full details in CHANGELOG.md.
Note
kitbag is still early: redaction is best-effort, so review a captured profile before sharing it, and only apply profiles from sources you trust. See SECURITY.md.
Install
curl -fsSL https://raw.githubusercontent.com/cargopete/kitbag/main/install.sh | shWindows (PowerShell): irm https://raw.githubusercontent.com/cargopete/kitbag/main/install.ps1 | iex
This release also attaches install.sh and install.ps1. To pin the installer to 0.1.4:
curl -fsSL https://github.com/cargopete/kitbag/releases/download/v0.1.4/install.sh | shOr download an archive below; each has a matching .sha256.
v0.1.3
Antigravity and per-tool MCP servers, a more precise sync, and a batch of correctness and safety fixes.
New
- Antigravity target for MCP servers and instructions, at user and project scope. Applying to both Antigravity and Gemini CLI shares one managed block in
GEMINI.md. Rules, skills and workflows are still to do. (#27) - Per-tool MCP servers. A server in the profile can list the only tools it applies to (
targets) or the tools it is kept out of (disabled_on).apply,diff,statusandsynchonour that, and a server kitbag itself applied can be removed again when it becomes disabled for a tool. kitbag 0.1.2 and older refuse a profile that uses the new field names (fails safe). (#33)
Changed
kitbag syncnow holds back only the instruction block or rule file you edited in the tool, not the whole tool. New MCP servers, rules, commands and skills still get applied, in the same undoable transaction. (#43)
Fixes and safety
- A bare
--allow-git-mcpbefore the source is no longer taken as a server name. (#41) applyandsyncno longer say "up to date" about a target they skipped. (#38, #42)- Security: credentials in source URLs, tighter undo backup checks, broader diff masking, and clearer secret naming. (#37, #40, #53)
- Correctness: duplicate JSON keys kitbag would edit are refused; CRLF line endings are kept; Windows device names and case-clashing item names are rejected; profile reads are capped;
--homekeeps state under that home unlessKITBAG_STATE_DIRis set; and several other #38 fixes (undo, doctor--to, skill executable bits,--no-overwrite, namespaced command clashes,.mdccapture).
Full details in CHANGELOG.md.
Note
kitbag is still early: redaction is best-effort, so review a captured profile before sharing it, and only apply profiles from sources you trust. See SECURITY.md.
Install
curl -fsSL https://raw.githubusercontent.com/cargopete/kitbag/main/install.sh | shWindows (PowerShell): irm https://raw.githubusercontent.com/cargopete/kitbag/main/install.ps1 | iex
This release also attaches install.sh and install.ps1. To pin the installer to 0.1.3:
curl -fsSL https://github.com/cargopete/kitbag/releases/download/v0.1.3/install.sh | shOr download an archive below; each has a matching .sha256.
v0.1.2
Keep your agent setup in step across tools and machines, plus two safety fixes.
New
kitbag statusshows which tool's instruction file (CLAUDE.md, AGENTS.md, GEMINI.md, rules) has drifted from your profile, and which MCP servers, skills and commands differ.--exit-codefor scripts. (#32)kitbag sync PROFILEbrings every tool back in line with the profile, with a diff, backups andkitbag undo. If you edited a file in one tool, it leaves that tool alone unless you pull the edit into the profile with--from <tool>or replace it with--overwrite. (#32)- Second machine / dotfiles: home paths are stored as
~and expanded per machine, so a profile captured on one box applies cleanly on another (macOS, Linux, Windows). Capture into a folder in your dotfiles repo, clone it on the other machine, runkitbag sync <dir>. See the README section "Second machine / dotfiles". (#31)
Safety
- MCP servers from git sources are opt-in. A profile applied straight from a git URL no longer adds or changes MCP servers unless you name them with
--allow-git-mcp name(or--allow-git-mcp/--trust-sourcefor all). The plan lists each held-back server. Local profiles, including a local clone of your own dotfiles, are unchanged. (#36) undo --forceandinit --forcenever follow symbolic links that appeared after an apply, so they can't delete or overwrite files outside the target. (#35)
Full details in CHANGELOG.md.
Note
kitbag is still early: redaction is best-effort, so review a captured profile before sharing it, and only apply profiles from sources you trust. See SECURITY.md.
Install
curl -fsSL https://raw.githubusercontent.com/cargopete/kitbag/main/install.sh | shWindows (PowerShell): irm https://raw.githubusercontent.com/cargopete/kitbag/main/install.ps1 | iex
Or download an archive below; each has a matching .sha256.
v0.1.1
Security hardening release. Upgrading is recommended for everyone, especially if you apply profiles from git sources.
kitbag 0.1.1, a security hardening release
- Profiles from GitHub are untrusted by default. They can't add permission rules, hooks, or commands that run shell snippets, and your local secrets aren't filled into servers they define.
--trust-sourceopts in. - Better secret redaction. It now covers frontmatter, permission rules, short passwords, more secret names,
${VAR:-default}fallbacks, tokens in URLs and webhooks, and secrets sitting next to${VAR}. - Replacing an MCP server no longer inherits the old one's trust or login settings.
- Files that get a secret written into them are made private (0600) on Mac and Linux.
--projectcan't be tricked into writing or reading outside the project through symlinks.- Error messages for broken config files no longer print the offending line, which could contain a key.
- Hidden terminal control characters in a profile are shown visibly, so a profile can't disguise what it's about to change.
- Every apply plan lists the MCP servers it adds or changes, for review.
Fixes #1, #2, #3, #4, #5, #6, #7, #8. Full details in CHANGELOG.md.
Note
kitbag is still an early release: redaction is best-effort, so review a captured profile before sharing it, and only apply profiles from sources you trust. See SECURITY.md. Roadmap: #29.
Install
curl -fsSL https://raw.githubusercontent.com/cargopete/kitbag/main/install.sh | shWindows (PowerShell): irm https://raw.githubusercontent.com/cargopete/kitbag/main/install.ps1 | iex
Or download an archive below; each has a matching .sha256.
v0.1.0
First public release of kitbag: capture your AI agent setup (MCP servers, instructions, rules, slash commands, skills, settings) into a portable, git-friendly profile and apply it to Claude Code, Cursor, OpenAI Codex CLI, Gemini CLI and Claude Desktop, with a diff first, backups and kitbag undo.
Important
Early release. Secret redaction on capture is best-effort and is known to miss some formats, so review a captured profile before you share or commit it. Only apply profiles from git sources you trust: a remote profile can currently carry permission rules, hooks and MCP servers. Known issues are tracked under the security label; see SECURITY.md.
Install
curl -fsSL https://raw.githubusercontent.com/cargopete/kitbag/main/install.sh | shWindows (PowerShell): irm https://raw.githubusercontent.com/cargopete/kitbag/main/install.ps1 | iex
Or download an archive below; each has a matching .sha256.
Added
- Portable profile format (
kitbag.toml,instructions.md,rules/,commands/,skills/), format version 1. - Adapters for Claude Code, Cursor, OpenAI Codex CLI, Gemini CLI and Claude Desktop, at user and project scope.
init,capture,apply,diff,undo,history,doctorandlist-targetscommands.- Secret redaction on capture, native env-reference rendering on apply, masking in diffs.
- Format-preserving JSON/JSONC and TOML merges, managed blocks in shared markdown files.
- Transactional apply with backups, rollback on failure and undo.
- Profiles from git URLs (
github:owner/repo,https://…,git@…,file://…).
Changed
- Profiles from git sources no longer apply settings that let agents act without asking (permissive
defaultMode,additionalDirectories, broad allow rules, Codexapproval_policy = never/sandbox_mode = danger-full-access) unless--allow-risky-settingsis given. Local profiles are unchanged.additionalDirectoriesand broad rules with arguments such asBash(rm -rf *)are now flagged as risky.
Fixed
- xAI, Groq, Perplexity, Tavily, Supabase, Replicate, OpenRouter and Firecrawl keys are recognised (free text, env values, headers and args).
- Free-text redaction of URL credentials replaces only the password, instead of swallowing the host and the Markdown after it. Placeholder passwords in documentation examples are left alone.
- Header arguments without a space after the colon (
X-Api-Key:…,Authorization:Bearer …, as in the mcp-remote docs) no longer make capture refuse to write the profile after redacting them. - Applying a captured profile back to the tool it came from no longer overwrites the original files (or managed blocks) with their redacted copies; files that differ in other ways get a warning about the
[REDACTED]markers. - Capture decodes UTF-16 (with a byte-order mark) and drops a UTF-8 byte-order mark in text items; files in other encodings are skipped with a warning instead of aborting the capture.
- A UTF-8 byte-order mark at the start of a JSON/JSONC/TOML config no longer fails with "invalid JSON"; it is kept when the file is written back.
- Capture follows symbolic links inside a skill only when they stay inside the skill. Escaping links, loops, dangling links and unreadable entries are skipped with a warning.
- Capture skips files over the 2 MiB profile limit (and skills beyond 200 files) with a warning, so it no longer writes profiles that
applyrefuses. - Capture lists Claude Code subagents, output styles and plugins it found but doesn't carry, and drops an
outputStylesetting that names a custom style. - Malformed server entries (
"mcpServers": [], a server that isn't an object) are reported instead of silently ignored. capturewith several tools (--from all,detectedor a list) reports a tool whose config can't be read and captures the rest; it fails only if nothing could be read. A single--fromstill fails loudly.install.shandinstall.ps1downloadkitbag-<target>.sha256, the checksum name the release workflow uploads (found in the v0.1.0-rc.1 dry run).