💀 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
Metadata
Release files for deathlog 1.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| deathlog-1.0.0.tar.gz | 4.5 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| deathlog-1.0.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 9.6 kB
Release files / deathlog-1.0.0.tar.gz
| Download URL | deathlog-1.0.0.tar.gz |
|---|---|
| Size | 4.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
43eda7ccfaeb8ec485a96cab53e09341b641b3cbe158de83b4cfc8524ef1291c
|
|
BLAKE2b-256 checksum How to use checksums |
282179f9b982064b230703e58313c8e89a87a81882c1b9d92b6428f05a59409b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.2
|
Release files / deathlog-1.0.0-py3-none-any.whl
| Download URL | deathlog-1.0.0-py3-none-any.whl |
|---|---|
| Size | 5.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
ff99b2ef5cf0eec40b80237438f55fa4b2a64e33de7144f1141cf80d3ec81938
|
|
BLAKE2b-256 checksum How to use checksums |
46bd3fa31ebbda097074d489ffd69b7ed960d06f834882f3f11a12642b948457
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.2
|