pi-curiosity 0.1.1 → 0.1.2

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/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # pi-curiosity
2
2
 
3
- A small Pi extension that periodically nudges coding agents to investigate evidence, reuse existing code, and keep new code easy for humans to find and understand.
3
+ A small Pi extension that periodically nudges coding agents to investigate evidence, reuse existing code, search for an existing implementation before building a new one, and keep new code easy for humans to find and understand.
4
4
 
5
5
  ## Install
6
6
 
@@ -29,3 +29,5 @@ The default is one cue every 10 tool calls. Configure the interval globally in `
29
29
  A project `.pi/settings.json` value overrides the global value. `toolInterval` must be a positive integer; invalid values use the default.
30
30
 
31
31
  The cue is injected into the next model context after the configured number of tool calls and is hidden from the visible transcript.
32
+
33
+ The cue asks the agent to look for an existing implementation—in the repository and its dependencies first, then online and in upstream sources—before writing new code. It applies to any task, however small, and asks the agent to report either `Reused: <source>` or `New implementation because: <reason>`.
@@ -6,7 +6,9 @@ import {
6
6
  } from "@earendil-works/pi-coding-agent";
7
7
 
8
8
  const CURIOSITY_CUE =
9
- "I'm curious—like a baby discovering the world: investigate the latest result, verify the next detail, reuse existing code, and keep new code easy for humans to find and understand as the project grows.";
9
+ "I'm curious—like a baby discovering the world: investigate the latest result, verify the next detail, reuse existing code, and keep new code easy for humans to find and understand as the project grows." +
10
+ " Search before building—every task, however small: the repo and its dependencies first, then the internet and upstream sources—because reusing beats rebuilding." +
11
+ " Then say which it was: 'Reused: <source>' or 'New implementation because: <reason>'.";
10
12
  const DEFAULT_TOOL_INTERVAL = 10;
11
13
  const SETTINGS_KEY = "pi-curiosity";
12
14
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "pi-curiosity",
3
- "version": "0.1.1",
4
- "description": "A Pi coding-agent extension that nudges evidence-based investigation, code reuse, and human-readable project structure.",
3
+ "version": "0.1.2",
4
+ "description": "A Pi coding-agent extension that nudges evidence-based investigation, searching for an existing implementation before building one, and human-readable project structure.",
5
5
  "keywords": ["pi-package", "pi", "extension", "curiosity"],
6
6
  "license": "MIT",
7
7
  "repository": {