Governed autonomous development for AI coding agents.
Project description
Niyam
Governed autonomous development for AI coding agents.
One
.niyam/source of truth. Many AI runtimes. Policy-driven autonomy. Evidence-backed delivery.
🚀 What is Niyam?
Niyam bridges the gap between fast "vibe coding" and production-grade safety. It turns any repository into a governed AI-development workspace where you define the rules, and AI agents (Claude Code, Codex, Gemini) follow them.
🎬 Niyam in Action
1. Interactive Development (Day-to-Day)
Niyam acts as a governance layer inside your AI agent. Use team-standard slash commands:
/implement "add password complexity rules to auth service"
Niyam ensures the agent writes tests first, respects file freezes, and follows the approved TDD workflow.
2. Autonomous Missions (Batch Tasks)
Orchestrate complex migrations or large-scale refactors with ease:
niyam run "migrate all API endpoints to v2"
Niyam plans the mission, spawns sub-agents in isolated Git worktrees, runs parallel validations, and merges only what passes.
💎 Key Features
🛡️ Active Action Governance & Approvals
- Command Guardrails: Intercept and block dangerous shell commands (e.g., destructive database drops or global file deletions) before execution.
- Path Freezing: Restrict agents to specific scopes. Protect core files like
LICENSEor sensitiveinfra/folders from unauthorized AI writes. - Credential Redaction: A built-in engine that identifies and redacts secrets, API keys, and PII from agent logs and CLI outputs in real-time.
- Enterprise Approval Gates: Role-based (e.g., Product, QA, Security) manual approval gates for critical tasks and mission plans directly from the CLI or Portal UI.
🤖 Multi-Agent Orchestration & Resilience
- Agent Roles: Define specialized AI personas (e.g.,
security-reviewer,qa-engineer) with tailored system prompts and dedicated toolsets. - Isolated Multi-Worktree Parallelism: Run tasks in parallel using isolated Git Worktrees, preventing agent cross-talk and ensuring clean, atomic PRs.
- Autonomous Environment Healing: Auto-heal and self-correct environments by triggering AI re-planning and automatic retries upon task/validation failure.
🔍 Compliance & Readiness Checking
- Repo Audits: Scan your repository against strict profiles (
startup,team,enterprise,regulated) to detect missing documentation, unpinned dependencies, or secret exposures. - Readiness Scoring: Get a numerical Readiness Score (0-100) and a clear GO / NO-GO decision for every branch or mission.
- CI/CD Pipeline Scaffolding: Generate ready-to-use CI/CD workflows (
niyam ci generate [github/gitlab/azure]) that run strict policy validations (niyam ci verify) directly in your pull requests.
📑 Evidence & FinOps Cost Tracking
- Joint Evidence Reports: Automatically synthesize scan findings, observed command logs, and cost data into standardized, audit-ready compliance documents.
- FinOps Cost Tracking: A local ledger that logs every token consumed and estimates USD spend against customizable pricing tables.
📊 Live Mission Dashboard & Web Portal
Niyam provides both terminal-based and browser-based interfaces to monitor your autonomous agents and manage approvals:
1. Terminal Dashboard
niyam dashboard --watch
- Live Task Progress: Visual status of all mission tasks (Planned, Running, Completed, Failed).
- Real-time Logs: View active output from implementation agents as they work in isolated worktrees.
- Validation Monitor & Resource Efficiency: Watch unit tests and lint checks run and report results live, alongside actual token spend.
2. Browser-Based Portal UI
niyam portal
- Policy Analytics: Visual cards detailing Active Guardrails, Command Filters, Security Isolation, and active Path Freezing.
- Interactive Approval Center: Review pending tasks/missions and authorize execution by role directly from the Web UI.
- FinOps & Agent Metrics: Monitor token consumption, cost breakdowns, and agent success rates.
🛠️ Installation
Global Install (Recommended)
pipx install niyam
Run on the fly (No install)
uvx --from niyam niyam --help
⏱️ Quick Start
- Initialize your workspace:
niyam init --profile fullstack --runtime claude
- Synchronize with AI agent:
niyam sync - Start building:
Open your agent (e.g.
claude) and use/implement,/review, or/ship.
📚 Documentation & Architecture
🗺️ Roadmap
See ROADMAP.md for our vision on parallel worker pools, web dashboards, and enterprise CI/CD integration.
📄 License
Distributed under the MIT License. See LICENSE for more information.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file niyam-0.5.0.tar.gz.
File metadata
- Download URL: niyam-0.5.0.tar.gz
- Upload date:
- Size: 1.2 MB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
47e5ce502e40be70c890a7b58eb974a51d2e3d478cb001e3e1ae052387280628
|
|
| MD5 |
0119084a1179dd1a5e6c119f7b1656d6
|
|
| BLAKE2b-256 |
0728d29f32e9fc74651a230a780a1da7e38a7519bf7dc03715106b8c46824f2a
|
Provenance
The following attestation bundles were made for niyam-0.5.0.tar.gz:
Publisher:
release.yml on sairintechnologycom/niyam
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
niyam-0.5.0.tar.gz -
Subject digest:
47e5ce502e40be70c890a7b58eb974a51d2e3d478cb001e3e1ae052387280628 - Sigstore transparency entry: 1755763626
- Sigstore integration time:
-
Permalink:
sairintechnologycom/niyam@e158e420031e6eade0cf26fb69ce37f46169c1bd -
Branch / Tag:
refs/tags/v0.5.0 - Owner: https://github.com/sairintechnologycom
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@e158e420031e6eade0cf26fb69ce37f46169c1bd -
Trigger Event:
push
-
Statement type:
File details
Details for the file niyam-0.5.0-py3-none-any.whl.
File metadata
- Download URL: niyam-0.5.0-py3-none-any.whl
- Upload date:
- Size: 366.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b4f299915ea26681ec735975c586da1cee8a284182ee466380b487321876cd3f
|
|
| MD5 |
8b37c238d4ab3d42c48a949a475fd266
|
|
| BLAKE2b-256 |
a1bfe3c000aca3d5bb203cc0210b249752fc1a9d4090b392af711febe04c39f4
|
Provenance
The following attestation bundles were made for niyam-0.5.0-py3-none-any.whl:
Publisher:
release.yml on sairintechnologycom/niyam
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
niyam-0.5.0-py3-none-any.whl -
Subject digest:
b4f299915ea26681ec735975c586da1cee8a284182ee466380b487321876cd3f - Sigstore transparency entry: 1755763690
- Sigstore integration time:
-
Permalink:
sairintechnologycom/niyam@e158e420031e6eade0cf26fb69ce37f46169c1bd -
Branch / Tag:
refs/tags/v0.5.0 - Owner: https://github.com/sairintechnologycom
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@e158e420031e6eade0cf26fb69ce37f46169c1bd -
Trigger Event:
push
-
Statement type: