@aimlsuperagent/agent 0.1.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/AGENTS.md +86 -0
- package/CONTRIBUTING.md +31 -0
- package/DEPLOYMENT_LOG.md +39 -0
- package/LICENSE +21 -0
- package/README.md +253 -0
- package/REPO_SOURCE_OF_TRUTH.json +77 -0
- package/SAFE_ENV_AUDIT.md +12 -0
- package/SECURITY.md +32 -0
- package/WORKING_NOTES.md +27 -0
- package/adapters/claude/CLAUDE.md +27 -0
- package/adapters/codex/AGENTS.md +24 -0
- package/adapters/cursor/rules.md +12 -0
- package/bin/aiml-superagent.js +477 -0
- package/docs/01-operating-model.md +95 -0
- package/docs/02-context-minimizer.md +113 -0
- package/docs/03-project-memory.md +83 -0
- package/docs/04-verification-loop.md +82 -0
- package/docs/05-secret-safe-operations.md +63 -0
- package/docs/06-deployment-discipline.md +50 -0
- package/docs/07-note-hygiene.md +51 -0
- package/docs/08-model-agnostic-use.md +53 -0
- package/docs/09-agent-evaluation.md +95 -0
- package/docs/10-adoption-playbook.md +62 -0
- package/docs/11-anti-patterns.md +85 -0
- package/docs/12-context-budget.md +52 -0
- package/docs/comparison-claude-md.md +56 -0
- package/docs/npm-private-publishing.md +89 -0
- package/docs/release-checklist.md +42 -0
- package/examples/nextjs-vercel-app/AGENTS.md +26 -0
- package/examples/nextjs-vercel-app/DEPLOYMENT_LOG.md +13 -0
- package/examples/nextjs-vercel-app/README.md +12 -0
- package/examples/nextjs-vercel-app/REPO_SOURCE_OF_TRUTH.json +65 -0
- package/examples/nextjs-vercel-app/SAFE_ENV_AUDIT.md +9 -0
- package/examples/nextjs-vercel-app/WORKING_NOTES.md +16 -0
- package/package.json +57 -0
- package/schemas/repo-source-of-truth.schema.json +122 -0
- package/templates/AGENTS.template.md +42 -0
- package/templates/DEPLOYMENT_LOG.template.md +11 -0
- package/templates/INCIDENT_REPORT.template.md +26 -0
- package/templates/PRODUCTION_CHECK.template.md +24 -0
- package/templates/REPO_SOURCE_OF_TRUTH.template.json +57 -0
- package/templates/SAFE_ENV_AUDIT.template.md +8 -0
- package/templates/TASK_BRIEF.template.md +22 -0
- package/templates/WORKING_NOTES.template.md +18 -0
package/AGENTS.md
ADDED
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
# AiML SuperAgent Operating Contract
|
|
2
|
+
|
|
3
|
+
This file is the behavior and operation contract for AI coding assistants working in this repository.
|
|
4
|
+
|
|
5
|
+
## Mission
|
|
6
|
+
|
|
7
|
+
Build a public-ready, model-agnostic framework that teaches AI coding assistants how to operate real software projects over time.
|
|
8
|
+
|
|
9
|
+
The framework must be:
|
|
10
|
+
|
|
11
|
+
- practical enough to use immediately
|
|
12
|
+
- rigorous enough for production projects
|
|
13
|
+
- small enough to avoid context bloat
|
|
14
|
+
- clear enough for developers to trust
|
|
15
|
+
|
|
16
|
+
## Working Rules
|
|
17
|
+
|
|
18
|
+
1. Read `REPO_SOURCE_OF_TRUTH.json` before making structural claims about this repo.
|
|
19
|
+
2. Read `WORKING_NOTES.md` only when present and directly relevant.
|
|
20
|
+
3. Prefer targeted search over loading broad folders.
|
|
21
|
+
4. Do not add secrets, tokens, private URLs, account IDs, or credential values to examples.
|
|
22
|
+
5. Keep examples generic unless explicitly marked as fictional.
|
|
23
|
+
6. Make small diffs with a clear reason.
|
|
24
|
+
7. Run the fastest meaningful verification after changes.
|
|
25
|
+
8. Update durable notes only when a fact will help future work.
|
|
26
|
+
|
|
27
|
+
## Context Minimizer Rules
|
|
28
|
+
|
|
29
|
+
Load only what the current task needs.
|
|
30
|
+
|
|
31
|
+
Do not load these by default:
|
|
32
|
+
|
|
33
|
+
- `.git`
|
|
34
|
+
- `node_modules`
|
|
35
|
+
- `dist`
|
|
36
|
+
- `build`
|
|
37
|
+
- `.next`
|
|
38
|
+
- `coverage`
|
|
39
|
+
- generated files
|
|
40
|
+
- old logs
|
|
41
|
+
- archived incidents
|
|
42
|
+
|
|
43
|
+
Search before reading:
|
|
44
|
+
|
|
45
|
+
```bash
|
|
46
|
+
rg --files
|
|
47
|
+
rg -n "keyword"
|
|
48
|
+
```
|
|
49
|
+
|
|
50
|
+
## Secret Safety
|
|
51
|
+
|
|
52
|
+
Allowed in docs:
|
|
53
|
+
|
|
54
|
+
- environment variable names
|
|
55
|
+
- credential roles
|
|
56
|
+
- setup locations
|
|
57
|
+
- placeholder values such as `YOUR_API_KEY`
|
|
58
|
+
|
|
59
|
+
Never store:
|
|
60
|
+
|
|
61
|
+
- actual API keys
|
|
62
|
+
- access tokens
|
|
63
|
+
- refresh tokens
|
|
64
|
+
- passwords
|
|
65
|
+
- private keys
|
|
66
|
+
- customer PII
|
|
67
|
+
- private database URLs
|
|
68
|
+
|
|
69
|
+
## Verification Standard
|
|
70
|
+
|
|
71
|
+
For documentation changes:
|
|
72
|
+
|
|
73
|
+
- run the checker
|
|
74
|
+
- inspect generated examples when changed
|
|
75
|
+
|
|
76
|
+
For script changes:
|
|
77
|
+
|
|
78
|
+
- run the script on this repo
|
|
79
|
+
- run at least one negative or edge case when practical
|
|
80
|
+
|
|
81
|
+
For release changes:
|
|
82
|
+
|
|
83
|
+
- confirm repo status
|
|
84
|
+
- confirm private/public state before publication
|
|
85
|
+
- confirm no secrets are present
|
|
86
|
+
|
package/CONTRIBUTING.md
ADDED
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
# Contributing
|
|
2
|
+
|
|
3
|
+
AiML SuperAgent contributions should improve long-term project operation.
|
|
4
|
+
|
|
5
|
+
## Good Contributions
|
|
6
|
+
|
|
7
|
+
- clearer memory templates
|
|
8
|
+
- better context minimizer checks
|
|
9
|
+
- safer secret detection
|
|
10
|
+
- model adapter examples
|
|
11
|
+
- production verification patterns
|
|
12
|
+
- concise docs that reduce future ambiguity
|
|
13
|
+
|
|
14
|
+
## Avoid
|
|
15
|
+
|
|
16
|
+
- vendor lock-in
|
|
17
|
+
- giant prompts
|
|
18
|
+
- speculative abstractions
|
|
19
|
+
- secrets in examples
|
|
20
|
+
- customer-specific workflows without sanitization
|
|
21
|
+
|
|
22
|
+
## Development
|
|
23
|
+
|
|
24
|
+
Run:
|
|
25
|
+
|
|
26
|
+
```bash
|
|
27
|
+
npm run check
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
The repo should stay useful without installing dependencies.
|
|
31
|
+
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
# Deployment Log
|
|
2
|
+
|
|
3
|
+
This repository is currently a private release candidate and has not been publicly deployed as a package.
|
|
4
|
+
|
|
5
|
+
## 2026-05-31 - Private Repository Buildout
|
|
6
|
+
|
|
7
|
+
Platform: local repository
|
|
8
|
+
Commit or build: pending
|
|
9
|
+
Change: Created AiML SuperAgent framework docs, templates, examples, schema, and checker.
|
|
10
|
+
Verification: `npm run check`
|
|
11
|
+
Rollback: revert this repository buildout before public release.
|
|
12
|
+
Risks: license choice is intentionally unresolved before publication.
|
|
13
|
+
|
|
14
|
+
## 2026-05-31 - Hardening Pass
|
|
15
|
+
|
|
16
|
+
Platform: local repository
|
|
17
|
+
Commit or build: pending
|
|
18
|
+
Change: Added stricter checker validation, public-repo templates, evaluation docs, anti-pattern docs, adoption playbook, and context-budget guidance.
|
|
19
|
+
Verification: `npm run check`; example check; smoke init check; release check.
|
|
20
|
+
Rollback: revert hardening pass before public release.
|
|
21
|
+
Risks: release mode intentionally requires a license decision before public launch.
|
|
22
|
+
|
|
23
|
+
## 2026-05-31 - License Selection
|
|
24
|
+
|
|
25
|
+
Platform: local repository
|
|
26
|
+
Commit or build: pending
|
|
27
|
+
Change: Added MIT License and updated package metadata.
|
|
28
|
+
Verification: `node bin/aiml-superagent.js check . --release --strict`
|
|
29
|
+
Rollback: change `LICENSE` and `package.json` before public release if a different license is selected.
|
|
30
|
+
Risks: repository remains private; MIT terms matter when shared or made public.
|
|
31
|
+
|
|
32
|
+
## 2026-05-31 - Private npm Package Preparation
|
|
33
|
+
|
|
34
|
+
Platform: npm package metadata
|
|
35
|
+
Commit or build: pending
|
|
36
|
+
Change: Prepared package metadata for `@aimlsuperagent/agent` with restricted publish config, file allowlist, dry-run script, and private publishing documentation.
|
|
37
|
+
Verification: `npm run check:release`; `npm run pack:dry-run`.
|
|
38
|
+
Rollback: revert package metadata to local-only package before publishing.
|
|
39
|
+
Risks: publishing remains intentionally blocked by `private:true` until npm scope ownership and private package support are confirmed.
|
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Marvin Freedman
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,253 @@
|
|
|
1
|
+
# AiML SuperAgent
|
|
2
|
+
|
|
3
|
+
A token-efficient operating framework for AI coding assistants.
|
|
4
|
+
|
|
5
|
+
AiML SuperAgent turns an AI coding assistant into a long-term project operator. It keeps scoped memory, verifies production reality before changing code, protects secrets, tracks deployments, minimizes wasted context, and produces small safe diffs.
|
|
6
|
+
|
|
7
|
+
This is not another prompt collection. It is a repeatable operating layer for real repositories.
|
|
8
|
+
|
|
9
|
+
## Why AiML SuperAgent?
|
|
10
|
+
|
|
11
|
+
Most AI coding assistants fail on long-running projects for two reasons:
|
|
12
|
+
|
|
13
|
+
1. They forget durable production facts.
|
|
14
|
+
2. They overload themselves with stale or irrelevant context.
|
|
15
|
+
|
|
16
|
+
A behavior file such as `CLAUDE.md` can teach an assistant how to behave in one session: think first, keep changes small, avoid assumptions, and verify results. That is useful and should be kept.
|
|
17
|
+
|
|
18
|
+
AiML SuperAgent adds the missing operating layer:
|
|
19
|
+
|
|
20
|
+
- scoped project memory
|
|
21
|
+
- source-of-truth files
|
|
22
|
+
- production-first verification
|
|
23
|
+
- secret-safe notes
|
|
24
|
+
- deployment logs
|
|
25
|
+
- incident memory
|
|
26
|
+
- context minimization
|
|
27
|
+
- task-traceable diffs
|
|
28
|
+
- model-agnostic workflows
|
|
29
|
+
|
|
30
|
+
Use `CLAUDE.md` for behavior. Use AiML SuperAgent for project operation.
|
|
31
|
+
|
|
32
|
+
## The Core Idea
|
|
33
|
+
|
|
34
|
+
The goal is not bigger notes.
|
|
35
|
+
|
|
36
|
+
The goal is smaller active context.
|
|
37
|
+
|
|
38
|
+
AiML SuperAgent separates durable memory from temporary work. The assistant starts with high-signal files, then searches only the parts of the repo relevant to the current task.
|
|
39
|
+
|
|
40
|
+
Default read order:
|
|
41
|
+
|
|
42
|
+
1. `AGENTS.md`
|
|
43
|
+
2. `REPO_SOURCE_OF_TRUTH.json`
|
|
44
|
+
3. `WORKING_NOTES.md`
|
|
45
|
+
4. the current task prompt
|
|
46
|
+
5. targeted source files found by search
|
|
47
|
+
|
|
48
|
+
Default skip list:
|
|
49
|
+
|
|
50
|
+
- `node_modules`
|
|
51
|
+
- build output
|
|
52
|
+
- `.next`
|
|
53
|
+
- `dist`
|
|
54
|
+
- `coverage`
|
|
55
|
+
- derived data
|
|
56
|
+
- generated artifacts
|
|
57
|
+
- large logs
|
|
58
|
+
- resolved incidents
|
|
59
|
+
- old screenshots
|
|
60
|
+
- unrelated archives
|
|
61
|
+
|
|
62
|
+
That is the Context Minimizer.
|
|
63
|
+
|
|
64
|
+
## What This Repo Provides
|
|
65
|
+
|
|
66
|
+
```text
|
|
67
|
+
aiml-superagent/
|
|
68
|
+
README.md
|
|
69
|
+
AGENTS.md
|
|
70
|
+
bin/
|
|
71
|
+
aiml-superagent.js
|
|
72
|
+
docs/
|
|
73
|
+
01-operating-model.md
|
|
74
|
+
02-context-minimizer.md
|
|
75
|
+
03-project-memory.md
|
|
76
|
+
04-verification-loop.md
|
|
77
|
+
05-secret-safe-operations.md
|
|
78
|
+
06-deployment-discipline.md
|
|
79
|
+
07-note-hygiene.md
|
|
80
|
+
08-model-agnostic-use.md
|
|
81
|
+
09-agent-evaluation.md
|
|
82
|
+
10-adoption-playbook.md
|
|
83
|
+
11-anti-patterns.md
|
|
84
|
+
12-context-budget.md
|
|
85
|
+
comparison-claude-md.md
|
|
86
|
+
release-checklist.md
|
|
87
|
+
schemas/
|
|
88
|
+
repo-source-of-truth.schema.json
|
|
89
|
+
templates/
|
|
90
|
+
AGENTS.template.md
|
|
91
|
+
REPO_SOURCE_OF_TRUTH.template.json
|
|
92
|
+
WORKING_NOTES.template.md
|
|
93
|
+
DEPLOYMENT_LOG.template.md
|
|
94
|
+
INCIDENT_REPORT.template.md
|
|
95
|
+
SAFE_ENV_AUDIT.template.md
|
|
96
|
+
PRODUCTION_CHECK.template.md
|
|
97
|
+
TASK_BRIEF.template.md
|
|
98
|
+
examples/
|
|
99
|
+
nextjs-vercel-app/
|
|
100
|
+
README.md
|
|
101
|
+
AGENTS.md
|
|
102
|
+
REPO_SOURCE_OF_TRUTH.json
|
|
103
|
+
WORKING_NOTES.md
|
|
104
|
+
```
|
|
105
|
+
|
|
106
|
+
## Quick Start
|
|
107
|
+
|
|
108
|
+
From this repository:
|
|
109
|
+
|
|
110
|
+
```bash
|
|
111
|
+
npm run check
|
|
112
|
+
```
|
|
113
|
+
|
|
114
|
+
Copy the templates into a project:
|
|
115
|
+
|
|
116
|
+
```bash
|
|
117
|
+
node bin/aiml-superagent.js init ../your-project
|
|
118
|
+
```
|
|
119
|
+
|
|
120
|
+
Check a project for SuperAgent readiness:
|
|
121
|
+
|
|
122
|
+
```bash
|
|
123
|
+
node bin/aiml-superagent.js check ../your-project
|
|
124
|
+
```
|
|
125
|
+
|
|
126
|
+
Freshly initialized projects are expected to show `needs-review` until template placeholders for project name, dates, and proof commands are replaced.
|
|
127
|
+
|
|
128
|
+
Private npm package preparation:
|
|
129
|
+
|
|
130
|
+
```bash
|
|
131
|
+
npm run pack:dry-run
|
|
132
|
+
```
|
|
133
|
+
|
|
134
|
+
Before making a repo public:
|
|
135
|
+
|
|
136
|
+
```bash
|
|
137
|
+
node bin/aiml-superagent.js check . --release
|
|
138
|
+
```
|
|
139
|
+
|
|
140
|
+
For CI where medium-risk findings should fail the build:
|
|
141
|
+
|
|
142
|
+
```bash
|
|
143
|
+
node bin/aiml-superagent.js check . --strict
|
|
144
|
+
```
|
|
145
|
+
|
|
146
|
+
## The Operating Loop
|
|
147
|
+
|
|
148
|
+
Every task follows the same loop:
|
|
149
|
+
|
|
150
|
+
```text
|
|
151
|
+
1. Orient
|
|
152
|
+
Read only the source-of-truth files and the active task.
|
|
153
|
+
|
|
154
|
+
2. Verify
|
|
155
|
+
Check production reality before changing code when the answer depends on live state.
|
|
156
|
+
|
|
157
|
+
3. Narrow
|
|
158
|
+
Search for the smallest source area that can solve the task.
|
|
159
|
+
|
|
160
|
+
4. Patch
|
|
161
|
+
Make the smallest safe diff.
|
|
162
|
+
|
|
163
|
+
5. Prove
|
|
164
|
+
Run the fastest meaningful test or runtime check.
|
|
165
|
+
|
|
166
|
+
6. Record
|
|
167
|
+
Update durable notes only if reality changed.
|
|
168
|
+
```
|
|
169
|
+
|
|
170
|
+
## Framework Guarantees
|
|
171
|
+
|
|
172
|
+
AiML SuperAgent is designed to make an assistant:
|
|
173
|
+
|
|
174
|
+
- explicit about assumptions
|
|
175
|
+
- resistant to stale context
|
|
176
|
+
- careful with secrets
|
|
177
|
+
- aware of production and deployment state
|
|
178
|
+
- less likely to edit the wrong repo
|
|
179
|
+
- less likely to over-refactor
|
|
180
|
+
- more likely to leave a useful audit trail
|
|
181
|
+
|
|
182
|
+
It does not guarantee correctness. It gives the assistant a better operating system for reaching correctness.
|
|
183
|
+
|
|
184
|
+
## Maturity Model
|
|
185
|
+
|
|
186
|
+
AiML SuperAgent adoption has four levels:
|
|
187
|
+
|
|
188
|
+
| Level | Name | Description |
|
|
189
|
+
| --- | --- | --- |
|
|
190
|
+
| 0 | Behavior only | A single behavior file tells the assistant to be careful. |
|
|
191
|
+
| 1 | Scoped memory | The project has source-of-truth files and working notes. |
|
|
192
|
+
| 2 | Verified operation | The assistant checks production reality and records proof. |
|
|
193
|
+
| 3 | Context-minimized operation | The assistant loads only durable memory and targeted task context by default. |
|
|
194
|
+
|
|
195
|
+
The public goal of this framework is Level 3.
|
|
196
|
+
|
|
197
|
+
## Model Support
|
|
198
|
+
|
|
199
|
+
AiML SuperAgent is model-agnostic. It works with:
|
|
200
|
+
|
|
201
|
+
- Claude
|
|
202
|
+
- GPT-5.5
|
|
203
|
+
- Codex
|
|
204
|
+
- Cursor
|
|
205
|
+
- Perplexity
|
|
206
|
+
- Gemini
|
|
207
|
+
- local models
|
|
208
|
+
- future coding agents
|
|
209
|
+
|
|
210
|
+
The model can change. The operating discipline should remain stable.
|
|
211
|
+
|
|
212
|
+
## Recommended Adoption Path
|
|
213
|
+
|
|
214
|
+
1. Add `AGENTS.md`, `REPO_SOURCE_OF_TRUTH.json`, and `WORKING_NOTES.md`.
|
|
215
|
+
2. Fill in production owners, deployment surfaces, package manager, test commands, and secret names.
|
|
216
|
+
3. Add `DEPLOYMENT_LOG.md` after the next live deploy.
|
|
217
|
+
4. Add incident reports only for issues that change future behavior.
|
|
218
|
+
5. Run `node bin/aiml-superagent.js check`.
|
|
219
|
+
6. Iterate until the checker reports no high-risk gaps.
|
|
220
|
+
|
|
221
|
+
## Design Principles
|
|
222
|
+
|
|
223
|
+
- Memory should be durable, scoped, and revisable.
|
|
224
|
+
- Context should be loaded by relevance, not by habit.
|
|
225
|
+
- Secrets should be referenced by name and role, never by value.
|
|
226
|
+
- Production reality beats repo assumptions.
|
|
227
|
+
- A small verified diff beats a large plausible rewrite.
|
|
228
|
+
- Notes should reduce future token use, not increase it.
|
|
229
|
+
|
|
230
|
+
## How This Improves on a Single Behavior File
|
|
231
|
+
|
|
232
|
+
The viral `CLAUDE.md` approach is valuable because it gives assistants simple behavioral rules. AiML SuperAgent builds on that idea by adding project-level operation:
|
|
233
|
+
|
|
234
|
+
- where to find durable facts
|
|
235
|
+
- how to avoid stale context
|
|
236
|
+
- how to verify live systems
|
|
237
|
+
- how to record deployments and incidents
|
|
238
|
+
- how to protect secrets
|
|
239
|
+
- how to keep memory useful over months, not just one session
|
|
240
|
+
|
|
241
|
+
See [docs/comparison-claude-md.md](docs/comparison-claude-md.md).
|
|
242
|
+
|
|
243
|
+
## Status
|
|
244
|
+
|
|
245
|
+
Private release candidate. The repository can remain private while using the MIT License; the license defines reuse terms if and when the project is shared publicly.
|
|
246
|
+
|
|
247
|
+
Prepared package name: `@aimlsuperagent/agent`.
|
|
248
|
+
|
|
249
|
+
Publishing is intentionally blocked by `"private": true` until npm scope ownership and private package access are confirmed. See [docs/npm-private-publishing.md](docs/npm-private-publishing.md).
|
|
250
|
+
|
|
251
|
+
## License
|
|
252
|
+
|
|
253
|
+
MIT License. See [LICENSE](LICENSE).
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "./schemas/repo-source-of-truth.schema.json",
|
|
3
|
+
"project": {
|
|
4
|
+
"name": "AiML SuperAgent",
|
|
5
|
+
"purpose": "A token-efficient operating framework for AI coding assistants.",
|
|
6
|
+
"status": "private-release-candidate",
|
|
7
|
+
"primaryAudience": [
|
|
8
|
+
"software teams using AI coding assistants",
|
|
9
|
+
"solo builders managing long-running projects",
|
|
10
|
+
"agent framework authors"
|
|
11
|
+
]
|
|
12
|
+
},
|
|
13
|
+
"sourceOfTruth": {
|
|
14
|
+
"behaviorContract": "AGENTS.md",
|
|
15
|
+
"durableNotes": "WORKING_NOTES.md",
|
|
16
|
+
"templates": "templates/",
|
|
17
|
+
"docs": "docs/",
|
|
18
|
+
"examples": "examples/",
|
|
19
|
+
"privateNpmPublishing": "docs/npm-private-publishing.md"
|
|
20
|
+
},
|
|
21
|
+
"contextMinimizer": {
|
|
22
|
+
"readFirst": [
|
|
23
|
+
"AGENTS.md",
|
|
24
|
+
"REPO_SOURCE_OF_TRUTH.json",
|
|
25
|
+
"WORKING_NOTES.md"
|
|
26
|
+
],
|
|
27
|
+
"doNotLoadByDefault": [
|
|
28
|
+
".git",
|
|
29
|
+
"node_modules",
|
|
30
|
+
"dist",
|
|
31
|
+
"build",
|
|
32
|
+
".next",
|
|
33
|
+
"coverage",
|
|
34
|
+
"generated artifacts",
|
|
35
|
+
"large logs",
|
|
36
|
+
"resolved incidents",
|
|
37
|
+
"old screenshots",
|
|
38
|
+
"unrelated archives"
|
|
39
|
+
],
|
|
40
|
+
"searchFirst": [
|
|
41
|
+
"rg --files",
|
|
42
|
+
"rg -n \"keyword\""
|
|
43
|
+
],
|
|
44
|
+
"contextRules": [
|
|
45
|
+
"Load only files directly related to the current task.",
|
|
46
|
+
"Summarize long logs before saving them to notes.",
|
|
47
|
+
"Move resolved incidents into dated archives.",
|
|
48
|
+
"Keep secrets out of notes; store names and roles only."
|
|
49
|
+
]
|
|
50
|
+
},
|
|
51
|
+
"verification": {
|
|
52
|
+
"defaultCommands": [
|
|
53
|
+
"npm run check"
|
|
54
|
+
],
|
|
55
|
+
"releaseChecks": [
|
|
56
|
+
"no real secrets in docs or examples",
|
|
57
|
+
"all templates are copy-safe",
|
|
58
|
+
"checker passes",
|
|
59
|
+
"README links resolve",
|
|
60
|
+
"npm private scope confirmed before removing private:true"
|
|
61
|
+
]
|
|
62
|
+
},
|
|
63
|
+
"secrets": {
|
|
64
|
+
"policy": "Store variable names and roles only. Never store values.",
|
|
65
|
+
"allowedExamples": [
|
|
66
|
+
"DATABASE_URL",
|
|
67
|
+
"OPENAI_API_KEY",
|
|
68
|
+
"VERCEL_PROJECT_ID"
|
|
69
|
+
],
|
|
70
|
+
"forbiddenExamples": [
|
|
71
|
+
"actual tokens",
|
|
72
|
+
"private keys",
|
|
73
|
+
"password hashes tied to real users",
|
|
74
|
+
"customer data"
|
|
75
|
+
]
|
|
76
|
+
}
|
|
77
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
# Safe Environment Audit
|
|
2
|
+
|
|
3
|
+
This framework repository should not require production secrets.
|
|
4
|
+
|
|
5
|
+
| Name | Role | Environments | Source Of Truth | Status | Last Verified |
|
|
6
|
+
| --- | --- | --- | --- | --- | --- |
|
|
7
|
+
| None required | This repo is documentation and local tooling only | local | repository | verified | 2026-05-31 |
|
|
8
|
+
|
|
9
|
+
## Policy
|
|
10
|
+
|
|
11
|
+
Examples may include environment variable names and placeholder values only. Do not store actual API keys, tokens, private keys, database URLs with passwords, customer PII, or password hashes tied to real users.
|
|
12
|
+
|
package/SECURITY.md
ADDED
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
# Security Policy
|
|
2
|
+
|
|
3
|
+
AiML SuperAgent is designed around secret-safe operation.
|
|
4
|
+
|
|
5
|
+
## Reporting
|
|
6
|
+
|
|
7
|
+
Do not open public issues containing secrets.
|
|
8
|
+
|
|
9
|
+
If this repo is made public, use the repository security contact or private advisory flow for sensitive reports.
|
|
10
|
+
|
|
11
|
+
## Secret Policy
|
|
12
|
+
|
|
13
|
+
Documentation may include:
|
|
14
|
+
|
|
15
|
+
- env var names
|
|
16
|
+
- credential roles
|
|
17
|
+
- placeholder values
|
|
18
|
+
|
|
19
|
+
Documentation must not include:
|
|
20
|
+
|
|
21
|
+
- credential values
|
|
22
|
+
- private keys
|
|
23
|
+
- production database URLs
|
|
24
|
+
- passwords
|
|
25
|
+
- customer PII
|
|
26
|
+
|
|
27
|
+
Run before release:
|
|
28
|
+
|
|
29
|
+
```bash
|
|
30
|
+
npm run check
|
|
31
|
+
```
|
|
32
|
+
|
package/WORKING_NOTES.md
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
# Working Notes
|
|
2
|
+
|
|
3
|
+
## Current State
|
|
4
|
+
|
|
5
|
+
- Repository is private.
|
|
6
|
+
- Goal is a public-ready release candidate for AiML SuperAgent.
|
|
7
|
+
- Positioning: not a replacement for behavior files, but the next operating layer after them.
|
|
8
|
+
- Core differentiator: Context Minimizer, which reduces token waste by separating durable memory from active task context.
|
|
9
|
+
- Checker now validates unresolved placeholders, source-of-truth paths, context-bloat size limits, and optional release/strict gates.
|
|
10
|
+
|
|
11
|
+
## Release Requirements
|
|
12
|
+
|
|
13
|
+
- README must explain the framework in one minute.
|
|
14
|
+
- Docs must make the system usable without a course or video.
|
|
15
|
+
- Templates must be safe to copy into customer or open-source repos.
|
|
16
|
+
- Examples must not contain real secrets or private infrastructure.
|
|
17
|
+
- Checker must catch missing operating files and obvious secret leakage.
|
|
18
|
+
|
|
19
|
+
## Open Decisions
|
|
20
|
+
|
|
21
|
+
- Whether to publish as a GitHub-only framework or an npm starter package.
|
|
22
|
+
- Whether to add model-specific adapter files for Claude, Codex, Cursor, and Gemini in separate folders.
|
|
23
|
+
|
|
24
|
+
## Decisions
|
|
25
|
+
|
|
26
|
+
- License set to MIT while repository remains private. This preserves private development while preparing clean public reuse terms.
|
|
27
|
+
- Package name prepared as `@aimlsuperagent/agent`, but `private:true` remains as a safety brake until npm scope ownership and private package access are confirmed.
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
# CLAUDE.md Adapter
|
|
2
|
+
|
|
3
|
+
Use this as a thin behavior wrapper when a project already uses AiML SuperAgent.
|
|
4
|
+
|
|
5
|
+
## Behavior
|
|
6
|
+
|
|
7
|
+
- Think before coding.
|
|
8
|
+
- Prefer simple solutions.
|
|
9
|
+
- Make surgical changes.
|
|
10
|
+
- Define success criteria.
|
|
11
|
+
- Verify results.
|
|
12
|
+
|
|
13
|
+
## Operation
|
|
14
|
+
|
|
15
|
+
Before changing code:
|
|
16
|
+
|
|
17
|
+
1. Read `AGENTS.md`.
|
|
18
|
+
2. Read `REPO_SOURCE_OF_TRUTH.json`.
|
|
19
|
+
3. Read only relevant `WORKING_NOTES.md` sections.
|
|
20
|
+
4. Use targeted search for source files.
|
|
21
|
+
5. Verify production reality when live state matters.
|
|
22
|
+
6. Make the smallest safe diff.
|
|
23
|
+
7. Run the fastest meaningful proof.
|
|
24
|
+
8. Update durable notes only if reality changed.
|
|
25
|
+
|
|
26
|
+
Do not store secrets in notes, examples, logs, or commits.
|
|
27
|
+
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# Codex Adapter
|
|
2
|
+
|
|
3
|
+
This adapter mirrors the root AiML SuperAgent contract for Codex-style agents.
|
|
4
|
+
|
|
5
|
+
## First Step
|
|
6
|
+
|
|
7
|
+
Read:
|
|
8
|
+
|
|
9
|
+
1. `AGENTS.md`
|
|
10
|
+
2. `REPO_SOURCE_OF_TRUTH.json`
|
|
11
|
+
3. relevant parts of `WORKING_NOTES.md`
|
|
12
|
+
|
|
13
|
+
## Execution
|
|
14
|
+
|
|
15
|
+
- Prefer `rg --files` and `rg -n`.
|
|
16
|
+
- Use small patches.
|
|
17
|
+
- Do not rewrite unrelated files.
|
|
18
|
+
- Verify with the fastest meaningful command.
|
|
19
|
+
- Summarize what changed and what was verified.
|
|
20
|
+
|
|
21
|
+
## Safety
|
|
22
|
+
|
|
23
|
+
Never write secrets to durable memory.
|
|
24
|
+
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
# Cursor Rules Adapter
|
|
2
|
+
|
|
3
|
+
Use AiML SuperAgent as the project operating layer.
|
|
4
|
+
|
|
5
|
+
- Read `AGENTS.md`, `REPO_SOURCE_OF_TRUTH.json`, and relevant `WORKING_NOTES.md` before broad edits.
|
|
6
|
+
- Search before opening broad folders.
|
|
7
|
+
- Keep active context small.
|
|
8
|
+
- Verify live production state when the task depends on it.
|
|
9
|
+
- Make the smallest safe diff.
|
|
10
|
+
- Do not store secrets in generated code, examples, notes, or comments.
|
|
11
|
+
- Update durable notes only when future tasks benefit.
|
|
12
|
+
|