Introducing The Sweep: OX’s New Live Security Research Series
Register Now
Breaking: The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Read the Report
Are you exposed? Connect your apps in minutes.
Scan your apps free

agentic-cortex

Latest version: v7.4.0

Overview

Last scanned
12 Sep 2026
Published
12 Sep 2026
AI: Suspicious npm package Publisher: zallauddin
11 Versions
2.8K Downloads

Scan summary

agentic-cortex was last scanned on 12 Sep 2026 at version 7.4.0. Risk score 85 of 100 (high). High-severity rules fired.

  • Releases: 11 versions; the latest 3 were published within 7 days (6–12 Sep 2026).
  • Findings: 2 rules fired in version 7.4.0 (2 high). The score describes this version only.
  • Downloads: 2,814 downloads.

Versions

11 versions published
Versions and the rules that fired in each
VersionPublishedStatus
7.4.0 LATEST 12 Sep 2026 2 rules fired
7.3.0 7 Sep 2026 3 rules fired
7.2.0 6 Sep 2026 2 rules fired
7.1.0 25 Aug 2026 Not shown
7.0.0 25 Aug 2026 Not shown

Rules fired in 7.4.0: 2

Findings

2 High

Findings for v7.4.0. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.

Possible command injection in install-time code

Code that the package's install scripts may run builds a shell command from input that the scanner could not confirm is fixed. This is a possible vulnerability (CWE-78), not a sign of malicious intent: the input may come from the platform or a path, but if it can be influenced from outside, installing the package could run unintended commands.

HIGH

Several suspicious behaviors form a known attack pattern

HIGH
Checking access…

🔒 Create a free account to see all 2 findings with descriptions and instance counts

The score describes 7.4.0; other versions have their own rules, not their own score.

README

The publisher’s own README, as collected from the registry.

agentic-cortex v7.4.0 — The 5-Layer Agent Brain + Test-Time Reasoning

Persistent, self-improving memory and orchestration for AI coding agents and developer tools. Implements the full 5-Layer Graph Engineering framework: Prompt Engineering → Context Engineering → Harness Engineering → Loop Engineering → Graph Engineering. Install & forget — auto-injects context via git hooks, infers what you're working on, detects when improvement stalls, coordinates multi-agent teams, and prevents the same mistakes from repeating across projects.

