cpm installs, updates, removes, and publishes .cgp (Cognitive Patch) files for CognitiveOS.
It is the npm/pip/apt for the agent era — hardware-aware, MCP-native, and designed for autonomous AI operation.
go build -o bin/cpm ./cmd/cpm
# Create a skill skeleton
./bin/cpm init my-skill
cd my-skill
# Edit cognitive.json, add prompts/ and tools/
# Install from a local archive
./bin/cpm install ./my-skill.cgp
# List installed patches
./bin/cpm list
# Show patch details
./bin/cpm info my-skill
# Remove a patch
./bin/cpm remove my-skill| Command | Description |
|---|---|
init <dir> |
Create a .cgp skeleton directory |
install <path|name> |
Install from local .cgp or registry |
remove <name> |
Uninstall a patch |
list |
List installed patches |
info <name> |
Show manifest details |
verify <path> |
Validate a .cgp archive |
search <query> |
Search the registry |
update <name> |
Update to latest version |
export CPM_PATCHES_DIR=/tmp/cpm-test/patches
export CPM_CACHE_DIR=/tmp/cpm-test/cache- CognitiveOS — main project repository
- cognitive-os.org — project website
- Registry Server — .cgp package registry
- cgp-template — .cgp package boilerplate
- Product Specs — .cgp format specification
- CognitiveOS Project — GitHub organization
- Branch from
development, notmain - Use topic branches:
feature/<name>,fix/<name>,bugfix/<name> - Open a PR to
developmentwith a clear title and description - Merge via squash after review
- Changes flow to
mainvia a release PR
See the SDLC repo for the full contribution guide, code review standards, and testing strategy.
Jean Machuca — GitHub · Sponsor
MIT