Decision logging for AI-assisted development - automatic tracking, git integration, and context for AI agents
Project description
logmind
AI decision logging for development projects — branch-aware by default.
Why logmind
Codebases lose the why behind their code faster than the what. logmind captures architectural and implementation decisions as you make them, attaches them to the relevant git branch, and surfaces them to the next human or AI that works in the repo. One CLI command per decision; the package handles the docs, the branch routing, and the merge-time aggregation.
Key concept: Install once, init anywhere, log everything. Feature
branches get their own decision file; on PR merge a GitHub Action appends
a one-line summary to docs/decisions.md linking the PR + the branch
detail. AGENTS.md is the canonical agent-instruction file; per-tool files
(CLAUDE.md, .cursorrules, ...) are 2-line stubs pointing to it.
Installation
# Using pipx (recommended)
pipx install logmind
# Using Homebrew (macOS/Linux)
brew tap thrillmot/logmind
brew install logmind
# Using pip
pip install logmind
Quick Start
# If installed via pipx/brew, it's already available globally
# Initialize in your project
cd your-project
logmind init
# Log decisions - Python API
from logmind import log
log("Chose FastAPI over Flask",
reasoning="Need async/await for WebSocket handling")
# Or use CLI
logmind log "Use PostgreSQL for database" \
-r "Need ACID compliance" \
-a "MongoDB" -a "SQLite"
# View and search decisions
logmind show
logmind search "postgres"
# Log with a built-in template (pre-fills reasoning, alternatives, implications)
logmind log --template database "Use PostgreSQL"
logmind templates # list all available templates
# Analytics and stats
logmind stats
logmind stats --months 6
# Aggregate decisions across multiple projects
logmind aggregate ~/projects/api ~/projects/frontend
logmind aggregate --summary ~/work/*/
# Enforce decision logging with a pre-commit hook
logmind install-hook # installs .git/hooks/pre-commit
logmind check-decisions # run manually or in CI
# Manage AI agents
logmind agents list
logmind agents add windsurf
# View and modify configuration
logmind config list
logmind config get git.auto_push
logmind config set git.auto_push false
# Upgrade logmind
logmind update
# Auto-log with decorators
from logmind import log_decision, log_choice
@log_decision(
decision="Authenticate user with {method}",
reasoning="Security checkpoint"
)
def authenticate(method="oauth"):
# Your auth code
return True
@log_choice(
choices={
"redis": "Use Redis for caching",
"memory": "Use in-memory caching",
}
)
def select_cache():
return "redis" if is_production() else "memory"
Contributing / Development Setup
Working on logmind itself? Set it up like any CLI tool:
# Clone the repo
git clone https://github.com/thrillmot/logmind.git
cd logmind
# Install globally in editable mode (like npm, git, docker)
pipx install -e .
# Now just use it!
logmind log "Add new feature" -r "Reasoning here"
logmind show
logmind search "keyword"
# Run tests
python3 -m venv venv
source venv/bin/activate
pip install -e ".[dev]"
pytest
Why pipx? logmind is a CLI tool, not a library. It should be globally available like git or npm.
Framework Integrations
# LangChain — auto-log agent decisions (pip install logmind[langchain])
from logmind.integrations import LangChainLogger
chain = LLMChain(llm=llm, callbacks=[LangChainLogger()])
# Custom framework — subclass BaseIntegration
from logmind.integrations.base import BaseIntegration
class MyLogger(BaseIntegration):
def on_decision(self, output):
self.log(f"Chose: {output}", reasoning="My framework decided")
See docs/custom-integrations.md for patterns, examples, and publishing guide.
Documentation
- Plan & Architecture - Vision, approach, and technical details
- AI Agent Files - How logmind integrates with AI instruction files
- Custom Integrations - Build integrations for any AI framework
- First Decision Example - What the initial decision looks like
- Development Status - All phases complete ✅
How It Works
- Install logmind as a package
- Init creates
docs/folder and inserts instructions intoCLAUDE.md(preserving existing content) - Log a decision - appends, archives old ones (keeps 20 recent), regenerates tree, commits, and pushes
- Context AI agents read the 20 most recent decisions and current file structure
Why logmind?
- Simple: Two markdown files (recent + archive), no database
- Focused: Only 20 most recent decisions for relevant AI context
- Git-native: Every decision is a commit, git history is your audit trail
- AI-friendly: Recent decisions + file structure = complete context
- Automatic: Commits and pushes on every log
See docs/plan.md for complete architecture and roadmap.
Project details
Release history Release notifications | RSS feed
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 logmind-0.1.0.tar.gz.
File metadata
- Download URL: logmind-0.1.0.tar.gz
- Upload date:
- Size: 79.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fc78e7baa1ea920be697dd6f13fca0b6cf9f72fd337a3b549da4dffce7df3ae0
|
|
| MD5 |
1b188bf4dbfc9ac2216f6244e58281d6
|
|
| BLAKE2b-256 |
e7d5a600fa7addbeeef5f5d0f47833667195408869259490865c152af3fe23f5
|
Provenance
The following attestation bundles were made for logmind-0.1.0.tar.gz:
Publisher:
publish.yml on thrillmot/logmind
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
logmind-0.1.0.tar.gz -
Subject digest:
fc78e7baa1ea920be697dd6f13fca0b6cf9f72fd337a3b549da4dffce7df3ae0 - Sigstore transparency entry: 1545939989
- Sigstore integration time:
-
Permalink:
thrillmot/logmind@e67a9bae2ba2ce1fae45351a96d5b20ebb3129d9 -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/thrillmot
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@e67a9bae2ba2ce1fae45351a96d5b20ebb3129d9 -
Trigger Event:
push
-
Statement type:
File details
Details for the file logmind-0.1.0-py3-none-any.whl.
File metadata
- Download URL: logmind-0.1.0-py3-none-any.whl
- Upload date:
- Size: 54.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d7762da8f9f20d9793676ad92026bf30cf49fb6451c6f9dd704ca65627a546f5
|
|
| MD5 |
5c4e4d88162872071401c6d44c31fa41
|
|
| BLAKE2b-256 |
d1e970b2981af38b03f91510055c4d42446ff2616d7bb73a788d06412a334980
|
Provenance
The following attestation bundles were made for logmind-0.1.0-py3-none-any.whl:
Publisher:
publish.yml on thrillmot/logmind
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
logmind-0.1.0-py3-none-any.whl -
Subject digest:
d7762da8f9f20d9793676ad92026bf30cf49fb6451c6f9dd704ca65627a546f5 - Sigstore transparency entry: 1545940076
- Sigstore integration time:
-
Permalink:
thrillmot/logmind@e67a9bae2ba2ce1fae45351a96d5b20ebb3129d9 -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/thrillmot
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@e67a9bae2ba2ce1fae45351a96d5b20ebb3129d9 -
Trigger Event:
push
-
Statement type: