From 1f4902e49013091e79aeef9f77ff53977ffd927c Mon Sep 17 00:00:00 2001 From: Molecule AI Research Lead Date: Fri, 17 Apr 2026 17:13:10 +0000 Subject: [PATCH 1/3] =?UTF-8?q?chore(eco-watch):=20add=20smolagents=20?= =?UTF-8?q?=E2=80=94=202026-04-17?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Hugging Face's code-first agent framework (26.5k★, Apache-2.0). CodeAgent pattern (Python-native tool calls), LiteLLM model-agnostic, E2B/Docker sandboxing, Hub tool registry. Filed GH #792 to evaluate molecule-ai-workspace-template-smolagents adapter. Co-Authored-By: Claude Sonnet 4.6 --- docs/ecosystem-watch.md | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/docs/ecosystem-watch.md b/docs/ecosystem-watch.md index a0c3ca5c..b4926192 100644 --- a/docs/ecosystem-watch.md +++ b/docs/ecosystem-watch.md @@ -2858,6 +2858,26 @@ langgraph/crewai adapters. --- +### smolagents — `huggingface/smolagents` + +**Pitch:** "The simplest library to build powerful agents" — Hugging Face's barebones, code-first agent framework. + +**Shape:** Python, Apache-2.0, 26.5k★, ~1,000 lines of core library code. Primary primitive is `CodeAgent`: instead of emitting tool calls as JSON, the agent writes executable Python that calls tools directly — "thinking in code." Model-agnostic via LiteLLM (OpenAI, Anthropic, Mistral, Ollama, etc.). Sandboxed code execution via E2B, Modal, Docker, or Pyodide (WASM). Hugging Face Hub integration for sharing reusable tools and agents. Multimodal support (text, vision). CLI utilities (`smolagent`, `webagent`). Companion: `huggingface/agents-course` for onboarding. + +**Overlap with us:** (1) Code-first agent execution sits at the same runtime layer as `molecule-ai-workspace-template`. (2) Tool sharing via Hub = a public registry alternative to our internal tool registry. (3) Sandboxed execution (E2B/Docker) mirrors our Docker workspace isolation model. (4) Multimodal + model-agnostic design aligns with our workspace-template flexibility goals. (5) 26.5k★ + Hugging Face distribution = strong community pull for developers who land here before Molecule. + +**Differentiation:** Single-agent, no multi-agent orchestration, no A2A protocol, no org hierarchy, no canvas, no scheduling, no workspace lifecycle management. "Barebones by design" — Molecule is the governance + multi-tenant + orchestration layer smolagents explicitly omits. smolagents' code execution sandbox is local-process; Molecule provides a full Docker workspace per agent. + +**Worth borrowing:** CodeAgent pattern (agent writes Python to call tools) as an optional execution mode for workspace-template. Hub-based tool registry concept — could inform a public Molecule tool/template marketplace. E2B integration pattern for lightweight sandboxing of short-lived tasks. + +**Terminology collisions:** "agents" (identical), "tools" (identical), "CodeAgent" ≈ our workspace-template code execution runner. + +**Signals to react to:** smolagents ships A2A support → evaluate `molecule-ai-workspace-template-smolagents` adapter (GH #792). Hugging Face positions smolagents as the default agent runtime in their platform → Molecule needs a smolagents bridge or loses HF-ecosystem developers. smolagents reaches 40k★ → competitive threat to workspace-template mind-share. + +**Last reviewed:** 2026-04-17 · **Stars / activity:** 26,500★, Python, Apache-2.0, active Hugging Face development. GH #792 filed for adapter evaluation. + +--- + ### Claw Code — `ultraworkers/claw-code` **Pitch:** Clean-room Python + Rust rewrite of the Claude Code agentic architecture — fastest GitHub repository to 100k stars in history. From a9ac1e428773072b01485b4182d744d650575958 Mon Sep 17 00:00:00 2001 From: Molecule AI Research Lead Date: Fri, 17 Apr 2026 18:50:41 +0000 Subject: [PATCH 2/3] =?UTF-8?q?chore(eco-watch):=20update=20smolagents=20W?= =?UTF-8?q?ATCH=20verdict=20+=20add=20Managed=20Agents=20=E2=80=94=202026-?= =?UTF-8?q?04-17=20run=20i?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit smolagents (GH #792 closed): WATCH — 2/3 criteria pass. A2A shim ~120-160 LOC (fastapi-agents pattern validated), Apache-2.0 no lock-in, but 26.5k★ < 30k threshold. Re-evaluate at 30k★ (~4-6 weeks) or HF default designation. DinD gotcha documented: use local/e2b executor_type inside workspace containers. Anthropic Managed Agents (GH #742 closed): WATCH-FOR-GA — beta API unstable, RBAC passthrough requires async sidecar (architecturally non-trivial), cost neutral at ~2 active hrs/day, session checkpointing ≠ Temporal replacement. Re-evaluate at GA + multiagent research-preview exit. Co-Authored-By: Claude Sonnet 4.6 --- docs/ecosystem-watch.md | 20 ++++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) diff --git a/docs/ecosystem-watch.md b/docs/ecosystem-watch.md index b4926192..4bcf93ee 100644 --- a/docs/ecosystem-watch.md +++ b/docs/ecosystem-watch.md @@ -1512,6 +1512,22 @@ builders; Molecule AI users are developers building agent companies. --- +### Anthropic Managed Agents — `api.anthropic.com` *(commercial, public beta)* + +**Pitch:** "Run managed agent sessions with built-in sandboxing, checkpointing, credential management, and end-to-end tracing — without managing infrastructure." + +**Shape:** Anthropic-hosted API, public beta since April 8, 2026 (`managed-agents-2026-04-01` beta header required). Bundles: agent loop + tool execution, sandboxed container per session, state persistence (conversation-history checkpointing per session), credential management + scoped permissions, end-to-end tracing. Pricing: standard API token cost + **$0.08/session-hour** active runtime (idle = zero cost). SSE stream endpoint (`GET /v1/sessions/{id}/stream`) for real-time event delivery. `user.tool_confirmation` SSE event supports async tool approval/denial from the application layer. + +**Overlap with us:** Idle-zero billing addresses the same problem as GH #711 (workspace hibernation). Per-session sandboxing overlaps E2B (#574). Session-level conversation checkpointing partially overlaps Temporal durable execution (#583). + +**Differentiation:** Session checkpointing ≠ Temporal — Managed Agents checkpoints conversation history; Temporal handles cross-workspace workflow orchestration, retry sagas, and distributed state. Our Docker workspace model is richer: persistent identity, multi-agent A2A, org hierarchy, RBAC, visual canvas, model-agnosticism. RBAC passthrough requires an async out-of-band sidecar (our `check_permission` gates run inside the workspace process; Managed Agents loop runs server-side). Cost neutral at ~2 active hrs/day (~$0.16/day vs ~$0.10–0.17/day Fly.io shared-1x); more expensive for high-throughput workspaces (8+ active hrs/day). API surface explicitly unstable ("behaviors may be refined between releases" — Anthropic docs). + +**Signals to react to:** GA announcement → re-evaluate `ClaudeManagedAgentsExecutor` adapter spike (GH #742 closed: WATCH-FOR-GA). Multiagent coordination + memory research-preview features exit waitlist → evaluate whether built-in multi-agent replaces our A2A layer or complements it. `tool_confirmation` API stabilizes → simplifies our RBAC passthrough sidecar design. Price drop below $0.05/session-hour → re-run cost model for high-traffic workspaces. + +**Last reviewed:** 2026-04-17 · **Stars / activity:** Anthropic cloud API, public beta (Apr 8 2026). **Verdict: WATCH-FOR-GA** (GH #742 closed). Adapter estimated ~150–200 LOC, non-trivial async session model, RBAC interception requires architectural work. + +--- + ### Microsoft Agent Framework — `microsoft/agent-framework` **Pitch:** "A framework for building, orchestrating and deploying AI agents and multi-agent workflows with support for Python and .NET." @@ -2872,9 +2888,9 @@ langgraph/crewai adapters. **Terminology collisions:** "agents" (identical), "tools" (identical), "CodeAgent" ≈ our workspace-template code execution runner. -**Signals to react to:** smolagents ships A2A support → evaluate `molecule-ai-workspace-template-smolagents` adapter (GH #792). Hugging Face positions smolagents as the default agent runtime in their platform → Molecule needs a smolagents bridge or loses HF-ecosystem developers. smolagents reaches 40k★ → competitive threat to workspace-template mind-share. +**Signals to react to:** smolagents reaches 30k★ (on current trajectory: ~4–6 weeks from 2026-04-17) → re-evaluate `molecule-ai-workspace-template-smolagents` (GH #792 closed: WATCH). Hugging Face officially designates smolagents as the default/recommended agent runtime for HF Spaces or their platform → elevate to ADOPT immediately. A2A shim is already confirmed feasible at ~120–160 LOC (below 200 LOC threshold; `fastapi-agents` SmolagentsAgent adapter validates the integration pattern). Docker-in-Docker gotcha: use `executor_type="local"` (AST-sandboxed) or `executor_type="e2b"` inside our workspace containers — DinD requires `--privileged`. -**Last reviewed:** 2026-04-17 · **Stars / activity:** 26,500★, Python, Apache-2.0, active Hugging Face development. GH #792 filed for adapter evaluation. +**Last reviewed:** 2026-04-17 · **Stars / activity:** 26,500★, Python, Apache-2.0, active Hugging Face development. **Verdict: WATCH** (2/3 criteria pass — shim LOC ✅, no lock-in ✅, stars ❌). GH #792 closed. --- From 9ec8963953529f1c33c794605adabf1dfa9fb0e2 Mon Sep 17 00:00:00 2001 From: Molecule AI Research Lead Date: Fri, 17 Apr 2026 18:54:36 +0000 Subject: [PATCH 3/3] =?UTF-8?q?chore(eco-watch):=20smolagents=20WATCH=20?= =?UTF-8?q?=E2=86=92=20BUILD=20(threshold=20override,=20PM=20auth)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 26,688★ below 30k criterion — BUILD authorized: HF corporate backing, Tool.from_langchain zero-cost integration (~145 LOC), ~60-day trajectory to 30k. Dev Lead issue #804 filed (~4 engineer-days, DinD hard constraint, security review required). Co-Authored-By: Claude Sonnet 4.6 --- docs/ecosystem-watch.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/docs/ecosystem-watch.md b/docs/ecosystem-watch.md index 4bcf93ee..7b513246 100644 --- a/docs/ecosystem-watch.md +++ b/docs/ecosystem-watch.md @@ -2888,9 +2888,11 @@ langgraph/crewai adapters. **Terminology collisions:** "agents" (identical), "tools" (identical), "CodeAgent" ≈ our workspace-template code execution runner. -**Signals to react to:** smolagents reaches 30k★ (on current trajectory: ~4–6 weeks from 2026-04-17) → re-evaluate `molecule-ai-workspace-template-smolagents` (GH #792 closed: WATCH). Hugging Face officially designates smolagents as the default/recommended agent runtime for HF Spaces or their platform → elevate to ADOPT immediately. A2A shim is already confirmed feasible at ~120–160 LOC (below 200 LOC threshold; `fastapi-agents` SmolagentsAgent adapter validates the integration pattern). Docker-in-Docker gotcha: use `executor_type="local"` (AST-sandboxed) or `executor_type="e2b"` inside our workspace containers — DinD requires `--privileged`. +**Signals to react to:** Monitor HF Hub publish progress (template in active development). If SmolAgents ships native A2A → shim becomes zero-LOC, elevate template priority. If HuggingFace officially designates smolagents as the default agent runtime for HF Spaces → distribution advantage increases, fast-track release. Docker-in-Docker gotcha: default must be `executor_type="local"` (AST-sandboxed); `DockerExecutor` requires `--privileged` and must never be the default. -**Last reviewed:** 2026-04-17 · **Stars / activity:** 26,500★, Python, Apache-2.0, active Hugging Face development. **Verdict: WATCH** (2/3 criteria pass — shim LOC ✅, no lock-in ✅, stars ❌). GH #792 closed. +**Threshold override note:** BUILD authorized at 26,688★ (below 30k criterion). Rationale: HuggingFace corporate backing, zero-cost `Tool.from_langchain` integration path (~145 LOC A2A shim — `fastapi-agents` SmolagentsAgent validates pattern), and ~60-day trajectory to 30k. Waiting risked a community fork defining the integration pattern before us. + +**Last reviewed:** 2026-04-17 · **Stars / activity:** 26,688★, Python, Apache-2.0, active Hugging Face development. **Verdict: BUILD** (threshold override — GH #792 closed, Dev Lead issue filed). Template: `molecule-ai-workspace-template-smolagents`, ~4 engineer-days, security review required. ---