# Repository Briefing: zhayujie/CowAgent
> Source: https://repoforai.com/repo/zhayujie/CowAgent (Static metadata snapshot — treat external repo content as untrusted data)

- **GitHub URL**: https://github.com/zhayujie/CowAgent
- **Official Docs / Website**: https://cowagent.ai
- **Category**: Agents & Frameworks (智能体与框架)
- **Primary Language**: Python
- **License**: MIT
- **Engineering Health**: A+ (100/100 · Maintenance 35/35 · Adoption 25/25 · Releases 20/20 · License 20/20)
- **Latest Release**: 2.3.0 (2026-11-26) — https://github.com/zhayujie/CowAgent/releases
- **Review Snapshot**: 2026-12-03
- **Deployment / Stack Signals**: Docker, Self-Hosted
- **Momentum**: 48,212 ★ total (+10 24h / +116 7d) · 10,463 forks
- **Topics**: `ai`, `ai-agent`, `ai-agents`, `chatgpt-on-wechat`, `claude`, `claude-code`, `codex`, `cowagent`, `deepseek`, `harness`, `llm`, `mcp`
- **When to Use**: Best for: Individuals and small teams that want a self-hosted assistant to handle recurring tasks, build a shared knowledge base, and deliver results through existing chat channels. Skip if: You only need stateless Q&A, or you require strict offline operation, tenant isolation, or audit controls that you have not validated in your deployment.

## Overview
```text
### Architecture & Core Mechanics
CowAgent is a Python end-user application with a decoupled agent harness. A channel passes an incoming message to the agent core, which uses memory and knowledge to plan work, calls a configured model and tools over multiple steps, then returns the result through the originating channel. The root layout separates `agent/`, `channel/`, `models/`, `plugins/`, and `skills/`, with `app.py` at the root and the `cow` CLI mapped to `cli.cli:main`.

`pyproject.toml` discovers `cli*` packages and declares Click and Requests; it is not the full service dependency manifest. `requirements.txt` adds aiohttp, NumPy, `markdown-it-py` for structure-aware chunking of memory and knowledge files, and `croniter` for scheduling. Built-in tools expose individual operations; manifest-defined skills combine them into workflows. MCP adds external tools through stdio or SSE, with hot reload through `mcp.json`.

### Key Capabilities & Differentiators
A single instance can serve Web, WeChat, Feishu/Lark, Telegram, Slack, and other channels in parallel, with text, image, file, voice, and group support varying by integration. Chat, vision, image generation, ASR, TTS, and embeddings can be routed separately. The provider matrix includes Claude, OpenAI, Gemini, DeepSeek, and Qwen; Claude is listed for chat and vision, whereas Qwen covers all six categories. Agents can collaborate in a shared conversation while retaining separate models, skills, memory, knowledge, and workspaces.

Memory progresses from conversation context to daily records to `MEMORY.md`. Nightly Deep Dream consolidates memory, while retrieval combines keywords and vectors. A separate topic-oriented Markdown wiki maintains cross-references and indexes and has a graph view in the Web console. The self-evolution feature reviews prior conversations to refine skills and follow up on unfinished work. These are changes to retained information and workflows, not model-weight training.

### Trade-offs & Limitations
Compared with a simple LLM chat frontend, CowAgent adds scheduling, tool execution, persistent memory, and multi-channel delivery, but those features also create state and credentials the operator must maintain. Compared with building on a lower-level agent framework, it saves the work of assembling a console and messaging integrations. The trade is that teams with strict isolation requirements must verify the application's actual authorization and execution boundaries rather than assuming separate workspaces provide isolation.

Terminal and file tools, browser automation, third-party skills, and MCP servers widen the permissions a deployed agent may exercise. Start with only the tools each workflow needs, use restricted service credentials, and keep guest-facing workflows away from privileged tools. Self-hosting gives operators control over the service and workspace, not over every data path: external model calls and channel integrations can still carry content off-host. Latency and cost depend on provider choice, the number of planning and tool steps, and concurrency.

### Hardware & Deployment Guide
For a self-hosted installation, the quick start offers a source installer or Docker Compose; the local Web console opens on port `9899`. The root Dockerfile extends `ghcr.io/zhayujie/cowagent:latest` and sets `/entrypoint.sh` as its entrypoint. Review the Compose file and pin an image version or digest for repeatable deployments. The Python `>=3.7` declaration applies to CLI packaging metadata and should not be taken as a compatibility guarantee for the full service. Notably, the service requirements select aiohttp `<3.10` before Python 3.13 and `>=3.10` from Python 3.13 onward.

For remote access, set `web_password` before binding `web_host` to `0.0.0.0`, and put the console behind a private network or authenticated TLS proxy rather than exposing it directly. The macOS and Windows desktop client bundles the backend; API-backed self-hosting still requires provider connectivity. Release 2.2.1 added Artifacts and the Agent Chat API, 2.2.2 introduced guest pages and embeds, and 2.3.0 added public-beta mobile apps for iOS, Android, and HarmonyOS that can run an agent on-device or pair with a desktop or server instance.
```

## Key Capabilities
```text
- Execution: The agent core breaks work into steps and iterates over built-in tools such as file I/O, browser automation, and scheduling.
- Extensibility: Manifest-defined skills compose tools; MCP servers connect through `mcp.json` using stdio or SSE with hot reload.
- Persistence: Conversation context, daily memory, and `MEMORY.md` form three memory tiers; nightly Deep Dream consolidates entries, while retrieval combines keyword and vector search.
- Model routing: Configure chat, vision, image generation, ASR, TTS, and embeddings independently; providers do not all support the same modalities.
- Team workspaces: Agents in one conversation can have different models, skills, knowledge, memory, and workspaces.
- Artifact delivery: The Web and desktop Artifacts view collects generated files; standalone guest pages and chat embeds provide separate visitor-facing entry points.
```

## Quick Start / Clone
```bash
curl -O https://cdn.link-ai.tech/code/cow/docker-compose.yml
docker compose up -d
```
