Overview
The consent API manages user privacy preferences for AI/LLM usage during analysis. Artifact Miner respects your data privacy by letting you choose how your code is processed.Consent Levels
User’s consent level for data processing
none- No processing (static analysis only)local- Static analysis only, no LLMlocal-llm- Use local LLM modelscloud- Allow cloud LLM API calls
Get Consent Status
Retrieve the current consent level.GET /consent
Current consent level:
none, local, local-llm, or cloudTimestamp when consent was accepted.
null if consent_level is noneUpdate Consent Level
Change the consent level for data processing.PUT /consent
New consent level. Must be one of:
none, local, local-llm, cloudUpdated consent level
Timestamp when consent was accepted. Set to current time for non-
none levelsHow Consent Affects Analysis
none or local
- Uses deterministic static analysis only
- No LLM calls are made
- Skills extracted from file analysis and git metadata
- Template-based summaries for projects
local-llm
- Uses local LLM models for enhanced analysis
- No data sent to external services
- Better quality summaries and insights
- Requires local LLM setup
cloud
- Enables cloud-based LLM API calls
- Best quality analysis and summaries
- Code snippets may be sent to LLM providers
- Follow your organization’s data policies
Privacy Considerations
- The consent level is stored locally in your database
- You can change it at any time
- Existing analysis results are not affected by consent changes
- Re-run analysis to apply new consent settings
Example Workflow
Database Schema
Consent is stored in a singleton row (id=1) in theconsent table:
none when first accessed.