@stigmer/coding-agent-plugin 0.0.0-stage → 0.3.0

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,194 @@
1
+ Apache License
2
+ Version 2.0, January 2004
3
+ http://www.apache.org/licenses/
4
+
5
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
+
7
+ 1. Definitions.
8
+
9
+ "License" shall mean the terms and conditions for use, reproduction,
10
+ and distribution as defined by Sections 1 through 9 of this document.
11
+
12
+ "Licensor" shall mean the copyright owner or entity authorized by
13
+ the copyright owner that is granting the License.
14
+
15
+ "Legal Entity" shall mean the union of the acting entity and all
16
+ other entities that control, are controlled by, or are under common
17
+ control with that entity. For the purposes of this definition,
18
+ "control" means (i) the power, direct or indirect, to cause the
19
+ direction or management of such entity, whether by contract or
20
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
21
+ outstanding shares, or (iii) beneficial ownership of such entity.
22
+
23
+ "You" (or "Your") shall mean an individual or Legal Entity
24
+ exercising permissions granted by this License.
25
+
26
+ "Source" form shall mean the preferred form for making modifications,
27
+ including but not limited to software source code, documentation
28
+ source, and configuration files.
29
+
30
+ "Object" form shall mean any form resulting from mechanical
31
+ transformation or translation of a Source form, including but
32
+ not limited to compiled object code, generated documentation,
33
+ and conversions to other media types.
34
+
35
+ "Work" shall mean the work of authorship, whether in Source or
36
+ Object form, made available under the License, as indicated by a
37
+ copyright notice that is included in or attached to the work
38
+ (an example is provided in the Appendix below).
39
+
40
+ "Derivative Works" shall mean any work, whether in Source or Object
41
+ form, that is based on (or derived from) the Work and for which the
42
+ editorial revisions, annotations, elaborations, or other modifications
43
+ represent, as a whole, an original work of authorship. For the purposes
44
+ of this License, Derivative Works shall not include works that remain
45
+ separable from, or merely link (or bind by name) to the interfaces of,
46
+ the Work and Derivative Works thereof.
47
+
48
+ "Contribution" shall mean any work of authorship, including
49
+ the original version of the Work and any modifications or additions
50
+ to that Work or Derivative Works thereof, that is intentionally
51
+ submitted to Licensor for inclusion in the Work by the copyright owner
52
+ or by an individual or Legal Entity authorized to submit on behalf of
53
+ the copyright owner. For the purposes of this definition, "submitted"
54
+ means any form of electronic, verbal, or written communication sent
55
+ to the Licensor or its representatives, including but not limited to
56
+ communication on electronic mailing lists, source code control systems,
57
+ and issue tracking systems that are managed by, or on behalf of, the
58
+ Licensor for the purpose of discussing and improving the Work, but
59
+ excluding communication that is conspicuously marked or otherwise
60
+ designated in writing by the copyright owner as "Not a Contribution."
61
+
62
+ "Contributor" shall mean Licensor and any individual or Legal Entity
63
+ on behalf of whom a Contribution has been received by Licensor and
64
+ subsequently incorporated within the Work.
65
+
66
+ 2. Grant of Copyright License. Subject to the terms and conditions of
67
+ this License, each Contributor hereby grants to You a perpetual,
68
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
69
+ copyright license to reproduce, prepare Derivative Works of,
70
+ publicly display, publicly perform, sublicense, and distribute the
71
+ Work and such Derivative Works in Source or Object form.
72
+
73
+ 3. Grant of Patent License. Subject to the terms and conditions of
74
+ this License, each Contributor hereby grants to You a perpetual,
75
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
76
+ (except as stated in this section) patent license to make, have made,
77
+ use, offer to sell, sell, import, and otherwise transfer the Work,
78
+ where such license applies only to those patent claims licensable
79
+ by such Contributor that are necessarily infringed by their
80
+ Contribution(s) alone or by combination of their Contribution(s)
81
+ with the Work to which such Contribution(s) was submitted. If You
82
+ institute patent litigation against any entity (including a
83
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
84
+ or a Contribution incorporated within the Work constitutes direct
85
+ or contributory patent infringement, then any patent licenses
86
+ granted to You under this License for that Work shall terminate
87
+ as of the date such litigation is filed.
88
+
89
+ 4. Redistribution. You may reproduce and distribute copies of the
90
+ Work or Derivative Works thereof in any medium, with or without
91
+ modifications, and in Source or Object form, provided that You
92
+ meet the following conditions:
93
+
94
+ (a) You must give any other recipients of the Work or
95
+ Derivative Works a copy of this License; and
96
+
97
+ (b) You must cause any modified files to carry prominent notices
98
+ stating that You changed the files; and
99
+
100
+ (c) You must retain, in the Source form of any Derivative Works
101
+ that You distribute, all copyright, patent, trademark, and
102
+ attribution notices from the Source form of the Work,
103
+ excluding those notices that do not pertain to any part of
104
+ the Derivative Works; and
105
+
106
+ (d) If the Work includes a "NOTICE" text file as part of its
107
+ distribution, then any Derivative Works that You distribute must
108
+ include a readable copy of the attribution notices contained
109
+ within such NOTICE file, excluding those notices that do not
110
+ pertain to any part of the Derivative Works, in at least one
111
+ of the following places: within a NOTICE text file distributed
112
+ as part of the Derivative Works; within the Source form or
113
+ documentation, if provided along with the Derivative Works; or,
114
+ within a display generated by the Derivative Works, if and
115
+ wherever such third-party notices normally appear. The contents
116
+ of the NOTICE file are for informational purposes only and
117
+ do not modify the License. You may add Your own attribution
118
+ notices within Derivative Works that You distribute, alongside
119
+ or as an addendum to the NOTICE text from the Work, provided
120
+ that such additional attribution notices cannot be construed
121
+ as modifying the License.
122
+
123
+ You may add Your own copyright statement to Your modifications and
124
+ may provide additional or different license terms and conditions
125
+ for use, reproduction, or distribution of Your modifications, or
126
+ for any such Derivative Works as a whole, provided Your use,
127
+ reproduction, and distribution of the Work otherwise complies with
128
+ the conditions stated in this License.
129
+
130
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
131
+ any Contribution intentionally submitted for inclusion in the Work
132
+ by You to the Licensor shall be under the terms and conditions of
133
+ this License, without any additional terms or conditions.
134
+ Notwithstanding the above, nothing herein shall supersede or modify
135
+ the terms of any separate license agreement you may have executed
136
+ with Licensor regarding such Contributions.
137
+
138
+ 6. Trademarks. This License does not grant permission to use the trade
139
+ names, trademarks, service marks, or product names of the Licensor,
140
+ except as required for reasonable and customary use in describing the
141
+ origin of the Work and reproducing the content of the NOTICE file.
142
+
143
+ 7. Disclaimer of Warranty. Unless required by applicable law or
144
+ agreed to in writing, Licensor provides the Work (and each
145
+ Contributor provides its Contributions) on an "AS IS" BASIS,
146
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
147
+ implied, including, without limitation, any warranties or conditions
148
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
149
+ PARTICULAR PURPOSE. You are solely responsible for determining the
150
+ appropriateness of using or redistributing the Work and assume any
151
+ risks associated with Your exercise of permissions under this License.
152
+
153
+ 8. Limitation of Liability. In no event and under no legal theory,
154
+ whether in tort (including negligence), contract, or otherwise,
155
+ unless required by applicable law (such as deliberate and grossly
156
+ negligent acts) or agreed to in writing, shall any Contributor be
157
+ liable to You for damages, including any direct, indirect, special,
158
+ incidental, or consequential damages of any character arising as a
159
+ result of this License or out of the use or inability to use the
160
+ Work (including but not limited to damages for loss of goodwill,
161
+ work stoppage, computer failure or malfunction, or any and all
162
+ other commercial damages or losses), even if such Contributor
163
+ has been advised of the possibility of such damages.
164
+
165
+ 9. Accepting Warranty or Additional Liability. While redistributing
166
+ the Work or Derivative Works thereof, You may choose to offer,
167
+ and charge a fee for, acceptance of support, warranty, indemnity,
168
+ or other liability obligations and/or rights consistent with this
169
+ License. However, in accepting such obligations, You may act only
170
+ on Your own behalf and on Your sole responsibility, not on behalf
171
+ of any other Contributor, and only if You agree to indemnify,
172
+ defend, and hold each Contributor harmless for any liability
173
+ incurred by, or claims asserted against, such Contributor by reason
174
+ of your accepting any such warranty or additional liability.
175
+
176
+ END OF TERMS AND CONDITIONS
177
+
178
+ Copyright 2026 Stigmer Contributors
179
+
180
+ Licensed under the Apache License, Version 2.0 (the "License");
181
+ you may not use this file except in compliance with the License.
182
+ You may obtain a copy of the License at
183
+
184
+ http://www.apache.org/licenses/LICENSE-2.0
185
+
186
+ Unless required by applicable law or agreed to in writing, software
187
+ distributed under the License is distributed on an "AS IS" BASIS,
188
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
189
+ See the License for the specific language governing permissions and
190
+ limitations under the License.
191
+
192
+ Except for the contents of the ee/ directory, which are licensed under the
193
+ Stigmer Enterprise License (see ee/LICENSE), everything in this repository
194
+ is licensed under the Apache License, Version 2.0, above.
package/README.md CHANGED
@@ -1,3 +1,190 @@
1
- # Temporary Holding Version
1
+ # Stigmer's plugin for coding agents
2
2
 
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
3
+ `@stigmer/coding-agent-plugin`: one plugin for Claude Code, Codex and Cursor
4
+ that answers a person's questions about Stigmer from the live docs, and the
5
+ guide a coding agent follows to set Stigmer up for their project.
6
+ It is the "Let your coding agent set it up" door
7
+ (`docs/getting-started/coding-agent.mdx`).
8
+
9
+ This is not `plugins/`, the catalogue Stigmer installs into its own agents. This
10
+ one is for the coding agent on a person's laptop.
11
+
12
+ ## What is in it
13
+
14
+ - `plugin/skills/stigmer/SKILL.md`: the front door. It answers any question
15
+ about Stigmer from the live docs (`stigmer docs search` and `stigmer docs
16
+ read`, or the tool server's `search_docs` and `read_doc`), cited, checks the
17
+ person's installed CLI and server before naming a command or feature, and
18
+ carries the rules for acting for a person (`AGENT_RULES`,
19
+ `mcp-server/src/instructions.ts`). Its "What Stigmer is", map and "when the
20
+ answer isn't in the docs" sections are the docs assistant's
21
+ (`docs-agent/skills/stigmer-docs/SKILL.md`), word for word.
22
+ - `plugin/skills/stigmer-setup/SKILL.md`: the setup guide. `stigmer
23
+ coding-agent` prints it without its frontmatter
24
+ (`client-apps/cli/src/commands/coding-agent.ts`), so a person who pastes the
25
+ prompt gets the guide released with the CLI they installed.
26
+ - `plugin/skills/stigmer-run/SKILL.md`: running the person's agents and
27
+ reading their runs: an agent on a file in their project, the last run,
28
+ its output files, why it failed, approvals, follow-ups, scores and evals.
29
+ Command line first, each job's Stigmer tool beside it. Every `stigmer`
30
+ command any plugin skill names is held to the CLI's command tree by the
31
+ CLI's own suite (`client-apps/cli/src/commands/__tests__/coding-agent.test.ts`).
32
+ - `plugin/skills/stigmer-integrate/SKILL.md`: putting the person's agent in
33
+ their own product, whatever the stack: whose run it is (the app's service
34
+ account, the signed-in user, an organization per customer), then each job
35
+ (a backend run on a file, streaming, the chat and its look, sign-in,
36
+ approvals in their screens, moving from Claude Managed Agents) as a method
37
+ and the docs pages to read for their language. The calls live on those
38
+ pages, a tab per language, not in the skill.
39
+ - `plugin/skills/stigmer-build/SKILL.md`: designing and changing the person's
40
+ agents and connecting them to people: which piece of Stigmer does each part
41
+ (a vault for a secret, an Environment for packages and network, the tool's
42
+ mark or a hook for an approval, a plugin for an MCP server or a team's
43
+ plugin, a Routine for a schedule or another system, a Channel for people
44
+ outside Stigmer), then each job's method, pages and pitfalls, and how to
45
+ act: a manifest applied from the live definition, a secret the person saves,
46
+ a routine or channel turned on only on their yes.
47
+ - `plugin/skills/stigmer-operate/SKILL.md`: running the person's own Stigmer
48
+ server and administering their organization: three first facts (the server
49
+ the CLI reaches, the edition the person runs, the shape they run), which
50
+ piece answers each question (the install shapes, sign-in with their own
51
+ provider, a service account's key, the Organization's roles, the runner,
52
+ tracing, upgrades and backups, the access history, agent hours), each job's
53
+ method, pages and pitfalls, and how to act: a key, a role or access proposed
54
+ first, a service account's key saved to a file and never shown.
55
+ - `plugin/.mcp.json`: the bundled `stigmer mcp-server`, for making, running and
56
+ reading agents once setup is done.
57
+ - `plugin/hooks/`: the guard. `hooks.json` is Claude Code's: a `PreToolUse`
58
+ hook (`guard.mjs`, deciding in `decide.mjs`) that asks the person before a
59
+ destructive tool, before answering a run's approval with allow, and before a
60
+ `stigmer` command forced past its own question, even after they allowed the
61
+ plugin's tools. Codex and Cursor each load `hooks/hooks.json` when their
62
+ manifest names no hooks file, and would run Claude Code's hook wrongly, so
63
+ their manifests name an empty file each (`codex-hooks.json`,
64
+ `cursor-hooks.json`). Codex asks before the tools from their marks
65
+ (`mcp-server/src/domains/toolmarks.ts`).
66
+ - The manifests and marketplace files of each tool, one plugin named `stigmer`
67
+ at the folder's root: `.claude-plugin/` (Claude Code), `.cursor-plugin/`
68
+ (Cursor), `.codex-plugin/plugin.json` and `.agents/plugins/marketplace.json`
69
+ (Codex).
70
+
71
+ ## Build, publish, install
72
+
73
+ `npm run build` (`scripts/build.mjs`) copies `plugin/` to `dist/plugin/`,
74
+ stamps each manifest's `version` with the package's, writes `dist/index.js`
75
+ (`GUIDE`, `PLUGIN_REPOSITORY`), and fails if `npm pack` would leave a staged
76
+ file out. The release train publishes the package with the other libraries,
77
+ before the CLI that depends on it (`scripts/publish-libs.mjs`), which stamps
78
+ the release's version into the three manifests as into `package.json` and
79
+ refuses to publish one still at `0.0.0-dev`.
80
+
81
+ `reconcile-coding-agent-plugin.yaml` then makes the public repository
82
+ `stigmer/coding-agent-plugin` equal to the npm `latest` package's
83
+ `plugin/` folder (this build's `dist/plugin/`; the package is published from
84
+ `dist/`), the way `reconcile-homebrew.yaml` keeps the tap. People install
85
+ from that repository; the install lines are on the docs page.
86
+
87
+ ## Tests
88
+
89
+ `npm run test -w @stigmer/coding-agent-plugin` builds the package and reads it
90
+ with Stigmer's own plugin reader (`@stigmer/plugin-package`), which knows all
91
+ three dialects: every manifest names the one plugin at the package's version,
92
+ the skill and the MCP server read with no warning, and each marketplace file
93
+ offers the plugin at the root. `__tests__/front-door.test.ts` holds the front
94
+ door's shared sections to the docs assistant's and its rules to
95
+ `AGENT_RULES`; `__tests__/guard.test.ts` holds the guard's tool list to the
96
+ tools the full roster marks destructive and tests every decision. The CLI's
97
+ suite holds the guard's command list to every command with a `--force`
98
+ option (`client-apps/cli/src/commands/__tests__/coding-agent.test.ts`). The
99
+ CLI's suite holds the guide to the CLI
100
+ (`client-apps/cli/src/commands/__tests__/coding-agent.test.ts`): every
101
+ `stigmer …` line it names is a command this CLI has, with flags it declares.
102
+ Run both after a change here. The door end to end, in a real coding agent, is
103
+ `make door-coding-agent` (`test/install/coding-agent-door.mjs`), by hand. The
104
+ plugin on the job after setup, putting the agent in an existing app from a
105
+ one-line ask, is `make walk-coding-agent-app APP=ledgerly-nextjs` (Next.js) or
106
+ `APP=statements-fastapi` (FastAPI) (`test/install/coding-agent-app.mjs`), by
107
+ hand: it passes when one of the app's signed-in customers uses the agent in the
108
+ app and the conversation is theirs. The plugin changing an agent the person
109
+ already has, from a one-line ask (a routine every Monday, an MCP server with
110
+ only two of its tools), is `make walk-coding-agent-build`
111
+ (`test/install/coding-agent-build.mjs`), by hand: it passes when the server
112
+ holds the routine, still off, and the plugin, the agent names the two tools in
113
+ full, and its instructions and skills are as they were. The plugin making CI a
114
+ key ("a key that can run agents but not change them") is
115
+ `make walk-coding-agent-operate` (`test/install/coding-agent-operate.mjs`), by
116
+ hand: it passes when the server holds one Member service account with one key,
117
+ the key in the file the CLI named is that account's, no key appears in the
118
+ coding agent's stream, and the person's own keys and the agents are as they
119
+ were. Both walks share their stage, fixture and turns
120
+ (`test/install/lib/coding-agent-walk.mjs`).
121
+
122
+ ## The question bank
123
+
124
+ `evals/` is the bank: the questions and jobs a developer brings to their
125
+ coding agent about Stigmer, one eval case per folder, grouped by job
126
+ (`deciding`, `setup`, `design`, `integrate`, `run-fix`, `quality`, `reach`,
127
+ `own-server`, `admin`, `stuck`). It lives beside `plugin/`, not in it, so it
128
+ is never published with the plugin. Every case is in the format both
129
+ `claude plugin eval` and Stigmer's own eval reader take: a `prompt.md` with
130
+ the person's words, and `graders/`:
131
+
132
+ - `must-<n>.md`: two to four, each one point the answer must make, without
133
+ which the person would act wrongly or not at all, written from the docs
134
+ pages the answer comes from;
135
+ - `fail-if-<n>.md`: one each for what fails an answer (wrong, invented, or
136
+ contradicting the docs). Every judge grader holds one point: Claude Code's
137
+ judge answers PASS or FAIL in one word, with no room to reason, and grades
138
+ one point reliably where it misgrades a list. It reads the final message
139
+ only, so an acting case's graders judge only what that message shows. It
140
+ also reads a claim in an answer that denies it ("Stigmer runs no model of
141
+ its own" failed "says Stigmer runs a model of its own"), so a fail-if line
142
+ opens with "PASS unless the answer does this; an answer that says the
143
+ opposite, denies it or warns against it does not do it:", then names the
144
+ wrong claim exactly. A line that is a judgement ("runs Claude Managed
145
+ Agents down", "a price other than these") says in its point what does not
146
+ count ("saying plainly what it lacks", "leaving a price out"). Cases whose
147
+ job has not been re-probed since still open with the older "PASS unless
148
+ the answer does this:"; a job moves when its cases are next scored, after
149
+ the same probe: its misgraded answers and a wrong answer for each line,
150
+ through `claude plugin eval` on a scratch plugin whose case repeats a
151
+ given answer word for word;
152
+ - `cites-the-page.md`: the answer links a page that answers it, as published
153
+ (`stigmer\.ai/docs/<page>`, or several as `stigmer\.ai/docs/(<page>|<page>)`;
154
+ a link to the docs' source on GitHub doesn't count). The list names every
155
+ page that answers the question, and it is also the bank's record of which
156
+ pages have a question. A case that acts may leave it out where its answer
157
+ is the fixture's fact or the act itself;
158
+ - `skill-fired.md`: whether the plugin's skill loaded, an indicator outside
159
+ the score;
160
+ - beside `graders/`, `welcome.md`: what a good answer may also say, never
161
+ graded;
162
+ - for a case that acts on Stigmer (tagged `acts`), `reports-the-fact.md`: a
163
+ fact only a real read of the fixture returns; for a destructive ask,
164
+ `does-not-act.md`: the trace holds no such call, and the rubric passes only
165
+ when the agent asks the person first.
166
+
167
+ `make bank-coding-agent` (`test/install/coding-agent-bank.mjs`) runs the bank
168
+ in Claude Code, with the plugin and without it, against a hermetic local
169
+ Stigmer seeded with `evals/_fixture/` (an agent with a finished run, one whose
170
+ runs fail, a skill), its runner on the fake model, and prints the score per
171
+ job. An acting try starts in a set-up person's project: the fixture agents'
172
+ manifests sit in its folder as `stigmer/<agent>.yaml`. A case passes only when every try passes every scored grader. A try
173
+ Claude Code could not run (a usage limit, a crash) is no reading: the table
174
+ counts it, leaves its case unread and says the run is not a valid reading,
175
+ and the command exits non-zero, so such a run is never taken as a score. It
176
+ calls a real
177
+ model on your own Claude Code sign-in, so it is by hand, in no lane;
178
+ `BANK_ARGS` narrows it (`--tag=<job>`, `--case=<glob>`, `--runs=<n>`) and
179
+ bounds it (`--max-cost-usd`, default $60 API-equivalent).
180
+
181
+ To add a case: write the question in the person's own words under its job's
182
+ folder, read the docs page that answers it, and write the rubric from that
183
+ page, one point per grader, each opening with the question its kind asks;
184
+ copy the frontmatter and `skill-fired.md` from a neighbour, since every case
185
+ shares one tool list and turn cap. A question no page answers is a docs
186
+ gap: write the case anyway, and fix the docs. `__tests__/bank.test.ts` holds
187
+ the bank's shape in the gate: Stigmer reads it with no finding, every judge
188
+ grader holds one point, every case has two to four Must points, every cited
189
+ page exists, every concept page, getting-started page and guide group has a
190
+ question, and every job has at least four.
package/index.d.ts ADDED
@@ -0,0 +1,4 @@
1
+ /** The guide a coding agent follows to set Stigmer up for a project (the skill's text, without its frontmatter). */
2
+ export declare const GUIDE: string;
3
+ /** The GitHub repository the plugin installs from (`owner/name`). */
4
+ export declare const PLUGIN_REPOSITORY: string;
package/index.js ADDED
@@ -0,0 +1,3 @@
1
+ // Generated by scripts/build.mjs from plugin/skills/stigmer-setup/SKILL.md. Do not edit.
2
+ export const GUIDE = "# Set up Stigmer for this project\n\nStigmer runs AI agents for the people who use this app: an agent takes a file a\nuser hands it (a ledger, a ticket export, a contract) and hands back the work.\nYou will take the person from nothing to their agent's chat inside their own\napp, in this order. Each step ends with something they can see; tell them what\nit is in one line.\n\n0. Find the command line\n1. Where it runs, and signing in\n2. What should your agent do for your users?\n3. The model key\n4. Watch it work\n5. Make it yours\n6. Put it in your app\n7. Bring others in\n\n## Rules for every step\n\n- Use the person's own words for their product; call the people who use it\n \"users\".\n- Ask before writing anything outside `stigmer/`, `stigmer-output/`,\n `.gitignore`, the stack's env file and the two files step 6 hands over.\n- Never print, echo or ask for a key, and never put one on a command line. A\n key travels only through stdin or a file the CLI writes itself.\n- Never make a second service account or overwrite an existing agent without\n asking.\n- When a command fails, stop and say what failed in plain words, with the one\n next thing to do. The CLI's own message usually says it; quote it. When the\n server named a place to ask for help (a `Stuck? …` line), pass that line on\n too, so the person knows where to ask.\n- Commands that wait on the person (`stigmer auth login`) can take minutes. Run\n them in the background where your tool allows it, or with the longest timeout\n it allows, and tell the person what will open.\n\n## 0. Find the command line\n\nRun `stigmer version`. If it is missing, ask the person, then install it with\n`npm install -g @stigmer/cli` (or `brew install stigmer/tap/stigmer` on a Mac\nwith Homebrew).\n\n## 1. Where it runs, and signing in\n\nIf the prompt named a Stigmer address, use it: `https://api.stigmer.ai` is\nStigmer Cloud; `localhost:7234` is this computer; any other is a server at its\nown address. Otherwise ask: Stigmer Cloud, their own Stigmer server (its\naddress), or this computer.\n\nLater steps send the person to pages of Stigmer's console, written here as\n`<console>`. Its address is the console the prompt named (\"its console is\n…\"); otherwise `https://app.stigmer.ai` on Stigmer Cloud,\n`http://localhost:7234` on this computer, and the server's own address for a\nserver at its own address.\n\n- **Stigmer Cloud**: `stigmer config backend set cloud`.\n- **A server at its own address**: `stigmer config backend add <name> --endpoint <host:port>`\n (port 443 for https), then `stigmer config backend use <name>`.\n- **This computer**: `stigmer up` (it starts Stigmer locally, with a console at\n http://localhost:7234). Nothing to sign in to: skip to choosing the\n organization below.\n\nThen sign in: `stigmer auth login`. It prints an address and opens the browser;\nthe person signs in there. Where no browser can open (an SSH session, a remote\nsandbox), run `stigmer auth login --device` and tell the person to open the\naddress it prints and enter the code. `stigmer auth whoami` says who they are\nand which organization the CLI uses, and ends with a `Stuck? …` line when the\nserver names a place to ask for help: keep it for when something fails. If it says none is set and they belong to\nseveral, ask which and run `stigmer config context set --org <slug>`.\n\n## 2. What should your agent do for your users?\n\nRead this repository first: the README, the routes and pages, the data models,\nthe nouns the code uses. Then run `stigmer example list` and suggest the\nexample that fits the app, saying why in one line (\"Invoice match: your app\nstores purchase orders and invoices\"). If none fits, propose an agent of their\nown from what the app does: a short name for its job (`ticket-triage`, not\n`my-agent`), and instructions that say what file it takes and what it saves.\n\nThe person chooses. Then:\n\n- **An example**: `stigmer example get <id>` writes its manifest and sample\n files into `stigmer/<id>/`.\n- **Their own**: write the manifest into `stigmer/<slug>.yaml`, in this shape,\n and show it to them:\n\n ```yaml\n apiVersion: agentic.stigmer.ai/v1\n kind: Agent\n metadata:\n name: <slug>\n spec:\n description: <one line>\n instructions: |\n <what it reads, what it does, and the file it hands back: \"Hand back the summary as a file named summary.md\">\n ```\n\nMake it with `stigmer apply -f <the manifest>`. Their agent is now a file in\ntheir repository they can review and commit. If an agent with that slug already\nexists, ask before applying over it.\n\n## 3. The model key\n\nRun `stigmer provider-key list`. If a provider is ready, this step is done.\n\nIf `ANTHROPIC_API_KEY` is set in your environment, pipe it to the CLI:\n`printenv ANTHROPIC_API_KEY | stigmer provider-key set anthropic --key-stdin`\n(on this computer, `printenv ANTHROPIC_API_KEY | stigmer setup --api-key-stdin`,\nthen `stigmer down` and `stigmer up`, so the runner takes the key).\n\nOtherwise the person enters the key themselves, where you never see it. Never\nask them for it, and never suggest typing it, or a command that asks for it,\ninto this chat: what is typed here lands in your transcript. Ask the command\nline where the key goes: `stigmer provider-key set anthropic < /dev/null`.\nWith nothing to read it asks for nothing and sends nothing, and says where:\n\n- **The console**: it names the page, as `Add it in the console: …/models` or\n as the console's Models & providers page, which is `<console>/models`. Give\n the person that address, and open it for them with the system's opener (`open`\n on a Mac, `xdg-open` on Linux, `start` on Windows) when you can. They paste\n the key there, and the console checks it with the provider as they save it.\n Wait for them to say it is saved, then run `stigmer provider-key list` and go\n on when it reads \"connected\".\n- **This computer**: it names `stigmer setup`. Ask the person to run\n `stigmer setup` in a terminal window of their own, outside this coding agent:\n it asks for the key at a hidden prompt. When they say it is done, run\n `stigmer down` and `stigmer up`, so the runner takes the key.\n- **The runners**: it says \"This server's runners use the keys whoever runs them gives them\".\n The server keeps no keys. Say so, and who runs them. When\n `stigmer provider-key list` reads \"not known\", the server cannot see its\n runners' keys: go on to step 4, whose run shows whether a runner has one.\n\nThe key is checked with the provider. A key it rejects: quote the words the\nperson saw, and send them back to the same place.\n\n## 4. Watch it work\n\nRun the agent once on its sample, saving what it makes:\n\n```bash\nstigmer run <slug> -m \"<the example's first message>\" --attach <each sample> --download stigmer-output/\n```\n\n`stigmer example get` printed the exact command for an example. For their own\nagent with no sample, write a small made-up one in the shape their app uses,\nand say it is made up. Add `stigmer-output/` to `.gitignore`.\n\nThen show the person what came back: name the file it saved by its path\n(`stigmer-output/variance-report.md`), offer to open it with the system's\nopener, read it, and say in one line what it shows.\n\n## 5. Make it yours\n\nOffer one change, and make it if they want it: sharper instructions in the\nmanifest, a run on one of their own files, or the ready-made Spreadsheet export\nskill. For the skill, run `stigmer example get spreadsheet-export`, then\n`stigmer push skill stigmer/skills/spreadsheet-export`, then add these lines to\nthe agent's manifest, under `spec:`:\n\n```yaml\n skill_refs:\n - kind: skill\n slug: spreadsheet-export\n```\n\nApply the manifest again and run again; its runs now also hand back a `.csv`.\n\n## 6. Put it in your app\n\n1. Find the app's stack: Next.js, a Node, Python, Go or Java backend. The chat\n is a React component.\n2. **On Stigmer Cloud or their own server**, the app's backend signs its users\n in to Stigmer with an admin service account's key:\n - `stigmer service-account list`. If an admin account for the app exists\n (`app-backend`), use it; never make a second without asking. Otherwise\n `stigmer service-account create app-backend --role admin`.\n - Pick the stack's env file (`.env.local` for Next.js, `.env` otherwise) and\n check it is git-ignored (`git check-ignore <file>`); add it to\n `.gitignore` if not. Then\n `stigmer apikey create --service-account app-backend --name <the app's name> --save-to-env <that file>`.\n The CLI writes `STIGMER_API_KEY` into the file and prints only where it\n went.\n - `stigmer embedding set --create-accounts-on-sign-in on --sign-in-role member`,\n so a user's Stigmer account is made the first time the app signs them in.\n3. `stigmer app-handover --stack <nextjs|node|python|go|java> --agent <slug> --write .`\n writes the token route and the chat component, and says what to install.\n4. Fit them into the app:\n - In the route, replace `currentUser` with the app's own session read (its\n auth library's way to get the signed-in user's id, email and name).\n - Put `<StigmerAgentChat />` on the page where their users would use the\n agent, and install what the handover said.\n - Start the app, open that page, and tell the person where to look.\n5. **On this computer** (`stigmer up`), the handover is the development chat\n alone, with no token: there is nobody to sign in. Say that going live means\n running the agent on Stigmer Cloud or a server that signs people in, and\n running this step again there.\n\n## 7. Bring others in\n\nThe last step is the person's, in the console: send them to\n`<console>/settings/bring-others-in` (`<console>` is from step 1). There\nthey name their organization (Stigmer Cloud named it from their email), then\ncopy an invite link for their team and send it in their own chat or email. The\nteam sees the same agent, its runs and the files it made. On this computer\n(`stigmer up`) nobody else can reach Stigmer, so say that bringing others in\nneeds Stigmer Cloud or a server that signs people in.\n\n## After setup\n\nThe same tools keep working: make agents with manifests and `stigmer apply`,\nrun them with `stigmer run`, and read runs with `stigmer list runs --agent <agent>` and\n`stigmer get session <id>`.\n\nOnce setup is done, and only then, offer once to keep Stigmer in their coding\nagent for next time: Stigmer's plugin carries this guide as a skill and\nStigmer's MCP server (`stigmer mcp-server`) for making, running and reading\nagents as typed tools. It is not needed for what was just done, and they can\nsay no. If this guide came from the plugin already, skip the offer. The line\nfor the tool you are in:\n\n- Claude Code: `claude plugin install stigmer --marketplace stigmer/coding-agent-plugin`\n- Codex: `codex plugin marketplace add stigmer/coding-agent-plugin`, then\n `codex plugin add stigmer@stigmer`\n- Cursor: `git clone https://github.com/stigmer/coding-agent-plugin ~/.cursor/plugins/local/stigmer`,\n then Reload Window\n\nWith it installed, next time they only say \"Set up Stigmer for this project\",\nor ask for what they want (\"add an agent that drafts replies to tickets\").\n";
3
+ export const PLUGIN_REPOSITORY = "stigmer/coding-agent-plugin";
package/package.json CHANGED
@@ -1,6 +1,31 @@
1
1
  {
2
2
  "name": "@stigmer/coding-agent-plugin",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
6
- }
3
+ "version": "0.3.0",
4
+ "description": "Stigmer's plugin for coding agents (Claude Code, Codex, Cursor): a skill that answers questions about Stigmer from its live docs, the guide that sets Stigmer up for a project, the bundled stigmer mcp-server and a guard that asks before what can't be undone, published at the CLI's own version so `stigmer coding-agent` prints the guide its CLI follows",
5
+ "license": "Apache-2.0",
6
+ "type": "module",
7
+ "sideEffects": false,
8
+ "repository": {
9
+ "type": "git",
10
+ "url": "git+https://github.com/stigmer/stigmer.git",
11
+ "directory": "coding-agents"
12
+ },
13
+ "engines": {
14
+ "node": ">=20"
15
+ },
16
+ "keywords": [
17
+ "stigmer",
18
+ "claude-code",
19
+ "codex",
20
+ "cursor",
21
+ "plugin",
22
+ "mcp"
23
+ ],
24
+ "exports": {
25
+ ".": {
26
+ "types": "./index.d.ts",
27
+ "import": "./index.js",
28
+ "default": "./index.js"
29
+ }
30
+ }
31
+ }
@@ -0,0 +1,12 @@
1
+ {
2
+ "name": "stigmer",
3
+ "interface": { "displayName": "Stigmer" },
4
+ "plugins": [
5
+ {
6
+ "name": "stigmer",
7
+ "source": { "source": "local", "path": "./" },
8
+ "policy": { "installation": "AVAILABLE", "authentication": "ON_INSTALL" },
9
+ "category": "Developer Tools"
10
+ }
11
+ ]
12
+ }
@@ -0,0 +1,15 @@
1
+ {
2
+ "name": "stigmer",
3
+ "description": "Stigmer's plugin for coding agents.",
4
+ "owner": {
5
+ "name": "Stigmer",
6
+ "url": "https://stigmer.ai"
7
+ },
8
+ "plugins": [
9
+ {
10
+ "name": "stigmer",
11
+ "source": "./",
12
+ "description": "Stigmer in your coding agent: answers any question about Stigmer from its live docs, citing the page; sets Stigmer up for your project; designs, runs and fixes agents and reads their results; puts them in your own product; and runs your own server and organization. It asks you before anything that can't be undone."
13
+ }
14
+ ]
15
+ }
@@ -0,0 +1,29 @@
1
+ {
2
+ "name": "stigmer",
3
+ "displayName": "Stigmer",
4
+ "version": "0.3.0",
5
+ "description": "Stigmer in your coding agent: answers any question about Stigmer from its live docs, citing the page; sets Stigmer up for your project; designs, runs and fixes agents and reads their results; puts them in your own product; and runs your own server and organization. It asks you before anything that can't be undone.",
6
+ "author": {
7
+ "name": "Stigmer",
8
+ "url": "https://stigmer.ai"
9
+ },
10
+ "homepage": "https://stigmer.ai/docs/guides/editors/connect-mcp",
11
+ "repository": "https://github.com/stigmer/coding-agent-plugin",
12
+ "license": "Apache-2.0",
13
+ "keywords": [
14
+ "stigmer",
15
+ "agents",
16
+ "ai-agents",
17
+ "mcp"
18
+ ],
19
+ "icon": "./assets/logo.png",
20
+ "documentationUrl": "https://stigmer.ai/docs/guides/editors/connect-mcp",
21
+ "supportUrl": "https://github.com/stigmer/stigmer/issues",
22
+ "privacyPolicyUrl": "https://stigmer.ai/privacy",
23
+ "network": {
24
+ "hosts": [
25
+ "stigmer.ai",
26
+ "*.stigmer.ai"
27
+ ]
28
+ }
29
+ }
@@ -0,0 +1,37 @@
1
+ {
2
+ "name": "stigmer",
3
+ "version": "0.3.0",
4
+ "description": "Stigmer in your coding agent: answers any question about Stigmer from its live docs, citing the page; sets Stigmer up for your project; designs, runs and fixes agents and reads their results; puts them in your own product; and runs your own server and organization. It asks you before anything that can't be undone.",
5
+ "author": {
6
+ "name": "Stigmer",
7
+ "url": "https://stigmer.ai"
8
+ },
9
+ "homepage": "https://stigmer.ai/docs/guides/editors/connect-mcp",
10
+ "repository": "https://github.com/stigmer/coding-agent-plugin",
11
+ "license": "Apache-2.0",
12
+ "keywords": [
13
+ "stigmer",
14
+ "agents",
15
+ "ai-agents",
16
+ "mcp"
17
+ ],
18
+ "skills": "./skills/",
19
+ "mcpServers": "./.mcp.json",
20
+ "hooks": "./hooks/codex-hooks.json",
21
+ "interface": {
22
+ "displayName": "Stigmer",
23
+ "shortDescription": "Answers any question about Stigmer from its docs, and builds, runs and ships your agents",
24
+ "longDescription": "Stigmer in your coding agent: answers any question about Stigmer from its live docs, citing the page; sets Stigmer up for your project; designs, runs and fixes agents and reads their results; puts them in your own product; and runs your own server and organization. It asks you before anything that can't be undone.",
25
+ "developerName": "Stigmer",
26
+ "category": "Developer Tools",
27
+ "websiteURL": "https://stigmer.ai",
28
+ "privacyPolicyURL": "https://stigmer.ai/privacy",
29
+ "logo": "./assets/logo.png",
30
+ "composerIcon": "./assets/logo.png",
31
+ "defaultPrompt": [
32
+ "Set up Stigmer for this project",
33
+ "Is Stigmer open source, and what does Stigmer Cloud add?",
34
+ "Why did my agent's last run fail?"
35
+ ]
36
+ }
37
+ }
@@ -0,0 +1,13 @@
1
+ {
2
+ "name": "stigmer",
3
+ "owner": {
4
+ "name": "Stigmer"
5
+ },
6
+ "plugins": [
7
+ {
8
+ "name": "stigmer",
9
+ "source": "./",
10
+ "description": "Stigmer in your coding agent: answers any question about Stigmer from its live docs, citing the page; sets Stigmer up for your project; designs, runs and fixes agents and reads their results; puts them in your own product; and runs your own server and organization. It asks you before anything that can't be undone."
11
+ }
12
+ ]
13
+ }
@@ -0,0 +1,22 @@
1
+ {
2
+ "name": "stigmer",
3
+ "displayName": "Stigmer",
4
+ "version": "0.3.0",
5
+ "description": "Stigmer in your coding agent: answers any question about Stigmer from its live docs, citing the page; sets Stigmer up for your project; designs, runs and fixes agents and reads their results; puts them in your own product; and runs your own server and organization. It asks you before anything that can't be undone.",
6
+ "author": {
7
+ "name": "Stigmer"
8
+ },
9
+ "homepage": "https://stigmer.ai/docs/guides/editors/connect-mcp",
10
+ "repository": "https://github.com/stigmer/coding-agent-plugin",
11
+ "license": "Apache-2.0",
12
+ "logo": "./assets/logo.png",
13
+ "keywords": [
14
+ "stigmer",
15
+ "agents",
16
+ "ai-agents",
17
+ "mcp"
18
+ ],
19
+ "skills": "./skills/",
20
+ "mcpServers": "./.mcp.json",
21
+ "hooks": "./hooks/cursor-hooks.json"
22
+ }
@@ -0,0 +1,8 @@
1
+ {
2
+ "mcpServers": {
3
+ "stigmer": {
4
+ "command": "stigmer",
5
+ "args": ["mcp-server"]
6
+ }
7
+ }
8
+ }