openclacky 1.1.2 → 1.1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (38) hide show
  1. checksums.yaml +4 -4
  2. data/.clacky/skills/gem-release/SKILL.md +27 -31
  3. data/CHANGELOG.md +14 -0
  4. data/Dockerfile +28 -0
  5. data/docs/engineering-article.md +343 -0
  6. data/lib/clacky/agent/llm_caller.rb +1 -5
  7. data/lib/clacky/cli.rb +1 -1
  8. data/lib/clacky/message_format/anthropic.rb +17 -1
  9. data/lib/clacky/providers.rb +34 -0
  10. data/lib/clacky/server/channel/adapters/dingtalk/adapter.rb +142 -5
  11. data/lib/clacky/server/channel/adapters/dingtalk/api_client.rb +309 -0
  12. data/lib/clacky/ui2/ui_controller.rb +14 -0
  13. data/lib/clacky/ui_interface.rb +14 -0
  14. data/lib/clacky/utils/model_pricing.rb +96 -25
  15. data/lib/clacky/version.rb +1 -1
  16. data/lib/clacky/web/app.css +8 -0
  17. data/lib/clacky/web/index.html +1 -1
  18. data/lib/clacky/web/onboard.js +6 -0
  19. data/lib/clacky/web/settings.js +17 -5
  20. data/scripts/build/lib/apt.sh +30 -10
  21. data/scripts/build/lib/network.sh +3 -2
  22. data/scripts/install.sh +30 -9
  23. metadata +3 -16
  24. data/docs/HOW-TO-USE-CN.md +0 -96
  25. data/docs/HOW-TO-USE.md +0 -94
  26. data/docs/browser-cdp-native-design.md +0 -195
  27. data/docs/c-end-user-positioning.md +0 -64
  28. data/docs/config.example.yml +0 -27
  29. data/docs/deploy-architecture.md +0 -619
  30. data/docs/deploy_subagent_design.md +0 -540
  31. data/docs/install-script-simplification.md +0 -89
  32. data/docs/memory-architecture.md +0 -343
  33. data/docs/openclacky_cloud_api_reference.md +0 -584
  34. data/docs/security-design.md +0 -109
  35. data/docs/session-management-redesign.md +0 -202
  36. data/docs/system-skill-authoring-guide.md +0 -47
  37. data/docs/why-developer.md +0 -371
  38. data/docs/why-openclacky.md +0 -266
