User Guide¶
Complete guide for daily usage of Victor AI Assistant.
Overview¶
This guide covers everything you need to use Victor effectively, from basic conversations to advanced workflows and multi-agent teams.
New to Victor? Start with Getting Started.
Quick Reference¶
| Topic | Documentation | Use Case |
|---|---|---|
| Basic Usage | Basic Usage | Your first conversation |
| CLI Commands | CLI Reference | All commands and options |
| Tools | Tools Guide | Tool system, selection, execution |
| Session Management | Session Management | Save and restore sessions |
| Providers | Provider Guide | 24 LLM providers setup and switching |
| Workflows | Workflows Guide | YAML-based automation |
| Configuration | Configuration → | Profiles and settings |
Common Tasks¶
Daily Development¶
Session Management
/save "My Session Title" # Save current conversation
/sessions # List saved sessions
/resume # Interactive session restore
/resume 20250107_153045 # Restore specific session
Full Guide →
Code Review
Tools Guide →
Refactoring
Tools Guide →
Testing
Tools Guide →
Git Operations
Tools Guide →
Advanced Features¶
Provider Switching
victor chat --provider anthropic
/provider openai --model gpt-4
/provider ollama --model qwen2.5-coder:7b
Provider Guide →
Workflow Execution
Workflows Guide →
Multi-Agent Teams
from victor.framework import Agent, AgentTeam
team = AgentTeam.hierarchical(
lead="senior-developer",
subagents=["frontend", "backend", "testing"]
)
Learn More → Multi-Agent Teams
Core Concepts¶
1. Provider Switching¶
Victor's key differentiator: switch models without losing context.
Start with Claude, continue with GPT-4, finish with a local model—all in one conversation.
- Context Independence: Conversation history managed separately from LLM
- Instant Switching: Use
/providercommand anytime - Full Support: All 24 providers support context preservation
2. Execution Modes¶
Three modes for different workflows:
| Mode | Purpose | File Edits | Use When |
|---|---|---|---|
| BUILD | Real implementation | Yes | Making actual changes |
| PLAN | Analysis and planning | No | Understanding code |
| EXPLORE | Understanding only | No | Learning codebase |
3. Tools System¶
34 tool modules organized by category:
- File Operations (12 tools): Read, write, edit, search files
- Git (8 tools): Version control, commits, branches
- Testing (6 tools): Test execution, coverage, fixtures
- Search (7 tools): Code search, grep, semantic search
- Web (5 tools): HTTP requests, scraping, browsing
- And 8 more categories...
Tools Guide → | Full Tool Catalog →
4. Workflows¶
YAML-based automation with scheduling and versioning:
workflows:
code_review:
nodes:
- id: analyze
type: agent
role: reviewer
goal: "Analyze this PR for issues"
tool_budget: 30
next: [test]
- id: test
type: compute
tools: [shell]
inputs:
command: pytest tests/
Workflows Guide → | DSL Reference →
5. Project Context¶
Configure project-specific instructions:
.victor.md: Project context and instructionsCLAUDE.md: AI assistant project instructions- Auto-discovery: Victor finds these files automatically
Configuration¶
Quick Setup¶
1. Local model (default - no config needed):
2. Cloud provider:
3. Profiles (~/.victor/profiles.yaml):
profiles:
development:
provider: anthropic
model: claude-sonnet-4-20250514
production:
provider: openai
model: gpt-4
Troubleshooting¶
Installation Issues
- Victor not found after install? → Getting Started →
- Permission errors? → Troubleshooting →
Provider Issues
- API key errors? → Provider Reference →
- Connection timeouts? → Troubleshooting →
- Model not found? → Provider Reference →
Performance Issues
- Slow responses? → Performance Benchmarks →
- High memory usage? → Performance Benchmarks →
- Tool execution errors? → Troubleshooting →
Integration¶
CI/CD Integration¶
GitHub Actions:
HTTP API¶
Start REST API server:
MCP Server¶
Run as MCP server:
VS Code Extension¶
Install from marketplace or build from source.
Advanced Usage¶
Verticals¶
Domain-specific assistants for specialized tasks:
| Vertical | Description | Usage |
|---|---|---|
| Coding | Software development | victor --vertical coding |
| DevOps | DevOps and infrastructure | victor --vertical devops |
| RAG | Retrieval-augmented generation | victor --vertical rag |
| Data Analysis | Data science workflows | victor --vertical dataanalysis |
| Research | Research and analysis | victor --vertical research |
Multi-Agent Coordination¶
Coordinate specialized AI agents for complex tasks.
Team Formations:
- Hierarchical: Lead agent with sub-agents
- Flat: Peer agents with shared memory
- Pipeline: Sequential agent processing
- Consensus: Agents vote on decisions
- Debate: Agents debate to consensus
Observability¶
Monitor Victor's behavior and performance:
Event Bus:
from victor.core.events import EventBus
def on_tool_execution(event):
print(f"Tool {event.tool_name} executed")
EventBus.subscribe("tool.execution", on_tool_execution)
Best Practices¶
1. Start with PLAN Mode¶
Use PLAN mode to understand before making changes:
2. Use Provider Switching¶
Leverage different models for different tasks:
- Claude: Complex reasoning and planning
- GPT-4: Code generation and refactoring
- Local models: Quick iterations and privacy
3. Configure Project Context¶
Create .victor.md with project-specific instructions:
# Project Context
This is a Django project with PostgreSQL backend.
Follow Django conventions and use type hints.
4. Use Workflows for Repetitive Tasks¶
Define workflows for common operations:
- Code review
- Testing
- Documentation generation
- Deployment
5. Leverage Tool Composition¶
Chain tools for complex operations:
from victor.tools import pipe, parallel
# Sequential execution
pipe(read_file, analyze_code, write_report)
# Parallel execution
parallel(run_tests, run_linter, run_coverage)
Examples¶
Example 1: Code Review Workflow¶
# 1. Start review
victor workflow run code-review
# 2. Or manually
victor --mode plan "Review authentication.py for security issues"
# 3. Switch providers for different perspectives
/provider anthropic # Claude's analysis
/provider openai # GPT-4's analysis
# 4. Apply suggestions
victor --mode build "Fix the security issues identified"
Example 2: Refactoring Session¶
# 1. Understand current code
victor --mode explore "How does user authentication work?"
# 2. Plan refactoring
victor --mode plan "Refactor auth to use dependency injection"
# 3. Implement changes
victor --mode build "Implement the DI refactoring"
# 4. Write tests
victor "Write unit tests for the refactored auth module"
# 5. Run tests
victor "Execute tests and fix any failures"
Example 3: Multi-Agent Code Generation¶
from victor.framework import Agent, AgentTeam
# Create specialized agents
frontend = Agent(role="Frontend developer", tools=["react", "typescript"])
backend = Agent(role="Backend developer", tools=["fastapi", "sqlalchemy"])
tester = Agent(role="QA engineer", tools=["pytest", "selenium"])
# Coordinate team
team = AgentTeam.hierarchical(
lead="senior-developer",
subagents=[frontend, backend, tester]
)
result = await team.run("Implement user registration feature")
Additional Resources¶
- Session Management: Session Management →
- Troubleshooting: Troubleshooting Guide →
- Reference: Provider Reference →
- Reference: Tool Catalog →
- Workflows: Workflows Guide →
- Guides: Multi-Agent Teams →
- Guides: Integration →
- Development: Contributing →
Next: Basic Usage →