react-agent-harness 0.12.0__tar.gz → 0.13.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.
- {react_agent_harness-0.12.0/react_agent_harness.egg-info → react_agent_harness-0.13.0}/PKG-INFO +1 -1
- {react_agent_harness-0.12.0 → react_agent_harness-0.13.0}/README.md +57 -6
- {react_agent_harness-0.12.0 → react_agent_harness-0.13.0}/agents/base.py +607 -574
- {react_agent_harness-0.12.0 → react_agent_harness-0.13.0}/harness/console.py +14 -0
- {react_agent_harness-0.12.0 → react_agent_harness-0.13.0}/harness/events.py +29 -0
- {react_agent_harness-0.12.0 → react_agent_harness-0.13.0}/harness/llm/__init__.py +2 -0
- {react_agent_harness-0.12.0 → react_agent_harness-0.13.0}/harness/llm/anthropic.py +34 -0
- {react_agent_harness-0.12.0 → react_agent_harness-0.13.0}/harness/llm/claude_code.py +44 -6
- {react_agent_harness-0.12.0 → react_agent_harness-0.13.0}/harness/llm/openai.py +35 -0
- {react_agent_harness-0.12.0 → react_agent_harness-0.13.0}/harness/llm/openai_codex.py +32 -4
- react_agent_harness-0.13.0/harness/llm/reasoning.py +37 -0
- react_agent_harness-0.13.0/harness/runstate.py +416 -0
- {react_agent_harness-0.12.0 → react_agent_harness-0.13.0}/harness/runtime.py +77 -75
- {react_agent_harness-0.12.0 → react_agent_harness-0.13.0}/orchestrator/planner.py +222 -32
- {react_agent_harness-0.12.0 → react_agent_harness-0.13.0}/pyproject.toml +2 -1
- {react_agent_harness-0.12.0 → react_agent_harness-0.13.0/react_agent_harness.egg-info}/PKG-INFO +1 -1
- {react_agent_harness-0.12.0 → react_agent_harness-0.13.0}/react_agent_harness.egg-info/SOURCES.txt +8 -0
- {react_agent_harness-0.12.0 → react_agent_harness-0.13.0}/tests/test_agents_base.py +28 -0
- {react_agent_harness-0.12.0 → react_agent_harness-0.13.0}/tests/test_anthropic_llm.py +26 -0
- react_agent_harness-0.13.0/tests/test_budget_restore.py +129 -0
- {react_agent_harness-0.12.0 → react_agent_harness-0.13.0}/tests/test_checkpoint_resume.py +311 -84
- {react_agent_harness-0.12.0 → react_agent_harness-0.13.0}/tests/test_claude_code_llm.py +32 -0
- react_agent_harness-0.13.0/tests/test_concurrent_same_agent.py +400 -0
- react_agent_harness-0.13.0/tests/test_hitl_gate.py +192 -0
- {react_agent_harness-0.12.0 → react_agent_harness-0.13.0}/tests/test_openai_codex_llm.py +30 -0
- {react_agent_harness-0.12.0 → react_agent_harness-0.13.0}/tests/test_openai_llm.py +24 -0
- react_agent_harness-0.13.0/tests/test_orchestrator_task_state.py +330 -0
- {react_agent_harness-0.12.0 → react_agent_harness-0.13.0}/tests/test_per_call_site_llm.py +8 -8
- {react_agent_harness-0.12.0 → react_agent_harness-0.13.0}/tests/test_resume_hint_banner.py +1 -1
- react_agent_harness-0.13.0/tests/test_run_state_machine.py +338 -0
- react_agent_harness-0.13.0/tests/test_runstate.py +357 -0
- {react_agent_harness-0.12.0 → react_agent_harness-0.13.0}/tests/test_subagent_tool.py +24 -9
- {react_agent_harness-0.12.0 → react_agent_harness-0.13.0}/tools/builtin/subagent.py +14 -0
- {react_agent_harness-0.12.0 → react_agent_harness-0.13.0}/LICENSE +0 -0
- {react_agent_harness-0.12.0 → react_agent_harness-0.13.0}/agents/__init__.py +0 -0
- {react_agent_harness-0.12.0 → react_agent_harness-0.13.0}/harness/__init__.py +0 -0
- {react_agent_harness-0.12.0 → react_agent_harness-0.13.0}/harness/agent_tree.py +0 -0
- {react_agent_harness-0.12.0 → react_agent_harness-0.13.0}/harness/annotation.py +0 -0
- {react_agent_harness-0.12.0 → react_agent_harness-0.13.0}/harness/background_tasks.py +0 -0
- {react_agent_harness-0.12.0 → react_agent_harness-0.13.0}/harness/cancellation.py +0 -0
- {react_agent_harness-0.12.0 → react_agent_harness-0.13.0}/harness/checkpoint.py +0 -0
- {react_agent_harness-0.12.0 → react_agent_harness-0.13.0}/harness/cli.py +0 -0
- {react_agent_harness-0.12.0 → react_agent_harness-0.13.0}/harness/executor_bridge.py +0 -0
- {react_agent_harness-0.12.0 → react_agent_harness-0.13.0}/harness/hitl.py +0 -0
- {react_agent_harness-0.12.0 → react_agent_harness-0.13.0}/harness/llm/_streaming.py +0 -0
- {react_agent_harness-0.12.0 → react_agent_harness-0.13.0}/harness/llm/auth.py +0 -0
- {react_agent_harness-0.12.0 → react_agent_harness-0.13.0}/harness/llm/fallback.py +0 -0
- {react_agent_harness-0.12.0 → react_agent_harness-0.13.0}/harness/llm/routing.py +0 -0
- {react_agent_harness-0.12.0 → react_agent_harness-0.13.0}/harness/model_switching.py +0 -0
- {react_agent_harness-0.12.0 → react_agent_harness-0.13.0}/harness/oauth_browser.py +0 -0
- {react_agent_harness-0.12.0 → react_agent_harness-0.13.0}/harness/otel.py +0 -0
- {react_agent_harness-0.12.0 → react_agent_harness-0.13.0}/harness/persistent.py +0 -0
- {react_agent_harness-0.12.0 → react_agent_harness-0.13.0}/harness/persistent_completion.py +0 -0
- {react_agent_harness-0.12.0 → react_agent_harness-0.13.0}/harness/persistent_controls.py +0 -0
- {react_agent_harness-0.12.0 → react_agent_harness-0.13.0}/harness/persistent_prompt.py +0 -0
- {react_agent_harness-0.12.0 → react_agent_harness-0.13.0}/harness/plan_mode.py +0 -0
- {react_agent_harness-0.12.0 → react_agent_harness-0.13.0}/harness/session_memory.py +0 -0
- {react_agent_harness-0.12.0 → react_agent_harness-0.13.0}/harness/skills.py +0 -0
- {react_agent_harness-0.12.0 → react_agent_harness-0.13.0}/harness/steering.py +0 -0
- {react_agent_harness-0.12.0 → react_agent_harness-0.13.0}/harness/streaming.py +0 -0
- {react_agent_harness-0.12.0 → react_agent_harness-0.13.0}/harness/tool_policy.py +0 -0
- {react_agent_harness-0.12.0 → react_agent_harness-0.13.0}/harness/trace.py +0 -0
- {react_agent_harness-0.12.0 → react_agent_harness-0.13.0}/harness/trace_viewer.py +0 -0
- {react_agent_harness-0.12.0 → react_agent_harness-0.13.0}/harness/utils.py +0 -0
- {react_agent_harness-0.12.0 → react_agent_harness-0.13.0}/memory/__init__.py +0 -0
- {react_agent_harness-0.12.0 → react_agent_harness-0.13.0}/memory/episodic_lance.py +0 -0
- {react_agent_harness-0.12.0 → react_agent_harness-0.13.0}/memory/manager.py +0 -0
- {react_agent_harness-0.12.0 → react_agent_harness-0.13.0}/memory/redis_store.py +0 -0
- {react_agent_harness-0.12.0 → react_agent_harness-0.13.0}/memory/stores.py +0 -0
- {react_agent_harness-0.12.0 → react_agent_harness-0.13.0}/memory/working.py +0 -0
- {react_agent_harness-0.12.0 → react_agent_harness-0.13.0}/orchestrator/__init__.py +0 -0
- {react_agent_harness-0.12.0 → react_agent_harness-0.13.0}/react_agent_harness.egg-info/dependency_links.txt +0 -0
- {react_agent_harness-0.12.0 → react_agent_harness-0.13.0}/react_agent_harness.egg-info/entry_points.txt +0 -0
- {react_agent_harness-0.12.0 → react_agent_harness-0.13.0}/react_agent_harness.egg-info/requires.txt +0 -0
- {react_agent_harness-0.12.0 → react_agent_harness-0.13.0}/react_agent_harness.egg-info/top_level.txt +0 -0
- {react_agent_harness-0.12.0 → react_agent_harness-0.13.0}/setup.cfg +0 -0
- {react_agent_harness-0.12.0 → react_agent_harness-0.13.0}/tests/test_annotation.py +0 -0
- {react_agent_harness-0.12.0 → react_agent_harness-0.13.0}/tests/test_background_tasks.py +0 -0
- {react_agent_harness-0.12.0 → react_agent_harness-0.13.0}/tests/test_budget_guard.py +0 -0
- {react_agent_harness-0.12.0 → react_agent_harness-0.13.0}/tests/test_cancellation.py +0 -0
- {react_agent_harness-0.12.0 → react_agent_harness-0.13.0}/tests/test_cli.py +0 -0
- {react_agent_harness-0.12.0 → react_agent_harness-0.13.0}/tests/test_console_renderer.py +0 -0
- {react_agent_harness-0.12.0 → react_agent_harness-0.13.0}/tests/test_event_payloads.py +0 -0
- {react_agent_harness-0.12.0 → react_agent_harness-0.13.0}/tests/test_executor_bridge.py +0 -0
- {react_agent_harness-0.12.0 → react_agent_harness-0.13.0}/tests/test_fallback_llm.py +0 -0
- {react_agent_harness-0.12.0 → react_agent_harness-0.13.0}/tests/test_fan_in.py +0 -0
- {react_agent_harness-0.12.0 → react_agent_harness-0.13.0}/tests/test_hitl_banner.py +0 -0
- {react_agent_harness-0.12.0 → react_agent_harness-0.13.0}/tests/test_http_fetch.py +0 -0
- {react_agent_harness-0.12.0 → react_agent_harness-0.13.0}/tests/test_llm_auth.py +0 -0
- {react_agent_harness-0.12.0 → react_agent_harness-0.13.0}/tests/test_mcp_adapter.py +0 -0
- {react_agent_harness-0.12.0 → react_agent_harness-0.13.0}/tests/test_mcp_auth.py +0 -0
- {react_agent_harness-0.12.0 → react_agent_harness-0.13.0}/tests/test_mcp_streamable_http.py +0 -0
- {react_agent_harness-0.12.0 → react_agent_harness-0.13.0}/tests/test_memory.py +0 -0
- {react_agent_harness-0.12.0 → react_agent_harness-0.13.0}/tests/test_memory_reconciler.py +0 -0
- {react_agent_harness-0.12.0 → react_agent_harness-0.13.0}/tests/test_memory_touchpoints.py +0 -0
- {react_agent_harness-0.12.0 → react_agent_harness-0.13.0}/tests/test_model_switching.py +0 -0
- {react_agent_harness-0.12.0 → react_agent_harness-0.13.0}/tests/test_oauth_browser.py +0 -0
- {react_agent_harness-0.12.0 → react_agent_harness-0.13.0}/tests/test_orchestrator.py +0 -0
- {react_agent_harness-0.12.0 → react_agent_harness-0.13.0}/tests/test_otel.py +0 -0
- {react_agent_harness-0.12.0 → react_agent_harness-0.13.0}/tests/test_parse_action_json.py +0 -0
- {react_agent_harness-0.12.0 → react_agent_harness-0.13.0}/tests/test_persistent_agent.py +0 -0
- {react_agent_harness-0.12.0 → react_agent_harness-0.13.0}/tests/test_persistent_completion.py +0 -0
- {react_agent_harness-0.12.0 → react_agent_harness-0.13.0}/tests/test_persistent_controls.py +0 -0
- {react_agent_harness-0.12.0 → react_agent_harness-0.13.0}/tests/test_persistent_prompt.py +0 -0
- {react_agent_harness-0.12.0 → react_agent_harness-0.13.0}/tests/test_plan_approval.py +0 -0
- {react_agent_harness-0.12.0 → react_agent_harness-0.13.0}/tests/test_plan_mode.py +0 -0
- {react_agent_harness-0.12.0 → react_agent_harness-0.13.0}/tests/test_plan_mode_controller.py +0 -0
- {react_agent_harness-0.12.0 → react_agent_harness-0.13.0}/tests/test_redis_store.py +0 -0
- {react_agent_harness-0.12.0 → react_agent_harness-0.13.0}/tests/test_routing_llm.py +0 -0
- {react_agent_harness-0.12.0 → react_agent_harness-0.13.0}/tests/test_session_memory.py +0 -0
- {react_agent_harness-0.12.0 → react_agent_harness-0.13.0}/tests/test_skills.py +0 -0
- {react_agent_harness-0.12.0 → react_agent_harness-0.13.0}/tests/test_steering.py +0 -0
- {react_agent_harness-0.12.0 → react_agent_harness-0.13.0}/tests/test_streaming.py +0 -0
- {react_agent_harness-0.12.0 → react_agent_harness-0.13.0}/tests/test_system_prompt_routing.py +0 -0
- {react_agent_harness-0.12.0 → react_agent_harness-0.13.0}/tests/test_tool_policy.py +0 -0
- {react_agent_harness-0.12.0 → react_agent_harness-0.13.0}/tests/test_trace.py +0 -0
- {react_agent_harness-0.12.0 → react_agent_harness-0.13.0}/tests/test_trailing_assistant_state.py +0 -0
- {react_agent_harness-0.12.0 → react_agent_harness-0.13.0}/tests/test_utils.py +0 -0
- {react_agent_harness-0.12.0 → react_agent_harness-0.13.0}/tests/test_vision.py +0 -0
- {react_agent_harness-0.12.0 → react_agent_harness-0.13.0}/tests/test_working_memory.py +0 -0
- {react_agent_harness-0.12.0 → react_agent_harness-0.13.0}/tools/__init__.py +0 -0
- {react_agent_harness-0.12.0 → react_agent_harness-0.13.0}/tools/builtin/__init__.py +0 -0
- {react_agent_harness-0.12.0 → react_agent_harness-0.13.0}/tools/builtin/background.py +0 -0
- {react_agent_harness-0.12.0 → react_agent_harness-0.13.0}/tools/builtin/fetch_image.py +0 -0
- {react_agent_harness-0.12.0 → react_agent_harness-0.13.0}/tools/builtin/http_fetch.py +0 -0
- {react_agent_harness-0.12.0 → react_agent_harness-0.13.0}/tools/mcp/__init__.py +0 -0
- {react_agent_harness-0.12.0 → react_agent_harness-0.13.0}/tools/mcp/adapter.py +0 -0
- {react_agent_harness-0.12.0 → react_agent_harness-0.13.0}/tools/mcp/auth.py +0 -0
{react_agent_harness-0.12.0/react_agent_harness.egg-info → react_agent_harness-0.13.0}/PKG-INFO
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: react-agent-harness
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.13.0
|
|
4
4
|
Summary: Multi-agent LLM orchestration: hybrid DAG planning, two-tier memory, streaming, cost/token budgets with per-call-site breakdown
|
|
5
5
|
Requires-Python: >=3.10
|
|
6
6
|
License-File: LICENSE
|
|
@@ -52,6 +52,7 @@ harness/tool_policy.py Persistent tool policy — user-scoped allow rules,
|
|
|
52
52
|
harness/console.py ConsoleRenderer — centralised BusEvent formatting + render_budget helper
|
|
53
53
|
harness/steering.py Async steering — agent.steer(text), StdinRouter pub/sub, FileSteer, factory helpers
|
|
54
54
|
harness/checkpoint.py CheckpointStore + _ResumeHint + maybe_resume_key — pluggable run-state persistence (file + Redis); auto-resume built into dispatch_stream / run_stream
|
|
55
|
+
harness/runstate.py RunState / OrchestratorState — the explicit, serializable position of a run: step + phase, per-action and per-task status, budget, failure reason
|
|
55
56
|
harness/otel.py OTELHook — OpenTelemetry span exporter (opt-in)
|
|
56
57
|
harness/executor_bridge.py ExecutorBridge + ExecutorTool — controlled subprocess launcher with optional Docker sandboxing
|
|
57
58
|
harness/oauth_browser.py Localhost OAuth callback server + open_or_print_url — shared by MCP browser-OAuth and LLM login flows
|
|
@@ -177,6 +178,25 @@ llm = OpenAILLM(model="gpt-4o-mini") # reads OPENAI_API_KEY from
|
|
|
177
178
|
runtime = AgentRuntime(..., llm=llm)
|
|
178
179
|
```
|
|
179
180
|
|
|
181
|
+
Reasoning effort can be set once on an adapter, or overridden for one agent:
|
|
182
|
+
|
|
183
|
+
```python
|
|
184
|
+
llm = OpenAILLM(model="gpt-5", reasoning_effort="high")
|
|
185
|
+
|
|
186
|
+
researcher = AgentConfig(
|
|
187
|
+
agent_id="researcher",
|
|
188
|
+
role="deep research",
|
|
189
|
+
system_prompt="Research carefully.",
|
|
190
|
+
allowed_tools=["web_search"],
|
|
191
|
+
reasoning_effort="medium", # overrides the adapter default for this agent
|
|
192
|
+
)
|
|
193
|
+
```
|
|
194
|
+
|
|
195
|
+
The adapter includes the configured value on every provider request. OpenAI
|
|
196
|
+
supports `none`, `minimal`, `low`, `medium`, `high`, and `xhigh`; Anthropic
|
|
197
|
+
supports `low`, `medium`, `high`, `xhigh`, and `max` on compatible models.
|
|
198
|
+
Unsupported provider/value combinations fail before the request is sent.
|
|
199
|
+
|
|
180
200
|
Credential-backed adapters can also plug into the same contract. This is the
|
|
181
201
|
shape used for provider-specific subscription or OAuth flows without teaching
|
|
182
202
|
agents about auth:
|
|
@@ -1613,6 +1633,10 @@ agent-harness policy clear
|
|
|
1613
1633
|
**Wall-time budget** is suspended while waiting for input — human think-time
|
|
1614
1634
|
does not count against `max_wall_time_seconds`.
|
|
1615
1635
|
|
|
1636
|
+
**Gating does not depend on durability.** A tool listed in `hitl_tools` is
|
|
1637
|
+
always gated; with no checkpoint store configured you still get the prompt,
|
|
1638
|
+
you just don't get crash-resume.
|
|
1639
|
+
|
|
1616
1640
|
### Step-level checkpointing
|
|
1617
1641
|
|
|
1618
1642
|
Enable periodic crash-resume independent of HITL:
|
|
@@ -1635,16 +1659,42 @@ Each agent writes to its own key so orchestrated runs never overwrite each other
|
|
|
1635
1659
|
| Path | Checkpoint key | Stored at |
|
|
1636
1660
|
|---|---|---|
|
|
1637
1661
|
| Single-agent (`run_agent`, `run_routed`) | `<run_id>:<agent_id>` | `~/.agent-harness/checkpoints/<run_id>:<agent_id>.json` |
|
|
1638
|
-
| Orchestrated (`run`, `run_stream`) | `<run_id>` (orchestrator) + `<run_id>:<agent_id>` (each
|
|
1662
|
+
| Orchestrated (`run`, `run_stream`) | `<run_id>` (orchestrator) + `<run_id>:<task_id>:<agent_id>` (each task) | one file per task, one file for the orchestrator |
|
|
1663
|
+
|
|
1664
|
+
Orchestrated agent keys carry the **task id** because a plan may name the same
|
|
1665
|
+
agent for two tasks; keyed only by agent id, both would write to one file and
|
|
1666
|
+
overwrite each other.
|
|
1639
1667
|
|
|
1640
|
-
The orchestrator checkpoint stores the goal, the
|
|
1641
|
-
|
|
1642
|
-
|
|
1668
|
+
The orchestrator checkpoint stores the goal, the *current* plan (replanning
|
|
1669
|
+
replaces it), a `TaskState` per planned task, and the replan count. Per-task
|
|
1670
|
+
status — `pending / running / done / failed / skipped` plus a durable attempt
|
|
1671
|
+
counter — is what lets a task interrupted mid-flight resume from its agent's
|
|
1672
|
+
own position rather than restarting. It is written at each task transition and
|
|
1673
|
+
deleted on clean `DONE`.
|
|
1643
1674
|
|
|
1644
1675
|
### Crash / Ctrl-C resume
|
|
1645
1676
|
|
|
1646
|
-
|
|
1647
|
-
|
|
1677
|
+
A checkpoint is a `RunState` (`harness/runstate.py`): where the run is (`step`
|
|
1678
|
+
plus a `think / approve / act / observe` phase), the actions of the current
|
|
1679
|
+
step with per-action status, the full `WorkingMemory`, the budget so far, and —
|
|
1680
|
+
if it failed — why. It is written before every HITL prompt and (if
|
|
1681
|
+
`checkpoint_every > 0`) at each periodic step.
|
|
1682
|
+
|
|
1683
|
+
Resuming is not a separate code path: the loop loads the state and keeps
|
|
1684
|
+
advancing it, so a run that died partway through a batch of approvals comes
|
|
1685
|
+
back knowing which calls were already approved and which tools already ran.
|
|
1686
|
+
|
|
1687
|
+
Recorded spending is restored, so a resumed run cannot start its budget over.
|
|
1688
|
+
The exception is a run that failed *because* of the budget — restoring the
|
|
1689
|
+
guard that just tripped would fail again at the same point, so the raised
|
|
1690
|
+
`GuardrailConfig` is allowed to take effect instead.
|
|
1691
|
+
|
|
1692
|
+
> **Checkpoints from before 0.13 cannot be resumed.** They predate per-action
|
|
1693
|
+
> and per-task status, so there is no honest way to reconstruct where such a
|
|
1694
|
+
> run actually was; `runtime.resume()` raises `LegacyCheckpointError` rather
|
|
1695
|
+
> than guessing. Checkpoints are short-lived by design —
|
|
1696
|
+
> `FileCheckpointStore.purge_old` defaults to 7 days, `RedisCheckpointStore`
|
|
1697
|
+
> expires after 24h.
|
|
1648
1698
|
|
|
1649
1699
|
**What the banner prints:**
|
|
1650
1700
|
|
|
@@ -1820,3 +1870,4 @@ agents alongside HITL on the shell tool.
|
|
|
1820
1870
|
| `hitl_tools` | `[]` | Tool names that require human approval before execution |
|
|
1821
1871
|
| `checkpoint_every` | `0` | Write a crash-resumable checkpoint every N steps; `0` disables periodic checkpoints |
|
|
1822
1872
|
| `stream_tokens` | `False` | Emit `TOKEN` events as the LLM streams. Disabled by default — enable if you want to render partial output in real time: `AgentConfig(..., stream_tokens=True)` |
|
|
1873
|
+
| `reasoning_effort` | `None` (adapter/provider default) | Per-agent reasoning depth override. Supported values depend on the provider; set it once on the LLM adapter to apply across all calls instead. |
|