Add Claude Agent workspace configuration and utility scripts: - CLAUDE.md: Agent documentation and instructions - SETUP-COMPLETE.md: Setup completion notes - start-agent.sh: Script to start tmux session - new-task.sh: Script for new task workflow - finish-task.sh: Script to finish tasks - work.sh: Main work script 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
147 lines
3.0 KiB
Markdown
147 lines
3.0 KiB
Markdown
# LXC Claude Agent - Setup Complete ✓
|
|
|
|
**Data setup:** 2025-12-31
|
|
**Status:** Functional
|
|
|
|
## Informații LXC
|
|
|
|
| Parametru | Valoare |
|
|
|-----------|---------|
|
|
| VMID | 171 |
|
|
| Hostname | claude-agent |
|
|
| IP | 10.0.20.171 |
|
|
| Gateway | 10.0.20.1 |
|
|
| Host Proxmox | pveelite (10.0.20.202) |
|
|
| User | claude |
|
|
| Storage | local-zfs (32GB) |
|
|
| RAM | 4GB |
|
|
| CPU | 2 cores |
|
|
|
|
## Componente Instalate
|
|
|
|
| Component | Versiune |
|
|
|-----------|----------|
|
|
| Ubuntu | 24.04 LTS |
|
|
| Node.js | v20.19.6 (via nvm) |
|
|
| Claude Code | 2.0.76 |
|
|
| tmux | 3.4 |
|
|
| Git | 2.43.0 |
|
|
|
|
## Comenzi Utile
|
|
|
|
### Conectare SSH
|
|
```bash
|
|
ssh claude@10.0.20.171
|
|
```
|
|
|
|
### Pornire sesiune tmux agent
|
|
```bash
|
|
~/start-agent.sh
|
|
```
|
|
|
|
### Pornire Claude Code
|
|
```bash
|
|
source ~/.nvm/nvm.sh
|
|
cd /workspace/<project>
|
|
claude
|
|
```
|
|
|
|
### Atașare la sesiune tmux existentă
|
|
```bash
|
|
tmux attach -t agent
|
|
```
|
|
|
|
### Detașare din tmux
|
|
```
|
|
Ctrl+A, d
|
|
```
|
|
|
|
## VS Code Remote SSH Config
|
|
|
|
Adaugă în `~/.ssh/config`:
|
|
```
|
|
Host claude-agent
|
|
HostName 10.0.20.171
|
|
User claude
|
|
IdentityFile ~/.ssh/id_rsa
|
|
ForwardAgent yes
|
|
```
|
|
|
|
Apoi în VS Code: `Remote-SSH: Connect to Host...` → `claude-agent`
|
|
|
|
## SSH Key pentru Gitea
|
|
|
|
**Adaugă acest key în Gitea → Settings → SSH/GPG Keys → Add Key:**
|
|
|
|
```
|
|
ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIKrxEqh5L1SRrZ4f6j04mLaNdr6LJf+xb9EKBvwegeXS claude-agent@romfast.ro
|
|
```
|
|
|
|
## Next Steps (Manual)
|
|
|
|
1. **Adaugă SSH key în Gitea:**
|
|
- Mergi la https://gitea.romfast.ro
|
|
- Settings → SSH/GPG Keys → Add Key
|
|
- Paste-uiește cheia de mai sus
|
|
|
|
2. **Prima autentificare Claude Code:**
|
|
```bash
|
|
ssh claude@10.0.20.171
|
|
source ~/.nvm/nvm.sh
|
|
claude
|
|
```
|
|
- Va cere să te autentifici cu contul Anthropic
|
|
- Urmează instrucțiunile din terminal
|
|
|
|
3. **Test clonare repository:**
|
|
```bash
|
|
cd /workspace
|
|
git clone git@gitea.romfast.ro:romfast/romfastsql.git
|
|
```
|
|
|
|
4. **Configurare VS Code Remote (opțional):**
|
|
- Instalează extensia "Remote - SSH" în VS Code
|
|
- Adaugă configurația SSH de mai sus
|
|
- Conectează-te la claude-agent
|
|
|
|
## Structura Directoare
|
|
|
|
```
|
|
/home/claude/
|
|
├── .ssh/
|
|
│ ├── authorized_keys # Key pentru acces SSH
|
|
│ ├── gitea_ed25519 # Key privat pentru Gitea
|
|
│ ├── gitea_ed25519.pub # Key public pentru Gitea
|
|
│ └── config # SSH config pentru Gitea
|
|
├── .nvm/ # Node Version Manager
|
|
├── .claude/
|
|
│ └── settings.json # Claude Code permissions
|
|
├── .tmux.conf # Configurare tmux
|
|
└── start-agent.sh # Script helper tmux
|
|
|
|
/workspace/ # Director pentru proiecte
|
|
├── CLAUDE.md # Template info agent
|
|
└── SETUP-COMPLETE.md # Acest fișier
|
|
```
|
|
|
|
## Troubleshooting
|
|
|
|
### Claude Code nu pornește
|
|
```bash
|
|
source ~/.nvm/nvm.sh
|
|
which claude
|
|
```
|
|
|
|
### tmux nu găsește sesiunea
|
|
```bash
|
|
tmux ls
|
|
tmux new -s agent
|
|
```
|
|
|
|
### Git clone eșuează
|
|
- Verifică dacă ai adăugat SSH key-ul în Gitea
|
|
- Testează cu: `ssh -T git@gitea.romfast.ro`
|
|
|
|
---
|
|
*Setup realizat automat cu Claude Code*
|