Principle:0xranx OpenContext Idea Journaling
| Knowledge Sources | |
|---|---|
| Domains | Knowledge_Management, Productivity |
| Last Updated | 2026-10-24 12:00 GMT |
Overview
A knowledge management pattern for capturing ideas as timestamped threads, adding entries over time, generating AI reflections, and cross-referencing ideas within documents using stable reference URLs.
Description
Idea journaling addresses the need for a lightweight, non-structured knowledge capture system that complements formal documentation. Unlike structured documents, ideas are fast to capture, support continuous evolution through threaded entries, and can be cross-referenced from formal documents.
The pattern consists of:
- Thread-based organization: Each idea is a thread with a unique ID. Threads contain multiple entries (the initial idea plus follow-up entries), each timestamped and optionally flagged as AI-generated.
- File-based storage: Threads are stored as Markdown files organized by box (e.g., "inbox"), year, and month (`{box}/{year}/{month}/{threadId}.md`). This makes ideas portable and human-readable.
- Entry markers: Each entry is delimited by a special comment marker (`[//]: # (idea:id=<uuid> created_at=<timestamp>)`) that is invisible in rendered Markdown but parseable by the system.
- AI Reflection: The system can generate AI reflections on a thread by sending the thread's entries to an LLM with streaming responses. The AI is instructed to seed new ideas, encourage, or debate — not to repeat the user's words.
- Cross-referencing: Ideas can be referenced from documents using `oc://idea/<threadId>?entry=<entryId>&date=<date>` URLs, rendered as inline reference blocks in the Tiptap editor.
- Search and retrieval: Threads can be filtered by date, keyword, or box; entries are grouped by date for timeline display.
Usage
Use this principle when building a journaling or note-taking system that needs rapid idea capture, threaded evolution, and AI-assisted reflection. It is complementary to formal documentation — ideas capture raw thinking, while documents capture structured knowledge.
Theoretical Basis
The idea thread model:
Entry Marker Format:
[//]: # (idea:id=abc123 created_at=2025-12-11T17:00:00Z)
This is the entry content in markdown.
Multiple lines are supported.
Cross-Reference URL:
oc://idea/<threadId>?entry=<entryId>&date=<date>
Pseudo-code Logic:
# Abstract algorithm (NOT real implementation)
def create_idea(content, box="inbox"):
thread_id = generate_uuid()
entry_id = generate_uuid()
file_path = f".ideas/{box}/{year}/{month}/{thread_id}.md"
marker = f"[//]: # (idea:id={entry_id} created_at={now()})"
write_file(file_path, f"{marker}\n\n{content}")
return Thread(id=thread_id, entries=[Entry(id=entry_id, content=content)])
def add_entry(thread_id, content):
entry_id = generate_uuid()
file_path = find_thread_file(thread_id)
append_to_file(file_path, f"\n{marker}\n\n{content}")
return Entry(id=entry_id, content=content)
Practical Guide
- Box organization: Use boxes (e.g., "inbox", "projects", "archive") to organize ideas by status.
- AI reflection: The AI context loads thread entries, resolves any `oc://doc/` and `oc://idea/` references in entry text, and includes reference metadata in the prompt.
- Cross-references: Use `buildIdeaRefUrl()` to generate idea reference URLs; the Tiptap editor renders them as visual reference blocks.
- Indexing: Idea entries are parsed by the indexer (via `parse_idea_entries`) and indexed alongside regular documents, with `doc_type: "idea"` for filtered search.