CLI-first personal knowledge capture and retrieval for human+agent workflows.
- Install dependencies:
npm install- Build:
npm run build- Run:
node dist/cli/index.js --helplinkledger save <url> [--note "..."] [--tags a,b] [--json]linkledger annotate <item-id> --highlight|--lowlight|--note "..." [--actor human|agent:name] [--confidence 0.0-1.0] [--pin] [--json]linkledger tag <item-id> --add a,b [--actor ...] [--json]linkledger find <query> [--tags ...] [--type article|x|youtube|pdf|bluesky|linkedin|reddit] [--since YYYY-MM-DD] [--limit N] [--json]linkledger brief <query> [--max-items N] [--expand-chunks] [--json]linkledger related <item-id> [--max-items N] [--json]linkledger status <item-id> [--json]linkledger retry <item-id> [--json]linkledger index-rebuild [--json]linkledger worker [--limit N] [--max-attempts N] [--base-backoff-ms N] [--json]
article: HTML extraction and chunking.x: oEmbed-based extraction with fallback to article adapter.youtube: oEmbed + watch-page metadata extraction with fallback to article adapter.pdf: text-native PDF extraction via content stream parsing.bluesky: oEmbed + page metadata extraction with article fallback.linkedin: page metadata extraction with LinkedIn-specific parsing.reddit: Reddit listing API extraction for post + top comments with article fallback.
Retryable adapter failures are requeued with exponential backoff in worker.
In M3, successful ingest also creates enrichment artifacts and moves items to enriched.
By default the SQLite database is created at:
.linkledger/linkledger.db(in current working directory)
Override with:
LINKLEDGER_DB_PATH=/absolute/path/to/linkledger.db
An agent-usage skill is included at:
skills/linkledger-cli-agent/SKILL.md
- JSON contract:
docs/json-contract.md - Backup/restore runbook:
docs/backup-restore.md - Benchmarking:
docs/benchmarking.md - Agent brief workflow:
docs/agent-brief-workflow.md - Human validation playbook:
docs/human-test-plan.md
- Backfill legacy Reddit items previously saved as
article:
npm run backfill:reddit -- --dry-run
npm run backfill:reddit