AI Slop Code RIsk Monitor

vectorize-io/hindsight

Hindsight: Agent Memory That Learns

28.3 Elevated pattern signal View on GitHub

Maintenance and Governance Review

This report summarizes scanner evidence for vectorize-io/hindsight, a Python project with 48,119 GitHub stars. SynthScan examined 1,140,646 lines of code across 4210 source files, recording 19749 pattern matches distributed across 26 syntactic categories. The legacy adjusted pattern signal is 28.3 (Elevated pattern signal); it is not an authorship estimate.

Use the findings to ask whether maintainers can explain intent, verify dependencies, simplify unnecessary scaffolding, and focus review effort. Risk Payload v1 adds ownership, supply-chain, over-engineering, and review-effort vectors when available. These are prompts for human verification, not probabilities, security findings, or measured maintenance costs.

28.3
Adjusted Signal
28.3
Raw Pattern Score
100%
Time Factor
2026-10-10
Last Push
48.1K
Stars
Python
Language
1.1M
Lines of Code
4.2K
Files
19.7K
Pattern Hits
2026-10-12
Scan Date
0.45
HC Hit Rate

Risk Review · v3

Use each vector to guide manual verification of the underlying findings.

Cognitive Ownership Risk 43.6/100 · MEDIUM

Can maintainers explain intent, assumptions, and trade-offs? 12638 finding(s).

Hallucinated Dependency & Supply Chain Risk 13.4/100 · LOW

Are imports declared and package/API names verified? 2417 finding(s).

Agent Over-Engineering Ratio 68.7/100 · HIGH

Are wrappers, guards, and repeated structures necessary? 15805 finding(s).

PR Review Velocity Impact 77.1/100 · CRITICAL

Which changes need focused human review? 19749 finding(s).

What These Metrics Mean

Adjusted Signal
Legacy pattern score normalized per 1,000 scanned lines and multiplied by the repository-level time factor. It is not an estimate of AI authorship.
Raw Pattern Score
Sum of severity- and context-weighted pattern findings before applying the time factor.
Time Factor
A coarse multiplier based on repository last-push metadata. It does not identify when individual code was written.
Pattern Hits
Count of configured pattern findings. Review each location and surrounding code before acting.
HC Hit Rate
High- and critical-severity findings per scanned file. Severity is a configured detector weight, not proof of a vulnerability or authorship.
Lines / Files
Scan coverage denominators used by the legacy normalized score.

Pattern-Signal History

This chart tracks the legacy adjusted pattern score across scan runs. Changes can reflect source changes, scan coverage, or detector/scoring versions; they do not measure AI adoption or prove that a team refactored code. Compare runs only when their scoring versions are compatible. The dashed line tracks the raw pattern-hit count.

Severity Breakdown

Groups findings by configured severity weight. Severity is not a confidence estimate, security rating, or proof that a package is missing. Verify imports against the project's manifests and inspect each finding in its local design context.

CRITICAL 16HIGH 1862MEDIUM 2229LOW 15642

Directory Score Breakdown

This horizontal bar chart shows where configured pattern scores accumulate across directories. Treat the bars as locations to inspect, not as evidence of authorship or code quality. Use the file-level findings to decide whether a directory needs a focused ownership, dependency, complexity, or review check.

Pattern Findings

