Skip to content

Generated surface reference

This reference is generated from the operation catalog and config editing registry.

Pi Hindsight 1.0 supports a stable Pi-first Hindsight integration. Core and Pi workflow tools are part of the stable 1.0 contract. Capability-gated tools are supported when the connected Hindsight server exposes the required upstream endpoint or field; unsupported servers should return a clear capability error.

ToolScope
hindsight_recallcore 1.0
hindsight_retaincore 1.0
hindsight_retain_globalcore 1.0
hindsight_reflectcore 1.0
Surface1.0 statusRationale
Cross-bank list/createDeferredNo public list_banks or arbitrary cross-bank create_bank tool in 1.0.
Full-bank deletionDeferredNo public delete_bank tool in 1.0; selected-bank reset/delete-like repair remains scoped.
Platform bank statsDeferredNo global get_bank_stats dashboard/tool in 1.0.
Audit logs and webhooksNon-goalPlatform administration is outside the Pi-first 1.0 memory lifecycle.

Recall raw memories from Hindsight for this project.

ParameterTypeRequiredDescription
querystringyesNatural language memory query
bankstringnoOptional bank id. Defaults to project bank.
typesarray<world | experience | observation>noOptional Hindsight fact types to retrieve.
budgetlow | mid | highnoOptional Hindsight recall budget override for this tool call.
maxTokensintegernoOptional Hindsight recall token cap override for this tool call. Use 0 for metadata/source-only recall when supported by Hindsight.
queryTimestampstringnoOptional ISO timestamp for time-scoped recall.
includeChunksbooleannoAsk Hindsight to include source chunks when supported.
recallChunksMaxTokensintegernoOptional token cap for included recall chunks.
includeSourceFactsbooleannoAsk Hindsight to include source facts when supported.
maxSourceFactsTokensintegernoOptional token cap for included source facts.
includeEntitiesbooleannoAsk Hindsight to include entities when supported.
tracebooleannoAsk Hindsight to include recall trace/debug data.
tagsarraynoAdditional tag filter.
tagsMatchany | all | any_strict | all_strictno
tagGroupsarraynoCompound Hindsight tag_groups filter. AND-ed with the automatic Pi project/user scope filter.

Retain explicit raw content in Hindsight. Use for durable facts or decisions.

ParameterTypeRequiredDescription
contentstringyesRaw content to retain, not summary if source content is available.
contextstringyesSource context for this memory.
bankstringnoOptional bank id. Defaults to project bank.
tagsarrayno
entitiesarraynoOptional Hindsight entities to associate with this retained content.
documentIdstringnoOptional Hindsight document ID. Defaults to the existing deterministic explicit retain document ID.
timestampstringnoOptional Hindsight timestamp string, including ISO-ish strings or literal unset, passed through as provided.
metadataobject/mapnoOptional caller metadata string map. Reserved provenance keys such as cwd, pi_session_file, source, and retainSource are set by pi-hindsight and cannot be overridden.
updateModeappend | replacenoOptional Hindsight update mode for this explicit retain call.
observationScopesper_tag | combined | all_combinations | array<array>noOptional Hindsight observation scopes. Use per_tag, combined, all_combinations, or explicit string groups. When provided, overrides configured default observation scopes for this retain call.
documentTagsarraynoOptional Hindsight document_tags for this retained document when supported.
asyncbooleannoOptional Hindsight async extraction flag for this retain call. Defaults to configured retain.async.

Retain explicit durable user memory in the configured user bank. Use for stable user identity, preferences, and cross-project workflows only.

