Skip to content

About

Desktop workspace for Git history, task review, effort estimates, and reports. Discover local repositories and turn commits into a reviewable task ledger.

Resources

Stars

1 star

Watchers

0 watching

Forks

Repository files navigation

transformable-time

Desktop workspace for Git history, task review, effort estimates, and reports. Discover local repositories and turn commits into a reviewable task ledger.

Built with Electron, React, TypeScript, Vite, and SQLite.

The ledger shows Date | Project name | Task summary | Estimated hours. AI is optional. No subscription or API key is necessary.

Use transformable.app to start your own self hosted cloud.

Features

  • Projects – Discover Git repositories in parent folders and choose which projects to scan.
  • Task ledger – Review commit evidence, edit summaries, and approve tasks before export.
  • Effort estimates – Review separate implementation, testing, and deployment allowances, with project presets and manual overrides.
  • Git author filters – Select default author emails or override the selection for each project.
  • Reports – Save task snapshots and create explicit revisions after later changes.
  • Exports and backups – Export CSV or HTML reports, and transfer workspace data through JSON backups.
  • Kimai – Map repositories to projects and activities, then review approved tasks before upload.
  • Local AI – Request optional task proposals from LM Studio or another OpenAI-compatible server.
  • Scheduled scans – Scan on a saved schedule, with optional macOS background scans after the app quits.
  • History imports – Backfill earlier Git history or import tasks and checkpoints from the legacy workflow.
  • Themes – Select light or dark mode.

Quick Start

Requirements: macOS, Node.js 22.12 or later, pnpm, and Git on your PATH. macOS packaging targets Apple Silicon.

  1. Clone the repository.

  2. Install the dependencies:

    pnpm install
  3. Start the desktop app:

    pnpm start
  4. Open Projects.

  5. Add your parent project folders, or keep the default ~/Projects folder.

  6. Select Discover projects.

  7. Exclude projects that you do not want to scan.

  8. Select Scan now.

  9. Open a task to review its description, evidence, and effort allowances.

  10. Select Save & approve.

  11. Export the filtered ledger as CSV or HTML.

For a packaged build, open release/mac-arm64/time.app. The packaged app includes its own Node.js runtime and does not require Node.js or Python.

Workspace

Projects and scans

The initial window starts three calendar months before the scan date, at local midnight. Settings → History range changes this default to 1–120 months. Month-end dates clamp to the previous valid date.

Later scans examine unprocessed commit hashes. An unchanged scan creates no new report. Newly discovered projects start at the latest successful reporting cutoff.

For earlier history, select Backfill history and enter a start date. An empty start date uses the saved default history range. Existing tasks and manual edits stay intact.

Changing the default range preserves existing scan checkpoints. To load older work into an existing ledger, save a longer range and run Backfill history.

Estimates and review

Each task stores implementation, testing, deployment, and the final rounded estimate separately:

estimatedHours = ceil(implementationHours + testingHours + deploymentHours)

A manual final override takes precedence. The editor rounds overrides upward to whole hours. Estimates are not actual tracked time.

Category presets provide fixed or percentage allowances, including minimum values. Project presets override the global presets for future tasks.

Settings changes do not recalculate existing tasks. Preview recalculation shows the result of saved rules. Apply preview changes those tasks and clears approval.

Reuse saved implementation as project preset applies a saved correction to future tasks in that project and category.

Git timestamps and changed-line counts do not measure work duration. Broad setup imports receive a setup allowance rather than a per-line estimate.

Grouped tasks retain all contributing Git dates. The optional work date does not replace those timestamps. Imported work dates remain available.

Related same-day follow-ups group only when their descriptions, categories, and paths agree.

Automatic classification favors one category per commit and uses at most two. Supporting tests, documentation, and deployment stay with the main work. A second category requires at least one third of the main work files. File counts identify scope, not work duration.

Two categories divide one estimate from the primary category equally, including testing and deployment allowances. The app rounds the combined hours upward once. Then it divides those hours between the two tasks. For example, a five-hour estimate becomes two tasks of 2.5 hours each. Saving a description or approval preserves this allocation. Changes to allowances or explicit recalculation produce a new estimate for each task.

