Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/vectorize-io/hindsight
/ functions
Functions
18,621 in github.com/vectorize-io/hindsight
⨍
Functions
18,621
◇
Types & classes
2,579
↳
Endpoints
168
↓ 28 callers
Method
validate_bank_read
Validate a bank read operation before execution. Override to implement custom validation logic for bank reads (get_bank_prof
hindsight-api-slim/hindsight_api/extensions/operation_validator.py:847
↓ 27 callers
Method
IsSet
()
hindsight-clients/go/model_dry_run_extract_request.go:630
↓ 27 callers
Method
RetainMemories
* RetainMemories Retain memories Retain memory items with automatic fact extraction. This is the main endpoint for storing memories. It supports bot
hindsight-clients/go/api_memory.go:1684
↓ 27 callers
Method
RetainRequest
(retainRequest RetainRequest)
hindsight-clients/go/api_memory.go:1638
↓ 27 callers
Function
_mock_client
()
hindsight-integrations/google-adk/tests/test_memory.py:26
↓ 27 callers
Function
_run_hook
Import and run a hook script's main() with mocked stdin/stdout/HTTP.
hindsight-integrations/claude-code/tests/test_hooks.py:26
↓ 27 callers
Function
_run_hook
Import and run a hook script's main() with mocked stdin/stdout/HTTP.
hindsight-integrations/cursor-cli/tests/test_hooks.py:21
↓ 27 callers
Method
acquire
Acquire a connection within the budget as an async context manager. The connection is automatically released when the context exits.
hindsight-api-slim/hindsight_api/engine/db_budget.py:265
↓ 27 callers
Function
apply_combined_scoring
Apply combined scoring to a list of ScoredResults in-place. Uses the cross-encoder score as the primary relevance signal, with recency, tempo
hindsight-api-slim/hindsight_api/engine/search/reranking.py:58
↓ 27 callers
Method
authenticate
(self, request_context: RequestContext)
hindsight-api-slim/tests/test_main_module.py:436
↓ 27 callers
Function
build_tags_where_clause_simple
Build a simple SQL WHERE clause for tags filtering. This is a convenience version that returns just the clause string, assuming the call
hindsight-api-slim/hindsight_api/engine/search/tags.py:119
↓ 27 callers
Function
debug_log
Log to stderr if debug mode is enabled.
hindsight-integrations/cursor-cli/hindsight_cursor_cli/hooks/scripts/lib/config.py:153
↓ 27 callers
Function
debug_log
Log to stderr if debug mode is enabled.
hindsight-integrations/omo/scripts/lib/config.py:133
↓ 27 callers
Function
deriveBankId
(context: BankContext, config: BankConfig)
hindsight-integrations/paperclip/src/bank.ts:30
↓ 27 callers
Method
execute_task
Execute a single task as a background job (fire-and-forget).
hindsight-api-slim/hindsight_api/worker/poller.py:663
↓ 27 callers
Method
from_client
Construct from a pre-built Hindsight client.
hindsight-integrations/google-adk/hindsight_google_adk/memory.py:91
↓ 27 callers
Function
is_label_entity
Return True if entity text belongs to any configured label group. For enum groups: checks the pre-built lookup set. For text groups: che
hindsight-api-slim/hindsight_api/engine/retain/entity_labels.py:248
↓ 27 callers
Function
make_hook_input
Build a Cursor-style hook input dict. `beforeSubmitPrompt` only carries `prompt` + `attachments`, but common fields like `conversation_id`, `
hindsight-integrations/cursor-cli/tests/conftest.py:18
↓ 27 callers
Method
raise_for_status
()
hindsight-api-slim/tests/test_tei_cross_encoder.py:428
↓ 27 callers
Method
submit_async_retain
Submit a batch retain operation to run asynchronously. For large batches (exceeding retain_batch_chars threshold), automatically splits
hindsight-api-slim/hindsight_api/engine/memory_engine.py:12371
↓ 27 callers
Method
update_mental_model
Update a pinned mental model. Args: bank_id: Bank identifier mental_model_id: Pinned mental model UUID na
hindsight-api-slim/hindsight_api/engine/memory_engine.py:10828
↓ 26 callers
Function
_insert_memory
Insert a memory unit directly, bypassing LLM retain pipeline.
hindsight-api-slim/tests/test_observation_invalidation.py:25
↓ 26 callers
Function
_mock_client
Create a mock Hindsight client with async methods.
hindsight-integrations/pydantic-ai/tests/test_tools.py:16
↓ 26 callers
Function
_run_async
Run an async coroutine synchronously.
hindsight-clients/python/hindsight_client/hindsight_client.py:52
↓ 26 callers
Function
_validate_recall_budget_updates
Validate recall budget config updates. Raises ValueError on invalid input.
hindsight-api-slim/hindsight_api/config_resolver.py:502
↓ 26 callers
Method
close
Close the connection pool and shutdown background workers.
hindsight-api-slim/hindsight_api/engine/memory_engine.py:3087
↓ 26 callers
Function
create_mcp_server
Create and configure the Hindsight MCP server. Args: memory: MemoryEngine instance (required) multi_bank: If True, expose al
hindsight-api-slim/hindsight_api/api/mcp.py:94
↓ 26 callers
Function
debug_log
Log to stderr if debug mode is enabled.
hindsight-integrations/codex/scripts/lib/config.py:141
↓ 26 callers
Function
deriveBankId
( ctx: PluginHookAgentContext | undefined, pluginConfig: PluginConfig )
hindsight-integrations/openclaw/src/index.ts:1124
↓ 26 callers
Method
get_bank_config
Get fully resolved config for a bank (filtered by permissions). Resolution order: 1. Global config (from environment variabl
hindsight-api-slim/hindsight_api/config_resolver.py:152
↓ 26 callers
Function
parse_chinese_number
(text: str)
hindsight-api-slim/hindsight_api/engine/chinese_temporal_periods.py:158
↓ 26 callers
Method
resolve_full_config
Resolve full HindsightConfig for a bank with hierarchical overrides applied. This is for INTERNAL USE ONLY. Returns the complete con
hindsight-api-slim/hindsight_api/config_resolver.py:101
↓ 25 callers
Function
U
(e)
hindsight-embed/hindsight_embed/control_center/static/assets/index-CCShriQ0.js:51
↓ 25 callers
Function
_ensure_bank
(memory: MemoryEngine, bank_id: str, request_context: RequestContext)
hindsight-api-slim/tests/test_observation_invalidation.py:74
↓ 25 callers
Function
build_system_prompt_for_tools
Build the system prompt for tool-calling reflect agent. The agent uses hierarchical retrieval: 1. search_mental_models - User-curated su
hindsight-api-slim/hindsight_api/engine/reflect/prompts.py:96
↓ 25 callers
Method
close
(self)
hindsight-dev/hindsight_dev/obs_dedup/client.py:38
↓ 25 callers
Method
get_operation_status
Get the status of a specific async operation. For parent operations, the status is automatically updated in the database when all children co
hindsight-api-slim/hindsight_api/engine/memory_engine.py:11677
↓ 25 callers
Function
get_token_bucket
Convert a token count to a bucket label for use as a dimension. This allows analyzing token usage patterns without high-cardinality issues.
hindsight-api-slim/hindsight_api/metrics.py:103
↓ 25 callers
Method
validateResponse
* Validates the API response and throws an error if the request failed.
hindsight-clients/typescript/src/index.ts:157
↓ 24 callers
Method
Get
()
hindsight-clients/go/model_memory_item.go:514
↓ 24 callers
Method
IsSet
()
hindsight-clients/go/model_recall_result.go:680
↓ 24 callers
Method
IsSet
()
hindsight-clients/go/model_operation_status_response.go:643
↓ 24 callers
Function
_hook
(session_id="sess-1", cwd="/home/user/myproject")
hindsight-integrations/claude-code/tests/test_bank.py:28
↓ 24 callers
Function
_make_result
( ce_norm: float, occurred_start: datetime | None = None, temporal_proximity: float | None = None,
hindsight-api-slim/tests/test_combined_scoring.py:23
↓ 24 callers
Function
_make_valid_token
Return a token that passes the MIN_TOKEN_LENGTH check.
hindsight-api-slim/tests/test_supabase_tenant.py:67
↓ 24 callers
Function
_run
Invoke an OpenAI Agents FunctionTool and return the string result.
hindsight-integrations/openai-agents/tests/test_tools.py:48
↓ 24 callers
Function
_tools_by_name
Register tools on a FakeComposio and return them keyed by function name.
hindsight-integrations/composio/tests/test_tools.py:80
↓ 24 callers
Function
count_tokens
Count tokens in text using tiktoken (cl100k_base encoding for GPT-4/3.5).
hindsight-api-slim/hindsight_api/engine/memory_engine.py:128
↓ 24 callers
Function
load_config
Load plugin configuration from settings.json + env overrides. Loading order (later entries win): 1. Built-in defaults 2. Plugin defau
hindsight-integrations/claude-code/scripts/lib/config.py:133
↓ 24 callers
Function
reportError
Prevent trying to import "fmt"
hindsight-clients/go/utils.go:359
↓ 24 callers
Function
set_stage
Update the current task's stage label. No-op when called outside a worker task context (e.g. from a sync HTTP request, a test, or the CLI). C
hindsight-api-slim/hindsight_api/worker/stage.py:43
↓ 24 callers
Function
track_retention
Track retention state and detect compaction. Compares the current message count against the last retained count for this session. When the t
hindsight-integrations/claude-code/scripts/lib/state.py:160
↓ 23 callers
Method
RecallMemories
* RecallMemories Recall memory Recall memory using semantic similarity and spreading activation. The type parameter is optional and must be one of:
hindsight-clients/go/api_memory.go:1388
↓ 23 callers
Method
RecallRequest
(recallRequest RecallRequest)
hindsight-clients/go/api_memory.go:1361
↓ 23 callers
Function
_make_extension
Helper to create a SupabaseTenantExtension with test config.
hindsight-api-slim/tests/test_supabase_tenant.py:40
↓ 23 callers
Function
_mock_retain_response
()
hindsight-integrations/haystack/tests/test_tools.py:44
↓ 23 callers
Function
_setup_jwks_ext
Create an extension in JWKS mode with mocked internals.
hindsight-api-slim/tests/test_supabase_tenant.py:72
↓ 23 callers
Method
analyze
Analyze a natural language query. Args: query: Natural language query to analyze reference_date: Reference d
hindsight-api-slim/hindsight_api/engine/query_analyzer.py:68
↓ 23 callers
Function
get_metrics_collector
Get the global metrics collector instance. Returns a no-op collector if metrics are not initialized.
hindsight-api-slim/hindsight_api/metrics.py:994
↓ 23 callers
Function
prepareRetentionTranscript
( messages: any[], pluginConfig: PluginConfig, retainFullWindow = false )
hindsight-integrations/openclaw/src/index.ts:2810
↓ 23 callers
Function
reset_config
Reset global configuration to None.
hindsight-integrations/composio/hindsight_composio/config.py:98
↓ 22 callers
Method
IsSet
()
hindsight-clients/go/model_webhook_delivery_response.go:600
↓ 22 callers
Method
_ensure_started
Ensure daemon is running (thread-safe), restarting if crashed.
hindsight-all/hindsight/embedded.py:144
↓ 22 callers
Function
_normalize_tool_name
Normalize tool name from various LLM output formats. Some LLMs output tool names in non-standard formats: - 'functions.done' (OpenAI-style pr
hindsight-api-slim/hindsight_api/engine/reflect/agent.py:53
↓ 22 callers
Function
_run
Invoke an AutoGen FunctionTool and return the string result.
hindsight-integrations/autogen/tests/test_tools.py:47
↓ 22 callers
Method
acquire
(self)
hindsight-api-slim/hindsight_api/engine/db/oracle.py:1303
↓ 22 callers
Function
createHooks
( hindsightClient: HindsightClient, bankId: string, config: HindsightConfig, state: PluginState, ope
hindsight-integrations/opencode/src/hooks.ts:85
↓ 22 callers
Function
enable
Enable Hindsight memory integration with LiteLLM. This monkeypatches litellm.completion and litellm.acompletion to: 1. Inject relevant memori
hindsight-integrations/litellm/hindsight_litellm/__init__.py:669
↓ 22 callers
Method
get_bank_stats
Get statistics about memory nodes and links for a bank. Results are served from a short-TTL cache (a shared table on PostgreSQL, per-
hindsight-api-slim/hindsight_api/engine/memory_engine.py:9739
↓ 22 callers
Method
initialize
( self, dsn: str, *, min_size: int = 5, max_size: int = 20, co
hindsight-api-slim/hindsight_api/engine/db/oracle.py:1246
↓ 22 callers
Method
list_memory_units
List memory units for table view with optional full-text search. Args: bank_id: Filter by bank ID fact_type:
hindsight-api-slim/hindsight_api/engine/memory_engine.py:7323
↓ 22 callers
Function
randomBankId
()
hindsight-clients/typescript/tests/main_operations.test.ts:18
↓ 22 callers
Function
read_transcript
Read a Codex JSONL transcript and return list of message dicts. When include_tool_calls is False (legacy mode), returns simple {role, content
hindsight-integrations/codex/scripts/lib/content.py:72
↓ 22 callers
Method
shutdown
(self)
hindsight-api-slim/hindsight_api/engine/db/oracle.py:1279
↓ 22 callers
Function
to_libpq_url
Normalize a PostgreSQL URL for libpq-style consumers. Accepts a SQLAlchemy URL (``postgresql+asyncpg://...``) or a plain libpq URL and return
hindsight-api-slim/hindsight_api/db_url.py:28
↓ 21 callers
Method
IsSet
()
hindsight-clients/go/model_update_memory_request.go:427
↓ 21 callers
Method
IsSet
()
hindsight-clients/go/model_mental_model_response.go:587
↓ 21 callers
Function
_build_extraction_prompt_and_schema
Build extraction prompt and response schema based on config. When a taxonomy is configured, dynamically builds a Pydantic model with a t
hindsight-api-slim/hindsight_api/engine/retain/fact_extraction.py:1004
↓ 21 callers
Function
_insert_unit
Insert a memory unit directly. Skips embedding (NULL is fine for temporal tests).
hindsight-api-slim/tests/test_graph_maintenance.py:33
↓ 21 callers
Function
_mock_client
()
hindsight-integrations/langgraph/tests/test_nodes.py:11
↓ 21 callers
Function
_parse_llm_members
Parse indexed extra-LLM members for an operation env prefix. ``prefix`` is the operation segment in the env name: ``""`` (global), ``"RETAIN_
hindsight-api-slim/hindsight_api/config.py:1454
↓ 21 callers
Function
_unique_bank
(prefix: str)
hindsight-api-slim/tests/test_document_transfer.py:68
↓ 21 callers
Function
build_labels_lookup
Build a set of valid 'key:value' label strings (lowercase) for fast lookup. Accepts either EntityLabelsConfig or raw list/None for backwards
hindsight-api-slim/hindsight_api/engine/retain/entity_labels.py:268
↓ 21 callers
Function
build_tag_groups_where_clause
Build a SQL WHERE clause for compound tag group filtering. Top-level groups are AND-ed together. Each group is a recursive boolean expre
hindsight-api-slim/hindsight_api/engine/search/tags.py:333
↓ 21 callers
Method
call_with_tools
(self, **kwargs)
hindsight-api-slim/tests/test_multi_llm_provider.py:40
↓ 21 callers
Function
configure
Configure Hindsight connection and default settings. Args: hindsight_api_url: Hindsight API URL (default: production). api_key: A
hindsight-integrations/strands/hindsight_strands/config.py:40
↓ 21 callers
Function
configure
Configure Hindsight connection and default settings. Args: hindsight_api_url: Hindsight API URL (default: production). api_key: A
hindsight-integrations/smolagents/hindsight_smolagents/config.py:40
↓ 21 callers
Function
debug_log
Log to stderr if debug mode is enabled.
hindsight-integrations/cursor/scripts/lib/config.py:156
↓ 21 callers
Function
deriveBankId
(config: HindsightConfig, directory: string)
hindsight-integrations/opencode/src/bank.ts:75
↓ 21 callers
Function
extractRecallQuery
( rawMessage: string | undefined, prompt: string | undefined )
hindsight-integrations/openclaw/src/index.ts:609
↓ 21 callers
Method
initialize
Initialize the embedding model asynchronously. This should be called during startup to load/connect to the model and avoid c
hindsight-api-slim/hindsight_api/engine/embeddings.py:100
↓ 21 callers
Method
list_documents
List documents with optional search and pagination. Args: bank_id: bank ID (required) search_query: Search i
hindsight-api-slim/hindsight_api/engine/memory_engine.py:7766
↓ 21 callers
Function
loadConfig
(pluginOptions?: Record<string, unknown>)
hindsight-integrations/opencode/src/config.ts:144
↓ 21 callers
Function
makeClient
()
hindsight-integrations/opencode/src/hooks.test.ts:14
↓ 21 callers
Function
makeOpencodeClient
( messages: Array<{ info: { role: string }; parts: Array<{ type: string; text?: string }> }> = [] )
hindsight-integrations/opencode/src/hooks.test.ts:23
↓ 21 callers
Function
makeState
()
hindsight-integrations/opencode/src/hooks.test.ts:5
↓ 21 callers
Function
reset_config
Reset global configuration to None.
hindsight-integrations/strands/hindsight_strands/config.py:89
↓ 21 callers
Function
reset_config
Reset global configuration to None.
hindsight-integrations/agno/hindsight_agno/config.py:89
↓ 21 callers
Function
since_from_period
( period: DateRange | None, )
hindsight-api-slim/hindsight_api/engine/chinese_temporal_periods.py:441
↓ 21 callers
Method
update_memory_unit
Curate a single raw memory unit: edit its fields and/or change its state. Invalidation keeps the recall hot-path clean by *moving* the row be
hindsight-api-slim/hindsight_api/engine/memory_engine.py:6440
← previous
next →
201–300 of 18,621, ranked by callers