---
title: "Vibe Coding"
description: "Build dashboards, UIs, and workflows iteratively by conversing with your AI assistant — no boilerplate required."
updated: 2026-11-12
---

# Vibe Coding

Most software starts with a blank editor and a lot of setup. Vibe Coding in Toolbelt flips that: you describe what you want in plain language, and your assistant builds it while you watch. You iterate by talking, not by switching between files and terminals.

This approach works because Toolbelt assistants have direct access to organization storage, the [Dashboard SDK](https://docs.apexti.com/features/dashboard-sdk.md), connected [MCP tools](https://docs.apexti.com/get-started/introduction.md), and [DuckDB databases](https://docs.apexti.com/features/auto-duckdb.md). The assistant writes code, saves files, wires up data, and previews the result — all inside a single conversation.

---

## Why Vibe Coding matters

Traditional development separates planning, coding, and testing into distinct phases. Each context switch costs time and breaks flow. Vibe Coding collapses those phases into one continuous loop:

- **You describe the outcome** — "Build me a dashboard that shows weekly GitHub PR stats."
- **The assistant produces working code** — HTML, JavaScript, SQL queries, wrenches, or full dashboard pages.
- **You preview the result immediately** — the assistant saves it to organization storage and gives you a live link.
- **You refine in conversation** — "Make the chart red. Add a date filter. Pull data from the staging database instead."

No scaffolding. No build step. No deploy pipeline for the first 90% of the work.

---

## What you can build

:::cards 3

===card
title: Interactive Dashboards
icon: layout-dashboard

Ask the assistant to create a full dashboard page with charts, tables, filters, and KPIs. It uses the [Dashboard SDK](https://docs.apexti.com/features/dashboard-sdk.md) to connect widgets to your organization data and MCP tools.

===card
title: Custom UIs & Tools
icon: code

Build internal tools — forms that trigger Slack messages, admin panels that query your databases, or status pages that call GitHub and Jira APIs — all through conversation.

===card
title: Automated Workflows
icon: git-branch

Describe a multi-step workflow and the assistant packages it as a [Wrench](https://docs.apexti.com/features/wrenches.md) — a versioned, reusable script that calls your MCP tools reliably every time.

:::

---

## The interactive loop

Vibe Coding follows a simple cycle. Each pass through the loop gets you closer to the finished product.

### 1. Prompt with intent

Start by telling the assistant what you want to build and why. The more context you provide about the end goal, the better the first draft.

```
Build me an HTML dashboard page that shows my team's open GitHub
pull requests grouped by author, with a bar chart and a data table
below it. Use the GitHub MCP tools to fetch data.
```

> **Tip:** Front-load the "what" and "who" before the "how." If the assistant knows the audience (your engineering team, a client, yourself), it makes better layout and data decisions.

### 2. The assistant builds

Your assistant reads your prompt, selects the right tools, and produces working output. For a dashboard, that typically means:

1. Writing an HTML file that imports the [Dashboard SDK](https://docs.apexti.com/features/dashboard-sdk.md).
2. Using `sdk.runTool()` or `sdk.executeSql()` to wire up live data.
3. Saving the file to organization storage.
4. Returning a preview link you can open immediately.

### 3. Preview and react

Open the link. Look at the result. Then tell the assistant what to change:

```
The chart looks good, but swap the bar chart for a horizontal bar chart.
Add a dropdown filter for repository name. Also, the table should
show the PR title as a clickable link.
```

The assistant patches the file in place and gives you an updated preview.

### 4. Repeat until done

Each round-trip takes seconds, not minutes. After a few iterations you have a working dashboard, tool, or workflow that you can [publish and share](https://docs.apexti.com/features/dashboards.md) or keep iterating on.

> **Note:** Every version of the file is saved in [organization storage](https://docs.apexti.com/features/storage.md). You can always roll back if an iteration goes sideways.

---

## Best practices

### Be specific about tools and data sources

Your assistant has access to many MCP tools, databases, and APIs. Naming them explicitly removes guesswork and produces better first drafts.

| Instead of | Try |
|---|---|
| "Get my GitHub data" | "Use the GitHub MCP tool `list_pull_requests` on `apexti/toolbelt`" |
| "Query the database" | "Run a SQL query against `analytics.duckdb` for rows where `created_at` is in the last 7 days" |
| "Send a message" | "Use the Slack MCP tool to post to `#engineering`" |

### Ask for a layout mockup first

For complex dashboards, ask the assistant to create the visual layout with placeholder data before wiring up live queries. This separates design decisions from data decisions and avoids wasted API calls during early iterations.

```
Create the HTML layout for a three-column dashboard with a KPI row
at the top, a line chart in the middle, and a data table at the
bottom. Use placeholder data for now — we'll connect live queries
in the next step.
```

> **Tip:** Once the layout looks right, say "Now replace the placeholder data with live queries" and the assistant swaps in `sdk.executeSql()` or `sdk.runTool()` calls.

### Use the Dashboard SDK for data wiring

When the assistant builds dashboard pages, make sure it uses the [Dashboard SDK](https://docs.apexti.com/features/dashboard-sdk.md) rather than hard-coded fetch calls. The SDK handles authentication, communicates securely via `postMessage`, and works seamlessly in both embedded and dev modes.

Key SDK methods to reference in your prompts:

- `sdk.runTool(toolName, args)` — call any enabled MCP tool
- `sdk.executeSql(query, params, database)` — run DuckDB queries
- `sdk.listTools()` — discover available tools
- `sdk.chat(message)` — ask the assistant a question from the dashboard itself

### Debug with the assistant

When something doesn't work, describe the symptom instead of guessing at the fix:

```
The chart renders but shows no data. The console says
"Cannot read property 'map' of undefined" on line 42.
```

The assistant can read the file, locate the issue, and patch it — often in a single turn. For [Wrenches](https://docs.apexti.com/features/wrenches.md), check the execution history for logged inputs, outputs, and `console.log()` statements.

> **Warning:** Avoid manually editing files that the assistant is actively iterating on. If you need to make a manual change, tell the assistant so it stays in sync.

### Commit the final version

Vibe Coding is great for rapid prototyping, but production artifacts deserve version control. Once you're happy with the result:

1. Ask the assistant to commit the file to your GitHub repo, or
2. Download it from organization storage and check it in yourself.

For dashboards you want to share publicly, use the [publishing and sharing](https://docs.apexti.com/features/dashboards.md) workflow to generate a secure public link.

---

## Related features

- [Dashboards](https://docs.apexti.com/features/dashboards.md) — The drag-and-drop dashboard builder and public sharing.
- [Dashboard SDK](https://docs.apexti.com/features/dashboard-sdk.md) — The JavaScript SDK your vibe-coded pages use to talk to Toolbelt.
- [Wrenches](https://docs.apexti.com/features/wrenches.md) — Reusable code snippets for multi-step MCP workflows.
- [Organization Storage](https://docs.apexti.com/features/storage.md) — Where your assistant saves files during the vibe coding loop.
- [Chat & History](https://docs.apexti.com/features/chat-history.md) — Chat rendering for Markdown, CSV, HTML, SVG, and related media.
