Repository Analysis

vectorize-io/hindsight

Hindsight: Agent Memory That Learns

28.4 Moderate AI signal View on GitHub

Analysis Overview

This report presents the forensic synthetic code analysis of vectorize-io/hindsight, a Python project with 19,005 GitHub stars. SynthScan v2.0 examined 797,631 lines of code across 3073 source files, recording 13232 pattern matches distributed across 25 syntactic categories. The overall adjusted score of 28.4 places this repository in the Moderate AI signal band.

The scanner applied 160+ deterministic lexical heuristics, multi-line block detectors, abstract syntax tree depth profilers, and a cross-file Jaccard similarity matrix to construct a statistically normalised synthetic code estimate. All matches are individually weighted by severity coefficient and contextual multiplier before summation, and the resulting headline score is temporally discounted to account for the repository's development history relative to the commercial emergence of large language model coding tooling (November 2022 onward).

28.4
Adjusted Score
28.4
Raw Score
100%
Time Factor
2026-07-31
Last Push
19.0K
Stars
Python
Language
797.6K
Lines of Code
3.1K
Files
13.2K
Pattern Hits
2026-08-02
Scan Date
0.44
HC Hit Rate

What These Metrics Mean

Adjusted Score
Primary synthetic code indicator. Raw score normalised per 1,000 lines of code and multiplied by the temporal discount factor. This is the definitive comparative metric — use it to rank repositories by AI authorship density.
Raw Score
The unmodified sum of all severity-weighted, context-multiplied pattern match scores before temporal discounting. Reflects the absolute signal strength independent of when the repository was last active.
Time Factor
The temporal discount multiplier (0–100%) applied to the raw score. Repositories last updated before ChatGPT's launch (Nov 2022) receive a 5% factor. Full signal is only assigned to repositories active in the post-adoption era (Jan 2024+).
Pattern Hits
Total count of individual pattern matches across all files and categories. A high hit count with a low score may indicate a very large codebase with isolated AI snippets; a low count with a high score indicates dense, concentrated AI signatures.
HC Hit Rate
High+Critical pattern hits per file, averaged across the repository. This orthogonal signal catches repositories where a few files are densely packed with high-severity AI tells — a strong indicator even when the normalised score appears moderate due to codebase size.
Lines of Code / Files
Total lines and files analysed. The scanner examines 94 file extensions. These denominators are used to normalise the score, enabling fair comparison between repositories of vastly different sizes.

Score History

This chart maps the temporal evolution of the adjusted synthetic code score across successive scan runs. An upward trajectory indicates ongoing incorporation of AI-generated code or expanding LLM-assisted scaffolding; a stable or declining trajectory may reflect active human refactoring, code removal, or the adoption of stricter authorship policies. The dashed secondary line (right axis) independently tracks total raw pattern hit count, which can diverge from the normalised score when codebase size changes significantly between scans.

Severity Breakdown

Classifies detected patterns by their diagnostic confidence and structural impact. CRITICAL patterns (coefficient 10) represent definitive synthetic signatures — hallucinated imports, explicit LLM attribution metadata — virtually never produced by human authors. HIGH (5) indicates strong structural tells such as cross-file repetition or cross-linguistic idioms. MEDIUM (2) covers recognisable conversational padding and AI-specific vocabulary. LOW (1) captures subtle indicators like tautological comments and generic boilerplate that require density to carry independent signal.

CRITICAL 14HIGH 1348MEDIUM 1765LOW 10105

Directory Score Breakdown

This horizontal bar chart decomposes the repository's raw synthetic code score by top-level directory, allowing you to pinpoint precisely which modules or components carry the highest AI authorship density. Directories with disproportionately high scores relative to their size warrant targeted manual review: concentrated AI signatures often trace back to mass-generated configuration layers, auto-ported test suites, LLM-scaffolded boilerplate classes, or entire subsystems authored under heavy copilot assistance. Use this view to prioritise your human code-review effort.

Pattern Findings

The scanner identified 13232 distinct pattern matches across 25 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a statistically significant AI authorship indicator. Expand any category row to inspect the individual file paths, line numbers, code snippets, and the lexical context (CODE, COMMENT, or STRING) in which each match was detected.

