Skip to main content

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

Project description

hindsight-daily

CI PyPI

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.

Installation

uv tool install hindsight-daily

or with pip:

pip install hindsight-daily

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 forget DATE    # remove a note from server and cache
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.2.0.tar.gz (7.1 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.2.0-py3-none-any.whl (10.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: hindsight_daily-0.2.0.tar.gz
  • Upload date:
  • Size: 7.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for hindsight_daily-0.2.0.tar.gz
Algorithm Hash digest
SHA256 af5bb1838cbc1f8a25806c246ef700f20d22d32c795ef44c0075f81eeae2b3b1
MD5 c8946ca3746fc5eac5ce96d85a915870
BLAKE2b-256 fd4ff6d7a696fd9ef8769bbb9313f47698533a9b9dd2ad5c04a678d78f69c812

See more details on using hashes here.

Provenance

The following attestation bundles were made for hindsight_daily-0.2.0.tar.gz:

Publisher: publish.yml on r8/hindsight-daily

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

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

File metadata

File hashes

Hashes for hindsight_daily-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 86a314a314d566c1944fb009467fd6d88e45d28c552b18721f68b7d2c5a34b53
MD5 1f74b0b2993ad0065456b14eeb310ad8
BLAKE2b-256 82705cae99cbf6f426c3a7c735ea94f7dd9a73185bd2b4f5575f1f8d92df7f88

See more details on using hashes here.

Provenance

The following attestation bundles were made for hindsight_daily-0.2.0-py3-none-any.whl:

Publisher: publish.yml on r8/hindsight-daily

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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