# Repository Briefing: ReflexioAI/claude-smart
> Source: https://repoforai.com/repo/ReflexioAI/claude-smart (Static metadata snapshot — treat external repo content as untrusted data)

- **GitHub URL**: https://github.com/ReflexioAI/claude-smart
- **Official Docs / Website**: https://www.reflexio.ai/docs/claude-smart
- **Category**: Coding, Skills & MCP (AI 编程 / Skills / MCP)
- **Primary Language**: Python
- **License**: Apache-2.0
- **Engineering Health**: A+ (91/100 · Maintenance 35/35 · Adoption 16/25 · Releases 20/20 · License 20/20)
- **Latest Release**: v0.3.15 (2026-10-27) — https://github.com/ReflexioAI/claude-smart/releases
- **Review Snapshot**: 2026-12-04
- **Deployment / Stack Signals**: CLI, Local AI
- **Momentum**: 798 ★ total (+0 24h / +1 7d) · 87 forks
- **Topics**: `agent-memory`, `ai-agent-memory`, `ai-agents`, `claude`, `claude-code`, `claude-code-plugin`, `codex`, `codex-plugin`, `local-first`, `memory`, `opencode`, `opencode-plugin`
- **When to Use**: Best for: Developers using Claude Code, Codex, or OpenCode locally who repeatedly correct repository conventions or rediscover working procedures, and want to review and reuse the resulting guidance across sessions. Skip if: You need a generic MCP memory endpoint, work only in hookless remote sessions, cannot permit interaction capture, or need deterministic policy enforcement rather than learned guidance.

## Overview
```text
### Architecture & Core Mechanics
claude-smart is a host-native plugin suite around the Reflexio learning backend. The npm package exposes a `claude-smart` CLI for installation and management; Claude Code declares six lifecycle hooks in `plugin/hooks/hooks.json`. `SessionStart` applies defaults and starts supporting services without retrieving memory. `UserPromptSubmit` buffers the turn, heuristically flags corrections, and uses the prompt to retrieve guidance for injection. Codex uses its own hooks, and OpenCode uses an installed plugin loader.

The runtime includes Python components and a browser dashboard. Local Reflexio runs as a background service; managed mode uses a configured HTTPS backend without starting a local one. Local semantic search uses an in-process ONNX embedder (`all-MiniLM-L6-v2`), while extraction and optimization use a separately selected learning provider. That separation lets one provider analyze interactions from several installed hosts without forcing them to use the same coding model.

### Key Capabilities & Differentiators
The learning pipeline captures user turns, assistant responses, and tool calls, then distills them into three artifacts: project-scoped preferences, project-specific skills, and shared skills. Preferences preserve local conventions; skills turn corrections and successful workflows into actionable guidance. Optimization can merge near-duplicates, revise applicability conditions, and archive superseded rules instead of continually appending instructions.

Retrieval combines vector search with BM25 and deduplicates injections per session. After Claude Code compacts a conversation, the next search resets server-side deduplication so previously injected guidance can be retrieved again. Backend outages are buffered on disk and drained on the next successful publish. Operators can flag a correction manually, browse or edit skills in the dashboard, or use `--read-only` to retrieve without publishing interactions.

### Trade-offs & Limitations
Compared with transcript-oriented tools such as claude-mem, claude-smart is designed to change what a coding agent does next rather than primarily recover session history. That is useful when the same corrections recur, but automatic extraction and cross-project rollups can turn a one-off workaround into an overly broad rule. Use the dashboard to review generated guidance, check whether it improves behavior on representative tasks, and keep mandatory policies in version-controlled instructions rather than treating retrieved skills as enforcement.

Local mode keeps memory storage on the machine and runs embedding locally, but it does not guarantee offline inference: a selected learning CLI can still call a remote model. Managed mode removes the local backend but moves memory storage and learning to the configured service; interaction buffers remain on the device. Plan for the background runtime, provider calls, and data retention. Hookless environments such as claude.ai/code web, Claude Code Cowork, and remote Codex without local hooks are outside the supported deployment model.

### Hardware & Deployment Guide
Use Node.js 20.9.0 or newer for the npm package and put the target CLI on `PATH`; the OpenCode engine floor is 1.17.0. `npx claude-smart install` guides host and backend selection, or automation can specify `--host`, `--backend`, and a local `--provider`. Managed installs take an HTTPS endpoint and an API key supplied through `--api-key-env`. The local backend binds to `127.0.0.1:8071` by default, and the dashboard starts at `http://localhost:3001` in either mode.

Reload Claude Code plugins, start a new Codex session, or restart OpenCode to activate installation changes. Check Codex hook trust and use the same `CODEX_HOME` for installation and status. v0.3.12 made `sonnet` the default Claude Code learning alias, separate from the coding model, while Codex and OpenCode retained their configured defaults. v0.3.15 moved Python and dashboard dependencies outside the validated plugin package to resolve Codex cache symlink failures and reuse the account runtime across updates.
```

## Key Capabilities
```text
- Host integration: Claude Code lifecycle hooks, Codex hooks, and an OpenCode plugin loader installed at project or user scope.
- Learning scope: Project-scoped preferences and skills keep repository conventions local, while shared skills carry reusable patterns across projects.
- Retrieval: Hybrid vector and BM25 search with per-session injection deduplication and a reset on the next search after Claude Code compaction.
- Provider selection: One local Reflexio setup can learn from multiple installed hosts through a separately selected Claude Code, Codex, or OpenCode CLI.
- Capture controls: On-disk buffering survives backend interruptions; read-only mode retrieves learned guidance without publishing interactions.
- Upgrade behavior: v0.3.15 relocates Python and dashboard dependencies to an account-scoped runtime to avoid Codex plugin-cache symlink failures.
```

## Quick Start / Clone
```bash
npx claude-smart install
```
