Back to Blog
tutorial

How to Build Your Own CVC Custom Agent in 5 Minutes

Jai Kumar MeenaMarch 9, 20265 min read
Custom AgentsTutorialConfigurationAgents

How to Build Your Own CVC Custom Agent in 5 Minutes

Step 1: Create the Agent File

bash
mkdir -p .cvc/agents/reviewer

Step 2: Define the Agent

Create .cvc/agents/reviewer/agent.md:

markdown
---
name: Reviewer
description: Expert code reviewer for quality, security, and performance
tools: [read_file, grep, glob, list_dir, bash, web_search]
max_turns: 20
---

You are a senior code reviewer. Review every change for:
- Correctness: logic errors, edge cases, off-by-one errors
- Security: injection, XSS, SSRF, hardcoded secrets
- Performance: N+1 queries, unnecessary allocations, blocking I/O
- Style: consistent naming, proper abstractions, clean code principles

Output a structured review with severity (Critical/Major/Minor/Nit), file path, line number, description, and suggested fix.

Step 3: Use It

Inside the CVC agent, Sofia can now delegate to your custom agent:

User: "Review the last 5 commits for security issues"
Sofia: [delegates to Reviewer agent]

Or list available agents with /agents.

That's it. Five minutes. Your own specialized AI agent.

    Blog — CVC & AI Engineering | Jai Kumar Meena