behive 0.6.0__tar.gz → 0.7.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- behive-0.7.0/PKG-INFO +519 -0
- behive-0.7.0/README.md +451 -0
- {behive-0.6.0 → behive-0.7.0}/pyproject.toml +6 -2
- {behive-0.6.0 → behive-0.7.0}/src/behive/__init__.py +1 -1
- {behive-0.6.0 → behive-0.7.0}/src/behive/brand_check.py +4 -4
- {behive-0.6.0 → behive-0.7.0}/src/behive/cli.py +33 -2
- {behive-0.6.0 → behive-0.7.0}/src/behive/client.py +12 -2
- {behive-0.6.0 → behive-0.7.0}/src/behive/compat/shims.py +0 -1
- {behive-0.6.0 → behive-0.7.0}/src/behive/engine/__main__.py +2 -2
- {behive-0.6.0 → behive-0.7.0}/src/behive/engine/api_scout.py +202 -41
- {behive-0.6.0 → behive-0.7.0}/src/behive/engine/bionic_quorum.py +0 -1
- behive-0.7.0/src/behive/engine/byok.py +221 -0
- behive-0.7.0/src/behive/engine/cellar.py +659 -0
- behive-0.7.0/src/behive/engine/claim_ids.py +26 -0
- behive-0.7.0/src/behive/engine/claim_synthesis.py +482 -0
- behive-0.7.0/src/behive/engine/claims_fallback.py +186 -0
- {behive-0.6.0 → behive-0.7.0}/src/behive/engine/db.py +21 -27
- {behive-0.6.0 → behive-0.7.0}/src/behive/engine/db_helpers.py +32 -0
- {behive-0.6.0 → behive-0.7.0}/src/behive/engine/drones.py +44 -13
- behive-0.7.0/src/behive/engine/entity_remap.py +102 -0
- behive-0.7.0/src/behive/engine/entity_resolver.py +290 -0
- behive-0.7.0/src/behive/engine/fact_synth.py +296 -0
- behive-0.7.0/src/behive/engine/facts_to_claims.py +118 -0
- {behive-0.6.0 → behive-0.7.0}/src/behive/engine/falsifier.py +4 -4
- {behive-0.6.0 → behive-0.7.0}/src/behive/engine/graph_engine.py +8 -4
- behive-0.7.0/src/behive/engine/graph_rebuild.py +120 -0
- {behive-0.6.0 → behive-0.7.0}/src/behive/engine/harvest.py +79 -5
- {behive-0.6.0 → behive-0.7.0}/src/behive/engine/hive_api_sources.json +184 -2
- {behive-0.6.0 → behive-0.7.0}/src/behive/engine/llm.py +367 -15
- {behive-0.6.0 → behive-0.7.0}/src/behive/engine/master_intelligence.py +13 -5
- {behive-0.6.0 → behive-0.7.0}/src/behive/engine/orchestrator.py +1071 -738
- {behive-0.6.0 → behive-0.7.0}/src/behive/engine/prescout.py +51 -19
- {behive-0.6.0 → behive-0.7.0}/src/behive/engine/process.py +624 -263
- behive-0.7.0/src/behive/engine/qdrant_claims.py +128 -0
- {behive-0.6.0 → behive-0.7.0}/src/behive/engine/queen_calibrator.py +0 -2
- {behive-0.6.0 → behive-0.7.0}/src/behive/engine/queen_feedback.py +8 -5
- {behive-0.6.0 → behive-0.7.0}/src/behive/engine/queen_primer.py +22 -10
- {behive-0.6.0 → behive-0.7.0}/src/behive/engine/scout.py +326 -195
- behive-0.7.0/src/behive/engine/search_backends.py +895 -0
- behive-0.7.0/src/behive/engine/source_extraction.py +315 -0
- {behive-0.6.0 → behive-0.7.0}/src/behive/engine/synth.py +5 -5
- behive-0.7.0/src/behive/engine/triples.py +146 -0
- behive-0.7.0/src/behive/engine/wto.py +84 -0
- {behive-0.6.0 → behive-0.7.0}/src/behive/federation.py +104 -189
- behive-0.7.0/src/behive/hygiene.py +159 -0
- {behive-0.6.0 → behive-0.7.0}/src/behive/mcp_server.py +55 -24
- {behive-0.6.0 → behive-0.7.0}/src/behive/server.py +442 -62
- behive-0.7.0/src/behive/sr_bridge.py +372 -0
- behive-0.7.0/src/behive.egg-info/PKG-INFO +519 -0
- {behive-0.6.0 → behive-0.7.0}/src/behive.egg-info/SOURCES.txt +104 -0
- {behive-0.6.0 → behive-0.7.0}/src/behive.egg-info/requires.txt +6 -1
- {behive-0.6.0 → behive-0.7.0}/tests/test_80_async_deep.py +15 -4
- {behive-0.6.0 → behive-0.7.0}/tests/test_80_async_omega.py +2 -2
- {behive-0.6.0 → behive-0.7.0}/tests/test_80_async_process.py +3 -2
- {behive-0.6.0 → behive-0.7.0}/tests/test_80_coverage_buster.py +1 -0
- {behive-0.6.0 → behive-0.7.0}/tests/test_80_deep_dive.py +1 -0
- {behive-0.6.0 → behive-0.7.0}/tests/test_80_integration.py +3 -0
- {behive-0.6.0 → behive-0.7.0}/tests/test_80_integration_h.py +1 -0
- {behive-0.6.0 → behive-0.7.0}/tests/test_80_omega.py +17 -1
- {behive-0.6.0 → behive-0.7.0}/tests/test_80_orch_plan_deep.py +3 -1
- {behive-0.6.0 → behive-0.7.0}/tests/test_80_orchestrator_deep_v2.py +30 -32
- {behive-0.6.0 → behive-0.7.0}/tests/test_80_planner_entities.py +5 -4
- {behive-0.6.0 → behive-0.7.0}/tests/test_80_prescout_v3.py +4 -2
- {behive-0.6.0 → behive-0.7.0}/tests/test_80_process_killer.py +12 -5
- {behive-0.6.0 → behive-0.7.0}/tests/test_80_pure_functions.py +1 -0
- behive-0.7.0/tests/test_a3_busy_wait.py +171 -0
- behive-0.7.0/tests/test_a3_continuation_pg.py +230 -0
- behive-0.7.0/tests/test_a3_incremental_pg.py +334 -0
- behive-0.7.0/tests/test_a3_parallel_pg.py +301 -0
- behive-0.7.0/tests/test_a3_phase_deadline.py +49 -0
- behive-0.7.0/tests/test_a3_round_progress_pg.py +125 -0
- behive-0.7.0/tests/test_api_gap_evidence_boundary.py +46 -0
- {behive-0.6.0 → behive-0.7.0}/tests/test_branch_coverage.py +7 -3
- behive-0.7.0/tests/test_byok_gap.py +27 -0
- behive-0.7.0/tests/test_cellar_phrase.py +33 -0
- behive-0.7.0/tests/test_claim_persistence_pg.py +204 -0
- behive-0.7.0/tests/test_claim_synthesis.py +184 -0
- behive-0.7.0/tests/test_claim_synthesis_names.py +356 -0
- behive-0.7.0/tests/test_claim_synthesis_pg.py +320 -0
- behive-0.7.0/tests/test_claims_fallback.py +23 -0
- behive-0.7.0/tests/test_content_relevance.py +414 -0
- behive-0.7.0/tests/test_content_relevance_pg.py +87 -0
- {behive-0.6.0 → behive-0.7.0}/tests/test_cov_40pct_push.py +3 -1
- {behive-0.6.0 → behive-0.7.0}/tests/test_cov_ceiling_breaker.py +2 -1
- {behive-0.6.0 → behive-0.7.0}/tests/test_cov_deep2.py +9 -3
- {behive-0.6.0 → behive-0.7.0}/tests/test_cov_massive.py +6 -2
- {behive-0.6.0 → behive-0.7.0}/tests/test_cov_server_endpoints.py +3 -2
- {behive-0.6.0 → behive-0.7.0}/tests/test_coverage_phase7.py +7 -3
- behive-0.7.0/tests/test_credential_isolation.py +76 -0
- behive-0.7.0/tests/test_curia_phrase.py +26 -0
- behive-0.7.0/tests/test_db_url_contract.py +37 -0
- behive-0.7.0/tests/test_diag1112_content_ids_pg.py +98 -0
- behive-0.7.0/tests/test_diag1112_ddl_guard_pg.py +189 -0
- behive-0.7.0/tests/test_diag1112_mission_status.py +255 -0
- behive-0.7.0/tests/test_diag1112_mission_status_pg.py +241 -0
- behive-0.7.0/tests/test_diag1112_phase_deadline.py +259 -0
- behive-0.7.0/tests/test_diag1112_scout_sequence_pg.py +180 -0
- behive-0.7.0/tests/test_diag1112_static_fixes.py +98 -0
- behive-0.7.0/tests/test_diag1112_test_infra.py +136 -0
- behive-0.7.0/tests/test_diag1112_wikipedia_ua.py +116 -0
- behive-0.7.0/tests/test_diag1117_concurrency.py +98 -0
- behive-0.7.0/tests/test_diag1117_mission_tag.py +146 -0
- behive-0.7.0/tests/test_diag1117_sr_bridge_pg.py +189 -0
- behive-0.7.0/tests/test_discovery_anaphora.py +34 -0
- behive-0.7.0/tests/test_discovery_backends.py +394 -0
- behive-0.7.0/tests/test_discovery_backends_health.py +167 -0
- behive-0.7.0/tests/test_discovery_planner.py +73 -0
- behive-0.7.0/tests/test_discovery_planner_artifact.py +90 -0
- behive-0.7.0/tests/test_discovery_planner_fallback.py +52 -0
- behive-0.7.0/tests/test_discovery_planner_geo.py +52 -0
- behive-0.7.0/tests/test_discovery_planner_kinds.py +68 -0
- behive-0.7.0/tests/test_discovery_planner_primer.py +64 -0
- behive-0.7.0/tests/test_discovery_planner_validation.py +157 -0
- behive-0.7.0/tests/test_discovery_ranking.py +102 -0
- behive-0.7.0/tests/test_discovery_scout_execution.py +202 -0
- behive-0.7.0/tests/test_discovery_scout_scoring.py +187 -0
- {behive-0.6.0 → behive-0.7.0}/tests/test_e2e_pipeline.py +2 -1
- behive-0.7.0/tests/test_entity_remap.py +9 -0
- behive-0.7.0/tests/test_entity_resolver_domain_match.py +146 -0
- behive-0.7.0/tests/test_eval_claims_pg.py +45 -0
- behive-0.7.0/tests/test_eval_export.py +23 -0
- behive-0.7.0/tests/test_eval_fetch.py +55 -0
- behive-0.7.0/tests/test_eval_judge.py +116 -0
- behive-0.7.0/tests/test_eval_metrics.py +62 -0
- behive-0.7.0/tests/test_fact_synth.py +40 -0
- behive-0.7.0/tests/test_fact_synth_correctness.py +211 -0
- behive-0.7.0/tests/test_federation_off_product.py +9 -0
- behive-0.7.0/tests/test_gate_concurrency.py +113 -0
- behive-0.7.0/tests/test_graph_dependency_contract.py +11 -0
- behive-0.7.0/tests/test_hudoc_search.py +96 -0
- behive-0.7.0/tests/test_hygiene_empty_done_blob.py +46 -0
- behive-0.7.0/tests/test_hygiene_salvage.py +16 -0
- behive-0.7.0/tests/test_llm_strict_compat.py +398 -0
- behive-0.7.0/tests/test_mission_completion_lifecycle.py +264 -0
- behive-0.7.0/tests/test_mission_completion_orchestrator.py +123 -0
- behive-0.7.0/tests/test_mission_completion_pg.py +126 -0
- behive-0.7.0/tests/test_mission_completion_postgres.py +101 -0
- behive-0.7.0/tests/test_qdrant_claims.py +22 -0
- behive-0.7.0/tests/test_qdrant_transport_failure.py +15 -0
- {behive-0.6.0 → behive-0.7.0}/tests/test_rag_orch_30pct.py +1 -1
- {behive-0.6.0 → behive-0.7.0}/tests/test_real_heavy.py +1 -1
- {behive-0.6.0 → behive-0.7.0}/tests/test_real_integration.py +5 -3
- behive-0.7.0/tests/test_relevance_gate_salvage.py +106 -0
- behive-0.7.0/tests/test_repair1022_api_scout.py +68 -0
- behive-0.7.0/tests/test_repair1022_cli_json.py +68 -0
- behive-0.7.0/tests/test_repair1022_client.py +55 -0
- behive-0.7.0/tests/test_repair1022_extraction_diagnostics.py +155 -0
- behive-0.7.0/tests/test_repair1022_extraction_pg.py +143 -0
- behive-0.7.0/tests/test_repair1022_html_text.py +107 -0
- behive-0.7.0/tests/test_repair1022_non_numeric_claims.py +63 -0
- behive-0.7.0/tests/test_repair1022_phase_logs.py +77 -0
- behive-0.7.0/tests/test_repair1022_primer.py +64 -0
- behive-0.7.0/tests/test_repair1022_relevance.py +483 -0
- behive-0.7.0/tests/test_repair1022_relevance_pg.py +84 -0
- behive-0.7.0/tests/test_repair1022_seed_fallback.py +66 -0
- behive-0.7.0/tests/test_repair1022_seeds.py +152 -0
- behive-0.7.0/tests/test_repair1022_support.py +207 -0
- behive-0.7.0/tests/test_repair1022_transient_provider.py +118 -0
- behive-0.7.0/tests/test_report_eval.py +154 -0
- behive-0.7.0/tests/test_resolve_cmd.py +17 -0
- behive-0.7.0/tests/test_schema_writer_census.py +426 -0
- behive-0.7.0/tests/test_search_web_mix.py +15 -0
- {behive-0.6.0 → behive-0.7.0}/tests/test_smoke.py +18 -3
- behive-0.7.0/tests/test_sr_bridge.py +233 -0
- behive-0.7.0/tests/test_sr_manual_review_gate.py +119 -0
- behive-0.6.0/PKG-INFO +0 -846
- behive-0.6.0/README.md +0 -782
- behive-0.6.0/src/behive/engine/search_backends.py +0 -615
- behive-0.6.0/src/behive.egg-info/PKG-INFO +0 -846
- {behive-0.6.0 → behive-0.7.0}/LICENSE +0 -0
- {behive-0.6.0 → behive-0.7.0}/setup.cfg +0 -0
- {behive-0.6.0 → behive-0.7.0}/src/behive/compat/__init__.py +0 -0
- {behive-0.6.0 → behive-0.7.0}/src/behive/config.py +0 -0
- {behive-0.6.0 → behive-0.7.0}/src/behive/engine/__init__.py +0 -0
- {behive-0.6.0 → behive-0.7.0}/src/behive/engine/constants.py +0 -0
- {behive-0.6.0 → behive-0.7.0}/src/behive/engine/content_quality.py +0 -0
- {behive-0.6.0 → behive-0.7.0}/src/behive/engine/context_providers/__init__.py +0 -0
- {behive-0.6.0 → behive-0.7.0}/src/behive/engine/context_providers/base.py +0 -0
- {behive-0.6.0 → behive-0.7.0}/src/behive/engine/context_providers/dispatcher.py +0 -0
- {behive-0.6.0 → behive-0.7.0}/src/behive/engine/context_providers/providers.py +0 -0
- {behive-0.6.0 → behive-0.7.0}/src/behive/engine/db_duckdb.py +0 -0
- {behive-0.6.0 → behive-0.7.0}/src/behive/engine/domain_reputation.py +0 -0
- {behive-0.6.0 → behive-0.7.0}/src/behive/engine/events.py +0 -0
- {behive-0.6.0 → behive-0.7.0}/src/behive/engine/guardrail.py +0 -0
- {behive-0.6.0 → behive-0.7.0}/src/behive/engine/intel_summary.py +0 -0
- {behive-0.6.0 → behive-0.7.0}/src/behive/engine/preprocessor.py +0 -0
- {behive-0.6.0 → behive-0.7.0}/src/behive/engine/queen_fact_mem.py +0 -0
- {behive-0.6.0 → behive-0.7.0}/src/behive/engine/queen_memory.py +0 -0
- {behive-0.6.0 → behive-0.7.0}/src/behive/engine/queen_tools.py +0 -0
- {behive-0.6.0 → behive-0.7.0}/src/behive/engine/rag.py +0 -0
- {behive-0.6.0 → behive-0.7.0}/src/behive/init-db.sql +0 -0
- {behive-0.6.0 → behive-0.7.0}/src/behive/knowledge_graph.py +0 -0
- {behive-0.6.0 → behive-0.7.0}/src/behive/models.py +0 -0
- {behive-0.6.0 → behive-0.7.0}/src/behive.egg-info/dependency_links.txt +0 -0
- {behive-0.6.0 → behive-0.7.0}/src/behive.egg-info/entry_points.txt +0 -0
- {behive-0.6.0 → behive-0.7.0}/src/behive.egg-info/top_level.txt +0 -0
- {behive-0.6.0 → behive-0.7.0}/tests/test_80_async_subprocess.py +0 -0
- {behive-0.6.0 → behive-0.7.0}/tests/test_80_batch_a_harvest_process.py +0 -0
- {behive-0.6.0 → behive-0.7.0}/tests/test_80_batch_a_synth_rag.py +0 -0
- {behive-0.6.0 → behive-0.7.0}/tests/test_80_batch_bc_orch_intel.py +0 -0
- {behive-0.6.0 → behive-0.7.0}/tests/test_80_batch_def_remaining.py +0 -0
- {behive-0.6.0 → behive-0.7.0}/tests/test_80_batch_g_deep.py +0 -0
- {behive-0.6.0 → behive-0.7.0}/tests/test_80_breadth.py +0 -0
- {behive-0.6.0 → behive-0.7.0}/tests/test_80_brute_force.py +0 -0
- {behive-0.6.0 → behive-0.7.0}/tests/test_80_brute_v3.py +0 -0
- {behive-0.6.0 → behive-0.7.0}/tests/test_80_clean_execution.py +0 -0
- {behive-0.6.0 → behive-0.7.0}/tests/test_80_config_client.py +0 -0
- {behive-0.6.0 → behive-0.7.0}/tests/test_80_conflict_detector.py +0 -0
- {behive-0.6.0 → behive-0.7.0}/tests/test_80_continuation.py +0 -0
- {behive-0.6.0 → behive-0.7.0}/tests/test_80_coverage_push.py +0 -0
- {behive-0.6.0 → behive-0.7.0}/tests/test_80_deep_push_v2.py +0 -0
- {behive-0.6.0 → behive-0.7.0}/tests/test_80_deep_targets_v2.py +0 -0
- {behive-0.6.0 → behive-0.7.0}/tests/test_80_domrep_intel_primer.py +0 -0
- {behive-0.6.0 → behive-0.7.0}/tests/test_80_drones_guard_api.py +0 -0
- {behive-0.6.0 → behive-0.7.0}/tests/test_80_drones_scout_mi.py +0 -0
- {behive-0.6.0 → behive-0.7.0}/tests/test_80_events_deep.py +0 -0
- {behive-0.6.0 → behive-0.7.0}/tests/test_80_events_domrep_intel.py +0 -0
- {behive-0.6.0 → behive-0.7.0}/tests/test_80_falsifier_deep.py +0 -0
- {behive-0.6.0 → behive-0.7.0}/tests/test_80_falsifier_synth_extra.py +0 -0
- {behive-0.6.0 → behive-0.7.0}/tests/test_80_falsifier_v3.py +0 -0
- {behive-0.6.0 → behive-0.7.0}/tests/test_80_feedback_deep.py +0 -0
- {behive-0.6.0 → behive-0.7.0}/tests/test_80_feedback_deep_v3.py +0 -0
- {behive-0.6.0 → behive-0.7.0}/tests/test_80_feedback_v2.py +0 -0
- {behive-0.6.0 → behive-0.7.0}/tests/test_80_final_mega.py +0 -0
- {behive-0.6.0 → behive-0.7.0}/tests/test_80_final_push.py +0 -0
- {behive-0.6.0 → behive-0.7.0}/tests/test_80_final_wave.py +0 -0
- {behive-0.6.0 → behive-0.7.0}/tests/test_80_golden_process.py +0 -0
- {behive-0.6.0 → behive-0.7.0}/tests/test_80_graph_deep.py +0 -0
- {behive-0.6.0 → behive-0.7.0}/tests/test_80_graph_deep_v2.py +0 -0
- {behive-0.6.0 → behive-0.7.0}/tests/test_80_graph_engine.py +0 -0
- {behive-0.6.0 → behive-0.7.0}/tests/test_80_graph_massive.py +0 -0
- {behive-0.6.0 → behive-0.7.0}/tests/test_80_harvest_deep.py +0 -0
- {behive-0.6.0 → behive-0.7.0}/tests/test_80_harvest_deep_v2.py +0 -0
- {behive-0.6.0 → behive-0.7.0}/tests/test_80_harvest_intel_dom.py +0 -0
- {behive-0.6.0 → behive-0.7.0}/tests/test_80_harvest_orch.py +0 -0
- {behive-0.6.0 → behive-0.7.0}/tests/test_80_harvest_v3.py +0 -0
- {behive-0.6.0 → behive-0.7.0}/tests/test_80_heavy_modules.py +0 -0
- {behive-0.6.0 → behive-0.7.0}/tests/test_80_import_sweep.py +0 -0
- {behive-0.6.0 → behive-0.7.0}/tests/test_80_init_modules.py +0 -0
- {behive-0.6.0 → behive-0.7.0}/tests/test_80_intel_calib_domain.py +0 -0
- {behive-0.6.0 → behive-0.7.0}/tests/test_80_llm_db_preproc.py +0 -0
- {behive-0.6.0 → behive-0.7.0}/tests/test_80_llm_deep.py +0 -0
- {behive-0.6.0 → behive-0.7.0}/tests/test_80_low_modules.py +0 -0
- {behive-0.6.0 → behive-0.7.0}/tests/test_80_lowhanging.py +0 -0
- {behive-0.6.0 → behive-0.7.0}/tests/test_80_massive_clean.py +0 -0
- {behive-0.6.0 → behive-0.7.0}/tests/test_80_mega_push.py +0 -0
- {behive-0.6.0 → behive-0.7.0}/tests/test_80_mega_push2.py +0 -0
- {behive-0.6.0 → behive-0.7.0}/tests/test_80_mi_deep.py +0 -0
- {behive-0.6.0 → behive-0.7.0}/tests/test_80_mi_deep_v2.py +0 -0
- {behive-0.6.0 → behive-0.7.0}/tests/test_80_mi_synth_deep.py +0 -0
- {behive-0.6.0 → behive-0.7.0}/tests/test_80_mi_v3.py +0 -0
- {behive-0.6.0 → behive-0.7.0}/tests/test_80_orch_deep.py +0 -0
- {behive-0.6.0 → behive-0.7.0}/tests/test_80_orch_prescout_mega.py +0 -0
- {behive-0.6.0 → behive-0.7.0}/tests/test_80_orchestrator_helpers.py +0 -0
- {behive-0.6.0 → behive-0.7.0}/tests/test_80_orchestrator_v3.py +0 -0
- {behive-0.6.0 → behive-0.7.0}/tests/test_80_pipeline_mega.py +0 -0
- {behive-0.6.0 → behive-0.7.0}/tests/test_80_prescout_dance.py +0 -0
- {behive-0.6.0 → behive-0.7.0}/tests/test_80_prescout_deep_v2.py +0 -0
- {behive-0.6.0 → behive-0.7.0}/tests/test_80_prescout_feedback.py +0 -0
- {behive-0.6.0 → behive-0.7.0}/tests/test_80_prescout_pure.py +0 -0
- {behive-0.6.0 → behive-0.7.0}/tests/test_80_process_classes.py +0 -0
- {behive-0.6.0 → behive-0.7.0}/tests/test_80_process_deep.py +0 -0
- {behive-0.6.0 → behive-0.7.0}/tests/test_80_process_orch_harvest.py +0 -0
- {behive-0.6.0 → behive-0.7.0}/tests/test_80_process_pure.py +0 -0
- {behive-0.6.0 → behive-0.7.0}/tests/test_80_process_regex.py +0 -0
- {behive-0.6.0 → behive-0.7.0}/tests/test_80_process_v3.py +0 -0
- {behive-0.6.0 → behive-0.7.0}/tests/test_80_process_v4.py +0 -0
- {behive-0.6.0 → behive-0.7.0}/tests/test_80_quality_events.py +0 -0
- {behive-0.6.0 → behive-0.7.0}/tests/test_80_queen_mega.py +0 -0
- {behive-0.6.0 → behive-0.7.0}/tests/test_80_queen_memory_calibrator.py +0 -0
- {behive-0.6.0 → behive-0.7.0}/tests/test_80_queen_tools_deep.py +0 -0
- {behive-0.6.0 → behive-0.7.0}/tests/test_80_quorum_quality.py +0 -0
- {behive-0.6.0 → behive-0.7.0}/tests/test_80_rag_deep.py +0 -0
- {behive-0.6.0 → behive-0.7.0}/tests/test_80_rag_deep_v2.py +0 -0
- {behive-0.6.0 → behive-0.7.0}/tests/test_80_rag_deep_v3.py +0 -0
- {behive-0.6.0 → behive-0.7.0}/tests/test_80_rag_massive.py +0 -0
- {behive-0.6.0 → behive-0.7.0}/tests/test_80_rag_mega.py +0 -0
- {behive-0.6.0 → behive-0.7.0}/tests/test_80_rag_mi_deep.py +0 -0
- {behive-0.6.0 → behive-0.7.0}/tests/test_80_rag_mi_final.py +0 -0
- {behive-0.6.0 → behive-0.7.0}/tests/test_80_rag_v4.py +0 -0
- {behive-0.6.0 → behive-0.7.0}/tests/test_80_remaining.py +0 -0
- {behive-0.6.0 → behive-0.7.0}/tests/test_80_routing_validation.py +0 -0
- {behive-0.6.0 → behive-0.7.0}/tests/test_80_schema_deep.py +0 -0
- {behive-0.6.0 → behive-0.7.0}/tests/test_80_scout_deep.py +0 -0
- {behive-0.6.0 → behive-0.7.0}/tests/test_80_scout_feedback.py +0 -0
- {behive-0.6.0 → behive-0.7.0}/tests/test_80_scout_synth_v2.py +0 -0
- {behive-0.6.0 → behive-0.7.0}/tests/test_80_search_backends_v3.py +0 -0
- {behive-0.6.0 → behive-0.7.0}/tests/test_80_search_deep_v2.py +0 -0
- {behive-0.6.0 → behive-0.7.0}/tests/test_80_search_falsifier.py +0 -0
- {behive-0.6.0 → behive-0.7.0}/tests/test_80_search_llm.py +0 -0
- {behive-0.6.0 → behive-0.7.0}/tests/test_80_server_mcp.py +0 -0
- {behive-0.6.0 → behive-0.7.0}/tests/test_80_small_push.py +0 -0
- {behive-0.6.0 → behive-0.7.0}/tests/test_80_smaller_modules.py +0 -0
- {behive-0.6.0 → behive-0.7.0}/tests/test_80_surgical.py +0 -0
- {behive-0.6.0 → behive-0.7.0}/tests/test_80_surgical_targets.py +0 -0
- {behive-0.6.0 → behive-0.7.0}/tests/test_80_synth_deep_v2.py +0 -0
- {behive-0.6.0 → behive-0.7.0}/tests/test_80_synth_graph_extra.py +0 -0
- {behive-0.6.0 → behive-0.7.0}/tests/test_80_synth_killer.py +0 -0
- {behive-0.6.0 → behive-0.7.0}/tests/test_80_synth_mega.py +0 -0
- {behive-0.6.0 → behive-0.7.0}/tests/test_80_synth_mi_deep.py +0 -0
- {behive-0.6.0 → behive-0.7.0}/tests/test_80_synth_queen.py +0 -0
- {behive-0.6.0 → behive-0.7.0}/tests/test_80_targeted_lines.py +0 -0
- {behive-0.6.0 → behive-0.7.0}/tests/test_api_scout.py +0 -0
- {behive-0.6.0 → behive-0.7.0}/tests/test_beeworker_deep.py +0 -0
- {behive-0.6.0 → behive-0.7.0}/tests/test_bionic_quorum.py +0 -0
- {behive-0.6.0 → behive-0.7.0}/tests/test_blast_coverage.py +0 -0
- {behive-0.6.0 → behive-0.7.0}/tests/test_cli.py +0 -0
- {behive-0.6.0 → behive-0.7.0}/tests/test_client.py +0 -0
- {behive-0.6.0 → behive-0.7.0}/tests/test_config.py +0 -0
- {behive-0.6.0 → behive-0.7.0}/tests/test_constants.py +0 -0
- {behive-0.6.0 → behive-0.7.0}/tests/test_content_quality.py +0 -0
- {behive-0.6.0 → behive-0.7.0}/tests/test_cov_async_deep.py +0 -0
- {behive-0.6.0 → behive-0.7.0}/tests/test_cov_async_push.py +0 -0
- {behive-0.6.0 → behive-0.7.0}/tests/test_cov_breakthrough.py +0 -0
- {behive-0.6.0 → behive-0.7.0}/tests/test_cov_breakthrough2.py +0 -0
- {behive-0.6.0 → behive-0.7.0}/tests/test_cov_deep.py +0 -0
- {behive-0.6.0 → behive-0.7.0}/tests/test_cov_deep3.py +0 -0
- {behive-0.6.0 → behive-0.7.0}/tests/test_cov_drones.py +0 -0
- {behive-0.6.0 → behive-0.7.0}/tests/test_cov_drones_direct.py +0 -0
- {behive-0.6.0 → behive-0.7.0}/tests/test_cov_falsifier.py +0 -0
- {behive-0.6.0 → behive-0.7.0}/tests/test_cov_final50.py +0 -0
- {behive-0.6.0 → behive-0.7.0}/tests/test_cov_final_push.py +0 -0
- {behive-0.6.0 → behive-0.7.0}/tests/test_cov_graph.py +0 -0
- {behive-0.6.0 → behive-0.7.0}/tests/test_cov_graph_rag.py +0 -0
- {behive-0.6.0 → behive-0.7.0}/tests/test_cov_harvest.py +0 -0
- {behive-0.6.0 → behive-0.7.0}/tests/test_cov_harvest_llm_api.py +0 -0
- {behive-0.6.0 → behive-0.7.0}/tests/test_cov_import_push.py +0 -0
- {behive-0.6.0 → behive-0.7.0}/tests/test_cov_master.py +0 -0
- {behive-0.6.0 → behive-0.7.0}/tests/test_cov_mock_pool.py +0 -0
- {behive-0.6.0 → behive-0.7.0}/tests/test_cov_orchestrator_deep.py +0 -0
- {behive-0.6.0 → behive-0.7.0}/tests/test_cov_orchestrator_full.py +0 -0
- {behive-0.6.0 → behive-0.7.0}/tests/test_cov_prescout.py +0 -0
- {behive-0.6.0 → behive-0.7.0}/tests/test_cov_prescout_harvest_pure.py +0 -0
- {behive-0.6.0 → behive-0.7.0}/tests/test_cov_process.py +0 -0
- {behive-0.6.0 → behive-0.7.0}/tests/test_cov_process_deep.py +0 -0
- {behive-0.6.0 → behive-0.7.0}/tests/test_cov_process_deep2.py +0 -0
- {behive-0.6.0 → behive-0.7.0}/tests/test_cov_processing_drones.py +0 -0
- {behive-0.6.0 → behive-0.7.0}/tests/test_cov_pure_functions.py +0 -0
- {behive-0.6.0 → behive-0.7.0}/tests/test_cov_push50.py +0 -0
- {behive-0.6.0 → behive-0.7.0}/tests/test_cov_queen_scout_full.py +0 -0
- {behive-0.6.0 → behive-0.7.0}/tests/test_cov_queen_tools.py +0 -0
- {behive-0.6.0 → behive-0.7.0}/tests/test_cov_rag_master.py +0 -0
- {behive-0.6.0 → behive-0.7.0}/tests/test_cov_real_execution.py +0 -0
- {behive-0.6.0 → behive-0.7.0}/tests/test_cov_server_client.py +0 -0
- {behive-0.6.0 → behive-0.7.0}/tests/test_cov_strategic.py +0 -0
- {behive-0.6.0 → behive-0.7.0}/tests/test_cov_synth.py +0 -0
- {behive-0.6.0 → behive-0.7.0}/tests/test_cov_synth_deep.py +0 -0
- {behive-0.6.0 → behive-0.7.0}/tests/test_cov_synth_graph_rag.py +0 -0
- {behive-0.6.0 → behive-0.7.0}/tests/test_cov_targeted_modules.py +0 -0
- {behive-0.6.0 → behive-0.7.0}/tests/test_cov_utilities_deep.py +0 -0
- {behive-0.6.0 → behive-0.7.0}/tests/test_cov_zero_modules.py +0 -0
- {behive-0.6.0 → behive-0.7.0}/tests/test_cross_35.py +0 -0
- {behive-0.6.0 → behive-0.7.0}/tests/test_db.py +0 -0
- {behive-0.6.0 → behive-0.7.0}/tests/test_db_integration.py +0 -0
- {behive-0.6.0 → behive-0.7.0}/tests/test_deep_execution.py +0 -0
- {behive-0.6.0 → behive-0.7.0}/tests/test_deep_functions.py +0 -0
- {behive-0.6.0 → behive-0.7.0}/tests/test_domain_reputation.py +0 -0
- {behive-0.6.0 → behive-0.7.0}/tests/test_drones.py +0 -0
- {behive-0.6.0 → behive-0.7.0}/tests/test_events.py +0 -0
- {behive-0.6.0 → behive-0.7.0}/tests/test_falsifier.py +0 -0
- {behive-0.6.0 → behive-0.7.0}/tests/test_final_30pct.py +0 -0
- {behive-0.6.0 → behive-0.7.0}/tests/test_functional.py +0 -0
- {behive-0.6.0 → behive-0.7.0}/tests/test_gap_fill_35.py +0 -0
- {behive-0.6.0 → behive-0.7.0}/tests/test_graph_engine.py +0 -0
- {behive-0.6.0 → behive-0.7.0}/tests/test_guardrail.py +0 -0
- {behive-0.6.0 → behive-0.7.0}/tests/test_harvest.py +0 -0
- {behive-0.6.0 → behive-0.7.0}/tests/test_heavy_coverage.py +0 -0
- {behive-0.6.0 → behive-0.7.0}/tests/test_integration_mocked.py +0 -0
- {behive-0.6.0 → behive-0.7.0}/tests/test_knowledge_graph.py +0 -0
- {behive-0.6.0 → behive-0.7.0}/tests/test_llm.py +0 -0
- {behive-0.6.0 → behive-0.7.0}/tests/test_lowest_coverage.py +0 -0
- {behive-0.6.0 → behive-0.7.0}/tests/test_mass_coverage_35.py +0 -0
- {behive-0.6.0 → behive-0.7.0}/tests/test_mcp.py +0 -0
- {behive-0.6.0 → behive-0.7.0}/tests/test_mega_coverage.py +0 -0
- {behive-0.6.0 → behive-0.7.0}/tests/test_micro_35.py +0 -0
- {behive-0.6.0 → behive-0.7.0}/tests/test_orch_harvest_35.py +0 -0
- {behive-0.6.0 → behive-0.7.0}/tests/test_orchestrator.py +0 -0
- {behive-0.6.0 → behive-0.7.0}/tests/test_preprocessor.py +0 -0
- {behive-0.6.0 → behive-0.7.0}/tests/test_prescout.py +0 -0
- {behive-0.6.0 → behive-0.7.0}/tests/test_prescout_deep_35.py +0 -0
- {behive-0.6.0 → behive-0.7.0}/tests/test_process.py +0 -0
- {behive-0.6.0 → behive-0.7.0}/tests/test_process_deep.py +0 -0
- {behive-0.6.0 → behive-0.7.0}/tests/test_process_orch_deep.py +0 -0
- {behive-0.6.0 → behive-0.7.0}/tests/test_push_30pct.py +0 -0
- {behive-0.6.0 → behive-0.7.0}/tests/test_push_35_final.py +0 -0
- {behive-0.6.0 → behive-0.7.0}/tests/test_queen_deep.py +0 -0
- {behive-0.6.0 → behive-0.7.0}/tests/test_queen_honey.py +0 -0
- {behive-0.6.0 → behive-0.7.0}/tests/test_queen_load_persist.py +0 -0
- {behive-0.6.0 → behive-0.7.0}/tests/test_rag.py +0 -0
- {behive-0.6.0 → behive-0.7.0}/tests/test_regression.py +0 -0
- {behive-0.6.0 → behive-0.7.0}/tests/test_runpy_main.py +0 -0
- {behive-0.6.0 → behive-0.7.0}/tests/test_scout.py +0 -0
- {behive-0.6.0 → behive-0.7.0}/tests/test_search_backends.py +0 -0
- {behive-0.6.0 → behive-0.7.0}/tests/test_server.py +0 -0
- {behive-0.6.0 → behive-0.7.0}/tests/test_server_and_more.py +0 -0
- {behive-0.6.0 → behive-0.7.0}/tests/test_server_cli_35.py +0 -0
- {behive-0.6.0 → behive-0.7.0}/tests/test_server_integration.py +0 -0
- {behive-0.6.0 → behive-0.7.0}/tests/test_synth.py +0 -0
- {behive-0.6.0 → behive-0.7.0}/tests/test_uncovered_functions.py +0 -0
behive-0.7.0/PKG-INFO
ADDED
|
@@ -0,0 +1,519 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: behive
|
|
3
|
+
Version: 0.7.0
|
|
4
|
+
Summary: Research engine that builds structured knowledge graphs from any topic
|
|
5
|
+
Author-email: QA10 <hello@qa10.io>
|
|
6
|
+
License-Expression: MIT
|
|
7
|
+
Project-URL: Homepage, https://github.com/qa10devteam/behive
|
|
8
|
+
Project-URL: Documentation, https://github.com/qa10devteam/behive/tree/main/docs
|
|
9
|
+
Project-URL: Repository, https://github.com/qa10devteam/behive
|
|
10
|
+
Keywords: research,knowledge-graph,ai,mcp,deep-research
|
|
11
|
+
Classifier: Development Status :: 4 - Beta
|
|
12
|
+
Classifier: Intended Audience :: Developers
|
|
13
|
+
Classifier: Programming Language :: Python :: 3
|
|
14
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
15
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
16
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
17
|
+
Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
|
|
18
|
+
Requires-Python: >=3.10
|
|
19
|
+
Description-Content-Type: text/markdown
|
|
20
|
+
License-File: LICENSE
|
|
21
|
+
Requires-Dist: aiohttp>=3.9
|
|
22
|
+
Requires-Dist: httpx>=0.25
|
|
23
|
+
Requires-Dist: psycopg2-binary>=2.9
|
|
24
|
+
Requires-Dist: duckdb>=1.0
|
|
25
|
+
Requires-Dist: pydantic>=2.0
|
|
26
|
+
Requires-Dist: litellm>=1.40
|
|
27
|
+
Requires-Dist: feedparser>=6.0
|
|
28
|
+
Requires-Dist: fastapi>=0.100
|
|
29
|
+
Requires-Dist: uvicorn>=0.20
|
|
30
|
+
Provides-Extra: stealth
|
|
31
|
+
Requires-Dist: curl-cffi>=0.7; extra == "stealth"
|
|
32
|
+
Requires-Dist: primp>=0.13; extra == "stealth"
|
|
33
|
+
Requires-Dist: nodriver>=0.38; extra == "stealth"
|
|
34
|
+
Requires-Dist: patchright>=0.5; extra == "stealth"
|
|
35
|
+
Provides-Extra: harvest
|
|
36
|
+
Requires-Dist: trafilatura>=1.6; extra == "harvest"
|
|
37
|
+
Requires-Dist: newspaper4k>=0.9; extra == "harvest"
|
|
38
|
+
Requires-Dist: langdetect>=1.0; extra == "harvest"
|
|
39
|
+
Requires-Dist: markitdown>=0.1; extra == "harvest"
|
|
40
|
+
Requires-Dist: PyMuPDF>=1.23; extra == "harvest"
|
|
41
|
+
Requires-Dist: crawl4ai>=0.3; extra == "harvest"
|
|
42
|
+
Provides-Extra: process
|
|
43
|
+
Requires-Dist: rapidfuzz>=3.5; extra == "process"
|
|
44
|
+
Requires-Dist: spacy>=3.7; extra == "process"
|
|
45
|
+
Requires-Dist: litellm>=1.30; extra == "process"
|
|
46
|
+
Requires-Dist: tiktoken>=0.5; extra == "process"
|
|
47
|
+
Provides-Extra: science
|
|
48
|
+
Requires-Dist: pandas>=2.0; extra == "science"
|
|
49
|
+
Requires-Dist: numpy>=1.24; extra == "science"
|
|
50
|
+
Requires-Dist: scikit-learn>=1.3; extra == "science"
|
|
51
|
+
Provides-Extra: graph
|
|
52
|
+
Requires-Dist: networkx>=3.0; extra == "graph"
|
|
53
|
+
Requires-Dist: numpy>=1.24; extra == "graph"
|
|
54
|
+
Requires-Dist: rapidfuzz>=3.5; extra == "graph"
|
|
55
|
+
Provides-Extra: mcp
|
|
56
|
+
Requires-Dist: fastmcp>=3.0; extra == "mcp"
|
|
57
|
+
Provides-Extra: api
|
|
58
|
+
Provides-Extra: qdrant
|
|
59
|
+
Requires-Dist: qdrant-client>=1.7; extra == "qdrant"
|
|
60
|
+
Requires-Dist: sentence-transformers>=2.2; extra == "qdrant"
|
|
61
|
+
Provides-Extra: all
|
|
62
|
+
Requires-Dist: behive[api,graph,harvest,mcp,process,science,stealth]; extra == "all"
|
|
63
|
+
Provides-Extra: dev
|
|
64
|
+
Requires-Dist: pytest>=7.0; extra == "dev"
|
|
65
|
+
Requires-Dist: pytest-asyncio>=0.21; extra == "dev"
|
|
66
|
+
Requires-Dist: ruff>=0.3; extra == "dev"
|
|
67
|
+
Dynamic: license-file
|
|
68
|
+
|
|
69
|
+
<p align="center">
|
|
70
|
+
<img src="demo.gif" alt="BeHive — Deep Research Engine" width="720" />
|
|
71
|
+
</p>
|
|
72
|
+
|
|
73
|
+
<h1 align="center">🐝 BeHive</h1>
|
|
74
|
+
|
|
75
|
+
<p align="center">
|
|
76
|
+
<strong>Open-source research engine that extracts structured knowledge from any topic.</strong><br />
|
|
77
|
+
Feed it a question. Get back scored claims, entity graphs, and a synthesized report — not paragraphs of slop.
|
|
78
|
+
</p>
|
|
79
|
+
|
|
80
|
+
<p align="center">
|
|
81
|
+
<a href="https://pypi.org/project/behive"><img src="https://img.shields.io/badge/pip_install-behive-FFB300?style=flat-square&logo=pypi&logoColor=white" /></a>
|
|
82
|
+
<a href="https://www.npmjs.com/package/n8n-nodes-behive"><img src="https://img.shields.io/badge/n8n-community_node-FF6D5A?style=flat-square&logo=n8n&logoColor=white" /></a>
|
|
83
|
+
<img src="https://img.shields.io/badge/MCP-Live-00C853?style=flat-square" />
|
|
84
|
+
<img src="https://img.shields.io/badge/license-MIT-blue?style=flat-square" />
|
|
85
|
+
<img src="https://img.shields.io/badge/version-0.6.0-black?style=flat-square" />
|
|
86
|
+
</p>
|
|
87
|
+
|
|
88
|
+
---
|
|
89
|
+
|
|
90
|
+
## The Problem
|
|
91
|
+
|
|
92
|
+
You ask an AI to research something. It hallucinates confidently or gives you a 2000-word essay that says nothing specific. No sources. No confidence scores. No way to verify.
|
|
93
|
+
|
|
94
|
+
**BeHive fixes this.** It goes out, searches real sources, extracts verifiable claims with confidence scores, and builds a knowledge graph — all through your existing AI (Claude, ChatGPT, Gemini).
|
|
95
|
+
|
|
96
|
+
---
|
|
97
|
+
|
|
98
|
+
## ⚡ Use with Claude Desktop (10 seconds)
|
|
99
|
+
|
|
100
|
+
**No install needed.** Add this to your Claude Desktop config and you're done:
|
|
101
|
+
|
|
102
|
+
**File:** `~/Library/Application Support/Claude/claude_desktop_config.json` (Mac) or `%APPDATA%\Claude\claude_desktop_config.json` (Windows)
|
|
103
|
+
|
|
104
|
+
```json
|
|
105
|
+
{
|
|
106
|
+
"mcpServers": {
|
|
107
|
+
"behive": {
|
|
108
|
+
"url": "https://api.behive.site/mcp",
|
|
109
|
+
"transport": "streamable-http"
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
```
|
|
114
|
+
|
|
115
|
+
Restart Claude Desktop. Ask: *"Research the EU AI Act enforcement timeline"*
|
|
116
|
+
|
|
117
|
+
That's it. Claude calls BeHive automatically.
|
|
118
|
+
|
|
119
|
+
<details>
|
|
120
|
+
<summary>💡 What happens under the hood</summary>
|
|
121
|
+
|
|
122
|
+
```
|
|
123
|
+
You ask Claude → Claude calls BeHive MCP tool → BeHive scouts 70+ APIs
|
|
124
|
+
→ fetches 200+ URLs via stealth drones → extracts claims with scores
|
|
125
|
+
→ deduplicates → returns structured report to Claude
|
|
126
|
+
```
|
|
127
|
+
|
|
128
|
+
**Cost:** Free. The hosted MCP server is provided by the BeHive team.
|
|
129
|
+
**Privacy:** Queries are processed and discarded. No data retention.
|
|
130
|
+
</details>
|
|
131
|
+
|
|
132
|
+
---
|
|
133
|
+
|
|
134
|
+
## ⚡ Use with ChatGPT (Custom GPT)
|
|
135
|
+
|
|
136
|
+
1. Go to [chat.openai.com/gpts/editor](https://chat.openai.com/gpts/editor)
|
|
137
|
+
2. Create a new GPT
|
|
138
|
+
3. Under **Actions** → click **Import from URL** → paste:
|
|
139
|
+
```
|
|
140
|
+
https://api.behive.site/openapi.json
|
|
141
|
+
```
|
|
142
|
+
4. Name it "Deep Researcher" and save
|
|
143
|
+
|
|
144
|
+
Now ask your GPT: *"Research quantum computing breakthroughs 2026"*
|
|
145
|
+
|
|
146
|
+
---
|
|
147
|
+
|
|
148
|
+
## ⚡ Use with Cursor / Windsurf / Claude Code
|
|
149
|
+
|
|
150
|
+
Add to your MCP config (`.cursor/mcp.json`, `~/.claude/settings.json`, etc.):
|
|
151
|
+
|
|
152
|
+
```json
|
|
153
|
+
{
|
|
154
|
+
"mcpServers": {
|
|
155
|
+
"behive": {
|
|
156
|
+
"url": "https://api.behive.site/mcp",
|
|
157
|
+
"transport": "streamable-http"
|
|
158
|
+
}
|
|
159
|
+
}
|
|
160
|
+
}
|
|
161
|
+
```
|
|
162
|
+
|
|
163
|
+
---
|
|
164
|
+
|
|
165
|
+
## ⚡ Use with Hermes Agent / OpenClaw
|
|
166
|
+
|
|
167
|
+
```bash
|
|
168
|
+
# Hermes — already has a built-in skill
|
|
169
|
+
hermes skill install behive-research
|
|
170
|
+
|
|
171
|
+
# OpenClaw — copy from integrations/
|
|
172
|
+
cp integrations/openclaw/SKILL.md ~/.openclaw/skills/behive.md
|
|
173
|
+
```
|
|
174
|
+
|
|
175
|
+
---
|
|
176
|
+
|
|
177
|
+
## 🛠 Self-Host (full control)
|
|
178
|
+
|
|
179
|
+
Want to run BeHive on your own machine? Three options:
|
|
180
|
+
|
|
181
|
+
### Option A: Zero-setup (DuckDB, no PostgreSQL needed)
|
|
182
|
+
|
|
183
|
+
```bash
|
|
184
|
+
pip install behive
|
|
185
|
+
export ANTHROPIC_API_KEY=*** # or OPENAI_API_KEY
|
|
186
|
+
|
|
187
|
+
behive research "NVIDIA GPU market 2026"
|
|
188
|
+
```
|
|
189
|
+
|
|
190
|
+
Data is stored locally in `~/.behive/research.duckdb`. No database setup needed.
|
|
191
|
+
|
|
192
|
+
### Option B: Docker Compose (recommended for teams)
|
|
193
|
+
|
|
194
|
+
```bash
|
|
195
|
+
git clone https://github.com/qa10devteam/behive && cd behive
|
|
196
|
+
echo "ANTHROPIC_API_KEY=***" > .env
|
|
197
|
+
docker compose up -d
|
|
198
|
+
# API → http://localhost:8091
|
|
199
|
+
# MCP → http://localhost:8090/mcp
|
|
200
|
+
```
|
|
201
|
+
|
|
202
|
+
### Option C: Full production (PostgreSQL + GPU)
|
|
203
|
+
|
|
204
|
+
```bash
|
|
205
|
+
pip install "behive[all]"
|
|
206
|
+
export BEHIVE_DB_URL=postgresql://user:pass@localhost:5432/behive
|
|
207
|
+
export ANTHROPIC_API_KEY=***
|
|
208
|
+
behive serve
|
|
209
|
+
```
|
|
210
|
+
|
|
211
|
+
---
|
|
212
|
+
|
|
213
|
+
## 🧠 Model Configuration
|
|
214
|
+
|
|
215
|
+
BeHive works with any LLM. You choose what runs each pipeline stage:
|
|
216
|
+
|
|
217
|
+
| Stage | What it does | Recommended model |
|
|
218
|
+
|-------|-------------|-------------------|
|
|
219
|
+
| **scout** | Query generation, source planning | Claude Haiku 4.5 / GPT-4.1-mini / local |
|
|
220
|
+
| **harvest** | Content triage, relevance filtering | Claude Haiku 4.5 / GPT-4.1-mini / local |
|
|
221
|
+
| **process** | Claim extraction, entity recognition | Claude Sonnet 4.6 / GPT-4.5 / Gemini 2.5 Flash |
|
|
222
|
+
| **synth** | Report synthesis, deduplication | Claude Opus 4.6 / GPT-4.5 / Gemini 2.5 Pro |
|
|
223
|
+
| **falsifier** | Cross-verification, bias detection | Claude Sonnet 5 / o4-mini |
|
|
224
|
+
|
|
225
|
+
### Quick config
|
|
226
|
+
|
|
227
|
+
```bash
|
|
228
|
+
behive config --preset budget # Haiku everywhere (~$0.30/mission)
|
|
229
|
+
behive config --preset balanced # Haiku scout + Sonnet synth (~$1.50)
|
|
230
|
+
behive config --preset deep # Opus synth + Falsifier (~$4.00)
|
|
231
|
+
```
|
|
232
|
+
|
|
233
|
+
### Model presets (2026)
|
|
234
|
+
|
|
235
|
+
| Preset | Model String |
|
|
236
|
+
|--------|-------------|
|
|
237
|
+
| `claude-haiku` | anthropic/claude-haiku-4-5-20251001 |
|
|
238
|
+
| `claude-sonnet` | anthropic/claude-sonnet-4-6 |
|
|
239
|
+
| `claude-opus` | anthropic/claude-opus-4-6-v1 |
|
|
240
|
+
| `claude-sonnet-5` | anthropic/claude-sonnet-5 |
|
|
241
|
+
| `gpt-4.1-mini` | openai/gpt-4.1-mini |
|
|
242
|
+
| `gpt-4.5` | openai/gpt-4.5-preview |
|
|
243
|
+
| `o4-mini` | openai/o4-mini |
|
|
244
|
+
| `gemini-flash` | google/gemini-2.5-flash |
|
|
245
|
+
| `gemini-pro` | google/gemini-2.5-pro |
|
|
246
|
+
| `llama-4` | ollama/llama4-scout |
|
|
247
|
+
| `local` | openai/local-model (any OpenAI-compatible endpoint) |
|
|
248
|
+
|
|
249
|
+
### Environment variables
|
|
250
|
+
|
|
251
|
+
```bash
|
|
252
|
+
export BEHIVE_MODEL=anthropic/claude-sonnet-4-6 # one model for everything
|
|
253
|
+
export BEHIVE_MODEL_SCOUT=ollama/llama4-scout # per-stage override
|
|
254
|
+
export BEHIVE_MODEL_SYNTH=anthropic/claude-opus-4-6-v1 # per-stage override
|
|
255
|
+
```
|
|
256
|
+
|
|
257
|
+
Priority: `BEHIVE_MODEL_{STAGE}` > `BEHIVE_MODEL` > config.yaml > defaults
|
|
258
|
+
|
|
259
|
+
Or pass any [litellm-compatible](https://docs.litellm.ai/docs/providers) model string directly.
|
|
260
|
+
|
|
261
|
+
The CLI reads `~/.behive_runtime.env` for the current account. Set
|
|
262
|
+
`BEHIVE_ENV_FILE` to use a different explicit file. Existing environment values
|
|
263
|
+
win over that file. BeHive does not import credentials from Hermes auth files.
|
|
264
|
+
|
|
265
|
+
For a source checkout, graph support has its own dependency extra:
|
|
266
|
+
`pip install -e '.[graph]'`. Harvesting and processing extras are separate.
|
|
267
|
+
These local metadata changes have not been published to PyPI.
|
|
268
|
+
|
|
269
|
+
API providers requiring keys are skipped when configuration is missing; these
|
|
270
|
+
notices are diagnostics, not research evidence. LEX also requires its contracted
|
|
271
|
+
`LEX_API_BASE` endpoint: BeHive does not query the SIP login portal as an API.
|
|
272
|
+
BYOK Discord notifications are off by default. To enable them, explicitly set
|
|
273
|
+
`BEHIVE_BYOK_NOTIFICATIONS=1` and supply the bot credentials and destination in
|
|
274
|
+
the environment; no Hermes credential file is read.
|
|
275
|
+
|
|
276
|
+
---
|
|
277
|
+
|
|
278
|
+
## Verification and scoring
|
|
279
|
+
|
|
280
|
+
No benchmark table is published here without a reproducible run receipt.
|
|
281
|
+
Claim counts, runtime and scores vary with the topic, sources, configured model,
|
|
282
|
+
provider availability and pipeline options. Quality scores are internal ranking
|
|
283
|
+
signals, not calibrated probabilities or a guarantee of factual correctness.
|
|
284
|
+
|
|
285
|
+
The repository contains regression tests for provider configuration, source
|
|
286
|
+
admission, entity handling and deterministic synthesis. PostgreSQL persistence,
|
|
287
|
+
public-provider checks and browser tests must be reported separately from
|
|
288
|
+
controlled-provider unit tests. Never run database-writing tests against a shared
|
|
289
|
+
research database: use a disposable cluster and retain the raw results.
|
|
290
|
+
|
|
291
|
+
---
|
|
292
|
+
|
|
293
|
+
## Drone Arsenal
|
|
294
|
+
|
|
295
|
+
BeHive's API registry contains **83 provider entries**. Registered does not mean
|
|
296
|
+
configured or available: some providers require credentials or contracts, and
|
|
297
|
+
public endpoints can fail or return no relevant results.
|
|
298
|
+
|
|
299
|
+
| Category | Examples | Method |
|
|
300
|
+
|----------|----------|--------|
|
|
301
|
+
| Web search | DuckDuckGo, Brave, SearXNG | Multi-backend fallthrough |
|
|
302
|
+
| Academic | arXiv, Semantic Scholar, PubMed | Direct API |
|
|
303
|
+
| News | Google News RSS, NewsAPI, GDELT | Real-time feeds |
|
|
304
|
+
| Government | EU Open Data, USPTO, SEC EDGAR | Registry APIs |
|
|
305
|
+
| Code | GitHub, GitLab, npm, PyPI | Package ecosystems |
|
|
306
|
+
| Financial | Yahoo Finance, FRED, ECB | Market data |
|
|
307
|
+
| Social | Reddit, HN (via Algolia), X/Twitter | Community signals |
|
|
308
|
+
|
|
309
|
+
**Stealth layer:** 8-layer drone architecture bypasses Cloudflare, DataDome, Akamai, PerimeterX. Rotating fingerprints, browser TLS profiles, residential proxy support.
|
|
310
|
+
|
|
311
|
+
---
|
|
312
|
+
|
|
313
|
+
## Architecture
|
|
314
|
+
|
|
315
|
+
```
|
|
316
|
+
┌─────────────────────────────────────────────────────────────┐
|
|
317
|
+
│ BeHive Pipeline │
|
|
318
|
+
└─────────────────────────────────────────────────────────────┘
|
|
319
|
+
│
|
|
320
|
+
┌───────────┬─────────────┼─────────────┬───────────┐
|
|
321
|
+
▼ ▼ ▼ ▼ ▼
|
|
322
|
+
┌────────┐ ┌────────┐ ┌──────────┐ ┌────────┐ ┌────────┐
|
|
323
|
+
│ SCOUT │ │HARVEST │ │ PROCESS │ │ SYNTH │ │ GRAPH │
|
|
324
|
+
│ │ │ │ │ │ │ │ │ │
|
|
325
|
+
│ Queen │ │Parallel│ │ Dual- │ │ Report │ │ Neo4j │
|
|
326
|
+
│ plans │ │ fetch │ │ model │ │ synth │ │ build │
|
|
327
|
+
│ 200+ │ │ drones │ │ extract │ │ dedupe │ │ entity │
|
|
328
|
+
│ tasks │ │ 70 APIs│ │ + score │ │ FUIR │ │ link │
|
|
329
|
+
└────────┘ └────────┘ └──────────┘ └────────┘ └────────┘
|
|
330
|
+
```
|
|
331
|
+
|
|
332
|
+
**Key design:** The Queen plans all research tasks BEFORE any scout leaves. This means parallel execution, no redundant searches, and smart gap detection.
|
|
333
|
+
|
|
334
|
+
---
|
|
335
|
+
|
|
336
|
+
## API Reference
|
|
337
|
+
|
|
338
|
+
### REST API (port 8091)
|
|
339
|
+
|
|
340
|
+
```bash
|
|
341
|
+
# Start a research mission
|
|
342
|
+
curl -X POST http://localhost:8091/research \
|
|
343
|
+
-H "Content-Type: application/json" \
|
|
344
|
+
-d '{"topic": "quantum computing 2026", "depth": 3}'
|
|
345
|
+
|
|
346
|
+
# Check status (status, phase, reason, report_available, useful_claims, fallback_claims)
|
|
347
|
+
curl http://localhost:8091/research/{mission_id}/status
|
|
348
|
+
|
|
349
|
+
# Get report (HTTP 409 with the reason if the mission is empty or failed)
|
|
350
|
+
curl http://localhost:8091/research/{mission_id}/report
|
|
351
|
+
|
|
352
|
+
# Search knowledge base
|
|
353
|
+
curl "http://localhost:8091/search?q=quantum+supremacy&limit=20"
|
|
354
|
+
```
|
|
355
|
+
|
|
356
|
+
### MCP Tools
|
|
357
|
+
|
|
358
|
+
| Tool | Description |
|
|
359
|
+
|------|-------------|
|
|
360
|
+
| `research_topic` | Start deep research on any topic |
|
|
361
|
+
| `mission_status` | Check progress; prints status, phase, reason and claim counts |
|
|
362
|
+
| `get_report` | Retrieve the final synthesized report; says why when there is none |
|
|
363
|
+
| `search_knowledge` | Query across all previous research |
|
|
364
|
+
| `list_missions` | List recent research missions |
|
|
365
|
+
|
|
366
|
+
### Mission status
|
|
367
|
+
|
|
368
|
+
A mission ends in one of three statuses:
|
|
369
|
+
|
|
370
|
+
- `done`: the mission has a report and at least one useful claim.
|
|
371
|
+
- `empty`: the pipeline finished but produced no qualifying claims, so there is no report.
|
|
372
|
+
- `error`: the pipeline failed or timed out and produced no report.
|
|
373
|
+
|
|
374
|
+
A mission that is cancelled reports `cancelled` with the reason "Mission was cancelled."
|
|
375
|
+
The terminal statuses are therefore `done`, `empty`, `error` and `cancelled`.
|
|
376
|
+
While a mission runs its status is one of `queued`, `running`, `planning`, `scout`,
|
|
377
|
+
`harvest`, `process` and `synth`: it starts as `queued`, becomes `running`, and while the
|
|
378
|
+
pipeline runs `status` carries the current phase name. Clients should treat any status
|
|
379
|
+
other than the four terminal ones as still running. `phase` moves through
|
|
380
|
+
`queued`, `scout`, `harvest`, `process` and `synth`. When a mission ends as `empty` or
|
|
381
|
+
`error`, `phase` holds the stage or cause where it ended (one of the keys below) and
|
|
382
|
+
`reason` explains it.
|
|
383
|
+
|
|
384
|
+
`GET /research/{mission_id}/status` returns these fields:
|
|
385
|
+
|
|
386
|
+
- `status`: terminal `done`, `empty`, `error` or `cancelled`; while running `queued`, `running`, `planning`, `scout`, `harvest`, `process` or `synth`.
|
|
387
|
+
- `phase`: the current phase, or the end-state key for `empty` and `error`.
|
|
388
|
+
- `reason`: why there is no usable report; `null` for running missions and for a real `done`.
|
|
389
|
+
- `report_available`: `true` only when the status is `done` and a report exists with at least one useful claim.
|
|
390
|
+
- `useful_claims`: claims that count toward `done`.
|
|
391
|
+
- `fallback_claims`: claims from the regex fallback. They are raw material, not a product, and never make a mission `done`.
|
|
392
|
+
|
|
393
|
+
Example for an empty mission:
|
|
394
|
+
|
|
395
|
+
```json
|
|
396
|
+
{"status": "empty", "phase": "empty_claims", "report_available": false,
|
|
397
|
+
"reason": "Sources were collected but no qualifying claims were produced."}
|
|
398
|
+
```
|
|
399
|
+
|
|
400
|
+
`GET /research/{mission_id}/report` returns the report with HTTP 200 only for a `done`
|
|
401
|
+
mission. For `empty`, `error` and `cancelled` it returns HTTP 409. `detail` and `reason`
|
|
402
|
+
carry the reason, and the body also holds `status`, `phase`, `report_available: false`,
|
|
403
|
+
`useful_claims` and `fallback_claims`:
|
|
404
|
+
|
|
405
|
+
```json
|
|
406
|
+
{"detail": "Qualifying claims were found but no report was produced.",
|
|
407
|
+
"status": "error", "phase": "synthesis_failed", "report_available": false}
|
|
408
|
+
```
|
|
409
|
+
|
|
410
|
+
For a mission that is still running the endpoint does not return a report either.
|
|
411
|
+
|
|
412
|
+
The MCP tool `mission_status` prints the same facts as text:
|
|
413
|
+
|
|
414
|
+
```
|
|
415
|
+
Mission: <topic>
|
|
416
|
+
Status: error
|
|
417
|
+
Phase: synthesis_failed
|
|
418
|
+
Reason: Qualifying claims were found but no report was produced.
|
|
419
|
+
Claims: 497 useful, 0 regex fallback
|
|
420
|
+
Report: not available
|
|
421
|
+
```
|
|
422
|
+
|
|
423
|
+
The `Reason:` line appears only when there is one. The MCP tool `get_report` refuses the same
|
|
424
|
+
way instead of returning an empty report:
|
|
425
|
+
|
|
426
|
+
```
|
|
427
|
+
No report for mission '<mission_id>'.
|
|
428
|
+
Status: empty
|
|
429
|
+
Phase: empty_claims
|
|
430
|
+
Reason: Sources were collected but no qualifying claims were produced.
|
|
431
|
+
```
|
|
432
|
+
|
|
433
|
+
Reasons, by `phase` key:
|
|
434
|
+
|
|
435
|
+
```
|
|
436
|
+
empty_scout No sources or qualifying claims were produced.
|
|
437
|
+
empty_claims Sources were collected but no qualifying claims were produced.
|
|
438
|
+
process_timeout The processing phase exceeded its time limit; no report was produced.
|
|
439
|
+
process_error The processing phase failed; no report was produced.
|
|
440
|
+
synthesis_failed Qualifying claims were found but no report was produced.
|
|
441
|
+
pipeline_failed Pipeline execution failed without a qualifying product.
|
|
442
|
+
claims_fallback_failed Claims recovery failed without a qualifying product.
|
|
443
|
+
pipeline_exception Pipeline execution raised an exception.
|
|
444
|
+
timeout Pipeline execution timed out.
|
|
445
|
+
cancelled Mission was cancelled.
|
|
446
|
+
```
|
|
447
|
+
|
|
448
|
+
Missions recorded as `done` before the status rules (2026-11-13) that have no report, or no
|
|
449
|
+
claims beyond the regex fallback, report this reason: "Marked done without a report or without
|
|
450
|
+
claims beyond regex fallback (recorded before the 2026-11-13 status rules); it has no usable result."
|
|
451
|
+
|
|
452
|
+
### Python SDK
|
|
453
|
+
|
|
454
|
+
```python
|
|
455
|
+
from behive import BeHiveClient
|
|
456
|
+
|
|
457
|
+
client = BeHiveClient() # auto-detects local server
|
|
458
|
+
|
|
459
|
+
# Start research
|
|
460
|
+
mission = client.research("EU AI Act penalties", depth=3)
|
|
461
|
+
|
|
462
|
+
# Wait and get results
|
|
463
|
+
report = mission.wait()
|
|
464
|
+
print(f"Found {len(report.claims)} claims, avg quality: {report.quality:.2f}")
|
|
465
|
+
```
|
|
466
|
+
|
|
467
|
+
---
|
|
468
|
+
|
|
469
|
+
## Comparison
|
|
470
|
+
|
|
471
|
+
| Feature | BeHive | GPT-Researcher | Tavily | Perplexity |
|
|
472
|
+
|---------|--------|---------------|--------|------------|
|
|
473
|
+
| **Structured claims** | ✅ JSON with scores | ❌ Text only | ❌ Snippets | ❌ Text |
|
|
474
|
+
| **Knowledge graph** | ✅ Neo4j entities | ❌ | ❌ | ❌ |
|
|
475
|
+
| **Self-hosted** | ✅ MIT | ✅ | ❌ SaaS only | ❌ SaaS only |
|
|
476
|
+
| **MCP native** | ✅ | ❌ | ❌ | ❌ |
|
|
477
|
+
| **Quality scoring** | ✅ 5-dimension | ❌ | ❌ | ❌ |
|
|
478
|
+
| **Multi-source** | 70+ APIs | ~5 | 1 (Tavily) | Internal |
|
|
479
|
+
| **Cost** | Free + your LLM | Free + your LLM | $50-500/mo | $20/mo |
|
|
480
|
+
| **Falsifier** | ✅ Cross-verify | ❌ | ❌ | ❌ |
|
|
481
|
+
|
|
482
|
+
---
|
|
483
|
+
|
|
484
|
+
## Integrations
|
|
485
|
+
|
|
486
|
+
| Platform | Method | Difficulty |
|
|
487
|
+
|----------|--------|-----------|
|
|
488
|
+
| **Claude Desktop** | MCP (add URL) | 10 seconds |
|
|
489
|
+
| **ChatGPT** | Custom GPT (import URL) | 30 seconds |
|
|
490
|
+
| **Cursor / Windsurf** | MCP config | 10 seconds |
|
|
491
|
+
| **Claude Code** | MCP config | 10 seconds |
|
|
492
|
+
| **Hermes Agent** | Built-in skill | 1 command |
|
|
493
|
+
| **OpenClaw** | Skill file | 1 file copy |
|
|
494
|
+
| **n8n** | Community node | Install in UI |
|
|
495
|
+
|
|
496
|
+
---
|
|
497
|
+
|
|
498
|
+
## Contributing
|
|
499
|
+
|
|
500
|
+
See [CONTRIBUTING.md](CONTRIBUTING.md). PRs welcome.
|
|
501
|
+
|
|
502
|
+
```bash
|
|
503
|
+
git clone https://github.com/qa10devteam/behive
|
|
504
|
+
cd behive
|
|
505
|
+
pip install -e ".[dev]"
|
|
506
|
+
pytest
|
|
507
|
+
```
|
|
508
|
+
|
|
509
|
+
---
|
|
510
|
+
|
|
511
|
+
## License
|
|
512
|
+
|
|
513
|
+
MIT — use it however you want. Star ⭐ if it helps.
|
|
514
|
+
|
|
515
|
+
---
|
|
516
|
+
|
|
517
|
+
<p align="center">
|
|
518
|
+
Built by <a href="https://qa10.io">QA10</a> · <a href="https://pypi.org/project/behive">PyPI</a> · <a href="https://github.com/qa10devteam/behive/issues">Issues</a>
|
|
519
|
+
</p>
|