English edition updated

What to do while an AI coding agent is working

  • #Vibe Coding
  • #AI Coding
  • #Research
  • #Product Judgment

When I used to do Vibe coding, I would usually open several windows and run several tasks simultaneously. This made better use of time, allowing the AI ​​to complete different tasks. However, there are a few prerequisites for doing this:

  • Demands should be kept as isolated as possible to avoid mutual interference.
  • The code needs to be modularized in advance.
  • Try to avoid multiple tasks modifying the same piece of code at the same time.

Even if you open multiple windows, there will still be a waiting time. During this time, you can go get a coffee or get up and walk around.

However, I've recently come to realize that the downtime during Vibe Coding doesn't necessarily need to be used to cram in more development tasks. This time is actually quite suitable for doing some research-oriented tasks.

Don't just open more windows.

Human memory and attention span are limited. It's difficult to truly understand seven or eight tasks simultaneously, let alone if these tasks are all in the same codebase, where they can easily interfere with each other. Looking back after some time, you might not even be clear what problem a certain change was meant to solve.

Doing fewer development tasks actually frees up time to review the AI's output:

  • Does it introduce duplicate code?
  • Did it damage the original structure?
  • Have you ever made your codebase more difficult to maintain in order to fulfill a small requirement?

These review processes typically require external searches and research to supplement information that AI cannot assess for us, and then the results are brought back into the development process.

What are you researching?

The research mentioned here doesn't necessarily involve systematically learning a new discipline; it can also be about understanding a field, validating a practice, or figuring out how to better address current needs. Based on the research subject, there are roughly three categories.

Research and implementation schemes

For example, are the current module boundaries reasonable? Is there any redundant logic? Which parts will be difficult to maintain in the future? AI can help me complete a specific requirement, but I still need to look back and see: Has its implementation made the entire codebase more complex? Are there more mature implementation solutions, and what compromises are involved in the current solution?

for example:

  • Are there any more suitable deployment options?
  • Are there any performance issues?
  • What are the differences between different frameworks when implementing the same animation effect?
  • Are there any suitable tools or skills that can help with review and development?

Research products and competitors

Is every item on the requirements list worth doing? Is there a simpler way to implement it? How do competitors solve similar problems? AI can help search and organize these questions. It can also open a browser, view competitor websites, and compile the page layout, functional flow, and interaction features into a document for later use as a reference for design and development.

  • When creating an official website, the page layout, product display methods, and animations cannot be simply generated by AI and then finished. You need to look at how similar websites are done before deciding which approaches are suitable for your product.
  • Creating a landing page can involve several processes, and the relationships between these processes can be quite complex. In such cases, it's advisable to first research common industry practices and then choose a solution suitable for your current product, rather than letting AI make the decisions for you.
  • When performing semantic analysis, you can first study the common implementation schemes, and then weigh the effects, costs and implementation complexity to see if you can gain an advantage over your competitors.

Research new fields

Development work often involves areas that are previously unfamiliar, which requires even more extensive searching and research:

  • If you are working on a data analysis module, you need to understand which statistical methods are required and concepts such as confidence intervals.
  • If you are working on AI search functionality, you need to study the underlying principles of query expansion, multi-round search, and result aggregation.
  • If you are researching AI tool usage, you can further explore prompts, tool orchestration, Harness Engineering, and related papers and practices.

These concepts may seem somewhat distant from the code in front of you, but they all influence the final implementation. Research isn't about leaving the project; it's about providing the basis for judgment within the project.

Ants don't just follow the strongest pheromone.

This reminds me of ants.

Ants' path selection is not a mechanical obedience to pheromones. While pheromones on existing paths increase the probability of an ant choosing that path, they don't cause all ants to follow the direction with the highest pheromone concentration. The ant colony always maintains a degree of exploration, allowing individuals to continue trying paths that haven't been fully explored; when a new path yields better results, the pheromone concentration on it gradually increases, and the colony's choice probability changes accordingly.

This is actually a dynamic exploration-utilization mechanism: it utilizes existing experience while not abandoning the exploration of unknown spaces. It is precisely because pheromones influence choices, but do not completely determine them, that it helps reduce the risk of the ant colony prematurely converging to a suboptimal path.

Vibe Coding is somewhat similar. The paths AI has already traversed, the components and implementations it has already validated, can increase the probability of choosing them next time; however, if we only let AI continue generating along existing paths, it's likely to deviate from the correct path faster and faster. Allocating time during development for research, comparison, and experimentation is essentially preserving some room for exploration within the system.

Therefore, doing research during Vibe Coding is not about temporarily leaving development, nor is it about wasting time on side projects. It's about exploring several paths beyond the established ones, preventing us from prematurely assuming that "it runs" is the "most suitable."

This exploration-and-utilization relationship later inspired Ant Colony Optimization (ACO) and was used to solve combinatorial optimization problems. Without delving into the algorithmic details here, it's important to remember this intuition: experience should influence choices, but it shouldn't eliminate exploration.