← Catalog

@shiftlabs/codemode

Code mode for agents — turn any API or command into a callable action

Package

Install

Install with PiG

pig install npm:@shiftlabs/codemode

Install with Pi

pi install npm:@shiftlabs/codemode
Review before installing

Packages 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

PathContents
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:

TaskCommand
Run the command-line interface from sourcebun run dev -- exec 'return 1 + 2'
Compile the library and bundle the pluginsbun run build
Run the testsbun run test
Typecheck the source and the testsbun run typecheck
Lint and check formattingbun 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