Engineering standards for AI coding agents.
Universal cross-agent framework delivering architectural governance, empirical verification, living context graphs, and quality gates to Cursor, Antigravity, Claude Code, & Copilot.
Compile cross-agent configurations in real-time.
Select an agent target and architectural preset to observe deterministic instruction compilation, policy constraints, and empirical quality gates.
Canonical laws compile deterministically into native targets on selection with zero manual drift.
<!-- SAGARITHM:START --> # SAGARITHM ENGINEERING CONSTITUTION (Target: .cursorrules) # Preset: systems-core | Version: 1.1.1 ## Supreme Behavioral Governors - Zero Assumed Success: You are strictly forbidden from declaring a task complete without empirical test evidence. - Entropy Security Gate: Shannon entropy H >= 4.5 triggers an immediate security abort. - Acyclic Graph Constraint: Circular dependencies between modules are considered critical bugs. ## Active Preset Directives (systems-core) - 1. Never create circular dependencies; all modules must form a strict DAG. - 2. Shannon entropy threshold for credentials is H >= 4.5. Secrets must never be committed. - 3. Zero Assumed Success: Verify code using empirical test execution before reporting done. - 4. No generic 'utils' or 'helpers' directories; use domain-oriented taxonomy. ## Required Verification Vectors 1. Static Analysis: Strict typing, zero eslint warnings. 2. Security Gate: Zero hardcoded API keys, tokens, or private secrets. 3. Architecture Fitness: Acyclic DAG topology, zero 'utils/helpers' anti-patterns. 4. Behavioral Tests: All unit and integration test assertions green. 5. Documentation: Topology manifest and ADR state synchronized. <!-- SAGARITHM:END -->
Built for autonomy, architecture, and security.
Embedding architectural governance, native MCP tools, entropy token defense, and topological graph analysis directly into the agentic development loop.
Autonomous Workflow Orchestration
Deterministic multi-stage workflow runner executing feature development, bug fixes, refactoring, and release prep with strict gate enforcement.
sagarithm run feature-developmentNative Model Context Protocol (MCP)
Zero-dependency JSON-RPC 2.0 stdio server exposing 6 architectural tools directly to Antigravity, Claude Code, and Cursor for live verification.
sagarithm mcpTruth-Driven Idea Validation
Senior Principal Architect stress-test forbidding blind AI compliance. Surfaces operational bottlenecks, state model risks, and defines strict non-goals.
sagarithm validate "<idea>"Algorithmic Shannon Entropy Scanner
Detects high-randomness tokens and API credentials at H >= 4.5 Shannon entropy, stopping confidential leaks and injection flaws before commits occur.
sagarithm audit --strictRobert C. Martin Instability & Coupling
Calculates Afferent (Ca) and Efferent (Ce) coupling metrics, calculates component instability I = Ce / (Ca + Ce), and isolates unreferenced orphan abstractions.
sagarithm context statsComposite Codebase Health Index
100-point repository health score across structural hygiene, modularity, dead code, secrets, and test density for automated CI/CD quality gating.
sagarithm healthSix decoupled layers. One source of truth.
Decoupled engineering principles, skills, and policies compiled deterministically into native agent targets without configuration drift.
Engineering Constitution
constitution/Role & Purpose
Codified principles governing engineering philosophies, strict typing, error handling, testing pyramids, OWASP security, documentation standards, atomic git hygiene, and SemVer releases.
Codified Specifications in Layer 01
Standard prompts assume. Sagarithm Kit verifies.
Evaluating software engineering reliability across raw LLM prompting, static .agents rules, and Sagarithm Kit's empirical multi-vector quality gates.
One install. Governs every agent.
Run natively with npx, install globally via npm, or integrate directly into your CI/CD pipeline to enforce Zero Assumed Success on every pull request.
Initialize Sagarithm Kit workspace configuration
Generates the canonical sagarithm.config.json file, detects existing agent configurations, and prepares workspace directories.
Command Flags & Options
--forceOverwrite existing configurations without confirmation--preset <id>Initialize with a curated preset (fullstack-web, systems-core, etc.)Simulated Output
✔ Generated sagarithm.config.json ✔ Detected target: .cursorrules (Cursor IDE) ✔ Successfully initialized Sagarithm Kit in workspace!