@stigmer/coding-agent-plugin 0.0.0-stage → 0.2.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,49 @@
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
+ and the guide a coding agent follows to set Stigmer up for a person's project.
5
+ It is the "Let your coding agent set it up" door
6
+ (`docs/getting-started/coding-agent.mdx`).
7
+
8
+ This is not `plugins/`, the catalogue Stigmer installs into its own agents. This
9
+ one is for the coding agent on a person's laptop.
10
+
11
+ ## What is in it
12
+
13
+ - `plugin/skills/stigmer/SKILL.md`: the guide. `stigmer coding-agent` prints it
14
+ without its frontmatter (`client-apps/cli/src/commands/coding-agent.ts`), so
15
+ a person who pastes the prompt gets the guide released with the CLI they
16
+ installed.
17
+ - `plugin/.mcp.json`: the bundled `stigmer mcp-server`, for making, running and
18
+ reading agents once setup is done.
19
+ - The manifests and marketplace files of each tool, one plugin named `stigmer`
20
+ at the folder's root: `.claude-plugin/` (Claude Code), `.cursor-plugin/`
21
+ (Cursor), `.codex-plugin/plugin.json` and `.agents/plugins/marketplace.json`
22
+ (Codex).
23
+
24
+ ## Build, publish, install
25
+
26
+ `npm run build` (`scripts/build.mjs`) copies `plugin/` to `dist/plugin/`,
27
+ stamps each manifest's `version` with the package's, writes `dist/index.js`
28
+ (`GUIDE`, `PLUGIN_REPOSITORY`), and fails if `npm pack` would leave a staged
29
+ file out. The release train publishes the package with the other libraries,
30
+ before the CLI that depends on it (`scripts/publish-libs.mjs`), which stamps
31
+ the release's version into the three manifests as into `package.json` and
32
+ refuses to publish one still at `0.0.0-dev`.
33
+
34
+ `reconcile-coding-agent-plugin.yaml` then makes the public repository
35
+ `stigmer/coding-agent-plugin` equal to the npm `latest` package's
36
+ `dist/plugin/`, the way `reconcile-homebrew.yaml` keeps the tap. People install
37
+ from that repository; the install lines are on the docs page.
38
+
39
+ ## Tests
40
+
41
+ `npm run test -w @stigmer/coding-agent-plugin` builds the package and reads it
42
+ with Stigmer's own plugin reader (`@stigmer/plugin-package`), which knows all
43
+ three dialects: every manifest names the one plugin at the package's version,
44
+ the skill and the MCP server read with no warning, and each marketplace file
45
+ offers the plugin at the root. The CLI's suite holds the guide to the CLI
46
+ (`client-apps/cli/src/commands/__tests__/coding-agent.test.ts`): every
47
+ `stigmer …` line it names is a command this CLI has, with flags it declares.
48
+ Run both after a change here. The door end to end, in a real coding agent, is
49
+ `make door-coding-agent` (`test/install/coding-agent-door.mjs`), by hand.
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/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: an address on `stigmer.ai`\n(`https://api.stigmer.ai`) is Stigmer Cloud; any other is their own server, or\nthis computer when it is `localhost:7234`. Otherwise ask: Stigmer Cloud, their\nown Stigmer server (its address), or this computer.\n\n- **Stigmer Cloud**: `stigmer config backend set cloud`.\n- **Their own server**: `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 saves in its outputs folder>\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\nOtherwise, by where it runs. In every case the key goes from the person's\nenvironment or their own keyboard straight to the CLI, never through you:\n\n- **Stigmer Cloud**: if `ANTHROPIC_API_KEY` is set in your environment, run\n `printenv ANTHROPIC_API_KEY | stigmer provider-key set anthropic --key-stdin`.\n If not, ask the person to run `stigmer provider-key set anthropic` themselves\n (in Claude Code they can type `! stigmer provider-key set anthropic`;\n elsewhere, in their own terminal). It asks for the key at a hidden prompt.\n- **This computer**: the same two ways, with\n `printenv ANTHROPIC_API_KEY | stigmer setup --api-key-stdin` or the person\n running `stigmer setup` themselves. Then `stigmer down` and `stigmer up`, so\n the runner takes the key.\n- **Their own server**: it keeps no keys; its runners use the keys whoever\n runs them gives them. 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 CLI checks the key with the provider. A key it rejects: quote the CLI's\nwords, and offer the same two ways again.\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`. Then open the\nfile it saved 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 (`stigmer example get spreadsheet-export`, then\n`stigmer push skill stigmer/skills/spreadsheet-export`, then add it to the\nagent's `skill_refs`). Apply the manifest again and run again.\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`, the console address 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 runs list` 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.2.0",
4
+ "description": "Stigmer's plugin for coding agents (Claude Code, Codex, Cursor): the guide that sets Stigmer up for a project and the bundled stigmer mcp-server, 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
+ }
Binary file
@@ -0,0 +1,12 @@
1
+ {
2
+ "name": "stigmer",
3
+ "description": "Stigmer's plugin for coding agents.",
4
+ "owner": { "name": "Stigmer", "url": "https://stigmer.ai" },
5
+ "plugins": [
6
+ {
7
+ "name": "stigmer",
8
+ "source": "./",
9
+ "description": "Stigmer for your coding agent: set Stigmer up for your project, from signing in to your agent's chat in your own app, then make, run and read agents."
10
+ }
11
+ ]
12
+ }
@@ -0,0 +1,18 @@
1
+ {
2
+ "name": "stigmer",
3
+ "version": "0.2.0",
4
+ "description": "Stigmer for your coding agent: set Stigmer up for your project, from signing in to your agent's chat in your own app, then make, run and read agents.",
5
+ "author": {
6
+ "name": "Stigmer",
7
+ "url": "https://stigmer.ai"
8
+ },
9
+ "homepage": "https://stigmer.ai/docs/getting-started/coding-agent",
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
+ }
@@ -0,0 +1,30 @@
1
+ {
2
+ "name": "stigmer",
3
+ "version": "0.2.0",
4
+ "description": "Stigmer for your coding agent: set Stigmer up for your project, from signing in to your agent's chat in your own app, then make, run and read agents.",
5
+ "author": {
6
+ "name": "Stigmer",
7
+ "url": "https://stigmer.ai"
8
+ },
9
+ "homepage": "https://stigmer.ai/docs/getting-started/coding-agent",
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
+ "interface": {
21
+ "displayName": "Stigmer",
22
+ "shortDescription": "Set up Stigmer: an agent for your app's users, its chat in your app",
23
+ "developerName": "Stigmer",
24
+ "category": "Developer Tools",
25
+ "websiteURL": "https://stigmer.ai",
26
+ "defaultPrompt": [
27
+ "Set up Stigmer for this project"
28
+ ]
29
+ }
30
+ }
@@ -0,0 +1,11 @@
1
+ {
2
+ "name": "stigmer",
3
+ "owner": { "name": "Stigmer" },
4
+ "plugins": [
5
+ {
6
+ "name": "stigmer",
7
+ "source": "./",
8
+ "description": "Stigmer for your coding agent: set Stigmer up for your project, from signing in to your agent's chat in your own app, then make, run and read agents."
9
+ }
10
+ ]
11
+ }
@@ -0,0 +1,19 @@
1
+ {
2
+ "name": "stigmer",
3
+ "version": "0.2.0",
4
+ "description": "Stigmer for your coding agent: set Stigmer up for your project, from signing in to your agent's chat in your own app, then make, run and read agents.",
5
+ "author": {
6
+ "name": "Stigmer"
7
+ },
8
+ "homepage": "https://stigmer.ai/docs/getting-started/coding-agent",
9
+ "repository": "https://github.com/stigmer/coding-agent-plugin",
10
+ "license": "Apache-2.0",
11
+ "keywords": [
12
+ "stigmer",
13
+ "agents",
14
+ "ai-agents",
15
+ "mcp"
16
+ ],
17
+ "skills": "./skills/",
18
+ "mcpServers": "./.mcp.json"
19
+ }
@@ -0,0 +1,8 @@
1
+ {
2
+ "mcpServers": {
3
+ "stigmer": {
4
+ "command": "stigmer",
5
+ "args": ["mcp-server"]
6
+ }
7
+ }
8
+ }
@@ -0,0 +1,26 @@
1
+ # Stigmer for coding agents
2
+
3
+ This repository is published from [stigmer/stigmer](https://github.com/stigmer/stigmer)'s
4
+ `coding-agents/` folder at each release; change it there.
5
+
6
+ It is one plugin for Claude Code, Codex and Cursor: a skill that sets Stigmer up
7
+ for the project your coding agent is in (signing in, an agent for your app's
8
+ users, a first run, and the agent's chat in your own app), and Stigmer's MCP
9
+ server (`stigmer mcp-server`) for making, running and reading agents afterwards.
10
+ It needs the Stigmer command line: `npm install -g @stigmer/cli`.
11
+
12
+ You don't need the plugin to start. Paste this into your coding agent:
13
+
14
+ > Set up Stigmer for this project. Install its command line
15
+ > (`npm install -g @stigmer/cli`, or `brew install stigmer/tap/stigmer`), run
16
+ > `stigmer coding-agent`, and follow what it prints.
17
+
18
+ ## Install
19
+
20
+ - **Claude Code**: `claude plugin install stigmer --marketplace stigmer/coding-agent-plugin`
21
+ - **Codex**: `codex plugin marketplace add stigmer/coding-agent-plugin`, then
22
+ `codex plugin add stigmer@stigmer`
23
+ - **Cursor**: `git clone https://github.com/stigmer/coding-agent-plugin ~/.cursor/plugins/local/stigmer`,
24
+ then Reload Window
25
+
26
+ Guide: https://stigmer.ai/docs/getting-started/coding-agent
@@ -0,0 +1,205 @@
1
+ ---
2
+ name: stigmer
3
+ description: Sets up Stigmer for the project in front of you and keeps working with it. Stigmer runs AI agents for the users of the person's own app. Use when the person asks to set up Stigmer, to add an AI agent for their app's users, to put an agent's chat in their app, or to make, run, change or read Stigmer agents.
4
+ ---
5
+
6
+ # Set up Stigmer for this project
7
+
8
+ Stigmer runs AI agents for the people who use this app: an agent takes a file a
9
+ user hands it (a ledger, a ticket export, a contract) and hands back the work.
10
+ You will take the person from nothing to their agent's chat inside their own
11
+ app, in this order. Each step ends with something they can see; tell them what
12
+ it is in one line.
13
+
14
+ 0. Find the command line
15
+ 1. Where it runs, and signing in
16
+ 2. What should your agent do for your users?
17
+ 3. The model key
18
+ 4. Watch it work
19
+ 5. Make it yours
20
+ 6. Put it in your app
21
+ 7. Bring others in
22
+
23
+ ## Rules for every step
24
+
25
+ - Use the person's own words for their product; call the people who use it
26
+ "users".
27
+ - Ask before writing anything outside `stigmer/`, `stigmer-output/`,
28
+ `.gitignore`, the stack's env file and the two files step 6 hands over.
29
+ - Never print, echo or ask for a key, and never put one on a command line. A
30
+ key travels only through stdin or a file the CLI writes itself.
31
+ - Never make a second service account or overwrite an existing agent without
32
+ asking.
33
+ - When a command fails, stop and say what failed in plain words, with the one
34
+ next thing to do. The CLI's own message usually says it; quote it. When the
35
+ server named a place to ask for help (a `Stuck? …` line), pass that line on
36
+ too, so the person knows where to ask.
37
+ - Commands that wait on the person (`stigmer auth login`) can take minutes. Run
38
+ them in the background where your tool allows it, or with the longest timeout
39
+ it allows, and tell the person what will open.
40
+
41
+ ## 0. Find the command line
42
+
43
+ Run `stigmer version`. If it is missing, ask the person, then install it with
44
+ `npm install -g @stigmer/cli` (or `brew install stigmer/tap/stigmer` on a Mac
45
+ with Homebrew).
46
+
47
+ ## 1. Where it runs, and signing in
48
+
49
+ If the prompt named a Stigmer address, use it: an address on `stigmer.ai`
50
+ (`https://api.stigmer.ai`) is Stigmer Cloud; any other is their own server, or
51
+ this computer when it is `localhost:7234`. Otherwise ask: Stigmer Cloud, their
52
+ own Stigmer server (its address), or this computer.
53
+
54
+ - **Stigmer Cloud**: `stigmer config backend set cloud`.
55
+ - **Their own server**: `stigmer config backend add <name> --endpoint <host:port>`
56
+ (port 443 for https), then `stigmer config backend use <name>`.
57
+ - **This computer**: `stigmer up` (it starts Stigmer locally, with a console at
58
+ http://localhost:7234). Nothing to sign in to: skip to choosing the
59
+ organization below.
60
+
61
+ Then sign in: `stigmer auth login`. It prints an address and opens the browser;
62
+ the person signs in there. Where no browser can open (an SSH session, a remote
63
+ sandbox), run `stigmer auth login --device` and tell the person to open the
64
+ address it prints and enter the code. `stigmer auth whoami` says who they are
65
+ and which organization the CLI uses, and ends with a `Stuck? …` line when the
66
+ server names a place to ask for help: keep it for when something fails. If it says none is set and they belong to
67
+ several, ask which and run `stigmer config context set --org <slug>`.
68
+
69
+ ## 2. What should your agent do for your users?
70
+
71
+ Read this repository first: the README, the routes and pages, the data models,
72
+ the nouns the code uses. Then run `stigmer example list` and suggest the
73
+ example that fits the app, saying why in one line ("Invoice match: your app
74
+ stores purchase orders and invoices"). If none fits, propose an agent of their
75
+ own from what the app does: a short name for its job (`ticket-triage`, not
76
+ `my-agent`), and instructions that say what file it takes and what it saves.
77
+
78
+ The person chooses. Then:
79
+
80
+ - **An example**: `stigmer example get <id>` writes its manifest and sample
81
+ files into `stigmer/<id>/`.
82
+ - **Their own**: write the manifest into `stigmer/<slug>.yaml`, in this shape,
83
+ and show it to them:
84
+
85
+ ```yaml
86
+ apiVersion: agentic.stigmer.ai/v1
87
+ kind: Agent
88
+ metadata:
89
+ name: <slug>
90
+ spec:
91
+ description: <one line>
92
+ instructions: |
93
+ <what it reads, what it does, and the file it saves in its outputs folder>
94
+ ```
95
+
96
+ Make it with `stigmer apply -f <the manifest>`. Their agent is now a file in
97
+ their repository they can review and commit. If an agent with that slug already
98
+ exists, ask before applying over it.
99
+
100
+ ## 3. The model key
101
+
102
+ Run `stigmer provider-key list`. If a provider is ready, this step is done.
103
+
104
+ Otherwise, by where it runs. In every case the key goes from the person's
105
+ environment or their own keyboard straight to the CLI, never through you:
106
+
107
+ - **Stigmer Cloud**: if `ANTHROPIC_API_KEY` is set in your environment, run
108
+ `printenv ANTHROPIC_API_KEY | stigmer provider-key set anthropic --key-stdin`.
109
+ If not, ask the person to run `stigmer provider-key set anthropic` themselves
110
+ (in Claude Code they can type `! stigmer provider-key set anthropic`;
111
+ elsewhere, in their own terminal). It asks for the key at a hidden prompt.
112
+ - **This computer**: the same two ways, with
113
+ `printenv ANTHROPIC_API_KEY | stigmer setup --api-key-stdin` or the person
114
+ running `stigmer setup` themselves. Then `stigmer down` and `stigmer up`, so
115
+ the runner takes the key.
116
+ - **Their own server**: it keeps no keys; its runners use the keys whoever
117
+ runs them gives them. Say so, and who runs them. When
118
+ `stigmer provider-key list` reads "not known", the server cannot see its
119
+ runners' keys: go on to step 4, whose run shows whether a runner has one.
120
+
121
+ The CLI checks the key with the provider. A key it rejects: quote the CLI's
122
+ words, and offer the same two ways again.
123
+
124
+ ## 4. Watch it work
125
+
126
+ Run the agent once on its sample, saving what it makes:
127
+
128
+ ```bash
129
+ stigmer run <slug> -m "<the example's first message>" --attach <each sample> --download stigmer-output/
130
+ ```
131
+
132
+ `stigmer example get` printed the exact command for an example. For their own
133
+ agent with no sample, write a small made-up one in the shape their app uses,
134
+ and say it is made up. Add `stigmer-output/` to `.gitignore`. Then open the
135
+ file it saved and say in one line what it shows.
136
+
137
+ ## 5. Make it yours
138
+
139
+ Offer one change, and make it if they want it: sharper instructions in the
140
+ manifest, a run on one of their own files, or the ready-made Spreadsheet export
141
+ skill (`stigmer example get spreadsheet-export`, then
142
+ `stigmer push skill stigmer/skills/spreadsheet-export`, then add it to the
143
+ agent's `skill_refs`). Apply the manifest again and run again.
144
+
145
+ ## 6. Put it in your app
146
+
147
+ 1. Find the app's stack: Next.js, a Node, Python, Go or Java backend. The chat
148
+ is a React component.
149
+ 2. **On Stigmer Cloud or their own server**, the app's backend signs its users
150
+ in to Stigmer with an admin service account's key:
151
+ - `stigmer service-account list`. If an admin account for the app exists
152
+ (`app-backend`), use it; never make a second without asking. Otherwise
153
+ `stigmer service-account create app-backend --role admin`.
154
+ - Pick the stack's env file (`.env.local` for Next.js, `.env` otherwise) and
155
+ check it is git-ignored (`git check-ignore <file>`); add it to
156
+ `.gitignore` if not. Then
157
+ `stigmer apikey create --service-account app-backend --name <the app's name> --save-to-env <that file>`.
158
+ The CLI writes `STIGMER_API_KEY` into the file and prints only where it
159
+ went.
160
+ - `stigmer embedding set --create-accounts-on-sign-in on --sign-in-role member`,
161
+ so a user's Stigmer account is made the first time the app signs them in.
162
+ 3. `stigmer app-handover --stack <nextjs|node|python|go|java> --agent <slug> --write .`
163
+ writes the token route and the chat component, and says what to install.
164
+ 4. Fit them into the app:
165
+ - In the route, replace `currentUser` with the app's own session read (its
166
+ auth library's way to get the signed-in user's id, email and name).
167
+ - Put `<StigmerAgentChat />` on the page where their users would use the
168
+ agent, and install what the handover said.
169
+ - Start the app, open that page, and tell the person where to look.
170
+ 5. **On this computer** (`stigmer up`), the handover is the development chat
171
+ alone, with no token: there is nobody to sign in. Say that going live means
172
+ running the agent on Stigmer Cloud or a server that signs people in, and
173
+ running this step again there.
174
+
175
+ ## 7. Bring others in
176
+
177
+ The last step is the person's, in the console: send them to
178
+ `<console>/settings/bring-others-in`, the console address from step 1. There
179
+ they name their organization (Stigmer Cloud named it from their email), then
180
+ copy an invite link for their team and send it in their own chat or email. The
181
+ team sees the same agent, its runs and the files it made. On this computer
182
+ (`stigmer up`) nobody else can reach Stigmer, so say that bringing others in
183
+ needs Stigmer Cloud or a server that signs people in.
184
+
185
+ ## After setup
186
+
187
+ The same tools keep working: make agents with manifests and `stigmer apply`,
188
+ run them with `stigmer run`, and read runs with `stigmer runs list` and
189
+ `stigmer get session <id>`.
190
+
191
+ Once setup is done, and only then, offer once to keep Stigmer in their coding
192
+ agent for next time: Stigmer's plugin carries this guide as a skill and
193
+ Stigmer's MCP server (`stigmer mcp-server`) for making, running and reading
194
+ agents as typed tools. It is not needed for what was just done, and they can
195
+ say no. If this guide came from the plugin already, skip the offer. The line
196
+ for the tool you are in:
197
+
198
+ - Claude Code: `claude plugin install stigmer --marketplace stigmer/coding-agent-plugin`
199
+ - Codex: `codex plugin marketplace add stigmer/coding-agent-plugin`, then
200
+ `codex plugin add stigmer@stigmer`
201
+ - Cursor: `git clone https://github.com/stigmer/coding-agent-plugin ~/.cursor/plugins/local/stigmer`,
202
+ then Reload Window
203
+
204
+ With it installed, next time they only say "Set up Stigmer for this project",
205
+ or ask for what they want ("add an agent that drafts replies to tickets").