Vibe Coding & AI Agent

ProjectHub includes two AI coding tabs. They serve different purposes and work differently, so make sure to use the right one for your task.

Comparing the Two Tabs

Vibe CodingAI Agent
Icon✨ (Sparkles)🪄 (Wand)
ApproachInteractive — real-time conversation with an AI CLIAutonomous — automatic 7-stage pipeline execution
User InvolvementDirect instructions at every turnOne initial request, then fully automatic
Terminalxterm.js split terminalWorkflow diagram + log view
Best ForCode review, debugging, refactoring, Q&ANew project creation, full feature implementation
AI EnginesClaude, Gemini, Opencode, ShellClaude, Gemini

Part 1: Vibe Coding (Interactive AI Terminal)

The Vibe Coding tab is an interactive terminal where you code in real time through conversation with an AI CLI. Use AI tools like Claude Code, Gemini CLI, and Opencode directly from the built-in terminal.

Vibe Coding tab layout

Selecting an AI Tool

Choose an AI tool from the top of each terminal panel:

ToolDescriptionRequirements
ClaudeAnthropic Claude Code CLIclaude command installed
GeminiGoogle Gemini CLIgemini command installed
OpencodeOpen-source AI CLIopencode command installed
ShellDirect command execution without AINone

Split Terminal

You can use two terminal panels simultaneously:

  • Choose between side-by-side or top-and-bottom split
  • Each panel can use a different AI tool (e.g., Claude on the left, Gemini on the right)
  • Drag to adjust the split ratio (minimum 20%, maximum 80%)
Split terminal — Claude and Gemini
Vibe Coding sidebar tabs

Commands

Run quick commands for each AI tool with one-click buttons:

Claude Commands:

CommandDescription
/helpShow help
/clearReset conversation
/compactCompress context
/bugFile a bug report
/configCheck configuration
Gemini Commands:
CommandDescription
/helpShow help
/clearReset conversation
/chatChat mode
/toolsCheck available tools

Changed Files

Track files modified by AI in real time:

File change tracker
IndicatorColorMeaning
AddedGreenNewly created file
ModifiedOrangeModified file
DeletedRedDeleted file
  • Auto-refreshes every 5 seconds
  • Displays up to 50 files
  • Automatically excludes build directories such as node_modules, .git, etc.

Sessions

Browse previous AI session history:

Session browser
  • Automatically discovers Claude/Gemini CLI session history
  • Shows session ID, timestamp, and first message preview
  • Displays up to 20 recent sessions
  • Click a session to resume a previous conversation

Part 2: AI Agent (Autonomous Pipeline)

The AI Agent tab is an automation system that executes a 7-stage autonomous pipeline from a single request. Enter a prompt, and the AI handles everything from research to the final report automatically.

AI Agent tab layout
AI Agent run confirmation dialog

7-Stage Pipeline

User Input → Research → Architect → Test Designer → Coder → Self-Healing → Vision Gate → Report

Each stage runs sequentially, and you can monitor progress in real time through the workflow diagram. The AI CLI (Claude or Gemini) performs all file operations directly, while the Python code only handles flow control and completion marker detection.

Stage 1: Research

The AI analyzes your request and investigates the existing project context:

  • Extracts core requirements and constraints from the request
  • Analyzes existing project files and code patterns
  • Recommends the optimal programming language and framework
  • Creates .projecthub/ai-agent/docs/RESEARCH.md
Completion marker: RESEARCH_COMPLETE: recommended_language=, complexity=

Stage 2: Architect (Design)

Based on research findings, the AI automatically generates project design documents:

DocumentDescriptionLocation
PRD.mdProduct Requirements Document.projecthub/ai-agent/docs/
FILE_STRUCTURE.mdFile and directory structure.projecthub/ai-agent/docs/
Architect stage in progress

Completion marker: ARCHITECT_COMPLETE: language=, main_file=

Stage 3: Test Designer

Using a TDD (Test-Driven Development) approach, tests are generated before the code is written:

  • Generates unit test files
  • Designs test cases (normal, edge cases, error cases)
  • Automatically selects the appropriate test framework (pytest, Jest, Go test, etc.)
Completion marker: TEST_DESIGN_COMPLETE: test_file=, test_count=

Since this follows a TDD approach, tests will fail at this point. They will pass once the code is written in the next stage.

Stage 4: Coder (Code Generation)

Generates the actual code based on the PRD and tests:

  • Supports multi-file generation
  • Automatically creates project configuration files (package.json, Cargo.toml, etc.)
  • Includes dependency installation commands
Completion marker: CODER_COMPLETE: files_created=,