The scanner identified 19749 distinct pattern matches across 26 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a detector match to inspect in context. 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 configured finding weight (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — legacy comment-context matches receive a ×1.5 score weight. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier under the legacy scoring model.

Hyper-Verbose Identifiers10865 hits · 10439 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
LOW⚡hindsight-all/tests/test_embedded_namespaces.py38def test_mental_models_list_ensures_daemon_started(embedded_client):CODE
LOW⚡hindsight-all/tests/test_embedded_namespaces.py52def test_directives_list_ensures_daemon_started(embedded_client):CODE
LOW⚡hindsight-all/tests/test_embedded_namespaces.py66def test_memories_list_ensures_daemon_started(embedded_client):CODE
LOW⚡hindsight-all/tests/test_embedded_namespaces.py80def test_multiple_calls_ensure_daemon_each_time(embedded_client):CODE
LOW⚡hindsight-all/tests/test_embedded_namespaces.py106def test_daemon_restart_handling(embedded_client):CODE
LOWhindsight-all/tests/test_embedded_namespaces.py20def test_banks_create_ensures_daemon_started(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_embedded_config.py93def test_nothing_is_forwarded_when_nothing_is_specified(temp_home):CODE
LOWhindsight-all/tests/test_embedded_config.py97def test_explicitly_passed_settings_are_forwarded(temp_home):CODE
LOW⚡hindsight-all/tests/test_embedded_config.py116def test_empty_api_key_is_forwarded_as_an_override(temp_home):CODE
LOW⚡hindsight-all/tests/test_embedded_config.py125def test_idle_timeout_zero_is_forwarded(temp_home):CODE
LOW⚡hindsight-all/tests/test_embedded_config.py130def test_omitted_key_inherits_the_parent_environment(temp_home, monkeypatch):CODE
LOW⚡hindsight-all/tests/test_embedded_config.py139def test_omitted_settings_inherit_the_profile_env(temp_home, monkeypatch):CODE
LOWhindsight-all/tests/test_embedded_config.py165def test_explicit_empty_key_overrides_the_parent_environment(temp_home, monkeypatch):CODE
LOWhindsight-all/tests/test_embedded_config.py174def test_explicit_settings_still_win_over_the_profile(temp_home, monkeypatch):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
LOW…sions/supabase-tenant/tests/test_package_entrypoint.py18def test_class_is_exported_from_the_package_root():CODE
LOW…sions/supabase-tenant/tests/test_package_entrypoint.py26def test_documented_env_value_loads_the_extension():CODE
LOW⚡…tensions/supabase-tenant/tests/test_supabase_tenant.py178 def test_init_with_valid_config(self, make_extension):CODE
LOW⚡…tensions/supabase-tenant/tests/test_supabase_tenant.py188 def test_init_missing_supabase_url(self):CODE
LOW⚡…tensions/supabase-tenant/tests/test_supabase_tenant.py192 def test_init_without_service_key(self, make_extension):CODE
LOW⚡…tensions/supabase-tenant/tests/test_supabase_tenant.py197 def test_init_default_schema_prefix(self, make_extension):CODE
LOW⚡…tensions/supabase-tenant/tests/test_supabase_tenant.py201 def test_init_custom_schema_prefix(self, make_extension):CODE
LOW⚡…tensions/supabase-tenant/tests/test_supabase_tenant.py205 def test_init_strips_trailing_slash(self, make_extension):CODE
LOW⚡…tensions/supabase-tenant/tests/test_supabase_tenant.py209 def test_init_rejects_invalid_schema_prefix(self, make_extension):CODE
LOW⚡…tensions/supabase-tenant/tests/test_supabase_tenant.py214 def test_init_rejects_empty_schema_prefix(self, make_extension):CODE
LOW⚡…tensions/supabase-tenant/tests/test_supabase_tenant.py218 def test_init_rejects_schema_prefix_starting_with_digit(self, make_extension):CODE
LOW⚡…tensions/supabase-tenant/tests/test_supabase_tenant.py222 def test_init_allows_underscore_prefix(self, make_extension):CODE
LOW⚡…tensions/supabase-tenant/tests/test_supabase_tenant.py226 def test_is_tenant_extension_subclass(self, make_extension):CODE
LOW⚡…tensions/supabase-tenant/tests/test_supabase_tenant.py239 async def test_on_startup_creates_http_client(self, supabase, make_extension):CODE
LOW⚡…tensions/supabase-tenant/tests/test_supabase_tenant.py249 async def test_on_startup_fetches_jwks(self, supabase, make_extension):CODE
LOW⚡…tensions/supabase-tenant/tests/test_supabase_tenant.py262 async def test_on_startup_falls_back_to_legacy_when_jwks_empty(self, supabase, make_extension):CODE
LOW⚡…tensions/supabase-tenant/tests/test_supabase_tenant.py272 async def test_on_startup_falls_back_to_legacy_when_jwks_fetch_fails(self, make_extension):CODE
LOW⚡…tensions/supabase-tenant/tests/test_supabase_tenant.py280 async def test_on_startup_falls_back_to_legacy_when_jwks_returns_error(self, supabase, make_extension):CODE
LOW⚡…tensions/supabase-tenant/tests/test_supabase_tenant.py289 async def test_on_startup_raises_if_no_jwks_and_no_service_key(self, supabase, make_extension):CODE
LOW⚡…tensions/supabase-tenant/tests/test_supabase_tenant.py296 async def test_on_startup_health_check_with_service_key(self, supabase, make_extension):CODE
LOW⚡…tensions/supabase-tenant/tests/test_supabase_tenant.py328 async def test_get_signing_key_from_cache(self, make_extension):CODE
LOW⚡…tensions/supabase-tenant/tests/test_supabase_tenant.py337 async def test_get_signing_key_refreshes_stale_cache(self, supabase, make_extension):CODE
LOW⚡…tensions/supabase-tenant/tests/test_supabase_tenant.py376 async def test_get_signing_key_missing_kid_header(self, make_extension):CODE
LOW⚡…tensions/supabase-tenant/tests/test_supabase_tenant.py384 async def test_get_signing_key_refresh_network_error(self, make_extension):CODE
LOW⚡…tensions/supabase-tenant/tests/test_supabase_tenant.py487 async def test_authenticate_valid_token(self, supabase, make_extension):CODE
LOW⚡…tensions/supabase-tenant/tests/test_supabase_tenant.py544 async def test_authenticate_connection_error(self, make_extension):CODE
LOW⚡…tensions/supabase-tenant/tests/test_supabase_tenant.py559 async def test_authenticate_missing_token(self, make_extension):CODE
LOW⚡…tensions/supabase-tenant/tests/test_supabase_tenant.py565 async def test_authenticate_empty_token(self, make_extension):CODE
LOW⚡…tensions/supabase-tenant/tests/test_supabase_tenant.py571 async def test_authenticate_short_token(self, make_extension):CODE
LOW⚡…tensions/supabase-tenant/tests/test_supabase_tenant.py577 async def test_authenticate_not_initialized(self, make_extension):CODE
LOW⚡…tensions/supabase-tenant/tests/test_supabase_tenant.py585 async def test_authenticate_rejects_non_uuid_user_id(self, make_extension, sub):CODE
LOW⚡…tensions/supabase-tenant/tests/test_supabase_tenant.py692 async def test_on_shutdown_closes_client(self, supabase, make_extension):CODE
10805 more matches not shown…
Decorative Section Separators1907 hits · 6849 pts
SeverityFileLineSnippetContext
MEDIUMhindsight-cli/.openapi-coverage.toml20# ---------------------------------------------------------------------------COMMENT
MEDIUMhindsight-cli/.openapi-coverage.toml22# ---------------------------------------------------------------------------COMMENT
MEDIUMhindsight-cli/.openapi-coverage.toml103# ---------------------------------------------------------------------------COMMENT
MEDIUMhindsight-cli/.openapi-coverage.toml105# ---------------------------------------------------------------------------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
MEDIUM⚡docker/standalone/start-all.sh219# =============================================================================COMMENT
MEDIUM⚡docker/standalone/start-all.sh225# =============================================================================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.sh93# =============================================================================COMMENT
MEDIUMdocker/standalone/start-all.sh103# =============================================================================COMMENT
MEDIUMdocker/standalone/start-all.sh127# =============================================================================COMMENT
MEDIUMdocker/standalone/start-all.sh138# =============================================================================COMMENT
MEDIUMdocker/standalone/start-all.sh155# =============================================================================COMMENT
MEDIUMdocker/standalone/start-all.sh185# =============================================================================COMMENT
MEDIUMdocker/standalone/start-all.sh286# =============================================================================COMMENT
MEDIUMdocker/standalone/start-all.sh298# =============================================================================COMMENT
MEDIUMdocker/standalone/test-start-all.sh57# =============================================================================COMMENT
MEDIUMdocker/standalone/test-start-all.sh67# =============================================================================COMMENT
MEDIUMdocker/standalone/test-start-all.sh151# =============================================================================COMMENT
MEDIUMdocker/standalone/test-start-all.sh153# =============================================================================COMMENT
MEDIUMdocker/standalone/test-start-all.sh186# =============================================================================COMMENT
MEDIUMdocker/standalone/test-start-all.sh189# =============================================================================COMMENT
MEDIUMdocker/standalone/test-start-all.sh234# =============================================================================COMMENT
MEDIUMdocker/standalone/test-start-all.sh246# =============================================================================COMMENT
MEDIUM⚡docker/docker-compose/claude-code/docker-compose.yaml25 # ── Persistent data ────────────────────────────────────────────COMMENT
MEDIUM⚡docker/docker-compose/claude-code/docker-compose.yaml29 # ── Claude credentials (read-only, single-file mounts) ────────COMMENT
MEDIUM⚡docker/docker-compose/claude-code/docker-compose.yaml36 # ── Claude CLI install (read-only) ─────────────────────────────COMMENT
MEDIUM⚡docker/docker-compose/claude-code/docker-compose.yaml39 # ── SDK bundled-binary override ────────────────────────────────COMMENT
MEDIUM⚡…tensions/supabase-tenant/tests/test_supabase_tenant.py170# ======================================================================COMMENT
MEDIUM⚡…tensions/supabase-tenant/tests/test_supabase_tenant.py172# ======================================================================COMMENT
MEDIUM⚡…tensions/supabase-tenant/tests/test_supabase_tenant.py231# ======================================================================COMMENT
MEDIUM⚡…tensions/supabase-tenant/tests/test_supabase_tenant.py233# ======================================================================COMMENT
MEDIUM⚡…tensions/supabase-tenant/tests/test_supabase_tenant.py320# ======================================================================COMMENT
MEDIUM⚡…tensions/supabase-tenant/tests/test_supabase_tenant.py322# ======================================================================COMMENT
MEDIUM⚡…tensions/supabase-tenant/tests/test_supabase_tenant.py395# ======================================================================COMMENT
MEDIUM⚡…tensions/supabase-tenant/tests/test_supabase_tenant.py397# ======================================================================COMMENT
MEDIUM⚡…tensions/supabase-tenant/tests/test_supabase_tenant.py479# ======================================================================COMMENT
MEDIUM⚡…tensions/supabase-tenant/tests/test_supabase_tenant.py481# ======================================================================COMMENT
MEDIUM⚡…tensions/supabase-tenant/tests/test_supabase_tenant.py551# ======================================================================COMMENT
MEDIUM⚡…tensions/supabase-tenant/tests/test_supabase_tenant.py553# ======================================================================COMMENT
MEDIUM⚡…tensions/supabase-tenant/tests/test_supabase_tenant.py684# ======================================================================COMMENT
MEDIUM⚡…tensions/supabase-tenant/tests/test_supabase_tenant.py686# ======================================================================COMMENT
MEDIUM⚡…tensions/supabase-tenant/tests/test_supabase_tenant.py711# ======================================================================COMMENT
MEDIUM⚡…tensions/supabase-tenant/tests/test_supabase_tenant.py713# ======================================================================COMMENT
MEDIUM…tensions/supabase-tenant/tests/test_supabase_tenant.py56# ----------------------------------------------------------------------COMMENT
MEDIUM…tensions/supabase-tenant/tests/test_supabase_tenant.py58# ----------------------------------------------------------------------COMMENT
MEDIUM…tensions/supabase-tenant/tests/test_supabase_tenant.py600# ======================================================================COMMENT
MEDIUM…tensions/supabase-tenant/tests/test_supabase_tenant.py602# ======================================================================COMMENT
MEDIUM…tensions/supabase-tenant/tests/test_supabase_tenant.py652# ======================================================================COMMENT
MEDIUM…tensions/supabase-tenant/tests/test_supabase_tenant.py654# ======================================================================COMMENT
MEDIUM…base-tenant/hindsight_ext_supabase_tenant/extension.py156 # ------------------------------------------------------------------COMMENT
MEDIUM…base-tenant/hindsight_ext_supabase_tenant/extension.py158 # ------------------------------------------------------------------COMMENT
MEDIUM…base-tenant/hindsight_ext_supabase_tenant/extension.py197 # ------------------------------------------------------------------COMMENT
MEDIUM…base-tenant/hindsight_ext_supabase_tenant/extension.py199 # ------------------------------------------------------------------COMMENT
1847 more matches not shown…
Cross-File Repetition1344 hits · 6720 pts
SeverityFileLineSnippetContext
HIGHCLAUDE.md0schema-qualifier for raw sql on pg (multi-tenant search_path).STRING
HIGH…bic/versions/d4f8b1c6e903_add_bank_alias_is_primary.py0schema-qualifier for raw sql on pg (multi-tenant search_path).STRING
HIGH…ons/c4e8a1b7d2f6_memory_units_bank_updated_at_index.py0schema-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…_api/alembic/versions/c8d1e4f7a20b_add_bank_aliases.py0schema-qualifier for raw sql on pg (multi-tenant search_path).STRING
HIGH…ons/d9c1a7b4e2f6_async_operations_serialization_key.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…ersions/f3a5b7c9d1e2_drop_memory_units_bm25_matview.py0schema-qualifier for raw sql on pg (multi-tenant search_path).STRING
HIGH…ersions/a7c2e9f41b60_attachment_belongs_to_document.py0schema-qualifier for raw sql on pg (multi-tenant search_path).STRING
HIGH…s/e7c3a91f4b62_add_mental_model_last_memory_seen_at.py0schema-qualifier for raw sql on pg (multi-tenant search_path).STRING
HIGH…8c4b1e9_drop_stale_global_memory_units_vector_index.py0schema-qualifier for raw sql on pg (multi-tenant search_path).STRING
HIGH…rsions/7c2e5a9d1f40_entities_bank_scoped_trgm_index.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/c4f7a91b2d38_add_entity_maintenance_queue.py0schema-qualifier for raw sql on pg (multi-tenant search_path).STRING
HIGH…t_api/alembic/versions/e2f4a6c8b0d1_add_attachments.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…ersions/e4a7c1b9d2f6_drop_memory_units_access_count.py0schema-qualifier for raw sql on pg (multi-tenant search_path).STRING
HIGH…1e2f3a4b5c6_drop_v1_mental_model_structured_content.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…d3f1a6c2e4_add_mental_models_last_refresh_failed_at.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
HIGH…ersions/b3e8d1c6f4a9_entity_kind_partial_trgm_index.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…pi-slim/tests/test_content_policy_refusal_permanent.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, $5)STRING
HIGH…m/tests/test_consolidation_batch_failure_visibility.py0insert into memory_units (id, bank_id, text, fact_type, tags, created_at) values ($1, $2, $3, 'experience', $4, $5)STRING
HIGH…ght-api-slim/tests/test_consolidation_delete_schema.py0insert into memory_units (id, bank_id, text, fact_type, tags, created_at) values ($1, $2, $3, 'experience', $4, $5)STRING
HIGH…t-api-slim/tests/test_consolidation_batch_atomicity.py0insert into memory_units (id, bank_id, text, fact_type, tags, created_at) values ($1, $2, $3, 'experience', $4, $5)STRING
HIGH…api-slim/tests/test_consolidation_failure_isolation.py0insert into memory_units (id, bank_id, text, fact_type, tags, created_at) values ($1, $2, $3, 'experience', $4, $5)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, $5)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, $5)STRING
HIGH…dsight-api-slim/tests/test_consolidation_fair_fetch.py0insert into memory_units (id, bank_id, text, fact_type, tags, created_at) values ($1, $2, $3, 'experience', $4, $5)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
HIGH…ht-api-slim/tests/test_temporal_spreading_best_path.py0insert into memory_links (from_unit_id, to_unit_id, link_type, weight, bank_id) values ($1, $2, $3, $4, $5)STRING
HIGHhindsight-api-slim/tests/test_memory_curation.py0insert into memory_links (from_unit_id, to_unit_id, link_type, weight, bank_id) values ($1, $2, $3, $4, $5)STRING
HIGHhindsight-api-slim/tests/test_graph_maintenance.py0insert into memory_links (from_unit_id, to_unit_id, link_type, weight, bank_id) values ($1, $2, $3, $4, $5)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…ndsight-api-slim/tests/test_cohere_embeddings_retry.py0auth and validation failures must not be retried — retrying cannot fix them.STRING
HIGHhindsight-api-slim/tests/test_zeroentropy_embeddings.py0auth and validation failures must not be retried — retrying cannot fix them.STRING
HIGHhindsight-api-slim/tests/test_gemini_embeddings.py0auth and validation failures must not be retried — retrying cannot fix them.STRING
HIGHhindsight-api-slim/tests/test_reranker_retry.py0auth and validation failures must not be retried — retrying cannot fix them.STRING
HIGHhindsight-api-slim/tests/test_xai_oauth_llm.py0a ``` inside a string value must not cut the payload short (#4819).STRING
HIGHhindsight-api-slim/tests/test_codex_strict_schema.py0a ``` inside a string value must not cut the payload short (#4819).STRING
1284 more matches not shown…
Unused Imports2046 hits · 1756 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
LOW…abase-tenant/hindsight_ext_supabase_tenant/__init__.py8CODE
LOW…base-tenant/hindsight_ext_supabase_tenant/extension.py52CODE
LOW…ys-tenant/hindsight_ext_static_keys_tenant/__init__.py8CODE
LOW…s-tenant/hindsight_ext_static_keys_tenant/extension.py39CODE
LOWhindsight-api-slim/tests/test_agents_api.py7CODE
LOW…dsight-api-slim/tests/test_structured_output_unions.py16CODE
LOWhindsight-api-slim/tests/test_multilingual_bm25.py10CODE
LOW…ight-api-slim/tests/test_get_entity_uuid_validation.py14CODE
LOWhindsight-api-slim/tests/test_op_cancellation.py15CODE
LOW…api-slim/tests/test_consolidation_scope_parallelism.py20CODE
LOW…pi-slim/tests/test_structured_output_numeric_bounds.py14CODE
LOWhindsight-api-slim/tests/test_batch_chunking.py5CODE
LOWhindsight-api-slim/tests/test_batch_chunking.py9CODE
LOW…i-slim/tests/test_bank_template_configurable_fields.py19CODE
LOWhindsight-api-slim/tests/test_ann_iterative_scan.py21CODE
LOWhindsight-api-slim/tests/test_ann_iterative_scan.py27CODE
LOWhindsight-api-slim/tests/test_migration_shape.py10CODE
LOW…m/tests/test_consolidation_batch_failure_visibility.py17CODE
LOW…api-slim/tests/test_consolidation_delete_prompt_llm.py16CODE
LOWhindsight-api-slim/tests/test_bank_stats_cache.py7CODE
LOWhindsight-api-slim/tests/conftest.py28CODE
LOWhindsight-api-slim/tests/conftest.py29CODE
LOWhindsight-api-slim/tests/conftest.py42CODE
LOWhindsight-api-slim/tests/conftest.py55CODE
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_enable_text_search_flag.py14CODE
LOW…ndsight-api-slim/tests/test_oracle_http_integration.py12CODE
LOW…ndsight-api-slim/tests/test_oracle_http_integration.py12CODE
LOW…dsight-api-slim/tests/test_list_banks_non_sql_store.py20CODE
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.py19CODE
LOWhindsight-api-slim/tests/test_xai_oauth_llm.py18CODE
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_extension_alembic_tree.py11CODE
1986 more matches not shown…
Empty Error Handlers224 hits · 1120 pts
SeverityFileLineSnippetContext
HIGHhindsight-all/tests/test_embedded_namespaces.py31except Exception:CODE
HIGHhindsight-all/tests/test_embedded_namespaces.py46except Exception:CODE
HIGHhindsight-all/tests/test_embedded_namespaces.py60except Exception:CODE
HIGHhindsight-all/tests/test_embedded_namespaces.py74except Exception:CODE
HIGHhindsight-all/tests/test_embedded_namespaces.py89except Exception:CODE
HIGHhindsight-all/tests/test_embedded_namespaces.py94except Exception:CODE
HIGHhindsight-all/tests/test_embedded_namespaces.py99except Exception:CODE
HIGHhindsight-api-slim/tests/conftest.py56except ImportError:CODE
HIGHhindsight-api-slim/tests/conftest.py82except Exception:CODE
HIGHhindsight-api-slim/tests/conftest.py497except oracledb.DatabaseError:CODE
HIGHhindsight-api-slim/tests/conftest.py491except oracledb.DatabaseError:CODE
HIGHhindsight-api-slim/tests/conftest.py361except Exception:CODE
HIGHhindsight-api-slim/tests/conftest.py387except Exception:CODE
HIGHhindsight-api-slim/tests/test_none_llm_provider.py55except Exception:CODE
HIGHhindsight-api-slim/tests/test_file_storage_s3.py111except httpx.HTTPError:CODE
HIGH…pi-slim/tests/test_retain_same_document_concurrency.py110except Exception:CODE
HIGHhindsight-api-slim/tests/test_load_large_batch.py121except Exception:CODE
HIGH…ight-api-slim/tests/test_tracing_spans_verification.py113except Exception:CODE
HIGHhindsight-api-slim/tests/test_profiling.py26except Exception:CODE
HIGHhindsight-api-slim/tests/test_extensions.py310except Exception:CODE
HIGHhindsight-api-slim/tests/test_extensions.py318except Exception:CODE
HIGHhindsight-api-slim/tests/test_extensions.py618except Exception:CODE
HIGHhindsight-api-slim/tests/test_temporal_ranges.py21except Exception:CODE
HIGH…-api-slim/tests/test_consolidation_failure_recovery.py54except Exception:CODE
HIGHhindsight-api-slim/tests/test_read_backend.py45except Exception:CODE
HIGHhindsight-api-slim/tests/test_read_backend.py66except Exception:CODE
HIGH…ight-api-slim/tests/test_custom_embedding_dimension.py599except Exception:CODE
HIGH…ight-api-slim/tests/test_custom_embedding_dimension.py661except Exception:CODE
HIGH…ight-api-slim/tests/test_custom_embedding_dimension.py837except Exception:CODE
HIGH…ight-api-slim/tests/test_oracle_backend_integration.py121except Exception:CODE
HIGH…ight-api-slim/tests/test_oracle_backend_integration.py136except Exception:CODE
HIGH…ight-api-slim/tests/test_oracle_backend_integration.py131except Exception:CODE
HIGHhindsight-api-slim/tests/test_worker.py3343except asyncio.CancelledError:CODE
HIGHhindsight-api-slim/tests/test_worker.py3437except asyncio.CancelledError:CODE
HIGHhindsight-api-slim/tests/test_worker.py3543except asyncio.CancelledError:CODE
HIGHhindsight-api-slim/tests/test_worker.py3650except asyncio.CancelledError:CODE
HIGHhindsight-api-slim/tests/test_worker.py3729except asyncio.CancelledError:CODE
HIGHhindsight-api-slim/tests/test_batch_api.py220except Exception:CODE
HIGHhindsight-api-slim/tests/test_batch_api.py667except Exception:CODE
HIGHhindsight-api-slim/tests/test_batch_api.py768except Exception:CODE
HIGHhindsight-api-slim/tests/test_batch_api.py877except Exception:CODE
HIGHhindsight-api-slim/tests/test_batch_api.py936except Exception:CODE
HIGHhindsight-api-slim/tests/test_retain.py3336except Exception:CODE
HIGHhindsight-api-slim/tests/test_multilingual.py128except Exception:CODE
HIGHhindsight-api-slim/tests/test_multilingual.py313except Exception:CODE
HIGHhindsight-api-slim/tests/test_bank_stats.py405except Exception:CODE
HIGHhindsight-api-slim/tests/e2e_oracle_smoke.py88except oracledb.DatabaseError:CODE
HIGHhindsight-api-slim/tests/e2e_oracle_smoke.py277except Exception:CODE
HIGHhindsight-api-slim/tests/e2e_oracle_smoke.py83except oracledb.DatabaseError:CODE
HIGHhindsight-api-slim/tests/e2e_oracle_smoke.py271except Exception:CODE
HIGH…t-api-slim/tests/test_retain_document_serialization.py456except _Rollback:CODE
HIGH…t-api-slim/tests/test_retain_document_serialization.py780except Exception:CODE
HIGH…ght-api-slim/tests/test_verify_connection_soft_fail.py40except Exception:CODE
HIGH…ght-api-slim/tests/test_verify_connection_soft_fail.py120except Exception:CODE
HIGH…ght-api-slim/tests/test_verify_connection_soft_fail.py156except Exception:CODE
HIGHhindsight-api-slim/hindsight_api/metrics.py969except Exception:CODE
HIGHhindsight-api-slim/hindsight_api/metrics.py981except Exception:CODE
HIGHhindsight-api-slim/hindsight_api/metrics.py995except Exception:CODE
HIGHhindsight-api-slim/hindsight_api/metrics.py1002except Exception:CODE
HIGHhindsight-api-slim/hindsight_api/metrics.py1094except Exception:CODE
164 more matches not shown…
Magic Placeholder Names192 hits · 1025 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.sh103 echo "Set it with: export HINDSIGHT_API_LLM_API_KEY=your-api-key"CODE
HIGHhindsight-embed/hindsight_embed/cli.py238 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.py222 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/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.md101 "Authorization": "Bearer YOUR_API_KEY"CODE
HIGHhindsight-docs/blog/2026-03-04-mcp-agent-memory.md113 --header "Authorization: Bearer YOUR_API_KEY"CODE
HIGH…ight-docs/blog/2026-03-25-strands-persistent-memory.md177 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.md140 api_key="your-api-key", # Or set HINDSIGHT_API_KEY env varCODE
HIGHhindsight-docs/docs-integrations/copilot-cli.md41hindsight-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.md116 api_key="your-api-key", # or set HINDSIGHT_API_KEY env varCODE
HIGHhindsight-docs/docs-integrations/vapi.md133export HINDSIGHT_API_LLM_API_KEY=your-api-keyCODE
HIGHhindsight-docs/docs-integrations/openai-agents.md127 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.md153 api_key="your-api-key", # Or set HINDSIGHT_API_KEY env varCODE
HIGHhindsight-docs/docs-integrations/zcode.md24hindsight-zcode install --api-url https://api.hindsight.vectorize.io --api-token your-api-keyCODE
HIGHhindsight-docs/docs-integrations/cursor-cli.md41hindsight-cursor-cli install --api-url https://api.hindsight.vectorize.io --api-token your-api-keyCODE
HIGHhindsight-docs/docs-integrations/roo-code.md129export HINDSIGHT_API_LLM_API_KEY=your-api-keyCODE
HIGHhindsight-docs/docs-integrations/autogen.md105 api_key="your-api-key", # Or set HINDSIGHT_API_KEY env varCODE
HIGHhindsight-docs/docs-integrations/agno.md133 api_key="your-api-key", # Or set HINDSIGHT_API_KEY env varCODE
HIGHhindsight-docs/docs-integrations/opencode.md56export HINDSIGHT_API_TOKEN="your-api-key"CODE
HIGHhindsight-docs/docs-integrations/opencode.md68 "hindsightApiToken": "your-api-key"CODE
HIGHhindsight-docs/docs-integrations/opencode.md111 "hindsightApiToken": "your-api-key",CODE
HIGHhindsight-docs/docs-integrations/opencode.md133 "hindsightApiToken": "your-api-key",CODE
HIGHhindsight-docs/docs-integrations/llamaindex.md146 api_key="your-api-key", # or set HINDSIGHT_API_KEY env varCODE
HIGHhindsight-docs/docs-integrations/pipecat.md134export HINDSIGHT_API_LLM_API_KEY=your-api-keyCODE
HIGHhindsight-docs/docs-integrations/right-agent.md83 api_key: your-api-key # or omit to use HINDSIGHT_API_KEY env varCODE
HIGHhindsight-docs/docs-integrations/right-agent.md95export HINDSIGHT_API_KEY=your-api-keyCODE
HIGHhindsight-docs/docs-integrations/haystack.md98 api_key="your-api-key",CODE
HIGHhindsight-docs/docs-integrations/haystack.md126export HINDSIGHT_API_LLM_API_KEY=your-api-keyCODE
HIGHhindsight-docs/docs-integrations/crewai.md89 api_key="your-api-key", # Or set HINDSIGHT_API_KEY env varCODE
HIGH…des/2026-07-17-guide-composio-memory-with-hindsight.md148 api_key="your-api-key", # or set HINDSIGHT_API_KEY env varCODE
HIGH⚡…guides/2026-05-04-guide-codex-memory-with-hindsight.md54 "hindsightApiToken": "your-api-key",CODE
HIGH…026-04-28-guide-zh-run-hindsight-cli-on-linux-arm64.md49hindsight configure --api-url https://api.hindsight.vectorize.io --api-key YOUR_API_KEYCODE
HIGH…026-04-28-guide-zh-run-hindsight-cli-on-linux-arm64.md58hindsight profile create prod --api-url https://api.hindsight.vectorize.io --api-key YOUR_API_KEYCODE
HIGH⚡…-07-17-guide-claude-agent-sdk-memory-with-hindsight.md52export HINDSIGHT_API_KEY="your-api-key"CODE
HIGH…-07-17-guide-claude-agent-sdk-memory-with-hindsight.md71 api_key="your-api-key",CODE
HIGH…des/2026-07-17-guide-nemoclaw-memory-with-hindsight.md44 --api-token <your-api-key> \CODE
HIGH⚡…/2026-05-04-guide-claude-code-memory-with-hindsight.md51 "hindsightApiToken": "your-api-key"CODE
132 more matches not shown…
Excessive Try-Catch Wrapping922 hits · 882 pts
SeverityFileLineSnippetContext
LOWhindsight-all/hindsight/server.py141 except Exception as e:CODE
LOWhindsight-all/hindsight/embedded.py187 except Exception:CODE
LOWhindsight-all/hindsight/embedded.py203 except Exception:CODE
LOWhindsight-all/hindsight/embedded.py267 except Exception:CODE
LOW⚡hindsight-all/tests/test_embedded_namespaces.py31 except Exception:CODE
LOW⚡hindsight-all/tests/test_embedded_namespaces.py46 except Exception:CODE
LOW⚡hindsight-all/tests/test_embedded_namespaces.py60 except Exception:CODE
LOW⚡hindsight-all/tests/test_embedded_namespaces.py74 except Exception:CODE
LOW⚡hindsight-all/tests/test_embedded_namespaces.py89 except Exception:CODE
LOW⚡hindsight-all/tests/test_embedded_namespaces.py94 except Exception:CODE
LOW⚡hindsight-all/tests/test_embedded_namespaces.py99 except Exception:CODE
LOW…base-tenant/hindsight_ext_supabase_tenant/extension.py220 except Exception as e:CODE
LOW…base-tenant/hindsight_ext_supabase_tenant/extension.py365 except Exception as e:CODE
LOW⚡…base-tenant/hindsight_ext_supabase_tenant/extension.py426 except Exception as e:CODE
LOW…base-tenant/hindsight_ext_supabase_tenant/extension.py451 except Exception as e:CODE
LOW⚡…s-tenant/hindsight_ext_static_keys_tenant/extension.py346 except Exception as e:CODE
LOWhindsight-api-slim/tests/test_temporal_extraction.py183 except Exception:CODE
LOWhindsight-api-slim/tests/test_temporal_extraction.py251 except Exception:CODE
LOWhindsight-api-slim/tests/conftest.py82 except Exception:CODE
LOWhindsight-api-slim/tests/conftest.py361 except Exception:CODE
LOWhindsight-api-slim/tests/conftest.py387 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.py562 except Exception as e:STRING
LOW⚡hindsight-api-slim/tests/test_oracle_integration.py67 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.py228 except Exception as e:CODE
LOW…ight-api-slim/tests/test_tracing_spans_verification.py113 except Exception:CODE
LOW⚡hindsight-api-slim/tests/test_zeroentropy_embeddings.py302 except Exception as exc:CODE
LOW…lim/tests/test_consolidation_silent_requeue_failure.py8 except Exception as e:STRING
LOW⚡hindsight-api-slim/tests/test_profiling.py26 except Exception:CODE
LOW⚡hindsight-api-slim/tests/test_append_conflict_defers.py29 except Exception as inner:CODE
LOW⚡hindsight-api-slim/tests/test_append_conflict_defers.py31 except Exception as outer:CODE
LOW⚡hindsight-api-slim/tests/test_extensions.py310 except Exception:CODE
LOW⚡hindsight-api-slim/tests/test_extensions.py318 except Exception:CODE
LOWhindsight-api-slim/tests/test_extensions.py618 except Exception:CODE
LOWhindsight-api-slim/tests/test_temporal_ranges.py21 except Exception:CODE
LOW…-api-slim/tests/test_consolidation_failure_recovery.py54 except Exception:CODE
LOWhindsight-api-slim/tests/test_batch_api_integration.py239 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
LOW⚡hindsight-api-slim/tests/test_read_backend.py66 except Exception:CODE
LOW⚡…ight-api-slim/tests/test_custom_embedding_dimension.py661 except Exception:CODE
LOW⚡…ight-api-slim/tests/test_custom_embedding_dimension.py837 except Exception:CODE
LOW…ight-api-slim/tests/test_custom_embedding_dimension.py92 except Exception:CODE
LOW…ight-api-slim/tests/test_custom_embedding_dimension.py112 except Exception as e:CODE
LOW…ight-api-slim/tests/test_custom_embedding_dimension.py141 except Exception as e:CODE
LOW…ight-api-slim/tests/test_custom_embedding_dimension.py599 except Exception:CODE
LOW⚡…sight-api-slim/tests/test_store_backpressure_defers.py54 except Exception as inner:CODE
LOW⚡…sight-api-slim/tests/test_store_backpressure_defers.py56 except Exception as outer:CODE
LOW⚡…sight-api-slim/tests/test_store_backpressure_defers.py65 except Exception:CODE
LOW⚡…sight-api-slim/tests/test_store_backpressure_defers.py67 except Exception as outer:CODE
LOW⚡…ight-api-slim/tests/test_oracle_backend_integration.py121 except Exception:CODE
LOW⚡…ight-api-slim/tests/test_oracle_backend_integration.py131 except Exception:CODE
LOW⚡…ight-api-slim/tests/test_oracle_backend_integration.py136 except Exception:CODE
LOWhindsight-api-slim/tests/test_embedding_retry.py367 except Exception as exc:CODE
LOWhindsight-api-slim/tests/test_batch_api.py220 except Exception:CODE
862 more matches not shown…
Structural Annotation Overuse331 hits · 523 pts
SeverityFileLineSnippetContext
LOW⚡hindsight-all/tests/test_server_integration.py76 # Step 1: Create a memory bank with background informationCOMMENT
LOW⚡hindsight-all/tests/test_server_integration.py85 # Step 2: Store some memories about user preferencesCOMMENT
LOW⚡hindsight-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
LOW⚡hindsight-all/tests/test_embedded.py117 # Step 1: Create a memory bankCOMMENT
LOW⚡hindsight-all/tests/test_embedded.py126 # Step 2: Store memories (single)COMMENT
LOW⚡hindsight-all/tests/test_embedded.py136 # Step 3: Store batch memoriesCOMMENT
LOW⚡hindsight-all/tests/test_embedded.py151 # Step 4: Recall memoriesCOMMENT
LOW⚡hindsight-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⚡hindsight-api-slim/hindsight_api/engine/parsers/iris.py74 # Step 1: Request a presigned upload URLCOMMENT
LOW⚡hindsight-api-slim/hindsight_api/engine/parsers/iris.py84 # Step 2: Upload the file bytes to the presigned URL (no auth header)COMMENT
LOW⚡hindsight-api-slim/hindsight_api/engine/parsers/iris.py94 # Step 3: Start extractionCOMMENT
LOW⚡hindsight-api-slim/hindsight_api/engine/parsers/iris.py102 # Step 4: Poll until ready or timeoutCOMMENT
LOW⚡…t-api-slim/hindsight_api/engine/parsers/llama_parse.py72 # Step 1: Upload file and start parse jobCOMMENT
LOW⚡…t-api-slim/hindsight_api/engine/parsers/llama_parse.py80 # Step 2: Poll job status until SUCCESS or ERRORCOMMENT
LOW…t-api-slim/hindsight_api/engine/parsers/llama_parse.py98 # Step 3: Fetch the markdown resultCOMMENT
LOW…ight-api-slim/hindsight_api/engine/search/retrieval.py159 # Step 1: Extract temporal constraint first (CPU work, no DB)COMMENT
LOW…ight-api-slim/hindsight_api/engine/search/retrieval.py181 # Step 2: Run every arm for every fact type through the store's single recall method.COMMENT
LOW⚡…pi-slim/hindsight_api/engine/retain/fact_extraction.py3059 # Step 4: Retrieve resultsSTRING
LOW⚡…pi-slim/hindsight_api/engine/retain/fact_extraction.py3068 # Step 5: Parse results into facts (same as sync mode)STRING
LOW⚡…pi-slim/hindsight_api/engine/retain/fact_extraction.py3396 # Step 7: Add temporal offsetsSTRING
LOW⚡…pi-slim/hindsight_api/engine/retain/fact_extraction.py3399 # Step 8: Auto-tag facts from label groups with tag=TrueSTRING
LOW⚡…pi-slim/hindsight_api/engine/retain/fact_extraction.py3534 # Step 2: Wait for all fact extractions to complete.STRING
LOW⚡…pi-slim/hindsight_api/engine/retain/fact_extraction.py3540 # Step 3: Flatten and convert to typed objectsSTRING
LOW⚡…pi-slim/hindsight_api/engine/retain/fact_extraction.py3613 # Step 4: For verbatim mode, collapse to one fact per chunk with original textSTRING
LOW⚡…pi-slim/hindsight_api/engine/retain/fact_extraction.py3617 # Step 5: Add time offsets to preserve ordering within each contentSTRING
LOW⚡…pi-slim/hindsight_api/engine/retain/fact_extraction.py3620 # Step 6: Auto-tag facts from label groups with tag=TrueSTRING
LOW…pi-slim/hindsight_api/engine/retain/fact_extraction.py2944 # Step 1: Chunk all contents and build batch requests (skip if resuming)STRING
LOW…pi-slim/hindsight_api/engine/retain/fact_extraction.py2992 # Step 2: Submit batch (skip if resuming)STRING
LOW…pi-slim/hindsight_api/engine/retain/fact_extraction.py3033 # Step 3: Poll until completeSTRING
LOW…pi-slim/hindsight_api/engine/retain/fact_extraction.py3355 # Step 6: Convert to ExtractedFact objects with proper chunk mappingSTRING
LOW…pi-slim/hindsight_api/engine/retain/fact_extraction.py3517 # Step 1: Create parallel fact extraction tasksSTRING
LOW.github/workflows/release.yml462 # # Step 1: Build for local testing (single platform, no push)COMMENT
LOW.github/workflows/release.yml476 # # 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.md68### Step 1: Install OllamaCOMMENT
LOW…ight-docs/blog/2026-03-10-run-hindsight-with-ollama.md90### Step 2: Install HindsightCOMMENT
LOW…ight-docs/blog/2026-03-10-run-hindsight-with-ollama.md106### Step 3: Start Hindsight with OllamaCOMMENT
LOW…ight-docs/blog/2026-03-10-run-hindsight-with-ollama.md136### Step 4: Create a Bank and Store MemoriesCOMMENT
LOW…ight-docs/blog/2026-03-10-run-hindsight-with-ollama.md171### Step 5: Recall MemoriesCOMMENT
LOW…ight-docs/blog/2026-03-10-run-hindsight-with-ollama.md186### Step 6: Reflect (With a Caveat)COMMENT
LOW…ndsight-docs/blog/2026-04-01-openclaw-shared-memory.md39### Step 1: Get a Hindsight API endpointCOMMENT
LOW…ndsight-docs/blog/2026-04-01-openclaw-shared-memory.md45### Step 2: Configure an LLM provider for extractionCOMMENT
LOW…ndsight-docs/blog/2026-04-01-openclaw-shared-memory.md65### Step 3: Install the pluginCOMMENT
271 more matches not shown…
Self-Referential Comments147 hits · 442 pts
SeverityFileLineSnippetContext
MEDIUMhindsight-all/hindsight/embedded.py341 # Create a bankSTRING
MEDIUMhindsight-all/hindsight/embedded.py365 # Create a mental modelSTRING
MEDIUMhindsight-all/hindsight/embedded.py393 # Create a directiveSTRING
MEDIUMhindsight-all/tests/test_server_integration.py247 # Create a couple of banks with random IDs to allow parallel test executionCOMMENT
MEDIUM⚡hindsight-all/tests/test_embedded_namespaces.py114 # Create a new mock client each time (simulating daemon restart)COMMENT
MEDIUMhindsight-api-slim/tests/test_batch_chunking.py384 # Create a large batch that should trigger chunkingCOMMENT
MEDIUMhindsight-api-slim/tests/test_batch_chunking.py410 # Create a small batch that should NOT trigger chunkingCOMMENT
MEDIUM⚡hindsight-api-slim/tests/test_admin_backup_restore.py475 # Create a bankCOMMENT
MEDIUM⚡hindsight-api-slim/tests/test_admin_backup_restore.py481 # Create a memory unit with all column typesCOMMENT
MEDIUMhindsight-api-slim/tests/test_admin_backup_restore.py299 # Create a bankCOMMENT
MEDIUMhindsight-api-slim/tests/test_admin_backup_restore.py495 # Create an entityCOMMENT
MEDIUMhindsight-api-slim/tests/test_ann_iterative_scan.py219 # Creating the bank also builds its per-(bank, fact_type) partial vector index —COMMENT
MEDIUMhindsight-api-slim/tests/test_document_transfer.py1394 # 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.py382 # Create a class that inherits but doesn't implementCOMMENT
MEDIUM⚡hindsight-api-slim/tests/test_link_utils.py186 # Create a slightly similar embedding (add noise)COMMENT
MEDIUMhindsight-api-slim/tests/test_async_batch_retain.py275 # Create a large batch that exceeds the threshold (10k tokens default)COMMENT
MEDIUMhindsight-api-slim/tests/test_async_batch_retain.py587 # Create a batch that's just under the thresholdCOMMENT
MEDIUMhindsight-api-slim/tests/test_async_batch_retain.py1125 # 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
MEDIUM⚡hindsight-api-slim/tests/test_consolidation.py1093 # Create the bankCOMMENT
MEDIUM⚡hindsight-api-slim/tests/test_consolidation.py1096 # Create a specific date in the past for testingCOMMENT
MEDIUMhindsight-api-slim/tests/test_consolidation.py71 # Create the bankCOMMENT
MEDIUMhindsight-api-slim/tests/test_consolidation.py102 # Create the bankCOMMENT
MEDIUMhindsight-api-slim/tests/test_consolidation.py139 # Create the bankCOMMENT
MEDIUMhindsight-api-slim/tests/test_consolidation.py160 # Create the bankCOMMENT
MEDIUMhindsight-api-slim/tests/test_consolidation.py206 # Create the bankCOMMENT
MEDIUMhindsight-api-slim/tests/test_consolidation.py237 # Create the bankCOMMENT
MEDIUMhindsight-api-slim/tests/test_consolidation.py275 # Create the bankCOMMENT
MEDIUMhindsight-api-slim/tests/test_consolidation.py341 # Create the bankCOMMENT
MEDIUMhindsight-api-slim/tests/test_consolidation.py421 # Create the bankCOMMENT
MEDIUMhindsight-api-slim/tests/test_consolidation.py551 # Create the bankCOMMENT
MEDIUMhindsight-api-slim/tests/test_consolidation.py587 # Create the bankCOMMENT
MEDIUMhindsight-api-slim/tests/test_consolidation.py623 # Create the bankCOMMENT
MEDIUMhindsight-api-slim/tests/test_consolidation.py660 # Create the bankCOMMENT
MEDIUMhindsight-api-slim/tests/test_consolidation.py734 # Create the bankCOMMENT
MEDIUMhindsight-api-slim/tests/test_consolidation.py791 # Create the bankCOMMENT
MEDIUMhindsight-api-slim/tests/test_consolidation.py855 # Create the bankCOMMENT
MEDIUMhindsight-api-slim/tests/test_consolidation.py912 # Create the bankCOMMENT
MEDIUMhindsight-api-slim/tests/test_consolidation.py951 # Create the bankCOMMENT
MEDIUMhindsight-api-slim/tests/test_consolidation.py993 # Create the bankCOMMENT
MEDIUMhindsight-api-slim/tests/test_consolidation.py1037 # Create the bankCOMMENT
MEDIUMhindsight-api-slim/tests/test_consolidation.py1175 # Create the bankCOMMENT
MEDIUMhindsight-api-slim/tests/test_consolidation.py1306 # Create the bankCOMMENT
MEDIUMhindsight-api-slim/tests/test_consolidation.py1374 # Create the bankCOMMENT
MEDIUMhindsight-api-slim/tests/test_consolidation.py1451 # Create the bankCOMMENT
MEDIUMhindsight-api-slim/tests/test_consolidation.py1469 # Create a mental model about John (higher quality, user-curated)COMMENT
MEDIUMhindsight-api-slim/tests/test_consolidation.py1532 # Create the bankCOMMENT
MEDIUMhindsight-api-slim/tests/test_consolidation.py1585 # Create the bankCOMMENT
MEDIUMhindsight-api-slim/tests/test_consolidation.py1649 # Create the bankCOMMENT
MEDIUMhindsight-api-slim/tests/test_consolidation.py1652 # Create a mental model with refresh_after_consolidation trigger enabledCOMMENT
MEDIUMhindsight-api-slim/tests/test_consolidation.py1730 # Create the bankCOMMENT
MEDIUMhindsight-api-slim/tests/test_consolidation.py1733 # Create a mental model (default trigger is refresh_after_consolidation: false)COMMENT
MEDIUMhindsight-api-slim/tests/test_consolidation.py1809 # Create the bankCOMMENT
MEDIUM⚡hindsight-api-slim/tests/test_mental_models.py2465 # Create a directiveCOMMENT
MEDIUM⚡hindsight-api-slim/tests/test_mental_models.py2473 # Create a concept mental model to refreshCOMMENT
MEDIUMhindsight-api-slim/tests/test_mental_models.py91 # Create a directiveCOMMENT
MEDIUMhindsight-api-slim/tests/test_mental_models.py261 # Create a directive with tagsCOMMENT
87 more matches not shown…
Docstring Block Structure67 hits · 335 pts
SeverityFileLineSnippetContext
HIGHhindsight-all/hindsight/server.py152 Start the server in a background thread. Args: timeout: Maximum time to wait for server toSTRING
HIGH…base-tenant/hindsight_ext_supabase_tenant/extension.py289 Validate a Supabase JWT and return tenant context. Uses local JWKS verification when available (no netSTRING
HIGH…s-tenant/hindsight_ext_static_keys_tenant/extension.py264 Validate the API key and return tenant context. Args: context: Request context containing STRING
HIGHhindsight-api-slim/hindsight_api/config.py115 Convert environment variable format to Python field name format. Examples: HINDSIGHT_API_LLM_PROVIDER STRING
HIGHhindsight-api-slim/hindsight_api/config_resolver.py493 Normalize and validate bank configuration overrides. Permission hooks run here, once per request. CrosSTRING
HIGHhindsight-api-slim/hindsight_api/mcp_tools.py476Parse 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.py85 Authenticate the action context and return tenant context. Args: context: The action conteSTRING
HIGHhindsight-api-slim/hindsight_api/extensions/tenant.py137 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.py206 Authenticate MCP requests. By default, this calls authenticate(). Override this method to provide STRING
HIGH…i-slim/hindsight_api/extensions/operation_validator.py724 Validate a retain operation before execution. Called before the retain operation is processed. Return STRING
HIGH…i-slim/hindsight_api/extensions/operation_validator.py745 Validate a recall operation before execution. Called before the recall operation is processed. Return STRING
HIGH…i-slim/hindsight_api/extensions/operation_validator.py773 Validate a reflect operation before execution. Called before the reflect operation is processed. ReturSTRING
HIGHhindsight-api-slim/hindsight_api/extensions/loader.py78 Load an extension from environment variable configuration. The extension class is specified via {env_prefix}_{STRING
HIGHhindsight-api-slim/hindsight_api/engine/interface.py654 Cancel a pending async operation. Args: bank_id: The memory bank ID. operationSTRING
HIGHhindsight-api-slim/hindsight_api/engine/interface.py678 Delete a terminal async operation record. Args: bank_id: The memory bank ID. oSTRING
HIGH…ndsight-api-slim/hindsight_api/engine/llm_interface.py171 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.py383 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.py400 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.py415 Retrieve completed batch results. Args: batch_id: Batch identifier returned from submit_baSTRING
HIGHhindsight-api-slim/hindsight_api/engine/llm_wrapper.py370 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.py1226 Make an LLM API call with retry logic. Args: messages: List of message dicts with 'role' aSTRING
HIGHhindsight-api-slim/hindsight_api/engine/db_utils.py74 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.py1176 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.py2224 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.py291 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.py270 Make an LLM API call with retry logic. Args: messages: List of message dicts with 'role' aSTRING
HIGH…ight-api-slim/hindsight_api/engine/storage/__init__.py51 Create file storage backend based on configuration. Args: storage_type: "native" (PostgreSQL BYTEA) orSTRING
HIGHhindsight-api-slim/hindsight_api/engine/storage/base.py56 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.py445 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.py327 Get the URL for the daemon serving this profile. Args: profile: Profile name RetuSTRING
HIGH…ht-clients/python/hindsight_client/hindsight_client.py2282 Export a bank's documents as a transfer ZIP archive (blocking convenience). Export runs as a backgrounSTRING
HIGH…ht-clients/python/hindsight_client/hindsight_client.py2377 Export a whole bank as a transfer ZIP archive — submit, poll, download, return bytes. Three flags deciSTRING
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.py325Pre-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
HIGHhindsight-integrations/agno/hindsight_agno/tools.py298Pre-recall memories for injection into Agent instructions. Performs a sync recall at construction time and returns STRING
HIGH…-integrations/google-adk/hindsight_google_adk/tools.py47Create Hindsight memory tools for a Google ADK agent. Args: bank_id: Hindsight memory bank these tools operSTRING
HIGH…ight-integrations/composio/hindsight_composio/tools.py249Pre-recall memories for injection into an agent's system prompt. Performs a sync recall and returns a formatted strSTRING
HIGH…rations/openai-agents/hindsight_openai_agents/tools.py60Create Hindsight memory tools for an OpenAI Agents SDK agent. Returns a list of ``FunctionTool`` instances compatibSTRING
7 more matches not shown…
Over-Commented Block392 hits · 323 pts
SeverityFileLineSnippetContext
LOWhindsight-cli/.openapi-coverage.toml1# Hindsight CLI ↔ OpenAPI coverage manifest.COMMENT
LOWhindsight-cli/.openapi-coverage.toml21# Operation-level skipsCOMMENT
LOWhindsight-cli/.openapi-coverage.toml61# and the control plane, not the end-user CLI. update_memory covers all three.COMMENT
LOWhindsight-cli/smoke-test.sh1#!/bin/bashCOMMENT
LOWhindsight-cli/tests/integration_test.rs201/// Regression test for the SIGPIPE crash.COMMENT
LOWhindsight-cli/tests/cli_profile.rs1//! End-to-end tests for the `hindsight profile` CRUD subcommands and theCOMMENT
LOWhindsight-cli/tests/api_error_surface.rs1//! Structural guard: every generated-client call must surface the HTTPCOMMENT
LOWhindsight-cli/src/ui.rs21}COMMENT
LOWhindsight-cli/src/main.rs641 /// Store (retain) a single memoryCOMMENT
LOWhindsight-cli/src/main.rs1081COMMENT
LOWhindsight-cli/src/main.rs1121 tags: Option<Vec<String>>,COMMENT
LOWhindsight-cli/src/main.rs1421COMMENT
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.sh121 return 0COMMENT
LOWdocker/standalone/start-all.sh161# loopback address makes every locale rewrite look cross-origin and leak outCOMMENT
LOWdocker/standalone/start-all.sh281 sleep "$RETRY_INTERVAL"COMMENT
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
LOWdocker/docker-compose/cuda/docker-compose.yaml1name: hindsight-cudaCOMMENT
LOW…ker/docker-compose/s3-file-storage/docker-compose.yaml1# Docker Compose file for Hindsight with S3 file storage (SeaweedFS)COMMENT
LOWdocker/docker-compose/tei/docker-compose.yaml1name: hindsight-teiCOMMENT
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-extensions/supabase-tenant/pyproject.toml1# This file exists to run the tests, nothing else. The extension is notCOMMENT
LOW…s-tenant/hindsight_ext_static_keys_tenant/extension.py281 # exact-equality fast path, which would let unknown keys skip theCOMMENT
LOWhindsight-api-slim/pyproject.toml41 # Two coupled reasons for these floors — keep all six pins moving together:COMMENT
LOWhindsight-api-slim/pyproject.toml61 # survives). The engine also serialises those entries now (seeCOMMENT
LOWhindsight-api-slim/pyproject.toml121 "tokenizers>=0.22.0,<=0.23.0",COMMENT
LOW…dsight-api-slim/tests/test_mental_model_retractions.py801 assert "Autocommit is disabled" in refreshed["content"]COMMENT
LOWhindsight-api-slim/tests/conftest.py21# embeddings.initialize() -> sentence_transformers -> transformers -> torch, orCOMMENT
LOWhindsight-api-slim/tests/conftest.py41 # cache hit and the body never re-executes.COMMENT
LOWhindsight-api-slim/tests/conftest.py181DEFAULT_PG0_INSTANCE_NAME = "hindsight-test"COMMENT
LOWhindsight-api-slim/tests/conftest.py281 # that consolidation_llm_parallelism=4 increases peak conns per op).COMMENT
LOWhindsight-api-slim/tests/test_entity_labels.py2181#COMMENT
LOW…dsight-api-slim/tests/test_refresh_outcome_metadata.py141# ``result_metadata`` is the only per-refresh record kept indefinitelyCOMMENT
LOWhindsight-api-slim/tests/test_reflect_tracing.py41 finally:COMMENT
LOWhindsight-api-slim/tests/test_delta_retain.py941# ============================================================COMMENT
LOW…-api-slim/tests/test_embeddings_request_concurrency.py381 assert resolve_max_batch_size(backend, slots=8) == 8COMMENT
LOWhindsight-api-slim/tests/test_memory_curation.py21# table empty, so the seed lands nowhere the code under test can see it: the failing cases findCOMMENT
LOWhindsight-api-slim/tests/test_async_batch_retain.py1301 payload = json.loads(row["task_payload"])COMMENT
LOWhindsight-api-slim/tests/test_chunking.py321 assert chunks == ["Line one here.", "Line two here.", "Line three now."]COMMENT
LOWhindsight-api-slim/tests/test_memories_extension.py61 # document methods below — exercising that half of the seam too.COMMENT
LOWhindsight-api-slim/tests/test_memories_extension.py81 # Units the consolidator gave up on — the store's `consolidation_failed_at`. Out of theCOMMENT
LOWhindsight-api-slim/tests/test_memories_extension.py1841 assert by_id[obs_id].source_fact_ids == [src_id]COMMENT
LOWhindsight-api-slim/tests/test_webhooks.py2001 await conn.execute(COMMENT
LOW…ight-api-slim/tests/test_repair_bank_vector_indexes.py61COMMENT
332 more matches not shown…
Modern Structural Boilerplate294 hits · 292 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
LOW…abase-tenant/hindsight_ext_supabase_tenant/__init__.py10__all__ = ["SupabaseTenantExtension"]CODE
LOW…base-tenant/hindsight_ext_supabase_tenant/extension.py66logger = logging.getLogger(__name__)CODE
LOW…base-tenant/hindsight_ext_supabase_tenant/extension.py68__all__ = ["SupabaseTenantExtension"]CODE
LOW…ys-tenant/hindsight_ext_static_keys_tenant/__init__.py10__all__ = ["StaticKeysTenantExtension"]CODE
LOW…s-tenant/hindsight_ext_static_keys_tenant/extension.py51logger = logging.getLogger(__name__)CODE
LOW…s-tenant/hindsight_ext_static_keys_tenant/extension.py53__all__ = ["StaticKeysTenantExtension"]CODE
LOWhindsight-api-slim/tests/test_file_storage_s3.py24logger = logging.getLogger(__name__)CODE
LOW⚡hindsight-api-slim/tests/test_memory_defense.py689async 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
LOW⚡hindsight-api-slim/tests/test_oracle_integration.py33logger = logging.getLogger(__name__)CODE
LOWhindsight-api-slim/tests/test_xai_oauth_llm.py1836async def _settle() -> None:CODE
LOWhindsight-api-slim/tests/test_load_large_batch.py26logger = logging.getLogger(__name__)CODE
LOW⚡hindsight-api-slim/tests/test_delta_retain.py13logger = 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.py51def _set_flag(enabled: bool) -> None:CODE
LOWhindsight-api-slim/tests/test_batch_api.py27logger = logging.getLogger(__name__)CODE
LOW…-api-slim/tests/test_graph_maintenance_submit_dedup.py80async def _set_status(memory: MemoryEngine, operation_id: str, status: str) -> None:CODE
LOW⚡hindsight-api-slim/tests/test_retain.py3374def _set_chunk_batch_size(memory: MemoryEngine, batch_size: int) -> None:CODE
LOW⚡hindsight-api-slim/tests/test_retain.py3379def _set_retain_memory_budget_mb(memory: MemoryEngine, budget_mb: int) -> None:CODE
LOWhindsight-api-slim/tests/test_retain.py15logger = logging.getLogger(__name__)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_multilingual.py32logger = logging.getLogger(__name__)CODE
LOWhindsight-api-slim/tests/llm_judge.py24logger = logging.getLogger(__name__)CODE
LOW…t-api-slim/tests/test_retain_document_serialization.py52logger = logging.getLogger(__name__)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_multiworker.py44logger = logging.getLogger(__name__)CODE
LOWhindsight-api-slim/hindsight_api/metrics.py163logger = logging.getLogger(__name__)CODE
LOWhindsight-api-slim/hindsight_api/tracing.py31logger = logging.getLogger(__name__)CODE
LOWhindsight-api-slim/hindsight_api/tracing.py76 def set_attribute(self, key: str, value: Any) -> None:CODE
LOWhindsight-api-slim/hindsight_api/tracing.py80 def set_status(self, status: Any) -> None:CODE
LOWhindsight-api-slim/hindsight_api/config.py23logger = logging.getLogger(__name__)CODE
LOWhindsight-api-slim/hindsight_api/pg0.py12logger = logging.getLogger(__name__)CODE
LOWhindsight-api-slim/hindsight_api/_cross_loop.py42__all__ = ["CrossLoopSemaphore", "CrossLoopLock"]CODE
LOWhindsight-api-slim/hindsight_api/_pg_extensions.py28logger = logging.getLogger(__name__)CODE
LOWhindsight-api-slim/hindsight_api/config_resolver.py38logger = logging.getLogger(__name__)CODE
LOW⚡hindsight-api-slim/hindsight_api/migrations.py74def _set_alembic_main_option(config: Config, name: str, value: str) -> None:CODE
LOWhindsight-api-slim/hindsight_api/migrations.py58logger = logging.getLogger(__name__)CODE
LOWhindsight-api-slim/hindsight_api/_vector_index.py12logger = logging.getLogger(__name__)CODE
LOWhindsight-api-slim/hindsight_api/http_probe.py49__all__ = ["DEFAULT_TIMEOUT_SECONDS", "main", "probe"]CODE
LOWhindsight-api-slim/hindsight_api/loop_lag.py27logger = logging.getLogger(__name__)CODE
LOWhindsight-api-slim/hindsight_api/mcp_tools.py87logger = logging.getLogger(__name__)CODE
LOWhindsight-api-slim/hindsight_api/admin/cli.py45logger = logging.getLogger(__name__)CODE
LOWhindsight-api-slim/hindsight_api/admin/cli.py962async def _set_fks_deferrable(conn: asyncpg.Connection, fks: list[asyncpg.Record], clause: str) -> None:STRING
LOW…/hindsight_api/extensions/validator_instrumentation.py31logger = logging.getLogger(__name__)CODE
LOWhindsight-api-slim/hindsight_api/extensions/__init__.py87__all__ = [CODE
LOWhindsight-api-slim/hindsight_api/extensions/mcp.py18logger = logging.getLogger(__name__)CODE
LOWhindsight-api-slim/hindsight_api/extensions/loader.py15logger = 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__.py26__all__ = [CODE
LOW…ndsight_api/extensions/builtin/memory_defense_regex.py22logger = logging.getLogger(__name__)CODE
LOWhindsight-api-slim/hindsight_api/api/unknown_params.py46logger = logging.getLogger(__name__)CODE
LOWhindsight-api-slim/hindsight_api/api/__init__.py14logger = logging.getLogger(__name__)CODE
234 more matches not shown…
Modern AI Meta-Vocabulary87 hits · 256 pts
SeverityFileLineSnippetContext
MEDIUMhindsight-api-slim/tests/test_document_transfer.py1174 # now that the manifest no longer includes embedding model/dimension metadata).COMMENT
MEDIUM…sight-api-slim/tests/test_temporal_recall_selection.py204 # The per-arm SQL orchestration now lives in PostgresMemories.recall_unified, so stub the seamsCOMMENT
MEDIUM⚡hindsight-api-slim/tests/test_mcp_tools.py2572 # Mirrors ReflectResult: the agentic loop's trace fields are large and present.COMMENT
MEDIUMhindsight-api-slim/tests/test_reflect_prompt_builder.py289# --- Directives header block (inserted between anti-hallucination and role) ---STRING
MEDIUMhindsight-api-slim/tests/test_mental_models.py847 # are the scaffolding that prevents double-counting and unjustifiedCOMMENT
MEDIUM…ight-api-slim/tests/test_repair_bank_vector_indexes.py140# default local embedding model the schema is built for.COMMENT
MEDIUMhindsight-api-slim/tests/test_multilingual.py199 # The LLM should use names from the based_on facts, not hallucinate different namesSTRING
MEDIUMhindsight-api-slim/tests/test_http_api_integration.py1161 # Verify usage field exists and is populated (agentic reflect aggregates all LLM calls)COMMENT
MEDIUMhindsight-api-slim/tests/test_http_api_integration.py1165 # Usage must be present - agentic reflect now aggregates token usage from all LLM callsCOMMENT
MEDIUMhindsight-api-slim/tests/test_packed_embeddings.py48 # the original — not against the float64 the embedding model handed us.COMMENT
MEDIUM⚡hindsight-api-slim/hindsight_api/config.py1489# set it to the model's context window (or lower, to bound request size on a CPU-onlyCOMMENT
MEDIUM⚡hindsight-api-slim/hindsight_api/config.py1498# essentially every remote embedding model in use (OpenAI text-embedding-3-*, BedrockCOMMENT
MEDIUM⚡hindsight-api-slim/hindsight_api/config.py1507# these counts back budgets that stand in for a model's context window, and a bank thatCOMMENT
MEDIUMhindsight-api-slim/hindsight_api/config.py3079 # Optional native Ollama context window override. Unset lets Ollama use theCOMMENT
MEDIUM⚡hindsight-api-slim/hindsight_api/mcp_tools.py2455# path rather than in an agent's context window.COMMENT
MEDIUMhindsight-api-slim/hindsight_api/mcp_tools.py1540 # The agentic reflect loop's trace fields can be tens of KB (fullCOMMENT
MEDIUMhindsight-api-slim/hindsight_api/mcp_tools.py1633 # The agentic reflect loop's trace fields can be tens of KB (fullCOMMENT
MEDIUMhindsight-api-slim/hindsight_api/api/http.py5031 # Preserve FastAPI's dependency injection signatureCOMMENT
MEDIUM⚡…ndsight-api-slim/hindsight_api/engine/llm_interface.py340 # For agentic loops (reflect) the dominant cost is the conversation prefixCOMMENT
MEDIUM…dsight-api-slim/hindsight_api/engine/prompt_preview.py245 # blocks: they cut the scaffolding into repeated one-line fragments.COMMENT
MEDIUM…indsight_api/engine/providers/openai_compatible_llm.py201# (e.g. MiniMax-M3) leak the chain-of-thought wrapped in these tags into theCOMMENT
MEDIUM…indsight_api/engine/providers/openai_compatible_llm.py1428 # reasoning models like MiniMax-M3 wrap their chain-of-thoughtCOMMENT
MEDIUM…indsight_api/engine/providers/openai_compatible_llm.py2034 # models still wrap their chain-of-thought in <think> tagsCOMMENT
MEDIUM…slim/hindsight_api/engine/providers/claude_code_llm.py673 # an agentic loop the caller drives: the model proposes tool calls, we returnCOMMENT
MEDIUM…sight-api-slim/hindsight_api/engine/reflect/prompts.py230 # Anti-hallucination rule at the very topCOMMENT
MEDIUM…sight-api-slim/hindsight_api/engine/reflect/prompts.py238 # Inject directives after anti-hallucination ruleCOMMENT
MEDIUM…ndsight-api-slim/hindsight_api/engine/reflect/agent.py717 # Step-by-step context caching for the agentic tool loop.COMMENT
MEDIUM…sight-api-slim/hindsight_api/engine/transfer/export.py126# its own embedding model / text-search backend.COMMENT
MEDIUM…ght-api-slim/hindsight_api/engine/memories/postgres.py158 # `conn` is the connection pool: this store owns the per-arm orchestration and acquires itsCOMMENT
MEDIUM…ndsight-api-slim/hindsight_api/engine/memories/base.py2566 # The graph-maintenance job orchestrates these; each pass asks the store to doCOMMENT
MEDIUM⚡…pi-slim/hindsight_api/engine/retain/fact_extraction.py2794# Import types for the orchestration layer (note: ExtractedFact here is different from the Pydantic model above)COMMENT
MEDIUM…pi-slim/hindsight_api/engine/retain/fact_extraction.py2062 # scaffolding is byte-identical to the text-only path, and a chunk with noCOMMENT
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.md274- [Directives](../developer/api/memory-banks#directives) — hard rules for compliance and guardrailsCODE
MEDIUM…sight-docs/blog/2026-03-13-disposition-aware-agents.md200## 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…sioned_docs/version-0.10/developer/rag-vs-hindsight.md5# RAG vs MemoryCOMMENT
MEDIUM…sioned_docs/version-0.10/developer/rag-vs-hindsight.md22### RAGCOMMENT
MEDIUM…/versioned_docs/version-0.9/developer/configuration.md1356##### Pairing with the retain side: plain-retrieval ("RAG") banksCOMMENT
MEDIUM…rsioned_docs/version-0.9/developer/rag-vs-hindsight.md5# RAG vs MemoryCOMMENT
MEDIUM…rsioned_docs/version-0.9/developer/rag-vs-hindsight.md22### RAGCOMMENT
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
27 more matches not shown…
Deep Nesting298 hits · 241 pts
SeverityFileLineSnippetContext
LOWhindsight-api-slim/tests/test_google_cross_encoder.py243CODE
LOW…ndsight-api-slim/tests/test_bank_attribution_config.py32CODE
LOWhindsight-api-slim/tests/test_named_result_stubs.py104CODE
LOWhindsight-api-slim/tests/test_named_result_stubs.py221CODE
LOWhindsight-api-slim/tests/test_named_result_stubs.py255CODE
LOWhindsight-api-slim/tests/test_named_result_stubs.py307CODE
LOWhindsight-api-slim/tests/conftest.py433CODE
LOW…pi-slim/tests/test_retain_same_document_concurrency.py63CODE
LOW…ndsight-api-slim/tests/test_fact_extraction_quality.py494CODE
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_mcp_tools.py2646CODE
LOWhindsight-api-slim/tests/test_reranker_typesafe.py101CODE
LOWhindsight-api-slim/tests/test_http_probe.py30CODE
LOWhindsight-api-slim/tests/test_mental_models.py3144CODE
LOWhindsight-api-slim/tests/test_mental_models.py3162CODE
LOWhindsight-api-slim/tests/test_horse_observations.py170CODE
LOWhindsight-api-slim/tests/test_gemini_embeddings.py522CODE
LOWhindsight-api-slim/tests/test_store_table_boundary.py56CODE
LOW…ndsight-api-slim/tests/test_reflect_split_synthesis.py46CODE
LOWhindsight-api-slim/tests/test_reranker_retry.py219CODE
LOWhindsight-api-slim/tests/test_worker.py3347CODE
LOWhindsight-api-slim/tests/chunking_reference.py63CODE
LOWhindsight-api-slim/tests/test_observations.py199CODE
LOWhindsight-api-slim/tests/test_model_init_timeout.py21CODE
LOWhindsight-api-slim/tests/test_reranker_timeouts.py18CODE
LOWhindsight-api-slim/tests/test_retain.py102CODE
LOWhindsight-api-slim/tests/test_retain.py292CODE
LOWhindsight-api-slim/tests/test_multilingual.py42CODE
LOWhindsight-api-slim/tests/test_multilingual.py133CODE
LOWhindsight-api-slim/tests/test_multilingual.py234CODE
LOWhindsight-api-slim/tests/test_http_api_integration.py1357CODE
LOWhindsight-api-slim/tests/test_sql_schema_safety.py42CODE
LOWhindsight-api-slim/tests/test_sql_schema_safety.py57CODE
LOWhindsight-api-slim/tests/test_aiohttp_session.py166CODE
LOW…m/tests/test_consolidation_multi_round_refresh_3411.py109CODE
LOWhindsight-api-slim/tests/test_db_pool_reset.py157CODE
LOW…t-api-slim/tests/test_retain_document_serialization.py738CODE
LOW…dsight-api-slim/tests/test_link_expansion_retrieval.py26CODE
LOWhindsight-api-slim/tests/test_schema_isolation.py89CODE
LOWhindsight-api-slim/tests/test_schema_isolation.py323CODE
LOW…api-slim/tests/test_consolidation_failure_isolation.py181CODE
LOWhindsight-api-slim/hindsight_api/metrics.py126CODE
LOWhindsight-api-slim/hindsight_api/tracing.py411CODE
LOWhindsight-api-slim/hindsight_api/tracing.py603CODE
LOWhindsight-api-slim/hindsight_api/config.py5345CODE
LOWhindsight-api-slim/hindsight_api/_cross_loop.py80CODE
LOWhindsight-api-slim/hindsight_api/config_resolver.py484CODE
LOWhindsight-api-slim/hindsight_api/migrations.py412CODE
LOWhindsight-api-slim/hindsight_api/migrations.py836CODE
LOWhindsight-api-slim/hindsight_api/migrations.py1106CODE
LOWhindsight-api-slim/hindsight_api/migrations.py1191CODE
LOWhindsight-api-slim/hindsight_api/mcp_tools.py793CODE
LOWhindsight-api-slim/hindsight_api/mcp_tools.py907CODE
LOWhindsight-api-slim/hindsight_api/mcp_tools.py911CODE
LOWhindsight-api-slim/hindsight_api/mcp_tools.py914CODE
LOWhindsight-api-slim/hindsight_api/loop_watchdog.py107CODE
LOWhindsight-api-slim/hindsight_api/admin/cli.py406CODE
LOWhindsight-api-slim/hindsight_api/admin/cli.py717CODE
238 more matches not shown…
AI Structural Patterns246 hits · 200 pts
SeverityFileLineSnippetContext
LOWhindsight-all/hindsight/server.py220CODE
LOWhindsight-all/hindsight/server.py56CODE
LOWhindsight-all/hindsight/embedded.py92CODE
LOWhindsight-api-slim/tests/test_memories_extension.py143CODE
LOWhindsight-api-slim/tests/test_memories_extension.py160CODE
LOWhindsight-api-slim/tests/test_memories_extension.py264CODE
LOWhindsight-api-slim/hindsight_api/migrations.py1560CODE
LOWhindsight-api-slim/hindsight_api/mcp_tools.py3491CODE
LOWhindsight-api-slim/hindsight_api/mcp_tools.py3842CODE
LOWhindsight-api-slim/hindsight_api/mcp_tools.py4043CODE
LOWhindsight-api-slim/hindsight_api/mcp_tools.py4119CODE
LOWhindsight-api-slim/hindsight_api/mcp_tools.py4177CODE
LOWhindsight-api-slim/hindsight_api/mcp_tools.py4238CODE
LOWhindsight-api-slim/hindsight_api/mcp_tools.py1008CODE
LOWhindsight-api-slim/hindsight_api/mcp_tools.py1259CODE
LOWhindsight-api-slim/hindsight_api/mcp_tools.py1363CODE
LOWhindsight-api-slim/hindsight_api/mcp_tools.py1466CODE
LOWhindsight-api-slim/hindsight_api/mcp_tools.py1561CODE
LOWhindsight-api-slim/hindsight_api/mcp_tools.py2142CODE
LOWhindsight-api-slim/hindsight_api/mcp_tools.py3073CODE
LOWhindsight-api-slim/hindsight_api/mcp_tools.py3679CODE
LOWhindsight-api-slim/hindsight_api/api/http.py5749CODE
LOWhindsight-api-slim/hindsight_api/api/http.py5794CODE
LOWhindsight-api-slim/hindsight_api/api/http.py7775CODE
LOWhindsight-api-slim/hindsight_api/api/http.py9128CODE
LOWhindsight-api-slim/hindsight_api/api/http.py10617CODE
LOWhindsight-api-slim/hindsight_api/worker/poller.py331CODE
LOWhindsight-api-slim/hindsight_api/engine/llm_trace.py482CODE
LOWhindsight-api-slim/hindsight_api/engine/interface.py88CODE
LOWhindsight-api-slim/hindsight_api/engine/interface.py341CODE
LOWhindsight-api-slim/hindsight_api/engine/interface.py408CODE
LOW…ndsight-api-slim/hindsight_api/engine/llm_interface.py156CODE
LOW…ndsight-api-slim/hindsight_api/engine/llm_interface.py205CODE
LOWhindsight-api-slim/hindsight_api/engine/llm_wrapper.py449CODE
LOWhindsight-api-slim/hindsight_api/engine/llm_wrapper.py826CODE
LOWhindsight-api-slim/hindsight_api/engine/llm_wrapper.py1212CODE
LOWhindsight-api-slim/hindsight_api/engine/llm_wrapper.py1401CODE
LOWhindsight-api-slim/hindsight_api/engine/embeddings.py457CODE
LOWhindsight-api-slim/hindsight_api/engine/embeddings.py1333CODE
LOWhindsight-api-slim/hindsight_api/engine/embeddings.py1499CODE
LOWhindsight-api-slim/hindsight_api/engine/embeddings.py1687CODE
LOWhindsight-api-slim/hindsight_api/engine/embeddings.py1916CODE
LOW…ndsight-api-slim/hindsight_api/engine/cross_encoder.py215CODE
LOW…i-slim/hindsight_api/engine/providers/xai_oauth_llm.py703CODE
LOW…i-slim/hindsight_api/engine/providers/xai_oauth_llm.py840CODE
LOW…m/hindsight_api/engine/providers/github_copilot_llm.py586CODE
LOW…m/hindsight_api/engine/providers/github_copilot_llm.py693CODE
LOW…-api-slim/hindsight_api/engine/providers/gemini_llm.py417CODE
LOW…-api-slim/hindsight_api/engine/providers/gemini_llm.py807CODE
LOW…api-slim/hindsight_api/engine/providers/litellm_llm.py284CODE
LOW…api-slim/hindsight_api/engine/providers/litellm_llm.py511CODE
LOW…pi-slim/hindsight_api/engine/providers/llamacpp_llm.py314CODE
LOW…pi-slim/hindsight_api/engine/providers/llamacpp_llm.py426CODE
LOW…pi-slim/hindsight_api/engine/providers/llamacpp_llm.py456CODE
LOW…ht-api-slim/hindsight_api/engine/providers/mock_llm.py104CODE
LOW…ht-api-slim/hindsight_api/engine/providers/mock_llm.py214CODE
LOW…-api-slim/hindsight_api/engine/providers/cursor_llm.py358CODE
LOW…-api-slim/hindsight_api/engine/providers/cursor_llm.py430CODE
LOW…indsight_api/engine/providers/openai_compatible_llm.py1162CODE
LOW…indsight_api/engine/providers/openai_compatible_llm.py1609CODE
186 more matches not shown…
Hallucination Indicators16 hits · 190 pts
SeverityFileLineSnippetContext
CRITICALhindsight-api-slim/tests/test_gemini_batch.py303 llm._client.aio.files.download.assert_awaited_once()CODE
CRITICAL⚡hindsight-api-slim/tests/test_llm_extra_body.py164 config_arg = provider._client.aio.models.generate_content.call_args.kwargs.get("config")CODE
CRITICAL⚡hindsight-api-slim/tests/test_llm_extra_body.py178 config_arg = provider._client.aio.models.generate_content.call_args.kwargs.get("config")CODE
CRITICAL⚡hindsight-api-slim/tests/test_llm_extra_body.py190 config_arg = provider._client.aio.models.generate_content.call_args.kwargs.get("config")CODE
CRITICAL⚡hindsight-api-slim/tests/test_llm_extra_body.py205 config_arg = provider._client.aio.models.generate_content.call_args.kwargs.get("config")CODE
CRITICALhindsight-api-slim/tests/test_llm_extra_body.py234 config_arg = provider._client.aio.models.generate_content.call_args.kwargs.get("config")CODE
CRITICALhindsight-api-slim/tests/test_llm_extra_body.py267 config_arg = provider._client.aio.models.generate_content.call_args.kwargs.get("config")CODE
CRITICALhindsight-api-slim/tests/test_gemini_embeddings.py92 mock_genai.Client.return_value.aio.models.embed_content.assert_called_once()CODE
CRITICALhindsight-api-slim/tests/test_anthropic_batch.py123 provider._client.messages.batches.create.assert_awaited_once()CODE
CRITICAL⚡…t-api-slim/tests/test_openrouter_require_parameters.py43 return llm._client.chat.completions.create.call_args.kwargs.get("extra_body")CODE
CRITICAL⚡hindsight-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.js72 result.secret.should.be.a.String();CODE
CRITICALhindsight-integrations/zapier/test/triggers.test.js144 App.triggers.should.not.have.property("memoryDefenseTriggered");CODE
CRITICAL…ions/obsidian/tests/node/reconcile-integration.spec.ts149 const created = after.client.retain.mock.calls.map((c) => c[1]);CODE
CRITICAL…ght-integrations/litellm/hindsight_litellm/wrappers.py1249 response = self._wrapper._client.chat.completions.create(**openai_kwargs)CODE
Cross-Language Confusion34 hits · 186 pts
SeverityFileLineSnippetContext
HIGHhindsight-api-slim/tests/test_document_transfer.py1208 # Embeddings were regenerated locally (not null) in the destination.COMMENT
HIGH…ht-api-slim/tests/test_extraction_absent_dimensions.py58 # dimensions required and non-null, "not stated" is not a legal answer and theCOMMENT
HIGH⚡hindsight-api-slim/tests/test_xai_oauth_llm.py1063 ('{"error": {"message": null}}', ""),CODE
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.py838 # engagement: single-value → anyOf[{enum: [...]}, {type: null}]COMMENT
HIGHhindsight-api-slim/tests/test_entity_labels.py1421 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⚡hindsight-api-slim/tests/test_delta_operation_parse.py294_STRAY = '{"operations": [{"op": "append_block", "section_id": "s", "block_id": null, "text": "ok"}]}'CODE
HIGHhindsight-api-slim/tests/test_delta_operation_parse.py100 '{"operations": [{"op": "append_block", "section_id": "s", "block_id": null, "text": "ok"}]}',CODE
HIGH…slim/tests/test_fact_extraction_nullable_dimensions.py123 # the placeholder on purpose — "write null, not N/A" is the instruction — soCOMMENT
HIGH…ight-api-slim/tests/test_oracle_backend_integration.py547 """JSON_MERGEPATCH — Oracle equivalent of PG's || for JSONB concatenation."""STRING
HIGH⚡hindsight-api-slim/tests/test_response_models.py40 fact = MemoryFact(**_BASE, metadata='{"ocr_engine": null, "n": 3}')CODE
HIGH⚡…ndsight-api-slim/tests/test_bank_config_value_types.py136 # top-level null, which is the "use the server default" tombstone).COMMENT
HIGH…sight-api-slim/tests/test_fk_violation_is_retryable.py115 are the not-null, check, exclusion and restrict violations alongside it.STRING
HIGH…t-api-slim/tests/test_retain_metadata_normalization.py4{"ocr_engine": null}) stored verbatim poisons the read path, which validatesSTRING
HIGH⚡…ht-api-slim/tests/test_entity_labels_openapi_schema.py18 # anyOf[array-of-$ref, null]; find the array branch and confirm its items are a $ref (not a bare object).COMMENT
HIGHhindsight-api-slim/hindsight_api/api/http.py3100 "show event time (falls back to `created_at` per row when null)."CODE
HIGHhindsight-api-slim/hindsight_api/api/http.py136 to null, so dropping it (via ``exclude_none``) would omit a key strict generatedSTRING
HIGHhindsight-api-slim/hindsight_api/api/http.py2546 without changing the bank. Unset (null) fields fall back to the bank's resolved config.STRING
HIGH…sight-api-slim/hindsight_api/engine/response_models.py696 # openapi-generator (Python) fails on `anyOf[$ref, null]` with "CodegenCOMMENT
HIGH…ht-api-slim/hindsight_api/engine/operation_metadata.py189 # Absent (rather than null) on rows written by a build predating the field,COMMENT
HIGH…sight-api-slim/hindsight_api/engine/reflect/prompts.py1224 ❌ ``{"op": "append_block", "section_id": "members", "block_id": null, "text": "- Carol"}``CODE
HIGHhindsight-api-slim/hindsight_api/engine/search/tags.py97 clause is `tags @> v` / `tags && v` (plus the untagged exclusions, which areSTRING
HIGH…ight-api-slim/hindsight_api/engine/search/reranking.py457 # NaN as JSON null, which breaks clients expecting numeric values.COMMENT
HIGH…-api-slim/hindsight_api/engine/memories/pg/curation.py596 resort, it is never null).STRING
HIGH…pi-slim/hindsight_api/engine/retain/fact_extraction.py1431 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.py30 Request to run fact extraction ONLY (no resolution/links/embeddings/persistence). Every field below the content/conSTRING
HIGH…lients/python/tests/test_mental_model_trigger_patch.py64 """An explicit None on a nullable field still serializes as null, which is how aSTRING
HIGHhindsight-dev/benchmarks/micro/token_counting.py61 cd hindsight-dev && uv run --with tiktoken token-count-benchSTRING
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.py436 # include_entities=False -> include: {entities: null}COMMENT
Fake / Example Data129 hits · 134 pts
SeverityFileLineSnippetContext
LOW⚡…tensions/supabase-tenant/tests/test_supabase_tenant.py333 key = await ext._get_signing_key("fake-token")CODE
LOW⚡…tensions/supabase-tenant/tests/test_supabase_tenant.py371 await ext._get_signing_key("fake-token")CODE
LOW⚡…tensions/supabase-tenant/tests/test_supabase_tenant.py382 await ext._get_signing_key("fake-token")CODE
LOW⚡…tensions/supabase-tenant/tests/test_supabase_tenant.py392 await ext._get_signing_key("fake-token")CODE
LOW…tensions/supabase-tenant/tests/test_supabase_tenant.py350 key = await ext._get_signing_key("fake-token")CODE
LOW⚡…ndsight-api-slim/tests/test_graph_entity_fanout_cap.py33 # Create many facts sharing one common entity ("Acme Corp") plusCOMMENT
LOW⚡…ndsight-api-slim/tests/test_graph_entity_fanout_cap.py35 # and verify graph expansion finds siblings via "Acme Corp".COMMENT
LOW⚡…ndsight-api-slim/tests/test_graph_entity_fanout_cap.py37 # Target: unique entity "Zara" shares "Acme Corp" with the restCOMMENT
LOW⚡…ndsight-api-slim/tests/test_graph_entity_fanout_cap.py41 "entities": [{"text": "Zara"}, {"text": "Acme Corp"}],CODE
LOW⚡…ndsight-api-slim/tests/test_graph_entity_fanout_cap.py44 # Add many facts that all share "Acme Corp" — creates a high-fanout entityCOMMENT
LOW⚡…ndsight-api-slim/tests/test_graph_entity_fanout_cap.py50 "entities": [{"text": f"Employee {i}"}, {"text": "Acme Corp"}],CODE
LOW…ndsight-api-slim/tests/test_graph_entity_fanout_cap.py64 # shared entity, even though "Acme Corp" has 60+ mentions.COMMENT
LOW…ndsight-api-slim/tests/test_graph_entity_fanout_cap.py86 acme_found = any("Acme Corp" in t for t in all_texts)CODE
LOWhindsight-api-slim/tests/test_entity_labels.py1393 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_fact_extraction_retry.py370@pytest.mark.parametrize("placeholder", ["", "N/A", None])CODE
LOW⚡hindsight-api-slim/tests/test_gemini_service_tier.py16 api_key="fake-key",CODE
LOW⚡hindsight-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.py68 monkeypatch.setenv("HINDSIGHT_API_LLM_API_KEY", "fake-key")CODE
LOW⚡hindsight-api-slim/tests/test_gemini_service_tier.py91 monkeypatch.setenv("HINDSIGHT_API_LLM_API_KEY", "fake-key")CODE
LOW⚡hindsight-api-slim/tests/test_gemini_service_tier.py108 api_key="fake-key",CODE
LOWhindsight-api-slim/tests/test_llm_extra_body.py67 api_key="fake-key",CODE
LOWhindsight-api-slim/tests/test_llm_extra_body.py133 api_key="fake-key",CODE
LOWhindsight-api-slim/tests/test_llm_extra_body.py367 api_key="fake-key",CODE
LOW…dsight-api-slim/tests/test_anthropic_prompt_caching.py43 api_key="fake-key",CODE
LOW…-api-slim/tests/test_reflect_page_length_decoupling.py191 llm = LLMConfig(provider="gemini", api_key="fake-key", base_url="", model="gemini-2.5-flash")CODE
LOW⚡hindsight-api-slim/tests/test_config_validation.py867 monkeypatch.setenv("HINDSIGHT_API_LLM_API_KEY", "fake-key")CODE
LOW⚡hindsight-api-slim/tests/test_config_validation.py879 monkeypatch.setenv("HINDSIGHT_API_LLM_API_KEY", "fake-key")CODE
LOW⚡hindsight-api-slim/tests/test_config_validation.py891 monkeypatch.setenv("HINDSIGHT_API_LLM_API_KEY", "fake-key")CODE
LOW⚡hindsight-api-slim/tests/test_entity_name_hygiene.py56 ("Acme\nCorp", "Acme Corp"),CODE
LOW⚡hindsight-api-slim/tests/test_entity_name_hygiene.py84 assert _texts(all_entities_flat) == ["Acme Corp"]CODE
LOW⚡hindsight-api-slim/tests/test_entity_name_hygiene.py99 assert [e["text"] for e in all_entities[0]] == ["Acme Corp", "Alice"]CODE
LOW⚡hindsight-api-slim/tests/test_entity_name_hygiene.py100 assert [e["text"] for e in all_entities_flat[1]["nearby_entities"]] == ["Acme Corp", "Alice"]CODE
LOW⚡hindsight-api-slim/tests/test_entity_name_hygiene.py211 [{"text": "Acme\nCorp", "type": "CONCEPT"}, {"text": "Acme Corp", "type": "CONCEPT"}]CODE
LOW⚡hindsight-api-slim/tests/test_entity_name_hygiene.py213 assert _texts(all_entities_flat) == ["Acme Corp"]CODE
LOW⚡hindsight-api-slim/tests/test_entity_name_hygiene.py214 assert [e["text"] for e in all_entities[0]] == ["Acme Corp"]CODE
LOW⚡hindsight-api-slim/tests/test_entity_name_hygiene.py220 [{"text": "Acme Corp", "type": "CONCEPT"}, {"text": "acme\ncorp", "type": "CONCEPT"}]CODE
LOW⚡hindsight-api-slim/tests/test_entity_name_hygiene.py222 assert _texts(all_entities_flat) == ["Acme Corp"]CODE
LOW⚡hindsight-api-slim/tests/test_entity_name_hygiene.py234 [{"text": "Acme Corp", "type": "CONCEPT"}],CODE
LOW⚡hindsight-api-slim/tests/test_entity_name_hygiene.py237 assert _texts(all_entities_flat) == ["Acme Corp", "Acme Corp"]CODE
LOW⚡hindsight-api-slim/tests/test_entity_name_hygiene.py267 {"text": "Acme Corp", "type": "ORG", "resolve": False}, # caller: literalCODE
LOW⚡hindsight-api-slim/tests/test_entity_name_hygiene.py271 assert _texts(all_entities_flat) == ["Acme Corp"], "still one mention after normalization"CODE
LOW⚡hindsight-api-slim/tests/test_entity_name_hygiene.py261 "Acme Corp" and "Acme\nCorp" both arrive here and only collapse after normalization.STRING
LOWhindsight-api-slim/tests/test_codex_oauth_refresh.py213 "id_token": {"email": "user@example.com"},CODE
LOWhindsight-api-slim/tests/test_codex_oauth_refresh.py229 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/query_analyzer_corpus.py56 "user@example.com",CODE
LOWhindsight-api-slim/tests/test_gemini_safety_settings.py422 "HINDSIGHT_API_LLM_API_KEY": "fake-key",CODE
LOW…ight-api-slim/tests/test_reflect_anthropic_protocol.py59 provider = AnthropicLLM(provider="anthropic", api_key="fake-key", base_url="", model="claude-sonnet-5")CODE
LOW…ght-api-slim/hindsight_api/engine/memories/pg/links.py282 # strings ("Acme\nCorp" from extraction, "Acme Corp" from the caller'sCOMMENT
LOW…ght-api-slim/hindsight_api/engine/memories/pg/links.py316 # "Acme Corp" and the extractor's "Acme\nCorp" both reach here, and dropping theCOMMENT
LOW⚡hindsight-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
LOW…dsight-docs/blog/2026-09-23-bring-facts-not-beliefs.md90**Watch the batch size for entity variety.** Hindsight merges surface variants within a single retain, so "Acme Corp" anCODE
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
LOWhindsight-control-plane/src/messages/yue-Hant.json258 "placeholder": "新 ID",CODE
LOWhindsight-control-plane/src/messages/ja.json258 "placeholder": "新しい ID",CODE
69 more matches not shown…
Redundant / Tautological Comments85 hits · 102 pts
SeverityFileLineSnippetContext
LOWhindsight-cli/build.sh15# Check if cargo is availableCOMMENT
LOWhindsight-cli/build.sh42 # Check if target is installed, install if notCOMMENT
LOW⚡hindsight-all/tests/test_server_integration.py120 # Check if the batch was submitted successfully (items_count shows how many were submitted)COMMENT
LOWdocker/test-image.sh114# Set trap to cleanup on exitCOMMENT
LOWdocker/test-image.sh248 # Check if container is still runningCOMMENT
LOW⚡docker/standalone/start-all.sh232 # Check if external database is configured (skip check for embedded pg0)COMMENT
LOWdocker/standalone/start-all.sh409# Check if any services are runningCOMMENT
LOWdocker/standalone/start-all.sh422 # Check if any tracked PID has exitedCOMMENT
LOWhindsight-api-slim/tests/test_document_tracking.py473 # Check if document existsCOMMENT
LOWhindsight-api-slim/tests/test_mental_models.py698 # 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.py266 # Check if Groq supports batch APICOMMENT
LOWhindsight-api-slim/tests/test_retain.py582 # Check if LLM extracted the date from context (ideal case)STRING
LOWhindsight-api-slim/tests/test_retain.py1432 # Check if any chunks show truncationSTRING
LOWhindsight-api-slim/tests/test_retain.py2496 # Check if facts contain English-only content (this would be wrong)STRING
LOWhindsight-api-slim/tests/test_multilingual.py205 # Check if entity contains Chinese charactersSTRING
LOWhindsight-api-slim/tests/test_http_api_integration.py840 # Check if memories are storedCOMMENT
LOWhindsight-api-slim/tests/test_file_retain.py456 # 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.py322 # Set path_separator to avoid deprecation warningCOMMENT
LOWhindsight-api-slim/hindsight_api/migrations.py795 # Check if memory_units table exists (proxy for schema being initialized)STRING
LOWhindsight-api-slim/hindsight_api/migrations.py885 # Check if table existsSTRING
LOWhindsight-api-slim/hindsight_api/migrations.py971 # Check if index type matches targetSTRING
LOWhindsight-api-slim/hindsight_api/migrations.py1269 # Check if table existsSTRING
LOWhindsight-api-slim/hindsight_api/migrations.py1333 # Check if column and index types match targetSTRING
LOWhindsight-api-slim/hindsight_api/migrations.py1356 # Check if table has dataSTRING
LOWhindsight-api-slim/hindsight_api/api/mcp.py428 # Check if this is an MCP request (matches prefix)COMMENT
LOWhindsight-api-slim/hindsight_api/api/http.py10196 # Check if batch API is enabled - if so, require async modeCOMMENT
LOWhindsight-api-slim/hindsight_api/api/http.py10362 # Check if file upload API is enabledCOMMENT
LOWhindsight-api-slim/hindsight_api/api/http.py10422 # 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.py302 # Check if the backend supports the async worker/poller.COMMENT
LOWhindsight-api-slim/hindsight_api/engine/task_backend.py283 # Check if there are any pending tasks with payloadsCOMMENT
LOW…pi-slim/hindsight_api/engine/providers/llamacpp_llm.py231 # Check if process diedCOMMENT
LOW…indsight_api/engine/providers/openai_compatible_llm.py1232 # Check if model supports reasoning parameterCOMMENT
LOW…i-slim/hindsight_api/engine/providers/anthropic_llm.py493 # Check if it's a rate limit or server errorCOMMENT
LOW…ndsight-api-slim/hindsight_api/engine/reflect/agent.py1608 # Check if tool returned an error response - log but continue (LLM will see the error)COMMENT
LOWhindsight-api-slim/hindsight_api/engine/search/tags.py277 # Check if untaggedCOMMENT
LOW…lim/hindsight_api/engine/consolidation/consolidator.py1545 # Check if consolidation is enabledCOMMENT
LOW⚡…t-api-slim/hindsight_api/engine/retain/orchestrator.py2486 # Check if this is a retry of the same content (crash recovery). If theCOMMENT
LOW⚡…t-api-slim/hindsight_api/engine/retain/orchestrator.py3389 # Check if facts are already committed (recovery from previous crash).COMMENT
LOW…pi-slim/hindsight_api/engine/retain/fact_extraction.py2375 # Set mentioned_at to the event_date (when the conversation/document occurred),COMMENT
LOW…pi-slim/hindsight_api/engine/retain/fact_extraction.py2467 # Check if error is related to max_tokens/completion_tokens not being supportedCOMMENT
LOW⚡…pi-slim/hindsight_api/engine/retain/fact_extraction.py3320 # Set mentioned_at to the event_date (when the conversation/document occurred),STRING
LOW…pi-slim/hindsight_api/engine/retain/fact_extraction.py2872 # Check if we're resuming an existing batch (crash recovery). This is readSTRING
LOW⚡hindsight-embed/hindsight_embed/daemon_client.py279 # Check if user wants to use external APICOMMENT
LOW⚡hindsight-embed/hindsight_embed/cli.py1200 # Check if profile existsCOMMENT
LOWhindsight-embed/hindsight_embed/cli.py170 # Check if we're creating a named profile with --env flagsCOMMENT
LOWhindsight-embed/hindsight_embed/cli.py175 # Check if we're creating a named profile interactivelyCOMMENT
LOWhindsight-embed/hindsight_embed/cli.py626 # Check if using pg0 and show database locationCOMMENT
LOWhindsight-embed/hindsight_embed/cli.py901 # Check if profile exists and get its portCOMMENT
LOWhindsight-embed/hindsight_embed/cli.py944 # Check if profile exists and get its portCOMMENT
LOWhindsight-embed/hindsight_embed/cli.py1363 # Check if daemon is runningCOMMENT
LOWhindsight-embed/hindsight_embed/daemon_embed_manager.py477 # Check if we're in development modeCOMMENT
LOWhindsight-embed/hindsight_embed/daemon_embed_manager.py1142 # Check if we're in development mode (monorepo)COMMENT
LOWscripts/update-docs-version.sh101 # Check if version already existsCOMMENT
25 more matches not shown…
Verbosity Indicators63 hits · 92 pts
SeverityFileLineSnippetContext
LOW⚡hindsight-all/tests/test_server_integration.py76 # Step 1: Create a memory bank with background informationCOMMENT
LOW⚡hindsight-all/tests/test_server_integration.py85 # Step 2: Store some memories about user preferencesCOMMENT
LOW⚡hindsight-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
LOW⚡hindsight-all/tests/test_embedded.py117 # Step 1: Create a memory bankCOMMENT
LOW⚡hindsight-all/tests/test_embedded.py126 # Step 2: Store memories (single)COMMENT
LOW⚡hindsight-all/tests/test_embedded.py136 # Step 3: Store batch memoriesCOMMENT
LOW⚡hindsight-all/tests/test_embedded.py151 # Step 4: Recall memoriesCOMMENT
LOW⚡hindsight-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⚡hindsight-api-slim/hindsight_api/engine/parsers/iris.py74 # Step 1: Request a presigned upload URLCOMMENT
LOW⚡hindsight-api-slim/hindsight_api/engine/parsers/iris.py84 # Step 2: Upload the file bytes to the presigned URL (no auth header)COMMENT
LOW⚡hindsight-api-slim/hindsight_api/engine/parsers/iris.py94 # Step 3: Start extractionCOMMENT
LOW⚡hindsight-api-slim/hindsight_api/engine/parsers/iris.py102 # Step 4: Poll until ready or timeoutCOMMENT
LOW⚡…t-api-slim/hindsight_api/engine/parsers/llama_parse.py72 # Step 1: Upload file and start parse jobCOMMENT
LOW⚡…t-api-slim/hindsight_api/engine/parsers/llama_parse.py80 # Step 2: Poll job status until SUCCESS or ERRORCOMMENT
LOW…t-api-slim/hindsight_api/engine/parsers/llama_parse.py98 # Step 3: Fetch the markdown resultCOMMENT
LOW…ight-api-slim/hindsight_api/engine/search/retrieval.py159 # Step 1: Extract temporal constraint first (CPU work, no DB)COMMENT
LOW…ight-api-slim/hindsight_api/engine/search/retrieval.py181 # Step 2: Run every arm for every fact type through the store's single recall method.COMMENT
LOW⚡…pi-slim/hindsight_api/engine/retain/fact_extraction.py3059 # Step 4: Retrieve resultsSTRING
LOW⚡…pi-slim/hindsight_api/engine/retain/fact_extraction.py3068 # Step 5: Parse results into facts (same as sync mode)STRING
LOW⚡…pi-slim/hindsight_api/engine/retain/fact_extraction.py3396 # Step 7: Add temporal offsetsSTRING
LOW⚡…pi-slim/hindsight_api/engine/retain/fact_extraction.py3399 # Step 8: Auto-tag facts from label groups with tag=TrueSTRING
LOW⚡…pi-slim/hindsight_api/engine/retain/fact_extraction.py3534 # Step 2: Wait for all fact extractions to complete.STRING
LOW⚡…pi-slim/hindsight_api/engine/retain/fact_extraction.py3540 # Step 3: Flatten and convert to typed objectsSTRING
LOW⚡…pi-slim/hindsight_api/engine/retain/fact_extraction.py3613 # Step 4: For verbatim mode, collapse to one fact per chunk with original textSTRING
LOW⚡…pi-slim/hindsight_api/engine/retain/fact_extraction.py3617 # Step 5: Add time offsets to preserve ordering within each contentSTRING
LOW⚡…pi-slim/hindsight_api/engine/retain/fact_extraction.py3620 # Step 6: Auto-tag facts from label groups with tag=TrueSTRING
LOW…pi-slim/hindsight_api/engine/retain/fact_extraction.py2944 # Step 1: Chunk all contents and build batch requests (skip if resuming)STRING
LOW…pi-slim/hindsight_api/engine/retain/fact_extraction.py2992 # Step 2: Submit batch (skip if resuming)STRING
LOW…pi-slim/hindsight_api/engine/retain/fact_extraction.py3033 # Step 3: Poll until completeSTRING
LOW…pi-slim/hindsight_api/engine/retain/fact_extraction.py3355 # Step 6: Convert to ExtractedFact objects with proper chunk mappingSTRING
LOW…pi-slim/hindsight_api/engine/retain/fact_extraction.py3517 # Step 1: Create parallel fact extraction tasksSTRING
LOW.github/workflows/release.yml462 # # Step 1: Build for local testing (single platform, no push)COMMENT
LOW.github/workflows/release.yml476 # # 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
LOW⚡…ght-integrations/litellm/hindsight_litellm/__init__.py600 # Step 3: Store conversation (raises HindsightError on failure)COMMENT
LOW⚡…ght-integrations/litellm/hindsight_litellm/__init__.py640 # Step 1: Inject memories (raises HindsightError on failure)COMMENT
LOW⚡…ght-integrations/litellm/hindsight_litellm/__init__.py653 # Step 2: Call original LLMCOMMENT
LOW⚡…ght-integrations/litellm/hindsight_litellm/__init__.py656 # Step 3: Store conversation (raises HindsightError on failure)COMMENT
LOW⚡…ght-integrations/litellm/hindsight_litellm/__init__.py1331 # Step 1: Inject memories (raises HindsightError on failure)COMMENT
LOW⚡…ght-integrations/litellm/hindsight_litellm/__init__.py1344 # Step 2: Call LLMCOMMENT
LOW⚡…ght-integrations/litellm/hindsight_litellm/__init__.py1347 # Step 3: Store conversation (raises HindsightError on failure)COMMENT
3 more matches not shown…
AI Slop Vocabulary26 hits · 74 pts
SeverityFileLineSnippetContext
LOWhindsight-api-slim/tests/test_extensions.py823 # Should not raise - no tenant extension configured, just pass empty RequestContextCOMMENT
MEDIUMhindsight-api-slim/tests/test_delta_editorial_fusion.py128 # Phase 1: Ingest SEO best practicesCOMMENT
MEDIUM⚡hindsight-api-slim/tests/test_tags_visibility.py1546# SET of signatures returned rather than raw counts, so they are robust to how manyCOMMENT
MEDIUM…ght-api-slim/hindsight_api/engine/memories/postgres.py236 # Timings are diagnostics for the perf harness; this path drops them.COMMENT
MEDIUM…pi-slim/hindsight_api/engine/retain/fact_extraction.py1218# Verbose extraction prompt - detailed, comprehensive facts (legacy mode)COMMENT
MEDIUM…ndsight-system-evals/hindsight_system_evals/sources.py72#: records it — the coding-agents integration already stamps a harness there. ItCOMMENT
MEDIUM…stem-evals/hindsight_system_evals/coding_agents/run.py134 # this harness is for.COMMENT
MEDIUM…-evals/hindsight_system_evals/coding_agents/prefill.py53#: because ``--api-url`` can point this harness at any deployment.COMMENT
MEDIUM…-evals/hindsight_system_evals/coding_agents/prefill.py90#: prose would be a bank this harness never actually sees in the field.COMMENT
MEDIUMscripts/generate-docs-skill.sh72 # Use Python for more robust processingCOMMENT
MEDIUMscripts/benchmarks/run-document-evolution.sh4# Runs against an already-running Hindsight server, so the same harness canCOMMENT
MEDIUM.github/workflows/test.yml5716 # harness was only exercised by the nightly Performance Tests workflow, where aCOMMENT
MEDIUM.github/workflows/perf-test.yml398 # `tests` first: fast, model-free unit tests of the harness itself (targetCOMMENT
MEDIUMhindsight-docs/src/lib/coding-agent-harnesses.ts70 `/sdks/integrations/coding-agents#-${harness.label.toLowerCase().replace(/[^a-z0-9]+/g, '-')}`;CODE
MEDIUMhindsight-dev/benchmarks/multimodal_retain/runner.py141 # A 422 here is a real finding, not a harness bug: it means the server'sCOMMENT
LOW…sight-integrations/litellm/hindsight_litellm/config.py305 >>> # Minimal usage - just set HINDSIGHT_API_KEY env varSTRING
MEDIUMhindsight-integrations/coding-agents/cordis.patch.yml10# bank naming, opt-outs) — the same file every other Hindsight coding-agent harness reads. To turnCOMMENT
MEDIUM…sight-integrations/coding-agents/e2e/droid-e2e-exec.sh11# Writing settings.json here (after run-harness.sh has already run the installer) is safe: theCOMMENT
MEDIUM…tegrations/coding-agents/e2e/dsh-stub-model.cordis.yml2# API, so the harness E2E needs no account (the same role `stubModelEnv` plays for the CLIs thatCOMMENT
MEDIUMhindsight-integrations/coding-agents/e2e/run-harness.sh23# runner stays harness-neutral as more CLI adapters are added.COMMENT
MEDIUM…ight-integrations/coding-agents/src/mcp-server.test.ts77 * #3603: this used to fall back to "claude-code" when the registration named no harness. EveryCOMMENT
MEDIUM…ght-integrations/coding-agents/src/core/survey.test.ts131 // #3603: mcp-server.js requires the harness — an inline recipe that omits it used to be servedCOMMENT
MEDIUM…t-integrations/coding-agents/src/core/session-start.ts258 // structural pages track an evolving architecture. Branch-robust: read theCOMMENT
MEDIUMhindsight-integrations/coding-agents/src/core/config.ts872 // `opencode::<project>` bank (#3247). An explicit `harness:` in the config file still wins.COMMENT
MEDIUM…integrations/coding-agents/src/core/skill-sync.test.ts67 * Family-wide guard (#3524 shape): a harness whose installer copies the skill but that SKILL_DIRSCOMMENT
MEDIUMhindsight-integrations/coding-agents/src/e2e/harness.ts247 writeFileSync(join(workDir, "README.md"), "# Hindsight harness E2E fixture\n");CODE
Example Usage Blocks24 hits · 36 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/run-semantic-within-batch-bench.sh4# Usage:COMMENT
LOWscripts/benchmarks/run-entity-resolver-bench.sh4# Usage:COMMENT
LOWscripts/benchmarks/publish-obs-results.sh15# Usage:COMMENT
LOWscripts/benchmarks/run-transfer-streaming-bench.sh4# Usage:COMMENT
LOWscripts/benchmarks/run-perf-test.sh4# Usage:COMMENT
LOWscripts/benchmarks/publish-perf-results.sh13# Usage:COMMENT
LOWscripts/benchmarks/publish-locomo-results.sh18# Usage:COMMENT
LOWscripts/benchmarks/publish-system-evals-results.sh15# Usage:COMMENT
LOWscripts/benchmarks/run-vector-serialization-bench.sh4# Usage:COMMENT
LOWscripts/benchmarks/run-token-count-bench.sh4# Usage:COMMENT
LOWscripts/dev/setup.sh12# Usage:COMMENT
LOWscripts/dev/start-oracle.sh6# Usage:COMMENT
LOWhindsight-integrations/openclaw/scripts/smoke-test.sh32# Usage:COMMENT
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.py190I'm unable to attend the conference due to scheduling conflicts.CODE
LOW⚡…ndsight-api-slim/tests/test_fact_extraction_quality.py1015 don't forget to subscribe" were being extracted as facts.CODE
LOW⚡…ndsight-api-slim/tests/test_fact_extraction_quality.py1021Marcus: Welcome everyone to today's episode! Before we dive in, don't forget toCODE
MEDIUM…ndsight-api-slim/tests/test_fact_extraction_quality.py218 "'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.py1035Don't forget to tap follow or subscribe, tell a friend, and drop a quick ratingCODE
Dead Code3 hits · 6 pts
SeverityFileLineSnippetContext
MEDIUMhindsight-api-slim/tests/test_db_utils.py130CODE
MEDIUMhindsight-api-slim/tests/test_llm_trace.py1023CODE
MEDIUMhindsight-api-slim/tests/test_llm_trace.py1028CODE
Overly Generic Function Names1 hit · 0 pts
SeverityFileLineSnippetContext
LOWhindsight-api-slim/hindsight_api/worker/poller.py1128 async def execute_task(self, task: ClaimedTask):STRING