From 130dd99387b7fb650df73d499d1de213a457b57d Mon Sep 17 00:00:00 2001 From: Tarun Suresh Date: Mon, 16 Mar 2026 18:44:03 +0000 Subject: [PATCH] feat: create default SOUL.md, MEMORY.md, USER.md on jarvis init Co-Authored-By: Claude Opus 4.6 (1M context) --- src/openjarvis/cli/init_cmd.py | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/src/openjarvis/cli/init_cmd.py b/src/openjarvis/cli/init_cmd.py index a70d646f..41fb1864 100644 --- a/src/openjarvis/cli/init_cmd.py +++ b/src/openjarvis/cli/init_cmd.py @@ -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: