SkillAgentSearch skills...

zara-agent-opc

Empathetic AI engineering partner with cognitive memory, multi-agent orchestration (10 agents), 132-signal skill routing, and self-improving reflection loops. Built on Model Context Protocol. By Aldo Karendra.

Install / Use

claude mcp add aldok10 -- npx -y github:aldok10/zara-agent-opc

If the server publishes to npm under a different name, use that package instead — check the repo README.

About this skill
🔌

MCP Server

Model Context Protocol server

Quality Score

83/100

Supported Platforms

Claude Code
Claude Desktop

Tags

<!-- SPDX-License-Identifier: MIT Author: Aldo Karendra (https://linkedin.com/in/aldok10, https://github.com/aldok10) Project: Zara Agent OPC - Empathetic AI Engineering Partner Keywords: AI agent, multi-agent orchestration, cognitive memory, semantic embeddings, MCP server, Model Context Protocol, OpenCode, self-improving AI, AI pair programming, agent memory system, retrieval augmented generation, RAG, ChromaDB, vector database, hybrid retrieval, reciprocal rank fusion, prompt engineering, developer tools, persistent AI companion, empathetic AI, leadership DNA, skill routing, TDD workflow, Aldo Karendra, aldok10, backend developer, system architect, Jakarta Indonesia, PHP Swoole, Golang, C++, FIX API, MT4 MT5, AI engineering, LLM tools, agentic AI, autonomous coding agent, code review agent, security review agent, testing agent. -->

Zara — The AI Engineering Partner That Remembers, Learns, and Grows With You

License: MIT CI GitHub stars MCP Compatible Node.js 22+ ChromaDB

Not an assistant. A persistent engineering partner. Zara has cognitive memory across sessions, orchestrates 11 specialist sub-agents (including a dedicated answer quality evaluator), grounds decisions in 300+ curated engineering articles, and gets sharper every time you use her. A single unified MCP tool handles all memory operations — minimizing token overhead while preserving full functionality. Built on the Model Context Protocol for OpenCode.

Created and maintained by Aldo Karendra — Lead Backend Engineer & AI Systems Architect (LinkedIn · GitHub)


The Problem With Every Other AI Coding Tool

They forget. Every session starts from zero. You re-explain your stack, your preferences, your architecture, every single time. They give generic answers, never push back, and never learn from the mistake they made yesterday.

Zara is a different category of tool.

| Most AI Tools | Zara | |---------------|------| | Forget everything between sessions | 3-layer cognitive memory with hybrid retrieval and temporal decay | | One-size-fits-all answers | Learns your stack, preferences, and patterns over time | | Single agent doing everything | 11 coordinated specialists (architecture, security, testing, review, quality validation) | | No methodology | Skill-gated workflow: discuss → plan → execute → verify → ship | | Neutral, agreeable, forgettable | Opinionated. Pushes back. Cares about your growth. | | Repeat the same mistakes | Outcome-weighted reflection — same mistake twice triggers a systemic fix |

Why This Matters

The more you use Zara, the sharper she gets. Not through fine-tuning, but through persistent memory + outcome-weighted learning:

  • Session 1 — Zara learns your name, stack, and coding style.
  • Session 2 — Memory recall activates. She remembers your open threads.
  • Session 5+ — Skill routing adapts to your patterns. Her recommendations improve as reflection scores accumulate.

She remembers that auth refactor you left half-finished. She knows you prefer Go stdlib over frameworks. She'll tell you to take a break at 3am — once — then respects the adult.

Quick Start

git clone https://github.com/aldok10/zara-agent-opc.git
cd zara-agent-opc
./scripts/install.sh

For AI-driven installs:

AI_MODE=1 ./scripts/install.sh

Requirements:

  • Node.js 22.14+ with FTS5 support (node:sqlite) — the installer verifies this
  • OpenCode — install from opencode.ai
  • macOS, Linux, or Windows (PowerShell installer: scripts/install.ps1)

After installing, copy .env.example to .env and set your ANTHROPIC_API_KEY. Then run opencode in any project directory.

See It In Action

You: review this handler for me

Zara: [recalls your preference for parameterized queries]
      [dispatches @lens for code review]
      [dispatches @shield for security check]

      Three issues. The SQL concatenation on line 12 is injectable.
      Here's the fix...

[next day]

You: hey

Zara: Morning! Yesterday you were working on that auth refactor.
      The SQL injection fix — did you ship it? Want to pick up
      where we left off?

Key Features

  • Multi-Agent Orchestration — Zara plus 10 domain specialists (including a dedicated answer quality evaluator), each with a clean context window and final say in their domain
  • Cognitive Memory — 3-layer persistent memory (episodic, semantic, procedural) backed by SQLite FTS5 and MiniLM-L6-v2 embeddings
  • Hybrid Retrieval with RRF — full-text search fused with vector similarity via Reciprocal Rank Fusion, so recall works on both exact terms and meaning
  • Pluggable Vector Backend — SQLite by default, or scale out to ChromaDB for large-corpus semantic search (details below)
  • Self-Improving — outcome-weighted reflection grounded in real test results, autonomous self-audit, micro-tool crystallization
  • Knowledge-Grounded — 300+ indexed articles covering architecture, patterns, antipatterns, laws, DDD, security, and testing
  • Skill-Gated Methodology — 16 core skills + 122 additional domain expert skills (with 358 subskills) enforcing TDD, systematic debugging, and verification before completion
  • Empathetic Leadership DNA — situational leadership (D1-D4), Radical Candor, reads your emotional signal and calibrates tone
  • Privacy-Aware — secrets and PII detection, destructive-op guards, protected-branch enforcement, a ratified safety constitution
  • Zero Required Dependencies — the MCP server runs on Node.js stdlib alone; embeddings and Chroma are optional add-ons

Agents

Zara orchestrates 11 specialized sub-agents, each an expert in their domain:

| Agent | Alias | Role | Can Write? | |-------|-------|------|-----------| | Zara | — | Main orchestrator. Warm, sharp, opinionated engineering partner. | Yes | | Sketch | plan | Planning mode — analysis and design without making changes | No | | Scout | requirements-clarifier | Turns vague requests into clear specs | No | | Atlas | architect | System design, architecture tradeoffs, patterns | No | | Lens | code-reviewer | Code review, quality smells, refactoring | No | | Shield | security-reviewer | Threat modeling, secure design, auth patterns | No | | Probe | testing-lead | Test strategy, coverage analysis, test design | No | | Pulse | delivery-lead | Shipping velocity, tech debt, blockers | No | | Rhythm | loop-engineer | Iterative workflows, verification, failure modes | No | | Hive | swarm | Parallel task decomposition and coordination | No | | Forge | implementation | Plan → code → verify → ship, TDD execution | Yes | | Refiner | refiner | Answer quality evaluation, gap identification, refinement judgment | No |

Dispatch rules: Zara handles simple tasks directly. For depth, she dispatches to the right specialist. Trivial fixes skip the queue entirely. Each sub-agent works in isolation — clean context, no session noise.

Memory System

Three persistent layers stored in SQLite with FTS5:

| Layer | What It Stores | Example | |-------|---------------|---------| | Episodic | Events and outcomes | "Deployed v2, latency dropped 40%" | | Semantic | Typed facts about the world | "User prefers Go stdlib over frameworks" | | Procedural | Reusable workflows | "Deploy: test → build → stage → prod" |

7 memory types ranked by priority (policy > architecture > preference > decision > pitfall > workflow > fact), scope-based retrieval, temporal decay for stale entries, contradiction detection, and automatic consolidation on session end.

Hybrid Retrieval (RRF)

Recall isn't just keyword matching. Zara runs full-text search (FTS5) and vector similarity in parallel, then merges the two ranked lists using Reciprocal Rank Fusion (RRF, K=60 — the standard from the original paper). Items that rank high in both lists float to the top. You get exact-term precision and semantic recall at the same time.

ChromaDB Integration — Scaling Memory to Production

Zara ships with a pluggable vector backend. By default everything runs in embedded SQLite — zero setup, zero external services. When your memory corpus grows large or you want a dedicated, horizontally scalable vector store, flip one environment variable and Zara routes all vector search through ChromaDB.

# Default — everything in SQLite, no external services
ZARA_VECTOR=sqlite

# Scale out — vectors and metadata in ChromaDB
ZARA_VECTOR=chroma
ZARA_CHROMA_URL=http://localhost:8000
ZARA_CHROMA_AUTH_TOKEN=your-token   # optional

How it works:

  • chromadb is an optional peer dependency, dynamically imported. It costs nothing — not a byte of memory, not a millisecond of startup — unless you turn it on.
  • When active, Chroma stores everything: vectors, keys, and metadata, across four cosine-space HNSW collections:
    • zara_semantic — facts, decisions, preferences
    • zara_episodic — events and outcomes
    • zara_procedural — workflows and steps
    • zara_knowledge — knowledge passage chunks for RAG
  • Migrate existing SQLite memory into Chroma with a single command: node scripts/backfill-chroma.mjs
  • The same MiniLM-L6-v2 embeddings power both backends, so switching is seamless — no re-training, no data loss.

This is the difference between a demo and a system you can actually grow into: start local, scale to a real vector database when you need it, without rewriting a line of your workflow.

Plugin System

13 plugin modules running inside OpenCode's runtime:

observe  memory  flow  dev  social  evolve  empathy
relationship  voice  workspace  debate  harness  proactive

Each module hooks into the session lifecycle (start, end, tool call) and contributes tools, event handlers, and proactive behaviors — from flow-state detection to multi-agent debate.

MCP Server

A standalone Node.js server (tools/mcp/index.mjs) providing a single unified memory tool over JSON-RPC 2.0 stdio transport. All memory operations are routed via the action parameter:

| Action | Sub-operations (op) | Purpose | |--------|---------------------|---------| | recall | — | Search memory (semantic, episodic, procedural, knowledge passages via RRF) | | learn | project | Store facts, preferences, architecture decisions; extract project knowledge | | episode | reflect, blindspot, suggest, patterns | Record events, reflections, blindspot tracking | | procedure | — | Save or recall reusable workflows | | manage | consolidate, delete, contradictions, seed, index | Memory maintenance, knowledge seeding | | session | start, end, check, profile, discover, model, goal_* | Session lifecycle, user identity, goals | | system | audit, improve, evolve, patterns, suggest, integrity, dashboard | Self-audit, self-improvement, diagnostics |

Design rationale: 26 tools across 10 domain files were consolidated into 1 tool with action-based routing, reducing system-prompt token overhead by ~4.8K tokens per message (~85% reduction in MCP tool description cost).

Commands

22 built-in slash commands accessible in OpenCode:

/audit  /auto  /decide  /distill  /focus  /goal  /handoff
/install  /lo

Truncated for display — read the full file on GitHub.

Related Skills

View on GitHub
GitHub Stars3
CategoryAI
Updated1d ago
Forks2

Languages

JavaScript

Security Score

92/100

Audited on Sep 7, 2026

1 low