pi-curiosity 0.1.0 → 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/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Kozer
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
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,9 +1,17 @@
1
1
  {
2
2
  "name": "pi-curiosity",
3
- "version": "0.1.0",
4
- "description": "Periodic curiosity and code-navigation steering for Pi",
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
+ "repository": {
8
+ "type": "git",
9
+ "url": "git+https://github.com/kozer/pi-curiosity.git"
10
+ },
11
+ "homepage": "https://github.com/kozer/pi-curiosity#readme",
12
+ "bugs": {
13
+ "url": "https://github.com/kozer/pi-curiosity/issues"
14
+ },
7
15
  "files": ["extensions/curiosity-steering.ts", "README.md", "package.json"],
8
16
  "pi": {
9
17
  "extensions": ["./extensions/curiosity-steering.ts"]