mirror of
https://github.com/open-jarvis/OpenJarvis.git
synced 2026-08-14 00:47:52 +00:00
feat: create default SOUL.md, MEMORY.md, USER.md on jarvis init
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 4.6
parent
981f665913
commit
130dd99387
@@ -265,6 +265,25 @@ def init(
|
||||
)
|
||||
console.print("[green]Config written successfully.[/green]")
|
||||
|
||||
# Create default memory files (skip if they already exist)
|
||||
soul_path = DEFAULT_CONFIG_DIR / "SOUL.md"
|
||||
if not soul_path.exists():
|
||||
soul_path.write_text(
|
||||
"# Agent Persona\n\n"
|
||||
"You are Jarvis, a helpful personal AI assistant.\n"
|
||||
)
|
||||
|
||||
memory_path = DEFAULT_CONFIG_DIR / "MEMORY.md"
|
||||
if not memory_path.exists():
|
||||
memory_path.write_text("# Agent Memory\n\n")
|
||||
|
||||
user_path = DEFAULT_CONFIG_DIR / "USER.md"
|
||||
if not user_path.exists():
|
||||
user_path.write_text("# User Profile\n\n")
|
||||
|
||||
skills_dir = DEFAULT_CONFIG_DIR / "skills"
|
||||
skills_dir.mkdir(exist_ok=True)
|
||||
|
||||
selected_engine = engine or recommend_engine(hw)
|
||||
model = recommend_model(hw, selected_engine)
|
||||
if model:
|
||||
|
||||
Reference in New Issue
Block a user