ReflexioAI/claude-smart
Coding-agent hooks turn corrections and proven workflows into reusable skills.
Automated SPDX check for reference only — not legal advice. Disclaimer
GitHub Star History
Full-history star trajectory from GitHub official history. Switch ranges or hover any point for exact counts.
Evidence-Backed Technical Brief
AI Deep ReviewArchitecture & 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.
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.
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.
Quick Start & Installation
npx claude-smart installComparison vs. Top Coding, Skills & MCP Alternatives
Full comparison →| Repository | Stars | 7d Trend | Stack | License | Core Positioning |
|---|---|---|---|---|---|
| claude-smart ★ | 798 | +1 | Python | Apache-2.0 | Coding-agent hooks turn corrections and proven workflows into reusable skills. |
| graphify | 156.8k | +2.4k | Python | Apache-2.0 | Local AST graphs for dependency tracing, with CLI and MCP access. |
| i-have-adhd | 64.1k | +1.3k | Python | MIT | A coding-agent skill that puts the next action first |
| agents | 43.2k | +212 | Python | MIT | One Markdown plugin catalog adapted to seven AI coding tools |
AI Context Briefing (for Claude / Cursor / Windsurf)
Standardized architecture summary & quickstart commands ready to paste into coding agents.
curl -sL https://repoforai.com/repo/ReflexioAI/claude-smart.md
Active README embeds unlock Hot-Tier 6h Telemetry Refresh automatically (zero pay-to-rank).
Frequently Asked Questions about claude-smart
How does claude-smart connect to a coding agent, and when does it retrieve guidance?
Does local mode require a GPU, and what should I size for?
Can we use it commercially and keep session data under our control?
When would I choose this over claude-mem or checked-in agent instructions?
Upstream README & Documentation
This profile focuses on independent engineering analysis and live telemetry. Read the full upstream README, changelog, and examples directly on GitHub.
Top 10 Breakout Open-Source AI Repos, Every Thursday
Signal-only digest of fast-growing AI repos, SPDX license alerts, and architecture picks. Zero spam.
Zero spam · 1-click unsubscribe · Privacy Policy