| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
A Claude Code skill (also usable by Codex / Cursor / any agent that can run a CLI and read a SKILL file) that gives an LLM agent a fast query layer over a Logseq vault: SQLite + FTS5 + jieba CJK tokenizer, plus a logseq:// URL convention so every result is one Cmd+Click away from opening in Logseq desktop.
Logseq itself has no persistent search index and tokenizes CJK as opaque runs, so anything past a few thousand notes slows down or stops finding things. This skill is that missing layer.
For Claude Code (canonical skill location):
git clone https://github.com/bencode/logseq-skill ~/.claude/skills/logseq-skill
cd ~/.claude/skills/logseq-skill
uv venv && uv pip install -e .For Codex / Cursor / other agents: clone anywhere and point your agent's instruction file at <repo>/SKILL.md. The CLI binary lives at <repo>/.venv/bin/logseq after install.
Requires: Python ≥ 3.11. Logseq desktop is optional but recommended (for the logseq:// URL handoff).
# DB-backed (the value-add — runs in milliseconds, not seconds)
logseq index <vault> # build / refresh SQLite + FTS5
logseq stats <vault> # health + counts
logseq search <query> <vault> # FTS5 + jieba CJK tokenization
logseq backlinks <name> <vault> # who links to this page
logseq todos <vault> [--marker M] # TODO / DOING aggregator
# Atomic file reads (LLM tool-call savings)
logseq parse <file> # → {page, blocks[]} JSON
logseq page <file> # → page metadata only
logseq journal <date> --in <vault> # date = "today" | YYYY-MM-DD
logseq find-page <name> <dir>... # case-insensitive name lookupAll output is JSON on stdout. Exit codes and the full JSON contract: SKILL.md.
Not in the CLI (intentional):
Once installed and the user /add-dir'd a vault containing logseq/config.edn:
Full agent contract: SKILL.md.
.venv/bin/pytest -q # ~1200 tests in ~2s
.venv/bin/ruff check . # lintIf LOGSEQ_VAULT env var points to a real Logseq vault, ~1100 additional parser round-trip tests run against every .md file in it — the corpus regression that backs the "writes-via-Edit are safe" claim.
rm -rf ~/.claude/skills/logseq-skill
rm -rf ~/.cache/logseq-skill # SQLite indexesMIT.
| Back | FazBrowse Home | New Git URL |