AI Coders: Agents and Vibe Detector (AVD)
AI coding agents (Cline, OpenHands, Claude Code, Aider) are now ubiquitous in software development. Two distinct problems emerge for system security and code authenticity. Can a system determine whether the entity operating on a codebase is a human developer or an LLMpowered autonomous agent? Generally, AI coding agents leave detectable behavioral fingerprints. Even when AI is involved, there is a critical distinction. Vibe coding means accepting AI output largely without review, the developer gives high-level prompts, accepts diffs, and doesn't read the code. Precise controlled generation, also called spec-driven development or agentic engineering, means the human orchestrates AI with detailed specifications; reviews output and maintains comprehension. The boundary is review: a developer who reads, tests, and understands everything the model writes are doing AI-assisted programming, not vibe coding.
This project requires students to build an authenticated coding gateway that detects
(a) whether an entity is human or AI agent, and
(b) if AI is involved, whether the interaction pattern indicates vibe coding or precise human-controlled generation.
Project Objectives Project aims to build software tools to detect human vs. AI agent using behavioral features extracted from interaction logs. It needs to classify interaction mode as "vibe coding" (unreviewed, rapid accept) vs. "precise controlled" (reviewed, deliberate, specification-driven). This also requires developing an authenticated gateway with API Key/Session Token authentication that logs all tool-call interactions (file writes, command execution) with millisecond timestamps.
The project also requires students wot meure and evaluate the project efficiciency.
• Evaluate generalization by testing detection on unseen agent types and interaction modes.
• Meausure and analyse the quantitative metrics including F1-score, ROC-AUC, and perclass performance.
Functional Requirements: Followings are mandatory functional requirements of the project.
FR-01. Authenticated Session with Identity Label: The system shall require API Key/Token authentication for every client and bind each session to a known identity label (human participant ID or agent type) for ground-truth data generation.
FR-02. Sandboxed Coding Tool Execution: The system shall provide authenticated clients with a sandboxed workspace supporting file read/write, terminal command execution, and search, with per-session isolation and resource limits.
FR-03. Comprehensive Interaction Logging: The system shall log every tool call with millisecond timestamp, tool name, payload hash, diff size (lines added/removed), success/failure status, and latency since previous action.
FR-04. Behavioral Feature Vector Generation: The system should compute a feature vector per session covering temporal patterns (latency, burst), tool transition matrices, review signals (diff inspection time, correction frequency), and error recovery metrics.
FR-05. Human vs. AI Agent Classification (Task A): The system shall train and apply a binary classifier (Random Forest/XGBoost) that predicts whether a session belongs to a human or an AI agent, with a confidence score.
FR-06. Vibe vs. Precise Control Classification (Task B): The system shall classify AI-involved sessions as either "vibe coding" (unreviewed, rapid acceptance) or "precise controlled generation" (reviewed, specification-driven), using review latency, diff inspection, and correction frequency as primary features.
Non-Functional Requirements Following are mandatory non-functional requirements to be met by the students.
FR-01. Cross-Agent and Cross-Mode Generalization Testing: The system shall support training on a subset of agents/modes and testing on held-out agents (e.g., train on Cline + Aider, test on OpenHands) and held-out human groups to evaluate generalization.
FR-02. Model Evaluation and Reporting: The system shall compute and report accuracy, precision, recall, F1-score, ROC-AUC, and confusion matrices for both classification tasks, along with feature importance rankings.
FR-03. Model Persistence and Reproducible Splits: The system shall save trained models to disk for reuse and ensure train/test splits are reproducible via fixed random seeds.
FR-04. Labeled Dataset Storage and Export: The system shall store labeled session data in a structured format (CSV/Parquet) and support export for offline analysis and reporting.
-
Tools & Technologies
- Layer 1 (Authenticated Gateway) matches the Auth Module, Tool Sandbox, and Instrumentation sub-boxes.
- Layer 2 (Feature Extraction) matches the feature categories
- Layer 3 (Multi-Task Classification) matches Task A (Human vs. AI Agent) and Task B (Vibe vs. Precise Control), with arrows correctly showing the upward flow from raw logs to feature vectors to classification.
Faisal Mehmood
Faisal Mehmood Expert in CS619 Final Year Projects and software development.
View all projects