A CLI for local AI-assisted development. Chat with AI models running on your machine to read, search, edit files, and run commands—without sending your code to the cloud.
- Local-first: Works with Ollama for fully local AI (no data leaves your machine)
- Multi-provider: Supports Ollama, OpenAI, and Mistral
- AI-driven tools: AI can read files, search code, edit files, and run commands
- Permission system: You control what the AI can do
- Fuzzy search: Natural language queries find
chatCompletion,chat_completion, etc.
- Node.js >= 18.0.0
- Ollama (for local AI) with a tool-capable model:
llama3.1:8b(recommended)qwen2.5:7bgpt-oss:20b
npm install interintelOr clone and run locally:
git clone https://github.com/modern-sapien/inter-intel.git
cd inter-intel
npm install
node index.jsAfter install, edit interintel.config.js in your project root:
export default {
// 'ollama' | 'openai' | 'mistral'
aiService: 'ollama',
// Model name
aiVersion: 'llama3.1:8b',
// API key (only for OpenAI/Mistral)
apiKey: process.env.OPENAI_API_KEY || '',
// Files to load into context
filePaths: [],
};interintel
# or
node index.jsThen chat naturally:
You: What files are in this project?
You: Find where fetchUser is defined
You: Update the version in package.json to 2.0.0
You: Run npm test
The AI has access to these tools:
| Tool | Description | Permission |
|---|---|---|
read_file |
Read file contents | Allowed |
list_directory |
List files/folders | Allowed |
search_directory |
Search code with fuzzy matching | Allowed |
edit_file |
Modify existing files | Requires permission |
write_file |
Create new files | Requires permission |
run_command |
Execute shell commands | Requires permission |
Write and execute operations require your approval:
AI wants to write: src/index.js
[y]es (once) / [n]o / [a]lways (save) / [g]lobal (trust all writes):
y- Allow once (session only)n- Denya- Always allow this directory (saved)g- Trust all write operations (saved)
View permissions with //permissions. Settings saved in interintel.permissions.json.
| Command | Description |
|---|---|
//permissions |
Show current permission settings |
//readrefs |
Load reference files from config |
//writefile |
AI-assisted file creation |
exit |
Quit interintel |
interintel/
├── index.js # Entry point
├── setup.js # Postinstall setup
├── src/
│ ├── cli.js # Main CLI loop
│ ├── providers.js # AI service interface (Ollama/OpenAI/Mistral)
│ ├── tools/
│ │ ├── definitions.json
│ │ ├── executors.js
│ │ ├── index.js
│ │ └── permissions.js
│ └── utils/
│ ├── chat.js # Readline helpers
│ ├── files.js # File operations
│ └── writeFileHandler.js
└── templates/
└── config.js # Config template
Apache-2.0