New:Introducing Socket Scanning for VS Code Marketplace Extensions.Learn more →
Get Started

@sahasbelbase/project-intelligence

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@sahasbelbase/project-intelligence

Skills, specialist agents, multi-persona councils and lifecycle gates for AI coding agents. Works with Claude Code, GitHub Copilot CLI, Antigravity and any MCP client.

latest
Source
npmnpm
Version
1.6.0
Version published
Maintainers
1
Created
Source

Project Intelligence

A portable, local-first AI Project Orchestrator framework establishing a deterministic engineering lifecycle, shared contracts, git-aware memory, anti-slop quality gates, and multi-agent coordination across modern AI coding environments.

Website: sahasbelbase.github.io/project-intelligence

Install

Claude Code (plugin):

claude plugin marketplace add sahasbelbase/project-intelligence
claude plugin install project-intelligence@sahasbelbase

Then type /project-intelligence:ask <what you want done>.

Any other tool (run in your project folder):

npx -y @sahasbelbase/project-intelligence init     # Claude Code and Antigravity files
npx -y @sahasbelbase/project-intelligence ask "Redesign the settings page"

GitHub Copilot CLI and other MCP clients:

copilot mcp add project-intelligence -- npx -y @sahasbelbase/project-intelligence mcp

Requires Node 18+ and Python 3.10+, with no other dependencies.

Table of Contents

1. Overview and Mission

AI coding assistants frequently suffer from context drift, hallucinated completions, lack of requirements discipline, premature coding without design, and session amnesia. When transitioning between AI platforms (such as Claude Code, GitHub Copilot, OpenAI Codex, or terminal-based agents), context is lost and engineering standards degrade.

Project Intelligence solves this by establishing a portable, local-first engineering foundation. It does not depend on proprietary cloud orchestrators or third-party paid runtimes. It uses standardized JSON schemas (Draft-07), signed contract envelopes, deterministic finite state machines, and Git-aware drift reconciliation engines to govern AI coding agents with the same rigor expected of senior human engineering leads.

2. Core Principles

  • Local-First & Zero Mandated Cloud Dependencies: All engines, validators, memory states, and contracts execute locally using standard Python 3.10+ without external pip package requirements.
  • Requirements & Design Before Code: Implementation is strictly prohibited until Gate G1 (Requirements) and Gate G2 (Design or formal exemption) have been formally signed.
  • Evidence-Based Acceptance: Status claims such as PASSED require auditable command execution logs, timestamps, and verifiable terminal outputs. Confidence is rejected as evidence.
  • Anti-Slop Engineering Baseline: Mandatory rules (BL-001 through BL-007) eliminate decorative emojis, placeholder stubs (TODO: implement later), fake production data, and unverified assumptions.
  • Deterministic Lifecycle Transitions & Rollback: An executable 7-gate finite state machine validates preconditions before gate progression and enforces deterministic rollbacks upon defect discovery.

3. Architecture and Repository Layout

project-intelligence/
├── core/                           # Foundation: schemas, engines and evaluators
│   ├── schemas/                    # JSON Schemas (Draft-07), including persona and council-brief
│   ├── lifecycle/                  # Lifecycle state machine (lifecycle-fsm.json, engine.py)
│   ├── quality/                    # Anti-slop baseline and profiles (profiles.json, evaluator.py)
│   ├── orchestrator/               # Request planning: dispatch.py (entry point) and router.py
│   ├── council/                    # Councils: councils.json, personas/, referee.py, engine.py (simulator)
│   ├── decision/                   # Evidence classification for decisions
│   ├── capabilities/               # Platform capability taxonomy (matrix.json)
│   └── versioning/                 # SemVer policy and schema migration rules
├── contracts/                      # Active concrete project contracts (G0 to G6)
├── memory/                         # Git-aware project memory, drift reconciler, council-briefs/
├── skills/                         # 24 framework skills (SKILL.md + skill.json)
├── vendor/skills/                  # 4 third-party skills with their licenses, plus registry.json
├── instructions/                   # Hierarchical agent instructions (universal, profiles, tasks)
├── agents/                         # 18 agent definitions (agent.json + agent.md)
├── adapters/                       # Claude Code, Antigravity, Copilot, Codex, MCP server (11 tools)
├── installer/ · bin/               # CLI: init, doctor, update, uninstall, ask, council, mcp
├── .claude-plugin/ · plugin-skills/ # Claude Code plugin manifest, marketplace and /ask skill (generated)
├── web/                            # Website: build-data.js generates data.js from the repository
├── validation/                     # Test runner, suites and fixtures
└── docs/                           # Architecture, guides, research, ADRs, and review reports

