网页 综合 更新时间 2026-10-21 13:06:14

SlothLog: Why I Built an Offline, AI-Powered Timesheet Generator for Lazy Developers - DEV Community

自动蜘蛛 dev.to 正文约 4656 字
SlothLog: Why I Built an Offline, AI-Powered Timesheet Generator for Lazy Developers - DEV Community
Hacktoberfest Open-Source AI Challenge Week 3: Slow and Steady Submission 🦥
This is a submission for the Hacktoberfest Open-Source AI Challenge Week 3: Slow and Steady
Every Friday afternoon at 4:30 PM, an invisible cloud of collective dread descends upon software engineering teams: logging our hours into Jira, Azure DevOps, or corporate time trackers.
You open your tracking tool, stare at a blank grid of empty days, and begin the painful archaeological dig through your week:
The result? Developers either spend 45 minutes of precious Friday time reconstructing history, or they guess haphazardly, slapping 8.0h - General Development across every day of the week.
I wanted to be completely, unapologetically lazy.
So I built SlothLog (🦥): an offline, privacy-first developer utility that inspects your local git commits across multiple repositories, clusters activity by ticket identifier, estimates work session duration, and synthesizes executive-ready timesheet summaries using Google Gemma 2 2B running locally via Ollama.
Here is SlothLog in action running locally with its utilitarian dark dashboard:
The web dashboard features an interactive date selector, hour stepper (+ / - 0.25h), tracked repository manager, and single-click copy buttons with instant toast confirmations:
If you prefer staying in the terminal:
You can also export to standard CSV with python cli.py export -o timesheet.csv for HR and payroll imports.
Turn your git commits into honest, sensible timesheets — without leaking company code to the cloud.
Every Friday at 4:30 PM, the same ritual happens across engineering teams:
Most of us waste 30 to 45 minutes every week doing this archaeological reconstruction. And while modern AI tools can summarize text, pasting internal commit messages and proprietary code into third-party cloud APIs is a fast track to an unpleasant chat with Infosec.
SlothLog fixes this by staying completely local:
The full open-source codebase is hosted on GitHub: 👉 https://github.com/alessiobianchini/slothlog
SlothLog was designed with a strict anti-overengineering philosophy: no heavy orchestrators (no LangChain, no LlamaIndex), no external cloud dependencies, and zero telemetry bloat.
The core engine inspects local git histories using native git log --format=%H|%aI|%an|%ae|%s --date-order. Commits are grouped by ticket identifier:
To estimate time accurately without snooping or spyware, SlothLog uses a session clustering algorithm:
Enterprise developers cannot send proprietary commit messages, internal function names, or company ticket contents to third-party closed AI APIs. Privacy is paramount.
SlothLog queries Google Gemma 2 2B via Ollama on localhost:11434. Gemma 2 2B is the ideal model for this task: ultra-lightweight, extremely fast on standard laptops, and remarkably proficient at concise extractive summarization without conversational filler.
Here is the exact prompt that produces crisp results:
If Ollama is not running or offline, SlothLog activates a graceful deterministic fallback, generating clean formatted summaries from the raw commits so you are never blocked.
To monitor the local AI execution and observe system health, I instrumented SlothLog with Sentry SDK's Agent & GenAI Tracing:
Every synthesis run tracks token throughput, inference latency, and error states. Even better: Sentry confirms that our AI cost is \$0.00.
Open innovation is the entire reason SlothLog can exist.
In a corporate environment, developer codebases are strictly confidential. Proprietary APIs from closed vendors pose serious privacy, compliance, and IP risks:
With open-weight models like Google Gemma 2, the paradigm shifts:
Open-weight AI gives power back to individual builders.
This entire project — from architecture design and specification to TDD implementation, Sentry tracing, and frontend build — was developed using Antigravity pair-programming.
You can inspect the complete design spec and step-by-step TDD verification transcript in the project repository:
Let's calculate the sloth economics:
Manual Timesheet Archaeologist:
That's 98.8% time saved, 39 extra hours per year spent building actual software (or taking a well-deserved nap). Sloths everywhere rejoice.
I am officially entering SlothLog into the following categories for Hacktoberfest Open-Source AI Challenge Week 3:
DEV Community — A space to discuss and keep up software development and manage your software career
Built on Forem — the open source software that powers DEV and other inclusive communities.
Made with love and Ruby on Rails. DEV Community © 2016 - 2026.
We're a place where coders share, stay up-to-date and grow their careers.
访问原文 返回搜索 https://dev.to/alessio_bianchini/slothlog-why-i-built-an-offline-ai-powered-timesheet-generator-for-lazy-developers-2mak
本页为82搜索生成的网页快照,内容来自站内索引;演示数据的原文链接仅作示例。