GHCP LoggerTrack editing activity in VS Code, estimate human coding effort, and publish that estimate to an Azure DevOps work item. GHCP Logger displays line-level Human, Machine, and Collaborative attribution
in the editor gutter. It also provides a metrics view for the selected Azure
DevOps Task ID and can add estimated human hours to the work item's
What it doesEditing attributionThe extension classifies editor changes by how VS Code reports them:
Multi-line insertions mark every inserted line. These signals are useful for reviewing editing patterns, but they should not be treated as authorship proof. Human-effort estimateGHCP Logger calculates:
The human-line ratio excludes unattributed lines. Idle time is currently measured while the VS Code window is unfocused. The result is an estimate, not a timesheet or billing record. Azure DevOps publishingPublishing adds the current estimated human hours to
After a successful publish, locally tracked metrics for that Task ID are cleared. New activity is accumulated for the next incremental publish. Quick start: what to do next
The first publish asks for any missing Azure DevOps settings and prompts you to sign in with Microsoft. PrerequisitesYou need:
Personal access tokens are not required. Configure Azure DevOpsYou can allow the extension to prompt for these values during the first publish, or configure them in VS Code settings:
Supported organization URL formats are:
When a folder is open, prompted values are saved to workspace settings. Otherwise, they are saved to user settings. Sign inPublishing automatically requests a Microsoft sign-in when needed. You can also sign in before publishing:
VS Code manages the Microsoft authentication session. GHCP Logger uses a
short-lived Microsoft Entra access token for Azure DevOps and does not store
the token in Daily workflowSelect the correct Task IDEnter the Task ID before editing. Activity is stored separately for each Task ID, and changing the ID refreshes the metrics view for the newly selected task. Review attributionGutter markers update as you edit:
The chart reads persisted local metrics. If it appears stale:
Publish estimated effortBefore publishing:
Publishing reads the current Commands
Security and privacySource-code contents are not uploaded when publishing effort. The Azure DevOps request contains the work-item update and authentication information required by Azure DevOps. The local SQLite database is stored in VS Code global storage and can contain:
Use GHCP Logger: Purge Log Data before sharing a machine or when local tracking data is no longer needed. The metrics and publishing webviews use restrictive Content Security Policies. Chart.js is pinned and packaged with the extension, so the webviews do not load runtime JavaScript from a CDN. TroubleshootingThe GHCP Logger panel is not visible
Metrics are empty or stale
Human hours show zeroHuman hours can be zero when no lines are currently classified as Human, when only one timestamped line exists, or when measured idle time covers the tracked interval. Review the gutter attribution and continue editing before refreshing. Microsoft sign-in failsConfirm that:
Run GHCP Logger: Sign In to Azure DevOps to choose a different account. Publishing returns 401 or 403
The work item cannot be updatedConfirm that the work-item type contains the Known limitations
Release statusGHCP Logger is intended for pilot and evaluation use. Validate its estimates against your team's expectations before using them for reporting, performance management, billing, or compliance decisions. LicenseGHCP Logger is distributed under the MIT License included with the extension. |