Skip to content

Commit 5dd38f8

Browse files
committed
Rewrite README — position as open-source uncensored Claude Code alternative
1 parent ede9354 commit 5dd38f8

1 file changed

Lines changed: 181 additions & 85 deletions

File tree

README.md

Lines changed: 181 additions & 85 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
<p align="center">
2-
<img src="https://img.shields.io/badge/status-ALPHA-red?style=for-the-badge" alt="Alpha">
32
<img src="https://img.shields.io/badge/license-MIT-green?style=for-the-badge" alt="MIT License">
4-
<img src="https://img.shields.io/badge/platform-Kali%20Linux%20%7C%20macOS%20%7C%20Linux-blue?style=for-the-badge" alt="Platform">
53
<img src="https://img.shields.io/badge/AI-100%25%20Local-purple?style=for-the-badge" alt="100% Local">
4+
<img src="https://img.shields.io/badge/Uncensored-yes-red?style=for-the-badge" alt="Uncensored">
65
<img src="https://img.shields.io/badge/engine-Rust-orange?style=for-the-badge" alt="Rust">
6+
<img src="https://img.shields.io/badge/API%20Keys-None-brightgreen?style=for-the-badge" alt="No API Keys">
77
</p>
88

99
```
@@ -13,32 +13,41 @@
1313
██╔══██║██╔══██║██║ ██╔═██╗ ██║ ██║ ██║██║ ██║██╔══╝
1414
██║ ██║██║ ██║╚██████╗██║ ██╗╚██████╗╚██████╔╝██████╔╝███████╗
1515
╚═╝ ╚═╝╚═╝ ╚═╝ ╚═════╝╚═╝ ╚═╝ ╚═════╝ ╚═════╝ ╚═════╝ ╚══════╝
16-
>> AI-Powered Hacking Terminal | 100% Local | No Censorship <<
1716
```
1817

19-
# HackCode
18+
<h3 align="center">The open-source, uncensored alternative to Claude Code.<br>Built for hackers. Runs entirely on your machine.</h3>
2019

21-
**The AI-powered hacking terminal for penetration testers, security researchers, CTF players, and red teamers.**
20+
<p align="center">
21+
<a href="#install">Install</a> &nbsp;&bull;&nbsp;
22+
<a href="#how-it-works">How It Works</a> &nbsp;&bull;&nbsp;
23+
<a href="#models">Models</a> &nbsp;&bull;&nbsp;
24+
<a href="#tools">Tools</a> &nbsp;&bull;&nbsp;
25+
<a href="#contributing">Contributing</a>
26+
</p>
2227

