You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CLAUDE.md
+88-3Lines changed: 88 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,11 +4,16 @@ This file provides guidance to Claude Code (claude.ai/code) when working with co
4
4
5
5
## Project Overview
6
6
7
-
Clockwork is an MCP (Model Context Protocol) server that automatically tracks work time based on git commits. It aggregates commits into worklog entries and calculates durations.
7
+
Clockwork is a dual-mode time tracking system that automatically tracks work time based on git commits:
8
+
9
+
1.**MCP Server Mode** - Exposes time tracking as MCP tools for integration with Claude and other LLM applications
10
+
2.**TUI Mode** - Interactive terminal user interface for direct interaction with keyboard navigation
11
+
12
+
Both modes share the same embedded bbolt database and business logic.
8
13
9
14
**Module Path:**`github.com/techthos/clockwork`
10
15
11
-
## Build and Test Commands
16
+
## Build and Run Commands
12
17
13
18
```bash
14
19
# Build binary
@@ -17,6 +22,12 @@ go build -o clockwork ./cmd/clockwork
17
22
# Install to GOPATH/bin
18
23
go install ./cmd/clockwork
19
24
25
+
# Run MCP server mode (default)
26
+
./clockwork
27
+
28
+
# Run TUI mode
29
+
./clockwork tui
30
+
20
31
# Run all tests
21
32
go test ./...
22
33
@@ -26,6 +37,7 @@ go test -cover ./...
26
37
# Run specific package tests
27
38
go test ./internal/db -v
28
39
go test ./internal/git -v
40
+
go test ./internal/tui -v
29
41
30
42
# Tidy dependencies
31
43
go mod tidy
@@ -112,6 +124,46 @@ The core workflow aggregates git commits into worklog entries:
0 commit comments