Cline rules
.clinerules/project.mdCline rules
Quality
80/100
Scores the file, not the repository.Length
370 words
11 headings · 1 code blocksRepository
0
— · pushed 45 days agoLast changed
3 days ago
First indexed 3 days ago.1# Agent-PC — Cline Rules23## Project Identity45- **Name:** Agent-PC6- **Type:** AI-powered remote Linux control system7- **Language:** Python 3.11 (server), Docker Compose (orchestration)8- **Framework:** FastAPI (tool engine), Open WebUI (LLM brain)910## Architecture Rules11121. Agent-PC server is a **TOOL EXECUTION ENGINE ONLY** — no LLM client, no chat endpoints132. Open WebUI handles ALL LLM logic (chat, streaming, multi-model, tool calling)143. Communication: Open WebUI → HTTP POST → Agent-PC `/tool` endpoint154. Authentication between services: `AUTH_SECRET` shared secret via query param165. SSH from container to host for command execution (with local fallback)1718## Code Conventions1920- **All code and comments:** English21- **PEP 8** with 4-space indentation22- Type hints where they add clarity23- Tool functions return `{"ok": bool, ...}` dict24- Errors return `{"ok": false, "error": "message"}`2526## File Locations2728- `server/main.py` — FastAPI app (3 endpoints: health, tools, tool)29- `server/tools.py` — Tool definitions + implementations30- `server/config.py` — Environment variable configuration31- `docker-compose.yml` — Service orchestration32- `docker/agent-pc/Dockerfile` — Container image33- `open-webui/tools/` — Open WebUI function definitions34- `AI/` — Project documentation for AI agents35- `ios/` — Legacy SwiftUI app (not actively maintained)3637## Key Constraints3839- **NO** `openai` library in server — removed in v2.040- **NO** WebSocket or chat endpoints in Agent-PC server41- **NO** hardcoded API keys — use env vars or Open WebUI admin panel42- **NO** direct `subprocess` from container to host without SSH as option43- Docker volumes MUST use named volumes (not bind mounts for data)4445## When Adding Features46471. New tools: add to `TOOL_DEFINITIONS` + `TOOL_MAP` in `tools.py`482. Update `open-webui/tools/agent-pc-tools.json`493. Rebuild: `docker compose build agent-pc && docker compose up -d`504. Re-import tools in Open WebUI admin panel5152## When Modifying Docker53541. Update `docker-compose.yml` for service changes552. Update `docker/agent-pc/Dockerfile` for dependencies563. Update `.env.docker` for new variables574. Test: `docker compose up -d --build`585. Verify health: `curl http://localhost:8765/health`5960## Testing6162```bash63# Local testing (no Docker)64cd server && python -m venv venv && source venv/bin/activate65pip install -r requirements.txt && python main.py6667# Test endpoints68curl http://localhost:8765/health69curl "http://localhost:8765/tools?secret=agent-pc-local-secret-change-me"70curl -X POST "http://localhost:8765/tool?secret=agent-pc-local-secret-change-me" \71 -H "Content-Type: application/json" \72 -d '{"name":"execute_command","args":{"command":"echo test"}}'73```74
Also in electricpants01/agent-pc
Diff this repo’s formatsOne repository carrying more than one format is the comparison this product exists for: does anyone actually write different content in each file, or is one a copy of the other?
| Repository | Format | Stack | Covers | Score | Changed |
|---|---|---|---|---|---|
| electricpants01/agent-pc.cursor/rules/project.mdc · 0 | Cursor rules | setupteststyledo-not+1 | 89/100 | 3 days ago |
Similar configs
Same format, overlapping stack, ranked by quality.
| Repository | Format | Stack | Covers | Score | Changed |
|---|---|---|---|---|---|
| JCodesMore/ai-website-cloner-template.clinerules · 31k | Cline rules | buildlint-formatstylearch+3 | 97/100 | 2 days ago | |
| BryaanF/LiantPortfolio.clinerules/project-guidelines.md · 0 | Cline rules | buildstylearchgit+2 | 96/100 | 3 days ago | |
| u9401066/pubmed-search-mcp.clinerules/50-pubmed-project.md · 23 | Cline rules | testlint-formatstylearch+1 | 94/100 | 3 days ago | |
| ryok/python-boilerplate.clinerules/common-commands.md · 0 | Cline rules | setupbuildtestlint-format+3 | 90/100 | 2 days ago | |
| u9401066/pubmed-search-mcp.clinerules/60-pubmed-python.md · 23 | Cline rules | setuptestlint-formatstyle+2 | 86/100 | 3 days ago | |
| u9401066/pubmed-search-mcp.clinerules/00-project.md · 23 | Cline rules | testlint-formatstylearch+1 | 86/100 | 3 days ago | |
| blendsdk/blue-green.clinerules/project.md · 0 | Cline rules | setupbuildteststyle+8 | 84/100 | 3 days ago | |
| KiralyAlparCsaba/Sapi3D.clinerules/common_tasks.md · 0 | Cline rules | setupbuildtestdatabase+3 | 82/100 | 2 days ago |
