Develop with AI assistants

Use AI coding assistants like Claude Code, Codex, Cursor, or GitHub Copilot to build Putnami applications faster. When you initialize a workspace, Putnami inserts one short block into your assistant entrypoints (AGENTS.md and CLAUDE.md) that teaches tools your project's CLI commands and conventions. Everything else in those files is yours.

What you get

putnami init writes one thing for assistants at the workspace root:

  • AGENTS.md / CLAUDE.md — one delimited Putnami block. A new CLAUDE.md is only @AGENTS.md; an existing file keeps every line outside the block, and an edited block is preserved, never overwritten The block is short on purpose. It states:

  • CLI commands — use ./putnamiw when present, otherwise putnami; never npm, bun, go, pip, or cargo for build, test, lint, install, dependency, or generation work

  • Selection — iterate with --projects <a>,<b>, and run the gate once with --impacted before declaring work complete, plus --enforce-coverage when the workspace's extensions declare it

  • Discovery — discover code through the CLI first: putnami projects list|describe|owner|deps|why for the project graph, putnami context map|pack to orient, and putnami <verb> --impacted --dry-run for what a change affects; file search is for literal text

  • Service recipe — in a workspace that loads the Go or TypeScript extension, a link to Build a Postgres API in Go or in TypeScript, from the template to a running image

  • Skills — the skills and agents an extension's agent content installs under .agents/, .claude/ and .codex/ are managed by Putnami

  • Your rules — read .agents/constraints.md when it exists

.agents/constraints.md is a file you write when you have durable project rules to state; Putnami only reads it. A workspace that kept its rules in .AI/constraints.md moves the file with git mv .AI/constraints.md .agents/constraints.md.

Putnami does not copy framework recipes into your repository.

Context, tools, and workflows are separate layers

Putnami onboarding has two independent layers:

Layer Drives
the Putnami block in AGENTS.md / CLAUDE.md the commands, selection rules, and discovery routing the assistant follows; plus your own .agents/constraints.md when you write one
the agent content of @putnami/contributor repeatable workflows such as planning, implementing, checking, and reviewing

You need a Putnami workspace (preferably with its pinned ./putnamiw wrapper) and a coding assistant that can discover the generated entrypoint or installed skills. You do not need an account with a source host, work-item tracker, or review service to use the core workflows. Connectors for those services are optional and are installed only when you want that automation.

An assistant uses ./putnamiw (or putnami when the workspace has no wrapper) and focused file reads. The pinned Putnami command is authoritative for discovery, build, test, lint, validation, dependency, and install workflows. Putnami serves no protocol server and writes no host registration.

Source hosting and work-item tracking are independent choices. A team may use either, combine services from different vendors, or configure neither. The core never infers one from the other.

Build the requested outcome

Use build <intention> for daily work, or provide a specific task or epic. The workflow frames the outcome, plans observable delivery units, prototypes a material uncertainty when useful, obtains independent artifact challenge, implements, reviews, repairs and checks through one loop. A small settled correction reuses existing intent and design. Focused spec, design, review and check entries remain available for direct interventions; design covers a prototype and an ADR. content-bump remains an explicit-only utility.

putnami change estimate --issue <id> sizes a plan S, M or L before code starts. Code starts without the owner's approval; only a change that takes a one-way door or touches a sensitive zone waits for the owner to approve the study, the plan and the estimate. When one outcome needs several issues, epic plans them in dependency order, has the owner approve one envelope, and runs one build session per issue, wave by wave.

The default progress view shows the promised outcome, demonstrated results, each unit's required delivery stage, blockers, unresolved decisions and next inspectable result. Tasks and prototypes can finish while a delivery unit remains incomplete. A first export release with a size limit keeps the large-data requirement pending unless the mandate actually changes it.

Specs, designs, experiments, decisions and original reviews have canonical references and exact examined inputs. putnami change verify --workflow <file> checks the versioned local record and native requirement coverage; it reports planning progress. Candidate readiness separately requires the execution dossier's independent review, gate and applicable qualification. Ready, merged, published, deployed and adopted each need their actual evidence.