@@ -1,266 +0,0 @@
1
- # Why OpenClacky?
2
-
3
- ## The Vision: AI-Powered Development for Everyone
4
-
5
- **Clacky** is an open-source, CLI-first AI development assistant designed to make software creation accessible to non-technical users while remaining powerful enough for professional developers.
6
-
7
- Our ultimate vision: **OpenClacky = Lovable + Supabase** — an open-source alternative that combines the ease-of-use of no-code platforms with the flexibility of a modern Rails application.
8
-
9
- ---
10
-
11
- ## The Problem
12
-
13
- Building software today is still too hard for most people:
14
-
15
- | Challenge | Current Solutions |
16
- |-----------|-------------------|
17
- | **Too technical** | Requires learning programming, DevOps, deployment |
18
- | **Too expensive** | Enterprise tools cost $100+/month |
19
- | **Too locked-in** | Vendor lock-in with proprietary platforms |
20
- | **Too complex** | Modern tech stacks have steep learning curves |
21
-
22
- Non-technical founders, designers, and product managers often have great ideas but can't build them. Existing AI tools either:
23
- - **Are too technical** (Claude Code, GitHub Copilot)
24
- - **Are too expensive** (Lovable $25+/month)
25
- - **Lock you into proprietary platforms** (v0, Lovable)
26
-
27
- ---
28
-
29
- ## The Solution: Clacky
30
-
31
- Clacky bridges the gap between no-code simplicity and developer-grade power.
32
-
33
- ### Our Two-Part Strategy
34
-
35
- #### Part 1: CLI for Everyone (Current Focus)
36
-
37
- A command-line AI assistant that's approachable for non-technical users but powerful enough to rival Claude Code.
38
-
39
- **Key Differentiators:**
40
-
41
- ```
42
- ┌─────────────────────────────────────────────────────────────┐
43
- │ Clacky CLI Features │
44
- ├─────────────────────────────────────────────────────────────┤
45
- │ ✅ confirm_safes mode │ More automation than Claude │
46
- │ ✅ Real-time cost monitor │ See token usage in real-time │
47
- │ ✅ Session persistence │ Pause & resume your work │
48
- │ ✅ SafeShell protection │ Commands made safe automatically│
49
- │ ✅ Multi-API support │ DeepSeek, OpenRouter, OpenAI │
50
- │ ✅ Skills system │ Extensible command shortcuts │
51
- │ ✅ Open source │ MIT License - no vendor lock-in │
52
- │ ✅ $0 monthly cost │ Pay only for API usage │
53
- └─────────────────────────────────────────────────────────────┘
54
- ```
55
-
56
- **Why Non-Technical Users Love Clacky:**
57
-
58
- 1. **Natural Language Commands**
59
- ```
60
- clacky agent "Create a REST API for user management"
61
- clacky agent "Add authentication to my Rails app"
62
- ```
63
-
64
- 2. **Safe by Default**
65
- - Dangerous commands (`rm`, `curl | sh`) are automatically made safe
66
- - Files moved to trash instead of deleted
67
- - Project boundaries enforced
68
-
69
- 3. **Transparent Costs**
70
- ```
71
- 💰 Cost: $0.0042 (Claude 3.5 Sonnet)
72
- 📊 Tokens: 1,250 in / 850 out
73
- 🗜️ Compression saved: 60%
74
- ```
75
-
76
- 4. **Permission Modes for Every Situation**
77
-
78
- | Mode | Behavior | Best For |
79
- |------|----------|----------|
80
- | `auto_approve` | Execute all tools automatically | Batch operations |
81
- | `confirm_safes` | Auto-approve safe operations | Daily development |
82
- | `plan_only` | Generate plans only | Code review |
83
-
84
- 5. **Session Recovery**
85
- ```bash
86
- clacky agent -c # Continue last session
87
- clacky agent -l # List recent sessions
88
- clacky agent -a 2 # Attach to specific session
89
- ```
90
-
91
- #### Part 2: AI-Ready Rails Template (Coming Soon)
92
-
93
- ```
94
- clacky new my_project
95
- ```
96
-
97
- A production-ready Rails application scaffold designed specifically for AI-powered development, including:
98
-
99
- | Feature | Description |
100
- |---------|-------------|
101
- | 🔐 **Authentication** | Built-in login/registration with Devise |
102
- | 🤖 **LLM Integration** | Pre-configured for Claude, OpenAI, DeepSeek |
103
- | ⚡ **Async Jobs** | Sidekiq for background processing |
104
- | 🔄 **WebSockets** | Action Cable for real-time features |
105
- | 🎨 **Beautiful UI** | Tailwind CSS + Hotwire components |
106
- | 📊 **Admin Dashboard** | ActiveAdmin or Avo integration |
107
- | 🚀 **One-Click Deploy** | Docker + Kamal/Cloud66 ready |
108
-
109
- **Why Rails?**
110
-
111
- - Mature, stable, and well-documented
112
- - Great for AI apps (LLM calls, async processing, web interface)
113
- - Strong conventions reduce decision fatigue
114
- - ActiveJob, Action Cable, Hotwire built-in
115
-
116
- ---
117
-
118
- ## Clacky vs. The Competition
119
-
120
- | Feature | **Clacky** | Claude Code | Lovable | Cursor |
121
- |---------|------------|-------------|---------|--------|
122
- | **Target Users** | Non-technical + Devs | Developers only | Non-technical | Developers |
123
- | **Interface** | CLI | CLI + IDE + Web | Web only | IDE |
124
- | **Open Source** | ✅ MIT | ❌ Closed | ❌ Closed | ❌ Closed |
125
- | **Monthly Cost** | $0 (API only) | $17-200 | $25-99+ | $20+ |
126
- | **Self-Hosted** | ✅ Yes | ❌ No | ❌ No | ❌ No |
127
- | **Multi-API** | ✅ DeepSeek, OpenRouter | ❌ Anthropic only | ❌ Limited | ❌ OpenAI only |
128
- | **SafeShell** | ✅ Auto-protection | ⚠️ Manual | N/A | ⚠️ Manual |
129
- | **Sessions** | ✅ Persistent | ⚠️ Limited | ⚠️ Limited | ⚠️ Limited |
130
- | **Skills/Plugins** | ✅ Extensible | ❌ No | ❌ No | ⚠️ Limited |
131
- | **Rails Template** | ✅ Coming soon | ❌ No | ⚠️ Limited | ❌ No |
132
-
133
- ---
134
-
135
- ## Why Now?
136
-
137
- ### The AI Development Revolution
138
-
139
- We're at a unique moment in software history:
140
-
141
- 1. **AI models are now capable** of generating production-quality code
142
- 2. **APIs are affordable** - DeepSeek is 95% cheaper than OpenAI
143
- 3. **CLI is experiencing a renaissance** - Developers prefer terminal tools
144
- 4. **Open source AI is viable** - No vendor lock-in
145
-
146
- ### The Open Source Advantage
147
-
148
- Unlike proprietary platforms, Clacky gives you:
149
-
150
- - **Freedom**: Use any model, any API, any provider
151
- - **Control**: Self-host everything, no data leaves your machine
152
- - **Customization**: Modify the source code for your needs
153
- - **Community**: Learn from others, contribute back
154
- - **Longevity**: No risk of the platform shutting down
155
-
156
- ---
157
-
158
- ## Our Roadmap
159
-
160
- ### Phase 1: CLI Excellence (Current)
161
- - [x] Core agent with tool execution
162
- - [x] confirm_safes mode (more automation)
163
- - [x] Real-time cost monitoring
164
- - [x] SafeShell protection
165
- - [x] Session persistence
166
- - [x] Skills system
167
-
168
- ### Phase 2: Rails Template (Coming Soon)
169
- - [ ] `clacky new` command
170
- - [ ] Pre-configured authentication
171
- - [ ] LLM integration ready
172
- - [ ] Async job system
173
- - [ ] WebSocket support
174
- - [ ] Admin dashboard
175
- - [ ] Docker + deployment configs
176
-
177
- ### Phase 3: The Lovable Alternative
178
- - [ ] Web-based project manager
179
- - [ ] Visual component library
180
- - [ ] Database schema designer
181
- - [ ] One-click deployment
182
-
183
- ---
184
-
185
- ## Pricing Philosophy
186
-
187
- We believe AI development tools should be accessible to everyone.
188
-
189
- ```
190
- ┌────────────────────────────────────────────────────────────┐
191
- │ Clacky Pricing │
192
- ├────────────────────────────────────────────────────────────┤
193
- │ 📦 Clacky CLI │ $0/month (Open Source) │
194
- │ • All features │ Pay only for API usage │
195
- │ • No subscription │ Use DeepSeek, OpenRouter, etc. │
196
- │ │ │
197
- │ 🚀 Rails Template │ $0 (Open Source) │
198
- │ • Full source code │ MIT License │
199
- │ • Self-host │ No vendor lock-in │
200
- │ │ │
201
- │ 💎 Enterprise Support │ Contact us │
202
- │ • Custom development│ Training & consulting │
203
- └────────────────────────────────────────────────────────────┘
204
- ```
205
-
206
- ---
207
-
208
- ## Get Started
209
-
210
- ### Quick Install
211
-
212
- ```bash
213
- # One-line installation (macOS/Linux)
214
- curl -sSL https://raw.githubusercontent.com/clacky-ai/openclacky/main/scripts/install.sh | bash
215
-
216
- # Or if you have Ruby 3.1+
217
- gem install openclacky
218
- ```
219
-
220
- ### First Steps
221
-
222
- ```bash
223
- # Configure your API key
224
- clacky config set
225
-
226
- # Start the agent
227
- clacky agent
228
-
229
- # Or give it a task
230
- clacky agent "Create a TODO list app"
231
-
232
- # See all tools
233
- clacky tools
234
- ```
235
-
236
- ---
237
-
238
- ## Join Us
239
-
240
- Clacky is an open-source project. We welcome contributions!
241
-
242
- - **GitHub**: https://github.com/clacky-ai/openclacky
243
- - **Discord**: https://discord.gg/clacky
244
- - **Twitter**: https://twitter.com/clacky_ai
245
-
246
- ---
247
-
248
- ## Summary
249
-
250
- **Clacky** is for anyone who wants to build software but has been held back by technical complexity or expensive tools.
251
-
252
- Whether you're a:
253
- - 🎨 **Designer** who wants to prototype ideas
254
- - 💼 **Product Manager** who wants to validate concepts
255
- - 🚀 **Founder** who wants to build an MVP
256
- - 👨‍💻 **Developer** who wants a more automated CLI
257
-
258
- ...Clacky is here to help.
259
-
260
- **The future of software development is accessible, open, and AI-powered.**
261
-
262
- **Welcome to Clacky.**
263
-
264
- ---
265
-
266
- *Last updated: February 2025*