23-
HackCode is an open-source AI terminal built on a Rust engine forked from [Claw Code](https://github.com/antinomezco/claw-code). It runs **100% locally** with uncensored AI models via [Ollama](https://ollama.ai). No cloud APIs, no censorship, no data leaving your machine.
28+
---
2429

25-
> **ALPHA SOFTWARE — Expect rough edges, missing features, and breaking changes. Contributions and bug reports welcome.**
30+
## The Problem
2631

27-
> **LEGAL NOTICE:** This tool is built strictly for **authorized security testing, education, and research**. Using HackCode against systems without explicit written permission is **illegal** and may violate laws including the Computer Fraud and Abuse Act (CFAA), the Computer Misuse Act, and similar legislation worldwide. The developers accept **zero liability** for misuse. Always get written authorization before testing.
32+
Claude Code is powerful. But it requires a $20/month subscription, sends every prompt to the cloud, and **refuses to help with security work**. Ask it to scan a network, write an exploit, or crack a hash — it says no.
2833

29-
---
34+
If you're a penetration tester, red teamer, CTF player, or security researcher, you need an AI that actually works with you. Not against you.
35+
36+
## The Solution
3037

31-
## Why HackCode?
38+
**HackCode** is built on [Claw Code](https://github.com/ultraworkers/claw-code) — an open-source recreation of Claude Code's engine, reverse-engineered and rewritten in Rust. Same architecture. Same tool-calling system. Same agentic workflow.
39+
40+
Except it's free, it's local, and it doesn't say no.
41+
42+
No API keys. No subscriptions. No cloud. No filters. No refusals.
43+
44+
Just you, your machine, and an AI that does what you ask.
45+
46+
---
3247

33-
- **Rust engine** — Fast, native binary. No Node.js, no Python runtime, no garbage collection
34-
- **100% local** — Your prompts, targets, and results never leave your machine
35-
- **Uncensored models** — Uses Qwen3.5 uncensored models that won't refuse security tasks
36-
- **Tool-calling AI** — The model doesn't just chat — it runs `nmap`, reads files, chains tools automatically
37-
- **Auto-setup** — First run installs Ollama, downloads the right model for your hardware, installs security tools
38-
- **50+ built-in tools** — Bash, file read/write/edit, grep, glob, directory listing, and more
39-
- **Security tool scanner** — Detects 35 security tools across 6 categories
48+
## Install
4049

41-
## Quick Install
50+
One command. That's it.
4251

4352
```bash
4453
curl -fsSL https://raw.githubusercontent.com/itwizardo/hackcode/dev/install.sh | bash
@@ -49,18 +58,19 @@ Or build from source:
4958
```bash
5059
git clone https://github.com/itwizardo/hackcode.git
5160
cd hackcode/rust
52-
cargo build --release
61+
cargo build --release -p rusty-claude-cli
5362
cp target/release/hackcode ~/.local/bin/
5463
```
5564

65+
Works on **macOS** (Apple Silicon & Intel) and **Linux** (x64 & ARM64). Runs natively on **Kali Linux**.
66+
67+
---
68+
5669
## First Run
5770

58-
Just run `hackcode`. The setup wizard handles everything:
71+
Run `hackcode`. The setup wizard does the rest.
5972

60-
1. **Detects your hardware** — GPU, RAM, platform
61-
2. **Installs Ollama** — If not already installed
62-
3. **Downloads the best model** — Picks the largest uncensored model that fits your RAM
63-
4. **Installs security tools** — nmap, gobuster, nikto, hydra, sqlmap, etc. via Homebrew/apt
73+
It detects your hardware, installs [Ollama](https://ollama.ai) if needed, downloads the best uncensored model for your RAM, and installs security tools — all automatically.
6474

6575
```
6676
$ hackcode
@@ -71,30 +81,29 @@ $ hackcode
7181
Platform: macos (aarch64)
7282
7383
[Step 1/3] AI Backend
74-
Ollama installed
84+
Ollama installed
7585
7686
[Step 2/3] AI Model
7787
Recommended: Qwen3.5-35B-A3B Uncensored (MoE)
7888
7989
[Step 3/3] Security Tools
80-
All tools installed
90+
All tools installed
8191
8292
[HackCode] Setup complete!
8393
```
8494

85-
## Usage
95+
Zero configuration. Zero decisions. It just works.
8696

87-
```bash
88-
hackcode # Start the interactive REPL
89-
hackcode --scan # Scan for installed security tools
90-
hackcode --setup # Re-run the setup wizard
91-
hackcode --help # Show all commands
92-
```
97+
---
98+
99+
## How It Works
100+
101+
HackCode isn't a chatbot. It's an **AI agent** with full access to your terminal.
93102

94-
### Example Session
103+
You describe what you want. HackCode plans the approach, picks the right tools, executes commands, reads the output, and chains the next step — automatically. You watch it work.
95104

96105
```
97-
> scan 10.0.0.1
106+
> scan 10.0.0.1 and find vulnerabilities
98107
99108
▶ bash $ nmap -sV -sC 10.0.0.1
100109
✓ bash
@@ -104,93 +113,180 @@ hackcode --help # Show all commands
104113
443/tcp open ssl/http Apache 2.4.52
105114
3306/tcp open mysql MySQL 8.0.32
106115
107-
Found 4 open ports. Running whatweb for web fingerprinting...
116+
Found 4 open ports. Web server detected — fingerprinting...
108117
109118
▶ bash $ whatweb http://10.0.0.1
110119
✓ bash
111120
http://10.0.0.1 [200 OK] Apache[2.4.52], PHP[8.1.2], WordPress[6.4.2]
112121
113-
WordPress detected. Running wpscan...
122+
WordPress 6.4.2 detected. Scanning for known vulnerabilities...
123+
124+
▶ bash $ wpscan --url http://10.0.0.1 --enumerate vp,vt,u
125+
✓ bash
126+
[!] Title: WordPress < 6.4.3 - Admin+ PHP Object Injection
127+
[!] Title: flavor flavor flavor flavor flavor flavor flavor 2.x - SQLi
128+
...
114129
```
115130

116-
The AI chains tools automatically — no manual prompting needed.
131+
No manual prompting. No copy-pasting between tools. The AI drives. You supervise.
132+
133+
---
134+
135+
## Why Not Claude Code?
136+
137+
| | **Claude Code** | **HackCode** |
138+
|---|---|---|
139+
| **Cost** | $20/month (Pro) or $200/month (Max) | Free forever |
140+
| **Privacy** | Every prompt sent to Anthropic's cloud | 100% local — nothing leaves your machine |
141+
| **Security tasks** | Refuses. "I can't help with that." | Uncensored. Does what you ask. |
142+
| **API key required** | Yes | No |
143+
| **Open source** | No | Yes — MIT license |
144+
| **Internet required** | Yes | No — fully offline capable |
145+
| **Engine** | Node.js | Rust — faster, no runtime overhead |
146+
| **Models** | Claude only (proprietary) | Any Ollama model (open weights) |
147+
148+
---
117149

118150
## Models
119151

120-
HackCode works with any Ollama model, but defaults to uncensored Qwen3.5 variants:
152+
HackCode auto-selects the best uncensored model for your hardware. All models run locally via Ollama.
153+
154+
| Model | Download | RAM | Best For |
155+
|---|---|---|---|
156+
| Qwen3.5-4B Uncensored | ~3 GB | 4 GB+ | Low-end machines |
157+
| Qwen3.5-8B Uncensored | ~5 GB | 8 GB+ | Laptops |
158+
| Qwen3.5-14B Uncensored | ~9 GB | 12 GB+ | Good balance |
159+
| Qwen3.5-32B Uncensored | ~19 GB | 24 GB+ | High quality |
160+
| **Qwen3.5-35B-A3B Uncensored (MoE)** | **~21 GB** | **24 GB+** | **Recommended** |
161+
162+
The 35B MoE model uses only 3B active parameters per token — so it runs fast — while having 35B total parameters for high-quality output. Best of both worlds.
121163

122-
| Model | Size | RAM | Best for |
123-
|-------|------|-----|----------|
124-
| Qwen3.5-4B Uncensored | ~3GB | 4GB+ | Low-end machines |
125-
| Qwen3.5-8B Uncensored | ~5GB | 8GB+ | Laptops |
126-
| Qwen3.5-14B Uncensored | ~9GB | 12GB+ | Good balance |
127-
| Qwen3.5-32B Uncensored | ~19GB | 24GB+ | High quality |
128-
| **Qwen3.5-35B-A3B Uncensored (MoE)** | **~21GB** | **24GB+** | **Best — fast + smart** |
129-
| Qwen3.5-35B Uncensored + Vision | ~23GB | 32GB+ | Image analysis |
164+
You can also use any other Ollama model: `llama3`, `deepseek-coder`, `codestral`, `mistral` — HackCode works with all of them.
130165

131-
The 35B-A3B MoE model is recommended — it uses only 3B active parameters per token (fast inference) while having 35B total parameters (high quality).
166+
---
167+
168+
## 50+ Built-in Tools
169+
170+
HackCode doesn't just talk. It acts. The AI has direct access to:
171+
172+
**Execution** — Run any command in bash, chain commands, pipe output
173+
174+
**File System** — Read, write, edit, search, and navigate files across your entire machine
175+
176+
**Code Intelligence** — Grep with regex, glob pattern matching, directory traversal
177+
178+
**Session Memory** — Auto-saves every conversation, resume where you left off
179+
180+
---
132181

133182
## Security Tool Scanner
134183

184+
HackCode detects **35 security tools** across 6 categories and tells the AI what's available on your system:
185+
135186
```bash
136187
hackcode --scan
137188
```
138189

139-
Detects 35 tools across 6 categories:
140-
141190
- **Recon** — nmap, masscan, whois, dig, amass, subfinder, assetfinder
142-
- **Web Testing** — gobuster, nikto, sqlmap, whatweb, wpscan, ffuf, dirb
143-
- **Exploitation** — metasploit, impacket, crackmapexec, evil-winrm, responder
144-
- **Password** — hydra, john, hashcat, medusa, ophcrack
191+
- **Web** — gobuster, nikto, sqlmap, whatweb, wpscan, ffuf, dirb
192+
- **Exploit** — metasploit, impacket, crackmapexec, evil-winrm, responder
193+
- **Passwords** — hydra, john, hashcat, medusa, ophcrack
145194
- **Forensics** — binwalk, foremost, volatility, exiftool, steghide, strings
146195
- **Utilities** — netcat, socat, proxychains, tor, sshuttle, tmux, jq, curl
147196

148-
## Configuration
197+
Missing a tool? HackCode installs it for you automatically via Homebrew or apt.
149198

150-
Config lives at `~/.config/hackcode/config.json`:
199+
---
200+
201+
## Usage
151202

152-
```json
153-
{
154-
"model": "hackcode-uncensored",
155-
"baseURL": "http://localhost:11434/v1"
156-
}
203+
```bash
204+
hackcode # Start hacking
205+
hackcode --scan # Show installed security tools
206+
hackcode --setup # Re-run the setup wizard
207+
hackcode --update # Update to the latest version
208+
hackcode --help # Show all commands
157209
```
158210

159-
Re-run setup anytime with `hackcode --setup`.
211+
Inside the REPL:
160212

161-
## Architecture
213+
```
214+
/help # List all commands
215+
/tools # Show available security tools
216+
/status # Current session info
217+
/compact # Summarize and free context
218+
```
162219

163-
HackCode's engine is a Rust fork of [Claw Code](https://github.com/antinomezco/claw-code), which is itself a Rust implementation of Claude Code's architecture. The engine provides:
220+
---
164221

165-
- **Streaming AI responses** with markdown rendering
166-
- **Tool execution** — sandboxed bash, file operations, grep/glob
167-
- **Session management** — auto-save, resume conversations
168-
- **Ollama integration** — auto-start, model management, OpenAI-compatible API
169-
- **Qwen3.5 native renderer** — proper tool-calling format, thinking mode handling
222+
## Architecture
170223

171-
### Project Structure
224+
HackCode is a fork of [Claw Code](https://github.com/ultraworkers/claw-code) — an open-source Rust recreation of Claude Code's architecture. Same streaming engine, same tool execution pipeline, same agentic loop. Rebuilt for offensive security.
172225

173226
```
174227
hackcode/
175-
├── rust/ # Rust workspace
228+
├── rust/ # Rust workspace
176229
│ └── crates/
177-
│ ├── rusty-claude-cli/ # CLI binary (main.rs, setup.rs, scanner.rs)
178-
│ ├── runtime/ # Conversation loop, prompts, config
179-
│ ├── api/ # Provider abstraction (Ollama, Anthropic, OpenAI)
180-
│ ├── tools/ # 50+ built-in tools
181-
│ ├── commands/ # Slash commands
182-
│ └── plugins/ # MCP plugin system
183-
├── cheatsheets/ # Security cheatsheets (SQLi, XSS, privesc, etc.)
184-
├── mcp-servers/ # Python MCP security tool servers
185-
├── Modelfile # Ollama model configuration
186-
├── Containerfile # Container build
187-
└── install.sh # One-line installer
230+
│ ├── rusty-claude-cli/ # CLI — setup wizard, scanner, REPL
231+
│ ├── runtime/ # Conversation engine, prompts, sessions
232+
│ ├── api/ # Provider layer (Ollama, OpenAI-compat)
233+
│ ├── tools/ # 50+ built-in tools
234+
│ ├── commands/ # Slash commands
235+
│ └── plugins/ # MCP plugin system
236+
├── cheatsheets/ # Security cheatsheets (SQLi, XSS, privesc)
237+
├── mcp-servers/ # Python MCP tool servers
238+
├── Modelfile # Ollama model config
239+
└── install.sh # One-line installer
240+
```
241+
242+
Pure Rust. Single binary. No Node.js, no Python runtime, no garbage collection. Starts in milliseconds.
243+
244+
---
245+
246+
## Self-Updating
247+
248+
HackCode checks for updates on startup. When a new version is available:
249+
250+
```
251+
[HackCode] Update available! Run: hackcode --update
188252
```
189253

254+
One command to pull the latest code and rebuild:
255+
256+
```bash
257+
hackcode --update
258+
```
259+
260+
Upstream improvements from Claw Code are synced daily via GitHub Actions — new tools, bug fixes, and engine improvements flow in automatically while your HackCode customizations stay intact.
261+
262+
---
263+
264+
## Contributing
265+
266+
HackCode is open source and welcomes contributions. See [CONTRIBUTING.md](CONTRIBUTING.md) for guidelines.
267+
268+
Areas where help is needed:
269+
- New security tool integrations
270+
- MCP server plugins for specific tools (Burp Suite, Wireshark, etc.)
271+
- Model fine-tuning for security tasks
272+
- Testing on different Linux distributions
273+
- Documentation and cheatsheets
274+
275+
---
276+
277+
## Legal
278+
279+
This tool is built for **authorized security testing, education, and research only**.
280+
281+
Using HackCode against systems without explicit written permission is illegal and may violate the Computer Fraud and Abuse Act (CFAA), the Computer Misuse Act, and similar laws worldwide.
282+
283+
The developers accept zero liability for misuse. Always get written authorization before testing.
284+
285+
---
286+
190287
## Credits
191288

192-
- Engine forked from [Claw Code](https://github.com/antinomezco/claw-code) by [@antinomezco](https://github.com/antinomezco)
193-
- Uncensored models by [tripolskypetr](https://ollama.com/tripolskypetr) and [vaultbox](https://ollama.com/vaultbox)
289+
Engine forked from [Claw Code](https://github.com/ultraworkers/claw-code). Uncensored models by [tripolskypetr](https://ollama.com/tripolskypetr) and [vaultbox](https://ollama.com/vaultbox).
194290

195291
## License
196292

@@ -199,6 +295,6 @@ MIT License. See [LICENSE](LICENSE) for details.
199295
---
200296

201297
<p align="center">
202-
<strong>Built for authorized security testing only.</strong><br>
203-
<em>If you break the law, that's on you.</em>
298+
<strong>Stop paying for AI that says no.</strong><br>
299+
<code>curl -fsSL https://raw.githubusercontent.com/itwizardo/hackcode/dev/install.sh | bash</code>
204300
</p>

0 commit comments

Comments
 (0)