Skip to content

Open-source, local-first AI agent for real work.

6.6 KB
Raw Blame
---
title: Run your first complete task
description: Create a session in a real project, provide context, inspect execution, and verify the result with files and checks.
---

<Takeaways>
  <li>A small, inspectable documentation task</li>
  <li>One message containing the goal, scope, constraints, and acceptance criteria</li>
  <li>Verification based on files and execution records—not only the final answer</li>
</Takeaways>

This page walks through Vetta's standard loop with a small documentation task: choose a project, submit an executable goal, handle permission requests, inspect the output, and keep correcting. Do not start with a large migration or an irreversible operation.

## What this task produces

Assume a project already contains `README.md` and `package.json`. Ask Vetta to add accurate local development instructions. When it finishes you should see:

<Checklist title="Accept this task when">
  <li>`docs/local-development.md` was created or updated in the project directory.</li>
  <li>Installation, check, and test commands in the document come from the current project, not from model guesses.</li>
  <li>The Agent actually ran at least one side-effect-free check and reported its result in the final reply.</li>
  <li>Nothing besides the target document changed unexpectedly.</li>
</Checklist>

## Add the project and start a session

<Steps>
  <Step>
    ### Open the project

    Click **Add Project** in the sidebar, choose **Open Project** in the panel, and select the prepared local directory. Files stay where they are and nothing is copied; the directory becomes the file and tool boundary for this task. If the repository is not on this computer yet, choose **Import from Git repository** to clone it and open it as a project.
  </Step>
  <Step>
    ### Create a session

    Choose **New session** under the project and confirm the model in the input bar. Prefer **Sandboxed** for the first run; consider full access only when the platform has no sandbox or the task genuinely needs other directories.
  </Step>
  <Step>
    ### Reference the key files

    Use `@` in the input to reference `README.md` and `package.json`. A direct reference is clearer than "see the project configuration" and avoids reading unrelated files.
  </Step>
</Steps>

## Submit an acceptance-ready task

Put the goal, scope, constraints, and verification in one message:

<Plate no="01" title="Acceptance-ready task">

```text
Read @README.md and @package.json, then create docs/local-development.md.

Requirements:
1. Document environment requirements, installation, startup, quick checks, and targeted tests.
2. Derive commands from the repository scripts; do not invent commands.
3. Modify only the target document, not package.json or source code.
4. Run one side-effect-free quick check and report the command and result.
5. If information is missing, identify the gap instead of guessing.
```

</Plate>

The task is small enough to check whether the Agent understood the files, stayed in scope, and actually verified its work.

## What to watch during execution

<Signals>
  <Signal name="Todos" ok="Reading facts, drafting, checking, and verifying advance in order" bad="Stuck on one step for a long time, or the goal drifts" />
  <Signal name="Tool calls" ok="Reads the referenced files, writes the target document, runs a check" bad="Touches unrelated directories or prepares a high-impact command" />
  <Signal name="Permission requests" ok="The action relates directly to this task" bad="The path, command, or network destination cannot be explained" />
  <Signal name="Background tasks" ok="The check command finishes normally" bad="Keeps running, fails, or is unrelated to the task" />
</Signals>

Permission requests offer **Allow once**, **Don't ask again this session**, and **Deny**. Allow one action at a time on your first run; when unsure, deny and add the boundary in a message.

## Verify the real result

Do not stop at the final reply:

<Steps>
  <Step>
    ### Open the target file

    Open `docs/local-development.md` from the **Files** tab of the activity panel and confirm that it reads well and that its commands match the project scripts.
  </Step>
  <Step>
    ### Check the scope of changes

    Inspect the project files or your own version-control status and confirm that only the expected document changed.
  </Step>
  <Step>
    ### Check the verification evidence

    Expand the command's tool card and confirm the command really ran and exited normally, rather than trusting a reply that says it passed.
  </Step>
  <Step>
    ### Read the risk notes

    Confirm the final reply lists checks that did not run, missing information, and items that need human confirmation.
  </Step>
</Steps>

## If the result is not right

Stay in the same session, point to the specific problem, and narrow the correction:

<Plate no="02" title="Narrow the correction">

```text
The development commands are correct, but the testing section makes the full test suite the default step.
Edit only docs/local-development.md: make targeted tests the default flow and keep the full suite as a pre-release option.
Recheck package.json afterwards; you do not need to run source tests.
```

</Plate>

<Beats>
  <li>Keep correcting the same goal in the original session.</li>
  <li>If an earlier message was unclear, hover it, click **Edit**, and send it again. Vetta answers again from that message and keeps the previous continuation as another version; switch between them with **Previous version** / **Next version** on the message.</li>
  <li>To compare a complete alternative in a separate session, use **Fork to new session**.</li>
  <li>Start a new session for an unrelated goal.</li>
</Beats>

<Callout type="info" title="Editing an earlier message does not undo file changes">
  Switching or regenerating versions only changes the conversation. Files the Agent already wrote stay on disk. Use Git or your own backup to return to the earlier state.
</Callout>

<Continue>
  <ContinueLink href="/examples/" title="Pick a worked example" description="Copy a complete task, then swap in your own directories, materials, and acceptance criteria." />
  <ContinueLink href="/core/overview/" title="Understand the core workflow" description="Build a complete mental model of projects, sessions, execution, and results." />
  <ContinueLink href="/core/context-tools-and-permissions/" title="Context, tools, and permissions" description="Provide material precisely and control the action boundary." />
  <ContinueLink href="/core/progress-results-and-recovery/" title="Progress, results, and recovery" description="Inspect long tasks, background work, and failure recovery." />
</Continue>