4. The 7 Lifecycle Gates (G0–G6)

GatePhase NameOutput ContractGate Description & Requirements
G0Project Discoverycontracts/project/contract.jsonStakeholder alignment, problem statement, scope boundaries, platform targets.
G1Requirements Alignmentcontracts/requirements/contract.jsonFunctional/non-functional requirements, acceptance criteria, G2 exemption check.
G2Design Approvalcontracts/design/contract.jsonDesign tokens, layouts, accessibility rules (or signed exemption for CLI/services).
G3Architecture & Contractscontracts/architecture/contract.jsonComponent boundaries, data models, API schemas, ADRs, file ownership plan.
G4Controlled Implementationcontracts/implementation/contract.jsonBounded tasks, subagent delegations, unit tests, commit history logging.
G5Verification & Qualitycontracts/quality/contract.jsonAutomated test telemetry, anti-slop evaluation, independent review verdict.
G6Release & Handoffcontracts/release/contract.jsonRelease manifest, migration notes, changelog, durable knowledge update.

Shortcut routes

The full chain is for features. When you already know the fix, a named route skips the gates the task does not need:

RouteGates keptUse for
feature (default)G0–G6New features, redesigns, architecture changes
ui-tweakG2, G4, G5, G6Small visual change on an existing design
hotfixG4, G5, G6A fix you can already describe, in named files
docs-onlyG4, G6Documentation or comments
npx -y @sahasbelbase/project-intelligence lifecycle --route hotfix --scope src/parser.py --reason "fix null check" --approved-by you

Starting a route needs your approval, the files it may touch and a reason. Skipped gates are logged in memory/execution-state.json. Code-changing routes keep tests (G4) and independent review (G5), and touching a file outside the named scope returns the work to the full lifecycle. Finish with lifecycle --complete-route --approved-by you.

5. Anti-Slop Quality Engine and Profiles

The framework enforces seven non-negotiable baseline rules across all projects:

  • BL-001: disallowGratuitousEmoji — Zero decorative emojis in professional code, logs, and commit messages.
  • BL-002: disallowFakeDataInProd — Hardcoded mock values and fake production data are forbidden in production logic.
  • BL-003: disallowUnimplementedPlaceholders — No empty stubs (pass), placeholder buttons, or unresolved TODO comments in deliverables.
  • BL-004: disallowUnexplainedWorkarounds — Error swallowing and workarounds without documented root cause and tests are prohibited.
  • BL-005: disallowUnapprovedDependencies — Adding third-party dependencies without architectural approval and rationale is forbidden.
  • BL-006: strictVerificationHonesty — Strictly honest verification statuses (PASSED, FAILED, BLOCKED, SKIPPED, UNAVAILABLE).
  • BL-007: secretLeakagePrevention — Zero API keys, credentials, or private tokens committed or stored in repository memory.

Quality Profiles (core/quality/profiles.json)

  • Prototype: Rapid proof-of-concept development, 0% test coverage minimum.
  • Standard: Robust production-oriented development, 70% test coverage minimum, linting, security scans.
  • Production-Ready: Mission-critical enterprise applications, 85% test coverage minimum, strict accessibility and security audits.
  • Security-Sensitive: Hardened environments handling credentials/PII, 90% test coverage minimum, SAST, dependency audits.
  • Design-Intensive: User-facing interfaces, 75% test coverage minimum, design token conformance, WCAG 2.1 AA accessibility.

6. 3-Tier Git-Aware Memory Architecture

