Skip to main content

A personal knowledge management tool

Project description

Commonplace

A personal knowledge management tool for archiving and organizing your AI conversations into a searchable digital commonplace book.

What is Commonplace?

Commonplace transforms your scattered AI chat exports into an organized, searchable personal knowledge repository. Just like the traditional commonplace books used by scholars and thinkers throughout history, this tool helps you preserve and revisit your most valuable AI conversations.

Features

Current Capabilities

  • Import conversations from multiple AI providers:
    • Claude (via ZIP export from claude.ai)
    • Gemini (via Google Takeout HTML export)
  • Standardized storage as organized markdown files with metadata
  • Date-based organization in a clear directory structure:
    ~/commonplace/
    ├── chats/                    # AI conversations (imported by tool)
    │   ├── claude/2024/06/2024-06-28-conversation-title.md
    │   ├── gemini/2024/06/2024-06-28-gemini-conversations.md
    │   └── ...
    ├── journal/                  # Manual journal entries
    └── notes/                    # Manual notes and thoughts
    
  • Rich markdown format with frontmatter, timestamps, and proper formatting
  • Git integration for change tracking and automatic commits when importing conversations

Planned Features

  • Interactive curation tools (move, rename, label)
  • Cross-conversation search and analysis
  • Advanced synthesis across both imported chats and manual content

Installation

pip install uv
uv tool install commonplace

Setup

  1. Set your storage location:
export COMMONPLACE_ROOT=/path/to/your/commonplace
# or create a .env file with:
# COMMONPLACE_ROOT=/path/to/your/commonplace
  1. Initialize your commonplace as a git repository (recommended):
commonplace init

This creates a git repository for change tracking and enables automatic commits when importing conversations.

  1. Configure an LLM for journal generation (optional):
# Install and configure OpenAI (or other providers)
llm install llm-openai
llm keys set openai
# Enter your API key when prompted

# Or use local models
llm install llm-gpt4all

Usage

Import Claude conversations

  1. Export your conversations from claude.ai (Download > Export)
  2. Import the ZIP file:
commonplace import path/to/claude-export.zip

Import Gemini conversations

  1. Request your data from Google Takeout
  2. Select "My Activity" and "Assistant"
  3. Import the ZIP file:
commonplace import path/to/takeout-export.zip

Generate journal insights

Analyze and summarize your recent conversations:

# Basic summary of last 7 days
commonplace journal

# Analyze last 30 days with specific model  
commonplace journal --days 30 --model claude-3-sonnet

# Just show statistics without AI summary
commonplace journal --stats-only

Output Format

Each conversation is stored as a markdown file with:

  • Frontmatter metadata (source, timestamps, IDs)
  • Structured headers for each speaker
  • Preserved formatting and content
  • Date-based organization for easy browsing

Example output:

---
model: claude-3-sonnet
uuid: conversation-123
---

# Exploring Machine Learning [created:: 2024-06-28T14:30:00]

## Human [created:: 2024-06-28T14:30:00]
Can you explain how neural networks work?

## Claude [created:: 2024-06-28T14:30:15]
Neural networks are computational models inspired by biological brains...

Development

# Run tests
uv run pytest tests/ -v

# Format code  
uv run ruff format .

# Type check
uv run mypy src/

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

commonplace-0.0.3.tar.gz (82.2 kB view details)

Uploaded Source

Built Distribution

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

commonplace-0.0.3-py3-none-any.whl (20.1 kB view details)

Uploaded Python 3

File details

Details for the file commonplace-0.0.3.tar.gz.

File metadata

  • Download URL: commonplace-0.0.3.tar.gz
  • Upload date:
  • Size: 82.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.8.17

File hashes

Hashes for commonplace-0.0.3.tar.gz
Algorithm Hash digest
SHA256 8f8923614ebfba02ce9ff6acd355c05eeaf586b50117eb0792ee60eaa1433c52
MD5 4abd280cc9e7bebff676d8d167795749
BLAKE2b-256 0ccc96941307918d287e73a9d60da8a7454f7d67a052343b5cddee3a167507a0

See more details on using hashes here.

File details

Details for the file commonplace-0.0.3-py3-none-any.whl.

File metadata

File hashes

Hashes for commonplace-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 37607026ee58b3a05712d6de09d73ec18b40be53f9da4bf5281931f29b3a74eb
MD5 272f3a1befe9d2b2169504a79ca61396
BLAKE2b-256 9023475c6240c75185709a5ad137f3ed9b8e10e92782f5dbb7dd46c3fe643edb

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