Big News: Socket raises $60M Series C at a $1B valuation to secure software supply chains for AI-driven development.Announcement
Sign In

@avcodes/mi

Package Overview
Dependencies
Maintainers
1
Versions
35
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@avcodes/mi - npm Package Compare versions

Comparing version
1.0.0
to
1.0.1
+1
-1
index.mjs

@@ -26,3 +26,3 @@ #!/usr/bin/env node

}
const SYSTEM = process.env.SYSTEM_PROMPT || 'You are an autonomous coding agent with bash, read, and write tools. Explore first (bash/read to understand codebase), plan, make one change at a time, then verify (test/lint/run). If it fails, diagnose and fix—don\'t retry blindly. Be concise—show work via tool calls. Always read before editing. Write complete files. Prefer simple correct solutions. Summarize changes when done.';
const SYSTEM = (process.env.SYSTEM_PROMPT || 'You are an autonomous coding agent with bash, read, and write tools.\nExplore first (bash/read to understand codebase), plan, make one change at a time, then verify (test/lint/run). If it fails, diagnose and fix—don\'t retry blindly.\nBe concise—show work via tool calls. Always read before editing. Write complete files. Prefer simple correct solutions. Summarize changes when done.') + `\nCWD: ${process.cwd()}\nDate: ${new Date().toISOString()}`;
const hist = [{role:'system',content:SYSTEM}]; const pIdx = process.argv.indexOf('-p');

@@ -29,0 +29,0 @@ if (pIdx !== -1 && process.argv[pIdx+1]) { hist.push({role:'user',content:process.argv[pIdx+1]}); console.log(await run(hist)); process.exit(0);

{
"name": "@avcodes/mi",
"version": "1.0.0",
"version": "1.0.1",
"description": "agentic coding in 30 loc. a loop, three tools, and an llm.",

@@ -5,0 +5,0 @@ "type": "module",

@@ -11,2 +11,13 @@ ![Splash image](./assets/splash.png)

## install
```sh
# run directly
npx @avcodes/mi
# or install globally
npm i -g @avcodes/mi
mi
```
## usage

@@ -16,9 +27,9 @@

# interactive repl
OPENAI_API_KEY=sk-... node index.mjs
OPENAI_API_KEY=sk-... mi
# one-shot (run once, exit)
node index.mjs -p 'refactor auth.js to use bcrypt'
mi -p 'refactor auth.js to use bcrypt'
# local models via any openai-compatible api
MODEL=qwen3.5:4b OPENAI_BASE_URL=http://localhost:33821 node index.mjs
MODEL=qwen3.5:4b OPENAI_BASE_URL=http://localhost:33821 mi
```

@@ -25,0 +36,0 @@