eklavya

Reviewed at commit bcd6cc1

Caution: Installs and auto-updates its own npm package in the background, keeps a section in your global ~/.claude/CLAUDE.md that updates restore, and records your prompts, edits and tool calls.

Sends data to Google Analytics (www.google-analytics.com), anonymous usage counts, can be switched off; webhooks you configure

Learn while your agent works. Turns coding-agent generation time into adaptive, Socratic learning grounded in the code being written.

Made by
Ajay Kumar
What we checked

Asks quiz questions about the code Claude writes in a side panel and keeps a local memory of your prompts, file edits and tool calls, summarised by Claude on your own login and fed back in later sessions. It installs and updates its own npm package, keeps a section in your global ~/.claude/CLAUDE.md, runs a local dashboard and sends anonymous daily usage counts.

Review details

Static review of the source at the pinned commit; not run. Full re-review of the new version (the diff since b465591 is too large for a delta review); this bundle also contains the mcp/ source of the npm package eklavya that actually runs, which the previous review covered by targeted search only. The plugin folder is a thin launcher: hooks/run.mjs runs the compiled runtime from ~/.eklavya/runtime, installs it in the background with npm install eklavya@<plugin version> when missing or behind, or starts the MCP server with npx --yes eklavya@<version> (retrying with latest only when npm says that version does not exist); the runtime then checks npm hourly, installs the newest version unless auto_update is false, and runs its own install --auto, which refreshes the plugin files, user skills, Claude Code's plugin registries, enabledPlugins and an empty status line slot in ~/.claude/settings.json (backups kept). New in this version: install (and every update check, even without a new version) adds or restores a marked memory section at the end of ~/.claude/CLAUDE.md telling Claude in every project how to use recalled memory; it is documented, removed by uninstall and skipped with --skip-claude-md. The panel module registers session.start, session.end, tool.call, prompt.submit, command.run (eklavya-panel, eklavya-panel-demo), ui.message and ui.render handlers (the latter also shortens how its own queued prompts are drawn in the transcript), calls the Eklavya MCP server (panel_sync, panel_answer) through $.mcp.call, grades typed answers with $.model.complete, spawns a background explainer agent after a wrong answer and queues prompts with $.prompt.submit. Shell hooks (node hooks/run.mjs) run on SessionStart, UserPromptSubmit, SubagentStart, PreToolUse (Bash, AskUserQuestion, Read), PostToolUse, the new PostToolUseFailure and SessionEnd, and Stop; they capture prompts, file edits and tool calls (tokens and passwords redacted, .env and key files skipped) and hand them to detached workers that call claude -p with tools, MCP, hooks and plugins disabled (default model now claude-haiku-5-5), inject recalled notes, optionally hold git commits behind a quiz (off by default), and, new and on by default (memory.file_hold), deny a whole-file Read of a code file of 32 KB or more that has memory history, pointing Claude to a partial read instead. New cost controls ported from microsoft/TokenEconomizer: a background fold reads Claude Code transcripts under ~/.claude/projects for token counts and tool names only; a loop guard (default nudge) adds a redirect to a turn that keeps repeating a failure and can end only a headless turn when set to stop; tool pruning (default propose) writes permissions.deny entries to the project's .claude/settings.local.json and a line to .git/info/exclude only on eklavya toolprune apply or when set to on, with an exact restore. Runtime also starts a detached local dashboard on 127.0.0.1, sends a Google Analytics ping of aggregate counts and config enum values (on by default, documented, opt-out), and supports webhook, command and file notification sinks and folder sync, all off until configured; explainer pages opened outside the dashboard load Google Fonts. Skills and agents contain no allowed-tools Bash pre-approval and no bypassed permissions; the explainer agent's tools list includes Bash and falls back to npx -y eklavya. Read fully: manifests, hooks.json, register.tsx, run.mjs, update.ts, install-lock.ts, claude-md.ts, telemetry-send.ts, loop-guard.ts, toolprune.ts, toolprune-store.ts, ledger-pending.ts and, from the clone, file-context.ts, session-end.ts and pre-tool-gate.ts; install.ts, config.ts, cli.ts, provider.ts, onboard.ts, dashboard.ts, transcript.ts and the other hook scripts were read in the changed parts and by targeted search for network, process, file-write, settings and permission calls; the rest of the runtime, the dashboard HTML and the npm dependencies (better-sqlite3, @modelcontextprotocol/sdk, zod) were not reviewed in full, and that the published npm package matches this source was not verified.

What it uses
  • Reads your prompts: yes
  • Sees tool calls: yes
  • Blocks or changes tool calls: yes
  • Reads or writes files: yes
  • Runs programs on your machine: yes
  • Calls the model (uses tokens): yes
  • Sends data over the network: yes
  • Stores data: yes
  • Shows something on screen: yes
Hooked events
Screenshot of eklavya
Made this mod? Add a badge to your README

modsforClaude badge for eklavya

Paste this into your README. The badge says reviewed once the current version has been reviewed, and links readers to this page.

[![Listed on modsforClaude](https://modsforclaude.com/badge/eklavya.svg)](https://modsforclaude.com/mods/eklavya/)

← All mods