Skip to content

Document agents.contextFilters and the coding agent step check - #2088

Open
bahrmichael wants to merge 4 commits into
mainfrom
michael/cpl-1149-agents-context-filters
Open

bahrmichael wants to merge 4 commits into
mainfrom
michael/cpl-1149-agents-context-filters

Conversation

@bahrmichael

@bahrmichael bahrmichael commented Oct 12, 2026 •

Copy link
Copy Markdown
Contributor

Closes the documentation half of CPL-1149.

experimentalFeatures.agents.contextFilters shipped with Agentic Batch Changes, and this PR updates the according docs.

@vercel

vercel Bot commented Oct 12, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
sourcegraph-docs Ready Ready Preview Oct 12, 2026 4:37pm UTC

Request Review

@github-actions

github-actions Bot commented Oct 12, 2026 •

Copy link
Copy Markdown
Contributor

Direct preview links to pages changed in this PR:

@github-actions

Copy link
Copy Markdown
Contributor

@github-actions

This comment has been minimized.

@github-actions

github-actions Bot commented Oct 12, 2026 •

Copy link
Copy Markdown
Contributor

✅ The Vercel build that failed on an earlier revision of this PR passes

bahrmichael and others added 4 commits October 12, 2026 17:51
The context filters page covered only deepSearch.contextFilters. It now
documents experimentalFeatures.agents.contextFilters, how the two keys
are combined, what Agentic Batch Changes does with the rules, and why a
coding agent step refuses to run in a repository that a rule excludes or
that contains an excluded file.

It also corrects the pattern syntax section: only repository names match
case-insensitively; file paths are compiled verbatim.

Linear: CPL-1149
Amp-Thread-ID: https://ampcode.com/threads/T-997c1649-6531-44c9-ac14-6c14eae06179
Co-authored-by: Amp <amp@ampcode.com>
Filters apply to the agent's repository tools, not to executor checkouts:
a run step can read excluded files. Only repository-only rules drop
agent-managed workspaces, a blocked execution never starts its run
steps, exclude needs at least one rule, and the verification recipe
uses a files-only rule since a repository-only rule drops the workspace
before anything executes.

Amp-Thread-ID: https://ampcode.com/threads/T-997c1649-6531-44c9-ac14-6c14eae06179
Co-authored-by: Amp <amp@ampcode.com>

This branch was successfully deployed

1 active deployment
Preview — ec643848 Deployed Oct 12, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant