← All guides

7 min

Pin repositories as context

Pin a GitHub repository to a workflow or a chat. The agent starts every run with it.

5,000 free credits to start.

  1. 01

    Find the repository the agent keeps looking up

    Read a few runs and notice which codebase the agent reaches for every time. The service it reviews, the repository whose conventions it checks. That is the one worth pinning.

  2. 02

    Pin it as an integration resource

    A pinned resource scopes a connection to one repository. The pin carries the connection with it, so credentials stay at the network layer.

  3. 03

    Attach it to the workflow or chat

    A pinned repository is available in the sandbox on every run. The agent clones it with the in-sandbox git credential helper and starts from the code.

  4. 04

    Use pinning to narrow reach

    A workflow pinned to one repository has a smaller surface than one that can read the whole organization. Its prompt gets shorter as well.

  5. 05

    Put stable facts in the prompt

    Each run starts fresh. Escalation rules, naming conventions, and schema notes belong in the prompt so every run has them from the first step.

Try it in your workspace.

Start free, connect a tool, and write the first prompt in plain words.