Repository navigation
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).