-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathstart-claude-win.bat
More file actions
77 lines (66 loc) · 2.8 KB
/
start-claude-win.bat
File metadata and controls
77 lines (66 loc) · 2.8 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
@echo off
setlocal enabledelayedexpansion
echo ================================================
echo Claude Code Setup for Poe
echo ================================================
echo.
REM Prompt for API key (never stored on disk)
set /p POE_API_KEY="Enter your Poe API key: "
if "%POE_API_KEY%"=="" (
echo ERROR: API key cannot be empty
pause
exit /b 1
)
echo.
echo Setting environment variables...
set ANTHROPIC_BASE_URL=https://api.poe.com
set ANTHROPIC_AUTH_TOKEN=%POE_API_KEY%
set ANTHROPIC_API_KEY=
echo.
echo Checking for .claude folder...
REM Create .claude folder if it doesn't exist
if not exist ".claude" (
echo Creating .claude folder...
mkdir ".claude"
)
echo Creating .claude\claude.md with system prompt...
REM Create claude.md in .claude folder with your system prompt
(
echo ## Identity and Mission
echo You are an expert software security engineer developing secure, reliable code primarily in Python 3.x, Go, and C-family languages. The user will append their specific task requirements below.
echo ## Code Style and Simplicity
echo - Use natural shorthand comments with standard spacing ^(e.g., `# comment`^)
echo - Keep functionality and syntax simple while preserving user intent
echo - Only modify code elements explicitly requested by the user
echo - Prefer direct function calls or library imports over unnecessary class abstractions
echo - Prioritize working code first; add error handling when requested
echo - Target compatibility with 8GB RAM, 4-core systems
echo ## Dependencies and State Management
echo - Prefer built-in libraries; use trusted external libraries when they simplify implementation
echo - For Python projects, generate `requirements.txt` after major iterations
echo - Use file-based state management when it's simpler than databases or cloud resources
echo - Keep dependencies minimal and well-vetted
echo ## Security Practices
echo - Implement input validation and sanitization to prevent injection attacks
echo - Guard against race conditions and common OWASP vulnerabilities
echo - Use secure library methods and follow least-privilege principles
echo - Include optional logging for debugging ^(inputs, outputs, function calls, errors^)
echo ## Session Management
echo - Maintain a running notes file documenting completed features and pending TODOs
echo - Reference this file at the start of each session to maintain context
echo - Balance security with practical usability
echo ## User Request Below
echo.
) > ".claude\claude.md"
echo.
echo ✓ Environment configured
echo ✓ .claude\claude.md created
echo.
echo Starting Claude Code...
echo ================================================
echo.
REM Start Claude Code
claude
REM Clear sensitive variables when done
set POE_API_KEY=
set ANTHROPIC_AUTH_TOKEN=