pinecall line
Ring your own phone and route it to the agent.
pinecall line [show | from <+number> | forget | claim | release] [agent.tsx] [--agent <name>]
A number rings in one place, and a team shares its numbers. With one developer that is not a
decision: the first pinecall start to hold the agent answers its ring and you never learn the word.
With three it used to be whoever restarted last — so you would dial the number to test your change
and be answered in a colleague's scrollback, with nothing on either screen saying so.
Say which phone is yours, once. Then a call you make lands in your own agent: no claim, no coordination, three of you testing at the same time.
At Pinecall's test number, with no number of your own. The box keeps one sandbox number as its
test line (the console's Phone testing says which; from prints it): a call from your phone to it
reaches your org's sandbox agent — the one you name with --agent, or the one agent the org
holds — in your own copy while pinecall start holds one, else in the org's own: the copy Pinecall
runs for a deployed app or a Studio agent. Nothing to buy, no production needed; the call is yours,
in the sandbox, against its minutes. From a phone nobody said was theirs, the number says so.
And at your production numbers. A call from your phone to a number that answers in production
reaches your sandbox copy of that agent the same way — your class, your tools, your terminal, a
sandbox log marked diverted_from: production — and every other caller reaches production exactly
as before. Stop pinecall start, and your calls land in the org's own sandbox copy if it holds one,
else in production; pinecall line forget sends them back to production outright. That is how a
team tests on the line its customers use, with one number. The gateway's worker asks for this on
every production ring (GET /v1/agents/{slug}/rings-for), so nothing here knocks at that endpoint.
$ pinecall line from +59899111111
calls from +59899111111 reach your copy of the agent you hold · dial +13617334133 to hear it
$ pinecall line from +59899111111 --agent front-desk
calls from +59899111111 reach your copy of front-desk · dial +13617334133 to hear it
A phone is a person's and not an agent's, so it works in whatever directory you are standing
in; a person has one, and from said again replaces it. It is said in the sandbox, kept by the
gateway as a row of yours (a person with no terminal keeps it across the gateway's restarts) and
under the gateway's URL on this machine (calling in ~/.pinecall/session.json), re-sent by every
pinecall start when it starts. forget undoes it. claim,
release and the bare line (line show) are about one agent: at a project's root with several, name it with
--agent. A number that is not in E.164 form is refused here, with exit 2 and the shape in the
sentence (a number is +E.164: +34600000000, not …), before the gateway is asked; the gateway
refuses an org's own key outright: it names nobody, so there is no their own agent to reach.
And for a call from a number nobody said was theirs — a customer, a colleague's phone — there is the line:
$ pinecall line
rings in berna@clinica.test · `pinecall line from <+your-number>` routes yours, or `claim` takes it
$ pinecall line claim
rings in this terminal · also running: berna@clinica.test
release gives it up, and whoever else is still running the agent picks it up — which is also
what happens on its own when the terminal holding it closes. A line is never left with nobody while a
process that takes rings runs the agent: released with nobody else running it, it is the releaser's
again after a minute, and a line lost with a gateway is given to the newest such process at once. A claim on an agent this terminal is
not running is refused: a ring lands on the line, so a corner with no app in it would take the
call and drop it. Production has one corner and the platform holds it, so there is nothing to claim
there — only your own phone is diverted, as above; pinecall start prints the line only for an
agent the org's routes give a number.