New workflows require a @putnami/contributor whose change verify supports --workflow; an older v2 dossier reader can ignore the added reference, so the workflow checks this capability explicitly. Framework recipes are generated in the build skill's reference. putnami change language checks English-language signals in text, tracked files, commits and task records; putnami doctor --machine reports local check capacity. putnami tree fingerprint supplies the native tree binding, and putnami change finalize publishes through the configured proposals provider without running another local gate. For a change that touches a page of a web project, putnami change screenshots captures each page that proves a requirement the change touches, or whose own file it changes, before and after, desktop and mobile, light and dark, the agent reads the captures and fixes what they show, the reviewer receives them, and change finalize marks the change ready only with their manifest or a waiver that names its reason, and sends the screenshots to the proposals provider when it stores them. Configured content updates remain explicit-only. A natural-language build request authorizes its objective; task publication, merge and deployment still follow the existing mandate. Workspace-local checkpoints and experiments need their referenced assets transferred before another workspace can resume them.

Install and update agent workflows

Agent workflows are the agent content of an extension. A workspace declares the extension and opts into its content explicitly:

{
  "extensions": ["@putnami/contributor"],
  "agentArtifacts": ["extension:@putnami/contributor"]
}

Declaring an extension without the opt-in activates none of its content.

@putnami/contributor is published on the canary channel first, and on stable and latest at the next promotion. putnami init writes neither declaration and installs no workflow files. To ask for them, run putnami extensions install @putnami/contributor: it writes both declarations shown above to putnami.workspace.json and installs the workflow files. Running it again, or running putnami install, changes nothing. Until the channel your workspace resolves serves the extension, putnami install fails at its extensions phase in a workspace that declares it. To install the rest of the workspace now, remove both entries, or resolve canary, and add them back once your channel serves it. A workspace that declares the extension by path installs its content today.

Reading agent content needs a CLI that speaks extension contract 5, the release that introduces it. An earlier CLI refuses a content-bearing extension with "requires a newer putnami" and fails putnami install in a workspace that opted in, so upgrade the CLI before adding the opt-in.

Commit the declarations, the extension's lock pin, and the materialized workflow files. A clone then runs ./putnamiw install, which reads the content out of the exact extension release the lock pins and does not resolve or rewrite the lock. Use ./putnamiw upgrade --extensions to move the extension; its content follows in the same command.

Removing the extension: entry retires the content on the next upgrade: files you did not change are removed, and a file you edited is kept and reported. The content owns only the manifest paths and byte digests it recorded; an unrecorded or locally modified file is preserved as a collision.

A workspace that still declares workflows as a separate artifact, such as @putnami/agent-workflows, is refused by every command with nothing written. Replace that entry with extension:@putnami/contributor, declare the extension, delete the ownership records the refusal names, and run ./putnamiw install, which also drops the entry's old lock pin. A file that differs from the content is a collision that writes nothing: move or delete it, then rerun.

Reach the workspace

An assistant reaches the workspace through the CLI:

Need Command
Orientation putnami context map, putnami context pack
Projects putnami projects list, putnami projects describe <project>
Owner of a path putnami projects owner <path>
Dependencies putnami projects deps <project> [--dependents] [--transitive]
Why a change reaches a project putnami projects why <from> <to>
What a job would run putnami <verb> --impacted --dry-run

An earlier Putnami wrote a putnami entry to .mcp.json. putnami install and putnami upgrade remove that entry when it is the one Putnami wrote, and delete the file when nothing else remains. An entry you changed stays as you wrote it, with a warning, and a file that does not parse stays untouched.

Putnami Cloud in a hosted agent session

A hosted agent session (an ephemeral container with no browser) often holds a workspace machine token in PUTNAMI_CLOUD_TOKEN. Sign the person in as well, so the agent reads what only a person may read:

putnami cloud login --no-open --output=jsonl

The command writes one record before it waits, with user_code, verification_uri, verification_uri_complete and expires_in, so the host can hand the code to an approver. It exits 0 once the code is approved. From then on the signed-in session wins over PUTNAMI_CLOUD_TOKEN for every putnami cloud command, and putnami cloud whoami names the credential in use. whoami, status, login and logout start no job, and a build whose cache credential cannot write says so once instead of warning on every task.

When the person's MCP connection approves the code, the session is delegated to the agent for one workspace: putnami cloud whoami reports it as signed in through an MCP connection, on delegated routes only. A command whose route the delegated session does not admit says so and names the MCP read tool that reads the same data, such as query_logs or list_runs. A delegated session mints no registry token: package installs keep the machine's existing registry credentials, and putnami cloud token --for npm|go|oci|put says why it prints none.

