putnami / cli

One CLI.
Every language.
Any agent.

The same verbs build, test, lint, serve and package every project of a polyglot repository. It runs only what a change touches, caches the rest, and with --output=json answers in JSON for your coding agent.

$curl -fsSL https://putnami.dev/install.sh | bash
macOS and Linux · amd64 and arm64 · no sudo
a polyglot repository
$ putnami lint,test,build --impacted items build~tidy cached items build~compile done 630ms items test~test done 1.3s items lint~golangci-lint done 2.6s … 9 succeeded 3 cached 2 coalesced 21.4s $ putnami projects why items web A change to /items does not impact /web
same verbs for go, typescript and python
same verbs

Learn the verbs once.

Each language extension runs the verbs its own way: go test, bun test, pytest. You and your agent type the same command in every project.

Several verbs run in one call: putnami lint,test,build.

verbwhat it doesexample
initA workspace, or a project from a template.--extension go
serveRun the dev servers until you stop them.serve api
testRun the tests, with counts and coverage.--impacted
buildCompile into runnable or shippable outputs.--projects a,b
lintStyle and correctness findings, one per issue.--impacted
validateCheck specs, contracts and compatibility rules.--impacted
packageArchives and container images.--projects api
publishPush the packages to their registries.--projects api
only what changed

Run what the change touches. Reuse the rest.

--impacted

Follows the graph

The projects your change touches, and every project that depends on them, against the trunk. On a feature branch, it is the default.

--projects a,b

Exactly these

The projects you name, and nothing that depends on them. The fast loop while you iterate.

cache

Keyed on content

Sources, toolchain, parameters and upstream outputs, never the branch. Every worktree shares it. A rebase that changes nothing reruns nothing.

built for agents

Your agent asks the CLI, not the file tree.

Who owns a file, what depends on a project and which docs to read. Each answer is short, the same every time, and structured with --output json or jsonl.

agent session
$ putnami context map # projects, edges, endpoints, config keys $ putnami context pack --project web # the AI.md files to read, with a token estimate $ putnami projects owner go/items/api.go $ putnami projects deps items --dependents $ putnami test --impacted --json
AGENTS.md

init writes one short block. context generate keeps it current.

AI.md

Every framework package and Go module ships its API reference for agents.

decisions/

Settled choices, one file each. validate checks them with the SDD extension, in Labs.

skills

For Claude Code and Codex, from one extension. In Labs.

languages and tools

Two stable today. More in Labs.

Already on Bazel, Nx or Turborepo? putnami init --from nx reads your repository as it is. Not published yet: it loads from a source checkout.

See Labs →
TypeScript, Gostable
Pythonexperimental
Dart and Flutter, .NET, Java and Kotlin, PHP, Ruby, Rust, Swiftexperimental
Bazel, moon, Nx, Pants, Rush, Turborepoexperimental
start

Install, then use it every day.

Putnami brings Bun when you need it. Anonymous usage counts are on by default: putnami telemetry off or DO_NOT_TRACK=1 stops them.

CLI reference →
$ curl -fsSL https://putnami.dev/install.sh | bash $ putnami init --extension go --project api # every day $ putnami lint,test,build --impacted