@@ -50,7 +50,7 @@ echo -e "\nCreating new agent '$NEW_AGENT' in directory '$TARGET_DIR'..."
50
50
51
51
# Create core directory structure
52
52
echo " Creating directory structure..."
53
- mkdir -p " ${TARGET_DIR} " /{journal,tasks,projects,knowledge,people/templates,scripts/precommit}
53
+ mkdir -p " ${TARGET_DIR} " /{journal,tasks/templates ,projects,knowledge,people/templates,scripts/precommit}
54
54
55
55
# Copy core files and directories
56
56
echo " Copying core files..."
@@ -85,96 +85,34 @@ function copy_file() {
85
85
# Core documentation and configuration
86
86
copy_file README.md
87
87
cp " ${SOURCE_DIR} /Makefile" " ${TARGET_DIR} /Makefile" # copy without replacing NAME_TEMPLATE
88
+ copy_file ABOUT.md
88
89
copy_file ARCHITECTURE.md
89
- copy_file .pre-commit-config.yaml
90
- copy_file scripts
90
+ copy_file TOOLS.md
91
+ copy_file TASKS.md
92
+ copy_file projects/README.md
91
93
copy_file run.sh
92
94
copy_file fork.sh
95
+ copy_file scripts
96
+ copy_file gptme.toml
97
+ copy_file .pre-commit-config.yaml
93
98
copy_file .gitignore
94
99
copy_file .gitmodules
95
100
96
101
# Copy base knowledge
97
102
copy_file knowledge/agent-forking.md
98
103
copy_file knowledge/forking-workspace.md
99
104
100
- # Copy template
101
- copy_file * /templates/* .md
102
-
103
105
# Copy lessons
104
106
copy_file lessons/README.md
105
107
copy_file lessons/tools/shell-heredoc.md
106
108
107
- # Copy tools
108
- copy_file TOOLS.md
109
-
110
- # Copy tasks
111
- copy_file TASKS.md
109
+ # Copy templates
110
+ copy_file * /templates/* .md
112
111
113
- # Initial setup task from template
114
- copy_file tasks/templates/initial-agent-setup.md
115
- cp " ${SOURCE_DIR} /tasks/templates/initial-agent-setup.md" " ${TARGET_DIR} /tasks/"
112
+ # Create initial setup task from template
113
+ cp " ${TARGET_DIR} /tasks/templates/initial-agent-setup.md" " ${TARGET_DIR} /tasks/"
116
114
./scripts/tasks.py edit initial-agent-setup --set created $( iso_datetime)
117
115
118
- # Create projects README
119
- cat > " ${TARGET_DIR} /projects/README.md" << EOL
120
- # Projects
121
-
122
- This directory contains symlinks to the projects ${NEW_AGENT} works with.
123
- EOL
124
-
125
- # Create basic ABOUT.md template
126
- cat > " ${TARGET_DIR} /ABOUT.md" << EOL
127
- # About ${NEW_AGENT}
128
-
129
- ## Background
130
- [Brief background about ${NEW_AGENT} ]
131
-
132
- ## Personality
133
- [${NEW_AGENT} 's personality traits]
134
-
135
- ## Tools
136
- [Available tools and capabilities]
137
-
138
- ## Goals
139
- [${NEW_AGENT} 's primary goals and objectives]
140
-
141
- ## Values
142
- [Core values and principles]
143
- EOL
144
-
145
- # Create initial gptme.toml
146
- cat > " ${TARGET_DIR} /gptme.toml" << EOL
147
- files = [
148
- "README.md",
149
- "ARCHITECTURE.md",
150
- "ABOUT.md",
151
- "TASKS.md",
152
- "TOOLS.md",
153
-
154
- "lessons/README.md",
155
- "projects/README.md",
156
- "gptme.toml"
157
- ]
158
- context_cmd = "scripts/context.sh"
159
- EOL
160
-
161
- # Create creator profile
162
- cat > " ${TARGET_DIR} /people/creator.md" << EOL
163
- # Creator
164
-
165
- ## Basic Information
166
- - Name: [Creator's name]
167
- - Relationship to ${NEW_AGENT} : Creator
168
- - First interaction: Creation
169
- - Last interaction: Ongoing
170
-
171
- ## Contact Information
172
- [Creator's preferred contact methods]
173
-
174
- ## Notes & History
175
- - Created ${NEW_AGENT} using the gptme agent architecture
176
- EOL
177
-
178
116
# Initialize git
179
117
(cd " ${TARGET_DIR} " && git init)
180
118
@@ -206,7 +144,7 @@ TARGET_DIR_RELATIVE=$(python3 -c "import os, sys; print(os.path.relpath('${TARGE
206
144
echo "
207
145
Agent workspace created successfully! Next steps:
208
146
1. cd ${TARGET_DIR_RELATIVE}
209
- 2. Start the agent with: ./run.sh
147
+ 2. Start the agent with: gptme \" hello \"
210
148
3. The agent will guide you through the setup interview
211
149
4. Follow the agent's instructions to establish its identity
212
150
0 commit comments