🚀 Socket Launch Week Day 5:Introducing Repository Access Permissions and Custom Roles.Learn more
Sign In

dimcode

Package Overview
Dependencies
Maintainers
3
Versions
277
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dimcode

Dim Code CLI built on dreams

npmnpm
Version
0.0.5-beta.17
Version published
Weekly downloads
2.6K
-42.89%
Maintainers
3
Weekly downloads
 
Created
Source

Dimcode CLI

A powerful AI agent CLI built on GoatChain with an interactive terminal UI (TUI)

npm version License: MIT

Dimcode is a command-line interface for AI-powered coding assistance, featuring:

  • 🎨 Beautiful TUI - Modern terminal interface built with Vue 3
  • 💬 Multi-session Management - Manage multiple AI conversations
  • 🔧 Built-in Tools - File operations, web search, code analysis
  • Streaming Responses - Real-time AI response streaming
  • 🎯 Tool Approvals - Fine-grained control over tool execution
  • 🌈 Themes - Customizable color schemes

📦 Installation

npm install -g dimcode

Or using other package managers:

# Using pnpm
pnpm add -g dimcode

# Using yarn
yarn global add dimcode

# Using bun
bun add -g dimcode

Using npx (No Installation)

Run directly without installation:

npx dimcode

🚀 Quick Start

After installation, simply run:

dim

This will launch the interactive terminal UI.

🎮 Usage

Command Palette

Press Ctrl+P to open the command palette, which provides quick access to:

  • Sessions - View and switch between conversations
  • New Session - Start a fresh conversation
  • Settings - Configure API keys and model settings
  • Tool Approvals - Manage tool execution permissions
  • Theme - Customize the UI appearance (in Chat view)

Slash Commands

Type slash commands directly in the input field:

CommandDescription
/settingsOpen settings dialog
/approvalsManage tool approvals
/sessionsList all sessions
/newCreate a new session
/redoRedo last interaction (Chat view only)

Keyboard Shortcuts

ShortcutAction
Ctrl+POpen command palette
Ctrl+CExit the application
EnterSend message
Shift+EnterNew line in input

⚙️ Configuration

Environment Variables

Create a .env file in your working directory or set environment variables:

# OpenAI Configuration
OPENAI_API_KEY=your_api_key_here
OPENAI_BASE_URL=https://api.openai.com/v1  # Optional
MODEL_ID=gpt-4o  # Default model

# Serper API for web search (optional)
SERPER_API_KEY=your_serper_key_here

First-time Setup

On first launch, Dimcode will guide you through:

  • API Key Setup - Enter your OpenAI API key
  • Model Selection - Choose your preferred AI model
  • Tool Approvals - Configure which tools can run automatically

Settings are stored in ~/.goatchain/goatchain/ directory by default (can be customized via GOATCHAIN_HOME environment variable).

🔧 Built-in Tools

Dimcode comes with powerful built-in tools:

File Operations

  • Read - Read file contents
  • Write - Create or overwrite files
  • Edit - Make precise edits to existing files

Code Analysis

  • Grep - Search content using patterns
  • Glob - Find files by pattern
  • AstGrepSearch - AST-based code search
  • AstGrepReplace - AST-based code refactoring

Web & Research

  • WebSearch - Search the web using Serper API
  • WebFetch - Fetch web page content

Task Management

  • TodoWrite - Create and manage TODO lists
  • Task - Execute complex multi-step tasks
  • Skill - Store and reuse common workflows

System

  • Bash - Execute shell commands (requires approval)
  • AskUser - Request input from user

📚 Examples

Basic Coding Assistant

dim
# Then type: "Create a React component for a todo list"

Multi-file Refactoring

dim
# Then type: "Rename all instances of 'oldName' to 'newName' across the project"

Web Research

dim
# Then type: "Search for the latest best practices in TypeScript 5.3"

🔐 Security & Privacy

  • Tool Approvals: By default, sensitive operations (file writes, shell commands) require user approval
  • Local Storage: All session data is stored locally in ~/.goatchain/goatchain/ (customizable via GOATCHAIN_HOME)

FAQs

Package last updated on 29 Jan 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts