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
- Set your storage location:
export COMMONPLACE_ROOT=/path/to/your/commonplace
# or create a .env file with:
# COMMONPLACE_ROOT=/path/to/your/commonplace
- 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.
- 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
- Export your conversations from claude.ai (Download > Export)
- Import the ZIP file:
commonplace import path/to/claude-export.zip
Import Gemini conversations
- Request your data from Google Takeout
- Select "My Activity" and "Assistant"
- 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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8f8923614ebfba02ce9ff6acd355c05eeaf586b50117eb0792ee60eaa1433c52
|
|
| MD5 |
4abd280cc9e7bebff676d8d167795749
|
|
| BLAKE2b-256 |
0ccc96941307918d287e73a9d60da8a7454f7d67a052343b5cddee3a167507a0
|
File details
Details for the file commonplace-0.0.3-py3-none-any.whl.
File metadata
- Download URL: commonplace-0.0.3-py3-none-any.whl
- Upload date:
- Size: 20.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.8.17
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
37607026ee58b3a05712d6de09d73ec18b40be53f9da4bf5281931f29b3a74eb
|
|
| MD5 |
272f3a1befe9d2b2169504a79ca61396
|
|
| BLAKE2b-256 |
9023475c6240c75185709a5ad137f3ed9b8e10e92782f5dbb7dd46c3fe643edb
|