@badliveware/pi-tool-feedback 0.1.0 → 0.1.1
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/CHANGELOG.md +12 -0
- package/package.json +2 -1
- package/src/core.ts +1 -15
- package/src/prompts.ts +16 -0
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
## 0.1.1
|
|
4
|
+
|
|
5
|
+
- Clarified dogfood feedback prompts so agents call `tool_feedback` silently and avoid acknowledging the feedback request to the user.
|
|
6
|
+
|
|
7
|
+
## 0.1.0
|
|
8
|
+
|
|
9
|
+
- Initial public package release for watched-tool feedback prompts and passive turn summaries.
|
|
10
|
+
- Added custom feedback fields so projects can ask for domain-specific ratings such as ranking quality or latency acceptability.
|
|
11
|
+
- Delivered active feedback requests as Pi custom messages instead of user messages.
|
|
12
|
+
- Added prompt wording and README guidance that frame agent self-feedback as noisy subjective signal rather than ground truth.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@badliveware/pi-tool-feedback",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.1",
|
|
4
4
|
"description": "Generic watched-tool feedback prompts and passive summaries for Pi.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"keywords": [
|
|
@@ -25,6 +25,7 @@
|
|
|
25
25
|
},
|
|
26
26
|
"files": [
|
|
27
27
|
"README.md",
|
|
28
|
+
"CHANGELOG.md",
|
|
28
29
|
"LICENSE",
|
|
29
30
|
"index.ts",
|
|
30
31
|
"src",
|
package/src/core.ts
CHANGED
|
@@ -3,6 +3,7 @@ import * as fs from "node:fs";
|
|
|
3
3
|
import * as os from "node:os";
|
|
4
4
|
import * as path from "node:path";
|
|
5
5
|
import type { ExtensionContext } from "@mariozechner/pi-coding-agent";
|
|
6
|
+
import { BASE_FIELD_PROMPT, DEFAULT_TASK_PROMPT } from "./prompts.ts";
|
|
6
7
|
|
|
7
8
|
export type FeedbackMode = "off" | "passive" | "ask-agent" | "both";
|
|
8
9
|
export type PerceivedUsefulness = "high" | "medium" | "low" | "none" | "unknown";
|
|
@@ -126,21 +127,6 @@ export interface FeedbackRecord {
|
|
|
126
127
|
}
|
|
127
128
|
|
|
128
129
|
const CONFIG_FILE_NAME = "tool-feedback.json";
|
|
129
|
-
const DEFAULT_TASK_PROMPT = [
|
|
130
|
-
"You used watched tools in the previous prompt. Please call `tool_feedback` once with concise structured feedback.",
|
|
131
|
-
"Focus on your own experience using the tool: whether it seemed useful, whether it felt incomplete or noisy, whether follow-up work was routine or compensatory, whether you would use it again in the same situation, and what one improvement would help most.",
|
|
132
|
-
"This is a dogfood feedback request, not new implementation work.",
|
|
133
|
-
].join("\n\n");
|
|
134
|
-
|
|
135
|
-
const BASE_FIELD_PROMPT = [
|
|
136
|
-
"Base `tool_feedback` field values:",
|
|
137
|
-
"- perceivedUsefulness: `high`, `medium`, `low`, `none`, or `unknown`",
|
|
138
|
-
"- wouldUseAgainSameSituation: `yes`, `no`, `unsure`, or `unknown`",
|
|
139
|
-
"- followupWasRoutine, followupNeededBecauseToolWasInsufficient, outputSeemedTooNoisy, outputSeemedIncomplete, missedImportantContext: `yes`, `no`, or `unknown`",
|
|
140
|
-
"- confidence: `high`, `medium`, or `low`",
|
|
141
|
-
"- improvement (optional): `better_ranking`, `higher_cap`, `better_summary`, `better_docs`, `less_noise`, `faster`, or `other`",
|
|
142
|
-
"Use `fieldResponses` only for configured extra fields. You do not need to inspect extension source to answer this prompt.",
|
|
143
|
-
].join("\n");
|
|
144
130
|
|
|
145
131
|
export const DEFAULT_CONFIG: ToolFeedbackConfig = {
|
|
146
132
|
mode: "passive",
|
package/src/prompts.ts
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export const DEFAULT_TASK_PROMPT = [
|
|
2
|
+
"You used watched tools in the previous prompt. Please call `tool_feedback` once with concise structured feedback.",
|
|
3
|
+
"Focus on your own experience using the tool: whether it seemed useful, whether it felt incomplete or noisy, whether follow-up work was routine or compensatory, whether you would use it again in the same situation, and what one improvement would help most.",
|
|
4
|
+
"This is a dogfood feedback request, not new implementation work.",
|
|
5
|
+
"Do not acknowledge or summarize this request to the user. Call `tool_feedback` silently and continue or stop if you were done.",
|
|
6
|
+
].join("\n\n");
|
|
7
|
+
|
|
8
|
+
export const BASE_FIELD_PROMPT = [
|
|
9
|
+
"Base `tool_feedback` field values:",
|
|
10
|
+
"- perceivedUsefulness: `high`, `medium`, `low`, `none`, or `unknown`",
|
|
11
|
+
"- wouldUseAgainSameSituation: `yes`, `no`, `unsure`, or `unknown`",
|
|
12
|
+
"- followupWasRoutine, followupNeededBecauseToolWasInsufficient, outputSeemedTooNoisy, outputSeemedIncomplete, missedImportantContext: `yes`, `no`, or `unknown`",
|
|
13
|
+
"- confidence: `high`, `medium`, or `low`",
|
|
14
|
+
"- improvement (optional): `better_ranking`, `higher_cap`, `better_summary`, `better_docs`, `less_noise`, `faster`, or `other`",
|
|
15
|
+
"Use `fieldResponses` only for configured extra fields. You do not need to inspect extension source to answer this prompt.",
|
|
16
|
+
].join("\n");
|