Skip to content

Conversations, Traces, and Saved Queries

Continue a conversation, inspect a trace of exactly what ran, and save intents you use often.

Updated September 3, 20261 min readPostsale CLI

Longer agent sessions leave a trail you can resume and audit. The CLI stores conversations, execution traces, and optional named queries on disk under ~/.postsale/.

In this article, we will list and continue conversations, inspect and export traces, and save and re-run named intents.

Before We Begin

This article assumes that:

  • You have run postsale run at least once if you want sample conversation or trace data

Conversations

Here's how:

bash
postsale conversations
postsale conversations -n 20 --human
postsale run --continue "follow-up question"
postsale run --continue <id> "..."
postsale continue <id>

Default directory: ~/.postsale/conversations/ (POSTSALE_CONVERSATIONS_DIR to override).

For a longer back-and-forth in one sitting, postsale run --interactive keeps the session open: after each envelope, the CLI prompts on stdin for your next message until you exit. postsale continue <id> reopens a stored conversation the same way.

continue supports the same authorization and model flags as run. Check postsale continue --help.

When to continue vs start fresh

SituationPrefer
Follow-up on the same orders or partial ship--continue / postsale continue
New unrelated taskNew postsale run (cleaner context)
Money still neededPass --yes or --authorize again; history does not grant spend
Confused model after many errorsStart fresh

Traces

Here's how:

bash
postsale traces list
postsale traces show <id-or-prefix>
postsale traces export <id>
postsale traces purge --yes

Agent tool: query_trace.

Every trace records which credential ran it as identity: { kind, id }: kind is session or api_key, and id is the session's subject or the key's 8-character display id. postsale traces export <id> --format markdown renders it as a Credential line.

VariableEffect
POSTSALE_TRACE_DISABLED=1Do not write traces
POSTSALE_TRACE_FULL=1Full bodies and unredacted sensitive outputs
POSTSALE_TRACE_DIRStorage location
POSTSALE_TRACE_IDCorrelation id

Saved queries, stored on this machine

These are local named intents, not server-side Postsale filters (postsale filters).

Here's how:

bash
postsale saved-queries save weekly "how many orders last week"
postsale saved-queries list
postsale saved-queries run weekly
postsale saved-queries delete weekly --yes

Alias: postsale sq. Money-moving still requires --yes or --authorize on run.

Good to Know

SymptomLikely causeWhat to do
Unknown continue idStale or mistyped idRun postsale conversations and retry; expect empty stdout with a stderr error
Huge tracesTRACE_FULLDisable; purge carefully
saved-queries run blockedMoney toolsPass authorization flags

Additional Reading