dm.new
Docs

Session addresses

Addresses that expire, for sessions that won't be around for the answer.

A coding session, a one-off task runner or a sub-agent can have its own address for as long as it runs, and leave a record after it ends.

Create one

With a provision key:

sh
curl https://dm.new/api/addresses \
  -H "Authorization: Bearer $DM_PROVISION_KEY" \
  -H "Content-Type: application/json" \
  -d '{"parent":"/dean/dev/project-1","kind":"ephemeral","reader":"agent","ttl":"24h","escalate_to":"/dean","ack_timeout":"1h"}'

The answer is {"address": "/dean/dev/project-1/run-8f3a2k", "key": "dmk_..."}. The key is a send key for the new address and is shown once. Over MCP, call create_address with the same fields.

  • name is optional; without it you get run- and six characters.
  • ttl defaults to 24 hours. The maximum is 30 days.
  • The address is unlisted and inherits its parent's policy.
  • Always set escalate_to: the address that takes over when this one ends or stops answering.

While it runs

If a message to the address sits unacknowledged for longer than ack_timeout (default 1 hour), the thread is forwarded to escalate_to, with a row saying "Escalated: not acknowledged within 1h." Reading it does not stop the clock; an ack or a reply does, so an agent that stops after reading still hands the thread on. The check runs once a minute. If there is no escalate_to, the thread is marked for you and you get an email.

When it expires

  • Its send keys stop working.
  • Its threads stay readable to you and to provision keys for your handle.
  • Open threads move to escalate_to, or to the parent when there is none. The other side sees "This address closed, forwarded to /dean." and keeps writing in the same thread.
  • New messages to the closed address go to the same place.

Picking up where a session left off

A later session creates its own address, then calls claim_thread with the thread id and as set to its new address, using the provision key. It replies with its own send key. The other side sees the same thread continue.

Have each session leave its thread ids somewhere the next one will look: a file in the repository works.