openclacky 0.6.2 → 0.6.4
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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +30 -0
- data/docs/why-openclacky.md +267 -0
- data/lib/clacky/agent.rb +579 -99
- data/lib/clacky/cli.rb +350 -9
- data/lib/clacky/client.rb +519 -58
- data/lib/clacky/config.rb +71 -4
- data/lib/clacky/default_skills/skill-add/SKILL.md +66 -0
- data/lib/clacky/skill.rb +236 -0
- data/lib/clacky/skill_loader.rb +320 -0
- data/lib/clacky/tools/edit.rb +111 -8
- data/lib/clacky/tools/file_reader.rb +112 -9
- data/lib/clacky/tools/glob.rb +9 -2
- data/lib/clacky/tools/grep.rb +9 -14
- data/lib/clacky/tools/safe_shell.rb +14 -8
- data/lib/clacky/tools/shell.rb +89 -52
- data/lib/clacky/tools/web_fetch.rb +81 -18
- data/lib/clacky/ui2/components/command_suggestions.rb +273 -0
- data/lib/clacky/ui2/components/inline_input.rb +34 -15
- data/lib/clacky/ui2/components/input_area.rb +105 -83
- data/lib/clacky/ui2/layout_manager.rb +89 -33
- data/lib/clacky/ui2/line_editor.rb +142 -2
- data/lib/clacky/ui2/themes/hacker_theme.rb +1 -1
- data/lib/clacky/ui2/themes/minimal_theme.rb +1 -1
- data/lib/clacky/ui2/ui_controller.rb +38 -47
- data/lib/clacky/utils/file_ignore_helper.rb +10 -12
- data/lib/clacky/version.rb +1 -1
- data/lib/clacky.rb +4 -1
- metadata +6 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: dcf90e79799d6f487ba77c084b9b3b72fc7c5252e2ffc7a3e56a0973bb9df977
|
|
4
|
+
data.tar.gz: 52a2e19427036920d29ee27c5021f731cfc924fc9c6800e22040a017f74c7fc7
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 90180817198ad434c4920c855e92215fafe0495f11b93cdf156e1a1a13239219bf3d68f061900265165cf897d601f6913a8815e5c22e60d341cdb3ea6b661bde
|
|
7
|
+
data.tar.gz: e09ba63257284794970bd5929d1e310465120e98fe5330be371cd5a00935976f1e537843b7d05e7532400f757564a8be860b3621125f665fecb30eb81ff76199
|
data/CHANGELOG.md
CHANGED
|
@@ -7,6 +7,36 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
7
7
|
|
|
8
8
|
## [Unreleased]
|
|
9
9
|
|
|
10
|
+
## [0.6.3] - 2026-02-01
|
|
11
|
+
|
|
12
|
+
### Added
|
|
13
|
+
- Complete skill system with loader and core functionality
|
|
14
|
+
- Default skill support with auto-loading mechanism
|
|
15
|
+
- Skills CLI command for skill management (`clacky skills list/show/create`)
|
|
16
|
+
- Command suggestions UI component for better user guidance
|
|
17
|
+
- Skip safety check option for safe_shell tool
|
|
18
|
+
- UI2 component comprehensive test suite
|
|
19
|
+
- Token output control for file_reader and shell tools
|
|
20
|
+
- Grep max files limit configuration
|
|
21
|
+
- File_reader tool index support
|
|
22
|
+
- Web fetch content length limiting
|
|
23
|
+
|
|
24
|
+
### Improved
|
|
25
|
+
- File_reader line range handling logic
|
|
26
|
+
- Message compression strategy (100 message compress)
|
|
27
|
+
- Inline input wrap line handling
|
|
28
|
+
- Cursor position calculation for multi-line inline input
|
|
29
|
+
- Theme adjustments for better visual experience
|
|
30
|
+
- Skill system integration with agent
|
|
31
|
+
- Gem-release skill metadata standardization
|
|
32
|
+
- Skill documentation with user experience summaries
|
|
33
|
+
|
|
34
|
+
### Fixed
|
|
35
|
+
- Skill commands now properly pass through to agent
|
|
36
|
+
- Session restore data loading with -a or -c flags
|
|
37
|
+
- Inline input cursor positioning for wrapped lines
|
|
38
|
+
- Multi-line inline input cursor calculation
|
|
39
|
+
|
|
10
40
|
## [0.6.2] - 2026-01-30
|
|
11
41
|
|
|
12
42
|
### Added
|
|
@@ -0,0 +1,267 @@
|
|
|
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
|
+
| `confirm_edits` | Confirm file modifications | Careful work |
|
|
83
|
+
| `plan_only` | Generate plans only | Code review |
|
|
84
|
+
|
|
85
|
+
5. **Session Recovery**
|
|
86
|
+
```bash
|
|
87
|
+
clacky agent -c # Continue last session
|
|
88
|
+
clacky agent -l # List recent sessions
|
|
89
|
+
clacky agent -a 2 # Attach to specific session
|
|
90
|
+
```
|
|
91
|
+
|
|
92
|
+
#### Part 2: AI-Ready Rails Template (Coming Soon)
|
|
93
|
+
|
|
94
|
+
```
|
|
95
|
+
clacky new my_project
|
|
96
|
+
```
|
|
97
|
+
|
|
98
|
+
A production-ready Rails application scaffold designed specifically for AI-powered development, including:
|
|
99
|
+
|
|
100
|
+
| Feature | Description |
|
|
101
|
+
|---------|-------------|
|
|
102
|
+
| 🔐 **Authentication** | Built-in login/registration with Devise |
|
|
103
|
+
| 🤖 **LLM Integration** | Pre-configured for Claude, OpenAI, DeepSeek |
|
|
104
|
+
| ⚡ **Async Jobs** | Sidekiq for background processing |
|
|
105
|
+
| 🔄 **WebSockets** | Action Cable for real-time features |
|
|
106
|
+
| 🎨 **Beautiful UI** | Tailwind CSS + Hotwire components |
|
|
107
|
+
| 📊 **Admin Dashboard** | ActiveAdmin or Avo integration |
|
|
108
|
+
| 🚀 **One-Click Deploy** | Docker + Kamal/Cloud66 ready |
|
|
109
|
+
|
|
110
|
+
**Why Rails?**
|
|
111
|
+
|
|
112
|
+
- Mature, stable, and well-documented
|
|
113
|
+
- Great for AI apps (LLM calls, async processing, web interface)
|
|
114
|
+
- Strong conventions reduce decision fatigue
|
|
115
|
+
- ActiveJob, Action Cable, Hotwire built-in
|
|
116
|
+
|
|
117
|
+
---
|
|
118
|
+
|
|
119
|
+
## Clacky vs. The Competition
|
|
120
|
+
|
|
121
|
+
| Feature | **Clacky** | Claude Code | Lovable | Cursor |
|
|
122
|
+
|---------|------------|-------------|---------|--------|
|
|
123
|
+
| **Target Users** | Non-technical + Devs | Developers only | Non-technical | Developers |
|
|
124
|
+
| **Interface** | CLI | CLI + IDE + Web | Web only | IDE |
|
|
125
|
+
| **Open Source** | ✅ MIT | ❌ Closed | ❌ Closed | ❌ Closed |
|
|
126
|
+
| **Monthly Cost** | $0 (API only) | $17-200 | $25-99+ | $20+ |
|
|
127
|
+
| **Self-Hosted** | ✅ Yes | ❌ No | ❌ No | ❌ No |
|
|
128
|
+
| **Multi-API** | ✅ DeepSeek, OpenRouter | ❌ Anthropic only | ❌ Limited | ❌ OpenAI only |
|
|
129
|
+
| **SafeShell** | ✅ Auto-protection | ⚠️ Manual | N/A | ⚠️ Manual |
|
|
130
|
+
| **Sessions** | ✅ Persistent | ⚠️ Limited | ⚠️ Limited | ⚠️ Limited |
|
|
131
|
+
| **Skills/Plugins** | ✅ Extensible | ❌ No | ❌ No | ⚠️ Limited |
|
|
132
|
+
| **Rails Template** | ✅ Coming soon | ❌ No | ⚠️ Limited | ❌ No |
|
|
133
|
+
|
|
134
|
+
---
|
|
135
|
+
|
|
136
|
+
## Why Now?
|
|
137
|
+
|
|
138
|
+
### The AI Development Revolution
|
|
139
|
+
|
|
140
|
+
We're at a unique moment in software history:
|
|
141
|
+
|
|
142
|
+
1. **AI models are now capable** of generating production-quality code
|
|
143
|
+
2. **APIs are affordable** - DeepSeek is 95% cheaper than OpenAI
|
|
144
|
+
3. **CLI is experiencing a renaissance** - Developers prefer terminal tools
|
|
145
|
+
4. **Open source AI is viable** - No vendor lock-in
|
|
146
|
+
|
|
147
|
+
### The Open Source Advantage
|
|
148
|
+
|
|
149
|
+
Unlike proprietary platforms, Clacky gives you:
|
|
150
|
+
|
|
151
|
+
- **Freedom**: Use any model, any API, any provider
|
|
152
|
+
- **Control**: Self-host everything, no data leaves your machine
|
|
153
|
+
- **Customization**: Modify the source code for your needs
|
|
154
|
+
- **Community**: Learn from others, contribute back
|
|
155
|
+
- **Longevity**: No risk of the platform shutting down
|
|
156
|
+
|
|
157
|
+
---
|
|
158
|
+
|
|
159
|
+
## Our Roadmap
|
|
160
|
+
|
|
161
|
+
### Phase 1: CLI Excellence (Current)
|
|
162
|
+
- [x] Core agent with tool execution
|
|
163
|
+
- [x] confirm_safes mode (more automation)
|
|
164
|
+
- [x] Real-time cost monitoring
|
|
165
|
+
- [x] SafeShell protection
|
|
166
|
+
- [x] Session persistence
|
|
167
|
+
- [x] Skills system
|
|
168
|
+
|
|
169
|
+
### Phase 2: Rails Template (Coming Soon)
|
|
170
|
+
- [ ] `clacky new` command
|
|
171
|
+
- [ ] Pre-configured authentication
|
|
172
|
+
- [ ] LLM integration ready
|
|
173
|
+
- [ ] Async job system
|
|
174
|
+
- [ ] WebSocket support
|
|
175
|
+
- [ ] Admin dashboard
|
|
176
|
+
- [ ] Docker + deployment configs
|
|
177
|
+
|
|
178
|
+
### Phase 3: The Lovable Alternative
|
|
179
|
+
- [ ] Web-based project manager
|
|
180
|
+
- [ ] Visual component library
|
|
181
|
+
- [ ] Database schema designer
|
|
182
|
+
- [ ] One-click deployment
|
|
183
|
+
|
|
184
|
+
---
|
|
185
|
+
|
|
186
|
+
## Pricing Philosophy
|
|
187
|
+
|
|
188
|
+
We believe AI development tools should be accessible to everyone.
|
|
189
|
+
|
|
190
|
+
```
|
|
191
|
+
┌────────────────────────────────────────────────────────────┐
|
|
192
|
+
│ Clacky Pricing │
|
|
193
|
+
├────────────────────────────────────────────────────────────┤
|
|
194
|
+
│ 📦 Clacky CLI │ $0/month (Open Source) │
|
|
195
|
+
│ • All features │ Pay only for API usage │
|
|
196
|
+
│ • No subscription │ Use DeepSeek, OpenRouter, etc. │
|
|
197
|
+
│ │ │
|
|
198
|
+
│ 🚀 Rails Template │ $0 (Open Source) │
|
|
199
|
+
│ • Full source code │ MIT License │
|
|
200
|
+
│ • Self-host │ No vendor lock-in │
|
|
201
|
+
│ │ │
|
|
202
|
+
│ 💎 Enterprise Support │ Contact us │
|
|
203
|
+
│ • Custom development│ Training & consulting │
|
|
204
|
+
└────────────────────────────────────────────────────────────┘
|
|
205
|
+
```
|
|
206
|
+
|
|
207
|
+
---
|
|
208
|
+
|
|
209
|
+
## Get Started
|
|
210
|
+
|
|
211
|
+
### Quick Install
|
|
212
|
+
|
|
213
|
+
```bash
|
|
214
|
+
# One-line installation (macOS/Linux)
|
|
215
|
+
curl -sSL https://raw.githubusercontent.com/clacky-ai/open-clacky/main/scripts/install.sh | bash
|
|
216
|
+
|
|
217
|
+
# Or if you have Ruby 3.1+
|
|
218
|
+
gem install openclacky
|
|
219
|
+
```
|
|
220
|
+
|
|
221
|
+
### First Steps
|
|
222
|
+
|
|
223
|
+
```bash
|
|
224
|
+
# Configure your API key
|
|
225
|
+
clacky config set
|
|
226
|
+
|
|
227
|
+
# Start the agent
|
|
228
|
+
clacky agent
|
|
229
|
+
|
|
230
|
+
# Or give it a task
|
|
231
|
+
clacky agent "Create a TODO list app"
|
|
232
|
+
|
|
233
|
+
# See all tools
|
|
234
|
+
clacky tools
|
|
235
|
+
```
|
|
236
|
+
|
|
237
|
+
---
|
|
238
|
+
|
|
239
|
+
## Join Us
|
|
240
|
+
|
|
241
|
+
Clacky is an open-source project. We welcome contributions!
|
|
242
|
+
|
|
243
|
+
- **GitHub**: https://github.com/clacky-ai/open-clacky
|
|
244
|
+
- **Discord**: https://discord.gg/clacky
|
|
245
|
+
- **Twitter**: https://twitter.com/clacky_ai
|
|
246
|
+
|
|
247
|
+
---
|
|
248
|
+
|
|
249
|
+
## Summary
|
|
250
|
+
|
|
251
|
+
**Clacky** is for anyone who wants to build software but has been held back by technical complexity or expensive tools.
|
|
252
|
+
|
|
253
|
+
Whether you're a:
|
|
254
|
+
- 🎨 **Designer** who wants to prototype ideas
|
|
255
|
+
- 💼 **Product Manager** who wants to validate concepts
|
|
256
|
+
- 🚀 **Founder** who wants to build an MVP
|
|
257
|
+
- 👨💻 **Developer** who wants a more automated CLI
|
|
258
|
+
|
|
259
|
+
...Clacky is here to help.
|
|
260
|
+
|
|
261
|
+
**The future of software development is accessible, open, and AI-powered.**
|
|
262
|
+
|
|
263
|
+
**Welcome to Clacky.**
|
|
264
|
+
|
|
265
|
+
---
|
|
266
|
+
|
|
267
|
+
*Last updated: February 2025*
|