Subsequent work on an earlier scope creates a linked follow-up with a new incremental allowance. It does not copy the previous estimate.

Reports and exports

The ledger accumulates tasks across scans. Reports preserve immutable task snapshots. Later edits affect the ledger until you create an explicit report revision.

Manual splits and merges retain original rows as excluded tasks. These actions preserve evidence and do not report the original work again. Manual splits divide hours and allowances equally, including a saved final override. The combined hours stay the same.

CSV and HTML exports use the selected report snapshot or the filtered ledger. Report exports include the entire selected snapshot, independent of ledger filters.

CSV exports protect formula prefixes and quote multiline text. HTML reports contain their own styles and escape task content.

JSON exports contain the complete backup, including task evidence, settings, reports, scan history, and checkpoints. JSON exports always cover the entire workspace.

Backup imports merge stable identities and preserve existing edits. The app saves a local backup before an import. Invalid relationships abort the import.

Settings

Git author filters

  1. Open Settings → Default Git authors.
  2. Select Load authors from all projects.
  3. Enable Limit scans to selected authors by default.
  4. Select the author emails to include.
  5. Select Save default authors.

The combined list includes all discovered projects, including excluded projects. Matching emails appear once, with combined commit counts and project names.

Unreadable repositories appear as errors. Their absence does not remove saved email selections. Refresh the list after discovering more projects or changing branches.

Projects inherit the app default unless they have an explicit override. New projects inherit automatically. Existing saved project filters remain overrides.

To override a project:

  1. Open Projects.
  2. Expand Project details & estimation for the repository.
  3. Select Load Git authors.
  4. Set Author filter to Selected authors for this project.
  5. Select the author emails to include.
  6. Select Save author filter.

Use app default restores inheritance. All authors for this project bypasses the app default for that repository.

The initial app default includes all authors. Filters match exact author emails without case sensitivity. Several email identities can represent one person.

The author list covers the current branch and saved additional branches. Refresh the list after branch changes.

The filter applies to manual scans, scheduled scans, and backfills. It uses the commit author, separate from the committer and co-author trailers.

Existing tasks and report snapshots remain intact. Changes to the selection recover previously author-skipped commits on the next scan. Backfills also respect their chosen date range.

To include all authors by default, disable the limit in Settings and save the default. Backups preserve defaults, project overrides, author metadata, and skipped commit identities.

Local AI

  1. Load a chat model in LM Studio.
  2. Start the local server from the Developer tab.
  3. Open Settings → Local AI in transformable.app.
  4. Enable AI.
  5. Keep the default endpoint, http://127.0.0.1:1234/v1, or enter your server endpoint.
  6. Select Save AI settings.
  7. Select Connect & refresh models.
  8. Choose a chat model ID.
  9. Save the settings again.
  10. Open a task and select Ask local AI.
  11. Review the proposal before you select Apply this proposal.

HTTP and HTTPS work for local AI servers on the same computer or your local network. For another computer, enter its private IP address or .local hostname, such as http://192.168.1.50:1234/v1 or http://studio.local:1234/v1. Enable network access in the model server settings.

Model selection uses GET /v1/models. Before each uncached proposal, the client checks model capabilities through GET /api/v1/models.

If the model supports disabling reasoning, the client uses POST /api/v1/chat. This request disables reasoning and limits output to 700 tokens. These requests disable server-side chat storage. Other servers and models use POST /v1/chat/completions with a 1,800-token limit for reasoning. Both paths request concise proposals and use a temperature of 0.15.

Official API references: LM Studio native chat, native model capabilities, chat completions, and model discovery.

AI receives bounded commit metadata and relevant paths. It does not receive file contents, environment files, credentials, or complete diffs.

The client validates structured proposals and caches successful results by project, evidence, endpoint, model, and prompt version. Failures preserve deterministic tasks.

AI favors one category and can suggest one additional task for substantial independent work. Suggested splits divide the current hours and allowances. Apply split suggestions manually through the task editor.

Group suggestions are limited to supplied task identities. Manual merging supports separate task rows within one project.

Automatic proposals apply to the first 100 new tasks after a manual scan. Proposals do not apply themselves. Scheduled scans use deterministic rules.

