AuthentiCraft
Track and verify code provenance with confidence
Overview
AuthentiCraft is a powerful VS Code extension that revolutionizes code provenance tracking by intelligently distinguishing between manual and AI-assisted code edits. Using advanced detection algorithms with confidence indicators, it provides transparent attribution and comprehensive visualization of your code's origin and edit history.
Features
1. Code Provenance Tracking
AuthentiCraft maintains a secure, immutable record of all code edits using blockchain technology:
- Who made the edit
- When the edit was made
- How the edit was created (manual or AI-assisted)
- Confidence level of the source detection
2. Advanced AI Detection
Our sophisticated multi-layered detection system differentiates between manual and AI-assisted code:
- Multi-level confidence indicators (HIGH, MEDIUM, LOW)
- Pattern recognition for AI-generated code structures
- Keystroke analysis to detect human vs. machine input patterns
- Content analysis examining documentation, formatting, and complexity
3. Enhanced Visualization
The ProvenanceView provides comprehensive visualization of your code's origin:
- Confidence badges showing detection reliability
- Statistics panel displaying distribution of edit sources
- File-specific edit source tables with mini-progress bars
- Trend analysis showing changes in edit patterns over time
- Collapsible edit details for better information organization
4. Blockchain Verification
Every edit is cryptographically secured and can be verified:
- Immutable blockchain ensures edit history can't be tampered with
- Cryptographic verification of edit chain
- Export capabilities for audit and compliance
Installation
- Open VS Code
- Go to Extensions (Ctrl+Shift+X or Cmd+Shift+X)
- Search for "AuthentiCraft"
- Click Install
Or install directly from the VS Code Marketplace:
AuthentiCraft on VS Code Marketplace
Requirements
- Visual Studio Code version 1.74.0 or higher
How It Works
AuthentiCraft employs a multi-layered detection system to differentiate between manual and AI-assisted code:
- Keystroke Analysis: Monitors typing patterns and speed
- Structural Pattern Detection: Analyzes code structure and formatting
- Language-Based Heuristics: Examines documentation style and complexity
- Context Analysis: Evaluates edit size and surrounding content
All detection results are assigned confidence levels (HIGH, MEDIUM, LOW) to provide transparent attribution.
Usage
Activity Bar Integration
AuthentiCraft integrates directly into the VS Code interface with a dedicated sidebar:
- Provenance Explorer: Browse through your code edits organized by file, edit type, and confidence level
- Edit Statistics: View real-time visualizations of your coding patterns and AI assistance metrics
The sidebar provides a hierarchical tree view of your edits:
- Files with edits (top level)
- Edit types (AI-Assisted or Manual)
- Confidence levels (High, Medium, Low)
- Individual edits with timestamps
Status Bar Integration
A status bar indicator shows the current tracking status:
- Active: Shows when tracking is enabled with a record icon
- Paused: Indicates when tracking is paused with a pause icon
- Click to Toggle: Quickly enable or disable tracking by clicking the indicator
Commands
Access AuthentiCraft's features through the Command Palette (Ctrl+Shift+P or Cmd+Shift+P):
- Start Tracking Code Provenance: Begin monitoring and categorizing your code edits
- Pause Tracking: Temporarily disable tracking when needed
- Show Code Origin Dashboard: Open the comprehensive provenance visualization
- Verify Edit History Integrity: Validate the blockchain to ensure no tampering
- Export Provenance Data: Export your edit history in various formats
- Configure Your Identity: Set or update your identity for attribution
- Display Activity Monitor: View detailed logs of all tracked activities
You can also access key functions via:
- The status bar indicator
- Editor context menu
- Dedicated sidebar views
Detailed Statistics
The Edit Statistics view provides:
A visual breakdown of manual vs. AI-assisted code by percentage
Color-coded indicators for different edit types
Interactive elements to filter and explore your code provenance
Trend analysis showing how your coding patterns evolve over time
Start Tracking Code Provenance: Begin monitoring and categorizing your code edits
Pause Tracking: Temporarily disable tracking when needed
Show Code Origin Dashboard: Open the comprehensive provenance visualization
Verify Edit History Integrity: Validate the blockchain to ensure no tampering
Export Provenance Data: Export your edit history in various formats
Configure Your Identity: Set or update your identity for attribution
Display Activity Monitor: View detailed logs of all tracked activities
You can also access key functions via:
- The status bar indicator
- Editor context menu
- Dedicated sidebar views
Extension Settings
AuthentiCraft provides the following configuration options:
authenticraft.enable
: Enable or disable code provenance tracking and source detection
authenticraft.userId
: Your unique identifier for code attribution and blockchain verification
authenticraft.aiDetection
: Enable intelligent detection of AI-assisted code contributions
authenticraft.manualDetection
: Enable detection and tracking of manually written code
authenticraft.aiDetection.sensitivity
: Set the sensitivity level for AI code detection algorithms (affects false positive rate)
authenticraft.verbose
: Enable detailed diagnostic logs for troubleshooting and verification
Privacy & Security
AuthentiCraft prioritizes your privacy:
- All tracking occurs locally on your machine
- No code content is ever sent to external servers
- The blockchain ledger is stored in your workspace
Release Notes
1.0.1 (May 2025)
- Enhanced user interface with intuitive command icons
- Added activity bar integration with dedicated sidebar
- Implemented Provenance Explorer and Edit Statistics views
- Added editor context menu for quick access to core features
- Improved command naming for clarity and user-friendliness
- Added detailed metadata for better marketplace presentation
1.0.0 (May 2025)
- Initial release with AI detection and confidence indicators
- Blockchain-based provenance tracking
- Comprehensive visualization with statistics panel
- File-specific edit source tracking
- Trend analysis and confidence badges
Roadmap
Future planned features:
- Team collaboration with merged blockchain histories
- Git integration for repository-wide provenance tracking
- Machine learning-enhanced detection algorithms
- IDE-agnostic tracking via plugins for other editors
- Export signing and verification tools
License
MIT License - see the LICENSE file for details.
Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
- Fork the repository
- Create your feature branch:
git checkout -b feature/amazing-feature
- Commit your changes:
git commit -m 'Add some amazing feature'
- Push to the branch:
git push origin feature/amazing-feature
- Open a Pull Request
Testing AI Detection
For detailed information on testing the AI detection features, see the AI Detection Testing Guide.
# Run with verbose logging
AUTHENTICRAFT_DEBUG_AI=true code --extensionDevelopmentPath=${workspaceFolder}
# Run the automated test script
./test-ai-detection.sh
Creating Custom Detection Rules
You can extend the detection system by adding new patterns to:
src/keystrokeTracker.ts
- For typing pattern detection
src/detectors/structuralPatternDetector.ts
- For code structure analysis
src/detectors/languageBasedDetector.ts
- For language-specific patterns
**
Following extension guidelines
Ensure that you've read through the extensions guidelines and follow the best practices for creating your extension.
Working with Markdown
You can author your README using Visual Studio Code. Here are some useful editor keyboard shortcuts:
- Split the editor (
Cmd+\
on macOS or Ctrl+\
on Windows and Linux).
- Toggle preview (
Shift+Cmd+V
on macOS or Shift+Ctrl+V
on Windows and Linux).
- Press
Ctrl+Space
(Windows, Linux, macOS) to see a list of Markdown snippets.
Enjoy!