Repository navigation
feat(agent/agentcontext): load always-apply rules from rule directories - #232
Conversation
|
@codex review
|
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 8ddfb2423f
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
|
@codex review
|
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 036498e330
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
|
@codex review
|
|
Codex Review: Didn't find any major issues. Breezy! Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
|
@codex review
|
|
@codex review
|
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 3d8e54e6e6
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
|
Codex Review: Didn't find any major issues. Swish! Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
Merged after fork-ci passed on head c794766, Codex reviewed that head with no major issues (receipt comment 6817028985), 0 unresolved threads, local Go validation with negative controls, and a live check on a c794766 server and agent: two |
The workspace agent now loads Cursor-style
.mdcrule files. Rules withalwaysApply: truejoin the instruction files, so chats get them on every turn, the same asAGENTS.md..cursor/rulesunder each scan root, plus two new built-in user roots,~/.coder/rulesand~/.cursor/rules. A.cursor/rulesthat resolves outside its root is skipped, because rule bodies are shipped whole..cursor/rules/frontend/components.mdc) load too. The walk does not follow symlinked folders.parseRulereads the front-matter and pushes only the body after it. Cursor writes unquoted headers such asglobs: **/*.ts, which YAML reads as an alias, so bareglobsvalues are quoted before parsing.alwaysApplynorglobsare ignored.Snapshot.ScopedRulesand are not pushed or hashed yet. A follow-up PR will attach them when a chat touches matching files..cursor, so creating.cursor/ruleslater is noticed) and re-resolves when a rule file changes.Behavior change: no experiment flag gates this, so
alwaysApplyrules that already exist in.cursor/rules,~/.cursor/rulesor~/.coder/rulesnow reach chats.Validation on 57bdd40, run in a container:
gofmt -lon the changed files,go build ./agent/... ./coderd/...,go vet ./agent/agentcontext/andgo test ./agent/agentcontext/pass. Negative controls: keeping glob rules with the instruction files makesTestResolver_RuleDirectoriesfail, and skipping the bare-glob quoting makesTestParseRulefail. Reading only the top level of rule directories makesTestResolver_RuleDirectoriesfail, and not watching their subfolders makesTestWatcher_Rules/NestedRuleEditfail. Walking a symlinked rule folder by its link path instead of its target makesTestResolver_RuleContainerSymlinkInsideScanRootfail.