Skip to content

First repository task

Goal

Let Colossus inspect one repository without granting workspace writes, process execution, or arbitrary network access.

Prerequisites

  • A connected model. See Connect a model.
  • A local source repository.
  • The absolute path to the repository.
  • A Colossus configuration initialized with --sandbox-profile offline-default; this tutorial intentionally does not use the writable development preset.

Steps

1. Add one read-only filesystem root

Initialize from the repository, then add its canonical absolute path:

colossus -w /absolute/path/to/repository \
  config init --local \
  --sandbox-profile offline-default

In .colossus/config.yaml:

sandbox:
  filesystem:
    - root: /absolute/path/to/repository
      mode: read

Merge this field with the existing sandbox configuration. Keep write roots, executables, and unrelated network origins absent.

2. Check the effective tool surface

colossus -w /absolute/path/to/repository \
  config effective

Confirm that repository and filesystem read tools are active, while write and execution capabilities remain unavailable or approval-gated without matching grants.

3. Select the repository explicitly

colossus -w /absolute/path/to/repository \
  run \
  "Map this repository. Name its three most important components and cite the files that support your answer. Do not change anything."

--workspace selects the active canonical workspace independently of the caller's current directory. It never expands the configured sandbox root.

Expected result

Colossus returns a concise repository map with file-backed evidence. No workspace file changes, process launches, or additional network destinations are authorized.

Verification

Check the repository and the audit trail:

git status --short
colossus -w /absolute/path/to/repository \
  audit show --limit 20

The Git status should match its state before the task. Audit evidence should show the provider and read lifecycle without a filesystem mutation.

Failure path

  • Repository tools are hidden: verify the absolute read root with config effective.
  • Path is outside the workspace: pass the intended repository with --workspace and confirm the explicit root is canonical.
  • The model asks to run Git: this tutorial intentionally grants no executable. Ask it to use repository-context and filesystem read tools instead.
  • The answer lacks evidence: ask for exact file paths and a bounded second pass.
  • A mutation is requested: deny it and follow Access and approvals before adding a write grant.

Next step

Open Agent runs for one-shot work or Terminal UI for an ongoing interactive session.