The Deska blog
The Agent as First Draft Machine
Learn why treating the AI agent as first draft machine improves developer velocity and how to manage large scale code generation within your workspace.
· 10 min read
The concept of the agent as first draft machine represents a fundamental shift in how developers interact with Large Language Models. Instead of viewing AI as a replacement for logic or a magic box that produces final production code, this mental model treats the agent as a high speed generator of initial structures. This approach acknowledges that while an agent can write boilerplate, set up test suites, or scaffold entire features in seconds, the human developer remains the final editor and architect who refines that output into a maintainable product.
Moving Beyond the Prompt and Response Loop
Traditional AI assistance often falls into a trap of micro-management. A developer asks for a specific function, waits for the response, copies it, and pastes it into their IDE. This workflow is slow and breaks concentration. When you adopt the mindset of the agent as first draft machine, you zoom out. You provide the agent with a broader context and let it generate a significant volume of code across multiple files.
The goal is not to get 100 percent correctness on the first try. The goal is to get 80 percent of the way there across a dozen files in the time it would take you to write one. This allows you to spend your cognitive energy on the hard 20 percent: the edge cases, the security implications, and the architectural consistency.
The Benefits of Rapid Scaffolding
Using an agent to generate drafts provides several advantages for technical teams:
- It eliminates the blank page problem by providing a concrete structure to react to.
- It forces the developer to define clear interfaces and requirements upfront.
- It allows for rapid prototyping of multiple architectural patterns before committing to one.
- It generates comprehensive unit test skeletons that might otherwise be skipped.
Managing the Workspace for High Volume Output
When an agent acts as a first draft machine, it generates a lot of noise alongside the signal. A standard single file editor is often insufficient for reviewing these massive changes. You need a way to see the "blast radius" of the agent's work.
This is where specialized tools like Deska come into play. Deska provides an infinite canvas where you can arrange terminals and code editors side by side. When you run agents like Claude Code or OpenCode, you can see them working in real time across different panels. This spatial layout makes it easier to track how a change in a backend controller affects the frontend component or the database schema.
Because Deska is local-first, the files the agent creates or modifies stay on your machine. You do not have to worry about your draft code being stored on a third party server before you have even reviewed it. This privacy model is essential when working with sensitive internal logic or proprietary architectures.
Comparing Approaches to Agent Integration
Different tools take different paths when integrating AI into the developer workflow. It is important to understand which tool fits the "first draft" philosophy best.
| Tool Category | Approach to Code Generation | Best For |
|---|---|---|
| Inline Completion | Suggests the next few tokens or lines as you type. | Micro-optimizations and syntax help. |
| Chat Assistants | Provides code snippets in a sidebar to be manually copied. | Learning and small utility functions. |
| Autonomous Agents | Operates on the filesystem to create and edit multiple files. | Large scale scaffolding and complex refactoring. |
While inline completion is excellent for flow, it does not fulfill the role of a first draft machine. Autonomous agents, especially when running side by side in a multi panel environment, are much better suited for generating the initial bulk of a project.
Reviewing the Machine Output
Accepting the agent as first draft machine requires a rigorous review process. You should never assume the code is correct just because it runs. The draft is a suggestion.
First, check for "hallucinated" dependencies. Agents often invent library methods that do not exist or use outdated versions of APIs. Second, look for architectural drift. If your project follows a specific pattern, the agent might introduce a different style that looks correct in isolation but breaks consistency.
In Deska, you can use Ask Deska to help with this review. You can ask the assistant to open all files modified in the last ten minutes or to run a specific test suite across your workspaces. This voice and chat control allows you to navigate the massive output of a first draft agent without getting lost in the file tree.
The Role of Mobile in the Drafting Lifecycle
The drafting process does not always end at your desk. Sometimes a long running agent task might take several minutes to complete a complex set of refactors. Deska offers a mobile app that lets you monitor these sessions.
Since the mobile app uses a secure relay to pair directly with your desktop, you can check the progress of your first draft machine while away from your computer. If the agent hits an error or asks for clarification, you can provide it from your phone. This ensures that the momentum of the drafting phase is never lost.
FAQ
How do I prompt an agent for a first draft?
To treat the agent as a first draft machine, provide high level requirements and a list of files you expect to see. Use a broad scope rather than asking for one function at a time. This gives the agent enough context to build a cohesive structure.
Is it safe to run AI agents on local files?
When using a local-first tool, your code remains on your machine. You simply provide your own API keys for the inference. This ensures that the agent can read and write files to produce drafts without compromising your source code security.
Which agents work best for large drafts?
Agents like Claude Code and Codex CLI are specifically designed for terminal based interaction and filesystem access. They are more capable of handling multi file tasks than simple chat interfaces, making them ideal for the first draft machine model.
Get Started with Deska
If you are ready to implement the agent as first draft machine workflow, you need a workspace that can handle the scale. Deska is free to use on Mac, Windows, and Linux. You can bring your own API keys or use managed inference to run multiple agents in a single, infinite canvas.
Download Deska today and start building faster by letting the agents handle the first draft.