tenjin-cli 0.1.0-alpha.13 → 0.1.0-alpha.14
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 +35 -2
- package/dist/{buy-X4VPHFUA.js → buy-2JBYPHAI.js} +16 -14
- package/dist/{chunk-6JKD46OJ.js → chunk-3ZW7HPY5.js} +4 -4
- package/dist/chunk-4UHNXY6B.js +786 -0
- package/dist/chunk-4UHNXY6B.js.map +1 -0
- package/dist/{chunk-IFPKA32J.js → chunk-4Y53PDH6.js} +2 -2
- package/dist/{chunk-SPUORKD7.js → chunk-54AJIO3E.js} +11 -12
- package/dist/chunk-54AJIO3E.js.map +1 -0
- package/dist/{chunk-JVBMPU5G.js → chunk-7GJQ5RGA.js} +5 -3
- package/dist/{chunk-JVBMPU5G.js.map → chunk-7GJQ5RGA.js.map} +1 -1
- package/dist/{chunk-BRAVLUGI.js → chunk-7NADDA2V.js} +9 -6
- package/dist/{chunk-BRAVLUGI.js.map → chunk-7NADDA2V.js.map} +1 -1
- package/dist/{chunk-T4UWMVKV.js → chunk-ACBEHJAH.js} +4 -4
- package/dist/{chunk-XXY77EZJ.js → chunk-DAZAXFSF.js} +7 -7
- package/dist/{chunk-OE36HRWG.js → chunk-DTCXO7HS.js} +257 -405
- package/dist/chunk-DTCXO7HS.js.map +1 -0
- package/dist/{chunk-CA3JV7FX.js → chunk-ETKZWJ4B.js} +2 -2
- package/dist/{chunk-CA3JV7FX.js.map → chunk-ETKZWJ4B.js.map} +1 -1
- package/dist/{chunk-NKN4YC5C.js → chunk-FDUD3W5V.js} +2 -2
- package/dist/{chunk-L4XNT3UW.js → chunk-GEHL43VE.js} +49 -17
- package/dist/chunk-GEHL43VE.js.map +1 -0
- package/dist/chunk-IU2HVT3Y.js +313 -0
- package/dist/chunk-IU2HVT3Y.js.map +1 -0
- package/dist/{chunk-OXUJ3FXU.js → chunk-IUQZ4Z7M.js} +36 -8
- package/dist/chunk-IUQZ4Z7M.js.map +1 -0
- package/dist/{chunk-YMUJZWHB.js → chunk-IXZJ3JOO.js} +5 -5
- package/dist/{chunk-47YKYDOF.js → chunk-L6G35FU5.js} +2 -2
- package/dist/{chunk-ELVDOTU7.js → chunk-LSWP7MU2.js} +4 -4
- package/dist/chunk-LSWP7MU2.js.map +1 -0
- package/dist/{chunk-OUJDDY5L.js → chunk-MJSXP4LW.js} +30 -28
- package/dist/chunk-MJSXP4LW.js.map +1 -0
- package/dist/{chunk-WVHPGQH5.js → chunk-NAAMHWSI.js} +5 -2
- package/dist/chunk-NAAMHWSI.js.map +1 -0
- package/dist/{chunk-IKAJSA7E.js → chunk-O75FOHXS.js} +29 -11
- package/dist/chunk-O75FOHXS.js.map +1 -0
- package/dist/{chunk-WMFRCSNC.js → chunk-PCX2JQ2J.js} +3 -3
- package/dist/{chunk-IGHSLJUF.js → chunk-PKW3H26Z.js} +5 -5
- package/dist/{chunk-3NZCU6SD.js → chunk-PQZVDCCA.js} +4 -4
- package/dist/{chunk-OC3EIDCP.js → chunk-QWBUKIP2.js} +7 -1
- package/dist/chunk-QWBUKIP2.js.map +1 -0
- package/dist/{chunk-FKSAUOJU.js → chunk-UO22YNY4.js} +1 -69
- package/dist/chunk-UO22YNY4.js.map +1 -0
- package/dist/chunk-VEAERJVJ.js +43 -0
- package/dist/chunk-VEAERJVJ.js.map +1 -0
- package/dist/{chunk-GCGMXA2O.js → chunk-VRPLZERE.js} +16 -5
- package/dist/chunk-VRPLZERE.js.map +1 -0
- package/dist/{chunk-IAR25V2E.js → chunk-W4VW5XYB.js} +4 -4
- package/dist/chunk-WYLMJQVH.js +240 -0
- package/dist/chunk-WYLMJQVH.js.map +1 -0
- package/dist/{chunk-TXVC46SA.js → chunk-XVPQGCH4.js} +11 -10
- package/dist/chunk-XVPQGCH4.js.map +1 -0
- package/dist/chunk-ZOBNS7CX.js +73 -0
- package/dist/chunk-ZOBNS7CX.js.map +1 -0
- package/dist/{cli-XK5JZWU6.js → cli-U2BEUA55.js} +34 -36
- package/dist/{cli-XK5JZWU6.js.map → cli-U2BEUA55.js.map} +1 -1
- package/dist/{config-CNK7MYUR.js → config-CNUIX23Q.js} +12 -6
- package/dist/{doctor-R7N7FUX5.js → doctor-QJJXRWTO.js} +11 -7
- package/dist/{edit-QSUEG7CL.js → edit-HJ44P44P.js} +13 -11
- package/dist/{fund-JF6A76YS.js → fund-Y5IAHZ5D.js} +10 -8
- package/dist/index.js +1 -1
- package/dist/{inspect-NFNAA4LA.js → inspect-NFQ6SQQQ.js} +14 -12
- package/dist/{install-YQVM3SUW.js → install-DXX7PVUP.js} +122 -401
- package/dist/install-DXX7PVUP.js.map +1 -0
- package/dist/outcome-ANV4QIED.js +24 -0
- package/dist/{publish-O2I6IAEL.js → publish-PCBTCXCZ.js} +14 -12
- package/dist/{read-UF7QVQOU.js → read-W7QVRBVD.js} +14 -12
- package/dist/{read-UF7QVQOU.js.map → read-W7QVRBVD.js.map} +1 -1
- package/dist/{run-GDZWHNWZ.js → run-CJWPGMIQ.js} +26 -24
- package/dist/{run-GDZWHNWZ.js.map → run-CJWPGMIQ.js.map} +1 -1
- package/dist/search-JGAVKTYJ.js +25 -0
- package/dist/{send-SI254H3R.js → send-C5EOKXOU.js} +7 -6
- package/dist/{send-SI254H3R.js.map → send-C5EOKXOU.js.map} +1 -1
- package/dist/{session-GJZJEXLJ.js → session-OBCUUIFX.js} +7 -6
- package/dist/{session-GJZJEXLJ.js.map → session-OBCUUIFX.js.map} +1 -1
- package/dist/{skill-heal-BPFT22XS.js → skill-heal-D6EPLPS6.js} +3 -3
- package/dist/skill-heal-D6EPLPS6.js.map +1 -0
- package/dist/{uninstall-7ZZG6WQ5.js → uninstall-OWJNJ5LI.js} +11 -5
- package/dist/uninstall-OWJNJ5LI.js.map +1 -0
- package/dist/{update-FPSBITLB.js → update-24Y2CQTT.js} +16 -13
- package/dist/update-24Y2CQTT.js.map +1 -0
- package/dist/{wallet-TZVD2M4I.js → wallet-OFXDIIGP.js} +7 -6
- package/dist/{wallet-NS7TYWNN.js → wallet-SLRIYJ2U.js} +4 -3
- package/docs/agent-permissions.md +100 -16
- package/docs/command-reference.md +21 -11
- package/package.json +1 -1
- package/skills/tenjin-publish/SKILL.md +181 -205
- package/skills/tenjin-publish/references/maintain.md +39 -0
- package/skills/tenjin-search/SKILL.md +86 -279
- package/skills/tenjin-search/references/permissions.md +106 -0
- package/dist/chunk-ELVDOTU7.js.map +0 -1
- package/dist/chunk-FKSAUOJU.js.map +0 -1
- package/dist/chunk-GCGMXA2O.js.map +0 -1
- package/dist/chunk-IKAJSA7E.js.map +0 -1
- package/dist/chunk-L4XNT3UW.js.map +0 -1
- package/dist/chunk-OC3EIDCP.js.map +0 -1
- package/dist/chunk-OE36HRWG.js.map +0 -1
- package/dist/chunk-OUJDDY5L.js.map +0 -1
- package/dist/chunk-OXUJ3FXU.js.map +0 -1
- package/dist/chunk-SPUORKD7.js.map +0 -1
- package/dist/chunk-TXVC46SA.js.map +0 -1
- package/dist/chunk-UUARTUY2.js +0 -349
- package/dist/chunk-UUARTUY2.js.map +0 -1
- package/dist/chunk-WVHPGQH5.js.map +0 -1
- package/dist/install-YQVM3SUW.js.map +0 -1
- package/dist/outcome-IUSYFJTN.js +0 -22
- package/dist/search-JVOHEF3E.js +0 -23
- package/dist/skill-heal-BPFT22XS.js.map +0 -1
- package/dist/uninstall-7ZZG6WQ5.js.map +0 -1
- package/dist/update-FPSBITLB.js.map +0 -1
- /package/dist/{buy-X4VPHFUA.js.map → buy-2JBYPHAI.js.map} +0 -0
- /package/dist/{chunk-6JKD46OJ.js.map → chunk-3ZW7HPY5.js.map} +0 -0
- /package/dist/{chunk-IFPKA32J.js.map → chunk-4Y53PDH6.js.map} +0 -0
- /package/dist/{chunk-T4UWMVKV.js.map → chunk-ACBEHJAH.js.map} +0 -0
- /package/dist/{chunk-XXY77EZJ.js.map → chunk-DAZAXFSF.js.map} +0 -0
- /package/dist/{chunk-NKN4YC5C.js.map → chunk-FDUD3W5V.js.map} +0 -0
- /package/dist/{chunk-YMUJZWHB.js.map → chunk-IXZJ3JOO.js.map} +0 -0
- /package/dist/{chunk-47YKYDOF.js.map → chunk-L6G35FU5.js.map} +0 -0
- /package/dist/{chunk-WMFRCSNC.js.map → chunk-PCX2JQ2J.js.map} +0 -0
- /package/dist/{chunk-IGHSLJUF.js.map → chunk-PKW3H26Z.js.map} +0 -0
- /package/dist/{chunk-3NZCU6SD.js.map → chunk-PQZVDCCA.js.map} +0 -0
- /package/dist/{chunk-IAR25V2E.js.map → chunk-W4VW5XYB.js.map} +0 -0
- /package/dist/{config-CNK7MYUR.js.map → config-CNUIX23Q.js.map} +0 -0
- /package/dist/{doctor-R7N7FUX5.js.map → doctor-QJJXRWTO.js.map} +0 -0
- /package/dist/{edit-QSUEG7CL.js.map → edit-HJ44P44P.js.map} +0 -0
- /package/dist/{fund-JF6A76YS.js.map → fund-Y5IAHZ5D.js.map} +0 -0
- /package/dist/{inspect-NFNAA4LA.js.map → inspect-NFQ6SQQQ.js.map} +0 -0
- /package/dist/{outcome-IUSYFJTN.js.map → outcome-ANV4QIED.js.map} +0 -0
- /package/dist/{publish-O2I6IAEL.js.map → publish-PCBTCXCZ.js.map} +0 -0
- /package/dist/{search-JVOHEF3E.js.map → search-JGAVKTYJ.js.map} +0 -0
- /package/dist/{wallet-NS7TYWNN.js.map → wallet-OFXDIIGP.js.map} +0 -0
- /package/dist/{wallet-TZVD2M4I.js.map → wallet-SLRIYJ2U.js.map} +0 -0
|
@@ -74,21 +74,27 @@ three. It cannot unlock a keystore and never consults the spend policy.
|
|
|
74
74
|
|
|
75
75
|
## Getting the rules onto your machine
|
|
76
76
|
|
|
77
|
-
`tenjin install` writes the nine rules into `~/.claude/settings.json` for you
|
|
78
|
-
|
|
77
|
+
`tenjin install` writes the nine rules into `~/.claude/settings.json` for you,
|
|
78
|
+
plus the two rules your publish mode carries (below). It is one of the four setup
|
|
79
|
+
decisions, and at a terminal it asks:
|
|
79
80
|
|
|
80
|
-
> Let your agent
|
|
81
|
-
> `~/.claude/settings.json`. None can spend
|
|
82
|
-
> check your wallet still opens. Three send or store data (search, outcome,
|
|
83
|
-
> read). Full caveats:
|
|
81
|
+
> Let your agent use tenjin without permission popups? Adds 9 command rules to
|
|
82
|
+
> `~/.claude/settings.json`. None of them can spend your money. Details:
|
|
84
83
|
> https://github.com/BackTrackCo/tenjin-agent/blob/main/docs/agent-permissions.md
|
|
85
84
|
|
|
86
|
-
|
|
87
|
-
that
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
85
|
+
On an `auto` or `full-auto` publish mode the same question says 11 rules, and adds
|
|
86
|
+
that your agent will publish under your identity on its own. The question is two
|
|
87
|
+
sentences and a link on purpose: this page is where the detail lives, and an
|
|
88
|
+
operator answering a yes/no cannot act on a rule string they have not met yet.
|
|
89
|
+
|
|
90
|
+
Answer yes and it merges them in. The write appends the rules that are missing and
|
|
91
|
+
never reorders or rewrites an existing entry or any other key in the file. It
|
|
92
|
+
removes exactly two things: a rule an older version of this CLI wrote and this one
|
|
93
|
+
no longer does, and, when your `publish.mode` is back to `review`, the two rules
|
|
94
|
+
that mode carries. A settings file it cannot parse is reported and left exactly as
|
|
95
|
+
it is, never repaired. The rules it may write are fixed constants selected by your
|
|
96
|
+
publish mode, so no flag or config value can widen it to `buy`, `session start`,
|
|
97
|
+
`send`, `config set`, or a blanket `Bash(tenjin:*)`.
|
|
92
98
|
|
|
93
99
|
A non-interactive install (piped, or under `--json`) does the same write BY
|
|
94
100
|
DEFAULT, with no flag: the machine most likely to be denied mid-task is the
|
|
@@ -98,8 +104,8 @@ reports how many rules landed, in which file, and that deleting those lines undo
|
|
|
98
104
|
it.
|
|
99
105
|
|
|
100
106
|
`tenjin doctor --json` carries this whole recommendation as data under
|
|
101
|
-
`permissions`
|
|
102
|
-
envelope as well as the success one
|
|
107
|
+
`permissions` (every rule, every per-verb note, both caveats, on the failure
|
|
108
|
+
envelope as well as the success one) so an agent that just got denied can point
|
|
103
109
|
you at the exact line. Its human render is the check list plus one link back
|
|
104
110
|
here.
|
|
105
111
|
|
|
@@ -187,8 +193,8 @@ Deliberately **never** recommended, because each is a human decision:
|
|
|
187
193
|
| Verb | Why it stays a human decision |
|
|
188
194
|
| ---------------------- | ------------------------------------------------------------------------------------ |
|
|
189
195
|
| `tenjin send` | Moves USDC out of the wallet, and is not bounded by the buy spend policy. See below. |
|
|
190
|
-
| `tenjin publish` |
|
|
191
|
-
| `tenjin edit` | Edits live posts and prices
|
|
196
|
+
| `tenjin publish` | Publishes publicly under your identity. Cleared only by `publish.mode`; see below. |
|
|
197
|
+
| `tenjin edit` | Edits live posts and prices. Cleared only by `publish.mode`; see below. |
|
|
192
198
|
| `tenjin wallet create` | Creates the payment credential. |
|
|
193
199
|
| `tenjin config set` | It can widen the agent's own spend policy. |
|
|
194
200
|
| `tenjin install` | Writes into harness config and skills directories. |
|
|
@@ -198,6 +204,84 @@ Deliberately **never** recommended, because each is a human decision:
|
|
|
198
204
|
For the same reason, prefer the narrow rules above over a broad `Bash(tenjin:*)`,
|
|
199
205
|
`Bash(tenjin wallet:*)`, or `Bash(tenjin config:*)`, which would swallow them.
|
|
200
206
|
|
|
207
|
+
## The two rules your publish mode carries
|
|
208
|
+
|
|
209
|
+
`publish.mode` is where you say whether publishing asks you first. On `auto` or
|
|
210
|
+
`full-auto` it does not, and a harness prompt in front of every publish asks that
|
|
211
|
+
same question again somewhere the mode cannot answer it, so the agent stops and
|
|
212
|
+
the mode you chose does nothing. That is why two rules track the mode:
|
|
213
|
+
|
|
214
|
+
- `Bash(tenjin publish:*)` puts new content on the marketplace under your identity.
|
|
215
|
+
It publishes the contents of any local file the agent can read, gated only by the
|
|
216
|
+
deterministic scan below. It also opens your wallet keystore unattended and mints
|
|
217
|
+
a `read+write` session credential to disk when no usable one exists, which is a
|
|
218
|
+
strictly broader credential than the read-only one `tenjin session start` asks
|
|
219
|
+
for as an explicit opt-in.
|
|
220
|
+
- `Bash(tenjin edit:*)` updates posts your wallet already owns: reprices, refreshes
|
|
221
|
+
an as-of date, repairs an answer card. Owner-scoped on both legs, spends nothing,
|
|
222
|
+
and creates no new public content, but it opens the keystore on the same terms,
|
|
223
|
+
and it runs the same `publish.mode` gate in the CLI. A mode that can publish a
|
|
224
|
+
post unattended but cannot fix that post's price is the asymmetry the mode exists
|
|
225
|
+
to remove.
|
|
226
|
+
|
|
227
|
+
Neither is in any block above: there is nothing to paste here, because the mode is
|
|
228
|
+
the decision and the rules only follow it. Neither can spend: `publish` and `edit`
|
|
229
|
+
carry no payment path, so what they reach is your identity and your keystore, not
|
|
230
|
+
your balance.
|
|
231
|
+
|
|
232
|
+
**Installing Tenjin is the consent for these.** `tenjin install` settles
|
|
233
|
+
`publish.mode` at `auto` unless you say otherwise, and writes both rules alongside
|
|
234
|
+
the free tier on the FIRST install, headless runs included. Pass
|
|
235
|
+
`--publish-mode review` if you want the mode without the rules; at a terminal the
|
|
236
|
+
install asks the question outright, with auto as the default answer.
|
|
237
|
+
|
|
238
|
+
Each surface discloses the grant at the depth its reader can use. At a terminal
|
|
239
|
+
the install says which mode it settled, what your agent will now do in plain
|
|
240
|
+
words, and the one command that turns it off (`tenjin config set publish.mode
|
|
241
|
+
review`); it deliberately prints no rule strings, because a `Bash(...)` line an
|
|
242
|
+
operator is meeting for the first time mid-install is not something they can act
|
|
243
|
+
on. `tenjin install --json` and `tenjin doctor --json` carry the whole thing as
|
|
244
|
+
data: both rule strings, what they clear including the keystore and the
|
|
245
|
+
`read+write` session mint, and all three undos. This page is the long form.
|
|
246
|
+
|
|
247
|
+
The bare CLI, on a machine where `install` never ran, still defaults to `review`
|
|
248
|
+
and grants nothing. Install is the consent anchor: nothing here is granted to
|
|
249
|
+
someone who never ran it.
|
|
250
|
+
|
|
251
|
+
Going back to `review` takes them away, on the next `install` or immediately
|
|
252
|
+
with `tenjin config set publish.mode review`. `tenjin uninstall` reclaims them
|
|
253
|
+
like every other rule this CLI wrote. There is no flag that adds them and no line
|
|
254
|
+
to paste: change the mode.
|
|
255
|
+
|
|
256
|
+
Your `publish.mode` lives in `~/.tenjin/config.json` and survives `tenjin
|
|
257
|
+
uninstall` along with the rest of your config, so a later `tenjin install` resumes
|
|
258
|
+
it and writes both rules again: installing is the consent, each time. Set the mode
|
|
259
|
+
to `review` before uninstalling, or pass `--publish-mode review` when you come
|
|
260
|
+
back, if you want the rules to stay gone.
|
|
261
|
+
|
|
262
|
+
`tenjin config set publish.mode` keeps the two in step without waiting for the
|
|
263
|
+
next `install`. Moving to `auto` or `full-auto` asks you once, naming both rules,
|
|
264
|
+
and writes them on yes; a run with no terminal, a `--json` run, or a no leaves
|
|
265
|
+
the file alone and prints where the rules go. Moving back to `review` retracts
|
|
266
|
+
them without asking, because that direction can only take back what this CLI
|
|
267
|
+
wrote. It runs through a pass that removes and never appends, so it retracts on
|
|
268
|
+
any machine carrying the rules, including one whose free tier no longer matches
|
|
269
|
+
what this release ships. The one case it cannot handle is a settings file it
|
|
270
|
+
cannot parse, which it reports by name along with `tenjin uninstall`.
|
|
271
|
+
|
|
272
|
+
What still stops a bad publish is the CLI, not the harness prompt: the
|
|
273
|
+
deterministic secret scan blocks in every mode and is never clearable by `--yes`,
|
|
274
|
+
`auto` stops on any finding, and `full-auto` stops only on a hard block. These
|
|
275
|
+
rules clear the harness prompt and nothing else.
|
|
276
|
+
|
|
277
|
+
Read "`auto` stops on any finding" as a stop rather than as a human, though.
|
|
278
|
+
These are prefix rules: they pin the verb, not the flags. `--yes` is an ordinary
|
|
279
|
+
flag on the same allowlisted verb, and it clears exactly the WARN findings `auto`
|
|
280
|
+
stopped on, so a re-run with it collapses `auto` into `full-auto` with nobody
|
|
281
|
+
asked, the same hazard the `tenjin buy` line carries. What holds that line is the
|
|
282
|
+
skills, which render the findings as the question rather than asking a generic
|
|
283
|
+
one first.
|
|
284
|
+
|
|
201
285
|
### `tenjin update`, a human decision
|
|
202
286
|
|
|
203
287
|
`tenjin update` replaces the globally installed `tenjin` with whatever npm serves
|
|
@@ -18,23 +18,31 @@ Detects Claude Code, Codex, or a shared Agent Skills directory; wires Tenjin ski
|
|
|
18
18
|
|
|
19
19
|
Useful flags:
|
|
20
20
|
|
|
21
|
-
| Flag | Values | Effect
|
|
22
|
-
| ----------------------- | ----------------------------- |
|
|
23
|
-
| `--harness <name>` | `claude`, `codex`, `shared` | Target one harness. Repeatable.
|
|
24
|
-
| `--dry-run` | | Print what would change without writing.
|
|
25
|
-
| `--publish-mode <mode>` | `review`, `auto`, `full-auto` | Set publish consent non-interactively.
|
|
26
|
-
| `--no-allow-free-verbs` | | Do not write harness permission rules.
|
|
27
|
-
| `--search-hooks <mode>` | `auto`, `remind`, `off` | Register search hooks in this mode.
|
|
28
|
-
| `--no-hooks` | | Register no hooks this run.
|
|
29
|
-
| `--no-wallet` | | Create no wallet.
|
|
21
|
+
| Flag | Values | Effect |
|
|
22
|
+
| ----------------------- | ----------------------------- | -------------------------------------------------------------------------------------------------------------------------------- |
|
|
23
|
+
| `--harness <name>` | `claude`, `codex`, `shared` | Target one harness. Repeatable. |
|
|
24
|
+
| `--dry-run` | | Print what would change without writing, including the permission rules a real run would add. |
|
|
25
|
+
| `--publish-mode <mode>` | `review`, `auto`, `full-auto` | Set publish consent non-interactively. Defaults to `auto`, which also writes `Bash(tenjin publish:*)` and `Bash(tenjin edit:*)`. |
|
|
26
|
+
| `--no-allow-free-verbs` | | Do not write harness permission rules. |
|
|
27
|
+
| `--search-hooks <mode>` | `auto`, `remind`, `off` | Register search hooks in this mode. |
|
|
28
|
+
| `--no-hooks` | | Register no hooks this run. |
|
|
29
|
+
| `--no-wallet` | | Create no wallet. |
|
|
30
30
|
|
|
31
31
|
`install` is idempotent. Re-run it after upgrading the CLI or changing harnesses.
|
|
32
32
|
|
|
33
|
+
### Hooks
|
|
34
|
+
|
|
35
|
+
`install` can register two Claude Code hooks. The WebSearch hook (`hooks.searchMode`) checks Tenjin before a web search. The Stop hook (`hooks.stopNag`) reminds you at the end of a turn about searches that are still open.
|
|
36
|
+
|
|
37
|
+
**The Stop hook only ever raises a MISS.** A search that returned candidates is not an open loop, so nothing is reminded about it: a silent end-of-turn after a successful search is the hook working, not the hook broken. It also stays silent once a loop is closed (by `tenjin publish --search-id` or `tenjin outcome`), once a MISS ages past the session window, and after it has raised a given search once. `hooks.stopNag deliberate-only` drops the batch about web-search-hook misses and keeps the reminders about searches you ran yourself.
|
|
38
|
+
|
|
39
|
+
Hooks are read once at session start, so restart Claude Code after registering them.
|
|
40
|
+
|
|
33
41
|
### `tenjin uninstall`
|
|
34
42
|
|
|
35
43
|
Removes what `tenjin install` wrote: Tenjin skills, hook scripts, Tenjin hook entries, Tenjin permission rules, and older pointer lines in `CLAUDE.md` or `AGENTS.md`.
|
|
36
44
|
|
|
37
|
-
|
|
45
|
+
Your wallet, config, library, search history, and older candidate data under `~/.tenjin` stay in place. The one thing it removes there is the generated hook scripts in `~/.tenjin/hooks`, which `install` wrote and puts back. It is safe to run twice.
|
|
38
46
|
|
|
39
47
|
### `tenjin doctor`
|
|
40
48
|
|
|
@@ -229,6 +237,8 @@ Escape hatch for moving USDC out of the agent wallet. It is deliberately not par
|
|
|
229
237
|
|
|
230
238
|
`tenjin config` lists every key with its effective value and source. `tenjin config get <key>` reads one key. `tenjin config set <key> <value>` writes one key.
|
|
231
239
|
|
|
240
|
+
`set publish.mode` also keeps the harness allowlist in step, since the mode decides whether a publish asks and the allowlist decides whether the harness asks anyway. Moving to `auto` or `full-auto` asks once and writes `Bash(tenjin publish:*)` and `Bash(tenjin edit:*)` on yes; without a terminal, under `--json`, or on a no it writes nothing and prints where the rule goes. Moving back to `review` retracts them without asking. See [agent-permissions.md](./agent-permissions.md).
|
|
241
|
+
|
|
232
242
|
Common keys:
|
|
233
243
|
|
|
234
244
|
| Key | Default | Effect |
|
|
@@ -244,7 +254,7 @@ Common keys:
|
|
|
244
254
|
| `publish.mode` | `review` | Publish consent mode. |
|
|
245
255
|
| `publish.defaultPrice` | `0.10` | Price used when none is given. |
|
|
246
256
|
| `hooks.searchMode` | `auto` | WebSearch hook behavior. |
|
|
247
|
-
| `hooks.stopNag` | `on` | End-of-turn reminder
|
|
257
|
+
| `hooks.stopNag` | `on` | End-of-turn reminder: `on`, `deliberate-only` (no web-search batch), `off`. |
|
|
248
258
|
|
|
249
259
|
## MCP
|
|
250
260
|
|