predacore 0.1.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.
Files changed (209) hide show
  1. predacore-0.1.0/LICENSE +190 -0
  2. predacore-0.1.0/PKG-INFO +267 -0
  3. predacore-0.1.0/README.md +168 -0
  4. predacore-0.1.0/pyproject.toml +293 -0
  5. predacore-0.1.0/setup.cfg +4 -0
  6. predacore-0.1.0/src/predacore/__init__.py +12 -0
  7. predacore-0.1.0/src/predacore/_vendor/__init__.py +0 -0
  8. predacore-0.1.0/src/predacore/_vendor/common/__init__.py +1 -0
  9. predacore-0.1.0/src/predacore/_vendor/common/embedding.py +442 -0
  10. predacore-0.1.0/src/predacore/_vendor/common/errors.py +247 -0
  11. predacore-0.1.0/src/predacore/_vendor/common/llm.py +592 -0
  12. predacore-0.1.0/src/predacore/_vendor/common/logging_config.py +213 -0
  13. predacore-0.1.0/src/predacore/_vendor/common/logging_utils.py +73 -0
  14. predacore-0.1.0/src/predacore/_vendor/common/memory_service.py +850 -0
  15. predacore-0.1.0/src/predacore/_vendor/common/metrics.py +246 -0
  16. predacore-0.1.0/src/predacore/_vendor/common/models.py +309 -0
  17. predacore-0.1.0/src/predacore/_vendor/common/notifications.py +459 -0
  18. predacore-0.1.0/src/predacore/_vendor/common/protos/__init__.py +32 -0
  19. predacore-0.1.0/src/predacore/_vendor/common/protos/csc_pb2.py +55 -0
  20. predacore-0.1.0/src/predacore/_vendor/common/protos/csc_pb2_grpc.py +192 -0
  21. predacore-0.1.0/src/predacore/_vendor/common/protos/daf_pb2.py +77 -0
  22. predacore-0.1.0/src/predacore/_vendor/common/protos/daf_pb2_grpc.py +419 -0
  23. predacore-0.1.0/src/predacore/_vendor/common/protos/egm_pb2.py +62 -0
  24. predacore-0.1.0/src/predacore/_vendor/common/protos/egm_pb2_grpc.py +278 -0
  25. predacore-0.1.0/src/predacore/_vendor/common/protos/knowledge_nexus_pb2.py +64 -0
  26. predacore-0.1.0/src/predacore/_vendor/common/protos/knowledge_nexus_pb2_grpc.py +324 -0
  27. predacore-0.1.0/src/predacore/_vendor/common/protos/wil_pb2.py +55 -0
  28. predacore-0.1.0/src/predacore/_vendor/common/protos/wil_pb2_grpc.py +192 -0
  29. predacore-0.1.0/src/predacore/_vendor/common/skill_collective.py +587 -0
  30. predacore-0.1.0/src/predacore/_vendor/common/skill_evolution.py +497 -0
  31. predacore-0.1.0/src/predacore/_vendor/common/skill_genome.py +391 -0
  32. predacore-0.1.0/src/predacore/_vendor/common/skill_scanner.py +522 -0
  33. predacore-0.1.0/src/predacore/_vendor/common/structured_output.py +32 -0
  34. predacore-0.1.0/src/predacore/_vendor/common/vector_store.py +205 -0
  35. predacore-0.1.0/src/predacore/_vendor/core_strategic_engine/__init__.py +3 -0
  36. predacore-0.1.0/src/predacore/_vendor/core_strategic_engine/llm_planner.py +204 -0
  37. predacore-0.1.0/src/predacore/_vendor/core_strategic_engine/plan_cache.py +81 -0
  38. predacore-0.1.0/src/predacore/_vendor/core_strategic_engine/planner.py +730 -0
  39. predacore-0.1.0/src/predacore/_vendor/core_strategic_engine/planner_enhancements.py +368 -0
  40. predacore-0.1.0/src/predacore/_vendor/core_strategic_engine/planner_mcts.py +873 -0
  41. predacore-0.1.0/src/predacore/_vendor/ethical_governance_module/__init__.py +3 -0
  42. predacore-0.1.0/src/predacore/_vendor/ethical_governance_module/audit_logger.py +95 -0
  43. predacore-0.1.0/src/predacore/_vendor/ethical_governance_module/persistent_audit.py +465 -0
  44. predacore-0.1.0/src/predacore/_vendor/ethical_governance_module/rule_engine.py +225 -0
  45. predacore-0.1.0/src/predacore/_vendor/ethical_governance_module/service.py +356 -0
  46. predacore-0.1.0/src/predacore/_vendor/knowledge_nexus/__init__.py +12 -0
  47. predacore-0.1.0/src/predacore/_vendor/knowledge_nexus/faiss_vector_index.py +208 -0
  48. predacore-0.1.0/src/predacore/_vendor/knowledge_nexus/health.py +16 -0
  49. predacore-0.1.0/src/predacore/_vendor/knowledge_nexus/service.py +531 -0
  50. predacore-0.1.0/src/predacore/_vendor/knowledge_nexus/storage.py +558 -0
  51. predacore-0.1.0/src/predacore/_vendor/knowledge_nexus/vector_index.py +42 -0
  52. predacore-0.1.0/src/predacore/_vendor/user_modeling_engine/__init__.py +5 -0
  53. predacore-0.1.0/src/predacore/_vendor/user_modeling_engine/service.py +145 -0
  54. predacore-0.1.0/src/predacore/agents/__init__.py +0 -0
  55. predacore-0.1.0/src/predacore/agents/autonomy.py +790 -0
  56. predacore-0.1.0/src/predacore/agents/collaboration.py +402 -0
  57. predacore-0.1.0/src/predacore/agents/daf/__init__.py +39 -0
  58. predacore-0.1.0/src/predacore/agents/daf/agent_process.py +629 -0
  59. predacore-0.1.0/src/predacore/agents/daf/agent_registry.py +320 -0
  60. predacore-0.1.0/src/predacore/agents/daf/health.py +22 -0
  61. predacore-0.1.0/src/predacore/agents/daf/health_api.py +21 -0
  62. predacore-0.1.0/src/predacore/agents/daf/metrics_util.py +30 -0
  63. predacore-0.1.0/src/predacore/agents/daf/scheduler.py +139 -0
  64. predacore-0.1.0/src/predacore/agents/daf/self_optimization.py +456 -0
  65. predacore-0.1.0/src/predacore/agents/daf/service.py +1135 -0
  66. predacore-0.1.0/src/predacore/agents/daf/task_store.py +115 -0
  67. predacore-0.1.0/src/predacore/agents/daf_bridge.py +404 -0
  68. predacore-0.1.0/src/predacore/agents/engine.py +1089 -0
  69. predacore-0.1.0/src/predacore/agents/meta_cognition.py +381 -0
  70. predacore-0.1.0/src/predacore/agents/self_improvement.py +481 -0
  71. predacore-0.1.0/src/predacore/auth/__init__.py +0 -0
  72. predacore-0.1.0/src/predacore/auth/middleware.py +431 -0
  73. predacore-0.1.0/src/predacore/auth/sandbox.py +782 -0
  74. predacore-0.1.0/src/predacore/auth/security.py +423 -0
  75. predacore-0.1.0/src/predacore/bootstrap.py +471 -0
  76. predacore-0.1.0/src/predacore/channels/__init__.py +12 -0
  77. predacore-0.1.0/src/predacore/channels/discord.py +171 -0
  78. predacore-0.1.0/src/predacore/channels/email.py +338 -0
  79. predacore-0.1.0/src/predacore/channels/health.py +461 -0
  80. predacore-0.1.0/src/predacore/channels/imessage.py +269 -0
  81. predacore-0.1.0/src/predacore/channels/registry.py +220 -0
  82. predacore-0.1.0/src/predacore/channels/signal.py +219 -0
  83. predacore-0.1.0/src/predacore/channels/slack.py +239 -0
  84. predacore-0.1.0/src/predacore/channels/telegram.py +512 -0
  85. predacore-0.1.0/src/predacore/channels/webchat.py +1100 -0
  86. predacore-0.1.0/src/predacore/channels/whatsapp.py +242 -0
  87. predacore-0.1.0/src/predacore/cli.py +2420 -0
  88. predacore-0.1.0/src/predacore/config.py +871 -0
  89. predacore-0.1.0/src/predacore/core.py +1959 -0
  90. predacore-0.1.0/src/predacore/errors.py +208 -0
  91. predacore-0.1.0/src/predacore/gateway.py +833 -0
  92. predacore-0.1.0/src/predacore/identity/EVENT_HORIZON.md +236 -0
  93. predacore-0.1.0/src/predacore/identity/SOUL_SEED.md +92 -0
  94. predacore-0.1.0/src/predacore/identity/__init__.py +29 -0
  95. predacore-0.1.0/src/predacore/identity/beliefs.py +444 -0
  96. predacore-0.1.0/src/predacore/identity/defaults/HEARTBEAT.md +52 -0
  97. predacore-0.1.0/src/predacore/identity/defaults/IDENTITY.md +56 -0
  98. predacore-0.1.0/src/predacore/identity/defaults/JOURNAL.md +12 -0
  99. predacore-0.1.0/src/predacore/identity/defaults/MEMORY.md +21 -0
  100. predacore-0.1.0/src/predacore/identity/defaults/REFLECTION.md +21 -0
  101. predacore-0.1.0/src/predacore/identity/defaults/SOUL.md +50 -0
  102. predacore-0.1.0/src/predacore/identity/defaults/TOOLS.md +28 -0
  103. predacore-0.1.0/src/predacore/identity/defaults/USER.md +24 -0
  104. predacore-0.1.0/src/predacore/identity/engine.py +816 -0
  105. predacore-0.1.0/src/predacore/identity/heartbeat.py +242 -0
  106. predacore-0.1.0/src/predacore/identity/reflection.py +411 -0
  107. predacore-0.1.0/src/predacore/llm_providers/__init__.py +20 -0
  108. predacore-0.1.0/src/predacore/llm_providers/_anthropic_wire.py +291 -0
  109. predacore-0.1.0/src/predacore/llm_providers/anthropic.py +168 -0
  110. predacore-0.1.0/src/predacore/llm_providers/base.py +65 -0
  111. predacore-0.1.0/src/predacore/llm_providers/circuit_breaker.py +98 -0
  112. predacore-0.1.0/src/predacore/llm_providers/claude_models.py +29 -0
  113. predacore-0.1.0/src/predacore/llm_providers/gemini.py +296 -0
  114. predacore-0.1.0/src/predacore/llm_providers/gemini_cli.py +120 -0
  115. predacore-0.1.0/src/predacore/llm_providers/message_validator.py +263 -0
  116. predacore-0.1.0/src/predacore/llm_providers/openai.py +392 -0
  117. predacore-0.1.0/src/predacore/llm_providers/predacore_sdk.py +324 -0
  118. predacore-0.1.0/src/predacore/llm_providers/router.py +377 -0
  119. predacore-0.1.0/src/predacore/llm_providers/text_tool_adapter.py +152 -0
  120. predacore-0.1.0/src/predacore/memory/__init__.py +33 -0
  121. predacore-0.1.0/src/predacore/memory/consolidator.py +718 -0
  122. predacore-0.1.0/src/predacore/memory/retriever.py +390 -0
  123. predacore-0.1.0/src/predacore/memory/store.py +2070 -0
  124. predacore-0.1.0/src/predacore/operators/__init__.py +98 -0
  125. predacore-0.1.0/src/predacore/operators/android.py +1873 -0
  126. predacore-0.1.0/src/predacore/operators/base.py +340 -0
  127. predacore-0.1.0/src/predacore/operators/browser_bridge.py +2019 -0
  128. predacore-0.1.0/src/predacore/operators/desktop.py +856 -0
  129. predacore-0.1.0/src/predacore/operators/enums.py +285 -0
  130. predacore-0.1.0/src/predacore/operators/mock.py +356 -0
  131. predacore-0.1.0/src/predacore/operators/native_service.py +1589 -0
  132. predacore-0.1.0/src/predacore/operators/ocr_fallback.py +413 -0
  133. predacore-0.1.0/src/predacore/operators/retry.py +151 -0
  134. predacore-0.1.0/src/predacore/operators/screen_vision.py +948 -0
  135. predacore-0.1.0/src/predacore/operators/smart_input.py +1227 -0
  136. predacore-0.1.0/src/predacore/prompts.py +332 -0
  137. predacore-0.1.0/src/predacore/services/__init__.py +0 -0
  138. predacore-0.1.0/src/predacore/services/alerting.py +524 -0
  139. predacore-0.1.0/src/predacore/services/code_index.py +1332 -0
  140. predacore-0.1.0/src/predacore/services/config_watcher.py +236 -0
  141. predacore-0.1.0/src/predacore/services/cron.py +415 -0
  142. predacore-0.1.0/src/predacore/services/daemon.py +710 -0
  143. predacore-0.1.0/src/predacore/services/db_adapter.py +225 -0
  144. predacore-0.1.0/src/predacore/services/db_client.py +358 -0
  145. predacore-0.1.0/src/predacore/services/db_server.py +312 -0
  146. predacore-0.1.0/src/predacore/services/embedding.py +510 -0
  147. predacore-0.1.0/src/predacore/services/git_integration.py +675 -0
  148. predacore-0.1.0/src/predacore/services/identity_service.py +325 -0
  149. predacore-0.1.0/src/predacore/services/lane_queue.py +380 -0
  150. predacore-0.1.0/src/predacore/services/mcp_client.py +373 -0
  151. predacore-0.1.0/src/predacore/services/mcp_registry.py +321 -0
  152. predacore-0.1.0/src/predacore/services/outcome_store.py +620 -0
  153. predacore-0.1.0/src/predacore/services/plugins.py +508 -0
  154. predacore-0.1.0/src/predacore/services/rate_limiter.py +449 -0
  155. predacore-0.1.0/src/predacore/services/transcripts.py +259 -0
  156. predacore-0.1.0/src/predacore/services/voice.py +669 -0
  157. predacore-0.1.0/src/predacore/sessions.py +659 -0
  158. predacore-0.1.0/src/predacore/tools/__init__.py +14 -0
  159. predacore-0.1.0/src/predacore/tools/dispatcher.py +585 -0
  160. predacore-0.1.0/src/predacore/tools/enums.py +197 -0
  161. predacore-0.1.0/src/predacore/tools/executor.py +295 -0
  162. predacore-0.1.0/src/predacore/tools/handlers/__init__.py +283 -0
  163. predacore-0.1.0/src/predacore/tools/handlers/_context.py +290 -0
  164. predacore-0.1.0/src/predacore/tools/handlers/agent.py +993 -0
  165. predacore-0.1.0/src/predacore/tools/handlers/apis.py +323 -0
  166. predacore-0.1.0/src/predacore/tools/handlers/channels.py +481 -0
  167. predacore-0.1.0/src/predacore/tools/handlers/collective_intelligence.py +249 -0
  168. predacore-0.1.0/src/predacore/tools/handlers/creative.py +284 -0
  169. predacore-0.1.0/src/predacore/tools/handlers/cron.py +253 -0
  170. predacore-0.1.0/src/predacore/tools/handlers/desktop.py +608 -0
  171. predacore-0.1.0/src/predacore/tools/handlers/file_ops.py +173 -0
  172. predacore-0.1.0/src/predacore/tools/handlers/git.py +73 -0
  173. predacore-0.1.0/src/predacore/tools/handlers/identity.py +100 -0
  174. predacore-0.1.0/src/predacore/tools/handlers/marketplace.py +96 -0
  175. predacore-0.1.0/src/predacore/tools/handlers/mcp.py +362 -0
  176. predacore-0.1.0/src/predacore/tools/handlers/memory.py +298 -0
  177. predacore-0.1.0/src/predacore/tools/handlers/pipeline_handler.py +299 -0
  178. predacore-0.1.0/src/predacore/tools/handlers/shell.py +323 -0
  179. predacore-0.1.0/src/predacore/tools/handlers/stats.py +132 -0
  180. predacore-0.1.0/src/predacore/tools/handlers/voice.py +225 -0
  181. predacore-0.1.0/src/predacore/tools/handlers/web.py +403 -0
  182. predacore-0.1.0/src/predacore/tools/health.py +233 -0
  183. predacore-0.1.0/src/predacore/tools/marketplace.py +684 -0
  184. predacore-0.1.0/src/predacore/tools/middleware.py +498 -0
  185. predacore-0.1.0/src/predacore/tools/pipeline.py +841 -0
  186. predacore-0.1.0/src/predacore/tools/registry.py +2249 -0
  187. predacore-0.1.0/src/predacore/tools/resilience.py +429 -0
  188. predacore-0.1.0/src/predacore/tools/skill_marketplace.py +503 -0
  189. predacore-0.1.0/src/predacore/tools/subsystem_init.py +351 -0
  190. predacore-0.1.0/src/predacore/tools/trust_policy.py +344 -0
  191. predacore-0.1.0/src/predacore/utils/__init__.py +1 -0
  192. predacore-0.1.0/src/predacore/utils/cache.py +121 -0
  193. predacore-0.1.0/src/predacore.egg-info/PKG-INFO +267 -0
  194. predacore-0.1.0/src/predacore.egg-info/SOURCES.txt +207 -0
  195. predacore-0.1.0/src/predacore.egg-info/dependency_links.txt +1 -0
  196. predacore-0.1.0/src/predacore.egg-info/entry_points.txt +12 -0
  197. predacore-0.1.0/src/predacore.egg-info/requires.txt +77 -0
  198. predacore-0.1.0/src/predacore.egg-info/top_level.txt +1 -0
  199. predacore-0.1.0/tests/test_collective_intelligence.py +593 -0
  200. predacore-0.1.0/tests/test_dispatcher.py +548 -0
  201. predacore-0.1.0/tests/test_enums.py +296 -0
  202. predacore-0.1.0/tests/test_gemini_cli_flow.py +76 -0
  203. predacore-0.1.0/tests/test_handlers.py +548 -0
  204. predacore-0.1.0/tests/test_health.py +267 -0
  205. predacore-0.1.0/tests/test_integration_smoke.py +281 -0
  206. predacore-0.1.0/tests/test_middleware.py +537 -0
  207. predacore-0.1.0/tests/test_pipeline.py +601 -0
  208. predacore-0.1.0/tests/test_resilience.py +213 -0
  209. predacore-0.1.0/tests/test_retry.py +340 -0
