sagaz-ai
v0.4.1
Published
Sagaz AI orchestration ecosystem installer for Codex Desktop.
Maintainers
Readme
Sagaz
Sagaz is a local AI orchestration ecosystem designed for Codex Desktop. It turns a product request into a structured delivery process with specialized AI teams, explicit handoffs, detailed specifications, implementation, testing, high-standard UX/UI, guided GitHub operations, CI/CD readiness, and production-quality gates.
It is inspired by ideas from AIOX, CrewAI, AutoGen, LangChain, and enterprise governance platforms, but it is designed for one practical goal: make Codex Desktop easy to use for serious web and mobile software projects while keeping token usage low and technical quality high.
Designed For Codex Desktop
Sagaz is intended to be used inside Codex Desktop the way this repository was created: as a local Codex skill plus a Markdown orchestration ecosystem. The npm package only installs the skill and ecosystem files. It is not a standalone terminal agent runtime and it is not a replacement for Codex CLI.
What Sagaz Does
Sagaz organizes work into focused teams:
- Product strategy and requirements.
- Stack recommendation.
- Software architecture.
- UX, UI, and design systems.
- Implementation.
- QA and testing.
- Security and production readiness.
- GitHub commits, pull requests, issues, releases, and checks.
- Android/iOS mobile delivery.
- CI/CD and post-delivery monitoring.
Sagaz also guides the user through the process. At the end of each phase, it explains what was completed, which team should work next, why the next step matters, and asks permission before moving forward.
Why Use Sagaz
- Simple invocation: start with
Sagaz:and describe the goal. - Low token usage: load only the workflow, squad, task, or protocol needed for the current phase.
- Guided process: team handoffs require user approval.
- Production quality: gates for tests, security, builds, deployment, rollback, and residual risk.
- Generated code linting: Sagaz checks existing lint, format, typecheck, and static-analysis commands when it generates or changes code.
- Premium design: UX/UI, design systems, responsiveness, accessibility, and visual QA.
- Stack advisory: technology choices explained by cost, speed, scale, maintainability, deployment, and future changes.
- TypeScript strict and Supabase planning: TypeScript stacks default toward strict mode, and Supabase is evaluated for auth, relational data, storage, realtime, RLS, migrations, backups, and generated types.
- GitHub without guesswork: Sagaz recommends commits, pushes, pull requests, issues, and releases at the right time.
- Web and mobile: workflows for browser apps, websites, dashboards, Android, and iOS.
- Persistent state: Markdown run state records decisions, approvals, handoffs, risks, and test evidence.
- Operational memory: optional project or team memory records recurring preferences without storing secrets or bypassing approvals.
- Team onboarding: role-specific guides help PMs, designers, engineers, QA, and release reviewers invoke Sagaz consistently.
- Prompt matrix: copy-ready prompts help teams invoke Sagaz consistently for common scenarios.
- Training track: guided exercises help teams practice Sagaz safely before production use.
- Golden outputs: reference responses show what high-quality Sagaz answers should look like.
- Agent observability: compact traces record decisions, tools, evidence, failures, and recoveries.
- Durable checkpoints: long projects can resume across threads and refactors without losing context.
- Tool registry: Sagaz verifies and recommends tools such as GitHub CLI, Playwright, Vercel, Expo/EAS, Supabase, Firebase, Stripe, CI/CD, and observability services.
- Stack presets: common web, mobile, backend, database, and dashboard stacks are documented as starting points.
- Static site discipline: hand-built static sites use clean directory URLs by default, GitHub Pages-ready files, and a practical SEO baseline.
- Sagaz evaluations: scenario-based checks help prevent regressions in the orchestration system itself.
- Compatibility audits: Sagaz can check whether Windows, macOS, npm, Node.js, Codex Desktop, AI model behavior, GitHub, package contents, or external platform changes require a Sagaz update.
- Future-change safety: generated projects include detailed documentation for future refactors, improvements, feature additions, design consistency, UX preservation, invariants, and regression checks.
How It Works
Sagaz uses Markdown files as the source of truth. The main structure is:
ai-orchestration-ecosystem/Key areas:
workflows/: ready-made workflows for web, mobile, production, bug fixes, and refactoring.squads/: specialized teams.agents/: individual roles.tasks/: formal tasks with inputs, outputs, acceptance criteria, verification, and stop conditions.protocols/: rules for quality, handoffs, GitHub, production, design, CI/CD, and monitoring.tools/: tool and connector selection rules.stack-presets/: default stack recommendations and tradeoffs.evals/: checks for Sagaz's own reliability.examples/: reusable examples of common project flows.templates/: reusable artifacts for specs, QA, handoffs, run state, and releases.engineering/: deep software engineering standards.governance/: security, quality, versioning, and ecosystem maintenance.
Included Workflows
greenfield-web-app: create a website or web app from scratch.web-production-release: prepare a web app for production.mobile-app-production: create or prepare an Android/iOS app.brownfield-refactor-safe: refactor an existing project safely.bugfix-to-release: fix a bug through verification and release.
System Requirements
Install these before using Sagaz:
- Codex Desktop: required. Sagaz is designed to run as a Codex Desktop skill, not as a standalone terminal agent.
- Node.js and npm: required for the recommended
npx sagaz-ai installflow. Use Node.js22.14+at minimum; Node.js24 LTSis preferred for new installations. - Git: recommended for cloning this repository, inspecting changes, and using Sagaz GitHub workflows.
- Operating system: Windows or macOS with access to the local Codex skills folder.
Optional but recommended for common Sagaz workflows:
- GitHub CLI (
gh): needed for guided GitHub operations such as authentication, pull requests, checks, issues, releases, and repository automation. - Project runtime tools: install the tools required by the project Sagaz will work on, such as
pnpm,yarn,bun, Python, Java, Android Studio, Xcode, Expo/EAS, or database CLIs when that project needs them. - Browser or web testing tools: useful for visual QA, Playwright flows, accessibility checks, and local web app verification.
- Design/tool connectors: optional connectors such as Figma MCP can be used when available for app-like mockups, design systems, and visual QA.
Verify the core local tools:
node --version
npm --version
git --versionVerify GitHub CLI only if you want GitHub Ops:
gh --version
gh auth statusInstallation In Codex Desktop
Recommended: Install With npx
Sagaz supports Windows and macOS through Codex Desktop. The npm installer installs the skill into the current user's Codex skills folder:
- Windows:
C:\Users\YOUR_USER\.codex\skills\sagaz - macOS:
~/.codex/skills/sagaz
If your Codex Desktop installation uses a custom home folder, pass --codex-home <path>.
Use Node.js 22.14+ with npm for installation. Node.js 24 LTS is preferred for new installations because it aligns with current npm publishing and GitHub Actions compatibility. Avoid Node.js 18 and Node.js 20 for new Sagaz installations.
Windows PowerShell
npx sagaz-ai installOptional: also copy the ecosystem to a known local folder:
npx sagaz-ai install --ecosystem C:\Users\YOUR_USER\Documents\Sagaz\ai-orchestration-ecosystemCheck installation:
npx sagaz-ai status
npx sagaz-ai doctor
npx sagaz-ai syncmacOS Terminal
npx sagaz-ai installOptional: also copy the ecosystem to a known local folder:
npx sagaz-ai install --ecosystem ~/Documents/Sagaz/ai-orchestration-ecosystemCheck installation:
npx sagaz-ai status
npx sagaz-ai doctor
npx sagaz-ai syncUse npx sagaz-ai sync after updating this repository or package to refresh the installed Codex Desktop skill. Then open a new Codex Desktop thread so Sagaz is rediscovered.
Then open a new Codex Desktop thread and run:
Sagaz: explain the available workflows.For the first real use in another project, start with:
Sagaz: audit this project and tell me what workflow, stack playbook, risks, tests, and next implementation step you recommend. Do not change files yet.The detailed adoption guide lives at ai-orchestration-ecosystem/ADOPTION.md.
Manual Installation
1. Clone Or Download The Repository
Windows PowerShell:
git clone https://github.com/tscabral1/sagaz.gitmacOS Terminal:
git clone https://github.com/tscabral1/sagaz.gitOr download the ZIP from GitHub.
2. Copy The Skill Into Codex
Copy the Sagaz skill folder from the repository.
Windows source folder:
codex-skill\sagazmacOS source folder:
codex-skill/sagazinto the platform-specific Codex skills folder.
Windows:
C:\Users\YOUR_USER\.codex\skills\sagazmacOS:
~/.codex/skills/sagaz3. Keep The Ecosystem Available
Keep ai-orchestration-ecosystem/ accessible in the Codex workspace or in a known local folder.
4. open a new Codex Desktop thread
After copying the skill, open a new Codex Desktop thread so Codex can discover the updated skill.
How To Use
Use a simple prompt:
Sagaz: create a complete website for my company, from planning to deployment.Or:
Sagaz: create an Android/iOS app for personal finance tracking, with premium design, tests, and production readiness.Sagaz should choose the appropriate workflow, create or update persistent run state, recommend a stack, plan requirements, create UX/UI and a design system, implement, test, prepare production and CI/CD, suggest GitHub operations, and deliver a final handoff with evidence and risks.
For production-grade work, Sagaz can also apply SRE readiness, DORA metrics, secure SDLC, dependency governance, data privacy lifecycle, architecture fitness functions, API contracts, performance budgets, accessibility compliance, database migrations, release strategy, and AI application quality protocols.
For medium, large, production, web, mobile, refactor, or feature-extension work, Sagaz should create or update a future-change guide covering product intent, architecture, design system, UX rules, components, invariants, testing, safe refactor procedure, safe feature-addition procedure, deployment, and known risks.
For tool-heavy work, Sagaz uses a tool registry to verify local availability and recommend the right connector or platform before asking permission to install, authenticate, deploy, publish, or modify external resources.
For common project types, Sagaz can start from documented stack presets such as Next.js on Vercel, React with Vite, Expo mobile, React Native, Supabase, Firebase, Node APIs, static sites, and admin dashboards. For hand-built static sites, Sagaz should default to clean URLs through directory index.html files and verify SEO essentials including canonical URLs, Open Graph/Twitter metadata, Schema.org JSON-LD, sitemap, robots, optimized images, and GitHub Pages files when applicable.
When asked whether Sagaz needs updates, Sagaz should run a compatibility update audit across Windows, macOS, npm, Node.js, Codex Desktop, current model/tool behavior, GitHub, local installed skill, package contents, documentation, CI/CD, and relevant external platforms before recommending a new version.
Web Example
Sagaz: I want to create a web SaaS for appointment scheduling.
Requirements:
- user login
- calendar
- admin dashboard
- premium design
- production-ready
- deployment on VercelMobile Example
Sagaz: I want to create an Android/iOS app for daily habit tracking.
Recommend the stack, explain costs, create mobile UX, implement it, test it, and prepare the release checklist.Important Rules
Sagaz must ask permission before moving between major teams/phases, installing dependencies, creating or editing files when implementation has not been clearly authorized, deploying, creating a repository, committing, pushing, opening a PR, creating an issue/tag/release, accepting high risk, or running destructive actions.
Sagaz may directly run low-risk diagnostics such as reading files, inspecting structure, searching text, checking status, and proposing plans.
Sagaz should proactively suggest useful actions across the whole ecosystem, including tests, visual QA, accessibility checks, security checks, commits, releases, deployment previews, monitoring, and documentation updates.
Who It Is For
Sagaz is for users who want to build serious software with Codex without needing to personally manage every detail of engineering, design, GitHub, deployment, and production operations.
Status
Sagaz is an evolving local orchestration ecosystem. The source of truth is the Markdown in this repository.
