yyZe0122/YunmengZe-Agent
حول
一个用 Go 编写的终端编码代理。探索代码库,编辑文件,并通过交互式界面或可脚本的 CLI 执行命令 A coding agent for your terminal, written in Go. Explore a codebase, edit files and run commands through an interactive UI or a scriptable CLI.
أدوات التطويرما يمكنك فعله
- Terminal workflow — switch models, resume conversations, steer an active turn and answer questions without leaving the terminal.
- Two execution modes — inspect and plan with plan, or let agent edit files and execute commands.
- Your choice of model — connect OpenAI-compatible Chat Completions, Responses, Anthropic Messages or Gemini services, including compatible local endpoints.
- Local and ephemeral sessions — Files hold conversation history and compacted context by default. Use --ephemeral to keep conversations in memory until exit.
النمو المقاس للنجوم
- خلال 24 ساعة
- -٣
- خلال 7 أيام
- +٣
- خلال 15 يومًا
- +٢٢
- خلال شهر
- جارٍ جمع السجل
تغيّر صافي النجوم خلال فترات متداخلة، وليس مجموعًا يوميًا. تبقى القياسات المفقودة فارغة. النجوم تقيس الاهتمام لا جودة البرمجيات.
README.md
الأصلYunmengZe Agent
A text-based coding agent for your terminal, written in Go. Explore a codebase, edit files and run commands through an interactive UI or a scriptable CLI.
简体中文 · Documentation · Releases · Contributing
Features
- Terminal workflow — switch models, resume conversations, steer an active turn and answer questions without leaving the terminal.
- Two execution modes — inspect and plan with
plan, or letagentedit files and execute commands. - Your choice of model — connect OpenAI-compatible Chat Completions, Responses, Anthropic Messages or Gemini services, including compatible local endpoints.
- Local and ephemeral sessions — Files hold conversation history and compacted context by default. Use
--ephemeralto keep conversations in memory until exit. - Optional capabilities — load file-based skills and MCP servers, run up to two independent child tasks and search the web. Each capability can be disabled in configuration.
- One executable —
ymzruns on Windows, Linux and macOS; no separate service is needed.
Conversation storage is local. Model calls and enabled web and MCP tools use the services you configure.
Installation
Prebuilt releases support Windows, Linux and macOS on amd64 and arm64. Go is only required when building from source.
Windows — Scoop:
scoop bucket add ymz https://github.com/yyZe0122/scoop-bucket
scoop install ymz/ymz
macOS — Homebrew:
brew install --cask yyZe0122/tap/ymz
Linux / macOS — user installer:
curl -fsSL https://raw.githubusercontent.com/yyZe0122/YunmengZe-Agent/main/packaging/scripts/install-user.sh | sh
Windows PowerShell — user installer without Scoop:
irm https://raw.githubusercontent.com/yyZe0122/YunmengZe-Agent/main/packaging/scripts/install.ps1 | iex
The user installers download the latest stable release, verify SHA-256 and preserve existing configuration. Reopen your terminal after installation, then run ymz version.
You can also download an archive from Releases, verify it against checksums.txt, and place ymz (ymz.exe on Windows) on your PATH.
Build from source
To build the current checkout, install Go 1.26+ and clone the repository:
git clone https://github.com/yyZe0122/YunmengZe-Agent.git
cd YunmengZe-Agent
Linux / macOS:
make build
./bin/ymz
Windows PowerShell:
./scripts/dev.ps1 -Action build
./bin/ymz.exe
See installation for updates, install locations and version selection. Check the version's release notes before upgrading an existing installation.
Quick start
- Run
ymzin an interactive terminal to create the configuration files in~/.yunmengze($env:USERPROFILE\.yunmengzeon Windows). For headless setup, runymz config validate. - Edit
agent.jsonto select your provider and model, and add the API key to theenvfile. The generated example usesdeepseek1/deepseek-chatandDEEPSEEK1_API_KEY; the first launch reports a missing key until it is set. - Run
ymz config validateto check local configuration, then startymzfrom the project directory and enter a task. This check does not contact model services.
ymz
ymz --mode plan
ymz --continue
ymz run --mode plan "Explain how this project is organized"
ymz run --ephemeral --mode plan "Summarize the working tree"
ymz run --json "Summarize the changes in this workspace"
Use ymz models to list the configured main model, role models and provider catalog entries without requiring complete API credentials.
Configuration
YMZ_HOME changes the configuration directory, which holds transcripts under sessions/. Use ymz sessions check to verify them. agent.local.json takes precedence over agent.json; the two files are not merged. Start from the configuration example to use another provider or model.
Put long-term preferences and work habits in the global <config>/AGENTS.md or the project-specific <workspace>/.yunmengze/AGENTS.md. See runtime rules.
Each submission shares a budget of 32 model requests and 30 minutes of active time with its child tasks. Waiting for TUI answers pauses the time budget. The run also stops after three identical tool batches or three repetitions of an alternating pair. Configure these limits under chat.
The following switches default to true, including when omitted. Set a switch to false to disable that capability. Existing sessions remain stored.
| Capability | Configuration key |
|---|---|
| File skills | chat.skills.enabled |
| Child tasks | chat.task.enabled |
| Web search, extraction and web child tasks | chat.web.enabled |
| MCP integrations | mcp.enabled |
| Automatic context compaction | chat.compaction.enabled |
Manual /compact remains available when automatic compaction is off.
Missing credential references block startup only for the main model or enabled capabilities. Other affected models appear unavailable and report the reason when selected. Configuration, resolved credentials and resolution errors are fixed at startup; restart after changing them. See configuration for model roles, defaults and enabled-feature dependencies.
Working with the agent
| Mode | Behavior |
|---|---|
agent — default |
Executes tools with your current OS account's access, including file changes and shell commands, without approval prompts. |
plan |
Allows inspection, search and discussion. The tool registry blocks file changes, shell and MCP. |
In the terminal UI, press Tab to switch modes while idle, Ctrl+L to choose a model, and Ctrl+S to resume a session. Enter sends a message or queues steering during a run; Esc cancels the turn. /help lists commands.
The TUI requires terminal input and output. For scripts, use ymz run and put flags before the task text. --json emits one JSON event per line. Resuming with --session requires a non-empty ID. Add --ephemeral to run or tui to use existing configuration and skip templates, session files and TUI logs, including Bubble Tea diagnostics. --mode still controls tool access. CLI and TUI usage · Execution boundaries
Documentation
Double-click docs/wiki/index.html to read the wiki offline, or run start-wiki.cmd or python scripts/serve_wiki.py from the repository root to browse it locally.
- Getting started and configuration
- Tools, rules and skills
- Architecture, provider adapters and session storage
- Contributing and release process
CLI and TUI share one in-process Engine. Optional capabilities use explicit composition and startup switches; source removal also requires updating their configuration, prompts and UI entries. See the module boundaries and current review and optimization plan.
The wiki describes the current checkout. For a packaged release, use the documentation at its matching Git tag.
License
استكشف مشاريع مشابهة ومرتبطة
جارٍ التحميل…