By patrickmvla
A layer over the host agent: Socratic probe + grader-gated emission for high-stakes work. Three layers (skill + MCP server + PreToolUse hook) deliver Gate 1 strong-with-transparency enforcement.
Grade a femto Socratic probe transcript against pack KCs and write grader.md. Invoked via Task with session_id, inputs_path, output_path. Reads probe-log.md + reads/*.md + pack KC files; writes exactly one grader.md.
Extract codebase context per a femto pack's mission. Invoked via Task with id, mission, output_path, output_schema. Writes exactly one reads/<id>.md with required sections + source citations; does not modify other files.
Reset probe state for the current femto session — back up probe-log.md, clear coverage, return to phase=probe_active.
Re-invoke any failed femto reads using the retry-with-validation-error pattern, capped at 2 retries per read.
Show the current femto session's phase, reads_status, probe coverage, grader_status, and the allowed_to_emit gate decision.
Admin access level
Server config contains admin-level keywords
Uses power tools
Uses Bash, Write, or Edit tools
Own this plugin?
Verify ownership to unlock analytics, metadata editing, and a verified badge. GitHub access is read-only (username + org membership).
Sign in to claimOwn this plugin?
Verify ownership to unlock analytics, metadata editing, and a verified badge. GitHub access is read-only (username + org membership).
Sign in to claimBased on adoption, maintenance, documentation, and repository signals. Not a security audit or endorsement.
This plugin requires configuration values that are prompted when the plugin is enabled. Sensitive values are stored in your system keychain.
solo_dev_portLocal port for the femto solo-dev view (http://127.0.0.1:<port>/me). On collision, the server tries +1..+9 then fails loud.
${user_config.solo_dev_port}session_retention_daysDays to keep .femto/session-<id>/ directories before the startup reaper deletes them. Floor 1 / ceiling 365.
${user_config.session_retention_days}probe_idle_timeout_minutesMark a session phase=failed (failure_reason=probe_idle_timeout) when no probe turn has been recorded for this many minutes.
${user_config.probe_idle_timeout_minutes}Socratic pre-emission gating layer for AI coding agents.
A Claude Code plugin that forces the host agent to demonstrate domain-specific mastery — via a Socratic probe graded by a separate model — before it's permitted to emit code against the gated domain. Three layers working together: a skill for content, an MCP server for the probe, and a PreToolUse hook for deterministic enforcement.
/plugin marketplace add patrickmvla/femto
/plugin install femto@femto-marketplace
Opt-in per repo by committing a .femto/config.yaml. Disabling femto on a
repo requires a committed config change — visible in code review — so a
pressured engineer cannot silently skip the gate.
Work where the stakes justify the friction: multi-tenancy, auth, data handling, safety-adjacent systems, onboarding engineers to domains they haven't seen before.
For compliance-grade work (HIPAA / PCI / SOC2 / NIST SP800 controls /
internal engineering policies) femto composes with packs you author in your
own repo under <repo>/.femto/packs/*/ — same schema, same structural
guarantees, your content, your trust boundary. See "Three content tiers" on
the Concepts page for the design.
Explicitly not for high-time-pressure emergencies — the incentive gradient points at disconnection and the org will not mandate the tool.
Femto does not claim guaranteed understanding. It commits to:
grader.md from disk rather than trusting
the probe's own summary.femto_start_session.grader.md with per-turn correctness + per-KC mastery.grader.md, checks per-KC mastery against the pack
threshold, and either allows Edit/Write/Bash or blocks with a
structured message.Session state lives at .femto/session-<id>/. Gitignored by template;
reaped after 30 days by default.
.claude-plugin/
plugin.json Plugin manifest (userConfig: solo_dev_port, retention, idle timeout)
marketplace.json Marketplace listing for /plugin install
.mcp.json MCP stdio server declaration with ${user_config.*} substitution
agents/
femto-grader/ Grader subagent (model: opus, tools: Read Write)
femto-reader/ Reader subagent (model: haiku, tools: Read Grep Glob Write)
skills/
femto-status/ /femto:status diagnostic
femto-retry-reads/ /femto:retry-reads recovery
femto-retry-probe/ /femto:retry-probe recovery
hooks/
hooks.json Hook manifest (SessionStart / PreToolUse / SessionEnd)
session-start.sh CC-session-id binding bootstrap
pre-tool-use.sh The gate (bash + inline python3, 60s fail-closed)
session-end.sh Cleanup
packages/
pack-schema/ Zod schemas + femto-validate-pack CLI
mcp-server/ 6 femto_* tools, session lifecycle, solo-dev HTTP (127.0.0.1 only)
harness/ Calibration via `claude -p` grader → AUC/FPR/TPR
site/ 6-page Astro site (public metrics dashboard)
hook-tests/ End-to-end hook integration tests
packs/
multi-tenancy/ Reference pack (alpha, row-level-security + tenant-scoping)
templates/
femto.gitignore Ship this in adopter repos to gitignore .femto/
docs/
calibration.md `claude setup-token` flow + 3 mandatory disclosure conditions
scripts/
bump-version.sh Keep plugin.json / marketplace.json / .mcp.json versions in sync
Requires: Bun (latest), Claude Code CLI,
and CLAUDE_CODE_OAUTH_TOKEN set in .env for harness calibration runs.
bun install
bun run --filter '*' test # 206 tests: pack-schema 15, mcp-server 110,
# hook-tests 13, harness 56, site 12
bun run --filter '*' typecheck
Site dev server:
cd packages/site && bun run dev
Harness calibration against the reference pack:
bun run packages/harness/src/cli.ts run packs/multi-tenancy
npx claudepluginhub patrickmvla/femto --plugin femtoUltra-compressed communication mode. Cuts ~75% of tokens while keeping full technical accuracy by speaking like a caveman.
Comprehensive UI/UX design plugin for mobile (iOS, Android, React Native) and web applications with design systems, accessibility, and modern patterns
Memory compression system for Claude Code - persist context across sessions
Standalone image generation plugin using Nano Banana MCP server. Generates and edits images, icons, diagrams, patterns, and visual assets via Gemini image models. No Gemini CLI dependency required.
Multi-model consensus engine integrating OpenAI Codex CLI, Gemini CLI, and Claude CLI for collaborative code review and problem-solving.
Streamline people operations — recruiting, onboarding, performance reviews, compensation analysis, and policy guidance. Maintain compliance and keep your team running smoothly.