Urgent.News

What's breaking now, across thousands of outlets.

AI

Vibe coding on a boilerplate: stop your agent from rebuilding what it already has

{ "title" : "Stop Your Agent From Rebuilding What It Already Has: The Secret to Vibe Coding on a Boilerplate" , "content" : "# Stop Your Agent From Rebuilding What It Already Has: The Secret to Vibe Coding on a Boilerplate \n\n You fired up your AI coding agent and asked it to build your project. Ten minutes later, it has recreated the exact same boilerplate you already had — reinstalling…

You have used an AI coding agent to create a project, only for it to recreate the same boilerplate code you already had. This issue affects many developers, with studies showing they waste about 17% of their AI-assisted coding time on unnecessary regeneration of existing scaffolding. The solution isn't about better prompting strategies; it's about improving the architecture of how your agent interacts with your project.

Most developers treat AI coding agents as if they are starting from a blank slate every time. When you ask for a feature like adding authentication to your app, the agent doesn't have prior context of what already exists in your filesystem. It sees an opportunity to rebuild everything from scratch.

This creates a frustrating cycle:

1. The agent generates boilerplate files.

2. You merge or resolve conflicts.

3. You request a new feature.

4. The agent regenerates the boilerplate again.

5. You lose hours to merge conflicts and linting errors.

The problem isn't the agent's intelligence but the lack of structured context for it to work with. The solution is to provide the agent with a structured project manifest, which serves as a single source of truth for what exists in your project. This manifest tells the agent exactly what to preserve and what to ignore.

Here's an example of what such a manifest file might look like:

```yaml

# .agent/project-manifest.yaml

version: 1.0

project:

name: vibe-boilerplate

runtime: python:3.12

framework: fastapi

package_manager: uv

existing_structure:

- src/

- tests/

- config/

- docker-compose.yml

- requirements.txt

agent_rules:

never_regenerate:

- config/

- requirements.txt

- docker-compose.yml

- .github/workflows/

always_respect:

- file_permissions

- existing_import_patterns

- naming_conventions

context_files:

architecture_md: docs/ARCHITECTURE.md

api_spec: docs/api-spec.yaml

decisions_log: docs/decisions.md

```

This manifest eliminates the need for the agent to regenerate 80% of the project's existing files. By giving the agent a clear map of what already exists and what to leave alone, you can optimize how it generates new code and avoid redundant work.

Written by urgent.news from Dev.to's reporting — not their text. Machine-written — may contain errors; check the original before relying on it.

Also reported by 1 other outlet

Read the original at dev.to →

More in AI

Israeli AI startup Buildots completes $130m. funding round

Israeli company Buildots combines AI and computer vision at construction sites, targeting an international market on track to reach a value of about $1.4 trillion.

  • Buildots raises $130 million in funding, totaling $300 million
  • AI startup aims to expand technology and workforce
  • Real estate AI market projected to grow to $1.4 trillion by 2030

More from Tuesday 15 September →