kenso 0.1.156 → 0.1.157

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/docs/agents.md CHANGED
@@ -24,7 +24,7 @@ To hand the whole setup to an agent, give it [ken.so/get-started.md](https://ken
24
24
 
25
25
  ## kenso agent setup
26
26
 
27
- `kenso agent setup` installs the `kenso-cli` skill (as `kenso skill install` does) and registers the Kenso MCP server, `https://mcp.ken.so/mcp`, with each coding agent:
27
+ `kenso agent setup` installs the `kenso` and `kenso-cli` skills (as `kenso skill install` does) and registers the Kenso MCP server, `https://mcp.ken.so/mcp`, with each coding agent:
28
28
 
29
29
  | Agent | `--client` | MCP server added with |
30
30
  |---|---|---|
@@ -59,38 +59,50 @@ Paste this into the `AGENTS.md` (or `CLAUDE.md`) of a repo whose agents work in
59
59
  - Code that calls the API: send `Authorization: Bearer $KENSO_API_KEY`, `Ken-Version` and `X-Ken-Workspace-Id`. Reference: ken.so/docs.md; the kenso-api skill is listed at ken.so/.well-known/skills/index.json.
60
60
  ```
61
61
 
62
- ## The Agent Skill
62
+ ## The Agent Skills
63
63
 
64
- `kenso skill install` writes each skill bundled with this CLI (one `SKILL.md` in a folder named like the skill) where each agent looks for skills:
64
+ `kenso skill install` writes the two skills bundled with this CLI, each one `SKILL.md` in a folder named like the skill, where each agent looks for skills:
65
65
 
66
- | Agent | `--client` | Folder |
66
+ - `kenso`, the entry skill: it sends the agent to the Kenso skill for the job and sets the rules for the workspace, credits, sends and the final reply. Agents load it first; every help under an agent starts with `Agents: load the kenso skill first: kenso skill show kenso`.
67
+ - `kenso-cli`: the CLI's commands for work from a file or over about 50 records.
68
+
69
+ | Agent | `--client` | Folders |
67
70
  |---|---|---|
68
- | Claude Code | `claude-code` | `~/.claude/skills/kenso-cli/` |
69
- | Codex | `codex` | `~/.agents/skills/kenso-cli/` |
70
- | Cursor | `cursor` | `~/.cursor/skills/kenso-cli/` |
71
- | Gemini CLI | `gemini` | `~/.gemini/skills/kenso-cli/` |
72
- | OpenCode | `opencode` | `~/.config/opencode/skills/kenso-cli/` |
71
+ | Claude Code | `claude-code` | `~/.claude/skills/kenso/`, `~/.claude/skills/kenso-cli/` |
72
+ | Codex | `codex` | `~/.agents/skills/kenso/`, `~/.agents/skills/kenso-cli/` |
73
+ | Cursor | `cursor` | `~/.cursor/skills/kenso/`, `~/.cursor/skills/kenso-cli/` |
74
+ | Gemini CLI | `gemini` | `~/.gemini/skills/kenso/`, `~/.gemini/skills/kenso-cli/` |
75
+ | OpenCode | `opencode` | `~/.config/opencode/skills/kenso/`, `~/.config/opencode/skills/kenso-cli/` |
73
76
 
74
- Claude Code's folder follows `CLAUDE_CONFIG_DIR` when that is set. Without `--client`, it installs for the agent that runs it when that is Claude Code, Codex or Cursor (detected from the environment, see below), else for all five. It prints what it wrote:
77
+ Claude Code's folders follow `CLAUDE_CONFIG_DIR` when that is set. Without `--client`, it installs for the agent that runs it when that is Claude Code, Codex or Cursor (detected from the environment, see below), else for all five. It prints what it wrote:
75
78
 
76
79
  ```json
77
- {"installed":[{"client":"claude-code","path":"/home/you/.claude/skills/kenso-cli/SKILL.md","status":"created"}]}
80
+ {"installed":[{"client":"claude-code","path":"/home/you/.claude/skills/kenso-cli/SKILL.md","status":"created"},{"client":"claude-code","path":"/home/you/.claude/skills/kenso/SKILL.md","status":"created"}]}
78
81
  ```
79
82
 
80
83
  ```bash
81
84
  kenso skill install --client claude-code
82
85
  kenso skill install --client all
86
+ kenso skill install --skill kenso
83
87
  kenso skill install --dir .claude/skills/kenso-cli
84
88
  kenso skill install --force
85
89
  ```
86
90
 
87
- - `--skill <name>` installs one bundled skill. `--dir` writes one skill into that folder instead (`--skill`, else `kenso-cli`), for example a project's own skills folder. Name the folder like the skill, as agents expect.
91
+ - `--skill <name>` installs one of the two. `--dir` writes one skill into that folder instead (`--skill`, else `kenso-cli`), for example a project's own skills folder. Name the folder like the skill, as agents expect.
88
92
  - A missing file is written (`"status":"created"`) and one an older kenso wrote is replaced (`"status":"updated"`); the same file is left as it is (`"status":"unchanged"`). A `SKILL.md` edited by hand is left alone (`"status":"edited"`) with a stderr line that names `--force`, and the command still exits 0. `--force` replaces it (`"status":"replaced"`).
89
93
  - `--dry-run` writes nothing and exits 0. It prints each target's status and a `next` that applies it.
90
- - Under a detected agent, when a bundled skill in that agent's folder is from an older kenso, a command ends with one stderr line, once per agent session: `The installed kenso-cli skill is from an older kenso: kenso skill install`. It reads the files only. `KENSO_NO_SKILL_NOTICE=1` turns it off.
91
- - Cursor also reads `~/.claude/skills/` and `~/.agents/skills/` (Gemini CLI and OpenCode read `~/.agents/skills/` too), so after a default install for all of them an agent may list `kenso-cli` more than once. To avoid that, install with `--client cursor` only, or remove the copies you do not need.
94
+ - Under a detected agent, when a bundled skill in that agent's folder is from an older kenso, a command ends with one stderr line, once per agent session: `The installed <name> skill is from an older kenso: kenso skill install`. It reads the files only, and nothing is replaced until you run `kenso skill install` or `kenso agent setup`. `KENSO_NO_SKILL_NOTICE=1` turns it off.
95
+ - Cursor also reads `~/.claude/skills/` and `~/.agents/skills/` (Gemini CLI and OpenCode read `~/.agents/skills/` too), so after a default install for all of them an agent may list each Kenso skill more than once. To avoid that, install with `--client cursor` only, or remove the copies you do not need.
96
+
97
+ Both skills also ship in the Kenso plugin for Claude Code (`Ken-Technology/ken-ai-plugin`), so `npx skills add Ken-Technology/ken-ai-plugin` installs them along with the MCP skills; the plugin's copies are these files byte for byte. The other Kenso skills come from the MCP: list them, and read any of them without installing it:
98
+
99
+ ```bash
100
+ kenso skill list
101
+ kenso skill show kenso
102
+ kenso skill show workflows --reference files.md
103
+ ```
92
104
 
93
- The skill also ships in the Kenso plugin for Claude Code (`Ken-Technology/ken-ai-plugin`), so `npx skills add Ken-Technology/ken-ai-plugin` installs it along with the MCP skills. The plugin's copy is this file byte for byte. To read it without installing, open `skill/kenso-cli/SKILL.md` in the package.
105
+ `kenso skill show` prints `kenso` and `kenso-cli` from the CLI itself, with no network and no sign-in. Any other skill is read from the Kenso MCP with your key.
94
106
 
95
107
  ## Rules the skill teaches
96
108
 
@@ -101,6 +113,8 @@ The skill also ships in the Kenso plugin for Claude Code (`Ken-Technology/ken-ai
101
113
  - **Follow `next`.** Every error with a known fix carries the exact command to run.
102
114
  - **Branch on the exit code:** 0 ok, 2 fix the command, 3 fix the key, 5 some rows failed, 6 wait or raise a limit, 130 resume.
103
115
  - **Look things up, do not guess.** `kenso describe <resource> <action>` prints any command's flags and body schema as JSON.
116
+ - **Find, then look up.** `kenso discover` turns a plain request into the command, doc, skill or workflow step for it, offline, with the next command to run.
117
+ - **See the cost first.** Every dry run of paid work prints `credits` with `needed`, `available` and `sufficient`. `kenso credits` reads the balance, usage and prices.
104
118
 
105
119
  ## What a command does and what it costs
106
120
 
@@ -136,6 +150,36 @@ KENSO_READ_ONLY=1 kenso contacts search --limit 1
136
150
  kenso --read-only describe email-finds create
137
151
  ```
138
152
 
153
+ ## Find a command: kenso discover
154
+
155
+ `kenso discover` searches every command, doc topic, skill and workflow step type this release has, with no network and no key. Each argument is one query: plain words, or `"<what you have> -> <what you need>"`.
156
+
157
+ ```bash
158
+ kenso discover "linkedin url -> email"
159
+ kenso discover "pause a campaign" "export leads" --kind command --limit 3
160
+ kenso describe email-finds create
161
+ ```
162
+
163
+ It prints one object per query, `{"query", "hits", "more"}` (NDJSON when piped). Each hit has its `kind`, `id`, `summary`, `effect` (`read`, `write`, `spend`, `send` or `destructive`), `cost` (in credits, from your saved or the bundled rate card, or `null`) and `describe`, the exact command to run next. `--limit` is 5 by default and at most 10. A query with no hit prints an empty `hits` and exits 0. The index is built when the CLI is released, so a skill added since then shows up in the next release.
164
+
165
+ ## Credits
166
+
167
+ Prices are in credits only, from your workspace's own rate card. A skill or a doc never states a price: ask the CLI.
168
+
169
+ ```bash
170
+ kenso credits balance
171
+ kenso credits rate-card --action email_found
172
+ kenso credits quote --kind leads --count 200
173
+ kenso credits usage --since 7d
174
+ kenso credits usage --run <runId>
175
+ ```
176
+
177
+ - `balance`: credits `available`, and where they come from.
178
+ - `rate-card`: what each action costs on your card. Offline it prints the card saved in the last day, else the two bundled cards, labelled.
179
+ - `quote`: an estimate before you run anything, as `credits` with `needed`, `available` and `sufficient`. `--kind` is `campaign`, `build`, `infra`, `accounts`, `leads` or `places`; `--workflow <id or file> --records <n>` prices a workflow run.
180
+ - `usage`: the ledger, filtered by `--run`, `--workflow`, `--campaign`, `--action`, `--since` and `--until`, with the total on stderr. With no filter, this billing month's spend by category.
181
+ - `limit` (beta) shows the workflow spend limits, and `savings` the work Kenso did without taking credits.
182
+
139
183
  ## The token-saving pattern
140
184
 
141
185
  Adding 5,000 leads through the MCP sends every lead through the model, hundreds of thousands of tokens. Through the CLI it is two commands and two short JSON objects:
@@ -188,7 +232,7 @@ Point the run folders at the workspace if the home folder does not persist betwe
188
232
  The CLI checks these environment variables, in this order: `CLAUDECODE` and `CLAUDE_CODE_ENTRYPOINT` (Claude Code), `CODEX_SANDBOX` and `CODEX_THREAD_ID` (Codex), `CURSOR_AGENT` (Cursor), `GEMINI_CLI` (Gemini CLI), `OPENCODE` (OpenCode), then `AI_AGENT`, a free-form name any other agent can set. When one is set:
189
233
 
190
234
  - every request carries `X-Ken-Client: Kenso CLI via <agent>`, and writes carry `X-Ken-Actor: agent`, so Kenso shows the change as made by you through that agent;
191
- - help starts with `Agents: load the kenso-cli skill first: kenso skill install`;
235
+ - help starts with `Agents: load the kenso skill first: kenso skill show kenso`;
192
236
  - the first help an agent reads in a session ends with the "For agents" block. After that the block is one line, `Agent rules: kenso --help --verbose (dry-run first, one command per file, next is the next command).`, and `kenso --help --verbose` always prints it in full;
193
237
  - browser login never opens a browser itself: it prints the link for you to open.
194
238
 
@@ -10,6 +10,7 @@ Every command follows one contract, so a script or an agent can parse any of the
10
10
  - A command that deletes, archives, removes or merges, such as `kenso tags delete --tag-id 7`, `kenso campaigns archive`, `kenso people merge` or `kenso api DELETE /v1/tags/7`, needs `--yes` too. Without it, a person at a terminal is asked to confirm; anywhere else (a pipe, a script, CI, a coding agent) it sends nothing and fails with `confirmation_required`, whose `next` is the same command with `--yes`.
11
11
  - Any other single write, such as `kenso tags create`, `kenso notes add` or a write through `kenso api` or `kenso mcp call`, sends at once: add `--dry-run` to print the request first (it sends nothing), then run the command without it. A command that reads before it writes (`kenso layouts set --header` reads the layout it edits) still reads with `--dry-run`, and prints the write it would send. A POST that changes nothing, such as `kenso accounts search` or `kenso reports query`, is a read like a GET.
12
12
  - A command with no dry run, such as `kenso contacts export`, `kenso auth logout` or `kenso workspace use`, refuses `--dry-run` with `usage_error` (exit 2) and does nothing. Its help ends with `No --dry-run`, or with `Read-only.` when the command only reads, and `kenso describe <resource> <action>` shows `"dryRun": false`. Every command that only reads, generated ones included, says `Read-only.` there.
13
+ - A dry run of a command that can charge credits adds `credits`: `{"needed": n, "available": n, "sufficient": true}`, in credits. A batch command prices the whole file; a single API command adds `cost`, its price lines from your rate card. No output shows a currency amount.
13
14
 
14
15
  ## Formats
15
16
 
@@ -20,14 +21,16 @@ Every command follows one contract, so a script or an agent can parse any of the
20
21
  | A batch run | key-value lines | one JSON summary object |
21
22
  | No content (HTTP 204, such as a delete) | key-value lines: `ok`, `status`, `request` | `{"ok":true,"status":204,"request":{"method":"DELETE","path":"/v1/tasks/7"}}` |
22
23
 
23
- `-o` or `--output` picks the format: `json`, `ndjson`, `table` or `ids`. `--json` is the same as `-o json`.
24
+ `-o` or `--output` picks the format: `json`, `ndjson`, `table`, `ids` or `csv`. `--json` is the same as `-o json`.
24
25
 
25
26
  - `-o json` on a list prints one JSON array. On a terminal, `-o json` pretty-prints an object.
26
27
  - `-o ids` prints one id per line, ready for `--ids -`. Items without an `id` are skipped with one warning.
28
+ - `-o csv` prints a header row, then one row per item (RFC 4180, `\n` line ends). The columns are the `--fields` names in the order you give them; without `--fields`, the top-level keys of the first 100 rows, in the order they first appear. A nested field is `a.b`, an object or array in a cell is its compact JSON, and `null` or a missing key is an empty cell. With `--all` the header is fixed from the first 100 rows, and a later row's other keys are dropped with one line on stderr naming them. A single object prints as a two-line CSV. Values are written as they are: nothing is cut, and line breaks stay inside the quotes.
27
29
 
28
30
  ```bash
29
31
  kenso campaigns list --limit 3
30
32
  kenso campaigns list --limit 3 -o json
33
+ kenso campaigns list --limit 3 -o csv --fields id,name,status
31
34
  kenso contacts list --campaign-id 812 --all -o ids
32
35
  ```
33
36
 
package/docs/reference.md CHANGED
@@ -1,8 +1,8 @@
1
1
  # Kenso CLI command reference
2
2
 
3
- Generated from kenso 0.1.156 (API contracts 38afd069fb69) by `scripts/build-reference.ts`. Do not edit it: `pnpm build` writes it again.
3
+ Generated from kenso 0.1.157 (API contracts c07fe0976312) by `scripts/build-reference.ts`. Do not edit it: `pnpm build` writes it again.
4
4
 
5
- 1930 commands, one entry each: summary, API route, feature gate and flag names. Beta commands work only on workspaces with their feature flag; `kenso describe` hides the ones yours cannot use. Every command also takes the global flags below. A command's notes, flag descriptions, body schema and examples: `kenso <resource> <action> --help`, or `kenso describe <resource> <action>` as JSON.
5
+ 1931 commands, one entry each: summary, API route, feature gate and flag names. Beta commands work only on workspaces with their feature flag; `kenso describe` hides the ones yours cannot use. Every command also takes the global flags below. A command's notes, flag descriptions, body schema and examples: `kenso <resource> <action> --help`, or `kenso describe <resource> <action>` as JSON.
6
6
 
7
7
  ## Global flags
8
8
 
@@ -37,7 +37,7 @@ Exit codes: 0 ok, 1 error, 2 usage, 3 auth, 4 not found, 5 some rows failed, 6 r
37
37
  - [account-signals](#account-signals) (3)
38
38
  - [account-tiers](#account-tiers) (3)
39
39
  - [account-views](#account-views) (5)
40
- - [accounts](#accounts) (27)
40
+ - [accounts](#accounts) (28)
41
41
  - [ad-audiences](#ad-audiences) (5)
42
42
  - [ad-connections](#ad-connections) (6)
43
43
  - [agent](#agent) (1)
@@ -835,6 +835,12 @@ List accounts in the current workspace. `GET /v1/accounts` (a list). Beta: needs
835
835
 
836
836
  Flags: `--account-type`, `--cursor`, `--domain`, `--expand`, `--fits-icp`, `--has-open-opportunity`, `--ids`, `--is-customer`, `--latest-signal-after`, `--limit`, `--next-touch-before`, `--owner-member-id`, `--search`, `--sort`, `--stage`, `--stage-group`, `--tag-ids`, `--why-not-now`, `--no-fits-icp`, `--no-has-open-opportunity`, `--no-is-customer`, `--all`, `--each`, `--concurrency`.
837
837
 
838
+ ### kenso accounts list-field-values
839
+
840
+ List every value the workspace's accounts hold in one text field. `GET /v1/accounts/field-values` (a list). Beta: needs `accounts`.
841
+
842
+ Flags: `--cursor`, `--field`, `--limit`, `--search`, `--all`, `--each`, `--concurrency`.
843
+
838
844
  ### kenso accounts merge
839
845
 
840
846
  Merge an account into the one you keep. --dry-run shows what would change and writes nothing. `POST /v1/accounts/{accountId}/merge`. Beta: needs `accounts` and `crm_import_export`.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "kenso",
3
- "version": "0.1.156",
3
+ "version": "0.1.157",
4
4
  "description": "The Kenso CLI: bulk lead, CRM and Studio work for people and coding agents",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -49,5 +49,5 @@
49
49
  "typescript-eslint": "8.71.1",
50
50
  "vitest": "5.0.3"
51
51
  },
52
- "gitHead": "2f9ccc8e1f6072e1048feef818009e5e910c1f22"
52
+ "gitHead": "61c6fc33b84a1795b1c4470b84c4a70d193e62f7"
53
53
  }
@@ -0,0 +1,171 @@
1
+ ---
2
+ name: kenso
3
+ description: "Use for any outbound work in Kenso: leads, lists, campaigns, sequences, replies, accounts, signals, workflows, Studio, sending setup, reporting. Routes to the Kenso skill for the job and sets the rules for workspace, spend, sends and the final reply."
4
+ ---
5
+
6
+ # Kenso: start here
7
+
8
+ This skill comes first for any work in Kenso. It sends you to the skill for the job and sets the rules every other Kenso skill follows: the workspace, spend, sends and the final reply. When another skill says "the spend rules", it means section 5 below.
9
+
10
+ ## 1. First
11
+
12
+ ```bash
13
+ kenso doctor
14
+ kenso whoami
15
+ kenso workspace list
16
+ kenso credits balance
17
+ ```
18
+
19
+ - `kenso doctor` checks the CLI, the key, the skills and the MCP. When a check fails, run its `next` before anything else.
20
+ - `kenso whoami` shows the workspace this folder and key use (`activeWorkspace`, with its `id` and `name`) and where it comes from (`workspaceSource`); `kenso workspace list` lists every workspace the key reaches. Before any change, tell the person: "I will work in <name> (<id>)."
21
+ - `kenso credits balance` shows the credits `available`. Read it before you plan anything that charges.
22
+
23
+ ## 2. The loop
24
+
25
+ ```bash
26
+ kenso discover "find work emails for a list of people"
27
+ kenso describe email-finds create
28
+ ```
29
+
30
+ 1. `kenso discover` with the request in plain words finds the command, doc, skill or workflow step for it, offline. Each hit has its `effect` (read, write, spend, send or destructive), its cost line and the `describe` command to run next.
31
+ 2. `kenso describe <resource> <action>` prints the command's flags, body, `effect` and `cost` as JSON.
32
+ 3. Run it with `--dry-run` and read the plan: what it would send and, for paid work, `credits` with `needed`, `available` and `sufficient`.
33
+ 4. Run it for real only as the rules below allow, with the plan's `next`.
34
+
35
+ While you only look around, set `KENSO_READ_ONLY=1`: any command that is not a read is then refused before it sends anything, and a `--dry-run` still prints its plan.
36
+
37
+ ## 3. Which skill
38
+
39
+ Load a skill with `kenso skill show` and its name, for example `kenso skill show workflows`, or with `load_skill` through the Kenso MCP. `kenso skill list` shows the ones this workspace can use.
40
+
41
+ | Need | Skill |
42
+ |---|---|
43
+ | Count my market, size it and build the list | `tam-builder` |
44
+ | People-search filters for a campaign | `ken-search` |
45
+ | Build a campaign from an ICP and an offer, to launch-ready | `create-campaign` |
46
+ | Why a campaign is up or down; my best and worst campaign | `campaign-diagnosis` |
47
+ | Fix the email that is not working in a live campaign | `campaign-improvement` |
48
+ | Go through replies, draft answers, offer meeting times | `reply-handling` |
49
+ | What needs my attention: what failed, stalled or came out wrong, and what to fix first | `kenso-triage` |
50
+ | My Today queue: the touches due today, to draft, snooze or skip | `today-review` |
51
+ | Bounces up or sends dropped | `deliverability-guard` |
52
+ | Sending setup: inboxes, domains, LinkedIn accounts, the link host | `delivery-setup` |
53
+ | Connect my own sending domains | `connect-domains` |
54
+ | Review or order sending domains | `domain-selection` |
55
+ | Inbox limits, display names, signatures, reply forwarding | `inbox-configuration` |
56
+ | How many domains and inboxes I need | `infra-planning` |
57
+ | Set up a new workspace | `setup-workspace` |
58
+ | Sign up from the agent, with no workspace yet | `onboarding-signup` |
59
+ | Company, offer and voice files in Knowledge | `knowledge-setup` |
60
+ | Edit the skills in Knowledge > Skills | `skill-editor` |
61
+ | Target accounts: add, research, map who buys, plan touches | `accounts` |
62
+ | A one-page brief on an account before a call | `account-brief` |
63
+ | Hiring, funding, job changes, website visits or replies that start outreach | `signals` |
64
+ | Outreach around a conference or trade show | `event-outbound` |
65
+ | A job opening turned into a candidate campaign | `role-intake` |
66
+ | Someone's social profiles and recent posts | `social-data` |
67
+ | Build, test and run a workflow, as a file or in the app | `workflows` |
68
+ | Build or edit a Studio template | `studio-template` |
69
+ | Fill a Studio page for an account or a candidate | `studio-asset` |
70
+ | Prep for a call, then follow it up | `meeting-prep-and-followup` |
71
+ | A MEDDIC summary of a call | `meddic-summary` |
72
+ | The objections raised on a call | `objection-log` |
73
+ | The next-steps email after a call | `next-step-email` |
74
+ | The handoff to the AE after a call | `handoff-to-ae` |
75
+ | Open deals by stage, and the stuck ones | `pipeline-review` |
76
+ | The weekly or monthly results report | `report` |
77
+ | The person asks for the start interview | `kenso-start` |
78
+
79
+ **CLI or MCP.** Use the CLI for work from a file, or on more than about 50 records: imports, updates, exports and workflow runs. The kenso-cli skill has those commands; `kenso agent setup` installs it beside this one. For one record or a question, the MCP is fine.
80
+
81
+ **What to offer.** Look first:
82
+
83
+ ```bash
84
+ kenso campaigns list --limit 5
85
+ ```
86
+
87
+ A workspace with campaigns: offer "Diagnose my best and worst campaign" (`campaign-diagnosis`) and "Triage today's replies" (`reply-handling`). A new workspace: offer the starter menu.
88
+
89
+ 1. Count my market: how many companies and people match my ICP?
90
+ 2. Check my sending setup and tell me what to fix before I launch.
91
+ 3. Draft a campaign for my company from my website and show it to me before anything is sent.
92
+ 4. Tell me what you want to get done.
93
+
94
+ They lead to `tam-builder`, `delivery-setup` and `create-campaign`; for the fourth, find the skill in the table or run `kenso discover` with the person's words.
95
+
96
+ ## 4. Workspace
97
+
98
+ Name the workspace before the first change, and again whenever it changes. A yes that does not name the workspace is not a yes: ask again, with its name. Under a coding agent, every command that is not a read prints `workspace: <id> (<source>)` on stderr: stop when it is not the workspace the person approved. A `kenso.json` in a folder holds that folder's workspace.
99
+
100
+ ## 5. Spend
101
+
102
+ These rules hold in every Kenso skill.
103
+
104
+ - A bounded request ("find emails for these 200 people") covers that scope and nothing wider. An open one ("find me leads") needs a row count and a budget from the person first.
105
+ - Sample first. When a paid step covers more than 25 records, or the estimate's `credits.needed` is over 10, run 3 to 5 records first, show the result and the projected cost of the rest, and ask before the rest. These four numbers are thresholds of this contract, not prices.
106
+ - Prices come from a `--dry-run`, `kenso credits quote` or `kenso credits rate-card`, never from memory or from a skill.
107
+ - `Effect: write.` in a command's help is not proof that it is free: not every route that charges is marked. The dry run or `kenso credits quote` is the authority.
108
+ - Ask once, with one approval block, and wait for the yes:
109
+
110
+ ```text
111
+ Plan: <what will run>
112
+ Records: <how many, and from where>
113
+ Estimate: <needed> of <available> available credits (from the dry run)
114
+ Cap: --max-credits <the cap you will set>
115
+ Reply yes to run it.
116
+ ```
117
+
118
+ - On `kenso workflows run`, always set `--max-credits` to the cap in the approval block.
119
+ - Out of credits (`sufficient: false` in the plan, or a run that stops because the credits ran out): stop, show what finished, and give the billing link, https://app.ken.so/<workspace id>/settings/billing. Never retry in a loop.
120
+
121
+ ```bash
122
+ kenso credits quote --kind leads --count 200
123
+ kenso credits rate-card --action email_found
124
+ ```
125
+
126
+ ## 6. Sends
127
+
128
+ Sends, launches, CRM writes and schedule changes need a yes that names the campaign or the record set ("launch campaign 812", "update these 40 deals in the CRM"). A yes to a plan is not a yes to send. A delete, archive or remove runs with `--yes` only after the person said yes to that delete.
129
+
130
+ ## 7. Workflows, signals and tools
131
+
132
+ - A **workflow** is a saved set of steps that runs on each record (an account, a person, a lead), started by hand, on a schedule or by a signal. The `workflows` skill builds one; its file loop is `kenso skill show workflows --reference files.md`.
133
+ - A **signal** is an event that starts a workflow: hiring, funding, a job change, a website visit, a reply. `kenso signals types` lists them; the `signals` skill watches for them.
134
+ - A **tool** is one command you run yourself (`kenso discover` finds it) or one MCP operation.
135
+
136
+ The first run of a workflow template is five commands: `init --template`, `push`, `test`, `push --publish --expected-hash` with the hash `test` printed, and `run`. Check the file after every edit, and dry-run the run before the paid one:
137
+
138
+ ```bash
139
+ kenso workflow-templates list
140
+ kenso workflows init qualify --template <templateKey>
141
+ kenso workflows push qualify.workflow.json
142
+ kenso workflows check qualify.workflow.json --mode publish
143
+ kenso workflows test qualify.workflow.json --record account:<accountId>
144
+ kenso workflows push qualify.workflow.json --publish --expected-hash <definitionHash>
145
+ kenso workflows run qualify.workflow.json --ids ids.txt --max-credits <cap> --dry-run
146
+ kenso workflows run qualify.workflow.json --ids ids.txt --max-credits <cap> --wait --out results.csv --yes
147
+ ```
148
+
149
+ ## 8. Your own agent plan: kenso work
150
+
151
+ Where your workspace has it, `kenso work` runs Kenso AI steps on your own Claude or Codex plan at 0 Kenso AI credits. Check with `kenso work status`: it lists what waits for your agent, and answers `not_found` when the workspace does not have it yet. When most of an estimate is AI steps, name this to the person as an option before they approve.
152
+
153
+ ```bash
154
+ kenso work status
155
+ ```
156
+
157
+ ## 9. The final reply
158
+
159
+ End every job with this reply, in this order:
160
+
161
+ ```text
162
+ Outcome: <what ran, on how many records, what it produced>
163
+ Misses: <count and reason for each kind of miss, or none>
164
+ Links: <the app page> and <the results file>
165
+ Credits spent: <from the run summary's creditsCharged, or kenso credits usage --run <runId>>
166
+ Next: <the one next step you recommend>
167
+ ```
168
+
169
+ ## No Kenso account yet
170
+
171
+ These steps run on the Kenso MCP server, which signs in with a Kenso account. If the user has none, send them to https://app.ken.so/get-started to create one, then sign in when the agent asks.
@@ -27,7 +27,7 @@ kenso connect inbox --provider google # also calendar, crm, github, linkedin .
27
27
  kenso onboarding-builds events --build-id obd_2x --until done,error # live streams: one JSON line per event, reconnects itself
28
28
  ```
29
29
 
30
- Charges: `accounts import` per new account, `studio fill` per page (again for ids from another file): show the estimate. `pinned_by_user`: with the person's OK, rerun with `--overwrite-pinned`. Workflows: `kenso workflows brief` first; secrets only as `{{secrets.NAME}}`. Key: `KENSO_API_KEY`, or pipe a variable, no check: `printf '%s' "$KEY" | kenso auth login --with-key`; never in a flag, output or file.
30
+ Charges: follow the kenso skill's spend rules; every dry run prints the credit estimate. `pinned_by_user`: with the person's OK, rerun with `--overwrite-pinned`. Workflows: `kenso docs workflows` first; secrets only as `{{secrets.NAME}}`. Key: `KENSO_API_KEY`, or pipe a variable, no check: `printf '%s' "$KEY" | kenso auth login --with-key`; never in a flag, output or file.
31
31
 
32
32
  ## Work (beta): My agent
33
33
 
@@ -25,6 +25,10 @@
25
25
  "2fc2b2771c36b0ce462cdaab4933b9ee294274cd32324b7decb3abd1164a2d89",
26
26
  "8e79d18098e6ed3b79c3bce771a46180b50e9ed1b741e64ffcb301601282eb12",
27
27
  "fcac2e80b3d818394465a491bad232025d1c201515ef7fb778e4aa51669b3e61",
28
- "42fa3f163ab9aa70260040b443830c57dc7926e935a557c40896038e8817b088"
28
+ "42fa3f163ab9aa70260040b443830c57dc7926e935a557c40896038e8817b088",
29
+ "b34e186f56f36b509bffa0dea2ee78b09e91654b90a659d6665563df4fa88f76"
30
+ ],
31
+ "kenso": [
32
+ "6fb333a826726d51ba2ea3927745f843343490c8aa9098e5da682d24172323f7"
29
33
  ]
30
34
  }