Reading the findings table: The Severity column indicates the diagnostic confidence level (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — comment-context matches receive a ×1.5 weight because LLMs systematically over-annotate. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier as dense clusters constitute far stronger evidence of synthetic authorship than isolated hits.

Hyper-Verbose Identifiers6312 hits · 5979 pts
SeverityFileLineSnippetContext
LOWhindsight-all/tests/test_server_integration.py62def test_server_context_manager_basic_workflow(client):CODE
LOWhindsight-all/tests/test_server_integration.py186def test_server_manual_start_stop(client):CODE
LOWhindsight-all/tests/test_server_integration.py217def test_server_with_client_context_manager(client):CODE
LOWhindsight-all/tests/test_embedded_namespaces.py20def test_banks_create_ensures_daemon_started(embedded_client):CODE
LOWhindsight-all/tests/test_embedded_namespaces.py38def test_mental_models_list_ensures_daemon_started(embedded_client):CODE
LOWhindsight-all/tests/test_embedded_namespaces.py52def test_directives_list_ensures_daemon_started(embedded_client):CODE
LOWhindsight-all/tests/test_embedded_namespaces.py66def test_memories_list_ensures_daemon_started(embedded_client):CODE
LOWhindsight-all/tests/test_embedded_namespaces.py80def test_multiple_calls_ensure_daemon_each_time(embedded_client):CODE
LOWhindsight-all/tests/test_embedded_namespaces.py106def test_daemon_restart_handling(embedded_client):CODE
LOWhindsight-all/tests/test_embedded_namespaces.py132def test_ensure_started_calls_manager(embedded_client):CODE
LOWhindsight-all/tests/test_embedded_namespaces.py159def test_namespace_singleton_behavior(embedded_client):CODE
LOWhindsight-all/tests/test_cleanup_timeout.py15def test_cleanup_completes_when_lock_held():CODE
LOWhindsight-all/tests/test_embedded.py74def test_embedded_context_manager(llm_config):CODE
LOWhindsight-all/tests/test_embedded.py99def test_embedded_complete_workflow(llm_config):CODE
LOWhindsight-all/tests/test_embedded.py188def test_embedded_server_reuse(llm_config):CODE
LOWhindsight-all/tests/test_embedded.py221def test_embedded_method_proxying(llm_config):CODE
LOWhindsight-all/tests/test_embedded.py272def test_embedded_multiple_banks(llm_config):CODE
LOWhindsight-all/tests/test_embedded.py310def test_embedded_profile_isolation(llm_config):CODE
LOWhindsight-all/tests/test_embedded.py348def test_embedded_error_after_close(llm_config):CODE
LOWhindsight-all/tests/test_embedded.py406def test_embedded_daemon_crash_recovery(llm_config):CODE
LOWhindsight-api-slim/tests/test_agents_api.py21 async def test_get_bank_profile_no_auto_create_returns_none(self, memory: MemoryEngine, request_context):CODE
LOWhindsight-api-slim/tests/test_agents_api.py47 async def test_get_agent_profile_creates_default(self, memory: MemoryEngine, request_context):CODE
LOWhindsight-api-slim/tests/test_agents_api.py62 async def test_update_agent_disposition(self, memory: MemoryEngine, request_context):CODE
LOWhindsight-api-slim/tests/test_agents_api.py138 async def test_think_uses_disposition(self, memory: MemoryEngine, request_context):CODE
LOW…-api-slim/tests/test_structured_delta_prompt_budget.py11def test_build_structured_delta_prompt_truncates_huge_document():CODE
LOW…-api-slim/tests/test_structured_delta_prompt_budget.py29def test_fit_structured_delta_keeps_small_prompt_unchanged():CODE
LOWhindsight-api-slim/tests/test_multilingual_bm25.py44def test_output_language_directive_empty_when_unset():CODE
LOWhindsight-api-slim/tests/test_multilingual_bm25.py49def test_output_language_directive_mentions_language_three_times():CODE
LOWhindsight-api-slim/tests/test_multilingual_bm25.py63def test_retain_unset_does_not_inject_directive():CODE
LOWhindsight-api-slim/tests/test_multilingual_bm25.py73def test_retain_injects_directive():CODE
LOWhindsight-api-slim/tests/test_multilingual_bm25.py83def test_retain_directive_appears_after_base_prompt():CODE
LOWhindsight-api-slim/tests/test_multilingual_bm25.py115def test_consolidation_unset_does_not_inject_directive():CODE
LOWhindsight-api-slim/tests/test_multilingual_bm25.py122def test_consolidation_injects_directive():CODE
LOWhindsight-api-slim/tests/test_multilingual_bm25.py130def test_consolidation_directive_does_not_break_format_placeholders():CODE
LOWhindsight-api-slim/tests/test_multilingual_bm25.py146def test_reflect_unset_does_not_inject_directive():CODE
LOWhindsight-api-slim/tests/test_multilingual_bm25.py151def test_reflect_injects_directive():CODE
LOWhindsight-api-slim/tests/test_multilingual_bm25.py156def test_reflect_preserves_mission_alongside_directive():CODE
LOWhindsight-api-slim/tests/test_multilingual_bm25.py97def test_retain_works_with_custom_mode():CODE
LOWhindsight-api-slim/tests/test_multilingual_bm25.py255async def test_combined_retrieval_reuses_raw_semantic_pool_for_graph_seeds(monkeypatch):CODE
LOWhindsight-api-slim/tests/test_multilingual_bm25.py289async def test_combined_retrieval_keeps_graph_query_when_semantic_threshold_is_stricter(monkeypatch):CODE
LOWhindsight-api-slim/tests/test_worker_retry_knobs.py49async def _create_pending_operation(pool, bank_id: str, operation_id: uuid.UUID) -> None:CODE
LOWhindsight-api-slim/tests/test_worker_retry_knobs.py75async def test_retry_count_cap_honors_env_var(memory):CODE
LOWhindsight-api-slim/tests/test_worker_retry_knobs.py103async def test_retry_stops_at_env_var_cap(memory):CODE
LOWhindsight-api-slim/tests/test_worker_retry_knobs.py133async def test_retry_backoff_honors_env_var(memory):CODE
LOWhindsight-api-slim/tests/test_worker_retry_knobs.py173async def test_defaults_preserve_existing_behavior(memory):CODE
LOW…ight-api-slim/tests/test_tool_path_reasoning_effort.py89 async def test_reasoning_model_receives_reasoning_effort_on_tool_path(self):CODE
LOW…ight-api-slim/tests/test_tool_path_reasoning_effort.py98 async def test_configured_effort_is_forwarded_verbatim(self):CODE
LOW…ight-api-slim/tests/test_tool_path_reasoning_effort.py107 async def test_blast_radius_is_the_capability_check_not_the_provider(self, provider):CODE
LOW…ight-api-slim/tests/test_tool_path_reasoning_effort.py126 async def test_non_reasoning_model_gets_no_reasoning_effort(self):CODE
LOW…ight-api-slim/tests/test_tool_path_reasoning_effort.py134 async def test_tool_path_matches_plain_path_for_same_model(self):CODE
LOWhindsight-api-slim/tests/test_op_cancellation.py72 async def test_bank_deletion_cascades_to_async_operations(self, pool):CODE
LOWhindsight-api-slim/tests/test_op_cancellation.py117 async def test_returns_true_when_op_exists(self, memory: MemoryEngine, request_context):CODE
LOWhindsight-api-slim/tests/test_op_cancellation.py182 async def test_mark_completed_does_not_raise_when_row_missing(self, memory: MemoryEngine):CODE
LOWhindsight-api-slim/tests/test_op_cancellation.py188 async def test_mark_failed_does_not_raise_when_row_missing(self, memory: MemoryEngine):CODE
LOWhindsight-api-slim/tests/test_op_cancellation.py193 async def test_mark_completed_and_fire_webhook_does_not_raise_when_row_missing(self, memory: MemoryEngine):CODE
LOWhindsight-api-slim/tests/test_op_cancellation.py210 async def test_consolidation_stops_early_when_op_cancelled(self, memory: MemoryEngine, request_context):CODE
LOWhindsight-api-slim/tests/test_op_cancellation.py266 async def test_retain_stops_between_sub_batches_when_cancelled(self, memory: MemoryEngine, request_context):CODE
LOWhindsight-api-slim/tests/test_op_cancellation.py88 async def test_bank_deletion_cascades_to_webhooks(self, pool):CODE
LOWhindsight-api-slim/tests/test_op_cancellation.py135 async def test_returns_false_when_op_deleted(self, memory: MemoryEngine, request_context):CODE
LOWhindsight-api-slim/tests/test_op_cancellation.py154 async def test_returns_false_after_bank_cascade_delete(self, memory: MemoryEngine, request_context):CODE
6252 more matches not shown…
Decorative Section Separators1484 hits · 5350 pts
SeverityFileLineSnippetContext
MEDIUMhindsight-cli/.openapi-coverage.toml20# ---------------------------------------------------------------------------COMMENT
MEDIUMhindsight-cli/.openapi-coverage.toml22# ---------------------------------------------------------------------------COMMENT
MEDIUMhindsight-cli/.openapi-coverage.toml82# ---------------------------------------------------------------------------COMMENT
MEDIUMhindsight-cli/.openapi-coverage.toml84# ---------------------------------------------------------------------------COMMENT
MEDIUMhindsight-cli/src/commands/fs/format.rs11// ── Frontmatter ────────────────────────────────────────COMMENT
MEDIUMhindsight-cli/src/commands/fs/format.rs89// ── Mirror planning ────────────────────────────────────COMMENT
MEDIUMhindsight-cli/src/commands/fs/mod.rs166// ── Refresh loop ───────────────────────────────────────COMMENT
MEDIUMhindsight-cli/src/commands/fs/mod.rs231// ── Commands ───────────────────────────────────────────COMMENT
MEDIUMdocker/standalone/start-all.sh4# =============================================================================COMMENT
MEDIUMdocker/standalone/start-all.sh12# =============================================================================COMMENT
MEDIUMdocker/standalone/start-all.sh46# =============================================================================COMMENT
MEDIUMdocker/standalone/start-all.sh59# =============================================================================COMMENT
MEDIUMdocker/standalone/start-all.sh101# =============================================================================COMMENT
MEDIUMdocker/standalone/start-all.sh107# =============================================================================COMMENT
MEDIUMdocker/standalone/start-all.sh167# =============================================================================COMMENT
MEDIUMdocker/standalone/start-all.sh179# =============================================================================COMMENT
MEDIUMdocker/standalone/test-start-all.sh75# =============================================================================COMMENT
MEDIUMdocker/standalone/test-start-all.sh78# =============================================================================COMMENT
MEDIUMdocker/docker-compose/claude-code/docker-compose.yaml25 # ── Persistent data ────────────────────────────────────────────COMMENT
MEDIUMdocker/docker-compose/claude-code/docker-compose.yaml29 # ── Claude credentials (read-only, single-file mounts) ────────COMMENT
MEDIUMdocker/docker-compose/claude-code/docker-compose.yaml36 # ── Claude CLI install (read-only) ─────────────────────────────COMMENT
MEDIUMdocker/docker-compose/claude-code/docker-compose.yaml39 # ── SDK bundled-binary override ────────────────────────────────COMMENT
MEDIUMhindsight-api-slim/tests/test_multilingual_bm25.py39# ---------------------------------------------------------------------------COMMENT
MEDIUMhindsight-api-slim/tests/test_multilingual_bm25.py41# ---------------------------------------------------------------------------COMMENT
MEDIUMhindsight-api-slim/tests/test_multilingual_bm25.py58# ---------------------------------------------------------------------------COMMENT
MEDIUMhindsight-api-slim/tests/test_multilingual_bm25.py60# ---------------------------------------------------------------------------COMMENT
MEDIUMhindsight-api-slim/tests/test_multilingual_bm25.py110# ---------------------------------------------------------------------------COMMENT
MEDIUMhindsight-api-slim/tests/test_multilingual_bm25.py112# ---------------------------------------------------------------------------COMMENT
MEDIUMhindsight-api-slim/tests/test_multilingual_bm25.py141# ---------------------------------------------------------------------------COMMENT
MEDIUMhindsight-api-slim/tests/test_multilingual_bm25.py143# ---------------------------------------------------------------------------COMMENT
MEDIUMhindsight-api-slim/tests/test_multilingual_bm25.py162# ---------------------------------------------------------------------------COMMENT
MEDIUMhindsight-api-slim/tests/test_multilingual_bm25.py164# ---------------------------------------------------------------------------COMMENT
MEDIUMhindsight-api-slim/tests/test_multilingual_bm25.py182# ---------------------------------------------------------------------------COMMENT
MEDIUMhindsight-api-slim/tests/test_multilingual_bm25.py184# ---------------------------------------------------------------------------COMMENT
MEDIUMhindsight-api-slim/tests/test_op_cancellation.py65# ---------------------------------------------------------------------------COMMENT
MEDIUMhindsight-api-slim/tests/test_op_cancellation.py67# ---------------------------------------------------------------------------COMMENT
MEDIUMhindsight-api-slim/tests/test_op_cancellation.py110# ---------------------------------------------------------------------------COMMENT
MEDIUMhindsight-api-slim/tests/test_op_cancellation.py112# ---------------------------------------------------------------------------COMMENT
MEDIUMhindsight-api-slim/tests/test_op_cancellation.py175# ---------------------------------------------------------------------------COMMENT
MEDIUMhindsight-api-slim/tests/test_op_cancellation.py177# ---------------------------------------------------------------------------COMMENT
MEDIUMhindsight-api-slim/tests/test_op_cancellation.py203# ---------------------------------------------------------------------------COMMENT
MEDIUMhindsight-api-slim/tests/test_op_cancellation.py205# ---------------------------------------------------------------------------COMMENT
MEDIUMhindsight-api-slim/tests/test_op_cancellation.py259# ---------------------------------------------------------------------------COMMENT
MEDIUMhindsight-api-slim/tests/test_op_cancellation.py261# ---------------------------------------------------------------------------COMMENT
MEDIUMhindsight-api-slim/tests/test_gemini_batch.py61# --------------------------------------------------------------------------COMMENT
MEDIUMhindsight-api-slim/tests/test_gemini_batch.py63# --------------------------------------------------------------------------COMMENT
MEDIUMhindsight-api-slim/tests/test_gemini_batch.py81# --------------------------------------------------------------------------COMMENT
MEDIUMhindsight-api-slim/tests/test_gemini_batch.py83# --------------------------------------------------------------------------COMMENT
MEDIUMhindsight-api-slim/tests/test_gemini_batch.py131# --------------------------------------------------------------------------COMMENT
MEDIUMhindsight-api-slim/tests/test_gemini_batch.py133# --------------------------------------------------------------------------COMMENT
MEDIUMhindsight-api-slim/tests/test_gemini_batch.py193# --------------------------------------------------------------------------COMMENT
MEDIUMhindsight-api-slim/tests/test_gemini_batch.py195# --------------------------------------------------------------------------COMMENT
MEDIUMhindsight-api-slim/tests/test_gemini_batch.py223# --------------------------------------------------------------------------COMMENT
MEDIUMhindsight-api-slim/tests/test_gemini_batch.py225# --------------------------------------------------------------------------COMMENT
MEDIUM…api-slim/tests/test_consolidation_scope_parallelism.py135# ---------------------------------------------------------------------------COMMENT
MEDIUM…api-slim/tests/test_consolidation_scope_parallelism.py138# ---------------------------------------------------------------------------COMMENT
MEDIUM…api-slim/tests/test_consolidation_scope_parallelism.py338# ---------------------------------------------------------------------------COMMENT
MEDIUM…api-slim/tests/test_consolidation_scope_parallelism.py341# ---------------------------------------------------------------------------COMMENT
MEDIUM…api-slim/tests/test_consolidation_scope_parallelism.py419# ---------------------------------------------------------------------------COMMENT
MEDIUM…api-slim/tests/test_consolidation_scope_parallelism.py423# ---------------------------------------------------------------------------COMMENT
1424 more matches not shown…
Cross-File Repetition1053 hits · 5265 pts
SeverityFileLineSnippetContext
HIGHCLAUDE.md0schema-qualifier for raw sql on pg (multi-tenant search_path).STRING
HIGH…ions/e7c3a9f1b2d5_drop_archive_search_vector_column.py0schema-qualifier for raw sql on pg (multi-tenant search_path).STRING
HIGH…alembic/versions/b8c9d0e1f2a3_vchord_cosine_opclass.py0schema-qualifier for raw sql on pg (multi-tenant search_path).STRING
HIGH…i/alembic/versions/a9b8c7d6e5f4_add_knowledge_pages.py0schema-qualifier for raw sql on pg (multi-tenant search_path).STRING
HIGH…/alembic/versions/b57a7c9e0d13_add_bank_stats_cache.py0schema-qualifier for raw sql on pg (multi-tenant search_path).STRING
HIGH…ic/versions/9f8e7d6c5b4a_memory_links_deferrable_fk.py0schema-qualifier for raw sql on pg (multi-tenant search_path).STRING
HIGH…ersions/2071c7518f88_add_memory_links_bank_id_index.py0schema-qualifier for raw sql on pg (multi-tenant search_path).STRING
HIGH…versions/d4f6a8c2e1b3_drop_archive_embedding_column.py0schema-qualifier for raw sql on pg (multi-tenant search_path).STRING
HIGH…mbic/versions/c7d1e9a4b3f2_add_archive_causal_links.py0schema-qualifier for raw sql on pg (multi-tenant search_path).STRING
HIGH…rsions/a1d3f5b7c9e2_widen_remaining_bank_id_to_text.py0schema-qualifier for raw sql on pg (multi-tenant search_path).STRING
HIGH…versions/a7b8c9d0e1f2_split_history_into_own_tables.py0schema-qualifier for raw sql on pg (multi-tenant search_path).STRING
HIGH…s/86f7a033d372_repair_mental_models_subtype_at_head.py0schema-qualifier for raw sql on pg (multi-tenant search_path).STRING
HIGH…versions/c3e5a7b9d1f4_widen_history_bank_id_to_text.py0schema-qualifier for raw sql on pg (multi-tenant search_path).STRING
HIGHhindsight-api-slim/tests/test_worker_retry_knobs.py0insert into async_operations (operation_id, bank_id, operation_type, status, task_payload) values ($1, $2, 'test', 'pendSTRING
HIGH…api-slim/tests/test_integrity_violation_not_retried.py0insert into async_operations (operation_id, bank_id, operation_type, status, task_payload) values ($1, $2, 'test', 'pendSTRING
HIGHhindsight-api-slim/tests/test_worker.py0insert into async_operations (operation_id, bank_id, operation_type, status, task_payload) values ($1, $2, 'test', 'pendSTRING
HIGH…-api-slim/tests/test_mental_model_scheduled_refresh.py0insert into async_operations (operation_id, bank_id, operation_type, status, task_payload) values ($1, $2, 'test', 'pendSTRING
HIGHhindsight-api-slim/tests/test_maintenance_loop.py0insert into async_operations (operation_id, bank_id, operation_type, status, task_payload) values ($1, $2, 'test', 'pendSTRING
HIGH…lim/tests/test_consolidation_silent_requeue_failure.py0insert into async_operations (operation_id, bank_id, operation_type, status, task_payload) values ($1, $2, 'test', 'pendSTRING
HIGH…lim/tests/test_consolidation_reschedule_after_round.py0insert into async_operations (operation_id, bank_id, operation_type, status, task_payload) values ($1, $2, 'test', 'pendSTRING
HIGHhindsight-api-slim/tests/test_maintenance_routines.py0insert into async_operations (operation_id, bank_id, operation_type, status, task_payload) values ($1, $2, 'test', 'pendSTRING
HIGH…api-slim/tests/test_consolidation_scope_parallelism.py0insert into memory_units (id, bank_id, text, fact_type, tags, created_at) values ($1, $2, $3, 'experience', $4, now())STRING
HIGH…-api-slim/tests/test_consolidation_failure_recovery.py0insert into memory_units (id, bank_id, text, fact_type, tags, created_at) values ($1, $2, $3, 'experience', $4, now())STRING
HIGHhindsight-api-slim/tests/test_consolidation.py0insert into memory_units (id, bank_id, text, fact_type, tags, created_at) values ($1, $2, $3, 'experience', $4, now())STRING
HIGHhindsight-api-slim/tests/test_mcp_extension.py0helper to get tools dict from mcp server (fastmcp 3.x compatible).STRING
HIGHhindsight-api-slim/tests/test_mcp_tools.py0helper to get tools dict from mcp server (fastmcp 3.x compatible).STRING
HIGHhindsight-api-slim/tests/test_mcp_routing.py0helper to get tools dict from mcp server (fastmcp 3.x compatible).STRING
HIGHhindsight-api-slim/tests/test_llama_parse_parser.py0%pdf-1.4 1 0 obj << /type /catalog /pages 2 0 r >> endobj 2 0 obj << /type /pages /kids [3 0 r] /count 1 >> endobj 3 0 oSTRING
HIGHhindsight-api-slim/tests/test_iris_parser.py0%pdf-1.4 1 0 obj << /type /catalog /pages 2 0 r >> endobj 2 0 obj << /type /pages /kids [3 0 r] /count 1 >> endobj 3 0 oSTRING
HIGHhindsight-api-slim/tests/test_file_retain.py0%pdf-1.4 1 0 obj << /type /catalog /pages 2 0 r >> endobj 2 0 obj << /type /pages /kids [3 0 r] /count 1 >> endobj 3 0 oSTRING
HIGH…lim/tests/test_consolidation_silent_requeue_failure.py0select count(*) from memory_units where bank_id = $1 and consolidated_at is null and fact_type in ('experience', 'world'STRING
HIGH…lim/tests/test_consolidation_reschedule_after_round.py0select count(*) from memory_units where bank_id = $1 and consolidated_at is null and fact_type in ('experience', 'world'STRING
HIGH…sight-api-slim/tests/test_consolidation_round_limit.py0select count(*) from memory_units where bank_id = $1 and consolidated_at is null and fact_type in ('experience', 'world'STRING
HIGHhindsight-api-slim/tests/test_consolidation.py0select count(*) from memory_units where bank_id = $1 and consolidated_at is null and fact_type in ('experience', 'world'STRING
HIGHhindsight-api-slim/tests/test_memory_curation.py0insert into memory_units ( id, bank_id, text, fact_type, event_date, source_memory_ids, proof_count, created_at, updatedSTRING
HIGH…t-api-slim/tests/test_bank_stats_cache_invalidation.py0insert into memory_units ( id, bank_id, text, fact_type, event_date, source_memory_ids, proof_count, created_at, updatedSTRING
HIGH…dsight-api-slim/tests/test_observation_invalidation.py0insert into memory_units ( id, bank_id, text, fact_type, event_date, source_memory_ids, proof_count, created_at, updatedSTRING
HIGHhindsight-api-slim/tests/test_litellm_sdk_embeddings.py0test that calling initialize() multiple times is safe.STRING
HIGH…sight-api-slim/tests/test_litellm_sdk_cross_encoder.py0test that calling initialize() multiple times is safe.STRING
HIGHhindsight-api-slim/tests/test_cohere_cross_encoder.py0test that calling initialize() multiple times is safe.STRING
HIGHhindsight-api-slim/tests/test_async_batch_retain.py0upsert a minimal bank row so fk on async_operations passes.STRING
HIGH…api-slim/tests/test_integrity_violation_not_retried.py0upsert a minimal bank row so fk on async_operations passes.STRING
HIGHhindsight-api-slim/tests/test_worker.py0upsert a minimal bank row so fk on async_operations passes.STRING
HIGH…t-api-slim/tests/test_bank_stats_cache_invalidation.py0insert into documents (id, bank_id, original_text, content_hash) values ($1, $2, $3, $4)STRING
HIGHhindsight-api-slim/tests/test_graph_maintenance.py0insert into documents (id, bank_id, original_text, content_hash) values ($1, $2, $3, $4)STRING
HIGHhindsight-api-slim/tests/test_graph_filtering.py0insert into documents (id, bank_id, original_text, content_hash) values ($1, $2, $3, $4)STRING
HIGHhindsight-api-slim/tests/test_graph_maintenance.py0insert into {fq_table("memory_units")} (id, bank_id, text, fact_type, event_date, created_at, updated_at) values ($1, $2STRING
HIGH…ight-api-slim/tests/test_repair_bank_vector_indexes.py0insert into {fq_table("memory_units")} (id, bank_id, text, fact_type, event_date, created_at, updated_at) values ($1, $2STRING
HIGH…ight-api-slim/tests/test_graph_maintenance_deadlock.py0insert into {fq_table("memory_units")} (id, bank_id, text, fact_type, event_date, created_at, updated_at) values ($1, $2STRING
HIGHhindsight-dev/benchmarks/perf/system_perf.py0insert into {fq_table("memory_units")} (id, bank_id, text, fact_type, event_date, created_at, updated_at) values ($1, $2STRING
HIGHhindsight-api-slim/tests/test_graph_maintenance.py0insert into {fq_table("entities")} (id, bank_id, canonical_name, first_seen, last_seen, mention_count) values ($1, $2, $STRING
HIGH…ight-api-slim/tests/test_graph_maintenance_deadlock.py0insert into {fq_table("entities")} (id, bank_id, canonical_name, first_seen, last_seen, mention_count) values ($1, $2, $STRING
HIGHhindsight-dev/benchmarks/perf/system_perf.py0insert into {fq_table("entities")} (id, bank_id, canonical_name, first_seen, last_seen, mention_count) values ($1, $2, $STRING
HIGHhindsight-api-slim/tests/test_worker.py0update {fq_table("async_operations")} set status = $2, updated_at = now(), completed_at = now() where operation_id = $1STRING
HIGHhindsight-api-slim/hindsight_api/worker/poller.py0update {fq_table("async_operations")} set status = $2, updated_at = now(), completed_at = now() where operation_id = $1STRING
HIGH…ndsight-api-slim/hindsight_api/engine/memory_engine.py0update {fq_table("async_operations")} set status = $2, updated_at = now(), completed_at = now() where operation_id = $1STRING
HIGHhindsight-api-slim/tests/test_multilingual.py0王芳在google北京办公室工作,她是一名高级产品经理。 之前她在microsoft和amazon工作过。 她负责管理youtube在中国市场的推广策略。STRING
HIGHhindsight-docs/docs/developer/multilingual.md0王芳在google北京办公室工作,她是一名高级产品经理。 之前她在microsoft和amazon工作过。 她负责管理youtube在中国市场的推广策略。STRING
HIGH…s/versioned_docs/version-0.7/developer/multilingual.md0王芳在google北京办公室工作,她是一名高级产品经理。 之前她在microsoft和amazon工作过。 她负责管理youtube在中国市场的推广策略。STRING
HIGH…s/versioned_docs/version-0.6/developer/multilingual.md0王芳在google北京办公室工作,她是一名高级产品经理。 之前她在microsoft和amazon工作过。 她负责管理youtube在中国市场的推广策略。STRING
993 more matches not shown…
Unused Imports1495 hits · 1282 pts
SeverityFileLineSnippetContext
LOWhindsight-all/hindsight/__init__.py60CODE
LOWhindsight-all/hindsight/__init__.py61CODE
LOWhindsight-all/hindsight/__init__.py62CODE
LOWhindsight-all/hindsight/__init__.py62CODE
LOWhindsight-all/hindsight/client_wrapper.py8CODE
LOWhindsight-all/hindsight/api_namespaces.py8CODE
LOWhindsight-all/hindsight/api_namespaces.py13CODE
LOWhindsight-all/tests/test_cleanup_timeout.py9CODE
LOWhindsight-all/tests/test_cleanup_timeout.py12CODE
LOWhindsight-api-slim/tests/test_agents_api.py7CODE
LOWhindsight-api-slim/tests/test_multilingual_bm25.py10CODE
LOWhindsight-api-slim/tests/test_op_cancellation.py12CODE
LOW…api-slim/tests/test_consolidation_scope_parallelism.py20CODE
LOWhindsight-api-slim/tests/test_google_cross_encoder.py16CODE
LOWhindsight-api-slim/tests/test_google_cross_encoder.py16CODE
LOWhindsight-api-slim/tests/test_batch_chunking.py4CODE
LOWhindsight-api-slim/tests/test_batch_chunking.py8CODE
LOW…i-slim/tests/test_bank_template_configurable_fields.py19CODE
LOWhindsight-api-slim/tests/test_migration_shape.py10CODE
LOWhindsight-api-slim/tests/test_bank_stats_cache.py7CODE
LOWhindsight-api-slim/tests/conftest.py26CODE
LOWhindsight-api-slim/tests/conftest.py39CODE
LOWhindsight-api-slim/tests/conftest.py52CODE
LOWhindsight-api-slim/tests/conftest.py53CODE
LOWhindsight-api-slim/tests/test_none_llm_provider.py13CODE
LOWhindsight-api-slim/tests/test_none_llm_provider.py20CODE
LOWhindsight-api-slim/tests/test_none_llm_provider.py20CODE
LOWhindsight-api-slim/tests/test_none_llm_provider.py22CODE
LOWhindsight-api-slim/tests/test_none_llm_provider.py25CODE
LOW…ht-api-slim/tests/test_graph_maintenance_queue_race.py23CODE
LOW…ndsight-api-slim/tests/test_oracle_http_integration.py12CODE
LOW…ndsight-api-slim/tests/test_oracle_http_integration.py12CODE
LOWhindsight-api-slim/tests/test_recall_budget_config.py17CODE
LOWhindsight-api-slim/tests/test_recall_budget_config.py17CODE
LOWhindsight-api-slim/tests/test_recall_budget_config.py17CODE
LOWhindsight-api-slim/tests/test_oracle_integration.py17CODE
LOWhindsight-api-slim/tests/test_tracing.py10CODE
LOWhindsight-api-slim/tests/test_tracing.py12CODE
LOWhindsight-api-slim/tests/test_load_large_batch.py14CODE
LOWhindsight-api-slim/tests/test_load_large_batch.py14CODE
LOWhindsight-api-slim/tests/test_load_large_batch.py19CODE
LOWhindsight-api-slim/tests/test_load_large_batch.py19CODE
LOWhindsight-api-slim/tests/test_load_large_batch.py19CODE
LOWhindsight-api-slim/tests/test_load_large_batch.py20CODE
LOWhindsight-api-slim/tests/test_load_large_batch.py21CODE
LOWhindsight-api-slim/tests/test_load_large_batch.py23CODE
LOWhindsight-api-slim/tests/test_load_large_batch.py23CODE
LOW…pi-slim/tests/test_experience_fact_type_passthrough.py18CODE
LOWhindsight-api-slim/tests/test_reflect_tracing.py12CODE
LOWhindsight-api-slim/tests/test_metrics.py6CODE
LOWhindsight-api-slim/tests/test_metrics.py6CODE
LOWhindsight-api-slim/tests/test_gemini_cache.py17CODE
LOWhindsight-api-slim/tests/test_delta_retain.py10CODE
LOWhindsight-api-slim/tests/test_nous_provider.py9CODE
LOW…ght-api-slim/tests/test_retain_orchestrator_mapping.py8CODE
LOWhindsight-api-slim/tests/test_document_tracking.py5CODE
LOWhindsight-api-slim/tests/test_document_tracking.py11CODE
LOW…i-slim/tests/test_enqueue_graph_maintenance_ordered.py26CODE
LOWhindsight-api-slim/tests/test_async_batch_retain.py10CODE
LOW…ndsight-api-slim/tests/test_provider_default_models.py5CODE
1435 more matches not shown…
Magic Placeholder Names204 hits · 1085 pts
SeverityFileLineSnippetContext
HIGHhindsight-all/README.md13 llm_api_key="your-api-key",CODE
HIGHhindsight-all/hindsight/server.py43 llm_api_key="your-api-key",STRING
HIGHhindsight-all/hindsight/server.py259 llm_api_key="your-api-key",STRING
HIGHhindsight-all/hindsight/__init__.py14 llm_api_key="your-api-key",STRING
HIGHhindsight-all/hindsight/__init__.py29 llm_api_key="your-api-key",STRING
HIGHhindsight-all/hindsight/embedded.py15 llm_api_key="your-api-key",STRING
HIGHhindsight-all/tests/README.md36 HINDSIGHT_API_LLM_API_KEY=your-api-keyCODE
HIGHdocker/test-image.sh96 echo "Set it with: export HINDSIGHT_API_LLM_API_KEY=your-api-key"CODE
HIGHdocker/docker-compose/pg_textsearch/docker-compose.yaml71 HINDSIGHT_API_LLM_API_KEY: ${OPENAI_API_KEY:-your-api-key}CODE
HIGHdocker/docker-compose/custom-models/docker-compose.yaml28 HINDSIGHT_API_LLM_API_KEY: ${OPENAI_API_KEY:-your-api-key}CODE
HIGHdocker/docker-compose/timescale/docker-compose.yaml83 HINDSIGHT_API_LLM_API_KEY: ${OPENAI_API_KEY:-your-api-key}CODE
HIGHdocker/docker-compose/alloydb/docker-compose.yaml68 HINDSIGHT_API_LLM_API_KEY: ${OPENAI_API_KEY:-your-api-key}CODE
HIGHdocker/docker-compose/pgroonga/docker-compose.yaml71 HINDSIGHT_API_LLM_API_KEY: ${OPENAI_API_KEY:-your-api-key}CODE
HIGHdocker/docker-compose/vchord/docker-compose.yaml73 HINDSIGHT_API_LLM_API_KEY: ${OPENAI_API_KEY:-your-api-key}CODE
HIGHdocker/docker-compose/pg_search/docker-compose.yaml75 HINDSIGHT_API_LLM_API_KEY: ${OPENAI_API_KEY:-your-api-key}CODE
HIGHhindsight-embed/hindsight_embed/cli.py223 print(" HINDSIGHT_API_LLM_API_KEY=<your-api-key>", file=sys.stderr)CODE
HIGHhindsight-all-slim/README.md13 llm_api_key="your-api-key",CODE
HIGH…ht-clients/python/hindsight_client/hindsight_client.py103 client = Hindsight(base_url="http://localhost:8888", api_key="your-api-key")STRING
HIGHhindsight-clients/typescript/src/index.ts14 * apiKey: 'your-api-key'COMMENT
HIGHhindsight-docs/docs/developer/configuration.md267export HINDSIGHT_API_LLM_API_KEY=your-api-keyCODE
HIGHhindsight-docs/docs/developer/configuration.md286export HINDSIGHT_API_LLM_API_KEY=your-api-keyCODE
HIGHhindsight-docs/docs/developer/configuration.md773export HINDSIGHT_API_EMBEDDINGS_ZEROENTROPY_API_KEY=your-api-keyCODE
HIGHhindsight-docs/docs/developer/configuration.md781export HINDSIGHT_API_EMBEDDINGS_COHERE_API_KEY=your-api-keyCODE
HIGHhindsight-docs/docs/developer/configuration.md946export HINDSIGHT_API_RERANKER_COHERE_API_KEY=your-api-keyCODE
HIGHhindsight-docs/docs/developer/configuration.md963export HINDSIGHT_API_RERANKER_COHERE_API_KEY=your-api-keyCODE
HIGHhindsight-docs/docs/developer/configuration.md969export HINDSIGHT_API_RERANKER_ZEROENTROPY_API_KEY=your-api-keyCODE
HIGHhindsight-docs/docs/developer/configuration.md975export HINDSIGHT_API_RERANKER_SILICONFLOW_API_KEY=your-api-keyCODE
HIGHhindsight-docs/docs/developer/configuration.md1412export HINDSIGHT_API_FILE_PARSER_LLAMA_PARSE_API_KEY=llx-your-api-keyCODE
HIGHhindsight-docs/docs/sdks/python.md45 # api_key="your-api-key", # Optional bearer tokenCOMMENT
HIGHhindsight-docs/docs/sdks/cli.md27hindsight configure --api-url http://localhost:8888 --api-key your-api-keyCODE
HIGHhindsight-docs/docs/sdks/cli.md31export HINDSIGHT_API_KEY=your-api-keyCODE
HIGHhindsight-docs/blog/2026-03-19-nemoclaw-memory.md76 --api-token <your-api-key> \CODE
HIGHhindsight-docs/blog/2026-03-19-nemoclaw-memory.md167 "hindsightApiToken": "<your-api-key>",CODE
HIGH…dsight-docs/blog/2026-03-30-llamaindex-agent-memory.md224 api_key="your-api-key", # or set HINDSIGHT_API_KEY env varCODE
HIGHhindsight-docs/blog/2026-03-24-version-0-4-20.md126 --api-token <your-api-key> \CODE
HIGHhindsight-docs/blog/2026-02-13-version-0-4-11.md55export HINDSIGHT_API_EMBEDDINGS_LITELLM_SDK_API_KEY=your-api-keyCODE
HIGH…dsight-docs/blog/2026-07-20-zcode-persistent-memory.md60hindsight-zcode install --api-url https://api.hindsight.vectorize.io --api-token your-api-keyCODE
HIGHhindsight-docs/blog/2026-03-04-mcp-agent-memory.md100 "Authorization": "Bearer YOUR_API_KEY"CODE
HIGHhindsight-docs/blog/2026-03-04-mcp-agent-memory.md112 --header "Authorization: Bearer YOUR_API_KEY"CODE
HIGH…ight-docs/blog/2026-03-25-strands-persistent-memory.md176 api_key="YOUR_API_KEY", # if auth is enabledCODE
HIGH…cs/blog/2026-07-30-github-copilot-persistent-memory.md44hindsight-copilot-cli install --api-url https://api.hindsight.vectorize.io --api-token your-api-keyCODE
HIGH…ght-docs/blog/2026-06-11-haystack-persistent-memory.md137 api_key="your-api-key",CODE
HIGHhindsight-docs/blog/2026-03-03-version-0-4-15.md59 api_key="your-api-key", # Or set HINDSIGHT_API_KEY env varCODE
HIGH…ndsight-docs/blog/2026-04-09-agno-persistent-memory.md219 api_key="your-api-key",CODE
HIGHhindsight-docs/docs-integrations/smolagents.md138 api_key="your-api-key", # Or set HINDSIGHT_API_KEY env varCODE
HIGHhindsight-docs/docs-integrations/copilot-cli.md22hindsight-copilot-cli install --api-url https://api.hindsight.vectorize.io --api-token your-api-keyCODE
HIGHhindsight-docs/docs-integrations/litellm.md84 api_key="your-api-key", # API key for Hindsight authenticationCODE
HIGHhindsight-docs/docs-integrations/pydantic-ai.md113 api_key="your-api-key", # Or set HINDSIGHT_API_KEY env varCODE
HIGHhindsight-docs/docs-integrations/composio.md114 api_key="your-api-key", # or set HINDSIGHT_API_KEY env varCODE
HIGHhindsight-docs/docs-integrations/vapi.md131export HINDSIGHT_API_LLM_API_KEY=your-api-keyCODE
HIGHhindsight-docs/docs-integrations/openai-agents.md125 api_key="your-api-key", # Or set HINDSIGHT_API_KEY env varCODE
HIGHhindsight-docs/docs-integrations/langgraph.md158 api_key="your-api-key", # Or set HINDSIGHT_API_KEY env varCODE
HIGHhindsight-docs/docs-integrations/nemoclaw.md24 --api-token <your-api-key> \CODE
HIGHhindsight-docs/docs-integrations/nemoclaw.md114 "hindsightApiToken": "<your-api-key>",CODE
HIGHhindsight-docs/docs-integrations/strands.md151 api_key="your-api-key", # Or set HINDSIGHT_API_KEY env varCODE
HIGHhindsight-docs/docs-integrations/zcode.md22hindsight-zcode install --api-url https://api.hindsight.vectorize.io --api-token your-api-keyCODE
HIGHhindsight-docs/docs-integrations/cursor-cli.md24hindsight-cursor-cli install --api-url https://api.hindsight.vectorize.io --api-token your-api-keyCODE
HIGHhindsight-docs/docs-integrations/roo-code.md127export HINDSIGHT_API_LLM_API_KEY=your-api-keyCODE
HIGHhindsight-docs/docs-integrations/autogen.md103 api_key="your-api-key", # Or set HINDSIGHT_API_KEY env varCODE
HIGHhindsight-docs/docs-integrations/agno.md131 api_key="your-api-key", # Or set HINDSIGHT_API_KEY env varCODE
144 more matches not shown…
Excessive Try-Catch Wrapping889 hits · 810 pts
SeverityFileLineSnippetContext
LOWhindsight-all/hindsight/server.py141 except Exception as e:CODE
LOWhindsight-all/hindsight/embedded.py156 except Exception:CODE
LOWhindsight-all/hindsight/embedded.py172 except Exception:CODE
LOWhindsight-all/hindsight/embedded.py236 except Exception:CODE
LOWhindsight-all/tests/test_embedded_namespaces.py31 except Exception:CODE
LOWhindsight-all/tests/test_embedded_namespaces.py46 except Exception:CODE
LOWhindsight-all/tests/test_embedded_namespaces.py60 except Exception:CODE
LOWhindsight-all/tests/test_embedded_namespaces.py74 except Exception:CODE
LOWhindsight-all/tests/test_embedded_namespaces.py89 except Exception:CODE
LOWhindsight-all/tests/test_embedded_namespaces.py94 except Exception:CODE
LOWhindsight-all/tests/test_embedded_namespaces.py99 except Exception:CODE
LOWhindsight-api-slim/tests/conftest.py78 except Exception:CODE
LOWhindsight-api-slim/tests/conftest.py280 except Exception:CODE
LOWhindsight-api-slim/tests/test_none_llm_provider.py55 except Exception:CODE
LOW…ndsight-api-slim/tests/test_oracle_http_integration.py39 except Exception as e:CODE
LOW…pi-slim/tests/test_retain_same_document_concurrency.py110 except Exception:CODE
LOW…pi-slim/tests/test_retain_same_document_concurrency.py170 except Exception as e: # noqa: BLE001 — we want to classify failuresCODE
LOW…ndsight-api-slim/tests/test_fact_extraction_quality.py550 except Exception as e:STRING
LOWhindsight-api-slim/tests/test_oracle_integration.py46 except Exception as e:CODE
LOWhindsight-api-slim/tests/test_load_large_batch.py121 except Exception:CODE
LOWhindsight-api-slim/tests/test_load_large_batch.py232 except Exception as e:CODE
LOW…ight-api-slim/tests/test_tracing_spans_verification.py113 except Exception:CODE
LOW…lim/tests/test_consolidation_silent_requeue_failure.py8 except Exception as e:STRING
LOWhindsight-api-slim/tests/test_extensions.py308 except Exception:CODE
LOWhindsight-api-slim/tests/test_extensions.py316 except Exception:CODE
LOWhindsight-api-slim/tests/test_extensions.py612 except Exception:CODE
LOWhindsight-api-slim/tests/test_temporal_ranges.py21 except Exception:CODE
LOW…-api-slim/tests/test_consolidation_failure_recovery.py47 except Exception:CODE
LOWhindsight-api-slim/tests/test_batch_api_integration.py237 except Exception as e:CODE
LOW…dsight-api-slim/tests/test_migrations_thread_safety.py34 except Exception as exc: # pragma: no cover - diagnostic pathCODE
MEDIUM…dsight-api-slim/tests/test_migrations_thread_safety.py26def run_in_thread(schema):CODE
LOWhindsight-api-slim/tests/test_read_backend.py45 except Exception:CODE
LOWhindsight-api-slim/tests/test_read_backend.py66 except Exception:CODE
LOW…ight-api-slim/tests/test_custom_embedding_dimension.py579 except Exception:CODE
LOW…ight-api-slim/tests/test_custom_embedding_dimension.py755 except Exception:CODE
LOW…ight-api-slim/tests/test_custom_embedding_dimension.py88 except Exception:CODE
LOW…ight-api-slim/tests/test_custom_embedding_dimension.py108 except Exception as e:CODE
LOW…ight-api-slim/tests/test_custom_embedding_dimension.py137 except Exception as e:CODE
LOW…ight-api-slim/tests/test_custom_embedding_dimension.py517 except Exception:CODE
LOW…ight-api-slim/tests/test_oracle_backend_integration.py118 except Exception:CODE
LOW…ight-api-slim/tests/test_oracle_backend_integration.py128 except Exception:CODE
LOW…ight-api-slim/tests/test_oracle_backend_integration.py133 except Exception:CODE
LOWhindsight-api-slim/tests/test_batch_api.py198 except Exception:CODE
LOWhindsight-api-slim/tests/test_batch_api.py559 except Exception:STRING
LOWhindsight-api-slim/tests/test_batch_api.py658 except Exception:STRING
LOWhindsight-api-slim/tests/test_batch_api.py768 except Exception:STRING
LOWhindsight-api-slim/tests/test_batch_api.py825 except Exception:CODE
LOWhindsight-api-slim/tests/test_retain.py3281 except Exception:CODE
LOWhindsight-api-slim/tests/test_multilingual.py109 except Exception:STRING
LOWhindsight-api-slim/tests/test_multilingual.py293 except Exception:STRING
LOWhindsight-api-slim/tests/llm_judge.py119 except Exception as e: # transient provider error — retry before giving upCODE
LOWhindsight-api-slim/tests/test_bank_stats.py333 except Exception:CODE
LOWhindsight-api-slim/tests/e2e_oracle_smoke.py262 except Exception as cleanup_err:CODE
LOWhindsight-api-slim/tests/e2e_oracle_smoke.py267 except Exception:CODE
LOWhindsight-api-slim/tests/e2e_oracle_smoke.py271 except Exception:CODE
LOWhindsight-api-slim/tests/e2e_oracle_smoke.py277 except Exception:CODE
LOWhindsight-api-slim/tests/e2e_oracle_smoke.py291 except Exception as exc:CODE
LOWhindsight-api-slim/tests/test_schema_isolation.py212 except Exception as e:CODE
LOWhindsight-api-slim/tests/test_schema_isolation.py370 except Exception as e:STRING
LOW…ght-api-slim/tests/test_verify_connection_soft_fail.py40 except Exception:CODE
829 more matches not shown…
Structural Annotation Overuse338 hits · 526 pts
SeverityFileLineSnippetContext
LOWhindsight-all/tests/test_server_integration.py76 # Step 1: Create a memory bank with background informationCOMMENT
LOWhindsight-all/tests/test_server_integration.py85 # Step 2: Store some memories about user preferencesCOMMENT
LOWhindsight-all/tests/test_server_integration.py123 # Step 3: Recall memories based on a queryCOMMENT
LOWhindsight-all/tests/test_server_integration.py140 # Step 4: Recall memories about machine learningCOMMENT
LOWhindsight-all/tests/test_server_integration.py155 # Step 5: Reflect (generate contextual answer based on memories)COMMENT
LOWhindsight-all/tests/test_server_integration.py172 # Step 6: Another reflection with different contextCOMMENT
LOWhindsight-all/tests/test_embedded.py117 # Step 1: Create a memory bankCOMMENT
LOWhindsight-all/tests/test_embedded.py126 # Step 2: Store memories (single)COMMENT
LOWhindsight-all/tests/test_embedded.py136 # Step 3: Store batch memoriesCOMMENT
LOWhindsight-all/tests/test_embedded.py151 # Step 4: Recall memoriesCOMMENT
LOWhindsight-all/tests/test_embedded.py160 # Step 5: Reflect on memoriesCOMMENT
LOWhindsight-all/tests/test_embedded.py177 # Step 6: List memoriesCOMMENT
LOW…_api/alembic/versions/h3c4d5e6f7g8_mental_models_v4.py39 # Step 1: Delete observation memory_units (cascades to unit_entities links)COMMENT
LOW…_api/alembic/versions/h3c4d5e6f7g8_mental_models_v4.py43 # Step 2: Drop observation-specific index (if it exists)COMMENT
LOW…_api/alembic/versions/h3c4d5e6f7g8_mental_models_v4.py46 # Step 3: Add mission column to banks (replacing background)COMMENT
LOW…_api/alembic/versions/h3c4d5e6f7g8_mental_models_v4.py69 # Step 4: Create mental_models table with final v4 schema (if not exists)STRING
LOW…_api/alembic/versions/h3c4d5e6f7g8_mental_models_v4.py110 # Step 5: Create indexes for efficient queries (if not exist)STRING
LOW…ersions/w8r9s0t1u2v3_fix_mental_models_pk_isolation.py58 # WARNING: This downgrade will fail if there are duplicate IDs across banksCOMMENT
LOW…ndsight-api-slim/hindsight_api/engine/memory_engine.py4758 # Step 1: Generate query embedding (for semantic search)COMMENT
LOW…ndsight-api-slim/hindsight_api/engine/memory_engine.py4786 # Step 2: Optimized parallel retrieval using batched queriesCOMMENT
LOW…ndsight-api-slim/hindsight_api/engine/memory_engine.py5043 # Step 3: Merge ranked lists. RRF by default; interleave (round-robin) whenCOMMENT
LOW…ndsight-api-slim/hindsight_api/engine/memory_engine.py5084 # Step 4: Rerank using cross-encoder (MergedCandidate -> ScoredResult)COMMENT
LOW…ndsight-api-slim/hindsight_api/engine/memory_engine.py5303 # Step 5: Truncate to thinking_budget * 2 for token filteringCOMMENT
LOW…ndsight-api-slim/hindsight_api/engine/memory_engine.py5489 # Step 6: Token budget filteringSTRING
LOWhindsight-api-slim/hindsight_api/engine/parsers/iris.py66 # Step 1: Request a presigned upload URLCOMMENT
LOWhindsight-api-slim/hindsight_api/engine/parsers/iris.py77 # Step 2: Upload the file bytes to the presigned URL (no auth header)COMMENT
LOWhindsight-api-slim/hindsight_api/engine/parsers/iris.py86 # Step 3: Start extractionCOMMENT
LOWhindsight-api-slim/hindsight_api/engine/parsers/iris.py95 # Step 4: Poll until ready or timeoutCOMMENT
LOW…t-api-slim/hindsight_api/engine/parsers/llama_parse.py62 # Step 1: Upload file and start parse jobCOMMENT
LOW…t-api-slim/hindsight_api/engine/parsers/llama_parse.py72 # Step 2: Poll job status until SUCCESS or ERRORCOMMENT
LOW…t-api-slim/hindsight_api/engine/parsers/llama_parse.py94 # Step 3: Fetch the markdown resultCOMMENT
LOW…ight-api-slim/hindsight_api/engine/search/retrieval.py881 # Step 1: Extract temporal constraint first (CPU work, no DB)STRING
LOW…ight-api-slim/hindsight_api/engine/search/retrieval.py890 # Step 2: Run semantic + BM25 + temporal combined in ONE connection!STRING
LOW…ight-api-slim/hindsight_api/engine/search/retrieval.py942 # Step 3: Run graph retrieval for each fact type in parallelSTRING
LOW…pi-slim/hindsight_api/engine/retain/fact_extraction.py2128 # Step 4: Retrieve resultsSTRING
LOW…pi-slim/hindsight_api/engine/retain/fact_extraction.py2134 # Step 5: Parse results into facts (same as sync mode)STRING
LOW…pi-slim/hindsight_api/engine/retain/fact_extraction.py2439 # Step 7: Add temporal offsetsSTRING
LOW…pi-slim/hindsight_api/engine/retain/fact_extraction.py2442 # Step 8: Auto-tag facts from label groups with tag=TrueSTRING
LOW…pi-slim/hindsight_api/engine/retain/fact_extraction.py2563 # Step 2: Wait for all fact extractions to complete.STRING
LOW…pi-slim/hindsight_api/engine/retain/fact_extraction.py2569 # Step 3: Flatten and convert to typed objectsSTRING
LOW…pi-slim/hindsight_api/engine/retain/fact_extraction.py2641 # Step 4: For verbatim mode, collapse to one fact per chunk with original textSTRING
LOW…pi-slim/hindsight_api/engine/retain/fact_extraction.py2645 # Step 5: Add time offsets to preserve ordering within each contentSTRING
LOW…pi-slim/hindsight_api/engine/retain/fact_extraction.py2648 # Step 6: Auto-tag facts from label groups with tag=TrueSTRING
LOW…pi-slim/hindsight_api/engine/retain/fact_extraction.py2023 # Step 1: Chunk all contents and build batch requests (skip if resuming)STRING
LOW…pi-slim/hindsight_api/engine/retain/fact_extraction.py2065 # Step 2: Submit batch (skip if resuming)STRING
LOW…pi-slim/hindsight_api/engine/retain/fact_extraction.py2102 # Step 3: Poll until completeSTRING
LOW…pi-slim/hindsight_api/engine/retain/fact_extraction.py2399 # Step 6: Convert to ExtractedFact objects with proper chunk mappingSTRING
LOW…pi-slim/hindsight_api/engine/retain/fact_extraction.py2548 # Step 1: Create parallel fact extraction tasksSTRING
LOW.github/workflows/release.yml424 # # Step 1: Build for local testing (single platform, no push)COMMENT
LOW.github/workflows/release.yml438 # # Step 2: Test the image before pushing anythingCOMMENT
LOW…dsight-docs/blog/2026-03-30-llamaindex-agent-memory.md76## Step 1: Start HindsightCOMMENT
LOW…dsight-docs/blog/2026-03-30-llamaindex-agent-memory.md88## Step 2: Install the IntegrationCOMMENT
LOW…dsight-docs/blog/2026-03-30-llamaindex-agent-memory.md96## Step 3: Create the AgentCOMMENT
LOW…2026-07-28-migrate-agent-memory-off-vector-database.md27## Step 1: stand up HindsightCOMMENT
LOW…2026-07-28-migrate-agent-memory-off-vector-database.md51## Step 2: rethink the unit you are movingCOMMENT
LOW…2026-07-28-migrate-agent-memory-off-vector-database.md68## Step 3: export the text, not the vectorsCOMMENT
LOW…2026-07-28-migrate-agent-memory-off-vector-database.md84## Step 4: retain in batchesCOMMENT
LOW…2026-07-28-migrate-agent-memory-off-vector-database.md110## Step 5: verify, then decommissionCOMMENT
LOW…ight-docs/blog/2026-03-10-run-hindsight-with-ollama.md67### Step 1: Install OllamaCOMMENT
LOW…ight-docs/blog/2026-03-10-run-hindsight-with-ollama.md89### Step 2: Install HindsightCOMMENT
278 more matches not shown…
Self-Referential Comments143 hits · 422 pts
SeverityFileLineSnippetContext
MEDIUMhindsight-all/hindsight/embedded.py310 # Create a bankSTRING
MEDIUMhindsight-all/hindsight/embedded.py334 # Create a mental modelSTRING
MEDIUMhindsight-all/hindsight/embedded.py362 # Create a directiveSTRING
MEDIUMhindsight-all/tests/test_server_integration.py247 # Create a couple of banks with random IDs to allow parallel test executionCOMMENT
MEDIUMhindsight-all/tests/test_embedded_namespaces.py114 # Create a new mock client each time (simulating daemon restart)COMMENT
MEDIUMhindsight-api-slim/tests/test_batch_chunking.py275 # Create a large batch that should trigger chunkingCOMMENT
MEDIUMhindsight-api-slim/tests/test_batch_chunking.py301 # Create a small batch that should NOT trigger chunkingCOMMENT
MEDIUMhindsight-api-slim/tests/test_admin_backup_restore.py243 # Create a bankCOMMENT
MEDIUMhindsight-api-slim/tests/test_admin_backup_restore.py249 # Create a memory unit with all column typesCOMMENT
MEDIUMhindsight-api-slim/tests/test_admin_backup_restore.py117 # Create a bankCOMMENT
MEDIUMhindsight-api-slim/tests/test_admin_backup_restore.py263 # Create an entityCOMMENT
MEDIUMhindsight-api-slim/tests/test_document_transfer.py941 # Create a real observation over those source facts. The helper self-acquires aCOMMENT
MEDIUMhindsight-api-slim/tests/test_mcp_endpoint_routing.py30 # Create an HTTPX client that routes to our ASGI appCOMMENT
MEDIUMhindsight-api-slim/tests/test_metrics.py292 # Create a class that inherits but doesn't implementCOMMENT
MEDIUMhindsight-api-slim/tests/test_link_utils.py183 # Create a slightly similar embedding (add noise)COMMENT
MEDIUMhindsight-api-slim/tests/test_async_batch_retain.py122 # Create a large batch that exceeds the threshold (10k tokens default)COMMENT
MEDIUMhindsight-api-slim/tests/test_async_batch_retain.py434 # Create a batch that's just under the thresholdCOMMENT
MEDIUMhindsight-api-slim/tests/test_async_batch_retain.py961 # Create a parent operation (is_parent=True)COMMENT
MEDIUMhindsight-api-slim/tests/test_chunking.py43 # Create a text with 10 sentences of ~100 chars eachCOMMENT
MEDIUMhindsight-api-slim/tests/test_chunking.py64 # Create a 64k character textCOMMENT
MEDIUMhindsight-api-slim/tests/test_audit_log.py47 # Create the bank firstCOMMENT
MEDIUMhindsight-api-slim/tests/test_consolidation.py1151 # Create the bankCOMMENT
MEDIUMhindsight-api-slim/tests/test_consolidation.py1154 # Create a specific date in the past for testingCOMMENT
MEDIUMhindsight-api-slim/tests/test_consolidation.py56 # Create the bankCOMMENT
MEDIUMhindsight-api-slim/tests/test_consolidation.py91 # Create the bankCOMMENT
MEDIUMhindsight-api-slim/tests/test_consolidation.py133 # Create the bankCOMMENT
MEDIUMhindsight-api-slim/tests/test_consolidation.py154 # Create the bankCOMMENT
MEDIUMhindsight-api-slim/tests/test_consolidation.py200 # Create the bankCOMMENT
MEDIUMhindsight-api-slim/tests/test_consolidation.py245 # Create the bankCOMMENT
MEDIUMhindsight-api-slim/tests/test_consolidation.py282 # Create the bankCOMMENT
MEDIUMhindsight-api-slim/tests/test_consolidation.py348 # Create the bankCOMMENT
MEDIUMhindsight-api-slim/tests/test_consolidation.py434 # Create the bankCOMMENT
MEDIUMhindsight-api-slim/tests/test_consolidation.py573 # Create the bankCOMMENT
MEDIUMhindsight-api-slim/tests/test_consolidation.py609 # Create the bankCOMMENT
MEDIUMhindsight-api-slim/tests/test_consolidation.py645 # Create the bankCOMMENT
MEDIUMhindsight-api-slim/tests/test_consolidation.py682 # Create the bankCOMMENT
MEDIUMhindsight-api-slim/tests/test_consolidation.py756 # Create the bankCOMMENT
MEDIUMhindsight-api-slim/tests/test_consolidation.py819 # Create the bankCOMMENT
MEDIUMhindsight-api-slim/tests/test_consolidation.py890 # Create the bankCOMMENT
MEDIUMhindsight-api-slim/tests/test_consolidation.py956 # Create the bankCOMMENT
MEDIUMhindsight-api-slim/tests/test_consolidation.py998 # Create the bankCOMMENT
MEDIUMhindsight-api-slim/tests/test_consolidation.py1044 # Create the bankCOMMENT
MEDIUMhindsight-api-slim/tests/test_consolidation.py1088 # Create the bankCOMMENT
MEDIUMhindsight-api-slim/tests/test_consolidation.py1233 # Create the bankCOMMENT
MEDIUMhindsight-api-slim/tests/test_consolidation.py1364 # Create the bankCOMMENT
MEDIUMhindsight-api-slim/tests/test_consolidation.py1429 # Create the bankCOMMENT
MEDIUMhindsight-api-slim/tests/test_consolidation.py1511 # Create the bankCOMMENT
MEDIUMhindsight-api-slim/tests/test_consolidation.py1532 # Create a mental model about John (higher quality, user-curated)COMMENT
MEDIUMhindsight-api-slim/tests/test_consolidation.py1595 # Create the bankCOMMENT
MEDIUMhindsight-api-slim/tests/test_consolidation.py1648 # Create the bankCOMMENT
MEDIUMhindsight-api-slim/tests/test_consolidation.py1712 # Create the bankCOMMENT
MEDIUMhindsight-api-slim/tests/test_consolidation.py1715 # Create a mental model with refresh_after_consolidation trigger enabledCOMMENT
MEDIUMhindsight-api-slim/tests/test_consolidation.py1793 # Create the bankCOMMENT
MEDIUMhindsight-api-slim/tests/test_consolidation.py1796 # Create a mental model (default trigger is refresh_after_consolidation: false)COMMENT
MEDIUMhindsight-api-slim/tests/test_consolidation.py1872 # Create the bankCOMMENT
MEDIUMhindsight-api-slim/tests/test_mental_models.py1650 # Create a directiveCOMMENT
MEDIUMhindsight-api-slim/tests/test_mental_models.py1658 # Create a concept mental model to refreshCOMMENT
MEDIUMhindsight-api-slim/tests/test_mental_models.py83 # Create a directiveCOMMENT
MEDIUMhindsight-api-slim/tests/test_mental_models.py252 # Create a directive with tagsCOMMENT
MEDIUMhindsight-api-slim/tests/test_mental_models.py473 # Create a directive to always respond in FrenchCOMMENT
83 more matches not shown…
Docstring Block Structure71 hits · 355 pts
SeverityFileLineSnippetContext
HIGHhindsight-all/hindsight/server.py152 Start the server in a background thread. Args: timeout: Maximum time to wait for server toSTRING
HIGHhindsight-api-slim/hindsight_api/config.py104 Convert environment variable format to Python field name format. Examples: HINDSIGHT_API_LLM_PROVIDER STRING
HIGHhindsight-api-slim/hindsight_api/config_resolver.py343 Normalize and validate bank configuration overrides. Args: bank_id: Bank identifier STRING
HIGHhindsight-api-slim/hindsight_api/mcp_tools.py122Parse an ISO format timestamp string. Args: timestamp: ISO format timestamp (e.g., '2024-01-15T10:30:00Z') STRING
HIGHhindsight-api-slim/hindsight_api/extensions/tenant.py74 Authenticate the action context and return tenant context. Args: context: The action conteSTRING
HIGHhindsight-api-slim/hindsight_api/extensions/tenant.py126 Get set of config fields that this tenant/bank is allowed to modify. This method controls which configSTRING
HIGHhindsight-api-slim/hindsight_api/extensions/tenant.py195 Authenticate MCP requests. By default, this calls authenticate(). Override this method to provide STRING
HIGH…i-slim/hindsight_api/extensions/operation_validator.py579 Validate a retain operation before execution. Called before the retain operation is processed. Return STRING
HIGH…i-slim/hindsight_api/extensions/operation_validator.py600 Validate a recall operation before execution. Called before the recall operation is processed. Return STRING
HIGH…i-slim/hindsight_api/extensions/operation_validator.py628 Validate a reflect operation before execution. Called before the reflect operation is processed. ReturSTRING
HIGHhindsight-api-slim/hindsight_api/extensions/loader.py30 Load an extension from environment variable configuration. The extension class is specified via {env_prefix}_{STRING
HIGH…im/hindsight_api/extensions/builtin/supabase_tenant.py274 Validate a Supabase JWT and return tenant context. Uses local JWKS verification when available (no netSTRING
HIGHhindsight-api-slim/hindsight_api/engine/interface.py605 Cancel a pending async operation. Args: bank_id: The memory bank ID. operationSTRING
HIGHhindsight-api-slim/hindsight_api/engine/interface.py629 Delete a terminal async operation record. Args: bank_id: The memory bank ID. oSTRING
HIGH…ndsight-api-slim/hindsight_api/engine/llm_interface.py116 Make an LLM API call with retry logic. Args: messages: List of message dicts with 'role' aSTRING
HIGH…ndsight-api-slim/hindsight_api/engine/llm_interface.py275 Submit a batch of requests to the provider's batch API. Args: requests: List of request diSTRING
HIGH…ndsight-api-slim/hindsight_api/engine/llm_interface.py292 Get the status of a batch job. Args: batch_id: Batch identifier returned from submit_batchSTRING
HIGH…ndsight-api-slim/hindsight_api/engine/llm_interface.py307 Retrieve completed batch results. Args: batch_id: Batch identifier returned from submit_baSTRING
HIGHhindsight-api-slim/hindsight_api/engine/llm_wrapper.py180 Robustly parse JSON returned by an LLM. Handles common LLM output quirks: 1. Markdown code fences (```jsonSTRING
HIGHhindsight-api-slim/hindsight_api/engine/llm_wrapper.py853 Make an LLM API call with retry logic. Args: messages: List of message dicts with 'role' aSTRING
HIGH…ndsight-api-slim/hindsight_api/engine/memory_engine.py1473 Run validation if an operation validator is configured. Args: validation_coro: Coroutine tSTRING
HIGH…ndsight-api-slim/hindsight_api/engine/memory_engine.py1496 Authenticate tenant and set schema in context variable. The schema is stored in a contextvar for asyncSTRING
HIGH…ndsight-api-slim/hindsight_api/engine/memory_engine.py3492 Format a datetime into a readable string for temporal matching. Examples: - June 2024 STRING
HIGH…ndsight-api-slim/hindsight_api/engine/memory_engine.py6467 Delete a single memory unit and all its associated links. Due to CASCADE DELETE constraints, this willSTRING
HIGH…ndsight-api-slim/hindsight_api/engine/memory_engine.py6616Bulk delete memory units, keeping the same lifecycle as the single-id path. Callers pass a list of ``unit_ids``STRING
HIGH…ndsight-api-slim/hindsight_api/engine/memory_engine.py8327 Get a single memory unit by ID. Args: bank_id: Bank ID memory_id: Memory unit STRING
HIGHhindsight-api-slim/hindsight_api/engine/db_utils.py72 Execute an async function with exponential backoff retry. Args: func: Async function to execute STRING
HIGH…ight-api-slim/hindsight_api/engine/parsers/__init__.py55 Get parser by name or auto-detect. Args: name: Parser name (e.g., "markitdown") or None foSTRING
HIGH…ight-api-slim/hindsight_api/engine/parsers/__init__.py90 Try each parser in order, falling back on failure or empty content. Moves to the next parser if the cuSTRING
HIGHhindsight-api-slim/hindsight_api/engine/parsers/base.py17 Parse file to markdown. Args: file_data: Raw file bytes filename: Original filSTRING
HIGH…indsight_api/engine/providers/openai_compatible_llm.py773 Make an LLM API call with retry logic. Args: messages: List of message dicts with 'role' aSTRING
HIGH…indsight_api/engine/providers/openai_compatible_llm.py1597 Submit a batch of requests to OpenAI/Groq Batch API. Args: requests: List of request dictsSTRING
HIGH…slim/hindsight_api/engine/providers/claude_code_llm.py166 Make an LLM API call with retry logic. Args: messages: List of message dicts with 'role' aSTRING
HIGH…i-slim/hindsight_api/engine/providers/anthropic_llm.py177 Make an LLM API call with retry logic. Args: messages: List of message dicts with 'role' aSTRING
HIGH…sight-api-slim/hindsight_api/engine/transfer/export.py178Export documents from ``bank_id`` into an in-memory ZIP archive. Args: backend: Database backend (provides STRING
HIGH…ight-api-slim/hindsight_api/engine/storage/__init__.py18 Create file storage backend based on configuration. Args: storage_type: "native" (PostgreSQL BYTEA) orSTRING
HIGHhindsight-api-slim/hindsight_api/engine/storage/base.py31 Retrieve file by storage key. Args: key: Storage key Returns: File daSTRING
HIGHhindsight-api-slim/hindsight_api/engine/db/__init__.py56Factory: create a DatabaseBackend by name. Args: backend_type: One of "postgresql" or "oracle". ReturnSTRING
HIGHhindsight-api-slim/hindsight_api/engine/db/__init__.py74Factory: the DataAccessOps for a backend name. Returns a per-dialect SINGLETON: ``DataAccessOps`` is stateless (it STRING
HIGH…-api-slim/hindsight_api/engine/retain/entity_labels.py52 Parse raw entity labels config into EntityLabelsConfig. Accepts: - None → returns None - list → list oSTRING
HIGH…t-api-slim/hindsight_api/engine/retain/orchestrator.py229 Parse a datetime value that could be either a datetime object or an ISO string. This handles datetime values fSTRING
HIGHhindsight-api-slim/hindsight_api/engine/sql/__init__.py22Factory: create a SQLDialect by backend name. Args: backend_type: One of "postgresql" or "oracle". RetSTRING
HIGHhindsight-embed/hindsight_embed/embed_manager.py31 Get the URL for the daemon serving this profile. Args: profile: Profile name RetuSTRING
HIGHhindsight-embed/hindsight_embed/daemon_embed_manager.py138 Get the URL for the daemon serving this profile. Args: profile: Profile name RetuSTRING
HIGH…-integrations/llamaindex/hindsight_llamaindex/tools.py369Create Hindsight memory tools for a LlamaIndex agent. Convenience factory that creates a ``HindsightToolSpec`` and STRING
HIGHhindsight-integrations/crewai/hindsight_crewai/tools.py92Execute the reflect tool. Args: query: The question or topic to reflect on. Returns: STRING
HIGH…dsight-integrations/crewai/hindsight_crewai/storage.py213Search memories in Hindsight via recall. Called by CrewAI automatically at the start of each task. ArgSTRING
HIGH…-integrations/smolagents/hindsight_smolagents/tools.py319Pre-recall memories for injection into agent system prompt. Performs a sync recall at construction time and returnsSTRING
HIGH…ght-integrations/agentcore/hindsight_agentcore/bank.py79Default bank resolver: one bank per (tenant, user, agent) tuple. Output format: With tenant: tenant:{tenSTRING
HIGH…grations/superagent/hindsight_superagent/middleware.py263Store information to memory after applying safety checks. If guard is enabled, the content is checked for prompSTRING
HIGH…grations/superagent/hindsight_superagent/middleware.py317Store a batch of memories, applying safety checks to each item. Each item is a dict matching the shape acceptedSTRING
HIGH…grations/superagent/hindsight_superagent/middleware.py407Search memory after guarding the query, optionally redacting results. Args: query: Search query. STRING
HIGH…grations/superagent/hindsight_superagent/middleware.py463Synthesize an answer from memory after guarding the query. Args: query: Reflection query. STRING
HIGH…ntegrations/pydantic-ai/hindsight_pydantic_ai/tools.py68Create Hindsight memory tools for a Pydantic AI agent. Returns a list of ``Tool`` instances that can be passed direSTRING
HIGH…ntegrations/pydantic-ai/hindsight_pydantic_ai/tools.py196Create an instructions function that auto-injects relevant memories. Returns an async callable suitable for use witSTRING
HIGH…s/claude-agent-sdk/hindsight_claude_agent_sdk/hooks.py123Create Claude Agent SDK hooks for automatic memory operations. Returns a dict suitable for ``ClaudeAgentOptions(hooSTRING
HIGH…s/claude-agent-sdk/hindsight_claude_agent_sdk/tools.py57Create Hindsight memory tools as Claude Agent SDK ``SdkMcpTool`` instances. Returns a list of tools that can be wraSTRING
HIGHhindsight-integrations/ag2/hindsight_ag2/tools.py49Create Hindsight memory tools for AG2 agents. Returns a list of plain Python functions compatible with AG2's ``STRING
HIGH…dsight-integrations/strands/hindsight_strands/tools.py119Create Hindsight memory tools for a Strands agent. Returns a list of ``@tool``-decorated functions that can be passSTRING
HIGH…dsight-integrations/strands/hindsight_strands/tools.py268Pre-recall memories for injection into agent system prompt. Performs a sync recall and returns a formatted string oSTRING
11 more matches not shown…
Modern Structural Boilerplate233 hits · 229 pts
SeverityFileLineSnippetContext
LOWhindsight-all/hindsight/server.py20logger = logging.getLogger(__name__)CODE
LOWhindsight-all/hindsight/__init__.py64__all__ = [CODE
LOWhindsight-all/hindsight/embedded.py45logger = logging.getLogger(__name__)CODE
LOWhindsight-api-slim/tests/test_file_storage_s3.py22logger = logging.getLogger(__name__)CODE
LOWhindsight-api-slim/tests/test_memory_defense.py448async def _set_policy(api_client, bank: str, updates: dict) -> None:CODE
LOW…ndsight-api-slim/tests/test_oracle_http_integration.py23logger = logging.getLogger(__name__)CODE
LOW…pi-slim/tests/test_retain_same_document_concurrency.py40logger = logging.getLogger(__name__)CODE
LOWhindsight-api-slim/tests/test_oracle_integration.py24logger = logging.getLogger(__name__)CODE
LOWhindsight-api-slim/tests/test_load_large_batch.py26logger = logging.getLogger(__name__)CODE
LOWhindsight-api-slim/tests/test_delta_retain.py21logger = logging.getLogger(__name__)CODE
LOWhindsight-api-slim/tests/test_retain_append_mode.py13logger = logging.getLogger(__name__)CODE
LOWhindsight-api-slim/tests/test_batch_api_integration.py29logger = logging.getLogger(__name__)CODE
LOWhindsight-api-slim/tests/test_bank_attribution.py48def _set_flag(enabled: bool) -> None:CODE
LOWhindsight-api-slim/tests/test_batch_api.py27logger = logging.getLogger(__name__)CODE
LOWhindsight-api-slim/tests/test_retain.py16logger = logging.getLogger(__name__)CODE
LOWhindsight-api-slim/tests/test_retain.py3319def _set_chunk_batch_size(memory: MemoryEngine, batch_size: int) -> None:CODE
LOW…ght-api-slim/tests/test_fireworks_batch_integration.py38logger = logging.getLogger(__name__)CODE
LOW…ndsight-api-slim/tests/test_delta_retain_duplicates.py20logger = logging.getLogger(__name__)CODE
LOWhindsight-api-slim/tests/test_server_module.py286 def set_context(self, context) -> None:CODE
LOWhindsight-api-slim/tests/test_multilingual.py14logger = logging.getLogger(__name__)CODE
LOWhindsight-api-slim/tests/llm_judge.py24logger = logging.getLogger(__name__)CODE
LOWhindsight-api-slim/tests/test_main_module.py444 def set_context(self, context) -> None:CODE
LOW…dsight-api-slim/tests/test_gemini_batch_integration.py43logger = logging.getLogger(__name__)CODE
LOW…dsight-api-slim/tests/test_fact_extraction_analysis.py17logger = logging.getLogger(__name__)CODE
LOWhindsight-api-slim/hindsight_api/metrics.py161logger = logging.getLogger(__name__)CODE
LOWhindsight-api-slim/hindsight_api/tracing.py25logger = logging.getLogger(__name__)CODE
LOWhindsight-api-slim/hindsight_api/tracing.py70 def set_attribute(self, key: str, value: Any) -> None:CODE
LOWhindsight-api-slim/hindsight_api/tracing.py74 def set_status(self, status: Any) -> None:CODE
LOWhindsight-api-slim/hindsight_api/config.py22logger = logging.getLogger(__name__)CODE
LOWhindsight-api-slim/hindsight_api/pg0.py11logger = logging.getLogger(__name__)CODE
LOWhindsight-api-slim/hindsight_api/__init__.py33__all__ = [CODE
LOWhindsight-api-slim/hindsight_api/config_resolver.py32logger = logging.getLogger(__name__)CODE
LOWhindsight-api-slim/hindsight_api/migrations.py45logger = logging.getLogger(__name__)CODE
LOWhindsight-api-slim/hindsight_api/migrations.py58def _set_alembic_main_option(config: Config, name: str, value: str) -> None:CODE
LOWhindsight-api-slim/hindsight_api/_vector_index.py11logger = logging.getLogger(__name__)CODE
LOWhindsight-api-slim/hindsight_api/mcp_tools.py71logger = logging.getLogger(__name__)CODE
LOWhindsight-api-slim/hindsight_api/daemon.py19logger = logging.getLogger(__name__)CODE
LOWhindsight-api-slim/hindsight_api/admin/cli.py34logger = logging.getLogger(__name__)CODE
LOWhindsight-api-slim/hindsight_api/extensions/__init__.py79__all__ = [CODE
LOWhindsight-api-slim/hindsight_api/extensions/mcp.py18logger = logging.getLogger(__name__)CODE
LOWhindsight-api-slim/hindsight_api/extensions/loader.py13logger = logging.getLogger(__name__)CODE
LOW…ht-api-slim/hindsight_api/extensions/memory_defense.py21logger = logging.getLogger(__name__)CODE
LOWhindsight-api-slim/hindsight_api/extensions/base.py38 def set_context(self, context: "ExtensionContext") -> None:CODE
LOW…-api-slim/hindsight_api/extensions/builtin/__init__.py20__all__ = [CODE
LOW…ndsight_api/extensions/builtin/memory_defense_regex.py21logger = logging.getLogger(__name__)CODE
LOW…im/hindsight_api/extensions/builtin/supabase_tenant.py63logger = logging.getLogger(__name__)CODE
LOW…im/hindsight_api/extensions/builtin/supabase_tenant.py65__all__ = ["SupabaseTenantExtension"]CODE
LOWhindsight-api-slim/hindsight_api/api/__init__.py14logger = logging.getLogger(__name__)CODE
LOWhindsight-api-slim/hindsight_api/api/__init__.py125__all__ = [CODE
LOWhindsight-api-slim/hindsight_api/api/mcp.py33logger = logging.getLogger(__name__)CODE
LOWhindsight-api-slim/hindsight_api/api/http.py180logger = logging.getLogger(__name__)CODE
LOWhindsight-api-slim/hindsight_api/worker/__init__.py11__all__ = ["WorkerPoller"]CODE
LOWhindsight-api-slim/hindsight_api/worker/poller.py86logger = logging.getLogger(__name__)CODE
LOWhindsight-api-slim/hindsight_api/worker/stage.py43def set_stage(name: str) -> None:CODE
LOWhindsight-api-slim/hindsight_api/worker/main.py32logger = logging.getLogger(__name__)CODE
LOWhindsight-api-slim/hindsight_api/webhooks/__init__.py14__all__ = [CODE
LOWhindsight-api-slim/hindsight_api/webhooks/manager.py18logger = logging.getLogger(__name__)CODE
LOW…ght-api-slim/hindsight_api/engine/graph_maintenance.py55logger = logging.getLogger(__name__)CODE
LOWhindsight-api-slim/hindsight_api/engine/llm_trace.py36logger = logging.getLogger(__name__)CODE
LOWhindsight-api-slim/hindsight_api/engine/audit.py25logger = logging.getLogger(__name__)CODE
173 more matches not shown…
Modern AI Meta-Vocabulary75 hits · 212 pts
SeverityFileLineSnippetContext
MEDIUMhindsight-api-slim/tests/test_document_transfer.py724 # now that the manifest no longer includes embedding model/dimension metadata).COMMENT
MEDIUMhindsight-api-slim/tests/test_mcp_tools.py2039 # Mirrors ReflectResult: the agentic loop's trace fields are large and present.COMMENT
MEDIUMhindsight-api-slim/tests/test_reflect_prompt_builder.py250# --- Directives header block (inserted between anti-hallucination and role) ---STRING
MEDIUMhindsight-api-slim/tests/test_mental_models.py838 # are the scaffolding that prevents double-counting and unjustifiedCOMMENT
MEDIUMhindsight-api-slim/tests/test_multilingual.py180 # The LLM should use names from the based_on facts, not hallucinate different namesSTRING
MEDIUMhindsight-api-slim/tests/test_http_api_integration.py1031 # Verify usage field exists and is populated (agentic reflect aggregates all LLM calls)COMMENT
MEDIUMhindsight-api-slim/tests/test_http_api_integration.py1035 # Usage must be present - agentic reflect now aggregates token usage from all LLM callsCOMMENT
MEDIUMhindsight-api-slim/hindsight_api/config.py1058# set to the embedding model's real input limit (e.g. 8192 for Bedrock Titan V2)COMMENT
MEDIUMhindsight-api-slim/hindsight_api/config.py1813 # Optional native Ollama context window override. Unset lets Ollama use theCOMMENT
MEDIUMhindsight-api-slim/hindsight_api/mcp_tools.py1089 # The agentic reflect loop's trace fields can be tens of KB (fullCOMMENT
MEDIUMhindsight-api-slim/hindsight_api/mcp_tools.py1182 # The agentic reflect loop's trace fields can be tens of KB (fullCOMMENT
MEDIUMhindsight-api-slim/hindsight_api/api/http.py3458 # Preserve FastAPI's dependency injection signatureCOMMENT
MEDIUM…ndsight-api-slim/hindsight_api/engine/llm_interface.py232 # For agentic loops (reflect) the dominant cost is the conversation prefixCOMMENT
MEDIUM…ndsight-api-slim/hindsight_api/engine/memory_engine.py10054 # (issue #2122). The agentic loop re-checks between iterations, and theCOMMENT
MEDIUM…ndsight-api-slim/hindsight_api/engine/memory_engine.py10095 # Run agentic loop - acquire connections only when needed for DB operationsCOMMENT
MEDIUM…ndsight-api-slim/hindsight_api/engine/memory_engine.py11712 # so the agentic loop only retrieves genuinely new information.STRING
MEDIUM…indsight_api/engine/providers/openai_compatible_llm.py184# (e.g. MiniMax-M3) leak the chain-of-thought wrapped in these tags into theCOMMENT
MEDIUM…indsight_api/engine/providers/openai_compatible_llm.py974 # reasoning models like MiniMax-M3 wrap their chain-of-thoughtCOMMENT
MEDIUM…slim/hindsight_api/engine/providers/claude_code_llm.py551 # an agentic loop the caller drives: the model proposes tool calls, we returnCOMMENT
MEDIUM…sight-api-slim/hindsight_api/engine/reflect/prompts.py130 # Anti-hallucination rule at the very topCOMMENT
MEDIUM…sight-api-slim/hindsight_api/engine/reflect/prompts.py138 # Inject directives after anti-hallucination ruleCOMMENT
MEDIUM…ndsight-api-slim/hindsight_api/engine/reflect/agent.py493 # Step-by-step context caching for the agentic tool loop.COMMENT
MEDIUM…sight-api-slim/hindsight_api/engine/transfer/export.py100# its own embedding model / text-search backend.COMMENT
MEDIUM…ndsight-api-slim/hindsight_api/engine/memories/base.py1109 # The graph-maintenance job orchestrates these; each pass asks the store to doCOMMENT
MEDIUM…pi-slim/hindsight_api/engine/retain/fact_extraction.py1913# Import types for the orchestration layer (note: ExtractedFact here is different from the Pydantic model above)COMMENT
MEDIUMhindsight-docs/docs/developer/rag-vs-hindsight.md5# RAG vs MemoryCOMMENT
MEDIUMhindsight-docs/docs/developer/rag-vs-hindsight.md22### RAGCOMMENT
MEDIUMhindsight-docs/blog/2026-01-28-learning-capabilities.md285- [Directives](../developer/api/memory-banks#directives) — hard rules for compliance and guardrailsCODE
MEDIUM…sight-docs/blog/2026-03-13-disposition-aware-agents.md199## Disposition-aware agents in multi-agent systemsCOMMENT
MEDIUM…t-docs/blog/2026-07-22-context-window-is-not-memory.md20## A context window is RAM, not diskCOMMENT
MEDIUM…docs/blog/2026-06-15-gemini-spark-persistent-memory.md14[Gemini Spark](https://gemini.google/overview/agent/spark/) is Google's always-on agentic assistant. It plans, calls tooCODE
MEDIUMhindsight-docs/blog/2026-03-30-version-0-4-21.md16- [**AG2 Integration**](#ag2-integration): Long-term memory for AG2 multi-agent workflows.CODE
MEDIUM…05-12-case-against-external-vector-dbs-agent-memory.md25## Agent Memory Is Not RAGCOMMENT
MEDIUMhindsight-docs/docs-integrations/gemini-spark.md9Long-term memory for [Gemini Spark](https://blog.google/products/gemini/gemini-spark/), Google's always-on agentic assisCODE
MEDIUM…026-04-21-comparison-hindsight-vs-rag-for-ai-agents.md29## What RAG actually doesCOMMENT
MEDIUM…026-04-21-comparison-hindsight-vs-rag-for-ai-agents.md83## When RAG is the better toolCOMMENT
MEDIUM…026-04-21-comparison-hindsight-vs-rag-for-ai-agents.md121## Where RAG breaks down for memoryCOMMENT
MEDIUM…des/2026-04-23-guide-why-your-ai-agent-needs-memory.md82### Can a large context window replace memory?COMMENT
MEDIUM…hare-hindsight-memory-across-chatgpt-and-perplexity.md58## Use guardrails so the shared bank stays usefulCOMMENT
MEDIUM…2026-07-17-guide-llamaindex-agent-memory-beyond-rag.md29## RAG retrieves knowledge; memory retains experienceCOMMENT
MEDIUM…2026-07-17-guide-llamaindex-agent-memory-beyond-rag.md39## Where RAG stops and memory beginsCOMMENT
MEDIUM…2026-07-17-guide-llamaindex-agent-memory-beyond-rag.md105## Using RAG and memory togetherCOMMENT
MEDIUM…2026-07-17-guide-llamaindex-agent-memory-beyond-rag.md149### Treating RAG as memoryCOMMENT
MEDIUM…2026-07-17-guide-llamaindex-agent-memory-beyond-rag.md171### Does adding memory replace my RAG pipeline?COMMENT
MEDIUM…y-ai-agents-lose-context-and-how-hindsight-fixes-it.md21## The real problem is not just the context windowCOMMENT
MEDIUM…-23-guide-why-multi-step-tasks-break-without-memory.md78### Can orchestration alone solve this?COMMENT
MEDIUM…rsioned_docs/version-0.7/developer/rag-vs-hindsight.md5# RAG vs MemoryCOMMENT
MEDIUM…rsioned_docs/version-0.7/developer/rag-vs-hindsight.md22### RAGCOMMENT
MEDIUM…rsioned_docs/version-0.6/developer/rag-vs-hindsight.md5# RAG vs MemoryCOMMENT
MEDIUM…rsioned_docs/version-0.6/developer/rag-vs-hindsight.md22### RAGCOMMENT
MEDIUM…rsioned_docs/version-0.8/developer/rag-vs-hindsight.md5# RAG vs MemoryCOMMENT
MEDIUM…rsioned_docs/version-0.8/developer/rag-vs-hindsight.md22### RAGCOMMENT
MEDIUM…nchmarks/obs/datasets/hermes_session_2026-05-15_en.txt29[[{"role": "user", "content": "User: Collect https://mp.weixin.qq.com/s/q1bLzUzq0Y4zVJFz_VAtLw and review the statementsCODE
MEDIUM…nchmarks/obs/datasets/hermes_session_2026-05-15_en.txt30[[{"role": "user", "content": "User: Collect https://mp.weixin.qq.com/s/q1bLzUzq0Y4zVJFz_VAtLw and review the statementsCODE
MEDIUM…nchmarks/obs/datasets/hermes_session_2026-05-15_en.txt31[[{"role": "user", "content": "User: Collect https://mp.weixin.qq.com/s/q1bLzUzq0Y4zVJFz_VAtLw and review the statementsCODE
MEDIUM…nchmarks/obs/datasets/hermes_session_2026-05-15_en.txt32[[{"role": "user", "content": "User: Collect https://mp.weixin.qq.com/s/q1bLzUzq0Y4zVJFz_VAtLw and review the statementsCODE
MEDIUM…nchmarks/obs/datasets/hermes_session_2026-05-15_en.txt33[[{"role": "user", "content": "User: Collect https://mp.weixin.qq.com/s/q1bLzUzq0Y4zVJFz_VAtLw and review the statementsCODE
MEDIUM…nchmarks/obs/datasets/hermes_session_2026-05-15_en.txt34[[{"role": "user", "content": "User: Collect https://mp.weixin.qq.com/s/q1bLzUzq0Y4zVJFz_VAtLw and review the statementsCODE
MEDIUM…nchmarks/obs/datasets/hermes_session_2026-05-15_en.txt34[[{"role": "user", "content": "User: Collect https://mp.weixin.qq.com/s/q1bLzUzq0Y4zVJFz_VAtLw and review the statementsCODE
MEDIUM…nchmarks/obs/datasets/hermes_session_2026-05-15_en.txt35[[{"role": "user", "content": "User: Collect https://mp.weixin.qq.com/s/q1bLzUzq0Y4zVJFz_VAtLw and review the statementsCODE
15 more matches not shown…
Deep Nesting257 hits · 210 pts
SeverityFileLineSnippetContext
LOWhindsight-api-slim/tests/test_google_cross_encoder.py229CODE
LOW…ndsight-api-slim/tests/test_bank_attribution_config.py32CODE
LOW…pi-slim/tests/test_retain_same_document_concurrency.py63CODE
LOW…ndsight-api-slim/tests/test_fact_extraction_quality.py482CODE
LOWhindsight-api-slim/tests/test_entity_labels.py494CODE
LOWhindsight-api-slim/tests/test_entity_labels.py596CODE
LOW…lim/tests/test_consolidation_silent_requeue_failure.py74CODE
LOWhindsight-api-slim/tests/test_mental_models.py2272CODE
LOWhindsight-api-slim/tests/test_mental_models.py2290CODE
LOWhindsight-api-slim/tests/test_horse_observations.py170CODE
LOWhindsight-api-slim/tests/test_gemini_embeddings.py333CODE
LOWhindsight-api-slim/tests/test_worker.py2512CODE
LOWhindsight-api-slim/tests/test_observations.py197CODE
LOWhindsight-api-slim/tests/test_model_init_timeout.py21CODE
LOWhindsight-api-slim/tests/test_reranker_timeouts.py18CODE
LOWhindsight-api-slim/tests/test_retain.py103CODE
LOWhindsight-api-slim/tests/test_retain.py293CODE
LOWhindsight-api-slim/tests/test_multilingual.py24CODE
LOWhindsight-api-slim/tests/test_multilingual.py114CODE
LOWhindsight-api-slim/tests/test_multilingual.py215CODE
LOWhindsight-api-slim/tests/test_http_api_integration.py1227CODE
LOWhindsight-api-slim/tests/test_sql_schema_safety.py42CODE
LOWhindsight-api-slim/tests/test_sql_schema_safety.py57CODE
LOW…dsight-api-slim/tests/test_link_expansion_retrieval.py26CODE
LOWhindsight-api-slim/tests/test_unknown_params.py9CODE
LOWhindsight-api-slim/tests/test_unknown_params.py18CODE
LOWhindsight-api-slim/tests/test_schema_isolation.py88CODE
LOWhindsight-api-slim/tests/test_schema_isolation.py310CODE
LOWhindsight-api-slim/hindsight_api/metrics.py103CODE
LOWhindsight-api-slim/hindsight_api/tracing.py263CODE
LOWhindsight-api-slim/hindsight_api/tracing.py447CODE
LOWhindsight-api-slim/hindsight_api/config.py3409CODE
LOWhindsight-api-slim/hindsight_api/config_resolver.py334CODE
LOWhindsight-api-slim/hindsight_api/migrations.py240CODE
LOWhindsight-api-slim/hindsight_api/migrations.py564CODE
LOWhindsight-api-slim/hindsight_api/migrations.py768CODE
LOWhindsight-api-slim/hindsight_api/mcp_tools.py397CODE
LOWhindsight-api-slim/hindsight_api/mcp_tools.py507CODE
LOWhindsight-api-slim/hindsight_api/mcp_tools.py511CODE
LOWhindsight-api-slim/hindsight_api/mcp_tools.py514CODE
LOWhindsight-api-slim/hindsight_api/admin/cli.py242CODE
LOWhindsight-api-slim/hindsight_api/api/mcp.py198CODE
LOWhindsight-api-slim/hindsight_api/api/mcp.py272CODE
LOWhindsight-api-slim/hindsight_api/api/mcp.py381CODE
LOWhindsight-api-slim/hindsight_api/api/http.py3469CODE
LOWhindsight-api-slim/hindsight_api/api/http.py3806CODE
LOWhindsight-api-slim/hindsight_api/api/http.py3689CODE
LOWhindsight-api-slim/hindsight_api/api/http.py4503CODE
LOWhindsight-api-slim/hindsight_api/api/http.py5397CODE
LOWhindsight-api-slim/hindsight_api/api/http.py7496CODE
LOW…sions/n9i0j1k2l3m4_learnings_and_pinned_reflections.py101CODE
LOW…ht_api/alembic/versions/5a366d414dce_initial_schema.py97CODE
LOWhindsight-api-slim/hindsight_api/worker/poller.py1042CODE
LOWhindsight-api-slim/hindsight_api/worker/poller.py1162CODE
LOW…-slim/hindsight_api/engine/chinese_temporal_periods.py97CODE
LOW…sight-api-slim/hindsight_api/engine/entity_resolver.py619CODE
LOWhindsight-api-slim/hindsight_api/engine/llm_wrapper.py270CODE
LOWhindsight-api-slim/hindsight_api/engine/llm_wrapper.py549CODE
LOWhindsight-api-slim/hindsight_api/engine/embeddings.py1632CODE
LOWhindsight-api-slim/hindsight_api/engine/embeddings.py1328CODE
197 more matches not shown…
Hallucination Indicators14 hits · 165 pts
SeverityFileLineSnippetContext
CRITICALhindsight-api-slim/tests/test_gemini_batch.py303 llm._client.aio.files.download.assert_awaited_once()CODE
CRITICALhindsight-api-slim/tests/test_llm_extra_body.py163 config_arg = provider._client.aio.models.generate_content.call_args.kwargs.get("config")CODE
CRITICALhindsight-api-slim/tests/test_llm_extra_body.py177 config_arg = provider._client.aio.models.generate_content.call_args.kwargs.get("config")CODE
CRITICALhindsight-api-slim/tests/test_llm_extra_body.py189 config_arg = provider._client.aio.models.generate_content.call_args.kwargs.get("config")CODE
CRITICALhindsight-api-slim/tests/test_llm_extra_body.py204 config_arg = provider._client.aio.models.generate_content.call_args.kwargs.get("config")CODE
CRITICALhindsight-api-slim/tests/test_llm_extra_body.py231 config_arg = provider._client.aio.models.generate_content.call_args.kwargs.get("config")CODE
CRITICALhindsight-api-slim/tests/test_llm_extra_body.py262 config_arg = provider._client.aio.models.generate_content.call_args.kwargs.get("config")CODE
CRITICALhindsight-api-slim/tests/test_gemini_embeddings.py89 mock_genai.Client.return_value.models.embed_content.assert_called_once()CODE
CRITICALhindsight-api-slim/tests/test_anthropic_batch.py123 provider._client.messages.batches.create.assert_awaited_once()CODE
CRITICALhindsight-api-slim/tests/test_gemini_safety_settings.py381 config_arg = provider._provider_impl._client.aio.models.generate_content.call_args.kwargs.get("config")CODE
CRITICALhindsight-api-slim/tests/test_gemini_safety_settings.py360 config_arg = provider._provider_impl._client.aio.models.generate_content.call_args.kwargs.get("config")CODE
CRITICALhindsight-integrations/zapier/test/triggers.test.js53 result.secret.should.be.a.String();CODE
CRITICALhindsight-integrations/zapier/test/triggers.test.js125 App.triggers.should.not.have.property("memoryDefenseTriggered");CODE
CRITICAL…ght-integrations/litellm/hindsight_litellm/wrappers.py1249 response = self._wrapper._client.chat.completions.create(**openai_kwargs)CODE
AI Structural Patterns186 hits · 162 pts
SeverityFileLineSnippetContext
LOWhindsight-all/hindsight/server.py220CODE
LOWhindsight-all/hindsight/server.py56CODE
LOWhindsight-all/hindsight/embedded.py81CODE
LOWhindsight-api-slim/hindsight_api/mcp_tools.py608CODE
LOWhindsight-api-slim/hindsight_api/mcp_tools.py841CODE
LOWhindsight-api-slim/hindsight_api/mcp_tools.py927CODE
LOWhindsight-api-slim/hindsight_api/mcp_tools.py1015CODE
LOWhindsight-api-slim/hindsight_api/mcp_tools.py1110CODE
LOWhindsight-api-slim/hindsight_api/api/http.py3982CODE
LOWhindsight-api-slim/hindsight_api/api/http.py4026CODE
LOWhindsight-api-slim/hindsight_api/api/http.py7957CODE
LOWhindsight-api-slim/hindsight_api/engine/llm_trace.py426CODE
LOWhindsight-api-slim/hindsight_api/engine/interface.py88CODE
LOW…ndsight-api-slim/hindsight_api/engine/llm_interface.py101CODE
LOW…ndsight-api-slim/hindsight_api/engine/llm_interface.py148CODE
LOWhindsight-api-slim/hindsight_api/engine/llm_wrapper.py270CODE
LOWhindsight-api-slim/hindsight_api/engine/llm_wrapper.py549CODE
LOWhindsight-api-slim/hindsight_api/engine/llm_wrapper.py838CODE
LOWhindsight-api-slim/hindsight_api/engine/llm_wrapper.py1013CODE
LOWhindsight-api-slim/hindsight_api/engine/embeddings.py289CODE
LOWhindsight-api-slim/hindsight_api/engine/embeddings.py1231CODE
LOWhindsight-api-slim/hindsight_api/engine/embeddings.py1444CODE
LOW…ndsight-api-slim/hindsight_api/engine/cross_encoder.py115CODE
LOW…ndsight-api-slim/hindsight_api/engine/memory_engine.py975CODE
LOW…ndsight-api-slim/hindsight_api/engine/memory_engine.py3595CODE
LOW…ndsight-api-slim/hindsight_api/engine/memory_engine.py4031CODE
LOW…ndsight-api-slim/hindsight_api/engine/memory_engine.py4361CODE
LOW…ndsight-api-slim/hindsight_api/engine/memory_engine.py4671CODE
LOW…ndsight-api-slim/hindsight_api/engine/memory_engine.py7307CODE
LOW…ndsight-api-slim/hindsight_api/engine/memory_engine.py7815CODE
LOW…ndsight-api-slim/hindsight_api/engine/memory_engine.py8233CODE
LOW…ndsight-api-slim/hindsight_api/engine/memory_engine.py8866CODE
LOW…ndsight-api-slim/hindsight_api/engine/memory_engine.py8906CODE
LOW…ndsight-api-slim/hindsight_api/engine/memory_engine.py9967CODE
LOW…ndsight-api-slim/hindsight_api/engine/memory_engine.py11949CODE
LOW…-api-slim/hindsight_api/engine/providers/gemini_llm.py300CODE
LOW…-api-slim/hindsight_api/engine/providers/gemini_llm.py623CODE
LOW…api-slim/hindsight_api/engine/providers/litellm_llm.py225CODE
LOW…pi-slim/hindsight_api/engine/providers/llamacpp_llm.py357CODE
LOW…ht-api-slim/hindsight_api/engine/providers/mock_llm.py81CODE
LOW…indsight_api/engine/providers/openai_compatible_llm.py759CODE
LOW…ht-api-slim/hindsight_api/engine/providers/none_llm.py38CODE
LOW…t-api-slim/hindsight_api/engine/providers/codex_llm.py366CODE
LOW…slim/hindsight_api/engine/providers/claude_code_llm.py152CODE
LOW…i-slim/hindsight_api/engine/providers/anthropic_llm.py163CODE
LOW…ndsight-api-slim/hindsight_api/engine/reflect/tools.py162CODE
LOW…ndsight-api-slim/hindsight_api/engine/reflect/tools.py244CODE
LOW…ndsight-api-slim/hindsight_api/engine/reflect/agent.py402CODE
LOW…indsight_api/engine/search/link_expansion_retrieval.py124CODE
LOW…ight-api-slim/hindsight_api/engine/search/retrieval.py122CODE
LOW…ight-api-slim/hindsight_api/engine/search/retrieval.py163CODE
LOW…ight-api-slim/hindsight_api/engine/search/retrieval.py834CODE
LOW…pi-slim/hindsight_api/engine/search/graph_retrieval.py35CODE
LOWhindsight-api-slim/hindsight_api/engine/db/base.py87CODE
LOW…ght-api-slim/hindsight_api/engine/memories/postgres.py76CODE
LOW…ght-api-slim/hindsight_api/engine/memories/postgres.py155CODE
LOW…ght-api-slim/hindsight_api/engine/memories/postgres.py318CODE
LOW…ndsight-api-slim/hindsight_api/engine/memories/base.py612CODE
LOW…ndsight-api-slim/hindsight_api/engine/memories/base.py684CODE
LOW…ndsight-api-slim/hindsight_api/engine/memories/base.py918CODE
126 more matches not shown…
Over-Commented Block149 hits · 131 pts
SeverityFileLineSnippetContext
LOWhindsight-cli/.openapi-coverage.toml1# Hindsight CLI ↔ OpenAPI coverage manifest.COMMENT
LOWhindsight-cli/.openapi-coverage.toml21# Operation-level skipsCOMMENT
LOWhindsight-cli/smoke-test.sh1#!/bin/bashCOMMENT
LOWhindsight-cli/tests/cli_profile.rs1//! End-to-end tests for the `hindsight profile` CRUD subcommands and theCOMMENT
LOWhindsight-cli/src/main.rs601 /// Document ID (auto-generated if not provided)COMMENT
LOWhindsight-cli/src/main.rs1021 /// Optional custom ID for the mental model (alphanumeric lowercase with hyphens)COMMENT
LOWhindsight-cli/src/commands/fs/client.rs1//! Minimal Hindsight API client — only the knowledge-base read endpoints neededCOMMENT
LOWhindsight-cli/src/commands/fs/sync.rs1//! The sync engine: fetch a bank's knowledge base (folder/page tree + pageCOMMENT
LOWdocker/test-image.sh1#!/bin/bashCOMMENT
LOWdocker/test-image.sh21# HINDSIGHT_API_RERANKER_PROVIDER - Reranker provider (optional, for slim images: cohere, tei)COMMENT
LOWdocker/test-slim-local.sh1#!/bin/bashCOMMENT
LOWdocker/standalone/start-all.sh1#!/bin/bashCOMMENT
LOWdocker/standalone/start-all.sh41 fiCOMMENT
LOWdocker/standalone/start-all.sh161 echo " Attempt $attempt: DB=$( $db_ok && echo 'ok' || echo 'waiting' ), LLM=$( $llm_ok && echo 'ok' || echo 'wCOMMENT
LOWdocker/docker-compose/pg_textsearch/docker-compose.yaml1name: hindsightCOMMENT
LOWdocker/docker-compose/external-pg/docker-compose.yaml1# Docker Compose file for Hindsight with PostgreSQL and pgvectorCOMMENT
LOWdocker/docker-compose/local-llm/docker-compose.yaml1name: hindsight-local-llmCOMMENT
LOWdocker/docker-compose/claude-code/docker-compose.yaml41 # protocol incompatibility in containers. Override it with theCOMMENT
LOWdocker/docker-compose/custom-models/docker-compose.yaml1name: hindsight-custom-modelsCOMMENT
LOWdocker/docker-compose/timescale/docker-compose.yaml1name: hindsightCOMMENT
LOW…ker/docker-compose/s3-file-storage/docker-compose.yaml1# Docker Compose file for Hindsight with S3 file storage (SeaweedFS)COMMENT
LOWdocker/docker-compose/nginx/docker-compose.yml1# Hindsight API deployment with Nginx reverse proxy (API-only)COMMENT
LOWdocker/docker-compose/nginx/docker-compose.yml41 # HINDSIGHT_API_LLM_MODEL: gpt-4o-miniCOMMENT
LOWdocker/docker-compose/alloydb/docker-compose.yaml1name: hindsightCOMMENT
LOWdocker/docker-compose/pgroonga/docker-compose.yaml1name: hindsightCOMMENT
LOWdocker/docker-compose/vchord/docker-compose.yaml1name: hindsightCOMMENT
LOWdocker/docker-compose/pg_search/docker-compose.yaml1name: hindsightCOMMENT
LOWhindsight-api-slim/tests/conftest.py21# raise "RuntimeError: function '_has_torch_function' already has a docstring",COMMENT
LOWhindsight-api-slim/tests/conftest.py41 # Seed the rest of the native embedding/reranker stack the same way, and forCOMMENT
LOWhindsight-api-slim/tests/test_entity_labels.py2221# - id (multi-values): SYS001, SYS002, SYS003, ...COMMENT
LOWhindsight-api-slim/tests/test_delta_retain.py881 assert fact.chunk_id in result.chunks, f"Chunk {fact.chunk_id} should be in returned chunks"COMMENT
LOWhindsight-api-slim/tests/test_async_batch_retain.py1141COMMENT
LOWhindsight-api-slim/tests/test_chunking.py321 assert chunks == ["Line one here.", "Line two here.", "Line three now."]COMMENT
LOWhindsight-api-slim/tests/test_webhooks.py1301 bank_id,COMMENT
LOWhindsight-api-slim/tests/test_config_validation.py421# Note: The BadRequestError wrapping is implemented in fact_extraction.pyCOMMENT
LOWhindsight-api-slim/hindsight_api/metrics.py1041 # partial-index predicate exactly:COMMENT
LOWhindsight-api-slim/hindsight_api/config.py541# Vertex AI configurationCOMMENT
LOWhindsight-api-slim/hindsight_api/config.py761ENV_RECALL_BUDGET_MAX = "HINDSIGHT_API_RECALL_BUDGET_MAX"COMMENT
LOWhindsight-api-slim/hindsight_api/config.py941# Per-strategy recall boost, as a comma-separated "strategy:level" list (e.g.COMMENT
LOWhindsight-api-slim/hindsight_api/config.py1181DEFAULT_RUN_MIGRATIONS_ON_STARTUP = TrueCOMMENT
LOWhindsight-api-slim/hindsight_api/migrations.py281 """COMMENT
LOWhindsight-api-slim/hindsight_api/migrations.py321 # IMPORTANT: We must avoid holding an open transaction on the advisory-lockCOMMENT
LOWhindsight-api-slim/hindsight_api/_vector_index.py41COMMENT
LOW…i-slim/hindsight_api/extensions/operation_validator.py221 llm_total_tokens: int | None = NoneCOMMENT
LOW…d4e3f2a1c9_backfill_entity_cooccurrences_event_time.py41 """Get schema prefix for table names (required for multi-tenant support)."""COMMENT
LOW…versions/a7b8c9d0e1f2_split_history_into_own_tables.py41 schema = context.config.get_main_option("target_schema")COMMENT
LOWhindsight-api-slim/hindsight_api/worker/poller.py781COMMENT
LOW…ght-api-slim/hindsight_api/engine/graph_maintenance.py161 job_start = time.time()COMMENT
LOW…ght-api-slim/hindsight_api/engine/graph_maintenance.py181 # sorted (entity_id_1, entity_id_2) order. When a sweep and a concurrentCOMMENT
LOW…-slim/hindsight_api/engine/chinese_temporal_periods.py501 # - Open future starts such as "明天起", "下周起", and "三天后开始" return the sentinel for no temporalCOMMENT
LOW…dsight-api-slim/hindsight_api/engine/query_analyzer.py21logger = logging.getLogger(__name__)COMMENT
LOWhindsight-api-slim/hindsight_api/engine/multi_llm.py201 # Anything not defined here (provider, model, api_key, base_url,COMMENT
LOWhindsight-api-slim/hindsight_api/engine/llm_wrapper.py881 OutputTooLongError: If output exceeds token limits.COMMENT
LOW…ndsight-api-slim/hindsight_api/engine/memory_engine.py201# retry path. The dedup-by-bank guard prevents per-op retries fromCOMMENT
LOW…ndsight-api-slim/hindsight_api/engine/memory_engine.py621 item_tokens = count_tokens(content_str)COMMENT
LOW…ndsight-api-slim/hindsight_api/engine/memory_engine.py3081 f"an unreachable provider. Increase {ENV_MODEL_INIT_TIMEOUT} if the "COMMENT
LOW…ndsight-api-slim/hindsight_api/engine/memory_engine.py3161COMMENT
LOW…ndsight-api-slim/hindsight_api/engine/memory_engine.py3181 # SET (not SET LOCAL) so per-backend ANN tuning persists for theCOMMENT
LOW…ndsight-api-slim/hindsight_api/engine/memory_engine.py3781 per_input_results: list[list[str]] = [[] for _ in contents]COMMENT
LOW…ndsight-api-slim/hindsight_api/engine/memory_engine.py3841 set_stage(f"batch_retain.sub_batch.{i}")COMMENT
89 more matches not shown…
Redundant / Tautological Comments110 hits · 124 pts
SeverityFileLineSnippetContext
LOWhindsight-cli/build.sh15# Check if cargo is availableCOMMENT
LOWhindsight-cli/build.sh42 # Check if target is installed, install if notCOMMENT
LOWhindsight-all/tests/test_server_integration.py120 # Check if the batch was submitted successfully (items_count shows how many were submitted)COMMENT
LOWdocker/test-image.sh107# Set trap to cleanup on exitCOMMENT
LOWdocker/test-image.sh212 # Check if container is still runningCOMMENT
LOWdocker/standalone/start-all.sh113 # Check if external database is configured (skip check for embedded pg0)COMMENT
LOWdocker/standalone/start-all.sh285# Check if any services are runningCOMMENT
LOWdocker/standalone/start-all.sh298 # Check if any tracked PID has exitedCOMMENT
LOWhindsight-api-slim/tests/test_document_tracking.py412 # Check if document existsCOMMENT
LOWhindsight-api-slim/tests/test_consolidation.py225 # Check if entity links were copiedCOMMENT
LOWhindsight-api-slim/tests/test_mental_models.py689 # Check if this is our directiveCOMMENT
LOWhindsight-api-slim/tests/test_batch_api_integration.py41 # Check if it's an OpenAI key (starts with sk-proj- or sk-)COMMENT
LOWhindsight-api-slim/tests/test_batch_api_integration.py264 # Check if Groq supports batch APICOMMENT
LOWhindsight-api-slim/tests/test_retain.py583 # Check if LLM extracted the date from context (ideal case)STRING
LOWhindsight-api-slim/tests/test_retain.py1428 # Check if any chunks show truncationSTRING
LOWhindsight-api-slim/tests/test_retain.py2453 # Check if facts contain English-only content (this would be wrong)STRING
LOWhindsight-api-slim/tests/test_multilingual.py186 # Check if entity contains Chinese charactersSTRING
LOWhindsight-api-slim/tests/test_http_api_integration.py752 # Check if memories are storedCOMMENT
LOWhindsight-api-slim/tests/test_file_retain.py377 # Check if file existsCOMMENT
LOWhindsight-api-slim/tests/test_sql_schema_safety.py92 # Check if it's actually qualified (has schema prefix)COMMENT
LOWhindsight-api-slim/hindsight_api/migrations.py207 # Set path_separator to avoid deprecation warningSTRING
LOWhindsight-api-slim/hindsight_api/migrations.py537 # Check if memory_units table exists (proxy for schema being initialized)STRING
LOWhindsight-api-slim/hindsight_api/migrations.py607 # Check if table existsSTRING
LOWhindsight-api-slim/hindsight_api/migrations.py671 # Check if index type matches targetSTRING
LOWhindsight-api-slim/hindsight_api/migrations.py832 # Check if table existsSTRING
LOWhindsight-api-slim/hindsight_api/migrations.py890 # Check if column and index types match targetSTRING
LOWhindsight-api-slim/hindsight_api/migrations.py908 # Check if table has dataSTRING
LOWhindsight-api-slim/hindsight_api/api/mcp.py388 # Check if this is an MCP request (matches prefix)COMMENT
LOWhindsight-api-slim/hindsight_api/api/http.py7564 # Check if batch API is enabled - if so, require async modeCOMMENT
LOWhindsight-api-slim/hindsight_api/api/http.py7700 # Check if file upload API is enabledCOMMENT
LOWhindsight-api-slim/hindsight_api/api/http.py7760 # Read file content to check sizeCOMMENT
LOW…embic/versions/e0a1b2c3d4e5_disposition_to_3_traits.py44 # Check if disposition column exists (should have been created by previous migration)COMMENT
LOW…embic/versions/e0a1b2c3d4e5_disposition_to_3_traits.py86 # Check if disposition column existsCOMMENT
LOW…ersions/a4b5c6d7e8f9_fix_per_bank_vector_index_type.py94 # Check if this index exists and what type it isCOMMENT
LOW…/alembic/versions/rename_personality_to_disposition.py35 # Check if 'personality' column exists (old database)COMMENT
LOW…/alembic/versions/rename_personality_to_disposition.py46 # Check if 'disposition' column exists (new database)STRING
LOWhindsight-api-slim/hindsight_api/worker/main.py253 # Check if the backend supports the async worker/poller.COMMENT
LOWhindsight-api-slim/hindsight_api/engine/task_backend.py284 # Check if there are any pending tasks with payloadsCOMMENT
LOW…ndsight-api-slim/hindsight_api/engine/memory_engine.py354 # Check if it's actually qualified (preceded by schema.)COMMENT
LOW…ndsight-api-slim/hindsight_api/engine/memory_engine.py2025 # Check if operation was cancelled (only for tasks with operation_id)COMMENT
LOW…ndsight-api-slim/hindsight_api/engine/memory_engine.py2937 # Check if pg0 is already running before we start itCOMMENT
LOW…ndsight-api-slim/hindsight_api/engine/memory_engine.py4568 # Check if it's a connection error (PG or Oracle)COMMENT
LOW…ndsight-api-slim/hindsight_api/engine/memory_engine.py10238 # Check if the bank has any mental models (skip check if all mental models are excluded)COMMENT
LOW…ndsight-api-slim/hindsight_api/engine/memory_engine.py13543 # Check if operation exists, belongs to this bank, and is in a cancellable stateCOMMENT
LOW…ndsight-api-slim/hindsight_api/engine/memory_engine.py2506 # Check if this is a child operation and update parent if all siblings are doneSTRING
LOW…ndsight-api-slim/hindsight_api/engine/memory_engine.py2584 # Check if this is a child operation and update parent if all siblings are doneSTRING
LOW…ndsight-api-slim/hindsight_api/engine/memory_engine.py2857 # Check if all siblings are done (completed or failed)STRING
LOW…ndsight-api-slim/hindsight_api/engine/memory_engine.py5950 # Check if adding this result would exceed budgetSTRING
LOW…ndsight-api-slim/hindsight_api/engine/memory_engine.py13413 # Check if this is a parent operationSTRING
LOW…pi-slim/hindsight_api/engine/providers/llamacpp_llm.py190 # Check if process diedCOMMENT
LOW…indsight_api/engine/providers/openai_compatible_llm.py822 # Check if model supports reasoning parameterCOMMENT
LOW…i-slim/hindsight_api/engine/providers/anthropic_llm.py394 # Check if it's a rate limit or server errorCOMMENT
LOW…ndsight-api-slim/hindsight_api/engine/reflect/agent.py1123 # Check if tool returned an error response - log but continue (LLM will see the error)COMMENT
LOW…ht-api-slim/hindsight_api/engine/storage/postgresql.py116 # Check if anything was deletedSTRING
LOWhindsight-api-slim/hindsight_api/engine/search/tags.py199 # Check if untaggedCOMMENT
LOW…lim/hindsight_api/engine/consolidation/consolidator.py1118 # Check if consolidation is enabledCOMMENT
LOW…ght-api-slim/hindsight_api/engine/retain/link_utils.py398 # Check if within time windowCOMMENT
LOW…t-api-slim/hindsight_api/engine/retain/orchestrator.py1962 # Check if facts are already committed (recovery from previous crash).COMMENT
LOW…t-api-slim/hindsight_api/engine/retain/orchestrator.py1360 # Check if this is a retry of the same content (crash recovery). If theSTRING
LOW…pi-slim/hindsight_api/engine/retain/fact_extraction.py1625 # Set mentioned_at to the event_date (when the conversation/document occurred),COMMENT
50 more matches not shown…
Fake / Example Data93 hits · 97 pts
SeverityFileLineSnippetContext
LOW…ndsight-api-slim/tests/test_graph_entity_fanout_cap.py26 # Create many facts sharing one common entity ("Acme Corp") plusCOMMENT
LOW…ndsight-api-slim/tests/test_graph_entity_fanout_cap.py28 # and verify graph expansion finds siblings via "Acme Corp".COMMENT
LOW…ndsight-api-slim/tests/test_graph_entity_fanout_cap.py30 # Target: unique entity "Zara" shares "Acme Corp" with the restCOMMENT
LOW…ndsight-api-slim/tests/test_graph_entity_fanout_cap.py34 "entities": [{"text": "Zara"}, {"text": "Acme Corp"}],CODE
LOW…ndsight-api-slim/tests/test_graph_entity_fanout_cap.py37 # Add many facts that all share "Acme Corp" — creates a high-fanout entityCOMMENT
LOW…ndsight-api-slim/tests/test_graph_entity_fanout_cap.py43 "entities": [{"text": f"Employee {i}"}, {"text": "Acme Corp"}],CODE
LOW…ndsight-api-slim/tests/test_graph_entity_fanout_cap.py57 # shared entity, even though "Acme Corp" has 60+ mentions.COMMENT
LOW…ndsight-api-slim/tests/test_graph_entity_fanout_cap.py79 acme_found = any("Acme Corp" in t for t in all_texts)CODE
LOWhindsight-api-slim/tests/test_entity_labels.py1391 entity_obj = {"name": "Alice", "role": "Senior Engineer", "organization": "Acme Corp"}CODE
LOW…t-api-slim/tests/test_anthropic_structured_tool_use.py27 api_key="fake-key",CODE
LOWhindsight-api-slim/tests/test_gemini_service_tier.py16 api_key="fake-key",CODE
LOWhindsight-api-slim/tests/test_gemini_service_tier.py31 monkeypatch.setenv("HINDSIGHT_API_LLM_API_KEY", "fake-key")CODE
LOWhindsight-api-slim/tests/test_gemini_service_tier.py62 monkeypatch.setenv("HINDSIGHT_API_LLM_API_KEY", "fake-key")CODE
LOWhindsight-api-slim/tests/test_gemini_service_tier.py82 api_key="fake-key",CODE
LOWhindsight-api-slim/tests/test_llm_extra_body.py66 api_key="fake-key",CODE
LOWhindsight-api-slim/tests/test_llm_extra_body.py132 api_key="fake-key",CODE
LOWhindsight-api-slim/tests/test_llm_extra_body.py358 api_key="fake-key",CODE
LOWhindsight-api-slim/tests/test_supabase_tenant.py286 key = await ext._get_signing_key("fake-token")CODE
LOWhindsight-api-slim/tests/test_supabase_tenant.py326 await ext._get_signing_key("fake-token")CODE
LOWhindsight-api-slim/tests/test_supabase_tenant.py338 await ext._get_signing_key("fake-token")CODE
LOWhindsight-api-slim/tests/test_supabase_tenant.py351 await ext._get_signing_key("fake-token")CODE
LOWhindsight-api-slim/tests/test_supabase_tenant.py304 key = await ext._get_signing_key("fake-token")CODE
LOW…dsight-api-slim/tests/test_anthropic_prompt_caching.py36 api_key="fake-key",CODE
LOWhindsight-api-slim/tests/test_config_validation.py787 monkeypatch.setenv("HINDSIGHT_API_LLM_API_KEY", "fake-key")CODE
LOWhindsight-api-slim/tests/test_config_validation.py799 monkeypatch.setenv("HINDSIGHT_API_LLM_API_KEY", "fake-key")CODE
LOWhindsight-api-slim/tests/test_config_validation.py811 monkeypatch.setenv("HINDSIGHT_API_LLM_API_KEY", "fake-key")CODE
LOWhindsight-api-slim/tests/test_codex_oauth_refresh.py192 "id_token": {"email": "user@example.com"},CODE
LOWhindsight-api-slim/tests/test_codex_oauth_refresh.py208 assert written["tokens"]["id_token"] == {"email": "user@example.com"}CODE
LOWhindsight-api-slim/tests/test_anthropic_batch.py36 api_key="fake-key",CODE
LOWhindsight-api-slim/tests/test_gemini_safety_settings.py422 "HINDSIGHT_API_LLM_API_KEY": "fake-key",CODE
LOWhindsight-embed/tests/test_profile_daemon_config.py45 "HINDSIGHT_API_LLM_API_KEY=sk-test-fake-key\n"CODE
LOWhindsight-embed/tests/test_profile_daemon_config.py84 assert profile_config["HINDSIGHT_API_LLM_API_KEY"] == "sk-test-fake-key"CODE
LOWhindsight-docs/docs-integrations/context-forge.md61 -d '{"email": "admin@example.com", "password": "your-password"}' \CODE
LOW…2026-04-16-guide-contextforge-memory-with-hindsight.md73 -d '{"email": "admin@example.com", "password": "your-password"}' \CODE
LOW…ght-docs/references/sdks/integrations/context-forge.md56 -d '{"email": "admin@example.com", "password": "your-password"}' \CODE
LOWhindsight-control-plane/scripts/find-untranslated.ts31 "placeholder",CODE
LOW…t-integrations/paperclip/tests/bank-edge-cases.spec.ts170 expect(extractUserFromIssue({ originId: "user@example.com" })).toBe("user@example.com");CODE
LOWhindsight-integrations/openclaw/openclaw.plugin.json353 "placeholder": "0 (never timeout)"CODE
LOWhindsight-integrations/openclaw/openclaw.plugin.json357 "placeholder": "0 (auto-assign)"CODE
LOWhindsight-integrations/openclaw/openclaw.plugin.json361 "placeholder": "Custom context for what this agent does..."CODE
LOWhindsight-integrations/openclaw/openclaw.plugin.json365 "placeholder": "Steers what gets extracted as facts during retain..."CODE
LOWhindsight-integrations/openclaw/openclaw.plugin.json369 "placeholder": "Controls what gets synthesised into observations..."CODE
LOWhindsight-integrations/openclaw/openclaw.plugin.json373 "placeholder": "verbose, concise, custom, verbatim, or chunks"CODE
LOWhindsight-integrations/openclaw/openclaw.plugin.json377 "placeholder": "true or false — stamped on first bank use"CODE
LOWhindsight-integrations/openclaw/openclaw.plugin.json381 "placeholder": "true or false — stamped on first bank use"CODE
LOWhindsight-integrations/openclaw/openclaw.plugin.json385 "placeholder": "1–5"CODE
LOWhindsight-integrations/openclaw/openclaw.plugin.json389 "placeholder": "1–5"CODE
LOWhindsight-integrations/openclaw/openclaw.plugin.json393 "placeholder": "1–5"CODE
LOWhindsight-integrations/openclaw/openclaw.plugin.json397 "placeholder": "e.g. [{\"name\":\"person\",\"description\":\"Human user\"}]"CODE
LOWhindsight-integrations/openclaw/openclaw.plugin.json401 "placeholder": "latest (or pin to specific version like 0.4.2)"CODE
LOWhindsight-integrations/openclaw/openclaw.plugin.json405 "placeholder": "e.g. openai, anthropic, gemini, groq"CODE
LOWhindsight-integrations/openclaw/openclaw.plugin.json409 "placeholder": "e.g. gpt-4o-mini, claude-3-5-haiku-20241022"CODE
LOWhindsight-integrations/openclaw/openclaw.plugin.json413 "placeholder": "API key for the chosen LLM provider",CODE
LOWhindsight-integrations/openclaw/openclaw.plugin.json418 "placeholder": "e.g. https://openrouter.ai/api/v1 (optional)"CODE
LOWhindsight-integrations/openclaw/openclaw.plugin.json422 "placeholder": "/path/to/hindsight (for local development)"CODE
LOWhindsight-integrations/openclaw/openclaw.plugin.json426 "placeholder": "9077 (default)"CODE
LOWhindsight-integrations/openclaw/openclaw.plugin.json430 "placeholder": "e.g. https://mcp.hindsight.devcraft.team (leave empty for local daemon)"CODE
LOWhindsight-integrations/openclaw/openclaw.plugin.json434 "placeholder": "API token if external API requires authentication",CODE
LOWhindsight-integrations/openclaw/openclaw.plugin.json439 "placeholder": "true (isolate memories per channel)"CODE
LOWhindsight-integrations/openclaw/openclaw.plugin.json443 "placeholder": "e.g. openclaw, shared-bank (used when dynamicBankId is false)"CODE
33 more matches not shown…
Verbosity Indicators70 hits · 95 pts
SeverityFileLineSnippetContext
LOWhindsight-all/tests/test_server_integration.py76 # Step 1: Create a memory bank with background informationCOMMENT
LOWhindsight-all/tests/test_server_integration.py85 # Step 2: Store some memories about user preferencesCOMMENT
LOWhindsight-all/tests/test_server_integration.py123 # Step 3: Recall memories based on a queryCOMMENT
LOWhindsight-all/tests/test_server_integration.py140 # Step 4: Recall memories about machine learningCOMMENT
LOWhindsight-all/tests/test_server_integration.py155 # Step 5: Reflect (generate contextual answer based on memories)COMMENT
LOWhindsight-all/tests/test_server_integration.py172 # Step 6: Another reflection with different contextCOMMENT
LOWhindsight-all/tests/test_embedded.py117 # Step 1: Create a memory bankCOMMENT
LOWhindsight-all/tests/test_embedded.py126 # Step 2: Store memories (single)COMMENT
LOWhindsight-all/tests/test_embedded.py136 # Step 3: Store batch memoriesCOMMENT
LOWhindsight-all/tests/test_embedded.py151 # Step 4: Recall memoriesCOMMENT
LOWhindsight-all/tests/test_embedded.py160 # Step 5: Reflect on memoriesCOMMENT
LOWhindsight-all/tests/test_embedded.py177 # Step 6: List memoriesCOMMENT
LOW…_api/alembic/versions/h3c4d5e6f7g8_mental_models_v4.py39 # Step 1: Delete observation memory_units (cascades to unit_entities links)COMMENT
LOW…_api/alembic/versions/h3c4d5e6f7g8_mental_models_v4.py43 # Step 2: Drop observation-specific index (if it exists)COMMENT
LOW…_api/alembic/versions/h3c4d5e6f7g8_mental_models_v4.py46 # Step 3: Add mission column to banks (replacing background)COMMENT
LOW…_api/alembic/versions/h3c4d5e6f7g8_mental_models_v4.py69 # Step 4: Create mental_models table with final v4 schema (if not exists)STRING
LOW…_api/alembic/versions/h3c4d5e6f7g8_mental_models_v4.py110 # Step 5: Create indexes for efficient queries (if not exist)STRING
LOW…ndsight-api-slim/hindsight_api/engine/memory_engine.py4758 # Step 1: Generate query embedding (for semantic search)COMMENT
LOW…ndsight-api-slim/hindsight_api/engine/memory_engine.py4786 # Step 2: Optimized parallel retrieval using batched queriesCOMMENT
LOW…ndsight-api-slim/hindsight_api/engine/memory_engine.py5043 # Step 3: Merge ranked lists. RRF by default; interleave (round-robin) whenCOMMENT
LOW…ndsight-api-slim/hindsight_api/engine/memory_engine.py5084 # Step 4: Rerank using cross-encoder (MergedCandidate -> ScoredResult)COMMENT
LOW…ndsight-api-slim/hindsight_api/engine/memory_engine.py5303 # Step 5: Truncate to thinking_budget * 2 for token filteringCOMMENT
LOW…ndsight-api-slim/hindsight_api/engine/memory_engine.py5489 # Step 6: Token budget filteringSTRING
LOWhindsight-api-slim/hindsight_api/engine/parsers/iris.py66 # Step 1: Request a presigned upload URLCOMMENT
LOWhindsight-api-slim/hindsight_api/engine/parsers/iris.py77 # Step 2: Upload the file bytes to the presigned URL (no auth header)COMMENT
LOWhindsight-api-slim/hindsight_api/engine/parsers/iris.py86 # Step 3: Start extractionCOMMENT
LOWhindsight-api-slim/hindsight_api/engine/parsers/iris.py95 # Step 4: Poll until ready or timeoutCOMMENT
LOW…t-api-slim/hindsight_api/engine/parsers/llama_parse.py62 # Step 1: Upload file and start parse jobCOMMENT
LOW…t-api-slim/hindsight_api/engine/parsers/llama_parse.py72 # Step 2: Poll job status until SUCCESS or ERRORCOMMENT
LOW…t-api-slim/hindsight_api/engine/parsers/llama_parse.py94 # Step 3: Fetch the markdown resultCOMMENT
LOW…ight-api-slim/hindsight_api/engine/search/retrieval.py881 # Step 1: Extract temporal constraint first (CPU work, no DB)STRING
LOW…ight-api-slim/hindsight_api/engine/search/retrieval.py890 # Step 2: Run semantic + BM25 + temporal combined in ONE connection!STRING
LOW…ight-api-slim/hindsight_api/engine/search/retrieval.py942 # Step 3: Run graph retrieval for each fact type in parallelSTRING
LOW…pi-slim/hindsight_api/engine/retain/fact_extraction.py2128 # Step 4: Retrieve resultsSTRING
LOW…pi-slim/hindsight_api/engine/retain/fact_extraction.py2134 # Step 5: Parse results into facts (same as sync mode)STRING
LOW…pi-slim/hindsight_api/engine/retain/fact_extraction.py2439 # Step 7: Add temporal offsetsSTRING
LOW…pi-slim/hindsight_api/engine/retain/fact_extraction.py2442 # Step 8: Auto-tag facts from label groups with tag=TrueSTRING
LOW…pi-slim/hindsight_api/engine/retain/fact_extraction.py2563 # Step 2: Wait for all fact extractions to complete.STRING
LOW…pi-slim/hindsight_api/engine/retain/fact_extraction.py2569 # Step 3: Flatten and convert to typed objectsSTRING
LOW…pi-slim/hindsight_api/engine/retain/fact_extraction.py2641 # Step 4: For verbatim mode, collapse to one fact per chunk with original textSTRING
LOW…pi-slim/hindsight_api/engine/retain/fact_extraction.py2645 # Step 5: Add time offsets to preserve ordering within each contentSTRING
LOW…pi-slim/hindsight_api/engine/retain/fact_extraction.py2648 # Step 6: Auto-tag facts from label groups with tag=TrueSTRING
LOW…pi-slim/hindsight_api/engine/retain/fact_extraction.py2023 # Step 1: Chunk all contents and build batch requests (skip if resuming)STRING
LOW…pi-slim/hindsight_api/engine/retain/fact_extraction.py2065 # Step 2: Submit batch (skip if resuming)STRING
LOW…pi-slim/hindsight_api/engine/retain/fact_extraction.py2102 # Step 3: Poll until completeSTRING
LOW…pi-slim/hindsight_api/engine/retain/fact_extraction.py2399 # Step 6: Convert to ExtractedFact objects with proper chunk mappingSTRING
LOW…pi-slim/hindsight_api/engine/retain/fact_extraction.py2548 # Step 1: Create parallel fact extraction tasksSTRING
LOW.github/workflows/release.yml424 # # Step 1: Build for local testing (single platform, no push)COMMENT
LOW.github/workflows/release.yml438 # # Step 2: Test the image before pushing anythingCOMMENT
LOW…ndsight-integrations/claude-code/scripts/lib/daemon.py181 # Step 1: Configure profileCOMMENT
LOW…ndsight-integrations/claude-code/scripts/lib/daemon.py213 # Step 2: Start daemonCOMMENT
LOW…ndsight-integrations/claude-code/scripts/lib/daemon.py231 # Step 3: Wait for ready (poll health endpoint)COMMENT
LOWhindsight-integrations/cursor/scripts/lib/daemon.py151 # Step 1: Configure profileCOMMENT
LOWhindsight-integrations/cursor/scripts/lib/daemon.py181 # Step 2: Start daemonCOMMENT
LOWhindsight-integrations/cursor/scripts/lib/daemon.py199 # Step 3: Wait for readyCOMMENT
LOWhindsight-integrations/codex/scripts/lib/daemon.py155 # Step 1: Configure profileCOMMENT
LOWhindsight-integrations/codex/scripts/lib/daemon.py187 # Step 2: Start daemonCOMMENT
LOWhindsight-integrations/codex/scripts/lib/daemon.py205 # Step 3: Wait for readyCOMMENT
LOW…ght-integrations/litellm/hindsight_litellm/__init__.py584 # Step 1: Inject memories (raises HindsightError on failure)COMMENT
LOW…ght-integrations/litellm/hindsight_litellm/__init__.py597 # Step 2: Call original LLMCOMMENT
10 more matches not shown…
Cross-Language Confusion19 hits · 94 pts
SeverityFileLineSnippetContext
HIGHhindsight-api-slim/tests/test_document_transfer.py758 # Embeddings were regenerated locally (not null) in the destination.COMMENT
HIGHhindsight-api-slim/tests/test_entity_labels.py111 # Single-value: Pydantic emits anyOf[{enum: [...]}, {type: null}]COMMENT
HIGHhindsight-api-slim/tests/test_entity_labels.py719 # engagement is null, but topic is setCOMMENT
HIGHhindsight-api-slim/tests/test_entity_labels.py836 # engagement: single-value → anyOf[{enum: [...]}, {type: null}]COMMENT
HIGHhindsight-api-slim/tests/test_entity_labels.py1419 assert len(texts) == 1 # role was null, so only nameCODE
HIGHhindsight-api-slim/tests/test_reflect_empty_based_on.py63 assert isinstance(based_on, dict), f"based_on should be dict or null, got {type(based_on)}: {based_on}"CODE
HIGHhindsight-api-slim/tests/test_reflect_empty_based_on.py99 # When include.facts is not set, based_on should not be in response (or be null)COMMENT
HIGH…ight-api-slim/tests/test_oracle_backend_integration.py544 """JSON_MERGEPATCH — Oracle equivalent of PG's || for JSONB concatenation."""STRING
HIGHhindsight-api-slim/hindsight_api/api/http.py1974 "show event time (falls back to `created_at` per row when null)."CODE
HIGHhindsight-api-slim/hindsight_api/api/http.py78 Such a field is in the OpenAPI ``required`` set but may serialize to null, so droppingSTRING
HIGHhindsight-api-slim/hindsight_api/api/http.py1525 without changing the bank. Unset (null) fields fall back to the bank's resolved config.STRING
HIGH…ndsight-api-slim/hindsight_api/engine/memory_engine.py12981 # - Untagged directives (tags=[] or null) always apply regardless of reflect tagsSTRING
HIGH…ight-api-slim/hindsight_api/engine/search/reranking.py318 # NaN as JSON null, which breaks clients expecting numeric values.COMMENT
HIGH…ght-api-slim/hindsight_api/engine/db/ops_postgresql.py757 AND mu.source_memory_ids && ca.source_idsCODE
HIGH…pi-slim/hindsight_api/engine/retain/fact_extraction.py1021 lines.append(f"- {attr.key} (free text or null): {attr.description}")CODE
HIGH…ight_client_api/models/memories_timeseries_response.py33 time_field: Optional[StrictStr] = Field(default='created_at', description="Timestamp column used to assign each row CODE
HIGH…hindsight_client_api/models/dry_run_extract_request.py28 Request to run fact extraction ONLY (no resolution/links/embeddings/persistence). Every field below the content/conSTRING
HIGHhindsight-dev/benchmarks/obs/obs_benchmark.py19 cd hindsight-dev && uv run python -m benchmarks.obs.obs_benchmarkSTRING
HIGH…ht-integrations/litellm/hindsight_litellm/callbacks.py391 # include_entities=False -> include: {entities: null}COMMENT
Example Usage Blocks18 hits · 27 pts
SeverityFileLineSnippetContext
LOWhindsight-cli/smoke-test.sh8# Usage:COMMENT
LOWdocker/test-image.sh8# Usage:COMMENT
LOWdocker/test-slim-local.sh8# Usage:COMMENT
LOWdocker/docker-compose/pg_textsearch/docker-compose.yaml8# Usage:COMMENT
LOWdocker/docker-compose/external-pg/docker-compose.yaml7# Usage:COMMENT
LOW…ker/docker-compose/s3-file-storage/docker-compose.yaml10# Usage:COMMENT
LOWdocker/docker-compose/alloydb/docker-compose.yaml5# Usage:COMMENT
LOWdocker/docker-compose/vchord/docker-compose.yaml8# Usage:COMMENT
LOWdocker/docker-compose/pg_search/docker-compose.yaml7# Usage:COMMENT
LOWscripts/run-upgrade-tests.sh5# Usage:COMMENT
LOWscripts/smoke-test-slim.sh8# Usage:COMMENT
LOWscripts/benchmarks/publish-obs-results.sh15# Usage:COMMENT
LOWscripts/benchmarks/run-perf-test.sh4# Usage:COMMENT
LOWscripts/benchmarks/publish-perf-results.sh13# Usage:COMMENT
LOWscripts/benchmarks/publish-locomo-results.sh14# Usage:COMMENT
LOWscripts/dev/setup.sh12# Usage:COMMENT
LOWscripts/dev/start-oracle.sh6# Usage:COMMENT
LOWhindsight-integrations/openclaw/scripts/smoke-test.sh32# Usage:COMMENT
AI Slop Vocabulary9 hits · 24 pts
SeverityFileLineSnippetContext
LOWhindsight-api-slim/tests/test_extensions.py817 # Should not raise - no tenant extension configured, just pass empty RequestContextCOMMENT
MEDIUMhindsight-api-slim/tests/test_delta_editorial_fusion.py127 # Phase 1: Ingest SEO best practicesCOMMENT
MEDIUMhindsight-api-slim/tests/test_tags_visibility.py1457# SET of signatures returned rather than raw counts, so they are robust to how manyCOMMENT
MEDIUM…pi-slim/hindsight_api/engine/retain/fact_extraction.py832# Verbose extraction prompt - detailed, comprehensive facts (legacy mode)COMMENT
MEDIUMscripts/generate-docs-skill.sh64 # Use Python for more robust processingCOMMENT
LOW…sight-integrations/litellm/hindsight_litellm/config.py305 >>> # Minimal usage - just set HINDSIGHT_API_KEY env varSTRING
MEDIUMhindsight-integrations/coding-agents/e2e/run-harness.sh23# runner stays harness-neutral as more CLI adapters are added.COMMENT
MEDIUM…t-integrations/coding-agents/src/core/session-start.ts227 // structural pages track an evolving architecture. Branch-robust: read theCOMMENT
MEDIUMhindsight-integrations/coding-agents/src/e2e/harness.ts208 writeFileSync(join(workDir, "README.md"), "# Hindsight harness E2E fixture\n");CODE
Synthetic Comment Markers1 hit · 8 pts
SeverityFileLineSnippetContext
HIGHhindsight-clients/python/hindsight_client_api/rest.py194 # Content-Type which generated by aiohttpCOMMENT
Slop Phrases5 hits · 7 pts
SeverityFileLineSnippetContext
MEDIUM…ndsight-api-slim/tests/test_fact_extraction_quality.py178I'm unable to attend the conference due to scheduling conflicts.CODE
LOW…ndsight-api-slim/tests/test_fact_extraction_quality.py1003 don't forget to subscribe" were being extracted as facts.CODE
LOW…ndsight-api-slim/tests/test_fact_extraction_quality.py1009Marcus: Welcome everyone to today's episode! Before we dive in, don't forget toCODE
MEDIUM…ndsight-api-slim/tests/test_fact_extraction_quality.py206 "'He's an expert in machine learning.', 'I'm unable to attend the conference due "STRING
LOW…ndsight-api-slim/tests/test_fact_extraction_quality.py1023Don't forget to tap follow or subscribe, tell a friend, and drop a quick ratingCODE
Dead Code2 hits · 4 pts
SeverityFileLineSnippetContext
MEDIUMhindsight-api-slim/tests/test_llm_trace.py865CODE
MEDIUMhindsight-api-slim/tests/test_llm_trace.py870CODE
Overly Generic Function Names2 hits · 1 pts
SeverityFileLineSnippetContext
LOWhindsight-api-slim/hindsight_api/worker/poller.py714 async def execute_task(self, task: ClaimedTask):STRING
LOW…ndsight-api-slim/hindsight_api/engine/memory_engine.py2005 async def execute_task(self, task_dict: dict[str, Any]):CODE