Remote providers require HTTPS and explicit permission to share evidence. Optional tokens use Electron safeStorage and the macOS Keychain-backed encryption facility.

Encrypted tokens stay outside SQLite. Backups and exports exclude provider tokens. The app refuses insecure plaintext credential storage.

Schedule and discovery

The default schedule is Monday through Friday at 6:00 AM in America/New_York.

While the app is open, a timer checks the latest due occurrence. Sleep recovery performs one catch-up scan. Persistent occurrence records prevent duplicate catch-up reports.

The app uses timezone-aware calendar calculations across daylight-saving changes. The first app launch starts the schedule from that launch time.

Closed-app scans require an explicit opt-in:

  1. Move the packaged app to /Applications.
  2. Open Settings → Schedule & discovery.
  3. Select Enable macOS background scans.

This action installs ~/Library/LaunchAgents/app.transformable.time.scan.plist. The LaunchAgent checks the saved schedule every five minutes while you are logged in.

With background scans enabled, Time uses a clock icon in the menu bar. Close the window to keep Time in the menu bar. Select Open Time from the clock menu to reopen the window.

On a Mac with a camera cutout, the menu bar can run out of room for the clock. In System Settings → Menu Bar, hide unused icons to make room. When the clock appears, hold Command and drag it farther right.

Quit Time removes the menu bar icon. The LaunchAgent continues to check the schedule after Time quits.

Select Disable & uninstall background scanner to remove it. Development builds cannot install the LaunchAgent. Building the app does not enable background integration.

An in-process timer cannot scan after the app quits. A powered-off or sleeping Mac cannot perform a scan until it wakes.

Import the existing backfill

  1. Select Settings → Import legacy backfill & state.
  2. Choose backfill-tasks.json from the existing workflow folder.
  3. If the state file is elsewhere, choose git-report-state.json when the dialog opens.

The app automatically reads an adjacent state file. Cancel the second dialog to import tasks without that state file.

Imported descriptions, dates, and hours stay unchanged. Imported estimates carry a review label. Tasks can share commit evidence without duplicate reporting.

The importer marks task commits and state checkpoints as reported. It does not change the source files or the existing Codex automation.

The importer expects the detailed backfill-tasks.json format. It does not parse the old HTML report.

Access control

  • Git access – Scans read local repositories. They do not fetch remote data.
  • AI proposals – Proposals require review before application. Remote providers require HTTPS and explicit permission to share evidence.
  • AI evidence – Requests contain bounded commit metadata and relevant paths. File contents, environment files, credentials, and complete diffs stay local.
  • Saved credentials – Electron secure storage encrypts provider tokens and Kimai credentials. Backups and exports exclude these credentials.
  • Kimai uploads – Uploads require approved tasks, a successful connection test, and review of the exact entries.
  • Background scans – The packaged macOS app requires explicit opt-in before it installs a LaunchAgent.

Kimai export

The app exports approved tasks to an existing self-hosted Kimai instance. It supports Kimai v1 legacy authentication and Kimai v2 legacy or Bearer authentication.

Connect Kimai

  1. Open Settings → Kimai.
  2. Enter the instance URL, such as https://time.example.com or https://example.com/kimai.
  3. Select Kimai v1 or Kimai v2.
  4. For v1 or older v2 installations, select Username + API password.
  5. For newer v2 installations, select Bearer token.
  6. Enter the API credential from your Kimai profile.
  7. Select Save Kimai connection.
  8. Select Test connection & refresh.
  9. Map each repository to an existing Kimai project and default activity.
  10. Select Save Kimai mappings.

Legacy authentication also requires your Kimai username or email. The API password differs from your login password.

The connection uses HTTPS. HTTP works only for a Kimai instance on the same computer. Certificates must pass normal TLS validation.

The app reads the account identity and timezone from GET /api/users/me. The instance must expose this endpoint and the customer, project, activity, and timesheet endpoints.

Mappings use remote IDs and support optional activities by task category. Global activities and activities for the mapped project are available.

Credentials use Electron secure storage. Backups contain mappings and export history, but exclude credentials. Each app launch requires a new connection test before export.