Stage 5: Self-Healing (Auto-Repair)

After code generation, the AI CLI autonomously runs linting and tests, and directly fixes any errors found:

  1. Check source files for syntax errors
  2. Run linters → fix files directly when errors are found
  3. Run tests → fix code and re-run when tests fail
  4. Repeat until all linting and tests pass
  • Up to 5 repair attempts (default)
  • Self-Healing stage gets 2x the timeout
Supported linters and compilers:
ToolLanguage
ruff, pylint, flake8, mypyPython
ESLint, tscJavaScript/TypeScript
cargo check, clippyRust
go build, go vetGo
javacJava
swiftcSwift
g++, clang++C++
gcc, clangC
dotnet buildC#
kotlincKotlin
SemgrepSecurity scan (all languages)
Completion marker: SELF_HEALING_COMPLETE: status=, attempts=

Stage 6: Vision Gate (Visual Verification)

For projects with a UI (web, desktop apps), screenshots are captured and the AI evaluates UI quality:

  • Automatically starts the server and captures browser screenshots
  • AI evaluates UI layout, accessibility, and design quality
  • AI directly fixes UI issues when found
  • Score-based pass/fail determination
Completion marker: VISION_COMPLETE: status=, score=

Vision Gate requires Playwright to be installed: pip install playwright && playwright install

Stage 7: Report

Once all stages are complete, a README.md is automatically generated:

  • Project description
  • Installation instructions
  • Usage guide
  • File structure
  • Tech stack
Completion marker: REPORT_COMPLETE: file=README.md

AI Agent UI

Settings Panel (Left)

AI Agent settings panel
  • AI Backend Selection: Claude / Gemini toggle
  • Title Input: Project name
  • Prompt Input: Natural language request (file attachments supported)
  • Timeout Setting: 10 minutes / 30 minutes / 1 hour / Unlimited
  • Run/Cancel Buttons

Workflow Diagram (Upper Right)

Workflow diagram
  • Real-time status for each of the 7 stages (Waiting / In Progress / Success / Failed / Skipped)
  • Animation on the active stage
  • Arrows between stages to visualize the flow

Execution Logs (Lower Right)

Execution log area
  • Real-time monospace log output
  • Color-coded: ✅ Success, ❌ Error, ⚠️ Warning, 🔷 Stage, 🤖 Agent
  • Text selection and copy supported

Run History

History tab
  • Previous run records (success/failure, elapsed time, backend)
  • Re-run and open output folder support

Supported Languages

AI Agent works with all programming languages supported by the AI CLI (Claude, Gemini). The following languages have automatic project configuration and linter/compiler setup:

LanguageProject ConfigTest FrameworkLinter/Compiler
Pythonrequirements.txt, pyproject.tomlpytestruff, pylint, flake8, mypy
RustCargo.tomlcargo testcargo check, clippy
Gogo.modgo testgo build, go vet
JavaScriptpackage.jsonJestESLint
TypeScriptpackage.json, tsconfig.jsonJest/VitestESLint, tsc
Javapom.xmlJUnitjavac
SwiftPackage.swiftXCTestswiftc
C++CMakeLists.txtGoogle Testg++, clang++
CMakefilegcc, clang
C#.csprojdotnet build
Kotlinbuild.gradle.ktskotlinc

Prompt Writing Tips

Good Prompt Examples

Build a REST API server in Python.
  • Use the FastAPI framework
  • SQLite database
  • User CRUD API (create, read, update, delete)
  • JWT authentication
  • Auto-generated Swagger docs

Bad Prompt Examples

Make me an app

Tips

  • Specify the tech stack explicitly (frameworks, libraries)
  • List the features you need
  • Specify the language (auto-detection works, but being explicit is more reliable)
  • For complex projects, break them into stages and make separate requests
  • Both Korean and English prompts are supported

Output File Structure

All AI Agent output is saved within the project directory:

{project}/
├── .projecthub/
│   └── ai-agent/
│       ├── docs/
│       │   ├── RESEARCH.md          # Research findings
│       │   ├── PRD.md               # Requirements document
│       │   ├── FILE_STRUCTURE.md    # File structure
│       │   └── TEST_PLAN.md         # Test plan
│       ├── logs/
│       │   └── human_gate.json      # User approval records
│       └── screenshots/             # Vision Gate screenshots
├── src/                             # AI-generated source code
├── tests/                           # AI-generated test code
└── README.md                        # Auto-generated documentation

Next Steps

  • Avalon3 — Use multi-AI debate to produce better code
  • Colligi — AI collective intelligence analysis
  • Alliance — AI collaborative workflow
  • Snapshots — Automatic backups before AI code generation