/footprint:footprintfrom footprint
Trains a small local language model on Claude Code session transcripts to learn and replay a project's working style. Supports MLX on Apple Silicon and torch+PEFT elsewhere.
Ships in footprint. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Footprint collects this machine's Claude Code session transcripts, fine-tunes a
small local model on them (MLX LoRA on Apple Silicon, torch+PEFT elsewhere),
and serves it as an OpenAI-compatible API for OpenCode/Cursor/Codex.
Code layout: footprint.py (entry shim) -> footprint_core/ (cli, config,
transcripts, service, backends/{mlx,torch}_backend.py).
Repo: /Users/aman/Developer/footprint. Python: /Users/aman/Developer/footprint/.venv/bin/python
(if .venv missing, run setup first with system python3).
Map the user's /footprint <arg> to one Bash call:
| Invocation | Run |
|---|---|
/footprint or /footprint status | .venv/bin/python footprint.py status |
/footprint setup | python3 footprint.py setup |
/footprint trace | .venv/bin/python footprint.py trace (arm BEFORE chatting; only sessions after this become training data) |
/footprint collect | .venv/bin/python footprint.py collect <current project dir> |
/footprint collect all | .venv/bin/python footprint.py collect --all-projects-nonexistent-dir (falls back to all projects) |
/footprint train | .venv/bin/python footprint.py train (long; run in background) |
/footprint install | .venv/bin/python footprint.py install (Ollama model footprint + OpenCode /footprint command — user never runs serve) |
/footprint context | python3 footprint.py context (preview previous-session state for this project) |
/footprint context install | python3 footprint.py context install (SessionStart hook in ~/.claude/settings.json: new sessions continue from the last one; OpenCode plugin auto-injects + /continue command; reads both Claude and OpenCode sessions) |
/footprint switch | python3 footprint.py switch (import latest Claude chat for this project into OpenCode with full history; prints opencode -s <id>) |
/footprint serve | .venv/bin/python footprint.py serve (rebuild Ollama model footprint; install / adapter use already do it) |
Always run commands from /Users/aman/Developer/footprint.
setup — venv + mlx-lm + skill symlink.trace — arm tracing FIRST, before chatting with Claude. Writes ~/.claude/footprint-trace; collect then only uses sessions newer than the marker (delete marker to use all history).~/.claude/projects automatically.collect — parses ~/.claude/projects/<project>/*.jsonl into data/train.jsonl + data/valid.jsonl (chat format, tool calls encoded as <tool name="...">{args}</tool>).train — LoRA on mlx-community/Qwen2.5-Coder-1.5B-Instruct-4bit (override with FOOTPRINT_MODEL, iterations with FOOTPRINT_ITERS, default 300). Downloads ~1 GB first time. Run in background, report loss when done.install — the user never runs the server. The active adapter is converted to GGUF and built into Ollama model footprint (base qwen2.5-coder:1.5b); Ollama serves the OpenAI-compatible API at http://127.0.0.1:11434/v1 and starts at login. Needs Ollama installed and running. Also installs into OpenCode: provider footprint + /footprint <task> command (~/.config/opencode/commands/footprint.md) so typing /footprint there makes OpenCode work like Claude.
Other tools point at the always-on server:
http://127.0.0.1:11434/v1, any API key, add model footprint.~/.codex/config.toml.Report command output tersely. If mlx-lm import fails, rerun setup.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
Generated from the plugin's indexed repository (amanlabh/footprint) — no native marketplace selected
npx claudepluginhub p/amanlabh-footprintOther plugins' skills for the same job