PHPackages                             jarvis-brain/node - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. jarvis-brain/node

ActiveProject[Utility &amp; Helpers](/categories/utility)

jarvis-brain/node
=================

The Brain Node for Agent Management

v0.5.0(1mo ago)09MITShellPHP ^8.2CI passing

Since Feb 22Pushed 1w agoCompare

[ Source](https://github.com/jarvis-systems/brain-node)[ Packagist](https://packagist.org/packages/jarvis-brain/node)[ RSS](/packages/jarvis-brain-node/feed)WikiDiscussions master Synced 1w ago

READMEChangelogDependencies (3)Versions (5)Used By (0)

Jarvis Brain Node
=================

[](#jarvis-brain-node)

Compile-time instruction compiler for AI agents. Eliminates MCP hallucination vectors through mechanical enforcement.

Invariants
----------

[](#invariants)

1. **JSON-only** — all MCP calls use `json_encode(JSON_THROW_ON_ERROR)`, not string interpolation
2. **Schema-validated** — required keys enforced in all modes; unknown keys/methods rejected in strict/paranoid
3. **Deterministic** — `ksortRecursive()` guarantees byte-identical output for identical inputs
4. **Single-mode** — mode resolved at compile time from `.env`; AI cannot self-select a weaker mode
5. **Lint-gated** — 67 compiled files scanned on every build; legacy pseudo-JSON is a hard failure
6. **CI-enforced** — schema tests + lint + compile discipline on every push

Extending Schemas
-----------------

[](#extending-schemas)

```
1. Add method to schema class   → core/src/Mcp/Schemas/Vector*Schema.php
2. Define required/allowed/types → ['required' => [...], 'allowed' => [...], 'types' => [...]]
3. Add unit test                 → core/tests/McpSchemaValidatorTest.php
4. Run tests                     → cd core && ./vendor/bin/phpunit tests/McpSchemaValidatorTest.php
5. Use in code                   → callValidatedJson('method', [...])
6. Compile + lint                → brain compile && bash scripts/lint-mcp-syntax.sh

```

Mode Configuration
------------------

[](#mode-configuration)

```
# .brain/.env
STRICT_MODE="paranoid"        # relaxed | standard | strict | paranoid
COGNITIVE_LEVEL="exhaustive"  # minimal | standard | deep | exhaustive
```

After changing: `brain compile` to rebake all artifacts. Invalid values = compile error.

Init Commands
-------------

[](#init-commands)

> For proper Brain initialization, execute in order as needed:

1. `/init-vector` — Vector memory verification
2. `/init-brain` — Brain instructions verification
3. `/init-agents` — Brain agents verification
4. `/init-task` — Current project tasks verification (if needed)

###  Health Score

39

—

LowBetter than 86% of packages

Maintenance96

Actively maintained with recent releases

Popularity7

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity39

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~17 days

Total

4

Last Release

32d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/04e20820e254c6dbf332ddc5343accb0086f5f441ed87e3ec58292ef0bcfa447?d=identicon)[jarvis](/maintainers/jarvis)

---

Top Contributors

[![Xsaven](https://avatars.githubusercontent.com/u/1726771?v=4)](https://github.com/Xsaven "Xsaven (367 commits)")

---

Tags

nodebrainjarvis

### Embed Badge

![Health badge](/badges/jarvis-brain-node/health.svg)

```
[![Health](https://phpackages.com/badges/jarvis-brain-node/health.svg)](https://phpackages.com/packages/jarvis-brain-node)
```

###  Alternatives

[fab2s/nodalflow

A PHP Nodal WorkFlow

16362.4k1](/packages/fab2s-nodalflow)[zoon/rialto

Manage Node resources from PHP

12199.4k3](/packages/zoon-rialto)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
