agentseed 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/LICENSE +21 -0
- package/README.md +227 -0
- package/bin/agentseed.js +2 -0
- package/dist/cli.js +2090 -0
- package/dist/cli.js.map +1 -0
- package/package.json +63 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Be_AI_Ready!
|
|
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,227 @@
|
|
|
1
|
+
# agentseed
|
|
2
|
+
|
|
3
|
+
**Seed your repo. AI agents grow smarter.**
|
|
4
|
+
|
|
5
|
+
```bash
|
|
6
|
+
npx agentseed init
|
|
7
|
+
```
|
|
8
|
+
|
|
9
|
+
One command. agentseed reads your codebase — languages, frameworks, commands, architecture, conventions — and generates a production-quality `AGENTS.md` ready for 20+ AI tools.
|
|
10
|
+
|
|
11
|
+
```
|
|
12
|
+
your-repo/
|
|
13
|
+
├── AGENTS.md # Works with Copilot, Codex, Cursor, Gemini, Windsurf, Devin...
|
|
14
|
+
├── CLAUDE.md # Claude Code
|
|
15
|
+
├── .cursorrules # Cursor IDE
|
|
16
|
+
└── .windsurfrules # Windsurf
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
Free. Instant. No API key required.
|
|
20
|
+
|
|
21
|
+
---
|
|
22
|
+
|
|
23
|
+
## What is AGENTS.md?
|
|
24
|
+
|
|
25
|
+
[AGENTS.md](https://agents.md) is the open standard for AI coding agent instructions — backed by the Agentic AI Foundation (Linux Foundation + OpenAI) and adopted by **60,000+ repositories**.
|
|
26
|
+
|
|
27
|
+
When your repo has a great AGENTS.md, every AI tool that touches your code knows your stack, respects your conventions, and runs the right commands. agentseed generates that file by actually understanding your project.
|
|
28
|
+
|
|
29
|
+
---
|
|
30
|
+
|
|
31
|
+
## Quick Start
|
|
32
|
+
|
|
33
|
+
```bash
|
|
34
|
+
# Instant, free — works out of the box
|
|
35
|
+
npx agentseed init
|
|
36
|
+
|
|
37
|
+
# Enhanced with LLM (bring your own key)
|
|
38
|
+
export ANTHROPIC_API_KEY=sk-ant-...
|
|
39
|
+
npx agentseed init --provider claude
|
|
40
|
+
|
|
41
|
+
# Or use OpenAI / Ollama
|
|
42
|
+
npx agentseed init --provider openai
|
|
43
|
+
npx agentseed init --provider ollama # local, free
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
### Output Formats
|
|
47
|
+
|
|
48
|
+
agentseed generates `AGENTS.md` by default. Need files for specific tools too?
|
|
49
|
+
|
|
50
|
+
```bash
|
|
51
|
+
npx agentseed init --format all # AGENTS.md + CLAUDE.md + .cursorrules + copilot + windsurf
|
|
52
|
+
npx agentseed init --format claude # Just CLAUDE.md
|
|
53
|
+
```
|
|
54
|
+
|
|
55
|
+
| Format | File | Tools |
|
|
56
|
+
|--------|------|-------|
|
|
57
|
+
| `agents` | `AGENTS.md` | Copilot, Codex, Gemini, Cursor, Devin, 20+ |
|
|
58
|
+
| `claude` | `CLAUDE.md` | Claude Code |
|
|
59
|
+
| `cursor` | `.cursorrules` | Cursor IDE |
|
|
60
|
+
| `copilot` | `.github/copilot-instructions.md` | GitHub Copilot |
|
|
61
|
+
| `windsurf` | `.windsurfrules` | Windsurf / Codeium |
|
|
62
|
+
| `all` | All of the above | **Default** |
|
|
63
|
+
|
|
64
|
+
---
|
|
65
|
+
|
|
66
|
+
## How It Works
|
|
67
|
+
|
|
68
|
+
**Pass 1 — Static Analysis** (free, instant)
|
|
69
|
+
- Detects languages, frameworks, and dependencies
|
|
70
|
+
- Extracts build/test/lint commands from package.json, Makefile, Cargo.toml, dbt_project.yml
|
|
71
|
+
- Maps directory structure, entry points, naming conventions
|
|
72
|
+
- Detects monorepo patterns and CI/CD pipelines
|
|
73
|
+
|
|
74
|
+
**Pass 2 — LLM Enhancement** (optional, bring your own key)
|
|
75
|
+
- Smart-samples key files (entry points, configs, architecture)
|
|
76
|
+
- Sends to Claude, GPT, or Ollama for richer project descriptions
|
|
77
|
+
- One LLM call, rendered to all formats
|
|
78
|
+
|
|
79
|
+
**Stays Current** — agentseed tracks git SHAs. Re-run and only changed files get regenerated. Use `--force` to refresh everything.
|
|
80
|
+
|
|
81
|
+
---
|
|
82
|
+
|
|
83
|
+
## What AI Agents Learn
|
|
84
|
+
|
|
85
|
+
Every generated file contains 6 sections:
|
|
86
|
+
|
|
87
|
+
| Section | Example |
|
|
88
|
+
|---------|---------|
|
|
89
|
+
| **Project Context** | "Hono is a lightweight web framework for multiple JS runtimes" |
|
|
90
|
+
| **Stack** | TypeScript 97%, Vitest, esbuild |
|
|
91
|
+
| **Commands** | `bun run test`, `bun run build`, `bun run lint` |
|
|
92
|
+
| **Conventions** | kebab-case naming, module-based file organization |
|
|
93
|
+
| **Architecture** | `src/` — core framework, `runtime-tests/` — per-runtime test suites |
|
|
94
|
+
| **Boundaries** | Always run tests before committing. Never force-push to main. |
|
|
95
|
+
|
|
96
|
+
---
|
|
97
|
+
|
|
98
|
+
## Real Output
|
|
99
|
+
|
|
100
|
+
Running `agentseed init --provider claude` on [Hono](https://github.com/honojs/hono) (400+ files):
|
|
101
|
+
|
|
102
|
+
```markdown
|
|
103
|
+
## Project Context
|
|
104
|
+
|
|
105
|
+
Hono is a lightweight web framework built on Web Standards that runs on
|
|
106
|
+
multiple JavaScript runtimes (Cloudflare Workers, Deno, Bun, Node.js).
|
|
107
|
+
|
|
108
|
+
## Commands
|
|
109
|
+
|
|
110
|
+
bun run test # Run all tests
|
|
111
|
+
bun run build # Build the project
|
|
112
|
+
bun run lint # Run ESLint
|
|
113
|
+
|
|
114
|
+
## Boundaries
|
|
115
|
+
|
|
116
|
+
### Always
|
|
117
|
+
- Run `bun run test` before committing
|
|
118
|
+
- Follow kebab-case naming convention
|
|
119
|
+
|
|
120
|
+
### Never
|
|
121
|
+
- Use runtime-specific APIs in core framework code
|
|
122
|
+
- Break backward compatibility without major version bump
|
|
123
|
+
```
|
|
124
|
+
|
|
125
|
+
8 seconds. ~$0.08. All 5 output files generated simultaneously.
|
|
126
|
+
|
|
127
|
+
---
|
|
128
|
+
|
|
129
|
+
## Monorepo Support
|
|
130
|
+
|
|
131
|
+
```bash
|
|
132
|
+
agentseed scan
|
|
133
|
+
```
|
|
134
|
+
|
|
135
|
+
```
|
|
136
|
+
my-monorepo/
|
|
137
|
+
├── AGENTS.md # Root: full project overview
|
|
138
|
+
├── packages/
|
|
139
|
+
│ ├── api/
|
|
140
|
+
│ │ └── AGENTS.md # Scoped: only what differs from root
|
|
141
|
+
│ └── web/
|
|
142
|
+
│ └── AGENTS.md
|
|
143
|
+
```
|
|
144
|
+
|
|
145
|
+
Subfolder files only include sections that **differ** from root — clean, no duplication. Each subfolder tracks its own git SHA for incremental updates.
|
|
146
|
+
|
|
147
|
+
---
|
|
148
|
+
|
|
149
|
+
## Supported Ecosystems
|
|
150
|
+
|
|
151
|
+
| Ecosystem | Frameworks & Tools |
|
|
152
|
+
|-----------|-------------------|
|
|
153
|
+
| **Frontend** | React, Next.js, Vue, Nuxt, Svelte, Angular, Astro |
|
|
154
|
+
| **Backend** | Express, Fastify, NestJS, Hono, Flask, Django, FastAPI, Spring Boot |
|
|
155
|
+
| **Data / ETL** | dbt, Airflow, Dagster, Prefect, Spark, Pandas, Polars |
|
|
156
|
+
| **Databases** | Prisma, Drizzle, SQLAlchemy, TypeORM, Alembic, Flyway |
|
|
157
|
+
| **Testing** | Vitest, Jest, Playwright, Cypress, pytest |
|
|
158
|
+
| **Infra** | Docker, Terraform, GitHub Actions, GitLab CI |
|
|
159
|
+
| **Languages** | TypeScript, JavaScript, Python, Rust, Go, Java, SQL, and 20+ more |
|
|
160
|
+
|
|
161
|
+
---
|
|
162
|
+
|
|
163
|
+
## CLI Reference
|
|
164
|
+
|
|
165
|
+
### `agentseed init`
|
|
166
|
+
|
|
167
|
+
```bash
|
|
168
|
+
agentseed init [options]
|
|
169
|
+
|
|
170
|
+
Options:
|
|
171
|
+
-f, --format <name> agents | claude | cursor | copilot | windsurf | all (default: all)
|
|
172
|
+
-d, --dry-run Preview output without writing files
|
|
173
|
+
-o, --output <path> Override output path (single format only)
|
|
174
|
+
-p, --provider <name> claude | openai | ollama
|
|
175
|
+
-m, --model <name> Override default model
|
|
176
|
+
--no-llm Static analysis only (free, default)
|
|
177
|
+
--force Regenerate even if files are up to date
|
|
178
|
+
-v, --verbose Debug output
|
|
179
|
+
```
|
|
180
|
+
|
|
181
|
+
### `agentseed scan`
|
|
182
|
+
|
|
183
|
+
Generate scoped AGENTS.md for monorepos and multi-package projects.
|
|
184
|
+
|
|
185
|
+
```bash
|
|
186
|
+
agentseed scan [path] [options]
|
|
187
|
+
# Same options as init, plus automatic subfolder detection
|
|
188
|
+
```
|
|
189
|
+
|
|
190
|
+
---
|
|
191
|
+
|
|
192
|
+
## Configuration
|
|
193
|
+
|
|
194
|
+
Optional `.agentseedrc` in your project root:
|
|
195
|
+
|
|
196
|
+
```yaml
|
|
197
|
+
provider: claude
|
|
198
|
+
model: claude-sonnet-4-5-20250929
|
|
199
|
+
maxFiles: 15
|
|
200
|
+
maxTokenBudget: 65536
|
|
201
|
+
ignore:
|
|
202
|
+
- node_modules
|
|
203
|
+
- dist
|
|
204
|
+
- .git
|
|
205
|
+
```
|
|
206
|
+
|
|
207
|
+
**Commit the generated files** (`AGENTS.md`, `CLAUDE.md`, etc.) — they're project documentation.
|
|
208
|
+
**Gitignore `.agentseedrc`** if it contains API keys.
|
|
209
|
+
|
|
210
|
+
---
|
|
211
|
+
|
|
212
|
+
## Contributing
|
|
213
|
+
|
|
214
|
+
```bash
|
|
215
|
+
git clone https://github.com/avinshe/agentseed.git
|
|
216
|
+
cd agentseed
|
|
217
|
+
npm install
|
|
218
|
+
npm run build
|
|
219
|
+
npm test
|
|
220
|
+
|
|
221
|
+
# Try it locally
|
|
222
|
+
node bin/agentseed.js init --dry-run
|
|
223
|
+
```
|
|
224
|
+
|
|
225
|
+
## License
|
|
226
|
+
|
|
227
|
+
MIT
|
package/bin/agentseed.js
ADDED