Skip to main content

Syncs Obsidian daily notes to Hindsight so they can be recalled by AI agents.

Project description

hindsight-daily

CI

Syncs Obsidian daily notes to Hindsight so they can be recalled by AI agents.

How it works

Walks a configured vault directory, finds notes named YYYY-MM-DD.md, parses them into structured sections, and submits new or changed notes to Hindsight via its API. Unchanged notes are skipped. Deleted notes are removed from Hindsight.

Change detection uses a content hash (not mtime) because Obsidian plugins frequently touch mtime without changing content.

Config

Config lives in ~/.config/hindsight-daily/config.yaml (XDG-compliant):

bank_id: your-bank-id
api_key: your-api-key
api_url:                    # optional, for local Hindsight installations
daily_notes_path: /path/to/vault/journals
verbose: false

Usage

hindsight-daily sync           # sync new and changed notes
hindsight-daily sync --limit 5 # sync at most 5 notes
hindsight-daily status         # show pending/up-to-date counts
hindsight-daily -v status      # show individual note dates
hindsight-daily -v sync        # sync with debug logging

Content structure

Each section of a note is submitted as a separate Hindsight document (e.g. journal:2024-01-07_001, journal:2024-01-07_002). The journal: prefix namespaces documents to avoid collisions with other tools writing to the same bank. The shallowest heading level present in the note becomes the section boundary; deeper headings are merged into their parent section as text blocks. Bullet and ordered lists preserve their markers. Blockquotes and unlabeled code blocks are wrapped in <quote> tags so Hindsight distinguishes external content from the user's own writing. Language-tagged code blocks use <code lang="...">. Wikilinks in section titles are extracted as scoped entity declarations so Hindsight correctly associates facts with the right entities.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

hindsight_daily-0.1.0.tar.gz (6.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

hindsight_daily-0.1.0-py3-none-any.whl (9.7 kB view details)

Uploaded Python 3

File details

Details for the file hindsight_daily-0.1.0.tar.gz.

File metadata

  • Download URL: hindsight_daily-0.1.0.tar.gz
  • Upload date:
  • Size: 6.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.10 {"installer":{"name":"uv","version":"0.11.10","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for hindsight_daily-0.1.0.tar.gz
Algorithm Hash digest
SHA256 459ef2987c971577422916e34805fcfc5e7706bc90eea511319e4ee49940a654
MD5 7642a611f4465984c88cbe91cc25dca3
BLAKE2b-256 6f7c70070f68e5d22a503b18e91795cd2dc0da6557150cbc04928176cd200f4a

See more details on using hashes here.

File details

Details for the file hindsight_daily-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: hindsight_daily-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 9.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.10 {"installer":{"name":"uv","version":"0.11.10","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for hindsight_daily-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 3a90aa0d5b0ec8a7df8bf19d26e33926461b423db1409c28f5a18e3aa8c72985
MD5 a3dfd8f70ab6564966242d29512a48c1
BLAKE2b-256 651dd58e873721589a5d6b8c993b70a9a11357ce242ee689fd192240ad54e1b9

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page