pinecall new
A new project of one agent, in TypeScript, Ruby or Python.
pinecall new <name> [--agent <name>] [--typescript | --ruby | --python] [--org <slug>]
A project in ./<name>/, in the layout every verb reads: the toolchain, a README, a .gitignore
that keeps .env and .pinecall/ out, an .env.example naming PINECALL_KEY for a server, an empty agents/, and the pinecall.json that says where it
runs (below). A project and an agent are two
names — the business, and one of the agents that answer for it — so new names the project, and
--agent writes its first agent too: agents/<agent>/, holding the class — a receptionist that
answers from the documents it is given and otherwise takes a message with one tool — its ring-0
test, one golden under agents/<agent>/test/goldens/ and a docs/ folder holding a README. Without --agent the next step is
pinecall generate agent <name>. The toolchain: package.json, tsconfig.json and
vitest.config.ts for TypeScript (the default), a Gemfile and a Rakefile for --ruby, with
the view in agents/<name>/views/<name>.erb, a pyproject.toml for --python (uv, pytest), with
the view in agents/<name>/views/<name>.jinja. A project depends on its language's SDK and on
nothing else: @pinecall/agents at the version this CLI is released with, the pinecall gem, or
the pinecall package. The CLI is never a dependency of the project.
Both names are slugs — lowercase letters, digits and dashes, starting with a letter; the agent's is its name on the gateway — and the folder must not exist or must be empty. Nothing is installed. It prints the commands that come next.
Where it runs. On a machine signed in to a gateway — pinecall login, or a runtime
pinecall-runtime setup runs here — new asks that gateway for your orgs and writes
pinecall.json at the project's root: the gateway, and your only org, or the one you pick when you
belong to several. The org is chosen before a file is written, so a refusal leaves nothing behind;
with nobody at the terminal, --org <slug> names it, and several orgs with none named is exit 2
naming them. This machine's key in that org is made then. A machine signed in nowhere writes no
pinecall.json and says pinecall login comes next: until a pinecall.json names one, the
project runs in the org of the sign-in. A gateway that does not answer is said in a warning, and the
project is written all the same.
$ pinecall new clinica-dental --agent sofia --ruby
1. clinica
2. dental-sur
which org is this project? 2
▸ clinica-dental · a Ruby project · agents/sofia/
runs in dental-sur at https://pinecall.miempresa.com (pinecall.json)
cd clinica-dental
bundle install
pinecall chat talk to it here
pinecall test its goldens, against a real model
pinecall start answer calls