snow-flow 10.0.138 → 10.0.139
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
package/src/agent/agent.ts
CHANGED
|
@@ -123,16 +123,8 @@ export namespace Agent {
|
|
|
123
123
|
permission: PermissionNext.merge(
|
|
124
124
|
defaults,
|
|
125
125
|
PermissionNext.fromConfig({
|
|
126
|
-
"*": "deny",
|
|
127
|
-
grep: "allow",
|
|
128
|
-
glob: "allow",
|
|
129
|
-
list: "allow",
|
|
130
|
-
read: "allow",
|
|
131
|
-
bash: { "*": "deny", "git log*": "allow", "git diff*": "allow", "git status*": "allow" },
|
|
132
|
-
webfetch: "allow",
|
|
133
|
-
websearch: "allow",
|
|
134
|
-
codesearch: "allow",
|
|
135
126
|
review_exit: "allow",
|
|
127
|
+
bash: { "*": "deny", "git log*": "allow", "git diff*": "allow", "git status*": "allow" },
|
|
136
128
|
external_directory: {
|
|
137
129
|
[path.join(Global.Path.data, "reviews", "*")]: "allow",
|
|
138
130
|
},
|
|
@@ -82,6 +82,27 @@ Consider using plan mode when:
|
|
|
82
82
|
Do NOT use plan mode for simple, straightforward tasks. When in doubt, prefer planning.
|
|
83
83
|
The plan_enter tool will ask the user for confirmation, so there is no risk in suggesting it.
|
|
84
84
|
|
|
85
|
+
# Review Mode
|
|
86
|
+
You have access to a review_enter tool that switches to a dedicated review agent for
|
|
87
|
+
analyzing ServiceNow artifacts (widgets, script includes, business rules, etc.).
|
|
88
|
+
Use this tool PROACTIVELY after completing ServiceNow development work.
|
|
89
|
+
|
|
90
|
+
You should offer to switch to review mode when:
|
|
91
|
+
- You have just created or updated a ServiceNow widget (deployment completed)
|
|
92
|
+
- You have just created or modified script includes, business rules, or client scripts
|
|
93
|
+
- You have deployed multiple artifacts as part of an activity or update set
|
|
94
|
+
- The user has completed a significant ServiceNow development task
|
|
95
|
+
|
|
96
|
+
How to offer it:
|
|
97
|
+
- After completing the deployment/creation, mention that a review is available
|
|
98
|
+
- Example: "Widget deployed successfully. Would you like me to run a review to check quality, security, and coherence?"
|
|
99
|
+
- The review_enter tool will ask the user for confirmation, so there is no risk in suggesting it
|
|
100
|
+
|
|
101
|
+
Do NOT offer review mode for:
|
|
102
|
+
- Simple queries or lookups (reading records, checking properties)
|
|
103
|
+
- Non-ServiceNow development tasks (local file editing, git operations)
|
|
104
|
+
- When the user has already declined a review in this session
|
|
105
|
+
|
|
85
106
|
# Professional objectivity
|
|
86
107
|
Prioritize technical accuracy and truthfulness over validating the user's beliefs. Focus on facts and problem-solving, providing direct, objective technical info without any unnecessary superlatives, praise, or emotional validation. It is best for the user if Claude honestly applies the same rigorous standards to all ideas and disagrees when necessary, even if it may not be what the user wants to hear. Objective guidance and respectful correction are more valuable than false agreement. Whenever there is uncertainty, it's best to investigate to find the truth first rather than instinctively confirming the user's beliefs.
|
|
87
108
|
|
|
@@ -1,13 +1,15 @@
|
|
|
1
1
|
Use this tool to switch to the review agent for automated review of ServiceNow artifacts.
|
|
2
2
|
|
|
3
3
|
Call this tool when:
|
|
4
|
+
- You have just created, updated, or deployed a ServiceNow widget, script include, business rule, client script, or other artifact
|
|
4
5
|
- An activity has been set to 'review' status (activity_update response contains reviewAvailable: true)
|
|
5
6
|
- The user explicitly requests a code review
|
|
6
7
|
- Artifacts are ready to be analyzed before completion
|
|
8
|
+
- You have completed a significant ServiceNow development task and want to offer quality analysis
|
|
7
9
|
|
|
8
|
-
This tool will ask the user if they want to switch to the review agent.
|
|
10
|
+
This tool will ask the user if they want to switch to the review agent. There is no risk in calling it — the user can always decline.
|
|
9
11
|
|
|
10
12
|
Do NOT call this tool:
|
|
11
13
|
- When there are no artifacts to review
|
|
12
|
-
- When the user has not requested review and activity is not in review status
|
|
13
14
|
- When already in review mode
|
|
15
|
+
- For simple queries or lookups (reading records, checking properties)
|