Getting Started with an AI Coding Assistant: How to Choose Among Four Modes
This article explains how to get started with an AI coding assistant (referred to as Harness), why its message box stays disabled until a workspace and an API key are set, and how the four available modes differ in tool sets and execution paths. It also clarifies three easily confused settings entries, the four separate entry points that control behavior, a recommended first-use path, and a list of common pitfalls.
1. Read the Interface First: What a “Cannot Send Messages” Chat Box Is Telling You
The first time you open this kind of AI coding assistant (referred to as Harness below), you may be puzzled: the input box is right there, but it is disabled. This is not a defect but a deliberate state machine design—a session must bind an execution context before it can accept tasks.
A typical first screen shows two prompts in order: first asking you to “select a workspace,” then prompting you to “add an API key to get started.” The former determines the agent’s file scope; the latter determines the model invocation credentials. Only when both are in place does the input bar unlock.
1.1 Why the Workspace Is a Prerequisite
Once you select a local directory, that directory becomes the working location for the session. Every subsequent action—reading files, searching code, calling the shell, editing content—unfolds with this directory as the root. This has three benefits:
- Narrowed scope: The agent will not misread or modify unrelated paths, reducing the risk of overreach.
- Reproducible context: The same directory plus the same task description more easily yields stable results.
- Auditable permissions: All changes are concentrated in one place, making rollback and review easier with version control.
1.2 Why Credentials Sit Alongside the Workspace
Model invocation requires credentials, which are usually bound to a “provider + API key” pair. Putting them on the first screen rather than deep in settings is because, without credentials, Harness can only stay at the “select a directory” step and cannot enter the real task loop.
2. The Essential Differences Among the Four Modes: Tool Sets and Execution Paths
The four modes offered on the first screen differ not in “how smart they are” but in the available tool set and how multi-step operations are organized.
2.1 Standard Mode: Everyday Coding Capabilities in One Package
Standard mode covers common capabilities such as reading files, searching, executing commands, and editing and writing. It suits the vast majority of daily tasks: reading code, locating issues, adding tests, writing docs, and making small refactors. It is the default starting point because it strikes a good balance between “breadth of capability” and “predictability of behavior.”
2.2 Programmatic Orchestration Mode (PTC-style): Composing Multiple Steps with a Program
This type of mode lets the model write a TypeScript program through the code-mode SDK, orchestrating multiple steps into an executable script. It suits tasks with many steps, strong dependencies, and a need for loops or conditional branches, such as batch retrieval followed by unified summarization, or traversing directories to make the same kind of change.
Illustrative approach (only expressing the orchestration idea, not a specific API):
// Pseudocode: search first, then filter, then summarizeconst files = await search({ pattern: "TODO", path: workspace });const targets = files.filter(f => f.ext === ".ts");for (const f of targets) {const content = await read(f);await edit(f, content.replace(/TODO/g, "// done"));}await run({ cmd: "npm test" });
Its benefit is compressing “multiple rounds of conversational back-and-forth” into “one orchestration, one execution,” reducing ambiguity in intermediate states; the cost is that it requires the user to have some scripting organization ability.
2.3 Minimal Mode: Only Two Tools, for Comparison
Minimal mode deliberately cuts down the number of tools, keeping only the two most core ones. Its purpose is not to get work done but to run controlled experiments: observing model behavior under limited capability to judge whether an effect comes from the model itself or from tool assistance. This mode is valuable for model selection and prompt regression testing.
2.4 Creation Mode: Extending on Top of Standard Capabilities
Creation mode retains all the capabilities of standard mode and adds runtime inspection, plugin experiments, and agent preset authoring. It targets people who “develop Harness itself”: validating new plugins, debugging presets, and observing runtime behavior. Daily business tasks do not need it.
3. Three Easily Confused Entries on the Settings Page
The settings page commonly has three entries with completely different responsibilities; mixing them up creates the illusion that “I changed it but nothing took effect”:
| Entry | Responsibility | Scope of Effect |
|---|---|---|
| Agent preset | Determines the agent’s behavior template and default mode | Only takes effect for new sessions |
| Model | Configures the provider and API key | Global credentials, available to all sessions |
| Plugin | Views and configures plugins installed in the current deployment | Current deployment level |
The interface usually states this clearly: preset changes apply to subsequent new sessions; a running session keeps the preset it started with. This rule is the core of the “pitfalls list” later on.
4. The Four Types of Entries Are Not One Master Switch
Understanding Harness’s entries as four types rather than one “master switch” avoids a lot of misoperations:
- Workspace: Determines file scope, session-level.
- Mode: Determines the tool set and execution path, session-level.
- Preset: Determines the behavior template, snapshotted when a new session is created.
- Credentials and plugins: Deployment-level configuration, shared across sessions.
The easiest point to miss: switching to the settings page to change the default mode while a task is running will not restart the current conversation for you. It still runs with the mode and preset it started with. When you need a different set of capabilities, the correct approach is to create a new session, reselect the workspace, mode, and permissions, and then hand over the task.
5. Recommended Path for First Use
Use a very short path to build confidence, then expand step by step:
- Configure the model API key.
- Select a practice project as the workspace (do not practice on a production repository).
- Keep standard mode, give a small task first, and observe how it reads files, searches, executes, and edits.
- When a task involves a lot of repetitive retrieval, open a new session and try programmatic orchestration mode.
- Reserve minimal mode for model comparison tests and creation mode for development and debugging.
6. Common Pitfalls
- Assuming the disabled input box is a malfunction, when it is actually a missing workspace or credentials.
- Changing the preset while running, expecting the current session to change immediately.
- Using creation mode for daily tasks, introducing unnecessary complexity.
- Selecting too large a workspace, increasing search noise and the risk of wrong modifications.
- Treating plugin configuration as a session-level switch, when it is actually deployment-level.
7. Summary
Harness’s core mental model is “context first, division of labor by mode, preset snapshot.” First bind the workspace and credentials, then choose a mode according to the nature of the task, and finally switch capabilities with a new session rather than changing configuration while running. Master these three points, and the differences among the four modes stop being a page of explanatory text and become a set of actionable decision rules.
