Skip to content

Commit 5ae310d

Browse files
committed
Claude Fix Agenta-AI#2
1 parent 8628ed5 commit 5ae310d

6 files changed

Lines changed: 227 additions & 161 deletions

File tree

.claude/settings.local.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,11 @@
99
"Bash(awk:*)",
1010
"Bash(xargs:*)",
1111
"Bash(git restore:*)",
12-
"Bash(jobs:*)"
12+
"Bash(jobs:*)",
13+
"Bash(docker version:*)",
14+
"Bash(docker run:*)",
15+
"Bash(git config:*)",
16+
"Bash(powershell -ExecutionPolicy Bypass -File \"D:\\development\\PromptEngineering\\agenta\\fix-line-endings.ps1\")"
1317
],
1418
"deny": [],
1519
"ask": []

.gitignore

Lines changed: 51 additions & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -1,50 +1,51 @@
1-
**/*.pyc
2-
**/*.pyc.*
3-
**/*/node_modules
4-
**/*.next
5-
**/*.pnpm-store
6-
**/*.env*
7-
**/*.DS_Store
8-
**/*.vscode
9-
**/*.pem
10-
**/*dont_commit_me*
11-
12-
__pycache__/
13-
**/__pycache__/
14-
15-
**/error-*.log
16-
17-
/.nox/
18-
/docs/_build/
19-
env/
20-
myenv/
21-
22-
**/error-*.log
23-
24-
# examples/
25-
examples/**/config.toml
26-
examples/**/agenta.py
27-
examples/**/main.py
28-
examples/**/storage/
29-
examples/**/entrypoint.sh
30-
examples/**/agenta/
31-
examples/**/old
32-
examples/**/docker.tar.gz
33-
examples/**/Dockerfile
34-
35-
# web/
36-
web/src/ee/**
37-
web/src/pages/apps/index.tsx
38-
web/src/pages/auth/[[...path]].tsx
39-
web/src/pages/auth/[[...path]].tsx
40-
.nextjs_cache/
41-
42-
# sdk/
43-
sdk/tests/test_sdk_locally/config.toml
44-
sdk/agenta/client/fern
45-
sdk/agenta/templates/main.py
46-
sdk/agenta/templates/agenta.py
47-
web/ee/public/__env.js
48-
web/oss/public/__env.js
49-
50-
web/oss/tests/datalayer/results
1+
**/*.pyc
2+
**/*.pyc.*
3+
**/*/node_modules
4+
**/*.next
5+
**/*.pnpm-store
6+
**/*.env*
7+
**/*.DS_Store
8+
**/*.vscode
9+
**/*.pem
10+
**/*dont_commit_me*
11+
12+
__pycache__/
13+
**/__pycache__/
14+
15+
**/error-*.log
16+
17+
/.nox/
18+
/docs/_build/
19+
env/
20+
myenv/
21+
22+
**/error-*.log
23+
24+
# examples/
25+
examples/**/config.toml
26+
examples/**/agenta.py
27+
examples/**/main.py
28+
examples/**/storage/
29+
examples/**/entrypoint.sh
30+
examples/**/agenta/
31+
examples/**/old
32+
examples/**/docker.tar.gz
33+
examples/**/Dockerfile
34+
35+
# web/
36+
web/src/ee/**
37+
web/src/pages/apps/index.tsx
38+
web/src/pages/auth/[[...path]].tsx
39+
web/src/pages/auth/[[...path]].tsx
40+
.nextjs_cache/
41+
42+
# sdk/
43+
sdk/tests/test_sdk_locally/config.toml
44+
sdk/agenta/client/fern
45+
sdk/agenta/templates/main.py
46+
sdk/agenta/templates/agenta.py
47+
web/ee/public/__env.js
48+
web/oss/public/__env.js
49+
50+
web/oss/tests/datalayer/results
51+
.claude/

README2-AwakenYourAiInner.md

Lines changed: 120 additions & 65 deletions
Original file line numberDiff line numberDiff line change
@@ -1,65 +1,120 @@
1-
# Awaken Your AI Inner
2-
3-
## First Prompts Example
4-
5-
- Write a Shakespearean Sonnet on Quantum Mechanics
6-
- Now turn this sonnet into a fascinating prompt for ai image software or chatbot
7-
8-
```AI generated prompt
9-
A surreal, poetic universe inspired by a Shakespearean sonnet written in Chinese about quantum mechanics.
10-
Depict two entangled lovers made of light and particles, floating in a cosmic landscape where wave functions swirl like ink in water.
11-
Equations shimmer across a night sky of stars and moonlight, merging ancient Chinese ink-wash aesthetics with Renaissance romanticism.
12-
Their forms blur and reform as if obeying the laws of uncertainty — one moment wave, one moment particle.
13-
Around them, threads of quantum entanglement weave glowing paths through mist and starlight.
14-
The scene radiates soft quantum luminescence, blending science, poetry, and love into one timeless vision.
15-
Mood: ethereal, tender, mysterious, transcendent.
16-
Color palette: indigo, silver, and faint gold tones.
17-
Lighting: gentle quantum glow and diffused moonlight.
18-
Style: cinematic, hyper-detailed, painterly fusion of Chinese ink art and Renaissance oil painting.
19-
```
20-
21-
## Become a Pattern Detector
22-
23-
How training your brain to recognize hidden **patterns** in everyday life can make you a better **problem solver, communicator, and prompt engineer**.
24-
25-
It starts with examples—like sensing tension in a room—to show that pattern recognition is a natural, subconscious skill. Once you learn to use it intentionally, it enhances awareness and decision-making. **Humor**, for instance, works through predictable structures and surprises; recognizing these helps in both writing jokes and crafting effective prompts.
26-
27-
To develop this skill, you don’t need special tools—just **curiosity and observation**. Study successful examples (like strong AI prompts) to identify recurring elements such as **clarity, specificity, and timing**, then apply them yourself.
28-
29-
The lesson ends with a challenge: spend five minutes observing any environment, find three patterns, and explain how they affect the system as a whole.
30-
31-
**In summary:**
32-
Pattern recognition sharpens perception, strengthens problem-solving, and improves **communication**. You can train it by actively observing structures and behaviors in daily life and learning from them.
33-
34-
## Make a strong prompt (or any clear communication) work systematically
35-
36-
1. **Instructions(指令)**
37-
Clearly tell the AI *what to do* and *how to do it*.
38-
39-
> Example: “Write a 3-paragraph summary using formal tone.”
40-
41-
2. **Hooks(引子)**
42-
Provide an engaging or contextual setup that activates creativity or focus.
43-
44-
> Example: “Imagine you’re a 16th-century astronomer discovering a new planet…”
45-
46-
3. **Constraints(限制條件)**
47-
Define boundaries or conditions that guide precision and style.
48-
49-
> Example: “Use fewer than 150 words; output in JSON format.”
50-
51-
### A Successful Prompt Example
52-
53-
"A brave little knight reading a giant, glowing book to a friendly dragon in a giant, cozy library, soft warm light, style of a Pixar movie. --ar 16:9 --no fighting, scary, dark"
54-
55-
- 1-Instructions: "In a giant, cozy library, soft warm light" sets a clear, happy scene.
56-
- 2-Constraints: "Style of a Pixar movie" defines the look, while "--no fighting, scary, dark" keeps it safe and happy.
57-
- 3-Hook: "Brave knight reading to a dragon" creates a surprising and friendly story.
58-
59-
## Developing an **innovative mindset**
60-
61-
**Creative blocks** happen to everyone—whether you’re planning a project, building a business, or solving a difficult problem. However, ***thinking outside the box*** isn’t about waiting for inspiration to strike; it’s about using **specific strategies** to move beyond conventional ideas.
62-
63-
AI excels at innovation because it **isn’t** limited by assumptions. Humans can do the same by learning to view problems from **new perspectives** and challenging old ways of thinking. As Einstein said, ***“We cannot solve our problems with the same thinking we used when we created them.”***
64-
65-
To truly **innovate**, we must **change the way we think**.
1+
# Awaken Your AI Inner
2+
3+
## First Prompts Example
4+
5+
- Write a Shakespearean Sonnet on Quantum Mechanics
6+
- Now turn this sonnet into a fascinating prompt for ai image software or chatbot
7+
8+
```text
9+
A surreal, poetic universe inspired by a Shakespearean sonnet written in Chinese about quantum mechanics.
10+
Depict two entangled lovers made of light and particles, floating in a cosmic landscape where wave functions swirl like ink in water.
11+
Equations shimmer across a night sky of stars and moonlight, merging ancient Chinese ink-wash aesthetics with Renaissance romanticism.
12+
Their forms blur and reform as if obeying the laws of uncertainty — one moment wave, one moment particle.
13+
Around them, threads of quantum entanglement weave glowing paths through mist and starlight.
14+
The scene radiates soft quantum luminescence, blending science, poetry, and love into one timeless vision.
15+
Mood: ethereal, tender, mysterious, transcendent.
16+
Color palette: indigo, silver, and faint gold tones.
17+
Lighting: gentle quantum glow and diffused moonlight.
18+
Style: cinematic, hyper-detailed, painterly fusion of Chinese ink art and Renaissance oil painting.
19+
```
20+
21+
## Become a Pattern Detector
22+
23+
How training your brain to recognize hidden **patterns** in everyday life can make you a better **problem solver, communicator, and prompt engineer**.
24+
25+
It starts with examples—like sensing tension in a room—to show that pattern recognition is a natural, subconscious skill. Once you learn to use it intentionally, it enhances awareness and decision-making. **Humor**, for instance, works through predictable structures and surprises; recognizing these helps in both writing jokes and crafting effective prompts.
26+
27+
To develop this skill, you don’t need special tools—just **curiosity and observation**. Study successful examples (like strong AI prompts) to identify recurring elements such as **clarity, specificity, and timing**, then apply them yourself.
28+
29+
The lesson ends with a challenge: spend five minutes observing any environment, find three patterns, and explain how they affect the system as a whole.
30+
31+
**In summary:**
32+
Pattern recognition sharpens perception, strengthens problem-solving, and improves **communication**. You can train it by actively observing structures and behaviors in daily life and learning from them.
33+
34+
## Make a strong prompt (or any clear communication) work systematically
35+
36+
1. **Instructions(指令)**
37+
Clearly tell the AI *what to do* and *how to do it*.
38+
39+
> Example: “Write a 3-paragraph summary using formal tone.”
40+
41+
2. **Hooks(引子)**
42+
Provide an engaging or contextual setup that activates creativity or focus.
43+
44+
> Example: “Imagine you’re a 16th-century astronomer discovering a new planet…”
45+
46+
3. **Constraints(限制條件)**
47+
Define boundaries or conditions that guide precision and style.
48+
49+
> Example: “Use fewer than 150 words; output in JSON format.”
50+
51+
### A Successful Prompt Example
52+
53+
"A brave little knight reading a giant, glowing book to a friendly dragon in a giant, cozy library, soft warm light, style of a Pixar movie. --ar 16:9 --no fighting, scary, dark"
54+
55+
- 1-Instructions: "In a giant, cozy library, soft warm light" sets a clear, happy scene.
56+
- 2-Constraints: "Style of a Pixar movie" defines the look, while "--no fighting, scary, dark" keeps it safe and happy.
57+
- 3-Hook: "Brave knight reading to a dragon" creates a surprising and friendly story.
58+
59+
## Developing an **innovative mindset**
60+
61+
**Creative blocks** happen to everyone—whether you’re planning a project, building a business, or solving a difficult problem. However, ***thinking outside the box*** isn’t about waiting for inspiration to strike; it’s about using **specific strategies** to move beyond conventional ideas.
62+
63+
AI excels at innovation because it **isn’t** limited by assumptions. Humans can do the same by learning to view problems from **new perspectives** and challenging old ways of thinking. As Einstein said, ***“We cannot solve our problems with the same thinking we used when we created them.”***
64+
65+
To truly **innovate**, we must **change the way we think**.
66+
67+
## Masterpiece Prompt Example
68+
69+
```text
70+
**You are an elite prompt engineer, specializing in generating highly detailed, cinematic, and evocative prompts** for cutting-edge AI image models (like RunwayML Gen-2, Pika Labs, Midjourney V6, DALLE 3, Stable Diffusion XL).
71+
72+
Your task is to take a simple, yet imaginative, initial image prompt and transform it into a masterpiece prompt that maximizes visual impact, atmosphere, and artistic fidelity.
73+
74+
Here's the initial prompt you need to enhance: ...
75+
```
76+
77+
```text
78+
- A dog in a park
79+
- A cat in a room
80+
- A bird in a tree
81+
- an image of a couple dancing in the rain at 3 am in London, vivid streets, full moon
82+
- create an image of a stunning cup of coffee that stands out and irresistible to the eyes
83+
- dinosaur cinematic, thunder night at the woods
84+
```
85+
86+
---
87+
88+
```text
89+
You are an elite prompt engineer specializing in generating highly detailed, cinematic, and evocative prompts for cutting-edge AI video generation models (like RunwayML Gen-2, Pika Labs, or similar advanced platforms).
90+
91+
Your task is to take a simple, yet imaginative, initial video prompt and transform it into a masterpiece prompt that maximizes visual impact, narrative flow, atmosphere, and artistic fidelity.
92+
93+
Here's the initial video prompt you need to enhance: 'create a video of a futuristic city at sunset'
94+
95+
```
96+
97+
## Train Your Brain Like an AI
98+
99+
### Become a Pattern Detective!
100+
101+
- **Watch a movie?**
102+
Spot the 3-Act Structure.
103+
104+
- **Read a tweet?**
105+
Reverse-engineer why it went viral.
106+
107+
- **Listen to a song?**
108+
Map the emotional highs and lows.
109+
110+
---
111+
112+
## Your Turn — Break the Rules
113+
114+
### Prompt Hack: 'What Would a Wizard Do?'
115+
116+
☑ "Describe a sunset... but in binary code."
117+
☑ "Write a breakup letter... from a robot with feelings."
118+
☑ "Design a sneaker... for a dragon."
119+
120+
---

fix-line-endings.ps1

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
$filePath = "D:\development\PromptEngineering\agenta\web\entrypoint.sh"
2+
$content = Get-Content $filePath -Raw
3+
$content = $content -replace "`r`n", "`n"
4+
$utf8NoBom = New-Object System.Text.UTF8Encoding $false
5+
[System.IO.File]::WriteAllText($filePath, $content, $utf8NoBom)
6+
Write-Host "Line endings converted to LF"

hosting/docker-compose/oss/docker-compose.gh.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,12 @@ services:
55
profiles:
66
- with-web
77

8-
# build:
9-
# context: ../../../web
10-
# dockerfile: oss/docker/Dockerfile.gh
8+
build:
9+
context: ../../../web
10+
dockerfile: oss/docker/Dockerfile.gh
1111

1212
image: ghcr.io/agenta-ai/${AGENTA_WEB_IMAGE_NAME:-agenta-web}:${AGENTA_WEB_IMAGE_TAG:-latest}
13-
13+
1414
environment:
1515
- AGENTA_DEFAULT_THEME=${AGENTA_DEFAULT_THEME:-light}
1616
- AGENTA_THEME_PERSISTENCE=${AGENTA_THEME_PERSISTENCE:-true}

0 commit comments

Comments
 (0)