To balance persistence against context window limitations:

  • Durable Knowledge (memory/durable-knowledge.json): Persistent architectural patterns, confirmed user requirements, and project vocabulary. Updated only on gate transitions.
  • Execution State (memory/execution-state.json): Ephemeral operational state tracking current gate, open tasks, subagent workstreams, and active Git commit SHA.
  • Backlog (memory/backlog.json): Medium-term repository tracking deferred enhancements, technical debt, and review findings.

The executable reconciler (memory/reconciliation-rules/reconciler.py) checks for working tree drift against git status and protects against secret exposure.

7. Canonical Skills and Logical Agents

Canonical Skills (skills/)

Each skill is packaged with a human-readable SKILL.md (purpose, procedure, verification, recovery) and a machine-readable skill.json manifest:

  • project-discovery
  • existing-project-analysis
  • design-discovery
  • design-system-engineering
  • architecture-and-contracts
  • phase-planning
  • controlled-implementation
  • testing-and-verification
  • independent-review
  • documentation-and-handoff
  • cross-platform-adaptation
  • failure-recovery-and-improvement

Logical Agents (agents/)

Defined with role boundaries, tool permissions, input/output contracts, and system prompt instructions:

  • Orchestrator Agent: Master coordinator, gatekeeper, and scope manager.
  • Discovery Agent: Requirements analyst and problem investigator.
  • Design Agent: UI/UX designer and design system specialist.
  • Architecture Agent: Systems architect and contract author.
  • Planning Agent: Work breakdown scheduler and file ownership coordinator.
  • Implementation Agent: Controlled code author operating in bounded workstreams.
  • Verification Agent: Test engineer and evidence collector.
  • Independent Review Agent: Adversarial quality auditor.
  • Documentation & Memory Agent: Handoff synthesizer and state reconciler.

The orchestrator (core/orchestrator/dispatch.py)

Every request goes through one planner, whichever tool you use. It asks the council referee how much process the work needs (tier 0 answer, 1 specialist, 2 council, 3 cross-council), checks the current lifecycle gate, and returns who handles it and the next commands.

ToolHow you askSet up
Claude Code/project-intelligence:ask <request> (plugin) or /orchestrator <request> (after init)claude plugin install project-intelligence@sahasbelbase
GitHub Copilot CLIAsk in chat; Copilot calls the plan_task MCP toolcopilot mcp add project-intelligence -- npx -y @sahasbelbase/project-intelligence mcp
AntigravityAsk in chat; the orchestrator skill runs the plannernpx -y @sahasbelbase/project-intelligence init --client antigravity
Any terminalnpx -y @sahasbelbase/project-intelligence ask "<request>" (add --json for JSON)Nothing; npx fetches it

Every plan reports a confidence level and the evidence behind it. Routing scores 80% on requests it was never tuned on (validation/fixtures/routing/holdout.json), so when confidence is low the agent confirms the route or re-plans with --council, --persona or --include.

In Claude Code, councils run one council-member subagent per persona: Round 1 prompts come from project-intelligence council sheet <council> "<request>", all agents start at once and each sees only its own prompt, so the first round is genuinely blind. Records say whether a session used separate agents or one agent.

For council work, the agent fetches each persona's instructions with project-intelligence council prompt <council> <persona> <round> "<request>", writes the rounds, and saves them with project-intelligence council record <session.json>, which validates the session before writing the project's memory/council-briefs/.

Maintainers: run npm run build:plugin after changing the orchestrator instructions or the version; it regenerates .claude-plugin/ and plugin-skills/ask/.

Councils (core/council/)

For decisions that deserve more than one view, a council convenes. Three councils are defined in core/council/councils.json: design (13 personas), development (12) and product (12, reusing the product, business-analyst, customer-advocate, strategy and SEO agents). Persona definitions live in core/council/personas/ and follow core/schemas/persona-definition.schema.json.

