CaYaDev CLI
Proje Görselleri (2)
En Son Versiyon
Proje Açıklaması
CaYaDev CLI
CaYaDev CLI is a lightweight open-source AI coding terminal tool built to be simple, flexible, and easy to adapt to smaller models.
The interface is fully English. The product identity follows the CaYaDev visual direction: dark terminal background, sharp red and white accents, and a direct command-line workflow.
Preview

Features
- Four runtime modes:
advanced,medium,normal, andlow - Per-message checkpoints stored locally
- File creation, editing, reading, searching, and deletion
- Delete actions always ask for permission
- Optional
web_fetchtool for browsing raw web pages - Optional
ask_questiontool for interactive clarification - First-run provider setup wizard
- Ollama, OpenAI, Claude / Anthropic, OpenRouter, and custom provider support
- Rich terminal colors and markdown-style assistant rendering
- Thinking spinner with elapsed time
- Configurable thinking level:
low,medium,high,extra_high - Per-turn file change summary with added and removed line counts
- Quick action menu and checkpoint restore flow
- Minimal dependency footprint using built-in Node.js modules
Mode Matrix
| Mode | Intent | ask_question | web_fetch | Prompt Style |
|---|---|---|---|---|
advanced |
Full capability | Yes | Yes | Full agent prompt |
medium |
Good balance | No | Yes | Standard agent prompt |
normal |
Stable default | No | No | Standard coding prompt |
low |
Better for simpler models | No | No | Extra-constrained low-complexity prompt |
Requirements
- Node.js 20+
- A supported provider account or a local Ollama instance
Build And Run
Install:
npm install
Build:
npm run build
Build a single Windows .exe:
npm run build:exe
The packaged executable is written to:
dist-exe/CaYaDevCLI.exe
Run from source:
npm start
Run the built copy:
node dist/src/index.js --mode advanced
Run the packaged .exe:
.\dist-exe\CaYaDevCLI.exe
Notes:
- The
.exebuild uses Node.js Single Executable Applications on Windows. - The Windows executable icon is generated from
CYEditorLogo2.svg. - Build it on the same Windows machine or CI environment where Node.js is installed.
- After blob injection, Windows may report that the original Node signature is no longer valid. Re-sign the final
.exeif you plan to distribute it publicly.
Quick Start
- Start the CLI:
npm start
- On the first launch, the CLI asks for:
- Provider
- Base URL
- API key when required
- Model selection or manual model name
- The selection is stored locally in
.cayadev/config.json.
You can still override values with CLI flags or environment variables:
$env:CAYA_PROVIDER="ollama"
$env:CAYA_BASE_URL="http://localhost:11434"
$env:CAYA_MODEL="qwen2.5-coder:14b"
$env:CAYA_API_KEY=""
You can also use the binary name after npm link:
caya --mode normal
Default runtime:
- Mode:
advanced - Thinking:
extra_high
CLI Commands
/helpShow commands/modeShow current mode/mode <name>Switch mode at runtime/providerOpen the provider setup wizard/provider currentShow the current provider/modelOpen the model selector/model <name>Switch model at runtime/thinkingShow current thinking level/thinking <level>Setlow,medium,high, orextra_high/settingsOpen the runtime settings menu/checkpointOpen the checkpoint restore menu/checkpoint <id>Restore a specific checkpoint/menuOpen the quick action menu/toolsShow tools available in the current mode/checkpointsList checkpoints for the current session/sessionShow session details/configShow active runtime config/exitExit the appCtrl+CStop the current responseCtrl+Ctwice quickly Exit the app
Checkpoints
Every completed user message creates a checkpoint under .cayadev/sessions/<session-id>/checkpoints/.
The current implementation keeps a full workspace snapshot for each completed turn, excluding common heavy folders such as .git, .cayadev, node_modules, dist, and coverage. This keeps the implementation simple and reliable for an open-source first version, but it is not optimized for very large repositories yet.
Provider Compatibility
Built-in providers:
ollamaopenaianthropicopenroutercustom
Protocol support:
- OpenAI-compatible chat completions
- Anthropic Messages API
- Ollama chat API
Model listing:
- Ollama uses
/api/tags - OpenAI-compatible providers use
/modelswhen available - Anthropic uses
/v1/models - If model listing is unavailable, the CLI falls back to manual model entry
Agent Protocol
The CLI uses a text-based tool protocol so it can work with models that do not support native function calling.
Tool call format:
<tool_call>{"tool":"read_file","args":{"path":"src/index.js"}}</tool_call>
Final answer format:
<final>Your answer here.</final>
The low mode uses a simpler system prompt that reinforces this protocol more aggressively for smaller or weaker models.
Project Structure
src/
core/
banner.js
checkpoints.js
cli.js
config.js
modes.js
parser.js
prompts.js
provider.js
providers.js
reasoning.js
render.js
tools.js
utils.js
workspace.js
index.js
scripts/
build.js
test/
parser.test.js
Notes
- The app is intentionally simple and transparent.
- Delete actions require approval every time.
- The workspace is treated as the current working directory where the CLI starts.
- Provider settings are stored locally in
.cayadev/config.json, which is ignored by git.
Proje Bağlantıları
Proje İstatistikleri
3
Versiyon
43
Görüntülenme
4
İndirme
Forum
Bu forumda proje ile ilgili sorular sorabilir, hata bildirebilir, özellik isteyebilir veya genel tartışmalara katılabilirsiniz.