Polyglot workspaces

If you add extensions after the initial setup, regenerate the guidance block and the managed skills:

putnami extensions install @putnami/go
putnami context generate

Orient in a project with agent context

When an assistant (Claude, Codex, or any other tool) needs to understand a single project — where its composition roots are, which contracts and capabilities it exposes, which source is worth reading first, and how it is tested — Putnami can hand it those framework-owned facts directly instead of making it enumerate the repository.

putnami context pack

putnami context pack --project <project-id>
putnami context pack --output=json

context pack aggregates one project's facts by reference and prints the document: identity and dependency graph, composition roots (application main, describe entrypoint), capability/contract/infra/migration references (path + digest), representative source ranges (never file content), a tests section (conformance packs or a machine-readable absence reason), adjacent docs, and a config-schema reference. Omit --project to print every project's document. --output=json returns the documents as data.

It writes no file. The document embeds content digests and the workspace revision, so a stored copy would churn on every commit and go stale behind the code. Every run builds it again from the working tree.

Say what you want built, once

Framework facts tell an assistant how your project is composed; they never say what a change is for. That is what a spec holds — intended outcomes, non-goals, and the sentences your team agreed to — in one small, strictly validated file per feature. See Write a feature spec.

Prompt recipes

Here are prompts that work well with AI assistants in a Putnami project.

Web applications (typescript-web)

Pages and routing:

  • "Add a page at /dashboard that shows a welcome message"
  • "Add a page at /users/[id] that displays user details"
  • "Add a layout for the /admin section with a sidebar navigation"

Data loading:

  • "Add a loader to the dashboard page that fetches stats from /api/stats"
  • "Add a loader to /users/[id] that fetches user data by ID"

Forms and actions:

  • "Add a form on /settings that lets users update their name and email"
  • "Add a contact form at /contact with name, email, and message fields"

API endpoints:

  • "Add a /api/users REST API with GET (list) and POST (create) endpoints"
  • "Add a GET /api/users/[id] endpoint with UUID validation"
  • "Add pagination with page and limit query params to GET /api/tasks"

API services (typescript-server)

  • "Add CRUD endpoints for a tasks resource with UUID ids"
  • "Add request validation to the POST /api/tasks endpoint — require name (string) and priority (int)"
  • "Add a GET /api/health endpoint that returns the server version"
  • "Add an endpoint that accepts file uploads"

Database and persistence

  • "Connect to PostgreSQL and create a users table with id, name, and email"
  • "Add a tasks table with id, title, done status, and created date"
  • "Create a repository for the users table with find-by-email support"

Authentication

  • "Add OAuth2 authentication and protect the /dashboard route"
  • "Add session-based auth with a login page"

Go services (go-server)

  • "Add a /health endpoint that returns JSON"
  • "Add CRUD handlers for a tasks resource"
  • "Add request logging middleware"

Python services (python-server)

python-server is experimental and explicit opt-in. It is not a default path and has no Go or TypeScript parity promise; first run putnami deps add @putnami/python, then create it with putnami projects create <name> --template python-server.

  • "Add a /tasks endpoint with GET and POST methods"
  • "Add a Pydantic model for task validation"

Customizing shared AI rules

Create .agents/constraints.md to add project-specific rules. The Putnami block already tells assistants to read it when it exists, and Putnami never writes or overwrites it, so the file stays entirely yours.

Good things to add:

  • Business rules — "Tasks belong to projects. A user can only see tasks in their projects."
  • Naming conventions — "Use camelCase for TypeScript, snake_case for database columns."
  • Architecture decisions — "This app uses a modular architecture. Each module has its own api/, web/, and data/ directories."
  • External dependencies — "We use Stripe for payments. The API key is in the STRIPE_API_KEY env var."

Tips for effective prompting

  1. Be specific about resource names — "Add a users endpoint" works better than "add an endpoint"
  2. Mention validation requirements — "name is required, email must be valid" helps the AI use the right schema types
  3. Reference sample projects — For complex patterns, point the AI to typescript/samples/13-fullstack-app or other samples
  4. Start simple, iterate — "Add a page at /dashboard" then "Add a loader that fetches user stats" works better than one giant prompt
  5. Use putnami serve to verify — After changes, run the app and check the result