[{"content":"","date":null,"permalink":"https://beato.app/blog/tags/ai/","section":"Tags","summary":"","title":"AI"},{"content":"","date":null,"permalink":"https://beato.app/blog/posts/","section":"All Articles","summary":"","title":"All Articles"},{"content":"Explore how AI agents, MCP, and developer tools fit into real projects, and how to choose vector databases, API gateways, and development frameworks.\n","date":null,"permalink":"https://beato.app/blog/","section":"Beato Engineering Blog","summary":"\u003cp\u003eExplore how AI agents, MCP, and developer tools fit into real projects, and how to choose vector databases, API gateways, and development frameworks.\u003c/p\u003e","title":"Beato Engineering Blog"},{"content":"The core conclusion comes first: There is no absolute advantage or disadvantage among these three. The core of selection is not to compare \u0026ldquo;who has a higher performance score\u0026rdquo;, but to determine whether your data scale will overwhelm the single-machine architecture in the foreseeable future, and whether your team is willing to pay the corresponding operation and maintenance price for distributed capabilities. At a scale of 100 million vectors, the Recall gap between the three is only between 0.988–0.991; what really widens the gap is the operation and maintenance complexity, expansion limit and functional focus brought by architecture selection.\n1. Actual measurement of performance and resources under the same benchmark #Let’s look at the hard data first. The following results are from a 2026 public benchmark at 100 million vectors, 1536 dimensions, HNSW index uniformity:\nindicator Qdrant Milvus Weaviate Recall@10 0.991 (highest) 0.988 0.989 QPS 4,200 4,600 5,100 (maximum) P99 delay 12 ms 11 ms 9 ms (minimum) Cost per million queries $0.18 (minimum) $0.21 $0.24 But if the scale is reduced to 100,000 vectors, the difference will become even sharper. This set of data can better reflect the real experience in the initial stage of small and medium-sized scale:\nindicator (100,000 vectors) Qdrant Milvus Weaviate default recall rate 99.3% 94.8% (lowest) 99.3% Median search delay 7.2 ms 8.6 ms 4.9 ms index peak memory 984 MB 2,556 MB ~1,243 MB Start ready time 5 seconds 35 seconds 6 seconds This set of data reveals a key fact:The default configuration of Milvus is not the optimal solution at small and medium scale. Its AUTOINDEX gives the lowest default recall of the three (94.8%) at the 100,000 vector level, and the index memory consumption is 2.6 times that of Qdrant. Milvus is designed to target billion-level distributed scenarios. It requires manual tuning to release its true capabilities at small and medium scales, rather than \u0026ldquo;out of the box\u0026rdquo;.\nNote: Vector database performance is highly dependent on test size, index type, hardware configuration, and recall goals. The table above should focus on relative trends rather than precise numbers.\n2. Architectural differences: This is the real watershed in model selection #The architectures of the three are fundamentally different, which directly determines the operation and maintenance costs and expansion paths.\nMilvus: distributed first, born for \u0026ldquo;big\u0026rdquo; #Milvus\u0026rsquo;s architecture includes multiple microservice roles such as Proxy, QueryCoord, DataCoord, QueryNode, DataNode, IndexNode, etc. It relies on external components such as etcd, MinIO, and Pulsar. The production environment usually requires Kubernetes orchestration. Its advantage is that storage and calculation are separated, query nodes and storage layers can be expanded independently, and billions of vectors can be supported.\nThe price is: a minimal cluster must manage multiple roles and dependent components at the same time, and the troubleshooting cost is an order of magnitude higher than the other two. Alibaba Cloud documentation clearly states that building a self-built Milvus cluster \u0026ldquo;requires a professional team of Milvus engineers and has high labor costs.\u0026rdquo;\nQdrant: Rust monolith, born for \u0026ldquo;simple\u0026rdquo; and \u0026ldquo;fast\u0026rdquo; #Qdrant is a single process written in Rust. The bottom layer uses RocksDB/memory and can be run by a single Docker container. Its operation and maintenance burden is significantly lower than Milvus: deployment is simple, stand-alone performance is extremely strong, and expansion from stand-alone to small clusters is relatively smooth.\nBut please note: Qdrant\u0026rsquo;s distributed cluster mode is newer than Milvus\u0026rsquo;s distributed architecture, and Milvus is still a stronger choice at a billion-level scale; the community version of open source did not support complete distributed capabilities in the early days, and multi-node expansion usually requires Qdrant Cloud or self-handling.\nWeaviate: Single machine priority, hybrid search is the difference #Weaviate is also single-machine first, with built-in inverted index (BM25) and HNSW index, and is persisted to object storage. Its core differentiator is not in distributed scale, but in making hybrid search (keywords + vectors) a first-class citizen.\nIf your scenario requires taking advantage of both BM25’s precise keyword matching and vector semantic retrieval, Weaviate has the highest level of built-in integration. But in terms of operation and maintenance complexity, it is between Milvus and Qdrant: simpler than Milvus, but not as lightweight as Qdrant\u0026rsquo;s \u0026ldquo;single container ready to run\u0026rdquo;.\n3. Filtering and hybrid search: details determine scene adaptation #Qdrant’s filtering ability is its hidden trump card #Qdrant introduces the ACORN mechanism to deal with the dilemma of \u0026ldquo;highly selective filtering + vector search\u0026rdquo;. The recall of ordinary HNSW drops sharply when the filtering conditions are too strict, while ACORN recovers the recall by skipping filtered neighbors when searching, at the cost of increased latency (about 2.1–2.9 times that of ordinary graphs).\nOfficial data shows that ACORN can maintain a recall rate of 99.9%–100% on four types of filters under a specific strategy. If \u0026ldquo;filter by tag/time/category first, then do vector similarity\u0026rdquo; is the norm in your business, Qdrant\u0026rsquo;s filter-aware design is more straightforward than the other two.\nWeaviate\u0026rsquo;s hybrid search is the most \u0026ldquo;out of the box\u0026rdquo;, but the keyword arm isn\u0026rsquo;t always the strongest #Weaviate natively integrates BM25, and hybrid search can improve recall by 12–18% on domain corpus compared with pure vector search. However, in third-party benchmarks, Weaviate\u0026rsquo;s keyword arm score (0.782) is lower than some competing products, which means that its hybrid search advantage is more reflected in the convenience of integration rather than the absolute performance of each sub-module.\nIf you need \u0026ldquo;to handle both full text and vectors in one system\u0026rdquo;, Weaviate is the easiest of the three; if you have extreme requirements for every aspect of hybrid search, additional evaluation may be required.\nMilvus has the widest functional coverage, but needs to be tuned #Milvus supports multiple indexes such as IVF, HNSW, DiskANN, etc., and also supports RRF hybrid retrieval, with no obvious shortcomings in functional dimensions. However, its default configuration has a low recall rate in small and medium-sized environments, which requires the team to understand the meaning of index parameters and query parameters and perform tuning. \u0026ldquo;The most versatile\u0026rdquo; and \u0026ldquo;out of the box\u0026rdquo; are two different things with Milvus.\n4. Selection decision-making framework: diversion according to data scale and team capabilities #Based on the above actual measurements and architectural differences, a clear decision tree can be used to converge the selection.\nThe first level of judgment: Will your vector scale exceed 100 million within 1–2 years, or even reach a billion level?\nYes, or it is clear that there is a billion-level plan→ Enter the evaluation track of Milvus. Its distributed architecture models the expansion path in large-scale scenarios, but you need to be prepared: dedicated Kubernetes/DB operation and maintenance capabilities, or accept the hosting costs of Zilliz Cloud. The recommendation of Tencent Cloud Architecture article is also \u0026ldquo;Large RAG (100 million level) → Milvus, reason: distributed capabilities\u0026rdquo;. No, the scale is between tens of millions and less than 50 million.→ Enter the choice between Qdrant and Weaviate. At this level, Qdrant and Weaviate in a single-machine/small cluster architecture are completely sufficient, and the distributed complexity introduced by Milvus is over-designed. The second level of judgment (between Qdrant and Weaviate): What is your main search mode?\nis mainly based on \u0026ldquo;vector retrieval with complex filtering\u0026rdquo; and is sensitive to tail delay→ Qdrant. Its Rust implementation brings the lowest median latency among the three (P99 12ms at the 100 million scale, the lowest memory usage at the 100,000 scale), and the ACORN mechanism allows it to have a special guarantee of recall in the \u0026ldquo;filter first and then search\u0026rdquo; scenario. The sweet spot is summarized as \u0026lt;50 million, filter-intensive loads. Hybrid search (BM25 + vector) is a rigid need. I hope that a system can serve both keyword and semantic retrieval→ Weaviate. Native BM25 integration and high recall out of the box (default 99.3%) make it the most worry-free in this dimension. But you need to accept that its memory consumption is usually higher than Qdrant, and it is not absolutely leading in the performance of very large keyword arms. A \u0026ldquo;third option\u0026rdquo; that is often ignored #If you are already using PostgreSQL and the scale does not exceed 50 million, the operation and maintenance cost advantage of pgvector may outweigh the performance advantage of a dedicated vector library. Using a dedicated vector engine means adding a new set of infrastructure that requires dedicated personnel; while pgvector reuses your existing backup, monitoring, and operation and maintenance systems, and its performance is completely acceptable on a small and medium scale.\n5. Final suggestions #If your data size is within 50 million vectors and there is no strong expectation of distributed expansion, give priority to choosing one of Qdrant (filtering intensive) or Weaviate (hybrid search intensive) for prototype verification.\nMilvus is the right long-term choice only when you confirm that the scale will break through the comfort zone of a single machine/small cluster, and the team is willing to bear the operation and maintenance costs for distributed capabilities. The most important judgment when selecting\nis not \u0026ldquo;which one is faster\u0026rdquo;, but \u0026ldquo;can I keep this system stable under my data volume in the next 18 months without introducing unbearable operation and maintenance burden?\u0026rdquo;\nreference project official website # Milvus：https://milvus.io Qdrant：https://qdrant.tech Weaviate：https://weaviate.io pgvector：https://github.com/pgvector/pgvector The performance data in this article are quoted from the public benchmark test in 2026. The actual performance is affected by the hardware, index parameters and query mode. It is recommended to conduct prototype verification on your own data before making the final decision.\nWritten by Jermine. View original text.\n","date":"29 October 2026","permalink":"https://beato.app/blog/posts/vector-database-selection-milvus-qdrant-weaviate-2026/","section":"All Articles","summary":"Compare Milvus, Qdrant, Weaviate, and pgvector by data size and team capabilities.","title":"Milvus vs. Qdrant vs. Weaviate: How to Choose a Vector Database in 2026"},{"content":"","date":null,"permalink":"https://beato.app/blog/tags/","section":"Tags","summary":"","title":"Tags"},{"content":"","date":null,"permalink":"https://beato.app/blog/tags/technology-selection/","section":"Tags","summary":"","title":"Technology Selection"},{"content":"","date":null,"permalink":"https://beato.app/blog/tags/vector-database/","section":"Tags","summary":"","title":"Vector Database"},{"content":"AI projects on GitHub are moving from \u0026ldquo;training larger models\u0026rdquo; to \u0026ldquo;making agents do their jobs more reliably.\u0026rdquo; The following 20 projects are organized by purpose: some are skills that can be directly installed into the Agent, some are running bases, and some are ready-to-use applications or development tools.\nThe star counts reflect the time of the original article and are for reference only; the activity, functions and dependencies of the open source project may continue to change. Before installing a third-party skill or running external code, you should read the repository description and check permissions.\n1. Skill installed into Agent #1. Archify #Convert system description or code repository into interactive architecture diagram. The generated web page supports clicking on nodes to view details, and you can also follow the request path to gradually understand complex projects.\nGitHub: tt-a1i/archify Suitable for: sorting out the project structure, explaining technical solutions, and getting familiar with the code base. 2. Ponytail #allows Agent to first search for existing implementations, standard libraries and platform capabilities before writing code, and only add code when there is no suitable solution, reducing reinvention and unnecessary complexity.\nGitHub: dietrichgebert/ponytail Ideal for: Everyday coding, refactoring, and code generation constraints. 3. i-have-adhd #Let AI give the conclusion and next step first, number the multi-step tasks, reduce lengthy foreshadowing, and make action items easier to discover.\nGitHub: ayghri/i-have-adhd Suitable for: programming Q\u0026amp;A, task breakdown and daily information processing. 4. SkillSpector #is used to scan Skill security risks, check for potential data transfer, hidden instructions and dangerous codes, and output the risk location and level.\nGitHub: nvidia/skillspector Suitable for: Security check before installing third-party skills. 5. Context Mode #Preprocess logs and large files in an isolated environment, and only deliver valuable results to the Agent to avoid a large amount of irrelevant content filling up the context.\nGitHub: mksglu/context-mode Suitable for: log analysis, large code bases and long text processing. 2. Base for Agent #6. Hindsight #provides long-term memory for the Agent. It can extract people, events, times and relationships from conversations and subsequently retrieve relevant context based on semantics.\nGitHub: vectorize-io/hindsight Suitable for: customer service, long-term collaboration and Agents that require persistent context. 7. Paperclip #manages multiple Agents through the panel and centrally views task goals, running status and costs, making multi-Agent collaboration easier to observe and control.\nGitHub: paperclipai/paperclip Suitable for: multi-agent task orchestration, cost management and operation monitoring. 8. Cua #provides an operational computer environment for Agent, allowing it to observe the screen, click on software and use browsers, adapting to traditional desktop software that lacks APIs.\nGitHub: trycua/cua Suitable for: desktop automation, office software operation and legacy system integration. 9. Treg #organizes external capabilities such as search, enterprise information query, image generation, and video generation into a discoverable and callable tool directory to reduce repeated docking.\nGitHub: superdesigndev/treg Suitable for: team sharing tools and unified external service access. 10. Worktrunk #creates independent working directories for different Agents to reduce mutual interference when multiple Agents modify the same code at the same time.\nGitHub: max-sixty/worktrunk Suitable for: parallel development, experimental branching and multi-Agent programming. 11. FreeLLMAPI #unifies the available quotas of multiple model services into one interface, and switches to other services when a certain service is limited, making it convenient for individuals to conduct model experiments.\nGitHub: tashfeenahmed/freellmapi Suitable for: prototype verification and personal experimentation. Free quota, availability and service terms may change and should not be used for formal business without evaluation. 3. Ready-to-use applications #12. Open Code Review #provides line-accurate review comments based on code changes and context, and can check new code, commit records, or branch differences.\nGitHub: alibaba/open-code-review Good for: Pre-commit checks, merge request reviews, and code quality assistance. 13. WeKnora #is a team-oriented knowledge base system that centralizes scattered documents for Q\u0026amp;A and retrieval, and supports organizing them into Wikis, suitable for deployment in local or private environments.\nGitHub: Tencent/WeKnora Suitable for: internal knowledge management, document retrieval and team Q\u0026amp;A. 14. Octop #supports multi-person and multi-Agent AI assistants, can connect to web pages, knowledge bases and external tools, and provides a team-oriented collaboration method.\nGitHub: TencentCloud/Octop Suitable for: team assistant, knowledge base Q\u0026amp;A and tool calling. 15. OpenMAIC #Generates AI courses including slides, quizzes and interactive sessions based on topics or materials, which can still be modified after generation.\nGitHub: THU-MAIC/OpenMAIC Suitable for: lesson preparation, training materials and interactive course production. 4. Fun and development #16. HyperFrames #produces videos through web code: HTML and animation are written by Agent, and then rendered into MP4, suitable for repeated preview and modification.\nGitHub: heygen-com/hyperframes Suitable for: product introductions, subtitle animations and programmatic videos. 17. Financial Services #is a collection of plug-ins for financial work that splits tasks such as industry research, financial report analysis, modeling and reconciliation into composable capabilities.\nGitHub: anthropics/financial-services Suitable for: financial research, analysis process and model assistance. 18. Knowledge Work Plugins #organizes work plug-ins according to positions such as sales, customer service, product managers, etc. to help users configure AI based on job tasks, and then make adjustments based on their own data and processes.\nGitHub: anthropics/knowledge-work-plugins Suitable for: job process automation and knowledge work assistance. 19. God\u0026rsquo;s Eye View #displays public data such as aircraft, ships, satellites, and earthquakes as a 3D globe in your browser, providing a visual experience for exploring the world in real time.\nGitHub: bilawalsidhu/gods-eye-view Suitable for: data visualization, geographical information exploration and interactive display. 20. GPUI Kit #is a component library for building desktop software interfaces using Rust, providing common components such as buttons, forms, tables, draggable panels, and code editors, and targeting macOS, Windows, and Linux.\nGitHub: longbridge/gpui-kit Suitable for: Rust desktop application and cross-platform interface development. How to choose #You don’t have to install all the projects at once, you can choose according to the problem:\nIf you want to make the Agent simpler and easier to execute: first look at i-have-adhd. often installs third-party Skills: first use SkillSpector to do a security check. Need to understand an unfamiliar code base: use Archify. Want to do programmatic video: try HyperFrames. Multiple Agents modify code in parallel: consider Worktrunk. Requires long-term memory: Evaluating Hindsight. Building your team\u0026rsquo;s knowledge base: Learn about WeKnora. Together, these projects reflect a trend: in addition to AI capabilities, developers are increasingly paying attention to context, memory, safety, cost, and observability. Whether an Agent is useful depends not only on the model itself, but also on the tool chain and constraints established around it.\nWritten by Jermine. View original text.\n","date":"28 October 2026","permalink":"https://beato.app/blog/posts/github-ai-open-source-projects/","section":"All Articles","summary":"Explore 20 open-source projects for agent skills, agent infrastructure, and developer workflows.","title":"20 Open-Source AI Projects to Explore on GitHub"},{"content":"","date":null,"permalink":"https://beato.app/blog/tags/agent/","section":"Tags","summary":"","title":"Agent"},{"content":"","date":null,"permalink":"https://beato.app/blog/tags/open-source/","section":"Tags","summary":"","title":"Open Source"},{"content":"This article is compiled from a complete discussion about Model Context Protocol (MCP), covering the core concepts of MCP, Go implementation, external release, natural language registration, remote serviceization, as well as the relationship and selection of MCP and Agent Skill.\n1. What is MCP: \u0026ldquo;USB-C port\u0026rdquo; for AI applications #Model Context Protocol (MCP) is an open protocol launched by Anthropic in November 2024 to standardize the integration method between large language models and external data sources and tools. It is often compared to the \u0026ldquo;USB-C port for AI applications\u0026rdquo;: just like USB-C unifies the connection methods of devices and accessories, MCP unifies the docking standards for AI models and external services.\nMCP is based on JSON-RPC 2.0 and defines a three-layer architecture:\nHosts: LLM application that initiates the connection, such as AI IDE, chat interface. Clients: Connector inside the Host, each Client maintains an independent session. Servers: Services that provide context and capabilities. They can be local processes or remote services. MCP Server exposes three types of core capabilities to clients:\nCapabilities Description Resources Context data that can be read by AI, such as file content and database records Prompts Predefined templated messages and workflows Tools Functions that can be called by the AI model, such as querying the database, calling API, reading and writing files In terms of transport layer, MCP supports:\nstdio: Standard input and output, suitable for local tools, zero network configuration. Streamable HTTP: Recommended remote transmission method, single HTTP endpoint, accepts POST, returns JSON or SSE stream. HTTP + SSE: Deprecated dual endpoint mode. MCP is inspired by the Language Server Protocol (LSP): LSP unifies the editor\u0026rsquo;s support for programming languages, and MCP unifies the integration of external tools and data by AI applications in a similar way.\n2. Use Go to implement the simplest MCP Server #The simplest way is to use MCP official Go SDK: github.com/modelcontextprotocol/go-sdk.\n2.1 Initialization project #mkdir mcp-demo \u0026amp;\u0026amp; cd mcp-demo go mod init mcp-demo go get github.com/modelcontextprotocol/go-sdk@latest 2.2 Writing server code #The following MCP server provides a tool that returns the current time:\npackage main import ( \u0026#34;context\u0026#34; \u0026#34;fmt\u0026#34; \u0026#34;time\u0026#34; \u0026#34;github.com/modelcontextprotocol/go-sdk/mcp\u0026#34; ) func main() { // 1. 创建 MCP 服务器实例 server := mcp.NewServer(\u0026#34;mcp-demo\u0026#34;, \u0026#34;1.0.0\u0026#34;) // 2. 注册 \u0026#34;getCurrentTime\u0026#34; 工具 server.AddTool(mcp.Tool{ Name: \u0026#34;getCurrentTime\u0026#34;, Description: \u0026#34;获取当前时间（支持时区参数）\u0026#34;, InputSchema: map[string]interface{}{ \u0026#34;type\u0026#34;: \u0026#34;object\u0026#34;, \u0026#34;properties\u0026#34;: map[string]interface{}{ \u0026#34;timezone\u0026#34;: map[string]interface{}{ \u0026#34;type\u0026#34;: \u0026#34;string\u0026#34;, \u0026#34;description\u0026#34;: \u0026#34;时区名称，如 \u0026#39;Asia/Shanghai\u0026#39;，默认为本地时区\u0026#34;, \u0026#34;default\u0026#34;: \u0026#34;Local\u0026#34;, }, }, \u0026#34;required\u0026#34;: []string{}, }, Handler: func(ctx context.Context, args map[string]interface{}) (interface{}, error) { tzName, _ := args[\u0026#34;timezone\u0026#34;].(string) loc := time.Local if tzName != \u0026#34;\u0026#34; \u0026amp;\u0026amp; tzName != \u0026#34;Local\u0026#34; { var err error loc, err = time.LoadLocation(tzName) if err != nil { return nil, fmt.Errorf(\u0026#34;无效时区: %v\u0026#34;, err) } } now := time.Now().In(loc).Format(\u0026#34;2006-01-02 15:04:05 MST\u0026#34;) return map[string]string{\u0026#34;time\u0026#34;: now}, nil }, }) // 3. 通过 stdio 启动服务器 if err := server.ServeStdio(); err != nil { fmt.Println(\u0026#34;服务器错误:\u0026#34;, err) } } is very straightforward:\nmcp.NewServer Create a server instance. AddTool Registration tool, including name, description, input JSON Schema and processing functions. ServeStdio communicates via standard input and output. 2.3 Running and testing #go run main.go After the server starts, it waits for JSON-RPC requests through stdin. You can send it manually:\n{\u0026#34;jsonrpc\u0026#34;:\u0026#34;2.0\u0026#34;,\u0026#34;id\u0026#34;:1,\u0026#34;method\u0026#34;:\u0026#34;tools/call\u0026#34;,\u0026#34;params\u0026#34;:{\u0026#34;name\u0026#34;:\u0026#34;getCurrentTime\u0026#34;,\u0026#34;arguments\u0026#34;:{\u0026#34;timezone\u0026#34;:\u0026#34;Asia/Shanghai\u0026#34;}}} When configuring MCP Server in VS Code, you can add in .vscode/mcp.json:\n{ \u0026#34;servers\u0026#34;: { \u0026#34;mcp-demo\u0026#34;: { \u0026#34;type\u0026#34;: \u0026#34;stdio\u0026#34;, \u0026#34;command\u0026#34;: \u0026#34;go\u0026#34;, \u0026#34;args\u0026#34;: [\u0026#34;run\u0026#34;, \u0026#34;main.go\u0026#34;] } } } 3. External release: Let users \u0026ldquo;download and use\u0026rdquo; #If you want users to download the binary files of the corresponding platforms and use them directly, the core idea is: cross-compile multi-platform binaries, host them through GitHub Releases, and then use a package manager or Bundle format to lower the installation threshold.\n3.1 Cross-compile multi-platform binaries #Cross-compilation of\nGo only requires setting GOOS and GOARCH. It is recommended to close CGO and generate pure static files:\n# Linux amd64 CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -ldflags \u0026#34;-s -w\u0026#34; -o mcp-demo-linux-amd64 # macOS Apple Silicon CGO_ENABLED=0 GOOS=darwin GOARCH=arm64 go build -ldflags \u0026#34;-s -w\u0026#34; -o mcp-demo-darwin-arm64 # Windows amd64 CGO_ENABLED=0 GOOS=windows GOARCH=amd64 go build -ldflags \u0026#34;-s -w\u0026#34; -o mcp-demo-windows-amd64.exe At a minimum, consider building for these platforms:\nplatform GOOS GOARCH Linux x64 linux amd64 Linux ARM64 linux arm64 macOS Intel darwin amd64 macOS Apple Silicon darwin arm64 Windows x64 windows amd64 3.2 Automated release with GoReleaser #Manual compilation and uploading one by one is prone to errors. It is recommended to use GoReleaser, which can complete multi-platform construction, packaging and archiving, generating checksums and uploading GitHub Releases with one command.\ninitialization:\ngoreleaser init Configure GitHub Actions: .github/workflows/release.yml\nname: Release on: push: tags: [\u0026#39;v*\u0026#39;] jobs: release: runs-on: ubuntu-latest permissions: contents: write steps: - uses: actions/checkout@v4 with: fetch-depth: 0 - uses: actions/setup-go@v5 with: go-version: \u0026#39;stable\u0026#39; - uses: goreleaser/goreleaser-action@v6 with: args: release --clean env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} Tag and push will automatically publish:\ngit tag v0.1.0 \u0026amp;\u0026amp; git push origin v0.1.0 3.3 Lowering the installation threshold: Package manager and Bundle format #With the GitHub Releases product, you can further access the distribution channel:\nHomebrew Tap: self-built tap warehouse, installed by user brew install with one command. Scoop / Winget (Windows), APT/YUM Warehouse(Linux): Select according to target user group. npm package: Even if the tool is written in Go, you can send an npm package and download the corresponding binary by platform during installation - this is the mode adopted by many CLI tools (such as esbuild). MCP Bundle (.mcpb): A packaging format introduced by Anthropic, which combines MCP Server and its dependencies into one file. Users can install it with one click in Claude Desktop. It is suitable for distribution to non-developer users. 4. Natural language registration: let AI install MCP by itself #As the MCP ecosystem matures, the gameplay of \u0026ldquo;using natural language to describe requirements → AI automatically finds and configures MCP Server\u0026rdquo; has emerged. Typical process:\nuser said in natural language in a client that supports MCP (such as Claude Code, Cursor): \u0026ldquo;Help me connect to an MCP tool that can check GitHub Issues.\u0026rdquo; Client/AI retrieves matching Server via MCP Registry (official registry) or community directory. AI generates configuration (stdio command or remote URL), writes mcp.json, and guides to complete OAuth authorization if necessary. After restarting the session, the new tool can be called by the model. To make your Server \u0026ldquo;searched\u0026rdquo; by natural language, the key is:\nSubmit Server metadata (name, description, transfer method, installation method) in MCP Registry. Description Write clearly what the tool does and what the parameters mean - the model relies on these descriptions to decide when to call it. Keep naming semantics and avoid meaningless abbreviations. 5. Remote service: Streamable HTTP #stdio mode requires the Server and the client to run on the same machine. When tools need to share status, access intranet data, or be used by multiple people, MCP Server needs to be deployed as a remote HTTP service.\n5.1 Go implements Streamable HTTP endpoint #official Go SDK provides Streamable HTTP transmission, just replace ServeStdio with HTTP handler:\nfunc main() { server := mcp.NewServer(\u0026#34;mcp-demo\u0026#34;, \u0026#34;1.0.0\u0026#34;) // ... 同前注册 Tool ... handler := mcp.NewStreamableHTTPHandler(func(r *http.Request) *mcp.Server { return server }, nil) http.Handle(\u0026#34;/mcp\u0026#34;, handler) log.Println(\u0026#34;MCP server listening on :8080/mcp\u0026#34;) log.Fatal(http.ListenAndServe(\u0026#34;:8080\u0026#34;, nil)) } client configuration:\n{ \u0026#34;servers\u0026#34;: { \u0026#34;mcp-demo\u0026#34;: { \u0026#34;type\u0026#34;: \u0026#34;http\u0026#34;, \u0026#34;url\u0026#34;: \u0026#34;https://mcp.example.com/mcp\u0026#34; } } } 5.2 Deployment Points # Authentication: MCP authorization is based on OAuth 2.1; public network deployment must be authenticated at the gateway layer, and streaking is not allowed. Session Management: Streamable HTTP maintains sessions through the Mcp-Session-Id header. When horizontally expanding, it is necessary to ensure that the same session is routed to the same instance or shared session state. SSE streaming response: If the tool execution takes a long time, the SSE stream can be returned. Note that the reverse proxy (Nginx, etc.) must turn off buffering. Deployment form: Single binary + systemd/container can be used; when deploying Kubernetes, it cooperates with HPA to expand and shrink according to the number of connections or CPU. 6. MCP and Agent Skill: Relationship and Selection #In addition to the\nMCP, Anthropic also launched the Agent Skills(SKILL.md format). The two are often compared, but their actual positioning is different:\nDimensions MCP Agent Skill Essence Tool/Data Access Protocol (JSON-RPC) command + script knowledge package (Markdown) running state independent process or remote service Files loaded on demand in the client is suitable for providing Dynamic capabilities: query database, adjust API, real-time data Static knowledge: workflow, domain specifications, operation manual integration cost needs to implement protocol and deployment services Just copy a directory Ecology cross-vendor open standard, wide client support is currently mainly used in Claude series clients Collaborative mode: The two are not competitive. A typical combination is - Skill teaches the Agent \u0026ldquo;how to do it\u0026rdquo; (process, specifications), and MCP provides \u0026ldquo;what to do it with\u0026rdquo; (tools, data). For example, an operation and maintenance troubleshooting skill defines troubleshooting steps, in which the \u0026ldquo;check log\u0026rdquo; step calls MCP\u0026rsquo;s log query tool.\nSelection suggestions:\nTo expose dynamic capabilities/private data to any client that supports MCP → Write MCP Server. needs to accumulate team process and domain knowledge, and is mainly used in the Claude ecosystem → write Skill. Complex Agent product → Use both, Skill orchestration process, MCP supply capability. 7. Summary #MCP changes the integration of \u0026ldquo;AI application ↔ external tools\u0026rdquo; from N×M private docking to N+M standard docking. The realistic path for individuals and teams is:\nuses dozens of lines of official Go SDK code to write a minimal Server, and stdio runs through local tools. GoReleaser + GitHub Releases complete multi-platform distribution and access the package manager or.mcpb on demand. Submits MCP Registry metadata to make the Server searchable and installable by natural language. When there is a need for sharing/intranet, switch to Streamable HTTP remote and do a good job in OAuth and session management. is combined with Agent Skill on demand: Skill manages knowledge and MCP manages abilities. From local stdio to remote services, from manual installation to natural language registration, the MCP ecosystem is rapidly completing the complete \u0026ldquo;release-discovery-use\u0026rdquo; link. The integration costs invested now will continue to be diluted in the future as client support becomes more popular.\nWritten by Jermine. View original text.\n","date":"20 October 2026","permalink":"https://beato.app/blog/posts/mcp-go-server-remote-publish-and-skill-integration/","section":"All Articles","summary":"Build a minimal MCP server in Go, deploy it remotely, distribute releases, and integrate agent skills.","title":"Build and Distribute an MCP Server in Go"},{"content":"","date":null,"permalink":"https://beato.app/blog/tags/go/","section":"Tags","summary":"","title":"Go"},{"content":"","date":null,"permalink":"https://beato.app/blog/tags/mcp/","section":"Tags","summary":"","title":"MCP"},{"content":"","date":null,"permalink":"https://beato.app/blog/tags/development-tools/","section":"Tags","summary":"","title":"Development Tools"},{"content":"","date":null,"permalink":"https://beato.app/blog/tags/skill/","section":"Tags","summary":"","title":"Skill"},{"content":" Agent Skill is not to \u0026ldquo;write a few more prompt words\u0026rdquo; for others, but to turn recurring work methods into callable steps. This article starts from an observation of the skills.sh list as of October 12, 2026, and disassembles ten Skills according to workflow: first discover capabilities, clarify solutions, check architecture and tests, then operate the interface, configure collaboration methods, and finally organize context and GitHub to-dos.\nThe number of installations and rankings in this article are the current data recorded in the source article and do not represent the current list; the installation commands are also retained as they are in the source article. Please review the Skill content and permission requirements before installation. This article is a reorganized independent introduction and does not contain links to third-party web pages.\nList phenomenon: seven Skills come from the same author #Of the ten skills in the original article, seven Skills come from Matt Pocock\u0026rsquo;s mattpocock/skills repository; the other three are from Vercel\u0026rsquo;s Skill search tool, Vercel\u0026rsquo;s browser operation tool, and Anthropic\u0026rsquo;s front-end design Skill. The repository had over 280,000 stars at the time.\nThe common point of this group of Skills is not that they are \u0026ldquo;universal\u0026rdquo;, but that they cover a continuous path of development work: find the right Skill and ask clearly about the requirements before starting work; leave the decision-making basis during implementation, check the architecture and insist on testing first; after completion, hand over the configuration, context and to-do to the next round of work.\nThe following installation volume is taken from the original article, and the statistical time point is October 12, 2026. The list will change, and the number of installs cannot be directly equated to quality.\nInstall first: command format and usage boundaries #Most commands in the original article use the skills CLI and are run temporarily through npx without having to install the CLI globally separately. Common writing methods are:\nnpx skills add \u0026lt;repository\u0026gt;/\u0026lt;skill\u0026gt;@\u0026lt;skill-name\u0026gt; These installation commands require Node.js on the computer. You can also give the repository address to AI coding tools such as Claude Code and Codex for installation. agent-browser uses a separate set of commands, see its entry.\nSkill may read project files, execute commands, access the browser, or submit comments. After installation, you should read its instructions first and try it out in a test repository or low-risk tasks; do not directly grant sensitive permissions just because it ranks high on the list.\n1. Discover and clarify needs first #1. find-skills: Find ready-made Skills by task #Source article data: 3.8 million installations, first on the list.\nIf you’re not sure whether there is a ready-made Skill available, you can describe the target and let find-skills search for candidates in skills.sh and help select and install it. Its role is more like the retrieval entrance of the Skill directory, which is suitable for the stage when the tool selection has not yet been determined.\nThe original text specifically reminds installation quality risks: Don’t just look at “whether it can be found”, but also pay attention to signals such as project source, maintenance status, and installation volume. The list data is just for screening clues, not a security audit.\nnpx skills add vercel-labs/skills@find-skills 2. grill-me: Ask about the plan before starting work #Source article data: 1.3 million installs.\nGive it a preliminary plan and it will ask clarifying questions in rounds: each round focuses on what needs to be answered at the moment and provides suggested options. For project fact-based questions, it can first check the code and files; questions involving trade-offs, priorities, or product decisions are left to the user for confirmation. Wait until the key decisions are clearly explained before starting to implement them.\nis suitable for situations where the requirements only have a general direction, the solution relies on multiple pending options, or you want to discover missed scenarios before coding.\nnpx skills add mattpocock/skills@grill-me 3. grill-with-docs: Leave decision records simultaneously when discussing plans #Source article data: 1.1 million installs.\nIt can be understood as the plan clarification process with project records: during the questioning process, a glossary is compiled, key decisions are written into decision records and stored in the project directory. In this way, when the team looks back later, they will not only know \u0026ldquo;what to do now\u0026rdquo;, but also \u0026ldquo;why they made the decision they did at that time\u0026rdquo;.\nThis type of recording is especially useful when design discussions affect subsequent implementation, when multiple members need to share terminology, or when decisions are easily lost in long-term projects.\nnpx skills add mattpocock/skills@grill-with-docs 2. Check the code and establish testing discipline #4. improve-codebase-architecture: Find architectural friction from code changes #Source article data: 1.1 million installs.\nThis Skill will start checking code areas that have recently been changed more frequently, looking for modules whose complexity has not resulted in clear benefits, and generate a web page report. The report will indicate the files involved, possible modifications, expected benefits, and priority of recommendations; the source article states that the report is written to a temporary directory and will not directly disrupt the project.\nIt is suitable for code bases that take a long time to maintain, where the boundaries of responsibilities are gradually blurred, or that are ready to be refactored but need to sort out evidence first. Reports are review input and should not be relied upon as automatically approved refactoring plans without human verification.\nnpx skills add mattpocock/skills@improve-codebase-architecture 5. tdd: Write failure tests first, then implement minimal changes #Source article data: 1.1 million installs.\nTDD Consolidate the test-driven development process into a small step cycle: first define and write the test that will fail, then write the implementation that just meets the behavior, and then continue to the next step. The source article emphasizes that you should confirm with users the behavior to be covered before starting; you cannot accept \u0026ldquo;self-verifying\u0026rdquo; tests that never fail and just repeatedly achieve the conclusion.\nis suitable for development tasks that want to implement functional boundaries into tests and reduce the risk of AI direct heap implementation code. Existing test systems and project agreements should still be followed first.\nnpx skills add mattpocock/skills@tdd 3. Complete the work at the browser and interface level #6. agent-browser: Let the agent operate the web page semantically #Source article data: 1.1 million installs by Vercel.\nin the original article is to first number the buttons, input boxes and other elements on the web page, and then let AI locate and operate according to the numbers, instead of guessing the coordinates based on screenshots. The original article also states that it can be used on web pages and desktop applications such as VS Code and Slack.\nThis type of tool is suitable for web page process automation, form entry and interface verification. Operations with side effects such as login, submission, and deletion still need to be confirmed based on task risk; remote browsers or cloud sessions should also avoid entering sensitive credentials.\nThis tool requires the installation of a standalone command line program:\nnpm i -g agent-browser \u0026amp;\u0026amp; agent-browser install 7. frontend-design: Determine the design direction first, and then generate the interface #Source article data: 980,000 installations, officially produced by Anthropic.\nIt targets the common template look and feel of AI pages: repeated use of similar color matching, rounded corners, shadows and animations. Before starting to implement the product, first clarify who the product is intended for and in what scenarios the user will use it, and then determine the appropriate visual language, color matching, and fonts, instead of applying the same style to all pages.\nis suitable for quickly creating product pages, prototypes and interface revisions. The final design still needs to be validated with brand specifications, accessibility, device dimensions and real user feedback.\nnpx skills add anthropics/skills@frontend-design 4. Configure collaboration methods and take care of long tasks #8. setup-matt-pocock-skills: One-time configuration engineering collaboration agreement #Source article data: 980,000 installs.\nThis is the initialization tool for Matt Pocock\u0026rsquo;s Engineering Skill Collection. The source article describes that it will ask about project conventions such as task record location, label naming method, document directory, etc., and provide recommended answers. After initialization is completed, other skills in the same set of tools can find tasks and records according to project agreements.\nis suitable for preparing new projects that use this Warehouse Engineering Skill in groups. If there are already team specifications, the current agreement should prevail and do not overwrite the project rules in order to adapt the tool.\nnpx skills add mattpocock/skills@setup-matt-pocock-skills 9. handoff: compress long conversations into executable handovers #Source article data: 970,000 installs.\nWhen the context becomes longer and the session needs to be changed or handed over to another agent, execute /handoff to generate a handover document and record the current progress so that subsequent work can continue from the existing state. The source article states that it mainly uses path references for existing files, does not duplicate the entire content, and masks sensitive information such as passwords and keys.\nGenerated documents should still be manually reviewed before handover: confirm that key decisions, outstanding items, and verification results are present, and that no credentials or private data have been compromised.\nnpx skills add mattpocock/skills@handoff 10. triage: Classify GitHub to-do items into priority #Source article data: 930,000 installs; the original article stated that it was ranked 11th at the time and had just been squeezed out of the top ten by a video skill.\nis for people who manage projects on GitHub. After executing /triage, it browses the backlog items, distinguishes them as defects or new requirements, and gives the possible responsible persons for processing. The source article states that it first checks for matters that have already been processed or previously rejected; generated comments are noted as being generated by AI.\nIt is suitable as a to-do sorting assistant and should not replace the maintainer in judging priorities, responsibility attribution, or external commitments. Check the content and permissions before writing a comment.\nnpx skills add mattpocock/skills@triage Combine according to workflow instead of loading all the lists #If you only want to experience three first, the source article recommends starting with find-skills, grill-me and handoff: respectively used to find suitable tools, clarify the plan before starting work, and long dialogue handover. They cover retrieval, decision-making, and context continuity and are less dependent on specific frameworks.\nDevelopment teams can combine these skills as needed:\nPlan review: grill-me; add grill-with-docs when decision-making is required. Refactoring preparation: improve-codebase-architecture First produce a list of issues, and then review and schedule them by the team. Implementation and verification: tdd helps maintain a test-first small-step loop. Front-end delivery: frontend-design is responsible for the design direction; choose agent-browser when there is a need for browser interaction verification. Cross-session collaboration: setup-matt-pocock-skills solidifies project conventions, handoff delivers stage progress, triage organizes GitHub to-dos. Installation Description and Conclusion #These numbers come from the source article\u0026rsquo;s recording of the list as of October 12, 2026. It also records that triage was ranked 11th with 930,000 installations at that time, so it was placed at the end of the ten introductions and specially stated. The number of installations will change over time, and this historical list cannot be regarded as a real-time ranking or quality guarantee.\nThis set of tools together shows a pragmatic path: ask clearly about the requirements, keep records of the plan, check the code and insist on testing, and then deal with the interface, handover and task queue. Whether a skill is useful ultimately depends on whether it improves your actual workflow; checking the permissions before installing and verifying the results when using it is often more important than installing a lot at once.\nWritten by Jermine. View original text.\n","date":"19 October 2026","permalink":"https://beato.app/blog/posts/skills-sh-top-skills/","section":"All Articles","summary":"\u003cblockquote\u003e\n\u003cp\u003eAgent Skill is not to \u0026ldquo;write a few more prompt words\u0026rdquo; for others, but to turn recurring work methods into callable steps. This article starts from an observation of the skills.sh list as of October 12, 2026, and disassembles ten Skills according to workflow: first discover capabilities, clarify solutions, check architecture and tests, then operate the interface, configure collaboration methods, and finally organize context and GitHub to-dos.\u003c/p\u003e\n\u003cp\u003eThe number of installations and rankings in this article are the current data recorded in the source article and do not represent the current list; the installation commands are also retained as they are in the source article. Please review the Skill content and permission requirements before installation. This article is a reorganized independent introduction and does not contain links to third-party web pages.\u003c/p\u003e\n\u003c/blockquote\u003e","title":"Ten Agent Skills for Clarifying Requirements, Testing, and Handing Off Work"},{"content":"","date":null,"permalink":"https://beato.app/blog/tags/herdr/","section":"Tags","summary":"","title":"Herdr"},{"content":"AI Coding Agent can already write code, run tests, modify configurations, and even call another Agent for code review. But when the number of Agents increases, new questions quickly arise: Which task has been completed? Which Agent is waiting for authorization? Which terminal is stuck? Can background tasks continue if I close my laptop?\nThe traditional approach is usually to open multiple terminal tabs, or use terminal multiplexers such as tmux and screen. They can solve the problem of \u0026ldquo;the process should not exit because the terminal is closed\u0026rdquo;, but they do not know which Agent is running in the terminal, and they cannot understand whether the Agent is currently working, waiting for input, or has completed.\nHerdr is positioned to complement this layer: it is not a new AI Agent, but a terminal workspace and runtime for Coding Agent. It is responsible for hosting the real terminal where the Agent is located, maintaining session persistence, identifying Agent status, and providing CLI and Socket API for collaboration between Agents.\nThis article is compiled based on Herdr’s public project data, focusing on its design ideas, and does not regard the project publicity data as independent performance test conclusions.\n1. Why tmux is not enough #tmux is still an excellent general-purpose terminal multiplexer, but its abstract objects are session, window, and pane, not AI Agent. This creates several specific problems.\n1. tmux does not know what is running in pane #From the perspective of tmux, there is no essential difference between running Claude Code, Codex, a normal shell, or a pane of test scripts. Users must remember the purpose of each pane by themselves, and cannot directly query \u0026ldquo;Which Agent needs me to process\u0026rdquo;.\n2. tmux cannot understand Agent status #\u0026ldquo;Whether there is output from the terminal\u0026rdquo; is not equal to \u0026ldquo;the current status of the Agent\u0026rdquo;. An Agent may be executing a task, or it may be paused on the permission confirmation, question inquiry, error prompt, or final result page. tmux can retain the screen contents, but does not convert these contents into an operable state.\n3. Lack of Agent collaboration semantics between panes #Let one Agent write the code and another Agent do the review. The traditional method is usually to manually copy the diff, switch pane, paste the context, and then copy the review results back. The terminal multiplexer provides multiple terminals, but does not provide an interface such as \u0026ldquo;start another Agent, send it a task, wait for it to complete, and read its results\u0026rdquo;.\n4. Manual inspection is still required after reconnection #tmux can allow processes to continue running after the client disconnects, but when reconnecting, users often have to check the pane one by one to know which tasks have completed, which tasks have failed, and which tasks are waiting for input. When the number of agents increases, this inspection itself becomes a new job.\nTherefore, the value of Herdr does not lie in reinventing terminal multiplexing, but in upgrading the state model of terminal multiplexers from \u0026ldquo;process and pane\u0026rdquo; to \u0026ldquo;project, agent and task\u0026rdquo;.\n2. The basic architecture of Herdr: backend server and terminal client #Herdr separates the background Server responsible for running tasks from the Client responsible for interaction:\nClient（终端 UI） \u0026lt;──连接──\u0026gt; Server（后台运行） ├── Workspace ├── Tab / Pane └── Agent / Process Client is just the interface that the user is currently connected to. When you close the terminal, disconnect from SSH, or leave temporarily, the background server continues to manage the workspace, pane, and processes within it. The user runs herdr again, the client reconnects, and the original layout and output are still visible.\nA basic session looks like this:\n# 在当前项目目录启动或连接 Herdr herdr # 使用 tmux 风格的前缀快捷键断开客户端 # 默认：Ctrl+B，然后 Q # 再次打开终端并重新连接 herdr This solves the most basic problem when the Agent is running:The user interface can disappear, but the task should not stop because the interface disappears.\nWhat needs to be distinguished is that \u0026ldquo;the client continues to run after it is disconnected\u0026rdquo; and \u0026ldquo;the original process continues to run after the machine is restarted\u0026rdquo; are not the same thing. Herdr\u0026rsquo;s public description mentions that it can save the session state and restore the layout after restarting; whether the original process can survive depends on whether the machine is restarted and whether the Agent supports recovery. Don\u0026rsquo;t understand this to mean that all process contexts can be saved unconditionally across machines and restarts.\n3. Agent status detection: turning \u0026ldquo;stuck\u0026rdquo; into a visible state #One of the core capabilities of Herdr is to mark the status of the Agent in the terminal. Common statuses in public profiles include:\nstatus meaning working Agent is performing a task blocked Agent is waiting for user input, authorization or confirmation idle Agent is currently idle, waiting for the next instruction done Agent has completed the current work and is waiting for the user to view unknown The status cannot be reliably determined at the moment. It does not simply judge the status by \u0026ldquo;whether there has been output recently\u0026rdquo;, but combines multiple signals:\nForeground process identification: Determine which supported Agent CLI is running in the pane; Screen mode matching: Read the bottom or recent content of the terminal and match the interface characteristics of the Agent; Status inference: Infer that the Agent is working, blocked or idle based on the prompt, waiting for confirmation interface and output changes. For example, when an Agent enters the permission confirmation interface, Herdr can mark the corresponding pane as blocked. Users do not need to scroll through the terminal one by one. They only need to look at the sidebar or workspace summary to prioritize tasks that really require manual intervention.\nThis is a very important interactive transformation: the terminal is no longer just a place to output logs, but becomes the status panel of the Agent.\n4. Inter-Agent collaboration: let one Agent command another Agent #Herdr also provides CLI and Socket API for Agent. With these interfaces, one Agent can perform structured operations on another Agent, such as:\ncreates a new pane and starts another Agent; sends task prompts to the specified Agent; waits for another Agent to enter the specified state; reads the recent output of another Agent; Send keystrokes to the Agent, such as canceling the current operation. indicates the command as follows:\n# 启动一个用于审查的 Agent herdr agent start reviewer --kind codex --pane w1:p2 # 发送审查任务并等待结果 herdr agent prompt reviewer \\ \u0026#34;Review the current diff and report actionable findings.\u0026#34; \\ --wait --timeout 120000 # 读取审查结果 herdr agent read reviewer --source recent-unwrapped --lines 120 This will form an automation link:\n主 Agent 编码 ↓ 启动审查 Agent ↓ 发送审查任务 ↓ 等待并读取结果 ↓ 主 Agent 根据反馈继续修改 Compared with \u0026ldquo;putting all Agents into multiple panes\u0026rdquo;, there is an extra layer of real orchestration semantics here. Agents can treat other Agents as callable execution units, instead of relying on users to manually copy and paste.\nHowever, being able to communicate between Agents does not mean that they are inherently safe. Production use should still be limited to:\nWhich Agents can create other Agents; Which Agents can send commands or keystrokes; Which directories and credentials can be accessed; Which operations must be returned to manual approval. Capabilities like and especially send-keys are essentially close to directly operating another terminal. Permission boundaries should be treated with the same strictness as normal shell automation.\n5. Workspace: Organize Agent by project #Herdr uses a hierarchical workspace model:\nWorkspace └── Tab └── Pane └── Agent / Shell / Server Workspace: Project-level isolation #A Workspace can correspond to a project or a group of closely related tasks. Backend, frontend, infrastructure and documentation projects can be placed in separate Workspaces to avoid all Agents being mixed in the same global list.\nTab: Different views of the same project #Multiple Tabs can be created in the same project:\nagents: Run Agents such as Claude Code and Codex; server: Run the local development server; logs: View build, test, or service logs. Pane: real terminal process #Pane is not a panel that can only display logs, but a complete terminal environment. You can run agents, shells, test commands, or development servers in it. This design maintains the compatibility of existing CLI tools and avoids forcibly encapsulating each Agent into a special plug-in.\nThe key benefits of this model are:Project boundaries, view boundaries, and process boundaries are simultaneously visible. Users can switch to the project first and then view the Agent status of the project, instead of searching for a certain process in all terminals.\n6. Mouse and Keyboard: Reduce the learning cost of terminal tools #Traditional terminal multiplexers usually have keyboard priority. Users who are familiar with shortcut keys are very efficient, but new users need to remember operations such as prefixes, split screens, switching and closing.\nHerdr treats both mouse and keyboard as first-class interactions:\nClick pane to switch focus; Drag the divider to resize; Right-click to open the context menu; uses tmux-style prefix shortcut keys; Automates operations via CLI and Socket API. This results in three usage levels:\nNewbies can first use the mouse to complete basic management; Users familiar with tmux can continue to use similar keyboard habits; Automation systems and Agents can directly control the workspace through CLI/API. A good terminal tool should not require everyone to use the same interaction method. Humans are responsible for judgment and approval, keyboards are responsible for high-frequency operations, and agents or scripts are responsible for repetitive arrangements.\n7. How to build a reliable Agent runtime #From Herdr\u0026rsquo;s design, a checklist can be abstracted that does not rely on specific tools.\n1. Session persistence # After the client is disconnected, the background task continues to run; Layout, output and status can be restored after the user reconnects; Use named sessions or independent Workspaces for different projects; The recovery boundary after machine restart is clear and verifiable. 2. Agent status is visible # distinguishes working, blocked, idle and done; has a unified sidebar or list summary status; Provides reminders for tasks awaiting authorization, input, or confirmation; State recognition failure is clearly marked as unknown, don\u0026rsquo;t pretend to be sure. 3. Agent can collaborate # Agent can start or request another Agent; can wait for clear state transitions instead of blindly sleeping; can read structured, traceable output; Set permission boundaries for creating processes, sending commands, and accessing credentials. 4. Items can be isolated # Each project has an independent Workspace; Agent, logs and services can be placed in different tabs; The working directory, environment variables and permissions of each Pane can be tracked; Keep audit records of important operations. 8. What scenarios is Herdr suitable for? #Herdr is particularly suitable for the following workflows:\nruns multiple Coding Agents at the same time; One Agent codes, and another Agent does review or testing; Long-running test, build, or migration tasks are required; works on a remote development machine via SSH; Hope that the task will continue after closing the laptop; Need to quickly switch Agent collections between multiple projects. It does not replace all tools:\nA normal terminal is simpler when running only a short command; tmux is still sufficient when only generic session persistence is required; When you need full IDE debugging capabilities, you should still use an IDE or a dedicated debugger; When complex cross-machine scheduling is required, queues, permissions, logs, and resource management systems are also required. Herdr solves the problem of \u0026ldquo;how to reliably host multiple Coding Agents in local or remote terminals\u0026rdquo;, rather than a complete distributed Agent platform.\nConclusion: In addition to Agent capabilities, a runtime is also needed #People usually focus on which model is smarter and which Agent is better at writing code, but the actual efficiency of a multi-Agent system also depends on the runtime: whether the task can be sustained, whether the status is visible, whether the Agent can cooperate, and whether humans only intervene when necessary.\nHerdr’s design has four key features:\nBackend server allows the task to continue running after the terminal client is disconnected; Status detection allows users to quickly discover Agents that are waiting for input or have completed; CLI/API collaboration enables Agents to launch, command, and read other Agents; Workspace model allows projects, views, terminals and agents to form a clear hierarchy. If you are only running one Agent, tmux may be sufficient. If you start running coding, testing, reviewing, and researching Agents at the same time, the \u0026ldquo;Terminal Multiplexer\u0026rdquo; ceases to be just a layout tool and increasingly becomes the Agent\u0026rsquo;s runtime infrastructure.\nReferences # Herdr GitHub repository Herdr Quick Start Document Herdr core concept Herdr Agent Skill Herdr session status Written by Jermine. View original text.\n","date":"27 September 2026","permalink":"https://beato.app/blog/posts/herdr-ai-agent-runtime-and-terminal-workspace/","section":"All Articles","summary":"\u003cp\u003eAI Coding Agent can already write code, run tests, modify configurations, and even call another Agent for code review. But when the number of Agents increases, new questions quickly arise: Which task has been completed? Which Agent is waiting for authorization? Which terminal is stuck? Can background tasks continue if I close my laptop?\u003c/p\u003e\n\u003cp\u003eThe traditional approach is usually to open multiple terminal tabs, or use terminal multiplexers such as tmux and screen. They can solve the problem of \u0026ldquo;the process should not exit because the terminal is closed\u0026rdquo;, but they do not know which Agent is running in the terminal, and they cannot understand whether the Agent is currently working, waiting for input, or has completed.\u003c/p\u003e\n\u003cp\u003e\u003ca href=\"https://github.com/herdrdev/herdr\" target=\"_blank\" rel=\"noreferrer\"\u003eHerdr\u003c/a\u003e is positioned to complement this layer: it is not a new AI Agent, but a \u003cstrong\u003eterminal workspace and runtime for Coding Agent\u003c/strong\u003e. It is responsible for hosting the real terminal where the Agent is located, maintaining session persistence, identifying Agent status, and providing CLI and Socket API for collaboration between Agents.\u003c/p\u003e","title":"Herdr: A Terminal Runtime for AI Coding Agents"},{"content":"","date":null,"permalink":"https://beato.app/blog/tags/browser/","section":"Tags","summary":"","title":"Browser"},{"content":"Chromium is almost the default answer for browser automation: it has the best compatibility, the most mature tool chain, and the least worry when encountering complex web pages. But its price is equally obvious - many processes, high memory usage, and slow cold start. These costs can be quickly amplified for AI agents, web retrieval systems, and crawlers that need to run a large number of sessions simultaneously.\nBoth Moli and Obscura attempt to solve this problem. They are both built using Rust and do not rely on Chromium, but they have taken two different routes:Moli prioritizes task success rate and complex page compatibility, while Obscura puts lightweight, concurrent crawling and invisibility capabilities at a higher priority.\nThe data in this article was compiled in September 2026. Browser engines are still iterating rapidly, and performance numbers and compatibility conclusions should be understood in conjunction with the specific version, test environment, and target website.\nLet’s talk about the conclusion first #If you just want a simplified answer:\nGeneral AI Agent, complex SPA, micro front-end, interactive automation: Moli is preferred. Massive URL crawling, resource-constrained environments, requiring built-in stealth and MCP: Prioritize Obscura. The target website must be stable and available, or rely on full Web API, Canvas, WebGL, media capabilities: continue to use Chromium. Neither the Moli nor the Obscura are \u0026ldquo;smaller Chromes.\u0026rdquo; They intentionally give up some capabilities for a human browsing experience in exchange for lower CPU, memory, and startup costs. What really needs to be weighed is not which project scores higher, but whether your task falls within the capabilities of the web platform they have implemented.\nThe core positioning of the two projects #Moli: structure first, pixels generated on demand #Moli positions itself as a production-grade headless browser for AI Agents. Its most critical design is on-demand layout and rendering (on-demand layout and rendering).\nMost Agent tasks only need to read DOM, extract Markdown, query elements, execute JavaScript, or observe network requests. They do not need to continuously maintain a complete layout tree, nor do they need to draw pixels every frame. Moli therefore uses the DOM and style state as the source of truth, calculating layout and drawing results only when the task actually requires geometric information, coordinate clicks, screenshots or PDFs.\nMoli’s core components include:\nV8: execute JavaScript; html5ever: parse HTML; Servo/Stylo: handles selectors, cascades and calculated styles; Taffy and Parley: Working with box models and text layout; AnyRender/Vello: Complete software rendering. Moli supports CDP, WebDriver Classic and WebDriver BiDi simultaneously. For projects already using Playwright, Puppeteer, Selenium or other automation clients, this protocol coverage means lower migration costs.\nObscura: Lightweight crawling and stealth priority #Obscura is a standalone headless browser also written in Rust, runs JavaScript through V8, and is compatible with Puppeteer and Playwright through CDP. It emphasizes three things more:low resource usage, concurrent crawling and stealth capabilities.\nObscura\u0026rsquo;s --stealth mode uses a web client with browser TLS fingerprinting, loads a tracker block list, and provides consistent User-Agent, platform, time zone, and geolocation configuration. It cannot bypass interactive challenges, CAPTCHA, or IP-based throttling, but provides out-of-the-box handling of basic TLS fingerprinting and third-party trace detection.\nIn addition, Obscura directly provides parallel scrape commands and MCP Server, which is suitable for embedding the browser into the Agent workflow as a lightweight tool without having to build an additional protocol adaptation layer. How should\nHow should you interpret the benchmarks? #Moli\u0026rsquo;s README cites two sets of tests for the Lexbench-Headless-Browser. The first set uses 1,308 comparable tasks covering native CDP, 13 automation tools, and web platform semantic testing:\nbrowser Number of tasks passed mission success rate Chrome 1,306 / 1,308 99.85% Moli 1,071 / 1,308 81.88% Lightpanda 697 / 1,308 53.29% Obscura 587 / 1,308 44.88% The most important message from this set of data is not how much faster Moli is than Obscura, but that it completes more automated actions on the same set of tasks. For the Agent, failure usually means retrying, downgrading to Chromium, or even interrupting the entire task, so the task success rate is often more important than the limit time of a single request.\nThe second set of resource tests only counts 1,045 task attempts in which all four local engines successfully completed:\nbrowser CPU median time Peak PSS Median Chrome 686.95 ms 697.14 MiB Moli 100.61 ms 92.12 MiB Lightpanda 36.48 ms 33.55 MiB Obscura 38.44 ms 38.74 MiB A clear trade-off can be seen here: Obscura is more resource-efficient on jointly successful tasks, but Moli has significantly better coverage on the complete task set. In other words, the Obscura is lighter and the Moli is more likely to get the job done.\nIt is important to note that these data are provided by benchmarks maintained by projects owned by Moli. The test code and reports are public, but the results are not a substitute for validating your own sites, scripts, and deployment environments.\nPublic website crawling performance #Moli also provides a set of crawling tests covering 192 Chinese and English public websites. A page is considered successful only if it produces meaningful content after JavaScript execution; simply returning an HTTP 200, a challenge page, a login wall, an empty response, or an empty application shell does not count as a success.\nbrowser valid page success rate Median time consumption Median RSS Moli 103 53.6% 1.43 s 73 MiB Chrome Headless 101 52.6% 1.43 s 773 MiB Lightpanda 85 44.3% 0.97 s 40 MiB Obscura 57 29.7% 1.30 s 39 MiB This set of results shows that low resource usage does not necessarily mean high crawling throughput. If an engine frequently gets empty shell pages and is unable to execute key scripts, subsequent retries and rollbacks will offset the resources saved in a single run.\nIt also doesn\u0026rsquo;t prove that Moli is more compatible than Chrome on all real websites. The sample only has 192 URLs, and the results are highly dependent on website status, network environment, and criteria. A more reasonable interpretation is: In this test set, Moli got close to Chrome\u0026rsquo;s number of effective pages with about one-tenth the memory.\nComplex page compatibility #The hardest part of browser compatibility is often not parsing HTML, but the long-tail behavior of modern front-end frameworks combined with a host of web APIs: Mounting and routing switching of\nSPA; Micro front-end sandbox and cross-Frame communication; Infinite scrolling, lazy loading and observer; Dynamic styles, fonts, layouts and coordinate clicks; Cookie, IndexedDB, OPFS and other state capabilities; Automation client-dependent CDP event order and field semantics. The advantages of Moli are mainly reflected here. It provides a complete DOM, CSS, layout, storage and network runtime and has passed approximately 1.612 million tests within the currently selected Web Platform Tests range. The approximately 37 percentage point success rate gap in Lexbench also illustrates its broader coverage of automation tools and web platform semantics.\nBut Moli still doesn\u0026rsquo;t strive for pixel-level consistency with Chrome, nor does it have a GPU compositor, making it unsuitable for high-fidelity Canvas, WebGL, video playback, or tasks that rely on full Chrome printing behavior.\nObscura already supports native screenshots, scroll-aware layouts, screencasts, and PDFs, but its long-tail Web API and CSS behavior may still differ from Chromium. If the target website is mainly a clearly structured content page, product page or list page, this difference may not matter; if the page relies on a complex front-end runtime, site-level compatibility testing must be done first.\nfunction comparison # Dimensions Moli Obscura core orientation Compatibility and Mission Success Rate Lightweight, concurrent crawling and stealth JavaScript V8 V8 automation protocol CDP、WebDriver Classic、WebDriver BiDi CDP layout and rendering Default structure takes precedence; use --layout to enable true layout, screenshots and PDFs native rendering; supports screenshots, PDF and screencast Extract output HTML, Markdown, JSON, semantic tree, etc. Markdown, structured extraction, etc. stealth ability supports agent, User-Agent and other controls, but does not use invisibility as its core selling point --stealth provides TLS fingerprinting, identity configuration and tracker interception parallel capability serve can host automation clients serve --workers and scrape --concurrency MCP official README does not provide built-in MCP Server has built-in MCP Server, covering navigation, extraction, interaction, screenshots, storage and tab tools container deployment can be containerized by itself provides a non-root image based on distroless The common statement in previous information that \u0026ldquo;Obscura MCP provides 14 tools\u0026rdquo; is outdated. The current official documentation lists significantly more tools, so a more safe statement is: it has built-in MCP toolset covering browser life cycle, reading, interaction, diagnosis, visual output, storage and tab management.\nHow to choose #Choose Moli if you care more about task completion rate #Consider this option in the following scenarios:\nTo build a universal browser Agent, you need to face unknown websites; The target site contains a complex SPA, micro-frontend, or a large number of dynamic interactions; Already using Playwright, Puppeteer, Selenium or WebDriver BiDi; wants to significantly reduce Chrome\u0026rsquo;s resource consumption, but is unwilling to sacrifice compatibility too much; requires DOM, network, storage, layout and screenshot capabilities to work together in the same runtime. The trade-off is that Moli has a higher memory footprint than Obscura and Lightpanda, and it still can\u0026rsquo;t replace Chrome\u0026rsquo;s full visual and media capabilities.\nChoose Obscura if you care more about unit resource throughput #Consider this option in the following scenarios:\nbatch crawls a large number of pages with relatively standard structures; The memory budget of the container or edge node is very tight; hopes to use scrape --concurrency to distribute the URL directly; needs built-in MCP Server to quickly access clients such as Claude Code; requires basic TLS fingerprint masquerading, browser identity configuration and tracker blocking. The price is: less compatibility with complex sites and automation tools. It is best to establish a sample set of target URLs before going online and prepare a fallback path to Chromium.\nKeep using Chromium, failure is the most expensive #The following situations are not worth replacing the engine to save tens or hundreds of MiB of memory:\nrequires as complete a Web API and browser behavior as possible; relies on high-fidelity screenshots, Canvas, WebGL, audio and video, or GPU compositing; The target website changes frequently and there is no ability to maintain a compatibility regression set; The value of a single session is very high, and any compatibility failure is more expensive than the resource cost; relies on browser extensions, Chrome-specific capabilities, or long-lasting authentication sessions. A more reliable engineering solution: hierarchical routing #In a production system, Moli, Obscura, and Chromium are not necessarily a choice of three. A more practical solution is to layer by task complexity:\nstatic HTML is first processed with a normal HTTP client and text extractor; Standard pages that require JavaScript are handed over to Obscura; Leave complex interaction tasks to Moli; Fallback to Chromium when encountering an unsupported web API, vision task, or continuous failure. In this way, resource costs can be controlled without placing all compatibility risks on a new browser engine. The key is to have well-defined success conditions, such as body length, key elements present, the page is not a challenge page, and the target action actually produced a state change, rather than just checking for an HTTP 200.\nOther noteworthy choices #Lightpanda #Lightpanda is built from scratch using Zig, and the official benchmark claims that the peak memory when crawling 100 pages is about 1/16 of Chrome, and the execution time is about 9 times faster. It supports CDP and WebDriver BiDi, and the current version also supports text-oriented PNG/PDF output, so the old statement of \u0026ldquo;no screenshot support at all\u0026rdquo; is no longer accurate.\nIts advantage is extreme resource efficiency, but the risks are the same as other new engines: complex websites, long-tail web APIs, and automated client compatibility require site-by-site verification.\nKitesurf #Kitesurf is a stateless browser built by Cloudflare for Agent. It runs on Workers and currently provides beta services through Browser Run. It\u0026rsquo;s suitable for bursty, one-time HTML extraction, PDF, and screenshot tasks, but doesn\u0026rsquo;t offer native executables, and isn\u0026rsquo;t suitable for video, WebGL, real-world TLS fingerprinting challenges, or sessions that require long-term persistent state.\nIn a 14 URL test published by Cloudflare, Kitesurf consumed less CPU and memory than warmed-up Chromium, but had longer wall clock times. This once again shows that \u0026ldquo;saving resources\u0026rdquo; and \u0026ldquo;faster single response\u0026rdquo; are two different indicators.\nFinal Recommendations #Moli and Obscura represent two clear engineering trade-offs:\nMoli uses a moderate increase in resource usage in exchange for a higher task success rate, wider protocol support and better complex page compatibility. Obscura puts lightness, concurrency and stealth capabilities first, and is more suitable for large-scale crawling with clear goals and relatively standard page structures. If your goal is to \u0026ldquo;let the Agent complete unknown web page tasks as reliably as possible\u0026rdquo;, Moli is a safer starting point; if the goal is to \u0026ldquo;crawl a large number of known pages with as few resources as possible\u0026rdquo;, Obscura is more suitable. Whichever one you choose, you should benchmark against your own URL samples and real automation scripts, rather than taking the numbers in the project README as production commitments.\nReferences # Moli Project and Official Description Obscura Project Obscura official document Lexbench five-engine mission success rate report Lexbench four-engine resource test report Lightpanda Project and Benchmark Description Cloudflare：Introducing Kitesurf Written by Jermine. View original text.\n","date":"26 September 2026","permalink":"https://beato.app/blog/posts/moli-vs-obscura-headless-browser-for-ai-agents/","section":"All Articles","summary":"\u003cp\u003eChromium is almost the default answer for browser automation: it has the best compatibility, the most mature tool chain, and the least worry when encountering complex web pages. But its price is equally obvious - many processes, high memory usage, and slow cold start. These costs can be quickly amplified for AI agents, web retrieval systems, and crawlers that need to run a large number of sessions simultaneously.\u003c/p\u003e\n\u003cp\u003eBoth Moli and Obscura attempt to solve this problem. They are both built using Rust and do not rely on Chromium, but they have taken two different routes:\u003cstrong\u003eMoli prioritizes task success rate and complex page compatibility, while Obscura puts lightweight, concurrent crawling and invisibility capabilities at a higher priority.\u003c/strong\u003e\u003c/p\u003e","title":"Moli vs. Obscura: How to Choose a Headless Browser for AI Agents"},{"content":"","date":null,"permalink":"https://beato.app/blog/tags/api-gateway/","section":"Tags","summary":"","title":"API Gateway"},{"content":" When a project is connected to model providers such as OpenAI, Anthropic, Google, Mistral, and DeepSeek at the same time, the real trouble is often not calling a certain model, but maintaining a bunch of different authentication methods, request formats, model names, and error handling logic. Bifrost attempts to converge this layer of complexity into a unified, high-performance API.\nLet’s talk about the conclusion first #Bifrost is Maxim AI\u0026rsquo;s open source AI API gateway, written in Go and licensed under the Apache-2.0 license. Its core values can be summarized as:\nprovides OpenAI compatible interface to the outside world; internally connects multiple AI model providers; manages requests in a unified manner through load balancing, multiple accounts, cost tracking and guardrail capabilities; operates in a self-hosted manner to avoid handing all requests to the SaaS platform. The original WeChat article emphasized its advantages in latency and throughput compared to LiteLLM implemented in Python, and gave indicators such as \u0026ldquo;50 times faster\u0026rdquo; and \u0026ldquo;less than 100 microseconds overhead\u0026rdquo;. During actual selection, these data should be re-tested based on your own model supplier, network environment and request mode, and cannot be directly used as a general conclusion.\nWhy you need an AI API gateway #When connecting multiple model providers directly in the business code, you will usually encounter four types of duplication of work:\nAuthentication is different: Different platforms use different API Keys, request headers and permission models. Different protocols: The request body, streaming response, tool call and error format are not completely consistent. Different model names: The same business capability may correspond to completely different model names on different platforms. Operation logic is scattered: Retry, current limiting, load balancing, cost statistics and audit logs are easily scattered in various services. The role of the API gateway is to focus these provider differences on the infrastructure layer. Business services only need to face a stable set of interfaces, and all callers do not need to be modified when switching models or adding new suppliers.\nBifrost’s core competencies #1. OpenAI compatible interface #Bifrost provides a unified OpenAI style interface to the caller. For applications that already use the OpenAI SDK, you usually only need to modify the base_url and model configuration to forward the request to other providers.\nThis does not mean that all model capabilities are exactly the same. Capabilities such as text generation, visual understanding, tool invocation, and structured output still depend on the target supplier and specific model. The gateway can only unify the protocol and cannot eliminate the capability differences between models.\n2. Multi-provider and multi-model #The article includes more than 23 providers such as OpenAI, Anthropic, Google, Mistral, etc., and more than 1,000 models. The main values brought by multiple providers include:\nChoose different models according to the type of task; Switches backup lines when a single supplier fails; allocates traffic to different accounts or regions; Tradeoffs between performance, latency, and price. 3. Load balancing and high availability #When a model is configured with multiple accounts or multiple upstream endpoints, the gateway can allocate requests according to policies to reduce the impact of a single account triggering current limiting. Combined with cluster mode, Bifrost can be scaled out as an independent shared infrastructure.\nIn the production environment, you still need to configure health check, timeout, retry and circuit breaker strategies yourself. In particular, retries of generative APIs must consider idempotence: for streaming requests or tool calls that have already produced side effects, blind retries may cause repeated executions.\n4. Cost and Observability #Bifrost can record information such as requests, responses, token usage, delays and costs. This data can be used for:\nCost comparison of different models; Set a budget for a team or project; found abnormally increased Token consumption; counts the first Token delay and complete response time; Tracks the error rate of a model or account. The gateway does not automatically solve cost governance issues, but it provides more appropriate boundaries for unified statistics.\n5. Guardrail and MCP support #The article also mentions content security checks, compliance logs, and MCP support. For Agents that need access to tool calls, the gateway can become a unified policy entrance: verify the request before reaching the model, perform permission control before the tool is called, and record the complete link.\nThe security boundary of this type of function needs to be designed separately. The API gateway can check the request, but it cannot replace the authorization model of the business system, nor can it directly execute the model output as a trusted instruction.\n6. CLI, Helm and Go SDK #The project provides CLI, Helm Charts and Go SDK, covering scenarios such as coding Agent, Kubernetes deployment and Go application integration respectively. For infrastructure teams, Helm support means the gateway can be integrated into existing configuration, monitoring and release processes, rather than maintaining a separate set of manual deployment scripts.\nQuick start #Docker startup #docker run -d --name bifrost \\ -p 8080:8080 \\ ghcr.io/maximhq/bifrost:latest can also download the binary file for the corresponding platform from the Releases page: The image tag and download address in the\ncurl -L https://github.com/maximhq/bifrost/releases/latest/download/bifrost-linux-amd64 \\ -o bifrost chmod +x bifrost ./bifrost example should be based on the current release version of the project. Long-term use of latest is not recommended in the official environment and should be fixed to a verified version.\nbasic configuration #Configure port and log level:\nexport BIFROST_PORT=8080 export BIFROST_LOG_LEVEL=info provider configuration can be filled in in the format supported by the actual version of the project. Only the structure is shown below, using placeholders for keys:\nproviders: - name: openai api_key: ${OPENAI_API_KEY} - name: anthropic api_key: ${ANTHROPIC_API_KEY} - name: google api_key: ${GOOGLE_API_KEY} Do not write real API Keys into Git repositories, container images, or public logs. Production environments should use Secrets, environment variables, or a dedicated key management service.\nAPI examples #Unified call OpenAI style interface #curl http://localhost:8080/v1/chat/completions \\ -H \u0026#34;Content-Type: application/json\u0026#34; \\ -d \u0026#39;{ \u0026#34;model\u0026#34;: \u0026#34;gpt-4\u0026#34;, \u0026#34;messages\u0026#34;: [ {\u0026#34;role\u0026#34;: \u0026#34;user\u0026#34;, \u0026#34;content\u0026#34;: \u0026#34;请用一句话介绍 Bifrost。\u0026#34;} ] }\u0026#39; If you need to switch to another provider, you usually only need to modify the routing configuration on the model or gateway side, and the caller still accesses the same /v1/chat/completions entrance:\ncurl http://localhost:8080/v1/chat/completions \\ -H \u0026#34;Content-Type: application/json\u0026#34; \\ -d \u0026#39;{ \u0026#34;model\u0026#34;: \u0026#34;claude-3-opus\u0026#34;, \u0026#34;messages\u0026#34;: [ {\u0026#34;role\u0026#34;: \u0026#34;user\u0026#34;, \u0026#34;content\u0026#34;: \u0026#34;请用一句话介绍 Bifrost。\u0026#34;} ] }\u0026#39; The model name, routing rules and supported request fields here need to be based on the current version of Bifrost documentation. Compatibility with the OpenAI API does not mean that every provider supports the exact same parameters. Which scenarios is\nsuitable for? #Scenario 1: Unified management of multiple model suppliers #When the team uses multiple models at the same time, centralizing authentication, routing and basic monitoring into one gateway can reduce the branching logic in the business code. New applications only need to access the gateway and no longer implement each vendor\u0026rsquo;s SDK separately.\nScenario 2: High concurrency and multi-account polling #For applications with large request volume, the gateway can allocate traffic to multiple accounts or endpoints, alleviate single account current limit, and provide a unified timeout and error handling entrance. Before going online, you should use your own QPS, number of concurrent connections, and streaming response data for benchmark testing.\nScenario 3: Cost Control #By recording Token and model prices, you can observe the true costs of different tasks, and then cooperate with budget constraints and model routing to hand over simple tasks to low-priced models and hand over complex tasks to high-capacity models.\nScenario 4: Security and Compliance #When all requests pass through the gateway, sensitive information filtering, content inspection, audit logs, and access control can be added uniformly at the boundary. But key custody, tenant isolation, and tool permissions should still be designed by the deployer.\nScenario 5: Coding Agent and Internal Platform #CLI and OpenAI compatible interface are suitable for accessing coding agents, internal Copilot or enterprise AI platforms. Developers can switch models or adjust routing strategies without modifying upper-layer tools. Comparison of\nComparison with other gateways # Dimensions Bifrost LiteLLM OpenRouter Portkey implementation Go, self-hosted Python, self-hosted Cloud Service mainly cloud services API Compatibility OpenAI style OpenAI style OpenAI style OpenAI style Multi-provider support support support support Self-hosted support support Usually not supported Depends on scheme open source Apache-2.0 open source Atypical self-hosting solution Commercialization of some capabilities Main trade-offs Performance and Control Ecology and Maturity works right out of the box Hosting capabilities and platform services When choosing a gateway, look beyond advertised speed figures. Ask:\nDo you need to self-host it? Is your team more familiar with Go or Python? Whether specific provider and model capabilities are required; Whether to rely on ready-made billing, monitoring and management backends; Whether the downgrade strategy can be controlled by itself when encountering an upstream failure. Current limitations #The advantages of Bifrost are based on the continuous evolution of the project, which also means that it needs to accept some practical constraints:\nThe ecology is still growing: Compared with earlier projects such as LiteLLM, there may be less community and surrounding information. Compatibility requires verification: There may still be differences in tool calls, visual input, structured output, and streaming behavior between different models. Performance data depends on the environment: The gateway\u0026rsquo;s own overhead is only a part of the link, and the actual experience is also affected by the network, supplier queuing, and model generation speed. The responsibility for operation and maintenance lies with you: Self-hosting brings control, but also brings the responsibility for upgrades, monitoring, backup, key protection and fault handling. Therefore, Bifrost is more suitable for teams that have a clear need for unified AI infrastructure and are willing to bear the cost of self-hosted operation and maintenance, rather than the default choice for all individual developers.\nSummary #Bifrost solves not \u0026ldquo;how to call a large model\u0026rdquo;, but \u0026ldquo;how to manage multiple model suppliers into a stable set of internal APIs\u0026rdquo;. Its main selling points include Go implementation, OpenAI compatible interface, multi-provider, load balancing, observability, self-hosting and open source license.\nIf your application already accesses multiple models at the same time, or needs to strike a balance between model switching, cost control, and high concurrency, Bifrost is worthy of being on the shortlist. A safer implementation method is to first connect one or two suppliers in the test environment, record the delay, error rate, token cost and compatibility, and then decide whether to upgrade it to a production-level shared gateway.\nReferences # Bifrost GitHub repository Bifrost Releases The WeChat public account article referenced in this article Written by Jermine. View original text.\n","date":"23 August 2026","permalink":"https://beato.app/blog/posts/bifrost-ai-api-gateway/","section":"All Articles","summary":"\u003cblockquote\u003e\n\u003cp\u003eWhen a project is connected to model providers such as OpenAI, Anthropic, Google, Mistral, and DeepSeek at the same time, the real trouble is often not calling a certain model, but maintaining a bunch of different authentication methods, request formats, model names, and error handling logic. Bifrost attempts to converge this layer of complexity into a unified, high-performance API.\u003c/p\u003e\n\u003c/blockquote\u003e","title":"Inside Bifrost: A High-Performance AI API Gateway Built in Go"},{"content":"When your system needs to handle inter-microservice communication, cross-language calls, and large model requests at the same time, the API gateway is no longer a simple routing tool, but a traffic hub for the entire infrastructure. This article records my step-by-step in-depth comparison of APISIX, Kong and Envoy when selecting a gRPC consistent hash load balancing solution. I hope it can provide a reference for you who are also faced with complex gateway selection.\n1. Scenarios and requirements #Our business involves three areas at the same time:\nCommunication between microservices: Based on gRPC, multi-language heterogeneous (Go/Java/Python) High availability and elasticity: Consistent hashing is required to achieve session persistence/cache affinity New business exploration: Need to connect with multiple LLM vendors (OpenAI, Anthropic, Google Vertex AI, etc.) Therefore, our gateway needs to have the following capabilities at the same time:\ngRPC proxy: supports HTTP/2, TLS, retry, timeout Consistent Hash: Stable key based on header/cookie/caller Multi-language friendly: Avoid implementing complex logic on the client side LLM extension: Token current limiting, multi-vendor routing, content security 2. Overview of gRPC consistent hashing scheme #Before entering into specific product comparisons, let us first clarify the three mainstream paths in the industry.\nSolution 1: gRPC client Balancer plug-in # scheme: grpc-java built-in ring_hash, grpc-go is implemented using the community (such as authzed/consistent) Advantages: Lightweight, no independent agent required Disadvantages: Client heterogeneous maintenance costs are high, and cross-language consistency is difficult to ensure Solution 2: Independent proxy (Envoy/HAProxy/Nginx) # Solution: Envoy provides Maglev / Ring Hash load balancing strategy Advantages: Stable, mature, and highly observable Disadvantages: Requires independent deployment and maintenance Solution three: API gateway (APISIX/Kong) # solution: APISIX native support scheme: grpc + type: chash Advantages: It has both gateway management capabilities and load balancing Disadvantages: The gateway itself requires operation and maintenance Our conclusion: In the K8s environment, the API gateway mode is the optimal solution - it not only unifies the entrance, but also provides a foundation for subsequent expansion.\n3. APISIX vs Kong: First round comparison # Dimensions APISIX Kong (open source) configuration storage etcd (effective in milliseconds) PostgreSQL (polling, with delay) Cloud native adaptation native CRD, Ingress Controller supports K8s, but is not native performance (P99) ~1-3ms overhead ~2-5ms overhead plug-in quantity 100+ built-in ~40 built-in plug-in development language Lua / Java / Go / Python / Wasm Lua (open source version) Business version API7 Kong Enterprise (feature-rich) Conclusion: APISIX is more suitable for cloud-native and dynamic environments; Kong is more suitable for traditional enterprises, teams that rely heavily on PostgreSQL and mature ecosystems.\n4. Join Envoy: Three pillars # Dimensions APISIX Kong Envoy product positioning high performance gateway Enterprise-level API management platform L4/L7 agent (data plane) works right out of the box ✅ With control surface and UI ✅ With control surface and UI ❌ Need to cooperate with Istio / Envoy Gateway Configuration dynamics millisecond level Second level / heavy load xDS protocol, millisecond level Performance high Medium Ultimate (C++) Learning Curve Medium Medium high applicable scenarios Gateway + Grid Edge API Management + Developer Portal Service Grid + High-Performance Agent Conclusion: Envoy is a \u0026ldquo;limb\u0026rdquo; that requires a \u0026ldquo;brain\u0026rdquo; (control plane) and is suitable for Service Mesh scenarios; APISIX and Kong are complete products and suitable for independent deployment.\n5. LLM scenario: new variables #When LLM traffic enters the system, the gateway has another layer of responsibilities:\nMulti-vendor agent: unified access to OpenAI / Anthropic / Google / domestic models Token perception: token-based current limiting and cost control Intelligent routing: Dynamically select backends based on model performance/cost/content Content security: Prompt words/security audit of output Cache affinity (the importance of consistent hashing): Maximize the use of KV cache and reduce latency and cost Consistent hashing has a new meaning in the LLM scenario - routing requests with the same prefix to the same backend can reuse KV Cache, directly reducing latency and inference costs. Product comparison in\nLLM scenario # product LLM positioning Key capabilities Envoy AI Gateway AI native gateway 16+ LLM provider, MCP protocol, stable version has been released APISIX A versatile all-rounder ai-proxy / ai-proxy-multi / prompt word security / token current limit Kong AI extension of traditional capabilities ai-proxy plug-in, advanced AI capabilities are only available in the enterprise version 6. Final selection decision matrix #flowchart TD Start[核心需求是什么？] --\u0026gt; Q1{传统微服务\u0026lt;br/\u0026gt;gRPC + 一致性哈希？} Q1 --\u0026gt;|是| APISIX[推荐：APISIX\u0026lt;br/\u0026gt;开箱即用，云原生友好] Q1 --\u0026gt;|否| Q2{需要 Service Mesh\u0026lt;br/\u0026gt;统一南北+东西流量？} Q2 --\u0026gt;|是| Envoy[推荐：Envoy + Istio\u0026lt;br/\u0026gt;或 Envoy Gateway] Q2 --\u0026gt;|否| Q3{需要开发者门户\u0026lt;br/\u0026gt;+ 企业治理？} Q3 --\u0026gt;|是| Kong[推荐：Kong 企业版\u0026lt;br/\u0026gt;生态成熟，功能全面] Q3 --\u0026gt;|否| Q4{LLM 流量是主要场景？} Q4 --\u0026gt;|是| AIGW[推荐：Envoy AI Gateway\u0026lt;br/\u0026gt;AI 原生设计] Q4 --\u0026gt;|否| Q5{需要统一管理\u0026lt;br/\u0026gt;传统 API + LLM？} Q5 --\u0026gt;|是| APISIX2[推荐：APISIX\u0026lt;br/\u0026gt;一个平台覆盖所有] Q5 --\u0026gt;|否| Envoy2[推荐：Envoy\u0026lt;br/\u0026gt;极致性能 + 高度定制] Recommended according to demand scenarios # demand scenario recommended solution Core reasons Traditional microservices + gRPC + consistent hashing APISIX works out of the box, has excellent performance and is cloud-native friendly. Microservices + Future Service Mesh Envoy + Istio / Envoy Gateway Unify north-south + east-west traffic API Management + Developer Portal + Corporate Governance Kong (Enterprise Edition) has mature ecology and comprehensive functions LLM gateway independent construction Envoy AI Gateway AI native design, active community Unified management Traditional API + LLM traffic APISIX One platform covers everything, rich plug-in ecology Extreme performance + high degree of customization Envoy C++ core, strong programmability Our final choice #We chose Apache APISIX for the following reasons:\nProduction verified gRPC + consistent hashing can manage traditional API and LLM traffic simultaneously The etcd architecture is naturally compatible with K8s, and the configuration takes effect in milliseconds. supports Java/Go development plug-ins, matching the team’s technology stack has no enterprise version function lock, and the cost is controllable At the same time, we use Envoy AI Gateway as an independent evaluation item to reserve evolution space for the explosive growth of LLM traffic in the future.\n7. Guide to avoid pits # Key selection for consistent hashing : Be sure to use stable identifiers such as user_id, session_id, consumer, to avoidusing timestamp, random Equally volatile values gRPC routing format: uri must be /package.Service/Method, such as /helloworld.Greeter/SayHello TLS configuration: gRPC encryption needs to be configured with scheme: grpcs and the certificate must be mounted correctly LLM Token current limit: Note that the current limit dimension is per minute/per token, not simple QPS 8. Write at the end #There is no \u0026ldquo;silver bullet\u0026rdquo; for\ngateway selection. The key is to match your scenario:\ngRPC + high performance + cloud native→ APISIX Service Mesh + Ultimate Performance→ Envoy Enterprise API Management + Mature Ecology→ Kong LLM native traffic→ Envoy AI Gateway If possible, it is recommended to build the core POC verification scenario (gRPC forwarding + consistent hashing + LLM proxy) first, and then make the final decision based on the team\u0026rsquo;s operation and maintenance capabilities, technology stack, and cost.\nThe essence of technology selection is to find the optimal solution under constraints, rather than pursuing perfection in a vacuum.\nWritten by Jermine. View original text.\n","date":"12 August 2026","permalink":"https://beato.app/blog/posts/grpc-to-llm-api-gateway-selection/","section":"All Articles","summary":"\u003cp\u003eWhen your system needs to handle inter-microservice communication, cross-language calls, and large model requests at the same time, the API gateway is no longer a simple routing tool, but a traffic hub for the entire infrastructure. This article records my step-by-step in-depth comparison of APISIX, Kong and Envoy when selecting a gRPC consistent hash load balancing solution. I hope it can provide a reference for you who are also faced with complex gateway selection.\u003c/p\u003e","title":"From gRPC to LLMs: How to Choose an API Gateway"},{"content":"","date":null,"permalink":"https://beato.app/blog/tags/llm/","section":"Tags","summary":"","title":"LLM"},{"content":" A terminal workspace manager that allows AI agents to never go offline.\nPreface: Why do you need Herdr? #Have you ever encountered such a scenario: the AI ​​programming assistant is running a long task for you, you close your laptop and go to a meeting, and when you come back you find that the process has been interrupted - everything has to start all over again? Or you have several AI agents running in multiple projects at the same time, switching back and forth, and you are completely confused about which one is busy, which one is stuck, and which one has finished running?\nHerdr was created to solve these problems. There is a sentence in the official document that summarizes it very accurately:\u0026ldquo;Herdr is the runtime your coding agents live on.\u0026rdquo;- It is the \u0026ldquo;runtime environment\u0026rdquo; that your AI programming agents live on.\nSimply put, Herdr is aTerminal workspace manager, designed for running multiple AI programming agents (such as Claude Code, Codex, Cursor, etc.) simultaneously. Its core concept is: let each agent stay in a real terminal window,The shell, logs, prompts, and running processes are all intact. You close the terminal window, close the laptop, or even restart the computer, they will not stop - when you come back, everything will be the same as before.\nCore concept: Understand the architecture of Herdr with one picture #Before getting started, first understand the five core concepts of Herdr:\nconcept Popular understanding Session (Session) Herdr\u0026rsquo;s \u0026ldquo;background program\u0026rdquo;, all panes and processes live in it Workspace A project is a workspace, equivalent to a \u0026ldquo;project folder\u0026rdquo; Tab Different views in the workspace, like browser tabs Pane The terminal actually running in the tab page can be split into multiple screens Agent An AI coding assistant running in a pane (such as claude, codex) A session can contain several workspaces for different projects. Each workspace has tabs for different tasks, and each tab can be split into panes running agents or other processes.\nThe documentation shows a typical scenario: \u0026ldquo;Three workspaces, four agents, two of which are performing tasks. No one is connected at the moment - this is the key.\u0026rdquo;\nStep 1: Install Herdr #Installation takes one command. Herdr provides several platform-specific options:\nmacOS (Homebrew)：\nbrew install herdr Linux / macOS (official script):\ncurl -fsSL https://herdr.dev/install.sh | sh Windows (PowerShell)：\npowershell -ExecutionPolicy Bypass -c \u0026#34;irm https://herdr.dev/install.ps1 | iex\u0026#34; is completed, run herdr --version to confirm that the installation is successful.\nStep 2: Get started quickly—you can do it with the mouse #Herdr is extremely newbie friendly. The official documentation clearly states: \u0026ldquo;First time coming into contact with terminal multiplexer? No need to learn shortcut keys to get started. Herdr puts the mouse first: click on the pane, drag the border, split and switch through the right-click menu.\u0026rdquo;\nspecific operation method:\nClick on any pane to switch focus Drag the dividing line between panes to resize. Right-click to pop up the context menu for splitting panes, creating tabs, etc. **Drag and drop to select ** text to be copied automatically,double-click word to copy directly - no need for Ctrl+C at all Enter your project directory and run herdr directly to start:\ncd ~/my-project herdr when it is run for the first time. You can complete the basic configuration by following it.\nStep 3: Start your first AI agent #Start the AI programming assistant in the Herdr window, exactly the same as an ordinary terminal:\nClick on the pane you want to run Enter the startup command, such as claude or codex Herdr will automatically detect it and display the status in the sidebar Herdr supports out-of-box detection agents including: Claude Code, Codex, Cursor Agent CLI, GitHub Copilot CLI, Devin CLI, Kimi Code CLI, Qoder CLI, OpenCode, Pi, OMP, etc.\nHerdr tracks whether there are agents in each pane and summarizes their status into tabs and workspaces. The sidebar will display three statuses:\nBlocked: The agent is waiting for your input (such as permission confirmation, asking questions) Working (working): The agent is executing the task Done (Complete): The task has been completed and is waiting for your review This is the core workflow of Herdr:Start multiple agents and let them work in parallel. Use the sidebar to see which projects require decision-making, which ones are still running, and which ones are ready for review.\nStep 4: Keyboard shortcuts (prefix key Ctrl+b) #Although the mouse is easy to use, mastering the shortcut keys is more efficient. Herdr uses a prefix key mode similar to tmux,**defaults to Ctrl+b **.\nHow to use: Press Ctrl+b first, release it, and then press the function key.\nFunction shortcut key Split pane to the right Ctrl+b then press v Split pane downwards Ctrl+b Then press - New tab page Ctrl+b Then press c next/previous tab Ctrl+b Then press n / p Open workspace navigation Ctrl+b then press w Detach client (Detach) Ctrl+b then press q Open the help panel Ctrl+b then press ? All shortcut keys can be customized in the configuration file.\nStep 5: Session state and recovery—the strongest persistence #This is the most powerful feature of Herdr. The official documentation details four recovery paths:\n1. Normal separation and reconnection (strongest) #When you press Ctrl+b q or directly close the terminal window, you just **disconnect the client . The Herdr server and all agents ** continue to run . Rerunning herdr instantly returns you to the previous state - The original process never stopped.\n2. Snapshot recovery after server restart #If the Herdr server unexpectedly stops and then restarts, although the original pane process is no longer there, Herdr will restore the saved session form: workspace, tabs, panes, directories, layouts and focus. Each pane will come back as a new shell in the directory where it was saved.\n3. Pane screen history playback #After a full server restart, Herdr can restore recent terminal content if the pane screen history feature is turned on. But this functionOff by default, because the pane output may contain sensitive information such as keys, tokens, and prompt words. Can be turned on in the configuration file.\n4. Agent native session recovery (the strongest intelligent experience) #Some agents can resume their own dialogue sessions. Herdr uses the session reference reported by the official integration, after the server restartsAutomatically restart supported agent panes。\ninclude:\nClaude Code: claude --resume Codex: codex resume Cursor Agent CLI: cursor-agent --resume Pi: pi --session Kimi Code CLI: kimi --session and OMP, Devin, Droid, Qoder, OpenCode, etc. Run herdr integration status to view the installed integration version.\n5. Real-time handover (experimental) #When updating Herdr, you can request the old server to transfer the real-time pane to the new server, so that the process can continue to run across server replacements. This is an experimental feature and needs to be actively turned on.\nStep 6: Configuration - according to your habits #Herdr works without a configuration file. You can add one to customize it.\nThe configuration file location can be viewed via herdr --help. The configuration format is TOML, which can be hot reloaded after modification:\nherdr server reload-config or select \u0026ldquo;reload config\u0026rdquo; through the global menu.\nCommon configuration items #Set the default shell:\nshell = \u0026#34;zsh\u0026#34; If you omit this setting, Herdr will use $SHELL, /bin/sh, or PowerShell in that order.\nSet shell mode:\nshell_mode = \u0026#34;auto\u0026#34; # 或 \u0026#34;login\u0026#34; 或 \u0026#34;non_login\u0026#34; auto mode will launch a login shell on macOS, allowing settings such as PATH to take effect.\nSet the working directory of the new pane:\nnew_cwd = \u0026#34;follow\u0026#34; # 或 \u0026#34;home\u0026#34;、\u0026#34;current\u0026#34;，或指定固定路径 By default follow will inherit the directory of the source pane or workspace.\nCustom key binding:\n[keys] focus_pane_down = \u0026#34;prefix+j\u0026#34; focus_pane_up = \u0026#34;prefix+k\u0026#34; key string supports ctrl+a, shift+n, alt+1, cmd+k and other modified key combinations.\nGit Worktree support #Herdr has built-in Git worktree support:\nNew worktree: Create a new checkout, if the branch already exists, checkout, otherwise create a branch Open worktree: List existing Git worktree checkouts in the warehouse still works like a normal workspace and can be focused, renamed, and closed Closing the parent workspace closes the entire group, but does not delete the checkout directory or branch Step 7: API and Automation #Herdr provides a powerful CLI and native socket API to control Herdr from scripts, tools and agents.\nMost commands output JSON responses, suitable for automation. Commonly used commands include:\n# 创建工作区 herdr workspace create --cwd ~/my-project # 创建标签页 herdr tab create # 分割窗格 herdr pane split --right # 关闭工作区 herdr workspace close The complete CLI reference can be found in the official documentation.\nStep 8: Plug-in system - unlimited expansion #Herdr’s plug-in system is one of its highlights. The official documentation states: \u0026ldquo;The plug-in is a shareable, executable workflow package. The plug-in can be a Bash script, a JavaScript application, a Lua script, a Rust binary, or any argv command that can be run on your machine.\u0026rdquo;\nThe core design concept of the plug-in: Keep Herdr streamlined, with the core focus on the terminal workspace, panes and agents; the plug-in turns this set of extensions into a reusable workflow.\nInstall plug-in:\nherdr plugin install owner/repo plugin install only accepts GitHub abbreviation, will clone the warehouse, display the preview in the interactive terminal, and run the build command.\nLink a local plugin during development:\nherdr plugin link ./my-plugin The plugin declares actions, event hooks, and link handlers via the herdr-plugin.toml manifest. When running, Herdr will inject a series of environment variables: HERDR_SOCKET_PATH, HERDR_BIN_PATH, HERDR_PLUGIN_ID, etc.\nExample plugin repository: ogulcancelik/herdr-plugin-examples, including agent-telegram-notify, github-link-preview, dev-layout-bootstrap and other examples.\nFinal thoughts #Herdr solves a real and specific pain point:makes the AI programming agent truly \u0026ldquo;alive\u0026rdquo; instead of having to restart every time.\nWhether you\u0026rsquo;re developing locally, running tasks on a cloud server, or working remotely via SSH, Herdr keeps your agents running. Its design philosophy is very clear -keeps the core streamlined, lowers the threshold through the mouse and shortcut keys, and provides infinite expansion possibilities through plug-ins and APIs.\nIf you are using an AI programming assistant and are tired of launching it repeatedly, losing context, and being confused about task status, try Herdr. Install with one command, get started with just a few clicks of the mouse, and then let your agents truly \u0026ldquo;live\u0026rdquo;.\nThis article is based on the official Herdr documentation. For more detailed information, please visit herdr.dev/docs.\nRelated articles # Three-piece terminal set: Zellij + Herdr + cmux to create the ultimate AI coding workflow Zellij vs rmux: In-depth comparison of remote control and automation capabilities of terminal reuse tools A family of modern terminal productivity tools: In-depth guide to Yazi, Zellij, Starship and Ghostty Cursor + Claude Code + Codex three-layer stack: a composable ecosystem of AI programming tools Written by Jermine. View original text.\n","date":"10 August 2026","permalink":"https://beato.app/blog/posts/herdr-complete-guide-ai-agent-runtime/","section":"All Articles","summary":"\u003cblockquote\u003e\n\u003cp\u003eA terminal workspace manager that allows AI agents to never go offline.\u003c/p\u003e\n\u003c/blockquote\u003e","title":"A Complete Guide to Herdr for AI Coding Workflows"},{"content":" When a modern terminal multiplexer meets an AI agent multiplexer, the visualization capabilities of macOS native terminals are superimposed.\nIntroduction: Terminal Dilemma in the AI Coding Era #If you deal with AI coding agents such as Claude Code, Codex, and OpenCode every day, you must have experienced this scene: there are a row of tabs in the terminal, each running different tasks, some are waiting for authorization, some are compiling, and some are stuck - but you can\u0026rsquo;t tell which one is which. Switching back and forth, the context is lost and the rhythm is broken.\nAlthough traditional tmux can solve the multi-pane problem, it knows nothing about the status of the AI ​​agent. A bunch of AI dialog boxes opening in the browser? That is even more of a betrayal to the end user.\nSo, I found a combination solution:Zellij + Herdr + cmux. The three tools each perform their own duties, and together they form the smoothest AI coding workflow I have ever experienced.\nLayer 1: Zellij — a modern terminal multiplexer #What is it? #Zellij is a modern terminal multiplexer written in Rust. You can think of it as a \u0026ldquo;modern version\u0026rdquo; of tmux. It allows you to manage multiple sessions, tabs, and panes in a single terminal window without requiring complex configuration like tmux.\nWhy choose it instead of tmux? #Ready to use out of the box, zero configuration: Zellij’s design philosophy is “You shouldn’t sacrifice simplicity for the sake of power.” You can use it as soon as you open it. The status bar directly displays all available shortcut keys. No need to memorize the manual.\n**Unique UI innovation **: Zellij introduces the concepts of ** floating panes (floating panes) and ** stacking panes(stacked panes). Floating panes can float above the interface like floating windows in an IDE, while stacked panes allow multiple terminals to be stacked in the same position and accessed by switching - which is extremely useful when debugging multitasking.\nLayout automation: Zellij\u0026rsquo;s layout system allows you to use KDL files to describe a complete development environment - several panes, what commands to run respectively, and how to arrange them. Configure once and launch the entire workspace with one click.\nSession persistence: Close the terminal window? no problem. Zellij\u0026rsquo;s session management is built-in, and the previous session will be automatically restored every time you open it.\nPlug-in system: Supports writing plug-ins in any language compiled to WebAssembly. The community already has many useful plug-ins, such as zellij-workspace, which can apply layouts in existing sessions.\nMy usage #Zellij is my entire workflowfoundation. Opening the terminal, Zellij started automatically, restoring all my previous sessions. There is one session for each project, and each session is divided into tabs according to functions - one tab for code editing, one tab for log monitoring, and one tab for AI agents.\nSecond level: Herdr — the “shepherd” of AI agents #What is it? #If Zellij is a universal terminal multiplexer, then Herdr is , a terminal multiplexer specially designed for AI coding agents. You can think of it as \u0026ldquo;tmux, but each pane knows the AI ​​agent you are running.\u0026rdquo;\nCore Advantages #Each agent has a real terminal: Each pane of Herdr is a real PTY (pseudo terminal), not a simulation of a terminal by a GUI application. This means that full-screen TUI applications can also render normally without compatibility issues.\nAgent status at a glance: Herdr can automatically detect the status of the AI ​​agent running in each window - working (working), blocked (waiting for input), done (completed) or idle (idle). Just glance at it and you\u0026rsquo;ll know which agent is waiting for your response.\ncontinues to run after detachment: You can detach at any time, turn off the terminal, and all agents in the Herdr background will continue to work. attach back from any terminal (even via SSH) and the scene is intact.\nNative mouse support: Herdr is not a \u0026ldquo;keyboard first, mouse OK\u0026rdquo; tool - it treats the mouse as a first-class citizen. Click to switch panes, drag the border to resize, and right-click the menu to split panes. Even novices can get started immediately.\nScriptable: Herdr provides a local Socket API and CLI that the agents themselves can call - an agent can read the output of another pane, wait for state changes, and even create new panes.\nMy usage #In a tab in Zellij, I launch Herdr. Then in this Herdr session, I simultaneously ran:\nA Claude Code is refactoring the backend module A Codex writing front-end components An OpenCode running test case Each has its own terminal and context. Which ones are stuck and which ones require my authorization, Herdr’s status bar makes it clear. Need to add an agent temporarily? prefix+v Split a new pane and start working directly.\nThe third layer: cmux — macOS native AI terminal #What is it? #cmux is amacOS native terminal application built on Ghostty, designed specifically for AI coding agents. It is not an Electron shell, but a native application written in Swift and AppKit, with fast startup and low memory.\nWhy add cmux on top of Zellij + Herdr? #Because of some things, no matter how good the terminal TUI is, it is not as smooth as the native GUI. cmux fills this gap.\nNotification Rings: This is the core killer feature of cmux. When the agent requires your attention (such as waiting for authorization, encountering an error), a blue halo will appear in the pane and the tab will light up. All pending notifications are concentrated in one panel, and you can jump to the corresponding location with one click. No more rummaging through dozens of windows.\nVertical tab page + sidebar: The sidebar displays the Git branch, PR status, working directory, listening port and latest notification text of each workspace. The information density is extremely high and clear at a glance.\nBuilt-in browser pane: cmux has a built-in browser that can be opened next to the terminal. What\u0026rsquo;s even more powerful is that it can import cookies and sessions from 20+ browsers such as Chrome, Firefox, Arc, etc., and the browser pane will open in an authenticated state. Debug OAuth callbacks and view API documentation without having to switch out of your terminal.\nSSH remote sessions: cmux ssh user@remote creates a workspace directly for the remote machine, and the browser pane is also routed through the remote network, localhost works out of the box.\nProgrammable CLI + Socket API: Like Herdr, cmux also provides CLI and Socket API, which can programmatically create workspaces, split panes, send keystrokes, and automate browsers.\nMy usage #cmux is my \u0026ldquo;command center\u0026rdquo;. I open a terminal pane in cmux, run Zellij in it (yes, Zellij can run in the terminal pane of cmux), and then run Herdr in Zellij. Three levels of nesting, each performing its own duties:\ncmux layer: responsible for global notifications, multi-project overview, built-in browser Zellij layer: Responsible for the pane layout and session management of each project Herdr layer: Responsible for the state awareness and parallel scheduling of AI agents Three Powerful Alliance: Practical Workflow #The following is my real daily workflow:\nMorning start # Open cmux (macOS native application, open in seconds) The sidebar of cmux automatically displays the Git status and PR information of all my projects In the cmux terminal pane, Zellij starts automatically and restores all yesterday\u0026rsquo;s sessions Switch to Zellij’s “AI” tab, Herdr is already running in the background, and all agents are restored to their previous state. in the encoding process # Main coding: Write code in a pane of Zellij Parallel AI task: Run 2-3 AI agents at the same time in Herdr - one for reconstruction, one for writing tests, and one for checking documents Status Monitoring: Take a glance at Herdr’s status bar to know who is busy and who is waiting. Notification reminder: Which agent needs my authorization, the cmux notification ring lights up, click to jump directly Quick verification: Need to see API documentation? cmux\u0026rsquo;s built-in browser opens next to it without having to cut out the terminal Call it a day after get off work # Turn off cmux directly (or detach) Zellij session is saved persistently, and all agents in Herdr continue to run in the background. opened it the next day and everything was restored to the same state as before. remote office # Connect to your home machine via SSH on your company computer runs herdr attach, all agents are restored on site cmux\u0026rsquo;s SSH session also supports the full functionality of remote terminals Summary: Why these three? # Tools Positioning irreplaceable value Zellij modern terminal multiplexer out-of-the-box, floating/stacked panes, layout automation, session persistence Herdr AI agent multiplexer Agent state awareness, real terminal, scriptable, mouse native cmux macOS native AI terminal notification ring, vertical tabs, built-in browser, native performance Either one is very strong when used alone, but the combination is the real \u0026ldquo;1+1+1\u0026gt;3\u0026rdquo;:\nZellij provides flexible terminal layout and session management Herdr makes AI agents observable and schedulable cmux uses the native GUI to supplement the notifications and visualizations that the terminal TUI cannot do. These three are not in a competitive relationship, but a collaborative relationship in which is vertically layered and each performs its own duties. cmux provides a native macOS experience at the outermost layer, Zellij manages terminal sessions at the middle layer, and Herdr schedules AI agents at the core layer.\nIf you are also a developer who deals with multiple AI coding agents every day, you might as well try this combination. The installation command is placed here, you can take it away without thanks:\n# Zellij brew install zellij # Herdr brew install herdr # 或 curl -fsSL https://herdr.dev/install.sh | sh # cmux brew tap manaflow-ai/cmux brew install --cask cmux Then open cmux, run Zellij in it, and run Herdr in Zellij - start to experience what \u0026ldquo;the final workflow of AI coding\u0026rdquo; is.\nrelated articles # A family of modern terminal productivity tools: In-depth guide to Yazi, Zellij, Starship and Ghostty Cursor + Claude Code + Codex three-layer stack: a composable ecosystem of AI programming tools CC Switch: Swiss Army Knife for unified management of Claude Code, Codex, Gemini CLI and other AI tools The terminal tool tmux not only perfectly replaces nohup \u0026amp; screen and other process daemon commands Written by Jermine. View original text.\n","date":"10 August 2026","permalink":"https://beato.app/blog/posts/terminal-ai-coding-workflow-zellij-herdr-cmux/","section":"All Articles","summary":"\u003cblockquote\u003e\n\u003cp\u003eWhen a modern terminal multiplexer meets an AI agent multiplexer, the visualization capabilities of macOS native terminals are superimposed.\u003c/p\u003e\n\u003c/blockquote\u003e","title":"Build an AI Coding Workflow with Zellij, Herdr, and cmux"},{"content":"","date":null,"permalink":"https://beato.app/blog/categories/","section":"Categories","summary":"","title":"Categories"}]