Work Intelligence Agent
Automated weekly work reporting from git history across multiple repositories — now with optional AI-powered summaries via Google Gemini.
What It Does
Point the agent at a directory (or list of repos) and an author name, and it produces a clean markdown report of the week's work — grouped by day, organized by repository, with similar commits summarized together.
New in v0.2.0: When a Gemini API key is configured, groups of 3+ related commits get an AI-generated one-line summary for faster reading.
Installation
Requires Python 3.11+ and git on your PATH.
pip install work-intelligence-agent
Or run directly with uvx:
uvx work-intelligence-agent --author "Your Name" --parent-directory ~/projects
AI Summarization (Optional)
Set your Gemini API key to enable AI-powered commit summaries:
export GEMINI_API_KEY="your-gemini-api-key"
Get a free API key at Google AI Studio.
Without the key, the agent still works — it just uses prefix-based grouping instead of AI summaries.
CLI Usage
# Scan a parent directory for repos and generate a report
work-intelligence --author "Jane Doe" --parent-directory ~/projects
# Specify repos explicitly
work-intelligence --author "Jane Doe" --repositories ~/projects/repo-a ~/projects/repo-b
# Custom date range
work-intelligence --author "Jane Doe" --parent-directory ~/projects \
--start-date 2025-01-06 --end-date 2025-01-12
# Write output to a file
work-intelligence --author "Jane Doe" --parent-directory ~/projects --output report.md
CLI Options
| Option | Description |
|---|---|
--author |
Author name for filtering commits (required) |
--parent-directory |
Directory to scan recursively for git repos |
--repositories |
Explicit list of repo paths |
--start-date |
Start date, YYYY-MM-DD (default: 7 days ago) |
--end-date |
End date, YYYY-MM-DD (default: today) |
--output |
Output file path (default: stdout) |
--config |
Config file path (default: .kiro/work-intelligence.json) |
Configuration File
Place a JSON config at .kiro/work-intelligence.json to set defaults:
{
"author": "Jane Doe",
"parent_directory": "~/projects",
"date_range": {
"start": "2025-01-06",
"end": "2025-01-12"
}
}
CLI arguments override config file values.
MCP Server
The agent also runs as an MCP server for integration with AI tools like Kiro.
{
"mcpServers": {
"work-intelligence-agent": {
"command": "uvx",
"args": ["--from", "work-intelligence-agent", "work-intelligence-mcp"],
"env": {
"GEMINI_API_KEY": "your-gemini-api-key"
}
}
}
}
When used via MCP, the agent will prompt you for any missing details (author name, repo location, date range) through the AI assistant conversation.
The server exposes three tools:
generate_report— Full weekly report generation (prompts for author, repos, dates, and output path)scan_repos— Discover git repos under a directoryextract_history— Extract raw commit history
Development
# Install with test dependencies
pip install -e ".[test]"
# Run tests
pytest
# Run the MCP server locally
work-intelligence-mcp
Changelog
v0.2.0
- AI-powered commit summarization via Google Gemini (
gemini-2.0-flash) - Set
GEMINI_API_KEYto enable — falls back gracefully without it - MCP server now prompts users for missing parameters (author, repos, dates)
generate_reporttool now acceptsoutput_pathto save reports to file- Added
google-genaidependency
v0.1.0
- Initial release
- CLI and MCP server for weekly work report generation
- Prefix-based commit grouping and summarization
- Recursive git repository scanning
License
MIT
Metadata
Release files for work-intelligence-agent 0.5.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| work_intelligence_agent-0.5.1.tar.gz | 34.9 kB | Without provenance | Details for work_intelligence_agent-0.5.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| work_intelligence_agent-0.5.1-py3-none-any.whl | Python 3 | none | any | Details for work_intelligence_agent-0.5.1-py3-none-any.whl |
Total release size: 50.8 kB
Release files / work_intelligence_agent-0.5.1.tar.gz
| Download URL | work_intelligence_agent-0.5.1.tar.gz |
|---|---|
| Size | 34.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d5f277fbba575605112c6c8c0162a70f4e336e51019e4053b95c1dea75b28edf
|
|
BLAKE2b-256 checksum How to use checksums |
b595c7ab589e29dc23bd47baae6702c84eb6ef25f5181e75f8a0c78495bd355d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.3
|
Release files / work_intelligence_agent-0.5.1-py3-none-any.whl
| Download URL | work_intelligence_agent-0.5.1-py3-none-any.whl |
|---|---|
| Size | 15.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
6053a8c3740d24425c207a99dcd344232cfd9bd4b497b24cb55bd9c759909b2b
|
|
BLAKE2b-256 checksum How to use checksums |
b684cab535e1ec228517adbaf19c9f29a0ebe1163b3d044097e17cfee7d4573d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.3
|
Security for work-intelligence-agent 0.5.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.