@aiiware/aii 0.5.0 → 0.5.2
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/README.md +55 -6
- package/bin/aii +304 -301
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -62,9 +62,14 @@ In agent mode, use these commands:
|
|
|
62
62
|
/stats Show session statistics (tokens, cost)
|
|
63
63
|
/model <model> Switch LLM model
|
|
64
64
|
/provider <name> Switch LLM provider
|
|
65
|
-
/
|
|
65
|
+
/context View context window usage
|
|
66
66
|
/init Generate AGENTS.md for your project
|
|
67
|
+
/init --with-hooks Generate AGENTS.md + hooks.json template
|
|
67
68
|
/memory View loaded project instructions
|
|
69
|
+
/memory reload Hot-reload instructions without restart
|
|
70
|
+
/hooks View configured hooks
|
|
71
|
+
/hooks reload Hot-reload hooks without restart
|
|
72
|
+
/exit Exit the session
|
|
68
73
|
```
|
|
69
74
|
|
|
70
75
|
### Keyboard Shortcuts
|
|
@@ -166,17 +171,61 @@ Prevents "token limit exceeded" errors in long conversations with intelligent au
|
|
|
166
171
|
|
|
167
172
|
## Project Instructions (v0.5.0)
|
|
168
173
|
|
|
169
|
-
Teach the agent your project's conventions
|
|
174
|
+
Teach the agent your project's conventions. Create an `AGENTS.md` file in your project root, and the agent will automatically learn your coding standards, commands, and rules.
|
|
175
|
+
|
|
176
|
+
### Quick Setup
|
|
170
177
|
|
|
171
178
|
```bash
|
|
172
|
-
#
|
|
179
|
+
# Auto-generate AGENTS.md by analyzing your project
|
|
173
180
|
/init
|
|
174
181
|
|
|
175
|
-
# View
|
|
182
|
+
# View what instructions are loaded
|
|
176
183
|
/memory
|
|
177
184
|
```
|
|
178
185
|
|
|
179
|
-
The `/init` command
|
|
186
|
+
The `/init` command detects your language, framework, build commands, and generates a customized `AGENTS.md`. Edit it to add your team's conventions.
|
|
187
|
+
|
|
188
|
+
### Supported Files
|
|
189
|
+
|
|
190
|
+
The agent discovers instruction files in this priority order:
|
|
191
|
+
|
|
192
|
+
- `AII.md` or `AGENTS.md` in project root
|
|
193
|
+
- `~/.aii/AGENTS.md` for global preferences
|
|
194
|
+
|
|
195
|
+
### Example AGENTS.md
|
|
196
|
+
|
|
197
|
+
```markdown
|
|
198
|
+
# My Project
|
|
199
|
+
|
|
200
|
+
## Commands
|
|
201
|
+
- Build: `npm run build`
|
|
202
|
+
- Test: `npm test`
|
|
203
|
+
- Lint: `npm run lint`
|
|
204
|
+
|
|
205
|
+
## Coding Standards
|
|
206
|
+
- Use TypeScript strict mode
|
|
207
|
+
- Prefer async/await over callbacks
|
|
208
|
+
- Maximum line length: 100
|
|
209
|
+
|
|
210
|
+
## Safety Rules
|
|
211
|
+
Never modify without asking:
|
|
212
|
+
- .env files
|
|
213
|
+
- Database migrations
|
|
214
|
+
```
|
|
215
|
+
|
|
216
|
+
## Hooks (v0.5.0)
|
|
217
|
+
|
|
218
|
+
Extend agent behavior with custom scripts. Create `.aii/hooks.json` to run scripts before/after tool execution:
|
|
219
|
+
|
|
220
|
+
```bash
|
|
221
|
+
# Generate a hooks template
|
|
222
|
+
/init --with-hooks
|
|
223
|
+
|
|
224
|
+
# View configured hooks
|
|
225
|
+
/hooks
|
|
226
|
+
```
|
|
227
|
+
|
|
228
|
+
Hooks let you add validation, logging, or approval gates. See the [hooks documentation](https://aiiware.com/docs/hooks) for details.
|
|
180
229
|
|
|
181
230
|
## System Commands
|
|
182
231
|
|
|
@@ -205,4 +254,4 @@ aii --version # Show version
|
|
|
205
254
|
|
|
206
255
|
## License
|
|
207
256
|
|
|
208
|
-
Proprietary - Copyright 2025-present AiiWare.com. All Rights Reserved.
|
|
257
|
+
Proprietary - Copyright 2025-present AiiWare.com. All Rights Reserved.
|