Tech Stack
Cipher's technical architecture and implementation — every feature is production-ready, not just a concept.
Agent supports Plan and Auto execution modes. Plan mode generates a plan for your approval first. Auto mode automatically chains tool calls, up to 15 iterative rounds: think → act → observe → re-think.
After writing code, Agent automatically runs validation commands (tsc / eslint / lint / build). Detects errors and auto-fixes them, up to 3 rounds. Stops automatically when progress stalls to save Tokens.
Pub-sub based usage tracking system. Automatically records Prompt Tokens, Completion Tokens, and costs after each AI request. Persisted in localStorage + Electron Store dual storage.
TF-IDF similarity-based engine. During indexing, code files are automatically split by function and class boundaries. Search uses camelCase tokenization + CN-EN synonym expansion.
Skills are packaged AI assistant configurations. Each skill has its own Prompt, available tools, and model parameters. 4 built-in skills, supports import/export.
7 built-in provider presets, each independently toggleable. Custom providers support custom API URLs, Keys, and model lists. One-click default switch with built-in connection test.
Global rules apply across all projects, project rules are specific to the current project. Auto-reads CLAUDE.md, .cursorrules, .windsurfrules from the project directory. Each rule can be independently enabled or disabled.
Electron main and renderer processes communicate via 13 IPC handlers covering file R/W, terminal execution, config persistence, and security trust confirmation. Sandbox mode isolates processes.
4 theme modes (Dark / Dark Blue / Light / System), ~50 semantic CSS variables. Glassmorphism frosted glass via backdrop-filter + semi-transparent backgrounds, 300ms smooth transitions.
Working memory tracks file operations (create / modify / delete) within a session, 24-hour TTL auto-expiry. Project notes persist across sessions. Memory auto-formatted and injected into Agent context.
Architecture
Desktop tech stack — all AI features run locally.