GitHub - computerex/z: Agentic harness optimized for z.ai GLM models
Navigation Menu
[](https://github.com/)
Appearance settings
* Platform
* AI CODE CREATION
- GitHub Copilot Write better code with AI
- GitHub Copilot app Direct agents from issue to merge
- MCP Registry Integrate external tools
* DEVELOPER WORKFLOWS
- Actions Automate any workflow
- Codespaces Instant dev environments
- Code Review Manage code changes
- Code Quality Enforce quality at merge
* APPLICATION SECURITY
- GitHub Advanced Security Find and fix vulnerabilities
- Code security Secure your code as you build
- Secret protection Stop leaks before they start
* EXPLORE
- Blog
* Solutions
* BY COMPANY SIZE
- Startups
* BY USE CASE
- DevOps
- CI/CD
* BY INDUSTRY
* Resources
* EXPLORE BY TOPIC
- AI
- DevOps
- Security
* EXPLORE BY TYPE
* SUPPORT & SERVICES
- Partners
* Open Source
* COMMUNITY
- GitHub Sponsors Fund open source developers
* PROGRAMS
* REPOSITORIES
- Topics
- Trending
* Enterprise
* ENTERPRISE SOLUTIONS
- Enterprise platform AI-powered developer platform
* AVAILABLE ADD-ONS
- GitHub Advanced Security Enterprise-grade security features
- Copilot for Business Enterprise-grade AI features
- Premium Support Enterprise-grade 24/7 support
- Pricing
Search/
Appearance settings
You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
computerex/**z**Public
- NotificationsYou must be signed in to change notification settings
- Fork 1
- Star 6
- Code
- Issues 0
- Actions
- Projects
- Insights
Additional navigation options
- Code
- Issues
- Actions
- Projects
- Insights
[](https://github.com/computerex/z)
master
[](https://github.com/computerex/z/branches)[](https://github.com/computerex/z/tags)
Go to file
Code
Open more actions menu
Latest commit
computerex
Aug 28, 2026
c273c75·Aug 28, 2026
History
Open commit details
[](https://github.com/computerex/z/commits/master/)210 Commits
Folders and files
| Name | Name | Last commit message | Last commit date | | --- | --- | --- | --- | | [.claude](https://github.com/computerex/z/tree/master/.claude ".claude") | [.claude](https://github.com/computerex/z/tree/master/.claude ".claude") | | | | [.z/plugins](https://github.com/computerex/z/tree/master/.z/plugins "This path skips through empty directories") | [.z/plugins](https://github.com/computerex/z/tree/master/.z/plugins "This path skips through empty directories") | | | | [cmd/cos](https://github.com/computerex/z/tree/master/cmd/cos "This path skips through empty directories") | [cmd/cos](https://github.com/computerex/z/tree/master/cmd/cos "This path skips through empty directories") | | | | [docs](https://github.com/computerex/z/tree/master/docs "docs") | [docs](https://github.com/computerex/z/tree/master/docs "docs") | | |
| [examples/plugins](https://github.com/computerex/z/tree/master/examples/plugins "This path skips through empty directories") | [examples/plugins](https://github.com/computerex/z/tree/master/examples/plugins "This path skips through empty directories") | | |
| [src/harness](https://github.com/computerex/z/tree/master/src/harness "This path skips through empty directories") | [src/harness](https://github.com/computerex/z/tree/master/src/harness "This path skips through empty directories") | | | | [tests](https://github.com/computerex/z/tree/master/tests "tests") | [tests](https://github.com/computerex/z/tree/master/tests "tests") | | | | [tickets](https://github.com/computerex/z/tree/master/tickets "tickets") | [tickets](https://github.com/computerex/z/tree/master/tickets "tickets") | | | | [.dockerignore](https://github.com/computerex/z/blob/master/.dockerignore ".dockerignore") | [.dockerignore](https://github.com/computerex/z/blob/master/.dockerignore ".dockerignore") | | | | [.gitignore](https://github.com/computerex/z/blob/master/.gitignore ".gitignore") | [.gitignore](https://github.com/computerex/z/blob/master/.gitignore ".gitignore") | | | | [CLAUDE.md](https://github.com/computerex/z/blob/master/CLAUDE.md "CLAUDE.md") | [CLAUDE.md](https://github.com/computerex/z/blob/master/CLAUDE.md "CLAUDE.md") | | | | [Dockerfile.build](https://github.com/computerex/z/blob/master/Dockerfile.build "Dockerfile.build") | [Dockerfile.build](https://github.com/computerex/z/blob/master/Dockerfile.build "Dockerfile.build") | | | | [Dockerfile.test](https://github.com/computerex/z/blob/master/Dockerfile.test "Dockerfile.test") | [Dockerfile.test](https://github.com/computerex/z/blob/master/Dockerfile.test "Dockerfile.test") | | | | [Dockerfile.z](https://github.com/computerex/z/blob/master/Dockerfile.z "Dockerfile.z") | [Dockerfile.z](https://github.com/computerex/z/blob/master/Dockerfile.z "Dockerfile.z") | | | | [README.md](https://github.com/computerex/z/blob/master/README.md "README.md") | [README.md](https://github.com/computerex/z/blob/master/README.md "README.md") | | | | [build.py](https://github.com/computerex/z/blob/master/build.py "build.py") | [build.py](https://github.com/computerex/z/blob/master/build.py "build.py") | | | | [harness.spec](https://github.com/computerex/z/blob/master/harness.spec "harness.spec") | [harness.spec](https://github.com/computerex/z/blob/master/harness.spec "harness.spec") | | | | [models.jpg](https://github.com/computerex/z/blob/master/models.jpg "models.jpg") | [models.jpg](https://github.com/computerex/z/blob/master/models.jpg "models.jpg") | | | | [providers.jpg](https://github.com/computerex/z/blob/master/providers.jpg "providers.jpg") | [providers.jpg](https://github.com/computerex/z/blob/master/providers.jpg "providers.jpg") | | | | [pyproject.toml](https://github.com/computerex/z/blob/master/pyproject.toml "pyproject.toml") | [pyproject.toml](https://github.com/computerex/z/blob/master/pyproject.toml "pyproject.toml") | | | | [pytest.ini](https://github.com/computerex/z/blob/master/pytest.ini "pytest.ini") | [pytest.ini](https://github.com/computerex/z/blob/master/pytest.ini "pytest.ini") | | | | [python-logo.png](https://github.com/computerex/z/blob/master/python-logo.png "python-logo.png") | [python-logo.png](https://github.com/computerex/z/blob/master/python-logo.png "python-logo.png") | | | | [setup.jpg](https://github.com/computerex/z/blob/master/setup.jpg "setup.jpg") | [setup.jpg](https://github.com/computerex/z/blob/master/setup.jpg "setup.jpg") | | | | [z.jpg](https://github.com/computerex/z/blob/master/z.jpg "z.jpg") | [z.jpg](https://github.com/computerex/z/blob/master/z.jpg "z.jpg") | | | | [z.spec](https://github.com/computerex/z/blob/master/z.spec "z.spec") | [z.spec](https://github.com/computerex/z/blob/master/z.spec "z.spec") | | | | View all files |
Repository files navigation
- README
More items
z
[](https://github.com/computerex/z#z)

An agentic coding harness for the terminal. Bring your own API keys — hot-swap models mid-session with `/providers use`. No subscriptions.
Quick start
[](https://github.com/computerex/z#quick-start)
undefinedshell pip install -e . z --install # one-time setup wizard z undefined
Config lives in `~/.z.json`:
undefinedjson { "api_url": "https://api.z.ai/api/paas/v4/", "api_key": "sk-...", "model": "glm-4.7" } undefined
Highlights
[](https://github.com/computerex/z#highlights)
- **26 providers, one client** — Z.AI, DeepSeek, Anthropic, OpenAI, Ollama, Bedrock, Copilot OAuth, OpenRouter, all via LiteLLM.
- **Constant streaming** — every token, including reasoning, streams live. No spinners.
- **Telegram remote** — `z --telegram <token>` and drive the agent from your phone.
- **Context that survives compaction** — half/quarter/lastTwo strategies, todo persistence, tool-result caching.
- **Claude Code semantics** — CLAUDE.md, hooks, persistent memory, cron tasks, sub-agents, MCP.
- **19 built-in tools** — file ops, shell, search, web search, image analysis, background processes.
Commands
[](https://github.com/computerex/z#commands)
| Command | What | | --- | --- | | `/providers use <name>` | Switch models mid-session | | `/compact` | Force context compaction | | `/cost` | Token usage and spend | | `/todo` | Todo panel | | `!cmd` | Run shell command | | `Ctrl+T` | Toggle reasoning effort |
Screenshots
[](https://github.com/computerex/z#screenshots)



Plugins: drop a `.py` in `~/.z/plugins/`.
MIT
About
Agentic harness optimized for z.ai GLM models
Resources
Stars
**6** stars
Watchers
**0** watching
Forks
Releases
Packages
Contributors
Languages
Footer
[](https://github.com/) © 2026 GitHub,Inc.
Footer navigation
- Terms
- Privacy
- Security
- Status
- Docs
- Contact
- Manage cookies
- Do not share my personal information
You can’t perform that action at this time.