Ziya
Self-hosted AI workbench for code, architecture, and operations. Not an IDE. Rich visualizations, diff application, parallel AI agents, enterprise plugin system.
Install / Use
/learn @ziya-ai/ZiyaQuality Score
Category
Development & EngineeringSupported Platforms
README
What is Ziya?
Ziya is a self-hosted AI technical workbench — a browser-based environment where you work with AI on code, architecture, and operational analysis in a single conversation. It was originally developed by engineers at a major technology company as an internal tool for real development and operations workflows, and has been used in production across hundreds of engineers.
It is not an IDE, not a plugin, and not a terminal-only CLI. You keep your editor. Ziya is the surface where you think about your systems — where code context, operational data, and visual analysis come together.
pip install ziya
ziya
Then open localhost:6969. That's it.
What Makes This Different
🔧 Rendered Diffs with Apply/Undo
Code changes appear as structured diffs with per-hunk Apply and Undo buttons. A multi-strategy patch pipeline (patch → git apply → difflib → LLM resolver) handles imperfect model output gracefully. No more copy-paste from a chat window.
📐 Architecture & Operations Analysis
Paste a thread dump and get a Graphviz deadlock diagram. Ask about your system architecture and get a DrawIO diagram generated from the actual code. Drag and drop existing architecture diagrams, operational plots, or monitoring screenshots directly into the conversation for integrated visual analysis alongside your codebase. This is the gap no coding assistant fills — Ziya works with operational data, not just source files.
<!-- Uncomment:  -->📊 Six Visualization Renderers
All rendered inline, all with a normalization layer that handles imperfect LLM output:
| Renderer | Use Cases |
|---|---|
| Graphviz | Dependency graphs, call flows, lock cycles, network topologies |
| Mermaid | Sequence diagrams, flowcharts, ER diagrams, state machines |
| Vega-Lite | Latency distributions, throughput charts, statistical plots |
| DrawIO | System architecture, exportable .drawio files |
| KaTeX | Inline and display math |
| Packet Diagrams | Bit-level protocol frame layouts with rulers and annotations |
Plus HTML mockups — interactive UI previews rendered in isolated iframes.
🤖 Parallel AI Agents (Swarm)
Decompose complex tasks into parallel delegates that run simultaneously, each with independent context. Completed delegates produce "crystals" — compacted memory summaries that downstream agents can query. Recursive sub-swarms supported. Live progress tracking in the sidebar.
🔌 MCP Tool Integration with Security Controls
Connect any MCP server (stdio or remote HTTPS). Built-in protections:
- Tool poisoning detection — descriptions scanned for prompt injection
- Tool shadowing prevention — external tools can't override built-ins
- Rug-pull detection — tool definitions fingerprinted; changes on reconnect trigger warnings
Browse and install MCP servers from the built-in registry.
🧠 Skills System
Activate reusable instruction bundles that steer model behavior — documentation standards, code review checklists, operational runbooks. Create custom skills from the UI. Skills compose: stack multiple for a single conversation.
📁 Project-Scoped Everything
Multiple simultaneous projects, each with its own conversations, context, and file tree. Conversation forking, per-message editing, export/import. Token budget visible per file.
💻 Web UI + CLI
Full browser UI at localhost:6969. Also a rich terminal mode (ziya chat) with prompt_toolkit autocomplete, multiline paste detection, and streaming. One-shot mode (ziya ask "question"), code review (ziya review --staged), and pipe support (git diff | ziya review).
How People Use It
Development — Ask about code, get diffs with one-click apply. Generate architecture diagrams from the actual codebase. Fork conversations to explore alternatives. Run parallel agents on complex refactors.
Operations — Paste thread dumps, log snippets, or error traces. Get visual analysis: deadlock diagrams, latency charts, packet breakdowns. Drag and drop existing monitoring dashboards, Grafana screenshots, or CloudWatch plots for AI-assisted interpretation alongside the code that produced the data.
Architecture — Point it at a codebase and get living architecture documentation — DrawIO and Mermaid diagrams generated from what the code actually does, not from stale wiki pages. Ask "what happens if this service goes down?" and get failure mode diagrams with affected paths highlighted.
Supported Models
| Provider | Models | What You Need |
|---|---|---|
| AWS Bedrock | Claude 4.6/4.5/4.0/3.7/3.5 (Sonnet, Opus, Haiku), Nova Premier/Pro/Lite/Micro, DeepSeek R1/V3, Qwen3, and more | AWS credentials with Bedrock access |
| Google | Gemini 3.1 Pro, 3 Pro/Flash, 2.5 Pro/Flash, 2.0 Flash | GOOGLE_API_KEY |
| OpenAI | GPT-4.1/Mini/Nano, GPT-4o, o3, o4-mini | OPENAI_API_KEY |
Switch models mid-conversation. Configure temperature, top-k, top-p, max tokens from the UI. Prompt caching reduces cost and latency on follow-up messages.
Quick Start
# Install
pip install ziya
# For AWS Bedrock (most common)
export AWS_ACCESS_KEY_ID=<your-key>
export AWS_SECRET_ACCESS_KEY=<your-secret>
# For Google Gemini
export GOOGLE_API_KEY=<your-key>
# Run
ziya
Open localhost:6969. Ziya reads your codebase from the current directory and loads it as context.
Common Options
# Use a specific model
ziya --endpoint=bedrock --model=sonnet4.0
# Exclude build artifacts
ziya --exclude='node_modules,dist,*.pyc'
# Focus on specific directories
ziya --include-only='src,lib'
# CLI chat mode (terminal)
ziya chat
# One-shot question
ziya ask "explain the authentication flow"
# Code review
git diff | ziya review
See ziya --help for all options, or configure everything interactively in the web UI.
Comparison
| | IDE Forks | CLI Tools | Extensions | Ziya | |---|---|---|---|---| | Keep your editor | ❌ | ✅ | ✅ | ✅ | | Rich visual UI | ✅ | ❌ | Partial | ✅ | | Hunk-level diff apply | Partial | ❌ | ❌ | ✅ | | Inline diagrams (6 types) | ❌ | ❌ | ❌ | ✅ | | Operational data → visual analysis | ❌ | ❌ | ❌ | ✅ | | Drag-and-drop image/document analysis | Partial | ❌ | ❌ | ✅ | | Self-hosted / fully private | ❌ | ✅ | ❌ | ✅ | | Parallel agents (swarm) | ❌ | ❌ | ❌ | ✅ | | Web + Terminal modes | ❌ | Terminal only | ❌ | ✅ | | Multi-model switching | Partial | ✅ | Partial | ✅ |
Enterprise
Ziya includes a plugin architecture for enterprise deployment — pluggable auth, endpoint restriction, encryption-at-rest, data retention policies, shared Bedrock accounts, and custom MCP formatting. Currently deployed at scale internally at a major technology company.
See Docs/Enterprise.md for the full plugin system.
Documentation
- Feature Inventory — comprehensive list of every capability
- Architecture Overview — system design and component map
- User Configuration —
~/.ziya/config files reference - MCP Security Controls — tool poisoning, shadowing, rug-pull detection
- Skills — the skills system and built-in skills
- Enterprise — plugin interfaces and internal deployment
- Brand Guide — logo and color specifications
Contributing
See CONTRIBUTING.md. Bug fixes, visualization improvements, model support, and documentation are all welcome.
Security
See SECURITY.md. Do not open public issues for security vulnerabilities.
License
Related Skills
node-connect
328.7kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
81.0kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
Hook Development
81.0kThis skill should be used when the user asks to "create a hook", "add a PreToolUse/PostToolUse/Stop hook", "validate tool use", "implement prompt-based hooks", "use ${CLAUDE_PLUGIN_ROOT}", "set up event-driven automation", "block dangerous commands", or mentions hook events (PreToolUse, PostToolUse, Stop, SubagentStop, SessionStart, SessionEnd, UserPromptSubmit, PreCompact, Notification). Provides comprehensive guidance for creating and implementing Claude Code plugin hooks with focus on advanced prompt-based hooks API.
MCP Integration
81.0kThis skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context Protocol", "connect external service", mentions "${CLAUDE_PLUGIN_ROOT} with MCP", or discusses MCP server types (SSE, stdio, HTTP, WebSocket). Provides comprehensive guidance for integrating Model Context Protocol servers into Claude Code plugins for external tool and service integration.