The referee (core/council/referee.py) runs the process; the model speaking as each persona does the reasoning. It routes a task to a tier (0 answer, 1 specialist, 2 council, 3 product then design then development), convenes the chair, the critic and up to three relevant specialists, limits each persona to two challenges, validates every round and saves a decision brief with dissent preserved to memory/council-briefs/.

python3 -m core.council.referee plan "Add team workspaces with permissions and pricing"
python3 -m core.council.referee prompt design critical-design-reviewer 2 "Redesign the settings page"
python3 -m core.council.referee check

Third-party skills (vendor/skills/)

Ten skills are copied verbatim from their authors with their MIT licenses and installed alongside the framework skills:

SkillsSourceUsed for
fixing-accessibility, fixing-motion-performanceibelick/ui-skillsAccessibility and animation performance
emil-design-eng, review-animationsemilkowalski/skillsMotion and component polish
ponytail, ponytail-review, ponytail-auditdietrichgebert/ponytailWriting the smallest complete change, code review, repository audit
grilling, domain-modeling, tddmattpocock/skillsQuestioning an idea to shared understanding, glossary and decision records, test-driven development

vendor/skills/registry.json records the source commit for each, and lists recommended skills installed from upstream instead (including mattpocock's to-spec, to-tickets and code-review, which need his issue-tracker setup). The framework's own idea-to-prd skill and code-reviewer agent build on these: an idea becomes a PRD with the real CLI commands and vertical tickets in local files, and reviews require a concrete failing case for every finding.

8. Cross-Platform Adapters and Degradation Rules

Project Intelligence maps canonical rules to platform-specific configuration formats while maintaining the baseline quality standards:

  • Anthropic Claude Code (adapters/claude-code/): Generates CLAUDE.md, configures deterministic PreToolUse shell hooks to veto unapproved gate transitions (exit code 2), and maps skills to slash commands.
  • GitHub Copilot (adapters/github-copilot/): Generates .github/copilot-instructions.md, maps multi-agent roles to .github/agents/*.agent.md, and documents tool degradation in IDE environments.
  • OpenAI Codex (adapters/codex/): Implements Responses API system prompt compilation, context compaction thresholds, and OpenAI Agents SDK handoff rules.
  • Other Platforms (adapters/other-platforms/): POSIX shell scripts (agy-orchestrate.sh) and IDE task configurations for Cursor, Windsurf, and terminal-first workflows.

9. Quick Start and Validation

Step 1: Run the Self-Validation Test Suite

From the root of the repository, execute:

python validation/test_runner.py

This runs every suite under validation/: schemas, lifecycle, quality, memory, adapters, MCP, installer, councils and the website. The latest results are written to validation/reports/master_validation_report.json.

Step 2: Initialize Project Memory

python memory/reconciliation-rules/reconciler.py --update

Step 3: Advance Lifecycle Gates

python core/lifecycle/engine.py --advance G0

Step 4: Open the website

npm run site
# or
node web/server.js

Serves the site at http://localhost:3000 (bound to localhost) with six pages: Skills; How it works (a flowchart and a step-through demo of requests in Claude Code, Copilot CLI and a terminal, including council discussions from recorded sessions, plus a box that plans your own request with the real dispatcher); Councils (read-only decision records); Agents; Gates (lifecycle, quality baseline and a code checker); and Install (commands per client, plus ZIP downloads of the last commit built with git archive). Light and dark themes follow your system, with a toggle in the header. The same site is published to GitHub Pages on every push to main by .github/workflows/pages.yml, after the validation suite passes; the hosted copy has no local server, so the code checker, live planning and ZIP downloads appear only when you run it locally. Run npm run build:data after changing skills, agents, councils or records; every number on the site is read from repository files.

Evaluating multi-agent workflows

project-intelligence eval <traces> scores run traces exported from any agent framework: tokens, time, unsupported claims in handoffs, handoff fidelity and task success. See core/eval/README.md.

10. Documentation Sitemap

Author

Built by Sahas Belbase: GitHub · LinkedIn · Portfolio

Other projects: JustTalk · MacNotch · JSON Converter · Movie Recommendation

Keywords

agent-skills

FAQs

Package last updated on 11 Oct 2026

Related posts