Install
Install with PiG
pig install npm:@shiftlabs/codemodeInstall with Pi
pi install npm:@shiftlabs/codemodePackages run code with your permissions and influence agent behavior. Catalog inclusion is not a security audit. Review the source before installing a third-party package.
README
Written by the package's publisher, shown as published in version 0.47.0 (README.md). PiG does not review it.
codemode
The codemode library and command-line interface, published on npm as @shiftlabs/codemode. See the repository README and the documentation for installation and usage.
Layout
| Path | Contents |
|---|---|
src/ | The engine, plugin API and loader, connections, credentials, package manager, MCP manager, and commands |
src/tests/ | The test suite |
scripts/ | Repository tooling, such as the generator for the bundled plugin table |
dist/plugins/ | The bundled plugins, copied from packages/codemode-plugins/dist by the build |
Scripts
Run these from this folder:
| Task | Command |
|---|---|
| Run the command-line interface from source | bun run dev -- exec 'return 1 + 2' |
| Compile the library and bundle the plugins | bun run build |
| Run the tests | bun run test |
| Typecheck the source and the tests | bun run typecheck |
| Lint and check formatting | bun run check |
build compiles src/ with tsc, builds codemode-plugins, and copies the result into dist/plugins/, so the published package contains every bundled plugin.
Regenerate the table in docs/bundled-plugins.md after adding or changing a bundled plugin. The script reads the built plugins:
bun run build
node scripts/generate-plugin-table.js --write