p.enthalabs

GitHub - computerex/z: Agentic harness optimized for z.ai GLM models

Skip to content

Navigation Menu

[](https://github.com/)

Sign in

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

- Issues Plan and track work

- 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

- Why GitHub

- Documentation

- Blog

- Changelog

- Marketplace

View all features

* Solutions

* BY COMPANY SIZE

- Enterprises

- Small and medium teams

- Startups

- Nonprofits

* BY USE CASE

- App Modernization

- DevSecOps

- DevOps

- CI/CD

- View all use cases

* BY INDUSTRY

- Healthcare

- Financial services

- Manufacturing

- Government

- View all industries

View all solutions

* Resources

* EXPLORE BY TOPIC

- AI

- Software Development

- DevOps

- Security

- View all topics

* EXPLORE BY TYPE

- Customer stories

- Events & webinars

- Ebooks & reports

- Business insights

- GitHub Skills

* SUPPORT & SERVICES

- Documentation

- Customer support

- Community forum

- Trust center

- Partners

View all resources

* Open Source

* COMMUNITY

- GitHub Sponsors Fund open source developers

* PROGRAMS

- Security Lab

- Maintainer Community

- GitHub Stars

- Archive Program

* REPOSITORIES

- Topics

- Trending

- Collections

* 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/

Sign in

Sign up

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

- Pull requests 0

- Actions

- Projects

- Security and quality 0

- Insights

Additional navigation options

- Code

- Issues

- Pull requests

- Actions

- Projects

- Security and quality

- Insights

[](https://github.com/computerex/z)

master

**3**Branches**0**Tags

[](https://github.com/computerex/z/branches)[](https://github.com/computerex/z/tags)

Go to file

Code

Open more actions menu

Latest commit

![Image 5: computerex](https://github.com/computerex)computerex

Update installer

Aug 28, 2026

c273c75·Aug 28, 2026

History

210 Commits

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)

![Image 6: z terminal](https://github.com/computerex/z/blob/master/z.jpg)

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)

![Image 7: z setup wizard](https://github.com/computerex/z/blob/master/setup.jpg)

![Image 8: z provider selection](https://github.com/computerex/z/blob/master/providers.jpg)

![Image 9: z model selection](https://github.com/computerex/z/blob/master/models.jpg)

Plugins: drop a `.py` in `~/.z/plugins/`.

MIT

About

Agentic harness optimized for z.ai GLM models

Resources

Readme

Activity

Stars

**6** stars

Watchers

**0** watching

Forks

**1** fork

Report repository

Releases

Packages

Contributors

Languages

Footer

[](https://github.com/) © 2026 GitHub,Inc.

Footer navigation

- Terms

- Privacy

- Security

- Status

- Community

- Docs

- Contact

- Manage cookies

- Do not share my personal information

You can’t perform that action at this time.