惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Last Week in AI
Last Week in AI
D
DataBreaches.Net
腾讯CDC
Recent Announcements
Recent Announcements
有赞技术团队
有赞技术团队
A
About on SuperTechFans
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
Google DeepMind News
Google DeepMind News
Microsoft Security Blog
Microsoft Security Blog
云风的 BLOG
云风的 BLOG
罗磊的独立博客
月光博客
月光博客
MyScale Blog
MyScale Blog
U
Unit 42
Martin Fowler
Martin Fowler
Stack Overflow Blog
Stack Overflow Blog
T
Tailwind CSS Blog
Engineering at Meta
Engineering at Meta
N
Netflix TechBlog - Medium
G
Google Developers Blog
博客园 - 【当耐特】
D
Docker
I
InfoQ
雷峰网
雷峰网

Hacker News: Show HN

PurrrrrFocus: Pomodoro Timer App - App Store Workflow Engine — Multi-Step Orchestration for Bun RapidPhoto: Pro Photo Editor App - App Store GitHub - DheerG/swarms: Achieve extraordinary results with claude code across a variety of tasks SPICE simulation → oscilloscope → verification with Claude Code — Lucas Gerads Show HN: VCoding – A 5 MB native Windows IDE with no dynamic dependencies Show HN: LLMs don't hallucinate because they're bad at math, it's the format GitHub - Agent-FM/agentfm-core: AgentFM is a peer-to-peer network that turns everyday computers into a decentralized AI supercomputer. AgentFM lets you run massive AI workloads directly across a global mesh of idle CPUs and GPUs. Show HN: Tracking Top US Science Olympiad Alumni over Last 25 Years GitHub - Potarix/agent-hub: One place to talk to all your agents Show HN: Runtime security for AI agents(injection,tool abuse, data exfiltration) GitHub - dubeyKartikay/lazyspotify: Terminal Spotify client for macOS and Linux GitHub - the-banana-tool/king-louie: Easy to use GUI Personal AI Assistant. Win/Linux/Mac. Show HN I made my vacation rental bookable by AI agents–no Airbnb, 0% commission GitHub - basteez/jsf-autoreload: maven plugin to enable hot reload on jsf projects uvm32/hosts/host-gdbstub at main · ringtailsoftware/uvm32 GitHub - labsai/EDDI: Config-driven engine that turns JSON into production-grade AI agents. Multi-agent orchestration, 12+ LLM providers, MCP/A2A protocols, RAG, persistent memory, and enterprise compliance (EU AI Act, GDPR, HIPAA). Built on Quarkus. GitHub - glitchnsec/fortyone-oss: AI Executive Assistant Platform Quickstart | Alien GitHub - muxshed/shed: One stream in, or many. Every destination, simultaneously. No cloud middleman, no per-channel fees, no limits. GitHub - ocrbase-hq/ocrbase: 📄 PDF/IMG ->.MD/JSON Document OCR API for PaddleOCR and GLMOCR. Self-hostable. GitHub - impactjo/home-memory: MCP server that lets your AI assistant remember everything about your home. GitHub - Sets88/dbcls: DbCls is a powerful terminal database client that supports various databases GitHub - neptun2000/heor-agent-mcp GitHub - SeanFDZ/macmind: Single-layer transformer in HyperTalk for the classic Macintosh RollQuation: Math Puzzles - Apps on Google Play GitHub - dropbox/witchcraft Show HN: Agent-cache – Multi-tier LLM/tool/session caching for Valkey and Redis GitHub - opentalon/opentalon: OpenTalon is an open-source platform built from the ground up in Go as a robust alternative to OpenClaw LinkedIn™ 职位抓取工具 - Chrome 应用商店
GitHub - caudena/beam_weaver: From-scratch OTP-native Eli...
caudena · 2026-06-12 · via Hacker News: Show HN

BeamWeaver

ci

Build AI agents and durable LLM workflows in Elixir.

BeamWeaver brings the practical parts of LangChain, LangGraph, and Deep Agents to the BEAM: agents, tools, graph workflows, streaming, memory, persistence, retrieval, provider adapters, tracing, and production supervision.

It is not a Python wrapper. It is an Elixir library designed for applications that already rely on OTP, supervision trees, Ecto, telemetry, and explicit runtime boundaries.

BeamWeaver is not affiliated with LangChain.

Documentation: weavescope.gitbook.io/beam_weaver

What You Can Build

  • Customer support agents with tools, structured output, memory, and traceable model calls.
  • Durable multi-step workflows with graph state, checkpoints, retries, interrupts, time travel, and resumable execution.
  • Deep research and analysis agents with subagents, planning, virtual filesystems, skills, summarization, and sandboxed tool execution.
  • Retrieval pipelines with document loading, splitting, embeddings, vector stores, record managers, and incremental indexing.
  • Production LLM services with provider fallback, rate limits, redaction, telemetry, event streams, and WeaveScope tracing.

Core Capabilities

Capability What BeamWeaver Provides
Agents Module-defined agents and runtime-built agents with tools, middleware, structured output, memory, and HITL interrupts.
Graph workflows LangGraph-style state graphs with reducers, commands, subgraphs, checkpoints, pending writes, and durable execution.
Deep agents Planning tools, TODO state, virtual filesystems, skills, subagents, async subagents, context engineering, and summarization.
Models Provider adapters, model profiles, parameter validation, streaming, structured output, token usage, and cost metadata.
Tools Typed tools, injected runtime arguments, tool nodes, tool middleware, shell/filesystem tools, and tool-call tracing.
Retrieval Document loaders, text splitters, embeddings, vector stores, retrievers, record managers, and indexing flows.
Persistence ETS and Ecto-backed memory, checkpoints, caches, record managers, and vector stores.
Observability Local run trees, typed event streams, telemetry, redaction, and native WeaveScope export.

