forked from Rockachopa/Timmy-time-dashboard
Claude/remove persona system f vgt m (#126)
* Remove persona system, identity, and all Timmy references
Strip the codebase to pure orchestration logic:
- Delete TIMMY_IDENTITY.md and memory/self/identity.md
- Gut brain/identity.py to no-op stubs (empty returns)
- Remove all system prompts reinforcing Timmy's character, faith,
sovereignty, sign-off ("Sir, affirmative"), and agent roster
- Replace identity-laden prompts with generic local-AI-assistant prompts
- Remove "You work for Timmy" from all sub-agent system prompts
- Rename PersonaTools → AgentTools, PERSONA_TOOLKITS → AGENT_TOOLKITS
- Replace "timmy" agent ID with "orchestrator" across routes, marketplace,
tools catalog, and orchestrator class
- Strip Timmy references from config comments, templates, telegram bot,
chat API, and dashboard UI
- Delete tests/brain/test_identity.py entirely
- Fix all test assertions that checked for persona identity content
729 tests pass (2 pre-existing failures in test_calm.py unrelated).
https://claude.ai/code/session_01LjQGUE6nk9W9674zaxrYxy
* Add Taskosaur (PM + AI task execution) to docker-compose
Spins up Taskosaur alongside the dashboard on `docker compose up`:
- postgres:16-alpine (port 5432, Taskosaur DB)
- redis:7-alpine (Bull queue backend)
- taskosaur (ports 3000 API / 3001 UI)
- dashboard now depends_on taskosaur healthy
- TASKOSAUR_API_URL injected into dashboard environment
Dashboard can reach Taskosaur at http://taskosaur:3000/api on the
internal network. Frontend UI accessible at http://localhost:3001.
https://claude.ai/code/session_01LjQGUE6nk9W9674zaxrYxy
---------
Co-authored-by: Claude <noreply@anthropic.com>
This commit is contained in:
committed by
GitHub
parent
548a3f980d
commit
425e7da380
@@ -1,11 +1,10 @@
|
||||
"""Unified memory interface for Timmy.
|
||||
"""Unified memory interface.
|
||||
|
||||
One API, two backends:
|
||||
- **Local SQLite** (default) — works immediately, no setup
|
||||
- **Distributed rqlite** — same API, replicated across Tailscale devices
|
||||
|
||||
Every module that needs to store or recall memory uses this interface.
|
||||
No more fragmented SQLite databases scattered across the codebase.
|
||||
|
||||
Usage:
|
||||
from brain.memory import UnifiedMemory
|
||||
@@ -14,19 +13,14 @@ Usage:
|
||||
|
||||
# Store
|
||||
await memory.remember("User prefers dark mode", tags=["preference"])
|
||||
memory.remember_sync("User prefers dark mode", tags=["preference"])
|
||||
|
||||
# Recall
|
||||
results = await memory.recall("what does the user prefer?")
|
||||
results = memory.recall_sync("what does the user prefer?")
|
||||
|
||||
# Facts
|
||||
await memory.store_fact("user_preference", "Prefers dark mode")
|
||||
facts = await memory.get_facts("user_preference")
|
||||
|
||||
# Identity
|
||||
identity = memory.get_identity()
|
||||
|
||||
# Context for prompt
|
||||
context = await memory.get_context("current user question")
|
||||
"""
|
||||
@@ -61,13 +55,11 @@ def _get_db_path() -> Path:
|
||||
|
||||
|
||||
class UnifiedMemory:
|
||||
"""Unified memory interface for Timmy.
|
||||
"""Unified memory interface.
|
||||
|
||||
Provides a single API for all memory operations. Defaults to local
|
||||
SQLite. When rqlite is available (detected via RQLITE_URL env var),
|
||||
delegates to BrainClient for distributed operation.
|
||||
|
||||
The interface is the same. The substrate is disposable.
|
||||
"""
|
||||
|
||||
def __init__(
|
||||
@@ -525,22 +517,12 @@ class UnifiedMemory:
|
||||
# ──────────────────────────────────────────────────────────────────────
|
||||
|
||||
def get_identity(self) -> str:
|
||||
"""Load the canonical identity document.
|
||||
|
||||
Returns:
|
||||
Full text of TIMMY_IDENTITY.md.
|
||||
"""
|
||||
from brain.identity import get_canonical_identity
|
||||
return get_canonical_identity()
|
||||
"""Return empty string — identity system removed."""
|
||||
return ""
|
||||
|
||||
def get_identity_for_prompt(self) -> str:
|
||||
"""Get identity formatted for system prompt injection.
|
||||
|
||||
Returns:
|
||||
Compact identity block for prompt injection.
|
||||
"""
|
||||
from brain.identity import get_identity_for_prompt
|
||||
return get_identity_for_prompt()
|
||||
"""Return empty string — identity system removed."""
|
||||
return ""
|
||||
|
||||
# ──────────────────────────────────────────────────────────────────────
|
||||
# Context Building
|
||||
@@ -559,11 +541,6 @@ class UnifiedMemory:
|
||||
"""
|
||||
parts = []
|
||||
|
||||
# Identity (always first)
|
||||
identity = self.get_identity_for_prompt()
|
||||
if identity:
|
||||
parts.append(identity)
|
||||
|
||||
# Recent activity
|
||||
recent = await self.get_recent(hours=24, limit=5)
|
||||
if recent:
|
||||
@@ -622,7 +599,7 @@ class UnifiedMemory:
|
||||
_default_memory: Optional[UnifiedMemory] = None
|
||||
|
||||
|
||||
def get_memory(source: str = "timmy") -> UnifiedMemory:
|
||||
def get_memory(source: str = "agent") -> UnifiedMemory:
|
||||
"""Get the singleton UnifiedMemory instance.
|
||||
|
||||
Args:
|
||||
@@ -647,7 +624,7 @@ CREATE TABLE IF NOT EXISTS memories (
|
||||
id INTEGER PRIMARY KEY AUTOINCREMENT,
|
||||
content TEXT NOT NULL,
|
||||
embedding BLOB,
|
||||
source TEXT DEFAULT 'timmy',
|
||||
source TEXT DEFAULT 'agent',
|
||||
tags TEXT DEFAULT '[]',
|
||||
metadata TEXT DEFAULT '{}',
|
||||
created_at TEXT NOT NULL
|
||||
|
||||
Reference in New Issue
Block a user