Skip to content

armgit / avibe

Public Imported from GitHub
0

Make your computer a home for your AI partner. Avibe is the local-first Agent OS: Vibey, its built-in AI partner, works out of the box, and Claude Code, Codex & OpenCode run unchanged beside it — reach them from your browser, phone, or any chat app.

Merge remote-tracking branch 'origin/master' into feature/telegram-im

cyh871f7bbd7d35
diff --cc config/paths.py
index 0069ac95a,cd5dd9bb6..27504ee25
--- a/config/paths.py
+++ b/config/paths.py
@@@ -57,10 -57,25 +57,29 @@@ def get_sessions_path() -> Path
return get_state_dir() / "sessions.json"
+def get_discovered_chats_path() -> Path:
+ return get_state_dir() / "discovered_chats.json"
+
+
+ def get_user_preferences_path() -> Path:
+ return get_state_dir() / "user_preferences.md"
+
+
+ _USER_PREFERENCES_TEMPLATE = """# User Context and Preferences
+
+ Use this file for durable user context, stable preferences, and recurring working patterns.
+ Prefer adding notes under `## Users`.
+ Keep entries short, factual, reusable, deduplicated, and free of secrets unless the user explicitly asks.
+
+ ## Users
+ ### platform/user_id
+ - Add stable notes about how this user prefers to communicate, work, and make decisions.
+
+ ## Shared
+ - Add cross-user notes here only when they are genuinely reusable.
+ """
+
+
def ensure_data_dirs() -> None:
get_config_dir().mkdir(parents=True, exist_ok=True)
get_state_dir().mkdir(parents=True, exist_ok=True)
diff --cc tests/test_v2_paths.py
index 766d87cac,93909b500..a1275550e
--- a/tests/test_v2_paths.py
+++ b/tests/test_v2_paths.py
@@@ -7,7 -7,7 +7,8 @@@ def test_paths_are_under_home()
assert paths.get_config_path().parent == paths.get_config_dir()
assert paths.get_settings_path().parent == paths.get_state_dir()
assert paths.get_sessions_path().parent == paths.get_state_dir()
+ assert paths.get_discovered_chats_path().parent == paths.get_state_dir()
+ assert paths.get_user_preferences_path().parent == paths.get_state_dir()
def test_ensure_data_dirs(tmp_path, monkeypatch):