Features

  • Zero-arg bootstrap — agentic-cortex bootstrap with no arguments. Infers your task from session prompt, git branch, or recent activity. Returns structured XML context.
  • Auto type detection — save "title" "content" detects the right memory type from content patterns. No --type flag needed.
  • Machine-wide global vault — battle-tested learnings auto-promoted across projects. If you learned it once, you never make the mistake again on this machine.
  • Auto-promotion with relative thresholds — top 20% confidence + 2× median utility auto-promote to global vault during reflection. Self-tunes as your project grows.
  • XML codebase graph — deterministic static analysis, SHA-256 cached, zero LLM cost. Injected as structured XML, not markdown.
  • Symbol-level code index — every function/method/class with its real body indexed in SQLite. Bootstrap injects task-scoped symbols (relevant files + transitive import closure) with actual code, not just a static map — so agents know the code, not just its shape.
  • Semantic code search — symbols are embedded (BGE) and hybrid-searched by meaning (code-index search "token budget calc" --semantic finds the budget-forcing code).
  • Change-aware ingestion — git hooks re-parse only the changed files (partial graph regen) and record a "code change" memory after every commit/merge/pull. The index keeps up as the codebase grows.
  • Distilled symbol summaries — one-line LLM summaries (docstring fallback) cached per symbol, so more symbols fit the same token budget.
  • Usage-weighted injection — every symbol an agent retrieves is tracked (access_count/last_accessed_at) and fed back into task-scoped selection: frequently-needed code wins ties and becomes the fallback when a task matches nothing.
  • Memory-safe by default — the ~400MB embedding model is NEVER auto-loaded. Search/bootstrap/sync stay keyword-only unless you opt in with AGENTIC_CORTEX_EMBEDDINGS=1 or an explicit embedding command (code-index embed, search --semantic). No more OOM halts on weak machines.
  • Session context compactor — map-reduce compression of observations or transcripts into a "state so far" summary (~95% smaller) that replaces raw conversation history — attacks the biggest token cost: per-turn history re-sending.
  • Evidence-theoretic conflict resolution (Dempster-Shafer) — contradictory observations are no longer superseded silently. Each side gets a belief mass (confidence + corroboration + usage); the statistical channel is fused with LLM adjudication via Dempster's rule. Adjudication is a two-shot debate: first the LLM builds the strongest case for each side (adversarial argument generation, preventing judge anchoring), then judges with both cases on the record — the full deliberation is persisted for auditability. The resolution records the conflict coefficient k, the combined belief, and the deciding evidence; the winner's boost is agreement-weighted (a knife-edge k≈1 resolution gets almost none). Bootstrap injects recent resolutions as <settled_debates> so agents see why a debate was settled instead of re-opening it — and flags weak resolutions (high conflict coefficient k, statistical near-tie, or a winner that never clearly out-massed the loser) with a severity="weak_resolution" warning so agents treat the topic as an OPEN QUESTION, not settled precedent. Human/agent-guided resolution via agentic-cortex resolve --winner ID --loser ID --reason ....
  • Agent-optimized knowledge.md — XML-structured, 4× token reduction vs markdown. Built for LLM consumption, not human skimming.
  • 110+ MCP tools — memory_bootstrap(), memory_search_all(), memory_machine_vault(), memory_promote_global(), plus a multi-agent mailbox (memory_send/memory_inbox), provider discovery (memory_provider), recovery (probe-gated retry), prompts, plateau detection, workflows, FSM, rules, test-time reasoning (tree search/PRM/self-consistency/budget forcing), failure classification, experience replay, translation store, burst budget, war room, deterministic reasoner (6 modes), and persona swarm orchestration. Stdio JSON-RPC.
  • Agent capability manifest (schema v1) — machine-readable JSON (manifest / discover CLI, memory_manifest / memory_discover / memory_compose MCP tools) declaring 40+ capabilities with versions and interfaces for feature-detection, auto-discovering compatible agent frameworks and generic MCP clients via their config files / env vars / registered MCP servers, and returning the exact wiring to compose with each — which MCP config to write and which memory/reasoning/audit/orchestration tools to expose.
  • 13 typed memories — instruction, fact, decision, goal, commitment, preference, relationship, context, event, learning, observation, artifact, error.
  • Hybrid search — FTS5 keyword + BGE semantic embeddings (768-dim) + cross-encoder reranking. Falls back gracefully when embeddings unavailable.
  • Confidence & provenance tracking — every memory scores 0-100 confidence and source (explicit, inferred, observed).
  • 5-Layer Graph Engineering — full implementation of Prompt Engineering (versioned template registry), Context Engineering (hybrid search + reranking), Harness Engineering (MCP tools + webhooks), Loop Engineering (self-improvement + plateau detection), and Graph Engineering (FSM + rules + multi-agent DAG workflows).
  • Prompt template registry — 10 versioned, outcome-tracked templates for every LLM call. Render templates with variable substitution via API or MCP. Centralized prompt evolution powered by eval log feedback.
  • Self-improving loop with meta-cognition — error RCA generates systemic learnings. Conflict detection finds contradictions. Evidence-based confidence scoring. Plateau detection identifies stalled improvement and triggers breakthrough analysis.
  • Multi-agent workflows — DAG-based workflow executor with FSM bridge. Workflow steps can spawn sub-agents tracked in state machines. Built-in multi-agent workflows: code-review-team, incident-response-squad.
  • FSM orchestration engine — state machines for coding, debugging, and review workflows. Agents transition between states with guard conditions and entry/exit actions.
  • Declarative rule engine — priority-based condition→action rules that fire on events. Built-in rules for error escalation, auto-crystallization, and context capture.
  • Webhook support — hook actions can POST to external HTTP endpoints with template interpolation and configurable retries. Bridge agentic-cortex to Slack, PagerDuty, CI pipelines, or any HTTP service.
  • Save-time deduplication — cosine similarity ≥ 0.97 reinforces existing memories instead of creating duplicates.
  • Temporal forgetting (supermemory-inspired) — temporary facts get bounded lifespans: save --expires ISO / --ttl-days N, or automatic detection of dates and relative spans in content ("exam tomorrow" dies on its date, not via slow decay). An expiry sweep runs in every maintenance cycle; expired memories drop out of all retrieval.
  • Supersession — "Deploy is Monday" now supersedes "Deploy is Friday": newer statement-like facts (fact/decision/preference/context/learning) with near-identical titles mark the old one superseded_by and record a supersedes relation for lineage. Old fact stays in the vault for audit but never surfaces again. Fuzzy contradictions still go through the Dempster-Shafer debate pipeline.
  • One-call profile (profile) — supermemory-style project/agent profile: static (stable facts/decisions/preferences ranked by confidence × corroboration × layer) + dynamic (open goals, commitments, last-7-days activity) + optional combined search, all in a single fast deterministic call. MCP: memory_profile. Also auto-injected at session start: bootstrap emits a <project_profile> block (with <stable_knowledge> and <current_activity> sections) so agents get the profile without an extra round trip — opt out with includeProfile: false.
  • Unified search (hybrid) — memories AND code symbols in one query (AC's answer to supermemory's hybrid RAG+memory): returns { memories, code } with source tags. MCP: memory_search_hybrid.
  • Provider adapter + recall@k suite — MemoryBench-compatible surface (addMemories/searchMemories/getProfile/reset) so external harnesses can benchmark AC head-to-head against supermemory, Mem0, and Zep, plus a built-in deterministic recall@k suite (benchmark recall) covering single-hop, multi-hop, temporal, and knowledge-update categories. Memory quality claims are now measurable, not just asserted. Verified end-to-end against supermemoryai/memorybench (the real harness: registered provider, ingest→index→search through its orchestrator) — see the granularity-controlled comparison: at matched session-level units, AC beats MemoryBench's filesystem baseline on LoCoMo recall@10 (63.0% vs 54.2%), with multi-hop at 80% vs 30.8%. The supermemory cloud row is one keyed run away (scripts/supermemory-smoke.js validates, then the v3 runner adds it with sampling + caching).
  • Profile project-scoping fix (v7.4.0) — profile() and the auto-injected <project_profile> block now filter strictly by project_path; previously they could surface memories from any project on the machine, crowding out the project's own facts from the top-N. Regression-tested.
  • Temporal forgetting + supersession test suite (v7.4.0) — src/core/forgetting.js (TTL/expiry detection) and src/bench/provider-adapter.js gain dedicated suites (tests/forgetting.test.js, 32 tests) with per-run isolated databases.
  • Freshness scoring — 0-100 score combining access recency, confidence, and utility. Auto-archives stale memories.
  • Auto-maintenance scheduler — runs freshness updates and archival every ~50 saves, minimum 6 hours between full cycles.
  • Tiered memory crystallization — raw observations compress upward through layers: raw (1) → synthesis (2) → principle (3). Principles are always-injected, load-bearing knowledge.
  • Immutable evaluation log — append-only audit trail (AutoGTM's results.tsv pattern). Every evaluation preserved forever for benchmarking and plateau detection.
  • Intent → Action → Outcome tracking — linked triplets with relations for evidence-based learning verification.
  • Multi-agent sharing — namespaced agent sessions with shared memory discovery.
  • Skill/procedure extraction — structured fields (steps, triggers, preconditions, postconditions) with dedicated search.
  • Pre-loaded coding standards — DRY, KISS, SOLID, Clean Code, Karpathy guidelines auto-seeded on init. Always injected into context.
  • Conversation transcript ingestion — regex + LLM fallback extracts decisions, errors, learnings, preferences, and facts from chat logs.
  • Grounded QA — retrieve relevant memories + LLM answer with source citations.
  • Git hook auto-injection — context auto-refreshes on checkout, merge, pull, and commit.
  • Multi-agent discovery files — auto-creates .claude/CLAUDE.md, .cursor/rules/agentic-cortex.mdc, .opencode/agentic-cortex.md.
  • Temporal queries — search as-of specific dates or filter by changes since.
  • Daily summaries — LLM-generated or template-fallback summaries of each day's observations.
  • Obsidian export — one-way read-only mirror to an Obsidian vault with wikilinks and tag indexes.
  • File upload — chunk and embed .md, .txt, .json, .csv, .py, .ts, .prisma, and more into memory.
  • HTTP API server — optional REST interface on port 37777 for external tool integration.
  • Multi-agent discovery — auto-creates discovery files for Claude Code, Cursor, and OpenCode on setup.
  • 🌳 Tree of Thoughts / MCTS reasoning — inference-time graph search over reasoning branches. Beam search, MCTS, and greedy strategies with adaptive compute budget.
  • 🔍 Process Reward Model (PRM) — 3-tier step-level verification: deterministic checks, LLM-as-judge, and memory cross-check. Scores each reasoning step 0.0-1.0.
  • 📊 Adaptive compute budget — Snell et al. compute-optimal allocation: estimates problem difficulty from memory and adjusts beam width, depth, and token budget.
  • 💻 Program-aided reasoning (PAL/PoT) — generate and execute verification code in a sandbox. Deterministic arithmetic, graph traversal, and constraint checking.
  • 🔄 Reflexion loop — in-context self-correction: failed reasoning paths become memory, preventing repeated mistakes within the same session.
  • 🗳️ Self-consistency decoding — sample N independent chains with temperature, majority-vote the answer. Optional PRM-weighted voting gives higher-quality paths more influence.
  • 💪 Budget forcing (s1) — enforce minimum reasoning depth by suppressing early stops and appending doubt heuristics. Force conclusion synthesis at upper token bound. Controls compute per problem independently of architectural changes.
  • BGE embeddings — Xenova/bge-base-en-v1.5 with in-memory LRU cache.
  • Embedding dimension mismatch detection — warns when stored embeddings don't match current model dimensions.

Install

npm install -g agentic-cortex
Lightweight install (no semantic embeddings)

Semantic search and reranking are powered by @xenova/transformers, which is an optional dependency — the core package (SQLite storage, FTS5 keyword search, consolidation, self-improvement, MCP tools) works fully without it and degrades semantic features to deterministic keyword search.

# Skip the ~500 MB embedding stack entirely (~12 MB install)
npm install -g agentic-cortex --omit=optional

# Add semantic embeddings back later
npm install -g @xenova/transformers

Quick Start

New here? Start with QUICKSTART.md — wire into your agent in two minutes. Deep dive: ARCHITECTURE.md. Contributing: CONTRIBUTING.md. Runnable demos: node examples/offline-demo.js (fully offline memory loop) and node examples/mcp-demo.js (speaks real MCP JSON-RPC like your agent does).

cd your-project

# One command: init + graph + inject + discovery files + git hooks
agentic-cortex setup

# At session start, just run:
agentic-cortex bootstrap

Core Commands

OX Radar and Response Center

Find threats in your stack.

OX Radar can check high-priority threats, like critical package CVEs, against your context.

Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.

Where it’s listed

The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).

  • npm agentic-cortex

References

The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.

Powered by Read the latest findings

Scan your whole stack

Group 1261154050 1
Group 1261154050
 

From OX Research Newsroom

The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Vulnerability Insights

The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?

Copy of Template Design OX Blog (2)
Research

NGINX2Root: Five Critical NGINX Flaws Expose Web Servers to Remote Code Execution

Cry2Wolf: How to Tell a Real Bug from a Nothingburger
AI & VibeSec

Cry2Wolf: Not Every Branded Bug Deserves a Fire Drill

Frame 2085668439 (1)
Group 1261154229