Skip to content
Français

Your first task

Run a README review and inspect the answer and branch.

Use the configuration from Installation. The target repository must have a committed README. Save review.ts beside outpost.config.ts; it asks the agent for findings on a separate branch.

import { dispatch } from "@elie-laloum/outpost/core";
import { coder, repository, sandboxProvider } from "./outpost.config.ts";

const result = await dispatch({
  repository,
  sandboxProvider,
  agent: coder,
  branch: { mode: "named", name: "outpost/readme-review" },
  brief: {
    text: "Review the README setup instructions. Report problems or say none were found. Do not edit files.",
  },
});
console.log(result.text);
console.log(result.commits);
// Example output: []

Run the script from its directory:

node review.ts

When the task finishes, it prints the agent’s findings, or an answer saying no problem was found, followed by the list of commits. The request asks for no edits, so an empty commit list is expected. Model responses vary; the example output is not a fixed test result.

The instruction does not enforce read-only access. Inspect the actual branch if that matters to your review:

git -C /absolute/path/to/your-repository diff HEAD...outpost/readme-review
git -C /absolute/path/to/your-repository worktree list

The diff above compares commits. If worktree list still shows a directory for outpost/readme-review, inspect its files too:

git -C /path/from/worktree-list status --short --untracked-files=all
git -C /path/from/worktree-list diff HEAD

status reveals untracked files; the second diff shows staged and unstaged tracked changes. Read any untracked files before concluding that nothing changed.

Outpost closes the sandbox it opened and keeps the named branch. A new branch starts from the repository’s HEAD; an existing name reuses its earlier work. Choose a fresh name for an independent task. Dirty worktrees can remain for inspection and recovery.

The answer, commits and usage are described by DispatchResult. How Outpost runs a task explains which resources remain after this call.