@dev-isaacmello/six-eyes
v1.2.3
Published
Runtime-aware cognitive constraint shaping for AI coding agents
Maintainers
Readme
Six Eyes

Runtime-aware Cognitive Constraint Shaping for AI coding agents.
Six Eyes provides a lightweight cognitive runtime that helps agents reason with architectural context before code generation.
It runs deterministic analysis passes and persists "cognitive maps" into .sixeyes/ so your agent can operate with stable, project-specific context.
What you get
- Semantic project scan across JS/TS, Python, Dart/Flutter, and other stacks
- Dependency intelligence (cycles, hotspots, and layer violations)
- Persisted maps in
.sixeyes/for incremental, repeatable reasoning - Ranked context windows to spend tokens on the right files first
- Provider adapters for Claude, Cursor, OpenAI/Codex, Aider, and generic runtimes
Why Six Eyes
Most coding agents fail when architectural context is missing. Six Eyes improves decision quality by persisting project cognition to .sixeyes/ and using deterministic scan, graph, and context passes.
Installation
Install as a dev dependency (recommended):
npm i -D @dev-isaacmello/six-eyesThen run:
npx six-eyes reviewQuick Start
- Install provider assets and initialize maps:
npx @dev-isaacmello/six-eyes init --provider claude- Run a deterministic review (scan + graph + context):
npx @dev-isaacmello/six-eyes review --top 12Commands
six-eyes install --provider <claude|cursor|openai|aider|codex|generic>
six-eyes init --provider <provider>
six-eyes scan
six-eyes graph
six-eyes context --top 12
six-eyes enforce
six-eyes protocols
six-eyes skills
six-eyes review
six-eyes mapsProviders (where assets are installed)
claude:~/.claude/skills/six-eyescursor:~/.cursor/rules/six-eyesopenai:~/.config/openai/skills/six-eyesaider:~/.aider/skills/six-eyescodex:~/.codex/skills/six-eyesgeneric:~/.six-eyes/skills/six-eyes
Cognitive Maps
The runtime persists architecture memory into .sixeyes/:
.sixeyes/maps/semantic-map.json.sixeyes/maps/domain-map.json.sixeyes/maps/symbol-map.json.sixeyes/graph/dependency-graph.json.sixeyes/graph/hotspots.json.sixeyes/graph/violations.json.sixeyes/memory/project-memory.json.sixeyes/memory/architecture-memory.json.sixeyes/memory/decisions.json.sixeyes/runtime/context-window.json.sixeyes/runtime/session.json
These maps support incremental cognition and change-impact awareness.
Architecture
Six Eyes is organized around five pillars:
- Cognitive Runtime in
core/ - AI Protocol System in
protocols/ - Architectural Governance in
core/enforce-engine/andcontracts/ - Provider Adapters in
providers/ - Semantic Persistence in
.sixeyes/
The intended runtime path is:
scan -> understand -> enforce -> remember -> guide -> constrainProtocols, Skills, and Contracts
protocols/defines how an agent operates.skills/defines which expertise an agent applies.contracts/defines machine-readable schemas for maps, providers, and protocols.
Cognitive Constraint Shaping Flow
scaninfers framework + architecture + domain boundaries, including Dart/Flutter workspaces.graphdetects coupling risks (cycles, hotspots, boundary leaks).contextranks files by impact and relevance.reviewcombines all layers into one deterministic pass.
Use this flow before large refactors, security-sensitive changes, and multi-agent execution.
Troubleshooting
- If maps look stale, run
six-eyes reviewagain. - If provider files are missing, run
six-eyes install --provider <name>. - If command resolution fails in CI, use
node bin/six-eyes.js <command>.
Requirements
- Node.js
>=18.18.0
Maintainer
Isaac Mello | Full Stack Software Engineer
License
MIT
