Overview
Context in Codewolf refers to the additional information you provide about your codebase, team, and workflows that enables more accurate analysis, relevant recommendations, and personalized insights.Why context matters
Providing context helps Codewolf:- Understand your specific use cases and requirements
- Prioritize issues based on business impact
- Tailor recommendations to your tech stack
- Recognize patterns unique to your domain
- Filter noise and focus on what matters
Types of context
Business context
Help Codewolf understand what your code does:Technical context
Define your technical environment:Team context
Provide information about your team structure:Workflow context
Describe your development process:Adding context
Configuration file
The primary way to add context is through acodewolf.yaml file in your repository root:
1
Create configuration file
2
Define your context
3
Commit and push
Codewolf will automatically detect and apply the context.
Dashboard configuration
You can also add context through the Codewolf dashboard:- Go to Settings > Context
- Fill in the context forms
- Save your changes
Configuration file settings take precedence over dashboard settings.
Code annotations
Add context directly in your code using comments:Context usage
Issue prioritization
Context helps Codewolf prioritize issues: Without context:- All security issues treated equally
- No business impact consideration
- Generic recommendations
- Critical paths get higher priority
- Compliance requirements highlighted
- Industry-specific recommendations
Custom rules
Define context-aware rules:Smart notifications
Context enables intelligent alerting:Best practices
Provide enough context:
- Define critical paths and features
- Specify compliance requirements
- Document team ownership
- Describe workflow processes
Example configurations
Startup SaaS
Enterprise fintech
Troubleshooting
Context not being applied
Context not being applied
- Verify
codewolf.yamlsyntax is valid - Check file is in repository root
- Ensure context version is supported
- Review Codewolf dashboard for errors
Conflicting context sources
Conflicting context sources
Priority order:
- Code annotations
- Configuration file
- Dashboard settings
- Auto-detected context
Context not affecting analysis
Context not affecting analysis
- Context changes may take 5-10 minutes to apply
- Trigger a new analysis to see updates
- Check that context keys match documentation

