open-agents-ai 0.183.0 → 0.184.1

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 (3) hide show
  1. package/README.md +31 -1
  2. package/dist/index.js +24 -0
  3. package/package.json +3 -3
package/README.md CHANGED
@@ -8,7 +8,7 @@
8
8
  <p align="center">
9
9
  <a href="https://www.npmjs.com/package/open-agents-ai"><img src="https://img.shields.io/npm/v/open-agents-ai?color=7C3AED&style=flat-square" alt="npm version" /></a>
10
10
  <a href="https://www.npmjs.com/package/open-agents-ai"><img src="https://img.shields.io/npm/dm/open-agents-ai?color=06B6D4&style=flat-square" alt="npm downloads" /></a>
11
- <img src="https://img.shields.io/badge/license-MIT-10B981?style=flat-square" alt="license" />
11
+ <img src="https://img.shields.io/badge/license-CC--BY--NC--4.0-10B981?style=flat-square" alt="license" />
12
12
  <img src="https://img.shields.io/badge/node-%3E%3D20-F59E0B?style=flat-square" alt="node version" />
13
13
  <img src="https://img.shields.io/badge/models-open--weight-EC4899?style=flat-square" alt="open-weight models" />
14
14
  <a href="https://x.com/intent/post?url=https%3A%2F%2Fwww.npmjs.com%2Fpackage%2Fopen-agents-ai"><img src="https://img.shields.io/badge/SHARE%20ON%20X-000000?style=for-the-badge&logo=x&logoColor=white" alt="Share on X" /></a>
@@ -22,6 +22,36 @@ npm i -g open-agents-ai && oa
22
22
 
23
23
  An autonomous multi-turn tool-calling agent that reads your code, makes changes, runs tests, and fixes failures in an iterative loop until the task is complete. First launch auto-detects your hardware and configures the optimal model with expanded context window automatically.
24
24
 
25
+ ## The Organism, Not the Cortex
26
+
27
+ An LLM is a high-bandwidth associative generative core — closer to a cortex-like prior than to a complete agent. Its weights contain broad latent structure, but they do not by themselves give you situated continuity, durable task state, calibrated action policies, or grounded memory management. Open Agents treats the model as one organ inside a larger organism. The framework provides the rest: sensors, effectors, memory stores, routing, gating, evaluation, and persistence.
28
+
29
+ **Empirical proof** — 65 IQ-grade reasoning tasks (LSAT Logic Games, Bayesian probability, cryptarithmetic, constraint satisfaction, formal logic):
30
+
31
+ | | With Framework (Full Organism) | Pure Reasoning (Cortex Only) |
32
+ |---|---|---|
33
+ | **4B model** | 65/65 (100%) | 15/15 (100%) |
34
+ | **9B model** | 50/50 (100%) | 12/15 (80%) |
35
+ | **30B model** | 20/20 (100%) | 11/15 (73%) |
36
+
37
+ When the framework provides externalized computation (shell), persistent state (files), and verification loops (validators) — model size becomes irrelevant. A 4B model with the full agentic framework outperforms a 30B model reasoning alone.
38
+
39
+ **What the framework provides:**
40
+
41
+ | Layer | Biological Analog | Implementation |
42
+ |---|---|---|
43
+ | Associative core | Cortex | LLM weights (any size) |
44
+ | Current workspace | Global workspace / attention | `assembleContext()` — structured context assembly |
45
+ | Episodic memory | Hippocampus | `.oa/memory/` — write, search, retrieve across sessions |
46
+ | Cognitive map | Hippocampal spatial maps | `semantic-map.ts` + `repo-map.ts` (PageRank) |
47
+ | Action gating | Basal ganglia | Tool selection policy (task-aware filtering) |
48
+ | Temporal hierarchy | Prefrontal executive | Task decomposition, sub-agent delegation |
49
+ | Self-model | Metacognition | Environment snapshot, process health monitoring |
50
+ | Skill chunks | Cerebellum | Compiled tools, slash commands, verified routines |
51
+ | Safety / limits | Autonomic / immune system | Turn limits, budgets, timeout watchdogs |
52
+
53
+ Don't chase larger models. Build the organism around whatever model you have.
54
+
25
55
  ## How It Works
26
56
 
27
57
  ```
package/dist/index.js CHANGED
@@ -25872,6 +25872,30 @@ ${top.map((t) => `- ${t.name}: ${t.desc}`).join("\n")}`
25872
25872
  });
25873
25873
  }
25874
25874
  }
25875
+ if (turn === 0 && (turnTier === "small" || turnTier === "medium")) {
25876
+ const taskGoal = this._taskState.goal || "";
25877
+ const hasMultiplePremises = (taskGoal.match(/\band\b|\bthen\b|\bif\b|\bbecause\b|\bsince\b|\bgiven\b/gi) || []).length >= 3;
25878
+ const hasConditionalLogic = (taskGoal.match(/\bif\b.*\bthen\b|\bwhen\b.*\bshould\b|\bassuming\b/gi) || []).length >= 1;
25879
+ const hasMultiStepRequirement = taskGoal.length > 200 && (taskGoal.match(/\d\./g) || []).length >= 2;
25880
+ const isAnalysisTask = (taskGoal.match(/\banalyze\b|\baudit\b|\breview\b|\bdiagnose\b|\binvestigate\b|\bcompare\b|\bevaluate\b/gi) || []).length >= 1;
25881
+ if (hasMultiplePremises || hasConditionalLogic || hasMultiStepRequirement || isAnalysisTask) {
25882
+ messages.push({
25883
+ role: "system",
25884
+ content: [
25885
+ "[Structured Reasoning Guide]",
25886
+ "This task requires multi-step reasoning. Follow this structure:",
25887
+ "",
25888
+ "1. DECOMPOSE: List the sub-questions this task requires, from simplest to most complex.",
25889
+ "2. For each sub-question:",
25890
+ " a. State what you KNOW (verified from evidence/tool output)",
25891
+ " b. State what you ASSUME (hypotheses not yet confirmed)",
25892
+ " c. Derive your conclusion using ONLY verified facts",
25893
+ "3. If a tool result contradicts your earlier reasoning, UPDATE your conclusions \u2014 don't ignore new evidence.",
25894
+ "4. Before your final answer, verify: does each conclusion follow from the evidence?"
25895
+ ].join("\n")
25896
+ });
25897
+ }
25898
+ }
25875
25899
  const turnBudget = turnTier === "small" ? 5 : turnTier === "medium" ? 8 : 0;
25876
25900
  if (turnBudget > 0 && turn > 0 && turn % turnBudget === 0) {
25877
25901
  const repetitionRatio = this.detectRepetition(toolCallLog);
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "open-agents-ai",
3
- "version": "0.183.0",
4
- "description": "AI coding agent powered by open-source models (Ollama/vLLM) interactive TUI with agentic tool-calling loop",
3
+ "version": "0.184.1",
4
+ "description": "AI coding agent powered by open-source models (Ollama/vLLM) \u2014 interactive TUI with agentic tool-calling loop",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
7
7
  "types": "./dist/index.d.ts",
@@ -90,4 +90,4 @@
90
90
  "open-agents-nexus": "^1.10.0",
91
91
  "viem": "^2.47.4"
92
92
  }
93
- }
93
+ }