API references: Legacy authentication and current API documentation. Your instance documents its supported API at /api/doc.

Export approved work

  1. Approve the tasks in the ledger.
  2. Select tasks, or filter the ledger to the required work.
  3. Select Send to Kimai.
  4. Review the work dates, start times, durations, and billable settings.
  5. For work across several dates, select Add work date to allocate additional entries.
  6. Select Preview entries.
  7. Review the exact descriptions, destinations, and start/end times.
  8. Select the review checkbox.
  9. Select Send reviewed entries to Kimai.

The ledger uses selected tasks when a selection exists. Otherwise, it uses the filtered ledger. A selected report exports its full snapshot.

The app skips unapproved and excluded tasks. A report snapshot must match the current approved task before its first upload.

Suggested durations come from estimates. Suggested start times use 09:00 in the Kimai account timezone. These suggestions do not measure actual work time.

Tasks with several evidence dates require an explicit work date. Each entry supports up to 24 hours. An export supports up to 500 approved tasks.

The app calculates elapsed duration in the Kimai timezone. Ambiguous or nonexistent local times at daylight-saving transitions require another start time.

Kimai receives the task summary, reviewed times, project/activity IDs, and billable setting. Descriptions contain only the task summary. Git paths and commit details stay local.

Recover an interrupted export

Export history appears under Settings → Kimai → Export history. Each entry shows its delivery status and Kimai ID after confirmation.

The app saves an uncertain state before each upload. Lost responses and unexpected remote values require reconciliation before retry. Already confirmed entries stay skipped.

  1. Select Check Kimai for the affected task.
  2. If the entry remains uncertain, examine the timesheets in Kimai.
  3. If the unresolved entries are absent, select the absence checkbox.
  4. Select Confirm missing & allow retry.
  5. Select Review / retry to preview the saved entries again.

Retries preserve the saved times and mappings. Unsent entries omit the old review note and task marker. Remote differences and duplicate matches require review in Kimai.

For a rejected export with no confirmed or uncertain entries, Discard unsent draft permits corrections before a new preview. The app checks remote entries first.

Local changes do not update or delete remote entries. Changed tasks and replacements of exported work require review. Report revisions share the task export identity.

Backups preserve export identities. Before each upload, the app searches for matching entries. It matches the summary, start time, account, project, and activity. It also recognizes older task markers. Multiple matches require manual review.

Data and recovery

On macOS, writable data lives in:

~/Library/Application Support/transformable.app/

The database is ledger.sqlite, with SQLite WAL files. Settings → Data location shows the exact directory.

Existing installations continue to use their original data directory after the rename.

Schema migrations use PRAGMA user_version. The app backs up an existing database before a destructive schema upgrade.

A dedicated worker owns Git collection and SQLite operations. The renderer remains responsive during scans. Git commands use argument arrays without a shell.

Each repository saves its tasks and reachable-commit checkpoint in one transaction. Failed repositories keep their previous checkpoints. Other repositories can complete.

Committed tasks from an interrupted scan enter a report on the next scan. A transactional SQLite lease prevents simultaneous manual and headless scans.

Task identities and report identities remain stable. Backups preserve these identities. Interrupted scans are safe to rerun.

Repositories that share a Git common directory appear as one project. Add explicit branch refs in that project to include other worktree branches.

The default history is the current branch. Additional branches require full refs/heads/... or refs/remotes/... names. No scan fetches remote data.

Unmerged Dependabot and Renovate proposal refs are excluded. Underlying commits remain eligible after a merge into the selected history.

New reachable commits remain eligible even with backdated committer timestamps. Equivalent patches deduplicate only within a project. An equivalent ancestor remains eligible because it can represent a reapplication after a revert.

Development

Command Purpose
pnpm install Install dependencies.
pnpm start Build the app and open Electron.
pnpm dev Build the app and open Electron, like pnpm start.
pnpm dev:web Start the Vite development server on 127.0.0.1.
pnpm build Compile core and desktop code into dist-core/, and build the frontend into dist/.
pnpm typecheck Check types across the app, core, desktop, tests, and validation scripts.
pnpm test Run the automated tests.
pnpm test:desktop Build the app and run the Electron workflow smoke test.
pnpm scan Build the app and run a headless scan.
pnpm verify:ai Request a proposal from a local AI server in an isolated database.
pnpm verify:legacy <tasks.json> <state.json> Inspect a legacy import in an isolated database.
pnpm format Format source files and project documentation.
pnpm package:mac Build the Apple Silicon macOS app.
pnpm package:dmg Build the Apple Silicon DMG installer.

