pi-tandem 0.5.2 → 0.5.4

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
  # Tandem skills
2
2
 
3
- Pair-programming rules for coding agents. A system-prompt patch plus a small set of skills that turn your agent harness from an autonomous code generator into a navigator: you drive, it advises and types, and nothing lands without you seeing it.
3
+ Pair-programming rules for coding agents. A system-prompt patch plus a small set of skills that push back on agentic autonomy and give you control back: fewer unprompted antics, more actual collaboration.
4
4
 
5
5
  ## Install
6
6
 
@@ -10,20 +10,23 @@ pi install npm:pi-tandem
10
10
 
11
11
  ## Philosophy
12
12
 
13
- Modern coding agents lean toward autonomy: multi-file changes in one go, subagent fan-out, reinforced by the system prompts of popular harnesses (especially Claude Code). The usual result is a bloated clump of code that hopefully works - and reviewing it costs more than generating it did, since you still have to read all of it. Tandem inverts this: keep changes small enough that each step is cheap to review, and prune misalignment early, before it compounds into slop. The result is both faster and higher-quality.
13
+ Modern coding agents lean toward autonomy: multi-file changes in one go, subagent fan-out, reinforced by the system prompts of popular harnesses (especially Claude Code). The usual result is a bloated clump of code that hopefully works - and reviewing it costs more than generating it saved, since you still have to read all of it. Tandem inverts this: keep changes small enough that each step is cheap to review, and prune misalignment early, before it compounds into slop. The result is both faster and higher-quality.
14
14
 
15
15
  ## What's inside
16
16
 
17
- - **Pair-work prompt patch** - collaboration style (lock-step, explicit go-aheads) and terse communication rules
18
- - **Skills**, loaded on demand:
19
- - **Research** - pairs with you digging through data, documents and code to get a verified answer to a question
17
+ - **Pair-work prompt patch** - nudges the agent toward:
18
+ - fewer unprompted changes and unwelcome judgment calls
19
+ - more check-ins with you as it goes, so you can follow along and steer early
20
+ - toned-down nauseating sycophancy and "load bearing"-style LLMisms
21
+ - **Skills**, each just a short file, loaded on demand:
22
+ - **Research** - verifies claims one at a time, with your go-ahead per step - a red herring or wrong conclusion gets caught while still cheap
20
23
  - **Brainstorm** - interviews you about the idea one question at a time, or rubber ducks while you think out loud, until you and the model get on the same page
21
- - **Coding** - "lazy senior" discipline for code changes: no speculative abstractions, deletion over addition, root-cause fixes
22
- - **Review** - interactively checks code and documents for errors and bloat, actionable findings only
23
- - **Pull requests** - branch, title and description rules, calibrated to the repo's merged PRs
24
- - **Learn language** - optional practice of a foreign language as you work, suitable for every level, even beginners
24
+ - **Coding** - "lazy senior" discipline: no speculative abstractions, deletion over addition, root-cause fixes, self-explanatory code over comment-peppering
25
+ - **Review** - carefully reads whatever you hand it, like docs or code, checks with you on debatable stuff, and then reports actionable findings with a fix each
26
+ - **Pull requests** - matches tone and length of the repo's recently merged PRs, proposes drafts before actually raising or updating a PR
27
+ - **Learn language** - kicks in only if you state that you are learning a language; background practice that stays out of the way of the work
25
28
  - **Interactive subagents** - fresh-context workers you can steer and must approve; details in the [Interactive subagents](#interactive-subagents) section
26
- - **Tool-specific instructions** (`gh`, `aws`, `jira`, ...), added to the prompt only if the tool is actually installed
29
+ - **Tool-specific instructions** (`gh`, `aws`, `jira`, ...) - added only for tools actually installed, so nothing about a missing tool ever ends up in the prompt
27
30
 
28
31
  ## Interactive subagents
29
32
 
package/package.json CHANGED
@@ -1,13 +1,15 @@
1
1
  {
2
2
  "name": "pi-tandem",
3
- "version": "0.5.2",
3
+ "version": "0.5.4",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/skhoroshavin/tandem-skills.git"
7
7
  },
8
8
  "description": "Shared agent system prompt and skills for pi, from the tandem-skills repo",
9
9
  "keywords": [
10
- "pi-package"
10
+ "pi-package",
11
+ "tandem-skills",
12
+ "skills"
11
13
  ],
12
14
  "type": "module",
13
15
  "license": "MIT",
@@ -47,10 +47,17 @@ prompt=${prompt//\'/\'\\\'\'}
47
47
 
48
48
  # a crashed run may have left a stale result for this name
49
49
  rm -f "$result"
50
+
51
+ # tmux gives the new pane the server's env, not the caller's - forward ours
52
+ envargs=()
53
+ while IFS= read -r -d '' kv; do
54
+ envargs+=(-e "$kv")
55
+ done < <(env -0)
56
+
50
57
  if [[ -n "$model" ]]; then
51
- tmux new-window -c "$PWD" -n "$name" "pi --no-session --model $model '$prompt'"
58
+ tmux new-window "${envargs[@]}" -c "$PWD" -n "$name" "pi --no-session --model $model '$prompt'"
52
59
  else
53
- tmux new-window -c "$PWD" -n "$name" "pi --no-session '$prompt'"
60
+ tmux new-window "${envargs[@]}" -c "$PWD" -n "$name" "pi --no-session '$prompt'"
54
61
  fi
55
62
  tmux set-option -w -t "$name" automatic-rename off
56
63