jgs-lit-memory
Capture the papers once: one record, the citation graph, and an analysis brief per paper. Query the corpus, not the internet, next time.
lit_fetch.py captures scholarly papers from OpenAlex into a per-project
.lit/ corpus: one normalized JSON record per paper, citation edges between
them, optional findings notes, and a low-friction inbox for offline capture.
The companion lit-capture skill drives the capture procedure from research
conversations, so the next session queries the local corpus instead of
re-searching the same papers. Built for people who do literature-heavy work
inside coding agents: ZCode, Claude Code, Cursor, Codex, Gemini CLI, and
Copilot.
Why
Research conversations re-find the same papers every week. The corpus answers
"do we have it?" from one normalized record per paper under papers/ and
"who cites whom?" from graph/edges.jsonl. Neither layer records claims,
methods, limits, or why a paper matters here. Paper briefs do: one analysis
sidecar per paper at .lit/briefs/<W-id>.json. Full pitch:
jgsystemsconsulting.github.io/jgs-lit-memory.
Prerequisites
- Python 3.9+ (standard library only; no pip packages)
- Network access to
api.openalex.org; an OpenAlex API key is optional
(singleton DOI and W-id lookups are free, budgeted calls warn without one).
Setup: docs/skill-usage.md
Install
git clone https://github.com/jgsystemsconsulting/jgs-lit-memory
cd jgs-lit-memory
python install.py # ZCode, flat ~/.zcode/skills/lit-capture/
python install.py --agent claude # Claude Code, ~/.claude/skills/jgs/lit-capture/
python install.py --agent all # every user-global host
python install.py --dry-run
python install.py --list-agents
Wrappers: install.sh, install.ps1. Native agents (ZCode, Claude Code,
OpenClaw, Copilot CLI, Codex) get the whole skill folder, so SKILL.md and
lit_fetch.py land together. Gemini gets an extension directory with
GEMINI.md, SKILL.md, gemini-extension.json, and lit_fetch.py. Cursor
gets one .mdc rule file only; the script stays in the clone or a native
install. Edits happen in this repo and get re-installed. An existing flat
mirror (for example ~/.claude/skills/lit-capture/) keeps working as the
documented fallback. Per-host paths:
docs/other-agents.md. Restart the agent session after
installing.
Install with your AI agent
Copy the prompt below into your coding agent (ZCode, Claude Code, Cursor, or
similar). It reads this README and installs the pack autonomously.
Install jgs-lit-memory v1.3.0 (agent skill pack). Read the README and follow it. Do not invent steps.
Repository: https://github.com/jgsystemsconsulting/jgs-lit-memory
Do this in order.