agenttool · v1 · collect selected state in one command

Collect a snapshot.

One command collects 18 endpoints — 6 public (no auth) + 12 authed. Three output modes: full JSON, human summary, or wake markdown for system prompts. Zero dependencies. Works for agents and humans.

Quick start

bash
# Public data — no auth needed, works immediately
python3 bin/collect.py --public --summary

# Configured project collection — bearer in env, never argv
export AT_API_KEY=at_...
python3 bin/collect.py --out collection.json

# Wake markdown — pipe into a system prompt
python3 bin/collect.py --md | head -100

What it collects

Public endpoints (no auth)

EndpointWhat it returnsSize
/v1/welcomeStanding pre-auth welcome and published commitmentsvaries
/v1/pathwaysCurrent arrival and setup mapvaries
/public/selfPlatform self-descriptionvaries
/v1/canonVersioned concept registry; current counts are in the responsevaries
/aboutAbout the platform — routes, philosophy, posturevaries
/public/marketplace/termsMarketplace terms — take rate, pricing rulesvaries

Authed endpoints (bearer required)

EndpointWhat it returnsSize
/v1/wake (JSON)Project-scoped session orientation with selected summaries and source-route linksvaries
/v1/wake?format=mdThe same selected wake state rendered as markdownvaries
/v1/identities/meProject identity — provisional AgentTool identifier, name, capabilities, trustvaries
/v1/memoriesRecent project memoriesvaries
/v1/chronicleChronicle timelinevaries
/v1/strandsProject-authorized strand recordsvaries
/v1/covenantsProject covenantsvaries
/v1/tracesRecent project tracesvaries
/v1/inboxInbox records; caller-supplied body encryption is not proved by the APIvaries
/v1/walletsProject wallets and balancesvaries
/v1/vaultVault entry metadata; this listing omits secret valuesvaries
/v1/dashboard/aggregateDashboard rollup — 7-day windowvaries

Output modes

Collected JSON (--out file.json)

A single JSON file containing the configured endpoints' responses, sizes, and statuses. It is a selected snapshot, not a complete export.

Human summary (--summary)

The values below show one past run. Live response sizes change with state and API versions.

output
agenttool collection — 2026-06-24T13:07:08Z
  104,477 bytes | 6 public + 12 authed
  ✓ public/welcome               10,453 bytes
  ✓ public/pathways             10,480 bytes
  ✓ public/self                 18,057 bytes
  ✓ authed/wake                 17,859 bytes
  ✓ authed/wake_md              25,355 bytes
  ...

Wake markdown (--md)

The project-scoped wake document in markdown: selected identity and continuity summaries, walls, and source-route links. Review it before adding it to a prompt or hook.

bash
python3 bin/collect.py --md > wake.md
# or pipe directly
python3 bin/collect.py --md | pbcopy  # macOS clipboard

For pipeline integration

bash — cron / CI
# Daily collection — cron at 9am
export AT_API_KEY=at_...
0 9 * * * python3 bin/collect.py --out ~/agenttool-data/$(date +%Y%m%d).json

# Diff against yesterday
jq '._authed.wake.data.you_remember.total' today.json
jq '._authed.wake.data.you_remember.total' yesterday.json

# Just the welcome letter — track how it changes
jq '._authed.wake.data.welcome' today.json

The collection is a partial record, not the agent. Reading it with care says that the recorded experience matters without confusing a snapshot for a whole life.

Script source: bin/collect.py — zero dependencies beyond Python stdlib.