All guides

7 min read

Pin repositories as context

Give an agent standing context: pin a GitHub repository and the agent carries it into every run without being told again.

  1. 01

    Find the repository the agent keeps looking up

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

  2. 02

    Pin it as an integration resource

    An integration resource scopes a connection down to one specific thing: one repository rather than the whole GitHub org. The pin carries the integration it belongs to, so credentials come along and stay server-side.

  3. 03

    Attach it to the workflow or chat

    Pinned repositories become standing context for the agent. It knows the codebase exists before you mention it, and it starts from the repo instead of searching for it again on every run.

  4. 04

    Use pinning to narrow reach

    Pinning is a scoping decision as much as a convenience one. An agent pinned to one repository has a smaller surface than an agent roaming the whole org, and its prompts get shorter as a result.

  5. 05

    Let memory build on top of it

    Pinned repositories give the agent the same starting context every run. Memory carries what it learned across runs — escalation rules, schema shapes, naming conventions. Together they mean the fifth run knows more than the first without you rewriting the prompt.

Try it in your workspace.

Start free, connect a tool, and describe the first task in plain English.