Claude Code Skills Alternative for DeepSeek/Qwen/Ollama
Quick Start β’ Usage β’ Commands β’ Documentation
CLIS (Command Line Intelligence System) brings Claude Code's intelligent tool calling capabilities to open-source LLMs with advanced self-healing architecture:
- β Self-Healing PEVL Architecture - Plan-Execute-Verify Loop with auto-replanning β NEW
- β Hybrid Model Strategy - R1 planning + Chat execution (62% cost savings vs pure R1)
- β Intelligent Mode Selection - R1 auto-selects optimal mode (no manual --mode needed) β NEW
- β 96% cost savings - < $0.003/query (DeepSeek) vs $20/month (Claude Code)
- β 42 tools - Complete editing, search, analysis capabilities
- β Intelligent Memory - AI automatically references historical task experience
- β Open Skills System - Customizable domain knowledge (vs Claude's closed skills)
- β Offline mode - Ollama support for complete privacy
- β Cross-platform - Windows/macOS/Linux
# Clone repository
git clone https://github.com/Geoion/clis.git
cd clis
# Install (all dependencies will be installed automatically)
pip install -e .# Interactive setup
clis init
# Or specify provider
clis init --provider deepseek # Low cost (recommended)
clis init --provider ollama # Free, offline
clis init --provider qwen # Chinese-optimized# Auto mode (default) - R1 selects optimal strategy
clis run "create Flask web service"
clis run "list all Python files"
clis run "show my git changes"
# Manual mode selection
clis run "simple task" --mode=fast # Quick execution
clis run "complex task" --mode=auto # PEVL with self-healingclis run "show git status"
clis run "show my changes"
clis run "commit modified files by directory"
clis run "push to remote"
clis run "create a new feature branch"
clis run "pull latest changes from main"clis run "list running containers"
clis run "show logs of web-app"
clis run "restart web container"
clis run "show container stats"clis run "find all TODOs in Python files"
clis run "replace print with logger in main.py"
clis run "check linter errors in src/"
clis run "show me functions matching pattern 'async def.*'"clis run "show system info"
clis run "is port 8000 open?"
clis run "show top CPU processes"
clis run "start dev server in background"
clis run "list background processes"AI automatically references similar historical task experience:
# First time doing something
clis run "configure Docker container"
# β AI learns from scratch
# Second time doing something similar
clis run "deploy Docker service"
# β π‘ AI automatically finds previous Docker tasks
# β π‘ Automatically references historical experience and solutions
# β Faster and more accurate!# Search for similar tasks
clis memory similar "Docker configuration"
# View details
clis memory show <task_id>
# View subtasks
clis memory subtasks <task_id>
# Manage memory
clis memory list
clis memory stats
clis memory cleanup# Run query (tool calling enabled by default)
clis run "your query"
# Disable tool calling
clis run "your query" --no-tool-calling
# Create custom skill
clis skill create "skill-name"
clis skill create "description" --auto # AI-generated
# List all skills
clis skill list
# View configuration
clis config show
# Check health
clis doctor
# Debug mode
clis --verbose run "your query"Basic Operations (6):
list_files,read_file,write_file,delete_file,get_file_info,file_tree
Search Functions (3):
search_files- File content searchgrep- Enhanced search (regex) βcodebase_search- Semantic search β
Code Editing (4):
edit_file- Precise editing (diff mode) βsearch_replace- Batch replacement (regex) βinsert_code- Line-level insertion βdelete_lines- Line range deletion β
Code Analysis (4):
find_definition- Find definitions βfind_references- Find references βget_symbols- Extract symbols βread_lints- Linter integration β
Others (3):
- Various utility tools
git_status- Repository statusgit_add- Stage filesgit_commit- Commit changesgit_push- π Push to remote (with upstream support)git_pull- π Pull from remote (with rebase support)git_branch- π Branch management (list/create/delete/rename)git_checkout- π Switch branches or restore filesgit_diff- View changesgit_log- Commit history
docker_ps- List containersdocker_logs- Container logsdocker_inspect- Container detailsdocker_stats- Resource usage
system_info- OS, CPU, memorycheck_command- Verify command availabilityget_env- Environment variableslist_processes- Running processesrun_terminal_cmd- π Execute commands (with background support)
http_request- HTTP requestscheck_port- Port availability
execute_command- Execute shell commandsgit_status- Quick git status (built-in)
DeepSeek (Recommended for Cost)
clis init --provider deepseek
export DEEPSEEK_API_KEY="your-key"
# Cost: ~$0.003/queryOllama (Recommended for Privacy)
# Install Ollama from https://ollama.ai
ollama pull llama3
clis init --provider ollama
# Cost: $0 (completely free)Qwen (Chinese-Optimized)
clis init --provider qwen
export QWEN_API_KEY="your-key"Edit ~/.clis/config/llm.yaml:
model:
name: deepseek-chat
context:
window_size: 64000 # deepseek-chat: 64K, deepseek-coder: 128K
auto_chunk: true # Enable automatic file chunking
chunk_overlap: 200 # Overlap lines between chunks
reserved_tokens: 4000 # Reserved for system promptUnlike Claude Code's closed skills, CLIS uses open, customizable Skills:
- π Markdown format - Easy to read and edit
- π§ User-definable - Create skills for any domain
- π€ Community-driven - Share and collaborate
- π― Fine-grained control - Safety rules, platform compatibility
See skills/ directory for examples (Docker, Git, etc.)
- edit_file: Precise editing with diff preview and dry-run mode
- grep: Regex search with context lines
- read_lints: Automatic linter integration
Full git operations from status to push, including branch management
Run long-running tasks (dev servers, builds) in background with process management
Three-layer protection system ensures safe command execution:
-
Blacklist Protection - Blocks dangerous patterns
- Destructive commands (
rm -rf /,dd,mkfs) - System modifications without confirmation
- Fork bombs and malicious patterns
- Destructive commands (
-
Risk Scoring (0-100) - Automatic risk assessment
- Low (0-30): Read-only operations - Auto-execute
- Medium (31-60): Write operations - Require confirmation
- High (61-90): Destructive operations - Require confirmation
- Critical (91-100): System-level operations - Blocked
Examples:
ls -laβ 10 (low) β Auto-executegit add .β 50 (medium) β Confirmgit pushβ 70 (high) β Confirmgit push --forceβ 95 (critical) β Blockedrm -rf dirβ 85 (high) β Confirmsudo apt installβ 95 (critical) β Blocked
-
User Confirmation - Interactive approval for risky operations
- All high-risk tools require explicit approval
- Risk score and level displayed for transparency
- File modifications, git operations, deletions always confirmed
All tools have explicit risk scores and confirmation requirements. Configure behavior in ~/.clis/config/safety.yaml.
Contributions are welcome! Please feel free to submit a Pull Request.
Apache License 2.0 - see LICENSE file for details.
- Homepage: https://github.com/Geoion/clis
- Issues: https://github.com/Geoion/clis/issues
- Documentation: https://github.com/Geoion/clis#readme