Fraction — AI skill for Claude Code
Persistent memory layer for LLM agents and AI applications.
How to install Fraction
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open pacifio/fraction and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
What Fraction does
Persistent memory layer for LLM agents and AI applications. Zero API costs, sub-100ms ingestion, fully offline.
Alternatives in AI
- Osaurus — Own your AI. The native macOS harness for AI agents -- any model, persistent memory, autonomous execution, cry 5.1k ★
- Manifest — Real-time cost observability for OpenClaw agents — track tokens, costs, messages, and model usage 4.1k ★
- Memmy Agent — 🍙 A personal AI agent & local memory hub for all AI agents, gives every AI one shared, fully controlled memor 1k ★
README
Fraction
Persistent memory layer for LLM agents and AI applications. **3x faster** than LLM-based extraction — zero API costs, sub-100ms ingestion, fully offline.
Outperforms **mem0** on BLEU-1 (+17%), F1 (+10%), and LLM Judge (+14%). Outperforms **supermemory** on BLEU-1 (+8%) and LLM Judge (+5%). All with **zero LLM calls** and **1.6x faster ingestion** than mem0.
Fraction supports two extraction modes:
- LLMLingua-2 (default) — learned token compression, zero API cost, fully offline
- LLM extraction — any LLM provider via litellm (OpenAI, Anthropic, Ollama, etc.)
Both modes use the same hybrid retrieval layer: vector similarity + BM25 + entity graph + temporal boost, merged via Reciprocal Rank Fusion.
Installation
pip install fractionally
# Download the spaCy model for entity extraction
python -m spacy download en_core_web_sm
# Optional: install litellm for LLM-based extraction (supports any provider)
pip install fractionally[llm]
Quick Start
from fraction import Memory
m = Memory()
# Add memories
m.add("I love hiking in the Rocky Mountains.", user_id="alice")
m.add("My favorite book is Dune by Frank Herbert.", user_id="alice")
m.add("I'm allergic to peanuts.", user_id="alice")
# Search memories
results = m.search("outdoor activities", user_id="alice")
for r in results["results"]:
print(f"{r['memory']} (score: {r['score']:.3f})")
# Memories auto-persist to ~/.fraction/
Features
- Two extraction modes — LLMLingua-2 (free, offline) or LLM-based (any provider via litellm)
- Zero API cost (default mode) — compression + embedding + retrieval run locally
- Sub-100ms ingestion — LLMLingua-2 compression + USearch indexing
- Deterministic — same input always produces same memory (LLMLingua mode)
- Hybrid retrieval — vector similarity + BM25 keywords + entity graph, merged via Reciprocal Rank Fusion
- Auto-persistence — memories survive process res
Related Skills
Intel Npu MCP
让你电脑里那块闲置的 NPU,第一次替你的 AI 编程助手干活:按语义找代码、不占 CPU、不出网。 Put your idle Intel NPU to work for AI coding agents - sema
Coding Agent Account Manager
Sub-100ms auth switching for AI coding CLIs (Claude Code, Codex, Gemini): swap subscription accounts instantly
Mnem
Git for AI Agent Knowledge. A persistent, versioned memory layer for AI systems. Hybrid GraphRAG retrieval. Ru
Awareness SDK
Local-first AI agent memory — one command, 13+ IDEs, works offline. Persistent memory for Claude Code, Cursor,
Wax
Shared Single-file memory layer for all your agents, sub mili-second RAG over text, photo and video on Apple S
Wolfpack OS
Autonomous, local multi-agent operating layer powered by Claude Code & Kimi Code. Automates business workflows
Related Agents
Appsec AI Security Reviewer
Use for AI/LLM application security review: direct/indirect prompt injection, tool and agent authorization, RA
Themis.Agent
Quality & security gate — heuristic scan (Layer 1, zero LLM) + deep
Timps AI Safety Agent
Audit LLM applications against OWASP LLM Top 10 (LLM01-LLM10) with mitigations. Use the timps_ai_safety_agent