Skip to content

CognitiveOS-Project/cpm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cpm — Cognitive Package Manager

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.

Quick Start

make build
./build/bin/cpm init my-skill

# 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

Commands

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

Development

export CPM_PATCHES_DIR=/tmp/cpm-test/patches
export CPM_CACHE_DIR=/tmp/cpm-test/cache

Related

Build

make build    # Compile to build/bin/cpm
make test     # Run tests
make lint     # Run go vet
make clean    # Remove build artifacts

Contributing

  1. Branch from main
  2. Use topic branches: feature/<name>, fix/<name>
  3. Open a PR to main with a clear title and description
  4. Merge after review

See the SDLC repo for the full contribution guide, code review standards, and testing strategy.

Author

Jean MachucaGitHub · Sponsor

License

MIT

About

cpm (Cognitive Package Manager) — installs, updates, and removes .cgp cognitive patches. The npm for AI-native skill distribution

Resources

License

Stars

1 star

Watchers

0 watching

Forks

Packages

 
 
 

Contributors

Languages