ParameterTypeRequiredDescription
contentstringyesRaw memory content to retain.
contextstringyesWhy this memory is durable user context.
tagsarrayno
entitiesarraynoOptional Hindsight entities to associate with this retained content.
documentIdstringnoOptional Hindsight document ID. Defaults to the existing deterministic explicit retain document ID.
timestampstringnoOptional Hindsight timestamp string, including ISO-ish strings or literal unset, passed through as provided.
metadataobject/mapnoOptional caller metadata string map. Reserved provenance keys such as cwd, pi_session_file, source, and retainSource are set by pi-hindsight and cannot be overridden.
updateModeappend | replacenoOptional Hindsight update mode for this explicit retain call.
observationScopesper_tag | combined | all_combinations | array<array>noOptional Hindsight observation scopes. Use per_tag, combined, all_combinations, or explicit string groups. When provided, overrides configured default observation scopes for this retain call.
documentTagsarraynoOptional Hindsight document_tags for this retained document when supported.
asyncbooleannoOptional Hindsight async extraction flag for this retain call. Defaults to configured retain.async.

Ask Hindsight to synthesize an answer from memory. Use explicitly, not for default recall.

ParameterTypeRequiredDescription
querystringyes
contextstringno
bankstringno
budgetlow | mid | highnoOptional Hindsight reflect budget override for this tool call.
maxTokensintegernoOptional Hindsight reflect token cap override for this tool call.
responseSchemaobject/mapno
includeFactsbooleannoAsk Hindsight reflect to include facts when supported.
includeToolCallsbooleannoAsk Hindsight reflect to include tool-call trace data when supported.
includeToolCallOutputbooleannoWhen includeToolCalls is set, include tool-call outputs (default true); set false for an inputs-only trace.
factTypesarray<world | experience | observation>noRestrict reflection to these Hindsight fact types.
excludeMentalModelsbooleannoExclude all mental models from reflection.
excludeMentalModelIdsarraynoExclude specific mental models by id from reflection.
tagsarraynoAdditional tag filter.
tagsMatchany | all | any_strict | all_strictno
tagGroupsarraynoCompound Hindsight tag_groups filter. AND-ed with the automatic Pi project/user scope filter.
CommandDescription
/hindsightOpen Hindsight memory TUI.
/hindsight:initWrite .pi/hindsight.json with the currently selected project bank.
/hindsight:importImport the current Pi session JSONL into Hindsight.
/hindsight:import-currentImport the current Pi session JSONL into Hindsight.
/hindsight:import-fileImport an explicit Pi session JSONL file into Hindsight.
/hindsight:import-project-sessionsImport Pi session JSONL files scoped to the current repo/cwd.
/hindsight:sessionShow current Hindsight session memory mode and tags.
/hindsight:modeSet session memory mode: normal, read-only, or ignored.
/hindsight:next-opt-outSkip automatic retain for the next agent run in this session.
/hindsight:retainEnable or disable retain for this session.
/hindsight:tagAdd or remove a Hindsight tag for this session.
/hindsight:last-recallShow the last opt-in persisted recall snapshot.
/hindsight:recall-cleanupScan or prune accidentally persisted Hindsight recall blocks from the current session transcript.
/hindsight:queueInspect local retain queue and dead-letter metadata without printing payloads.
/hindsight:flushFlush queued retain jobs.
FieldTabKindDefaultChoicesAdvancedReset keyDescription
enabledConnectionbooleanenablednoenabledMaster switch. When off, automatic recall and retain are skipped.
baseUrlConnectiontexthttp://localhost:8888nohindsight.baseUrlServer endpoint used for recall, retain, reflect, and bank setup.
apiKeyEnvConnectiontextnot setnohindsight.apiKeyRecommended: environment variable name that contains the API key. Editing writes a safe env SecretRef, not the raw secret.
apiKeyDirectConnectiontextnot setyeshindsight.apiKeyAdvanced. Writes raw API key only to user/global config. Prefer API key source/env var whenever possible.
timeoutMsConnectionpositive-int30000 msnohindsight.timeoutMsMaximum time to wait for Hindsight network calls.
memoryProfileBanksselectproject-onlyproject-only, project+global, global-only, recall-onlynobanks.profileChoose Project Only for strict isolation, Project + User for personal coding, User Only for cross-repo preference memory, or Recall Only to disable automatic retain.
projectBankIdBankstextauto-derivednobanks.project.bankIdBank used for this repository. Default derives a stable ID from repo identity.
globalBankEnabledBanksbooleandisablednobanks.global.enabledAllows cross-project recall from a shared bank.
globalBankIdBankstextnot setnobanks.global.bankIdShared user bank used only when user memory is enabled.
recallEnabledRecallbooleanenablednorecall.enabledLooks up memory before answer generation and injects it ephemerally.
recallBudgetRecallselectmidlow, mid, highnorecall.budgetLow, mid, or high retrieval effort.
recallMaxTokensRecallpositive-int800norecall.maxTokensMaximum memory tokens injected into context.
recallStoreLastRecallbooleandisabledyesrecall.storeLastRecallAdvanced. Writes the latest successful recall snapshot to a local sidecar for /hindsight:last-recall.
recallStoreFailuresRecallbooleandisabledyesrecall.storeLastRecallFailuresAdvanced. Also records redacted failed recall attempts in the last-recall sidecar. Requires storing last recall snapshots.
retainEnabledRetainbooleanenablednoretain.enabledStores raw structured conversation deltas after turns.
retainAsyncRetainbooleanenabledyesretain.asyncWrites retain jobs through durable queue instead of blocking UI.
queuePathRetaintext.pi/hindsight/retain-queue.jsonlyesretain.queuePathJSONL retry queue used when Hindsight is unavailable.
globalRetainModeRetainselectexplicit-onlyexplicit-only, routeryesglobalRetain.modeAdvanced. explicit-only keeps global writes manual; router enables future high-confidence routing.
importModeImportselectcuratedcurated, raw, forensicnoimport.modeCurated drops noisy successful tool results from preview metrics; raw keeps current raw branch import behavior; forensic preserves recall blocks too.
importQualityProfileImportselectcompatiblecompatible, strictnoimport.qualityProfileCompatible preserves current curated behavior; strict drops process/UI-like, oversized, or repeated successful tool output in curated mode.
importBranchesImportselectcurrent-onlycurrent-only, all-leavesnoimport.includeBranchesImport current branch only, or every leaf branch explicitly.
importToolResultsImportselecterrors-onlyerrors-only, summary, contentnoimport.toolResultsCurated import defaults to errors-only; summary keeps bounded low-noise successful tool output; content keeps allowed full successful tool content.
importToolSummaryMaxCharsImportpositive-int500yesimport.toolResultSummaryMaxCharsMaximum characters kept for successful tool summaries in curated imports.
importManifestImporttext.pi/hindsight/import-manifest.jsonyesimport.manifestPathTracks imported sessions so reimports stay deterministic.
importCheckpointImporttext.pi/hindsight/import-checkpoint.jsonyesimport.checkpointPathTracks import progress so interrupted imports can resume safely.
importReplaceExistingImportbooleanenabledyesimport.replaceExistingImportedDocsUses deterministic replace mode for historical reimports instead of appending duplicates.
importResumeImportbooleanenabledyesimport.resumeSkips completed import documents when checkpoint content hashes match.
statusStyleUIselecttextoff, text, emoji, nerdfontnostatus.styleOff, plain text, emoji, or nerdfont symbols.
statusDetailUIselectactivityminimal, project, activity, verbosenostatus.detailHow much Hindsight info appears in Pi footer.
statusMaxLengthUIpositive-int24nostatus.maxLengthMaximum characters used by Hindsight footer status.
statusActivityUIbooleanenablednostatus.showActivityDisplays recall/retain activity in the status line.
notifyStartupUIbooleanenablednonotifications.startupShows selected Hindsight bank when Pi session starts.
notifyRecallUIbooleandisablednonotifications.recallShows a toast when automatic recall runs.
notifyRetainUIbooleandisablednonotifications.retainShows a toast when automatic retain queues memory.