pnpm dev:web starts Vite only. The desktop bridge requires Electron.

Tests and validation

The automated tests cover Git scans, classification, reports, backups, AI proposals, Kimai mappings, and Kimai exports.

The desktop smoke test uses temporary Git repositories and an isolated user-data directory. It exercises scans, editing, reports, views, exports, and the preload bridge.

To test a packaged executable, run:

node scripts/desktop-smoke.mjs "release/mac-arm64/time.app/Contents/MacOS/time"

To inspect a legacy import against existing repositories, run:

pnpm verify:legacy /path/to/backfill-tasks.json /path/to/git-report-state.json

This command reads the repositories and prints new-task counts and repository errors. It does not change the source reports.

Kimai tests use mock APIs. Live Kimai exports, closed-app LaunchAgent execution, and distribution require separate validation.

Project structure

Directory Responsibility
core/git.ts Read-only Git commands, discovery, bounded patch identity
core/classify.ts File-supported classification and conservative grouping
core/config.ts Validated settings and transparent estimation rules
core/store.ts SQLite schema, transactions, evidence, checkpoints
core/scan.ts Incremental scans, deduplication, recovery, process lock
core/ai.ts LM Studio proposals, response validation, cache
core/kimai.ts Kimai authentication, mappings, reviewed exports, reconciliation
core/transfer.ts Legacy migration, validated backups, CSV and HTML
core/dates.ts Calendar boundaries and schedule occurrences
desktop/ Electron lifecycle, secure IPC, worker, native dialogs, LaunchAgent
src/ React ledger, reports, projects, and settings
tests/ Isolated repository and database tests

macOS Build

On an Apple Silicon Mac, build the app with:

pnpm package:mac

The output is release/mac-arm64/time.app.

To create a DMG installer, run:

pnpm package:dmg

The installer appears in release/. Both commands disable automatic publishing.

The local build uses an ad hoc signature. Apple Developer ID signing and notarization are not configured.

Troubleshooting

No projects or tasks appear

  1. Verify the parent folders in Projects.
  2. Select Discover projects.
  3. Verify that the required projects are not excluded.
  4. Review the default Git authors and project overrides.
  5. Select Scan now.

An unchanged scan creates no new report. For earlier history, select Backfill history and enter a start date.

A scan reports repository errors

If a scan fails, open Settings → Data location & recent scan diagnostics to examine the errors.

Failed repositories keep their previous checkpoints. After you correct repository access, run Scan now again.

Local AI cannot connect

If the connection fails, verify that the model server runs at the saved endpoint.

If the model list is empty, load a chat model in LM Studio and select Connect & refresh models.

For another computer, enable network access in the model server and enter its private IP address or .local hostname.

Kimai export is blocked or interrupted

Before export, test the connection, save the project mappings, and approve the tasks.

For uncertain uploads, use Check Kimai in the export history. The recovery procedure describes reconciliation and retry.

Scheduled scans do not run after the app quits

The in-process timer requires an open app. Closed-app scans require the packaged app and Enable macOS background scans.

If macOS cannot register the scanner, review Login Items permissions. A sleeping or powered-off Mac cannot scan until it wakes.

Limits

Task interpretation remains heuristic. Category splits and scope estimates require human review. Renamed or moved repository directories require review of project identity.

Large patch fingerprints use a conservative tree fallback after the 8 MiB limit. Diffs are never sent to AI. Git commands have time and output limits.

A backfill can require more time for large histories. Scans report progress and support cancellation between repository checkpoints.

macOS is the first packaging target. Windows, Linux, Gatekeeper distribution, and unattended LaunchAgent execution require separate platform validation.

About

Desktop workspace for Git history, task review, effort estimates, and reports. Discover local repositories and turn commits into a reviewable task ledger.

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages