Skip to content

CLI-first local memory for agents: capture links, annotate evidence, and retrieve compact briefs.

Notifications You must be signed in to change notification settings

gdiab/linkledger-cli

Repository files navigation

linkledger-cli

CLI-first personal knowledge capture and retrieval for human+agent workflows.

Quick start

  1. Install dependencies:
npm install
  1. Build:
npm run build
  1. Run:
node dist/cli/index.js --help

Commands

  • linkledger 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]

Ingestion adapters (M2)

  • 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.

Database path

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

Agent skill

An agent-usage skill is included at:

  • skills/linkledger-cli-agent/SKILL.md

Docs

  • 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

Maintenance

  • Backfill legacy Reddit items previously saved as article:
npm run backfill:reddit -- --dry-run
npm run backfill:reddit

About

CLI-first local memory for agents: capture links, annotate evidence, and retrieve compact briefs.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •