Skip to content

Commit c7ddac1

Browse files
Archithclaude
andcommitted
Add comprehensive behavior tracking for candidate monitoring
- Implement tab switch detection and counting - Add paste event monitoring with size and pattern analysis - Track typing patterns and detect suspicious speeds - Create real-time notification system for interviewers - Add behavior risk scoring (LOW/MEDIUM/HIGH) - Integrate behavior data into Slack exports - Add visual dashboard for interviewer monitoring - Only track candidates, not interviewers Features: - Detects tab switching patterns - Monitors large code pastes - Identifies AI-generated code patterns - Calculates typing speed (WPM) - Shows risk factors in real-time - Non-blocking monitoring (doesn't prevent candidates from interviewing) 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent a01f567 commit c7ddac1

File tree

4 files changed

+747
-0
lines changed

4 files changed

+747
-0
lines changed

index.html

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -606,8 +606,13 @@ <h2>Sessions Management</h2>
606606
<div id="notes-header">
607607
<span>📝 Interview Notes</span>
608608
<span id="notes-save-status" style="font-size: 12px; color: #888; margin-left: 10px;"></span>
609+
<span id="behavior-alert-badge" class="alert-badge" style="display: none;">0</span>
609610
<button id="close-notes">×</button>
610611
</div>
612+
<!-- Behavior Monitoring Dashboard -->
613+
<div id="behavior-dashboard" style="display: none; background: rgba(255,152,0,0.05); border: 1px solid rgba(255,152,0,0.2); border-radius: 4px; padding: 12px; margin: 10px;">
614+
<!-- Behavior metrics will be inserted here -->
615+
</div>
611616
<div id="notes-content">
612617
<div class="notes-rating-section">
613618
<label>Quick Rating:</label>
@@ -711,6 +716,7 @@ <h3 class="custom-modal-title"></h3>
711716
<script src="/scripts/slack-integration.js?v=4"></script>
712717
<script src="/scripts/posthog-tracking.js?v=2"></script>
713718
<script src="/scripts/session-tracking.js?v=1"></script>
719+
<script src="/scripts/behavior-tracking.js?v=1"></script>
714720
<script src="/scripts/app.js?v=3"></script>
715721
</body>
716722
</html>

scripts/app.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,11 @@
8181
// Remove the security check message - just proceed
8282
}
8383

84+
// Initialize behavior tracking for candidates only
85+
if (window.initBehaviorTracking) {
86+
window.initBehaviorTracking(sessionCode, name, 'candidate');
87+
}
88+
8489
Auth.joinAsCandidate(name);
8590
window.location.hash = sessionCode;
8691

0 commit comments

Comments
 (0)