Supported Providers And Models

BeamWeaver ships checked-in model profiles for current provider families and permissive fallback profiles for future compatible IDs. Use explicit provider prefixes when a model name is ambiguous.

Provider Supported examples
OpenAI openai:gpt-5.5, openai:gpt-5.5-pro, openai:gpt-5.4, openai:gpt-5.4-mini, openai:gpt-5, openai:gpt-4.1, openai:text-embedding-3-large, openai:text-embedding-3-small
Anthropic anthropic:claude-opus-4-8, anthropic:claude-opus-4-7, anthropic:claude-opus-4-6, anthropic:claude-opus-4-5, anthropic:claude-sonnet-4-6, anthropic:claude-sonnet-4-5, anthropic:claude-haiku-4-5, anthropic:claude-fable-5, anthropic:claude-mythos-5
Google Gemini google:gemini-3.5-flash, google:gemini-3.1-pro-preview
Moonshot/Kimi moonshot:kimi-k2.6
xAI xai:grok-4.3, xai:grok-4.20-0309-reasoning, xai:grok-4.20-0309-non-reasoning, xai:grok-4.20-multi-agent-0309, xai:grok-build-0.1, xai:v1 embeddings
Test models Fake chat and embedding models, plus replay transports for deterministic provider tests.

Inspect the exact profile set in your checkout:

mix beam_weaver.models.profiles

Install

Add BeamWeaver to your application:

def deps do
  [
    {:beam_weaver, "~> 0.1.0"}
  ]
end

Configure only the providers you use:

config :beam_weaver,
  openai: [api_key: System.fetch_env!("OPENAI_API_KEY")],
  anthropic: [api_key: System.fetch_env!("ANTHROPIC_API_KEY")],
  google: [api_key: System.fetch_env!("GOOGLE_API_KEY")],
  xai: [api_key: System.fetch_env!("XAI_API_KEY")],
  moonshot: [api_key: System.fetch_env!("MOONSHOT_API_KEY")]

Quickstart

Start with the module DSL for application code. The DSL keeps the agent's model, prompt, tools, middleware, memory, and harness-style capabilities in one module, so a reader can see what the agent does without chasing a runtime options map. It also makes the common path much easier: adding planning, prompt caching, conversation compaction, overflow recovery, filesystems, or subagents is a declaration instead of custom orchestration code.

defmodule MyApp.Agents.SupportAgent do
  use BeamWeaver.Agent

  alias BeamWeaver.Agent.Middleware
  alias BeamWeaver.Core.Message

  name "support.reply"
  description "Answer customer support questions with account context."

  model "openai:gpt-5.4-mini", temperature: 0.2, timeout: 30_000
  system_prompt "Answer support questions clearly. Ask for missing details."

  # Agent harness capabilities are regular declarations.
  prompt_caching true
  compact_conversation true
  overflow_recovery true

  middleware do
    use Middleware.TodoList, tool_name: "write_todos"
    use Middleware.ToolCallNormalization
    use Middleware.StructuredOutputRetry, max_retries: 2
    use Middleware.ModelRetry, max_retries: 2, initial_delay: 100, retry_on: :transient
    use Middleware.ToolRetry, max_retries: 1, on_failure: :continue
    use Middleware.ToolCallLimit, run_limit: 8, exit_behavior: :end
    use Middleware.ToolSelection, deny: ["internal_admin_tool"]
    use Middleware.PII, detectors: [:email, :credit_card], strategy: :redact
  end

  def run(question, user) do
    __MODULE__.invoke(%{messages: [Message.user(question)]},
      trace: [
        name: "support.reply",
        user_id: user.id,
        execution_mode: "support_reply",
        fields: %{account_id: user.account_id}
      ]
    )
  end
end

Use BeamWeaver.Agent.build/1 when the agent shape is dynamic or generated from configuration:

defmodule MyApp.DynamicSupportAgent do
  alias BeamWeaver.Agent
  alias BeamWeaver.Core.Message

  def run(question, user) do
    model =
      BeamWeaver.Models.init_chat_model!("openai:gpt-5.4-mini",
        temperature: 0.2,
        timeout: 30_000
      )

    {:ok, agent} =
      Agent.build(
        name: "support.reply",
        model: model,
        system_prompt: "Answer support questions clearly."
      )

    Agent.invoke(agent, %{messages: [Message.user(question)]},
      trace: [
        name: "support.reply",
        user_id: user.id,
        execution_mode: "support_reply",
        fields: %{account_id: user.account_id}
      ]
    )
  end
end

Observability With WeaveScope

Tracing is local by default. Add WeaveScope credentials when you want run trees, model calls, tool calls, token usage, costs, errors, and custom fields in the WeaveScope UI. BeamWeaver automatically uses the queued WeaveScope exporter when both endpoint and api_key are configured.

config :beam_weaver,
  weave_scope: [
    endpoint: "https://app.weavescope.com",
    api_key: System.fetch_env!("WEAVESCOPE_API_KEY")
  ]

Use trace: on agent, graph, runnable, model, or tool calls to attach application identity such as user_id, thread_id, execution_mode, and indexed custom fields.

Documentation

Start here:

Core guides:

Provider guides: