AI Post-Mortem Generator from git history
Project description
💀 deathlog
AI Post-Mortem Generator
Generate post-mortems from git history in 30 seconds.
🤔 What does it do?
deathlog reads your recent git commit history, asks you 3 quick questions about an incident, and uses Claude 3.5 Sonnet to automatically generate a detailed Markdown post-mortem document.
Stop wasting time writing post-mortems manually when you can automate 90% of the work.
📦 Installation
pip install deathlog
🚀 Usage
You'll need an Anthropic API key to use the tool.
export ANTHROPIC_API_KEY="your-key-here"
Navigate to any git project folder where an incident occurred and run:
deathlog
It will ask you three questions:
- What broke?
- Who was affected?
- Is it fixed?
And then generate a postmortem-YYYY-MM-DD.md file in the current directory!
Testing without an API Key
If you just want to test the CLI flow without an API key, use the --mock flag:
deathlog --mock
📝 Example Output
# Post-Mortem: Payment service timed out
## Summary
The payment service timed out affecting approximately 200 users for 45 minutes. The issue has been identified and resolved.
## Timeline
- **T-0**: Incident began
- **T+15**: Alerts fired
- **T+30**: Root cause identified
- **T+45**: Fix deployed and service restored
## Root Cause
Connection pool exhaustion to the primary database replica under unexpected load spikes.
## Impact
- **What broke**: Payment service timed out
- **Who was affected**: Approx 200 users, 45 mins
- **Is it fixed**: yes
## Action Items
1. Increase connection pool size limits
2. Implement better circuit breakers for the payment service
3. Add specific alerting for connection pool exhaustion
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 deathlog-1.0.0.tar.gz.
File metadata
- Download URL: deathlog-1.0.0.tar.gz
- Upload date:
- Size: 4.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
43eda7ccfaeb8ec485a96cab53e09341b641b3cbe158de83b4cfc8524ef1291c
|
|
| MD5 |
3ed63118ba908d3d6f1f17ccfe59e962
|
|
| BLAKE2b-256 |
282179f9b982064b230703e58313c8e89a87a81882c1b9d92b6428f05a59409b
|
File details
Details for the file deathlog-1.0.0-py3-none-any.whl.
File metadata
- Download URL: deathlog-1.0.0-py3-none-any.whl
- Upload date:
- Size: 5.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ff99b2ef5cf0eec40b80237438f55fa4b2a64e33de7144f1141cf80d3ec81938
|
|
| MD5 |
ff5c9bdc99ed3d7315a66e6c232d6e76
|
|
| BLAKE2b-256 |
46bd3fa31ebbda097074d489ffd69b7ed960d06f834882f3f11a12642b948457
|