Coding Agent Deployer copies coding agent assets (agents and skills) from git repositories into your projects, and keeps track of them.
Each asset costs context tokens when the coding agent loads it, also when you do not use it. With cadep you turn assets on and off per project, and you can always restore or update them from their source.
giton yourPATH;cadepuses it for all network access and authentication- A recent stable Rust toolchain to build (see
rust-versioninCargo.toml) - Windows or Linux
Run these from the repository root:
cargo build --release # binary: target/release/cadep (cadep.exe on Windows)
cargo test # unit and integration tests; they need git on your PATH
cargo clippy --all-targets -- -D warnings
cargo fmt --check
The tests use temporary directories and local git repositories. They do not touch your real config or cache.
cargo install builds cadep and copies it to ~/.cargo/bin, so you can run cadep from any directory:
cargo install --path .
# 1. register a source under an alias (owner/repo means https://github.com/owner/repo.git)
cadep repo add cc-agents owner/repo
# 2. deploy all its assets into a project (the project must have a .claude folder)
cadep deploy cc-agents .
cadep list .
# 3. turn assets off and on during work
cadep set-asset skill . off '*'
cadep set-asset skill . on 'review-*'
cadep set-asset agent . # interactive list
# 4. get a newer version of the source, then move the project to it
cadep repo fetch cc-agents
cadep update .
# 5. remove all assets of the source from the project
cadep undeploy cc-agents .
cadep never creates the .claude folder. Create it first. cadep creates .claude/agents and .claude/skills when it needs them.
After each change, reload or restart the coding agent. cadep prints a reminder.
This example uses the public source claude-coding-agents. It has agents (bug-hunter, task-builder, test-builder, ...) and skills (code-engineer, dotnet-preflight, react-preflight, ...).
cd /path/to/my/repo
mkdir -p .claude # only if the project has no .claude folder yet
# register the source and look at what it has
cadep repo add cc-agents https://github.com/gsscoder/claude-coding-agents
cadep repo show cc-agents
# deploy all assets into the current project, then list them
cadep deploy cc-agents .
cadep list .
# keep only the skills and agents that this project needs
cadep set-asset skill . off 'dotnet-*' 'react-preflight'
cadep set-asset agent . off '*'
cadep set-asset agent . on 'bug-hunter' 'test-*'
cadep list .
# change the agents in an interactive list (Space checks, Enter confirms, Esc cancels)
cadep set-asset agent .
# later: get a newer commit of the source and move the project to it
cadep repo fetch cc-agents
cadep update .
# remove all assets of the source from the project
cadep undeploy cc-agents .
<target> is the project directory; . is the current directory. Each target command first prints a header with the target and the coding agents found in it, and ends with a summary line.
| Command | What it does |
|---|---|
cadep repo add <alias> <url> [--ref <ref>] |
Register a source, fetch it, and scan it. Without --ref, cadep uses the remote HEAD |
cadep repo list |
List the registered sources: alias, URL, ref, commit, asset count |
cadep repo show <alias> |
List the assets of a source; invalid assets show the reason |
cadep repo fetch [<alias>] |
Fetch one source, or all sources. Projects do not change until you run update |
cadep repo remove <alias> |
Unregister a source and delete its cache. Refused while a project still has its assets |
cadep deploy <alias> <target> [--force] |
Copy all assets of the source into the target. Run it again to add new assets; tracked assets do not change |
cadep undeploy <alias> <target> [--force] |
Delete the files of the source from the target and stop tracking them. Works also when the target directory no longer exists |
cadep list <target> |
List the tracked assets: coding agent, kind, name, alias, on/off, commit, flags changed, missing |
cadep set-asset <kind> <target> [--force] |
Pick the assets of one kind (agent or skill) in an interactive list |
cadep set-asset <kind> <target> <on|off> <pattern>... [--force] |
Turn on or off the assets of one kind whose names match the patterns |
cadep update <target> [--force] |
Move the tracked assets to the last fetched commit of their source. Assets that are gone from the source are removed, with a warning |
--force overrides only two conflicts:
- Changed file: you edited a deployed file.
--forcediscards your changes - Untracked file: a file that
cadepdoes not track is already at the location.--forceoverwrites it
--force never overrides path safety checks, the refusal of your home directory, or a missing .claude folder.
There is no --dry-run. You can always restore deployed files from their source.
- A pattern matches the whole asset name:
reviewmatches onlyreview, notcode-review *matches any characters, also none;?matches exactly one character- More than one pattern:
cadepuses all assets that match any of them - A pattern that matches no asset is an error
Always put patterns in quotes. Shells such as bash expand * and ? against the files in the current directory before cadep sees them:
cadep set-asset agent . off 'test-*' 'task-?'
cadep set-asset <kind> <target> without on or off shows a list with one row per asset name. Each row shows the name, the alias, and the flags changed or missing.
- A checked row is on. A row starts checked when all its copies are on
- Space checks or unchecks a row. Enter confirms. Esc or
qcancels without changes cadepchanges only the rows that you changed
Interactive mode needs a terminal. Without one, cadep stops with exit code 2 and shows the script form.
cadep writes no metadata into your projects and never runs git in them. All state is at user level:
| Item | Default path | Override |
|---|---|---|
| Config (sources and tracked assets) | <home>/.config/.cadep/cadep.json on all platforms |
CADEP_CONFIG_DIR replaces <home>/.config/.cadep |
| Source cache (bare git repos) | <cache>/cadep/repos/<key>.git |
CADEP_CACHE_DIR replaces <cache>/cadep |
| Scan cache | <cache>/cadep/repos/<key>.scan.json |
CADEP_CACHE_DIR |
<cache>is the user cache directory:%LOCALAPPDATA%on Windows,$XDG_CACHE_HOMEor~/.cacheon Linux<key>is the source URL with each character other than letters, digits,.,_, and-replaced by_CADEP_HOME_DIRreplaces the home directory- The overrides are for test isolation
- You can delete the cache;
cadepbuilds it again. Do not delete the config: it is the only record of your tracked assets - Run one
cadepprocess at a time. There is no lock
Only Claude Code (claude-code) is supported now. A project uses Claude Code when it has a .claude folder.
- Agents go to
.claude/agents/<name>.md - Skills go to
.claude/skills/<name>/
When a run changes files, cadep prints at the end:
Run /reload-plugins or restart Claude Code to load the changes
Your home directory is never a valid target, because it holds your user-level .claude folder.
You do not tell cadep where the assets are. It scans the source:
- Skill: a directory that contains
SKILL.md. The skill is the full directory. ASKILL.mdin a subdirectory of a skill is part of that skill. Thenamein theSKILL.mdfrontmatter must be the directory name, anddescriptionmust not be empty - Agent: a
.mdfile below a directory namedagents, at any depth, and not inside a skill. Its frontmatter must havenameand a non-emptydescription - Names use lowercase letters, digits, and single hyphens, with a maximum of 64 characters
- Two assets of the same kind with the same name are both invalid
- Symbolic links and submodules are ignored
cadep never deploys an invalid asset. Use cadep repo show <alias> to see each invalid asset and the reason.
MIT © koder0x