@@ -0,0 +1,190 @@
1
+ Apache License
2
+ Version 2.0, January 2004
3
+ http://www.apache.org/licenses/
4
+
5
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
+
7
+ 1. Definitions.
8
+
9
+ "License" shall mean the terms and conditions for use, reproduction,
10
+ and distribution as defined by Sections 1 through 9 of this document.
11
+
12
+ "Licensor" shall mean the copyright owner or entity authorized by
13
+ the copyright owner that is granting the License.
14
+
15
+ "Legal Entity" shall mean the union of the acting entity and all
16
+ other entities that control, are controlled by, or are under common
17
+ control with that entity. For the purposes of this definition,
18
+ "control" means (i) the power, direct or indirect, to cause the
19
+ direction or management of such entity, whether by contract or
20
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
21
+ outstanding shares, or (iii) beneficial ownership of such entity.
22
+
23
+ "You" (or "Your") shall mean an individual or Legal Entity
24
+ exercising permissions granted by this License.
25
+
26
+ "Source" form shall mean the preferred form for making modifications,
27
+ including but not limited to software source code, documentation
28
+ source, and configuration files.
29
+
30
+ "Object" form shall mean any form resulting from mechanical
31
+ transformation or translation of a Source form, including but
32
+ not limited to compiled object code, generated documentation,
33
+ and conversions to other media types.
34
+
35
+ "Work" shall mean the work of authorship, whether in Source or
36
+ Object form, made available under the License, as indicated by a
37
+ copyright notice that is included in or attached to the work
38
+ (an example is provided in the Appendix below).
39
+
40
+ "Derivative Works" shall mean any work, whether in Source or Object
41
+ form, that is based on (or derived from) the Work and for which the
42
+ editorial revisions, annotations, elaborations, or other modifications
43
+ represent, as a whole, an original work of authorship. For the purposes
44
+ of this License, Derivative Works shall not include works that remain
45
+ separable from, or merely link (or bind by name) to the interfaces of,
46
+ the Work and Derivative Works thereof.
47
+
48
+ "Contribution" shall mean any work of authorship, including
49
+ the original version of the Work and any modifications or additions
50
+ to that Work or Derivative Works thereof, that is intentionally
51
+ submitted to the Licensor for inclusion in the Work by the copyright owner
52
+ or by an individual or Legal Entity authorized to submit on behalf of
53
+ the copyright owner. For the purposes of this definition, "submitted"
54
+ means any form of electronic, verbal, or written communication sent
55
+ to the Licensor or its representatives, including but not limited to
56
+ communication on electronic mailing lists, source code control systems,
57
+ and issue tracking systems that are managed by, or on behalf of, the
58
+ Licensor for the purpose of discussing and improving the Work, but
59
+ excluding communication that is conspicuously marked or otherwise
60
+ designated in writing by the copyright owner as "Not a Contribution."
61
+
62
+ "Contributor" shall mean Licensor and any individual or Legal Entity
63
+ on behalf of whom a Contribution has been received by the Licensor and
64
+ subsequently incorporated within the Work.
65
+
66
+ 2. Grant of Copyright License. Subject to the terms and conditions of
67
+ this License, each Contributor hereby grants to You a perpetual,
68
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
69
+ copyright license to reproduce, prepare Derivative Works of,
70
+ publicly display, publicly perform, sublicense, and distribute the
71
+ Work and such Derivative Works in Source or Object form.
72
+
73
+ 3. Grant of Patent License. Subject to the terms and conditions of
74
+ this License, each Contributor hereby grants to You a perpetual,
75
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
76
+ (except as stated in this section) patent license to make, have made,
77
+ use, offer to sell, sell, import, and otherwise transfer the Work,
78
+ where such license applies only to those patent claims licensable
79
+ by such Contributor that are necessarily infringed by their
80
+ Contribution(s) alone or by combination of their Contribution(s)
81
+ with the Work to which such Contribution(s) was submitted. If You
82
+ institute patent litigation against any entity (including a
83
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
84
+ or a Contribution incorporated within the Work constitutes direct
85
+ or contributory patent infringement, then any patent licenses
86
+ granted to You under this License for that Work shall terminate
87
+ as of the date such litigation is filed.
88
+
89
+ 4. Redistribution. You may reproduce and distribute copies of the
90
+ Work or Derivative Works thereof in any medium, with or without
91
+ modifications, and in Source or Object form, provided that You
92
+ meet the following conditions:
93
+
94
+ (a) You must give any other recipients of the Work or
95
+ Derivative Works a copy of this License; and
96
+
97
+ (b) You must cause any modified files to carry prominent notices
98
+ stating that You changed the files; and
99
+
100
+ (c) You must retain, in the Source form of any Derivative Works
101
+ that You distribute, all copyright, patent, trademark, and
102
+ attribution notices from the Source form of the Work,
103
+ excluding those notices that do not pertain to any part of
104
+ the Derivative Works; and
105
+
106
+ (d) If the Work includes a "NOTICE" text file as part of its
107
+ distribution, then any Derivative Works that You distribute must
108
+ include a readable copy of the attribution notices contained
109
+ within such NOTICE file, excluding any notices that do not
110
+ pertain to any part of the Derivative Works, in at least one
111
+ of the following places: within a NOTICE text file distributed
112
+ as part of the Derivative Works; within the Source form or
113
+ documentation, if provided along with the Derivative Works; or,
114
+ within a display generated by the Derivative Works, if and
115
+ wherever such third-party notices normally appear. The contents
116
+ of the NOTICE file are for informational purposes only and
117
+ do not modify the License. You may add Your own attribution
118
+ notices within Derivative Works that You distribute, alongside
119
+ or as an addendum to the NOTICE text from the Work, provided
120
+ that such additional attribution notices cannot be construed
121
+ as modifying the License.
122
+
123
+ You may add Your own copyright statement to Your modifications and
124
+ may provide additional or different license terms and conditions
125
+ for use, reproduction, or distribution of Your modifications, or
126
+ for any such Derivative Works as a whole, provided Your use,
127
+ reproduction, and distribution of the Work otherwise complies with
128
+ the conditions stated in this License.
129
+
130
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
131
+ any Contribution intentionally submitted for inclusion in the Work
132
+ by You to the Licensor shall be under the terms and conditions of
133
+ this License, without any additional terms or conditions.
134
+ Notwithstanding the above, nothing herein shall supersede or modify
135
+ the terms of any separate license agreement you may have executed
136
+ with Licensor regarding such Contributions.
137
+
138
+ 6. Trademarks. This License does not grant permission to use the trade
139
+ names, trademarks, service marks, or product names of the Licensor,
140
+ except as required for reasonable and customary use in describing the
141
+ origin of the Work and reproducing the content of the NOTICE file.
142
+
143
+ 7. Disclaimer of Warranty. Unless required by applicable law or
144
+ agreed to in writing, Licensor provides the Work (and each
145
+ Contributor provides its Contributions) on an "AS IS" BASIS,
146
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
147
+ implied, including, without limitation, any warranties or conditions
148
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
149
+ PARTICULAR PURPOSE. You are solely responsible for determining the
150
+ appropriateness of using or redistributing the Work and assume any
151
+ risks associated with Your exercise of permissions under this License.
152
+
153
+ 8. Limitation of Liability. In no event and under no legal theory,
154
+ whether in tort (including negligence), contract, or otherwise,
155
+ unless required by applicable law (such as deliberate and grossly
156
+ negligent acts) or agreed to in writing, shall any Contributor be
157
+ liable to You for damages, including any direct, indirect, special,
158
+ incidental, or consequential damages of any character arising as a
159
+ result of this License or out of the use or inability to use the
160
+ Work (including but not limited to damages for loss of goodwill,
161
+ work stoppage, computer failure or malfunction, or any and all
162
+ other commercial damages or losses), even if such Contributor
163
+ has been advised of the possibility of such damages.
164
+
165
+ 9. Accepting Warranty or Additional Liability. While redistributing
166
+ the Work or Derivative Works thereof, You may choose to offer,
167
+ and charge a fee for, acceptance of support, warranty, indemnity,
168
+ or other liability obligations and/or rights consistent with this
169
+ License. However, in accepting such obligations, You may act only
170
+ on Your own behalf and on Your sole responsibility, not on behalf
171
+ of any other Contributor, and only if You agree to indemnify,
172
+ defend, and hold each Contributor harmless for any liability
173
+ incurred by, or claims asserted against, such Contributor by reason
174
+ of your accepting any such warranty or additional liability.
175
+
176
+ END OF TERMS AND CONDITIONS
177
+
178
+ Copyright 2026 Shubham Pingle
179
+
180
+ Licensed under the Apache License, Version 2.0 (the "License");
181
+ you may not use this file except in compliance with the License.
182
+ You may obtain a copy of the License at
183
+
184
+ http://www.apache.org/licenses/LICENSE-2.0
185
+
186
+ Unless required by applicable law or agreed to in writing, software
187
+ distributed under the License is distributed on an "AS IS" BASIS,
188
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
189
+ See the License for the specific language governing permissions and
190
+ limitations under the License.
@@ -0,0 +1,267 @@
1
+ Metadata-Version: 2.4
2
+ Name: predacore
3
+ Version: 0.1.0
4
+ Summary: PredaCore — the apex autonomous agent. Hybrid Rust memory kernel, topped LongMemEval R@5 = 0.9574.
5
+ Author: Shubham Pingle
6
+ License: Apache-2.0
7
+ Project-URL: Homepage, https://github.com/rockshub1/predacore
8
+ Project-URL: Bug Tracker, https://github.com/rockshub1/predacore/issues
9
+ Project-URL: Source, https://github.com/rockshub1/predacore
10
+ Project-URL: Changelog, https://github.com/rockshub1/predacore/blob/main/CHANGELOG.md
11
+ Project-URL: Security, https://github.com/rockshub1/predacore/security/policy
12
+ Classifier: Development Status :: 4 - Beta
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: Programming Language :: Python :: 3 :: Only
18
+ Classifier: Programming Language :: Rust
19
+ Classifier: Intended Audience :: Developers
20
+ Classifier: Intended Audience :: Science/Research
21
+ Classifier: Intended Audience :: Information Technology
22
+ Classifier: Operating System :: OS Independent
23
+ Classifier: Operating System :: MacOS
24
+ Classifier: Operating System :: POSIX :: Linux
25
+ Classifier: Operating System :: Microsoft :: Windows
26
+ Classifier: License :: OSI Approved :: Apache Software License
27
+ Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
28
+ Classifier: Topic :: Software Development :: Libraries :: Python Modules
29
+ Classifier: Topic :: System :: Shells
30
+ Classifier: Topic :: Communications :: Chat
31
+ Classifier: Environment :: Console
32
+ Classifier: Framework :: AsyncIO
33
+ Classifier: Natural Language :: English
34
+ Classifier: Typing :: Typed
35
+ Requires-Python: >=3.10
36
+ Description-Content-Type: text/markdown
37
+ License-File: LICENSE
38
+ Requires-Dist: predacore_core>=0.1.0
39
+ Requires-Dist: httpx>=0.27
40
+ Requires-Dist: aiohttp>=3.9
41
+ Requires-Dist: jsonschema>=4.18
42
+ Requires-Dist: pydantic>=2.6
43
+ Requires-Dist: python-dotenv>=1.0
44
+ Requires-Dist: numpy>=1.26
45
+ Requires-Dist: pyyaml>=6.0
46
+ Requires-Dist: rich>=13.7
47
+ Requires-Dist: prompt-toolkit>=3.0.43
48
+ Requires-Dist: ddgs>=9.0
49
+ Requires-Dist: python-telegram-bot>=21.0
50
+ Requires-Dist: discord.py>=2.3
51
+ Requires-Dist: playwright>=1.41
52
+ Requires-Dist: beautifulsoup4>=4.12
53
+ Requires-Dist: pdfminer.six>=20240706
54
+ Requires-Dist: edge-tts>=7.0
55
+ Requires-Dist: docker>=7.0
56
+ Provides-Extra: dev
57
+ Requires-Dist: pytest>=7.4; extra == "dev"
58
+ Requires-Dist: pytest-asyncio>=0.23; extra == "dev"
59
+ Requires-Dist: pytest-httpx>=0.30; extra == "dev"
60
+ Requires-Dist: pytest-cov>=4.1; extra == "dev"
61
+ Requires-Dist: pytest-mock>=3.12; extra == "dev"
62
+ Requires-Dist: ruff>=0.6; extra == "dev"
63
+ Requires-Dist: mypy>=1.8; extra == "dev"
64
+ Requires-Dist: pre-commit>=3.6; extra == "dev"
65
+ Provides-Extra: server
66
+ Requires-Dist: fastapi<1.0,>=0.110; extra == "server"
67
+ Requires-Dist: uvicorn[standard]>=0.29; extra == "server"
68
+ Requires-Dist: grpcio>=1.78.1; extra == "server"
69
+ Requires-Dist: grpcio-tools>=1.78.1; extra == "server"
70
+ Requires-Dist: redis>=5.0; extra == "server"
71
+ Requires-Dist: prometheus-client>=0.20; extra == "server"
72
+ Provides-Extra: ml
73
+ Requires-Dist: spacy>=3.7; extra == "ml"
74
+ Provides-Extra: desktop
75
+ Requires-Dist: pyautogui>=0.9.54; (sys_platform == "darwin" or sys_platform == "linux") and extra == "desktop"
76
+ Requires-Dist: pyobjc-framework-ApplicationServices>=12.1; sys_platform == "darwin" and extra == "desktop"
77
+ Provides-Extra: android
78
+ Requires-Dist: uiautomator2>=3.0; extra == "android"
79
+ Provides-Extra: slack
80
+ Requires-Dist: slack-sdk>=3.27; extra == "slack"
81
+ Provides-Extra: email
82
+ Requires-Dist: aioimaplib>=1.1; extra == "email"
83
+ Requires-Dist: aiosmtplib>=3.0; extra == "email"
84
+ Provides-Extra: full
85
+ Requires-Dist: predacore[ml]; extra == "full"
86
+ Requires-Dist: predacore[desktop]; extra == "full"
87
+ Requires-Dist: predacore[android]; extra == "full"
88
+ Requires-Dist: predacore[slack]; extra == "full"
89
+ Requires-Dist: predacore[email]; extra == "full"
90
+ Provides-Extra: api
91
+ Requires-Dist: predacore[server]; extra == "api"
92
+ Provides-Extra: wil
93
+ Requires-Dist: predacore[server]; extra == "wil"
94
+ Provides-Extra: docs
95
+ Provides-Extra: nlp
96
+ Requires-Dist: predacore[ml]; extra == "nlp"
97
+ Provides-Extra: llm
98
+ Dynamic: license-file
99
+
100
+ <p align="center">
101
+ <img src="https://raw.githubusercontent.com/rockshub1/predacore/main/docs/logo/predacore-hero.png" alt="PredaCore" width="100%">
102
+ </p>
103
+
104
+ <p align="center"><strong>The hyper-autonomous AI agent with persistent memory and 55 powerful tools.</strong></p>
105
+
106
+ <br>
107
+
108
+ <h1 align="center"><code>0.9574</code></h1>
109
+
110
+ <p align="center"><sub><strong>R @ 5 &nbsp; · &nbsp; LongMemEval</strong></sub></p>
111
+
112
+ <br>
113
+
114
+ <p align="center">
115
+ Persistent memory. On your laptop. No cloud. No API keys. Yours forever.
116
+ </p>
117
+
118
+ <br>
119
+
120
+ <p align="center">
121
+ <img src="https://img.shields.io/badge/Kernel-Rust_BGE-orange?style=for-the-badge" alt="Rust BGE Kernel">
122
+ <img src="https://img.shields.io/badge/Memory-Persistent-blue?style=for-the-badge" alt="Persistent Memory">
123
+ <img src="https://img.shields.io/badge/55%20Powerful%20Tools-success?style=for-the-badge" alt="55 Powerful Tools">
124
+ <img src="https://img.shields.io/badge/Privacy-100%25_Local-red?style=for-the-badge" alt="100% Local">
125
+ <img src="https://img.shields.io/badge/License-Apache_2.0-green?style=for-the-badge" alt="Apache 2.0">
126
+ </p>
127
+
128
+ ---
129
+
130
+ ```
131
+ You: hey atlas, remember that rate-limiter bug from last month?
132
+
133
+ PredaCore: yeah — api_client.py:142, headers dropped on retry. You
134
+ patched it. Similar pattern still lives in webhook_retry.py.
135
+ want me to fix it there too?
136
+ ```
137
+
138
+ Most AI forgets you the moment the tab closes. **PredaCore doesn't.** Rust kernel, 13 markdown identity files, 55 tools, nine channels, zero vendor SDKs. Every number on this page reproducible in one command.
139
+
140
+ - **Stop re-explaining yourself.** It knows your repo, your stack, your architecture — across weeks.
141
+ - **Bugs don't bite twice.** Patterns you debugged last month get flagged when they reappear.
142
+ - **Preferences stick.** Say *"use pytest"* once — never again.
143
+ - **Work compounds.** Every session picks up where the last left off. Useful memories persist; dead weight fades automatically — preferences live for weeks, casual chats for days, all tuned by session reward.
144
+ - **You own it.** Memory lives in `~/.predacore/`. No cloud, no account, no vendor.
145
+
146
+ You can delete it anytime — `rm -rf ~/.predacore/agents/atlas/`.
147
+
148
+ ---
149
+
150
+ ## 🧰 55 powerful tools
151
+
152
+ Not an LLM wrapper. A digital operator wired into your machine through a hardened dispatcher — Express-style middleware, per-tool circuit breakers, adaptive P95 timeouts, LRU cache, SHA-256-hashed persistent approvals.
153
+
154
+ | | Tools |
155
+ |---|---|
156
+ | **Code & shell** | `execute_code` (13 langs · sandboxed Docker · [optional](docker/sandbox/Dockerfile)) · `python_exec` · `run_command` · `read_file` · `write_file` · `list_directory` |
157
+ | **Web** | `browser_control` (hijacks Chrome via DOM — 100× faster than screenshots) · `deep_search` · `web_search` · `web_scrape` |
158
+ | **Desktop / mobile** | `desktop_control` (PyObjC · 1–5ms per action) · `screen_vision` · `android_control` (ADB + uiautomator2) |
159
+ | **Git** | `git_semantic_search` (*"where is the auth middleware?"*) · `git_context` · `git_diff_summary` · `git_commit_suggest` · `git_find_files` |
160
+ | **Agents & planning** | `multi_agent` — fan-out · pipeline · consensus · supervisor, with optional **DAF gRPC process isolation** for true parallel agents · `strategic_plan` (HTN + MCTS, multi-objective) · `openclaw_delegate` |
161
+ | **Memory** | `memory_store` · `memory_recall` · `semantic_search` (scoped global · team · scratch) |
162
+ | **Identity** | `identity_read` · `identity_update` · `journal_append` — writes to the agent's 13-file soul |
163
+ | **MCP client** | `mcp_add` · `mcp_list` · `mcp_remove` · `mcp_restart` — mount any MCP server mid-chat |
164
+ | **REST APIs** | `api_add` · `api_call` · `api_list` · `api_remove` — bind any service in seconds |
165
+ | **Pipelines** | `tool_pipeline` (sequential · parallel · conditionals · templates) · `tool_stats` |
166
+ | **Collective intelligence** | `skill_evolve` · `skill_scan` · `skill_endorse` · `collective_intelligence_sync` · `collective_intelligence_status` · `marketplace_*` |
167
+ | **Voice / creative / cron** | `speak` · `voice_note` · `image_gen` · `pdf_reader` · `diagram` (Mermaid) · `cron_task` |
168
+ | **Infrastructure** | `secret_set` · `secret_list` · `channel_configure` · `channel_install` |
169
+
170
+ ---
171
+
172
+ ## How the engine purrs
173
+
174
+ **Rust compute kernel.** Candle BGE + BM25 + trigram fuzzy + entity extraction. SIMD cosine. Deterministic retrieval — no LLM sampling, no RNG. That's why benchmarks reproduce bit-identical.
175
+
176
+ **Thirteen files. One soul.** Your agent's identity lives in `~/.predacore/agents/<name>/` as plain markdown. `cat` them. `git log` them. `rm` them. Beliefs graduate *observation → working_theory → tested → committed*. Every mutation auto-diffs to `EVOLUTION.md`. Tampered `SOUL_SEED` aborts startup. **Fail closed.**
177
+
178
+ **Safety as a primitive.** Prompt-injection scan on every identity load. SSRF guard on web tools. Secret-shape allowlist — even `yolo` can't write arbitrary env vars. Persona-drift regex ladder auto-regenerates drifted turns. Memory scopes (`global · agent · team · scratch`) prevent cross-contamination.
179
+
180
+ **Per-session lane queue.** Same session = serial FIFO. Different sessions = concurrent. Meta-cognition catches loops, oscillation, thrashing — with a diversity exception so real exploration isn't punished.
181
+
182
+ **DAF — true parallel agents.** When in-process asyncio isn't enough, the Dynamic Agent Fabric (`[server]` extra) gives you gRPC multi-process isolation. Agents run in their own processes, crash-isolated, with self-optimization: >20% error rate → respawn · queue depth >10 → scale out · idle >300s → terminate · P95 latency >3× baseline → marked degraded. Wall-clock budgets clamped 10s..6h, hard-killed via `asyncio.wait_for`. Teams get private 72h-TTL scratchpads so findings don't leak to caller memory.
183
+
184
+ ---
185
+
186
+ ## Quickstart
187
+
188
+ ```bash
189
+ pip install predacore[full]
190
+ predacore
191
+ ```
192
+
193
+ One command. First message in under two minutes. Rust ships as pre-built wheels — no toolchain required.
194
+
195
+ **Zero-config. The agent configures itself mid-chat:**
196
+
197
+ ```
198
+ You: add Anthropic — key sk-ant-api03-XXXXXXXXXX
199
+ You: enable telegram with token 123:abc
200
+ You: install the GitHub MCP server
201
+ ```
202
+
203
+ Routed through `secret_set`, `channel_configure`, `mcp_add`. Writes land in `~/.predacore/.env` (chmod 600).
204
+
205
+ | Install | Adds | Δ Wheel |
206
+ |---|---|---|
207
+ | `predacore` | Engine · CLI · webchat · 8 channels · Playwright · PDF · voice · sandbox · Rust kernel | ~350 MB |
208
+ | `predacore[full]` | + spaCy · desktop automation · Android ADB | +200 MB |
209
+ | `predacore[server]` | + FastAPI · Redis · Prometheus · DAF gRPC | +150 MB |
210
+
211
+ ---
212
+
213
+ ## Benchmarks
214
+
215
+ **0.9574 R@5** on [LongMemEval](https://arxiv.org/abs/2410.10813) — the long-term-memory benchmark from ICLR 2025. 500 conversational histories · ~57M tokens · 470 scored.
216
+
217
+ | Category | n | R@5 | R@10 | R@20 |
218
+ |---|---|---|---|---|
219
+ | knowledge-update | 72 | **0.9861** | 0.9861 | 1.000 |
220
+ | multi-session | 121 | **0.9835** | 0.9917 | 1.000 |
221
+ | single-session-assistant | 56 | 0.9643 | 0.9821 | 0.9821 |
222
+ | single-session-user | 64 | 0.9531 | 0.9844 | 1.000 |
223
+ | temporal-reasoning | 127 | 0.9370 | 0.9606 | 0.9843 |
224
+ | single-session-preference | 30 | 0.8667 | 0.9333 | 1.000 |
225
+
226
+ Four of six categories clear **0.95**. Bit-identical reproduction:
227
+
228
+ ```bash
229
+ wget https://huggingface.co/datasets/xiaowu0162/longmemeval-cleaned/resolve/main/longmemeval_s_cleaned.json
230
+ python -m predacore.evals.longmemeval --dataset longmemeval_s_cleaned.json --json-out my_run.json
231
+ ```
232
+
233
+ ~55 min on Apple Silicon. Zero per-query API cost. Full artifacts in [`benchmarks/`](https://github.com/rockshub1/predacore/tree/main/benchmarks).
234
+
235
+ ---
236
+
237
+ ## Trust profiles
238
+
239
+ | Profile | Behavior |
240
+ |---|---|
241
+ | `paranoid` | Confirms every tool · ethical keyword guard active |
242
+ | `normal` *(default)* | Auto-approves 12 read-only · confirms 16 destructive |
243
+ | `yolo` | Full autonomy · arg-regex still blocks `rm -rf`, `sudo`, `dd if=` |
244
+
245
+ ---
246
+
247
+ ## Honest weaknesses (no vaporware)
248
+
249
+ - **Windows desktop operator unimplemented.** Networked surfaces work everywhere; `desktop_control` / `screen_vision` are macOS + Linux only. *Coming soon.*
250
+ - **`single-session-preference` R@5 = 0.867.** Retrieval's weak spot — cross-encoder re-ranker is the planned fix.
251
+ - **GIL not released in Rust kernel.** Concurrent `embed()` calls serialize. rayon helps within a call.
252
+ - **`yolo` has no real cost cap.** Arg-regex catches `rm -rf`, not an obfuscated `curl | sh`.
253
+ - **`_vendor` ships in wheels.** Five subpackages bloat the install.
254
+
255
+ ---
256
+
257
+ ## Links
258
+
259
+ **Deep dives:** [Memory](https://github.com/rockshub1/predacore/blob/main/docs/MEMORY.md) · [Identity](https://github.com/rockshub1/predacore/blob/main/docs/IDENTITY.md) · [Tools](https://github.com/rockshub1/predacore/blob/main/docs/TOOLS.md) · [Multi-agent](https://github.com/rockshub1/predacore/blob/main/docs/MULTI_AGENT.md) · [Safety](https://github.com/rockshub1/predacore/blob/main/docs/SAFETY.md) · [Autonomy](https://github.com/rockshub1/predacore/blob/main/docs/AUTONOMY.md) · [MCP](https://github.com/rockshub1/predacore/blob/main/docs/MCP.md) · [Channels](https://github.com/rockshub1/predacore/blob/main/docs/CHANNEL_ADAPTER.md) · [Launch profiles](https://github.com/rockshub1/predacore/blob/main/docs/launch_profiles.md)
260
+
261
+ **Issues:** [github.com/rockshub1/predacore/issues](https://github.com/rockshub1/predacore/issues) · **Security:** [SECURITY.md](https://github.com/rockshub1/predacore/blob/main/SECURITY.md) · **Contributing:** [CONTRIBUTING.md](https://github.com/rockshub1/predacore/blob/main/CONTRIBUTING.md)
262
+
263
+ ---
264
+
265
+ <p align="center">
266
+ <sub>Apache 2.0 · Every claim reproducible from the repo.</sub>
267
+ </p>
@@ -0,0 +1,168 @@
1
+ <p align="center">
2
+ <img src="https://raw.githubusercontent.com/rockshub1/predacore/main/docs/logo/predacore-hero.png" alt="PredaCore" width="100%">
3
+ </p>
4
+
5
+ <p align="center"><strong>The hyper-autonomous AI agent with persistent memory and 55 powerful tools.</strong></p>
6
+
7
+ <br>
8
+
9
+ <h1 align="center"><code>0.9574</code></h1>
10
+
11
+ <p align="center"><sub><strong>R @ 5 &nbsp; · &nbsp; LongMemEval</strong></sub></p>
12
+
13
+ <br>
14
+
15
+ <p align="center">
16
+ Persistent memory. On your laptop. No cloud. No API keys. Yours forever.
17
+ </p>
18
+
19
+ <br>
20
+
21
+ <p align="center">
22
+ <img src="https://img.shields.io/badge/Kernel-Rust_BGE-orange?style=for-the-badge" alt="Rust BGE Kernel">
23
+ <img src="https://img.shields.io/badge/Memory-Persistent-blue?style=for-the-badge" alt="Persistent Memory">
24
+ <img src="https://img.shields.io/badge/55%20Powerful%20Tools-success?style=for-the-badge" alt="55 Powerful Tools">
25
+ <img src="https://img.shields.io/badge/Privacy-100%25_Local-red?style=for-the-badge" alt="100% Local">
26
+ <img src="https://img.shields.io/badge/License-Apache_2.0-green?style=for-the-badge" alt="Apache 2.0">
27
+ </p>
28
+
29
+ ---
30
+
31
+ ```
32
+ You: hey atlas, remember that rate-limiter bug from last month?
33
+
34
+ PredaCore: yeah — api_client.py:142, headers dropped on retry. You
35
+ patched it. Similar pattern still lives in webhook_retry.py.
36
+ want me to fix it there too?
37
+ ```
38
+
39
+ Most AI forgets you the moment the tab closes. **PredaCore doesn't.** Rust kernel, 13 markdown identity files, 55 tools, nine channels, zero vendor SDKs. Every number on this page reproducible in one command.
40
+
41
+ - **Stop re-explaining yourself.** It knows your repo, your stack, your architecture — across weeks.
42
+ - **Bugs don't bite twice.** Patterns you debugged last month get flagged when they reappear.
43
+ - **Preferences stick.** Say *"use pytest"* once — never again.
44
+ - **Work compounds.** Every session picks up where the last left off. Useful memories persist; dead weight fades automatically — preferences live for weeks, casual chats for days, all tuned by session reward.
45
+ - **You own it.** Memory lives in `~/.predacore/`. No cloud, no account, no vendor.
46
+
47
+ You can delete it anytime — `rm -rf ~/.predacore/agents/atlas/`.
48
+
49
+ ---
50
+
51
+ ## 🧰 55 powerful tools
52
+
53
+ Not an LLM wrapper. A digital operator wired into your machine through a hardened dispatcher — Express-style middleware, per-tool circuit breakers, adaptive P95 timeouts, LRU cache, SHA-256-hashed persistent approvals.
54
+
55
+ | | Tools |
56
+ |---|---|
57
+ | **Code & shell** | `execute_code` (13 langs · sandboxed Docker · [optional](docker/sandbox/Dockerfile)) · `python_exec` · `run_command` · `read_file` · `write_file` · `list_directory` |
58
+ | **Web** | `browser_control` (hijacks Chrome via DOM — 100× faster than screenshots) · `deep_search` · `web_search` · `web_scrape` |
59
+ | **Desktop / mobile** | `desktop_control` (PyObjC · 1–5ms per action) · `screen_vision` · `android_control` (ADB + uiautomator2) |
60
+ | **Git** | `git_semantic_search` (*"where is the auth middleware?"*) · `git_context` · `git_diff_summary` · `git_commit_suggest` · `git_find_files` |
61
+ | **Agents & planning** | `multi_agent` — fan-out · pipeline · consensus · supervisor, with optional **DAF gRPC process isolation** for true parallel agents · `strategic_plan` (HTN + MCTS, multi-objective) · `openclaw_delegate` |
62
+ | **Memory** | `memory_store` · `memory_recall` · `semantic_search` (scoped global · team · scratch) |
63
+ | **Identity** | `identity_read` · `identity_update` · `journal_append` — writes to the agent's 13-file soul |
64
+ | **MCP client** | `mcp_add` · `mcp_list` · `mcp_remove` · `mcp_restart` — mount any MCP server mid-chat |
65
+ | **REST APIs** | `api_add` · `api_call` · `api_list` · `api_remove` — bind any service in seconds |
66
+ | **Pipelines** | `tool_pipeline` (sequential · parallel · conditionals · templates) · `tool_stats` |
67
+ | **Collective intelligence** | `skill_evolve` · `skill_scan` · `skill_endorse` · `collective_intelligence_sync` · `collective_intelligence_status` · `marketplace_*` |
68
+ | **Voice / creative / cron** | `speak` · `voice_note` · `image_gen` · `pdf_reader` · `diagram` (Mermaid) · `cron_task` |
69
+ | **Infrastructure** | `secret_set` · `secret_list` · `channel_configure` · `channel_install` |
70
+
71
+ ---
72
+
73
+ ## How the engine purrs
74
+
75
+ **Rust compute kernel.** Candle BGE + BM25 + trigram fuzzy + entity extraction. SIMD cosine. Deterministic retrieval — no LLM sampling, no RNG. That's why benchmarks reproduce bit-identical.
76
+
77
+ **Thirteen files. One soul.** Your agent's identity lives in `~/.predacore/agents/<name>/` as plain markdown. `cat` them. `git log` them. `rm` them. Beliefs graduate *observation → working_theory → tested → committed*. Every mutation auto-diffs to `EVOLUTION.md`. Tampered `SOUL_SEED` aborts startup. **Fail closed.**
78
+
79
+ **Safety as a primitive.** Prompt-injection scan on every identity load. SSRF guard on web tools. Secret-shape allowlist — even `yolo` can't write arbitrary env vars. Persona-drift regex ladder auto-regenerates drifted turns. Memory scopes (`global · agent · team · scratch`) prevent cross-contamination.
80
+
81
+ **Per-session lane queue.** Same session = serial FIFO. Different sessions = concurrent. Meta-cognition catches loops, oscillation, thrashing — with a diversity exception so real exploration isn't punished.
82
+
83
+ **DAF — true parallel agents.** When in-process asyncio isn't enough, the Dynamic Agent Fabric (`[server]` extra) gives you gRPC multi-process isolation. Agents run in their own processes, crash-isolated, with self-optimization: >20% error rate → respawn · queue depth >10 → scale out · idle >300s → terminate · P95 latency >3× baseline → marked degraded. Wall-clock budgets clamped 10s..6h, hard-killed via `asyncio.wait_for`. Teams get private 72h-TTL scratchpads so findings don't leak to caller memory.
84
+
85
+ ---
86
+
87
+ ## Quickstart
88
+
89
+ ```bash
90
+ pip install predacore[full]
91
+ predacore
92
+ ```
93
+
94
+ One command. First message in under two minutes. Rust ships as pre-built wheels — no toolchain required.
95
+
96
+ **Zero-config. The agent configures itself mid-chat:**
97
+
98
+ ```
99
+ You: add Anthropic — key sk-ant-api03-XXXXXXXXXX
100
+ You: enable telegram with token 123:abc
101
+ You: install the GitHub MCP server
102
+ ```
103
+
104
+ Routed through `secret_set`, `channel_configure`, `mcp_add`. Writes land in `~/.predacore/.env` (chmod 600).
105
+
106
+ | Install | Adds | Δ Wheel |
107
+ |---|---|---|
108
+ | `predacore` | Engine · CLI · webchat · 8 channels · Playwright · PDF · voice · sandbox · Rust kernel | ~350 MB |
109
+ | `predacore[full]` | + spaCy · desktop automation · Android ADB | +200 MB |
110
+ | `predacore[server]` | + FastAPI · Redis · Prometheus · DAF gRPC | +150 MB |
111
+
112
+ ---
113
+
114
+ ## Benchmarks
115
+
116
+ **0.9574 R@5** on [LongMemEval](https://arxiv.org/abs/2410.10813) — the long-term-memory benchmark from ICLR 2025. 500 conversational histories · ~57M tokens · 470 scored.
117
+
118
+ | Category | n | R@5 | R@10 | R@20 |
119
+ |---|---|---|---|---|
120
+ | knowledge-update | 72 | **0.9861** | 0.9861 | 1.000 |
121
+ | multi-session | 121 | **0.9835** | 0.9917 | 1.000 |
122
+ | single-session-assistant | 56 | 0.9643 | 0.9821 | 0.9821 |
123
+ | single-session-user | 64 | 0.9531 | 0.9844 | 1.000 |
124
+ | temporal-reasoning | 127 | 0.9370 | 0.9606 | 0.9843 |
125
+ | single-session-preference | 30 | 0.8667 | 0.9333 | 1.000 |
126
+
127
+ Four of six categories clear **0.95**. Bit-identical reproduction:
128
+
129
+ ```bash
130
+ wget https://huggingface.co/datasets/xiaowu0162/longmemeval-cleaned/resolve/main/longmemeval_s_cleaned.json
131
+ python -m predacore.evals.longmemeval --dataset longmemeval_s_cleaned.json --json-out my_run.json
132
+ ```
133
+
134
+ ~55 min on Apple Silicon. Zero per-query API cost. Full artifacts in [`benchmarks/`](https://github.com/rockshub1/predacore/tree/main/benchmarks).
135
+
136
+ ---
137
+
138
+ ## Trust profiles
139
+
140
+ | Profile | Behavior |
141
+ |---|---|
142
+ | `paranoid` | Confirms every tool · ethical keyword guard active |
143
+ | `normal` *(default)* | Auto-approves 12 read-only · confirms 16 destructive |
144
+ | `yolo` | Full autonomy · arg-regex still blocks `rm -rf`, `sudo`, `dd if=` |
145
+
146
+ ---
147
+
148
+ ## Honest weaknesses (no vaporware)
149
+
150
+ - **Windows desktop operator unimplemented.** Networked surfaces work everywhere; `desktop_control` / `screen_vision` are macOS + Linux only. *Coming soon.*
151
+ - **`single-session-preference` R@5 = 0.867.** Retrieval's weak spot — cross-encoder re-ranker is the planned fix.
152
+ - **GIL not released in Rust kernel.** Concurrent `embed()` calls serialize. rayon helps within a call.
153
+ - **`yolo` has no real cost cap.** Arg-regex catches `rm -rf`, not an obfuscated `curl | sh`.
154
+ - **`_vendor` ships in wheels.** Five subpackages bloat the install.
155
+
156
+ ---
157
+
158
+ ## Links
159
+
160
+ **Deep dives:** [Memory](https://github.com/rockshub1/predacore/blob/main/docs/MEMORY.md) · [Identity](https://github.com/rockshub1/predacore/blob/main/docs/IDENTITY.md) · [Tools](https://github.com/rockshub1/predacore/blob/main/docs/TOOLS.md) · [Multi-agent](https://github.com/rockshub1/predacore/blob/main/docs/MULTI_AGENT.md) · [Safety](https://github.com/rockshub1/predacore/blob/main/docs/SAFETY.md) · [Autonomy](https://github.com/rockshub1/predacore/blob/main/docs/AUTONOMY.md) · [MCP](https://github.com/rockshub1/predacore/blob/main/docs/MCP.md) · [Channels](https://github.com/rockshub1/predacore/blob/main/docs/CHANNEL_ADAPTER.md) · [Launch profiles](https://github.com/rockshub1/predacore/blob/main/docs/launch_profiles.md)
161
+
162
+ **Issues:** [github.com/rockshub1/predacore/issues](https://github.com/rockshub1/predacore/issues) · **Security:** [SECURITY.md](https://github.com/rockshub1/predacore/blob/main/SECURITY.md) · **Contributing:** [CONTRIBUTING.md](https://github.com/rockshub1/predacore/blob/main/CONTRIBUTING.md)
163
+
164
+ ---
165
+
166
+ <p align="center">
167
+ <sub>Apache 2.0 · Every claim reproducible from the repo.</sub>
168
+ </p>