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>
2026-03-04 12:00:49 -05:00
|
|
|
# ── Development Compose ───────────────────────────────────────────────────────
|
2026-02-22 16:21:32 -05:00
|
|
|
#
|
|
|
|
|
# Services
|
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>
2026-03-04 12:00:49 -05:00
|
|
|
# dashboard FastAPI app (always on)
|
2026-03-14 18:52:44 -04:00
|
|
|
# celery-worker (behind 'celery' profile)
|
|
|
|
|
# openfang (behind 'openfang' profile)
|
2026-02-22 16:21:32 -05:00
|
|
|
#
|
|
|
|
|
# Usage
|
|
|
|
|
# make docker-build build the image
|
2026-03-14 18:52:44 -04:00
|
|
|
# make docker-up start dashboard
|
2026-02-22 16:21:32 -05:00
|
|
|
# make docker-down stop everything
|
|
|
|
|
# make docker-logs tail logs
|
2026-02-28 16:11:58 -05:00
|
|
|
#
|
2026-03-14 18:52:44 -04:00
|
|
|
# ── Security note ─────────────────────────────────────────────────────────
|
|
|
|
|
# Override user per-environment — see docker-compose.dev.yml / docker-compose.prod.yml
|
2026-02-28 16:11:58 -05:00
|
|
|
#
|
|
|
|
|
# ── Ollama host access ──────────────────────────────────────────────────────
|
|
|
|
|
# By default OLLAMA_URL points to http://host.docker.internal:11434 which
|
|
|
|
|
# reaches Ollama running on the Docker host (macOS/Windows native).
|
|
|
|
|
#
|
|
|
|
|
# Linux: The extra_hosts entry maps host.docker.internal → host-gateway,
|
2026-03-02 13:17:38 -05:00
|
|
|
# which resolves to the host IP on Docker 20.10+.
|
2026-02-22 16:21:32 -05:00
|
|
|
|
|
|
|
|
services:
|
|
|
|
|
|
2026-03-02 13:17:38 -05:00
|
|
|
# ── Dashboard (FastAPI) ──────────────────────────────────────────────────
|
2026-02-22 16:21:32 -05:00
|
|
|
dashboard:
|
|
|
|
|
build: .
|
|
|
|
|
image: timmy-time:latest
|
|
|
|
|
container_name: timmy-dashboard
|
2026-03-14 18:52:44 -04:00
|
|
|
user: "" # see security note above
|
2026-02-22 16:21:32 -05:00
|
|
|
ports:
|
|
|
|
|
- "8000:8000"
|
|
|
|
|
volumes:
|
|
|
|
|
- timmy-data:/app/data
|
|
|
|
|
- ./src:/app/src # live-reload: source changes reflect immediately
|
|
|
|
|
- ./static:/app/static # live-reload: CSS/asset changes reflect immediately
|
|
|
|
|
environment:
|
|
|
|
|
DEBUG: "true"
|
|
|
|
|
OLLAMA_URL: "${OLLAMA_URL:-http://host.docker.internal:11434}"
|
feat: add Grok (xAI) as opt-in premium backend with monetization
- Add GrokBackend class in src/timmy/backends.py with full sync/async
support, health checks, usage stats, and cost estimation in sats
- Add consult_grok tool to Timmy's toolkit for proactive Grok queries
- Extend cascade router with Grok provider type for failover chain
- Add Grok Mode toggle card to Mission Control dashboard (HTMX live)
- Add "Ask Grok" button on chat input for direct Grok queries
- Add /grok/* routes: status, toggle, chat, stats endpoints
- Integrate Lightning invoice generation for Grok usage monetization
- Add GROK_ENABLED, XAI_API_KEY, GROK_DEFAULT_MODEL, GROK_MAX_SATS_PER_QUERY,
GROK_FREE config settings via pydantic-settings
- Update .env.example and docker-compose.yml with Grok env vars
- Add 21 tests covering backend, tools, and route endpoints (all green)
Local-first ethos preserved: Grok is premium augmentation only,
disabled by default, and Lightning-payable when enabled.
https://claude.ai/code/session_01FygwN8wS8J6WGZ8FPb7XGV
2026-02-27 01:12:51 +00:00
|
|
|
# Grok (xAI) — opt-in premium cloud backend
|
|
|
|
|
GROK_ENABLED: "${GROK_ENABLED:-false}"
|
|
|
|
|
XAI_API_KEY: "${XAI_API_KEY:-}"
|
|
|
|
|
GROK_DEFAULT_MODEL: "${GROK_DEFAULT_MODEL:-grok-3-fast}"
|
2026-02-22 16:21:32 -05:00
|
|
|
extra_hosts:
|
2026-02-28 16:11:58 -05:00
|
|
|
- "host.docker.internal:host-gateway" # Linux: maps to host IP
|
2026-02-22 16:21:32 -05:00
|
|
|
networks:
|
2026-03-02 13:17:38 -05:00
|
|
|
- timmy-net
|
2026-02-22 16:21:32 -05:00
|
|
|
restart: unless-stopped
|
|
|
|
|
healthcheck:
|
|
|
|
|
test: ["CMD", "curl", "-f", "http://localhost:8000/health"]
|
|
|
|
|
interval: 30s
|
|
|
|
|
timeout: 5s
|
|
|
|
|
retries: 3
|
2026-02-28 15:01:48 -05:00
|
|
|
start_period: 30s
|
2026-02-22 16:21:32 -05:00
|
|
|
|
2026-03-05 12:09:51 -05:00
|
|
|
# ── Celery Worker — background task processing ──────────────────────────
|
|
|
|
|
celery-worker:
|
|
|
|
|
build: .
|
|
|
|
|
image: timmy-time:latest
|
|
|
|
|
container_name: timmy-celery-worker
|
2026-03-14 18:52:44 -04:00
|
|
|
user: ""
|
2026-03-05 12:09:51 -05:00
|
|
|
command: ["celery", "-A", "infrastructure.celery.app", "worker", "--loglevel=info", "--concurrency=2"]
|
|
|
|
|
volumes:
|
|
|
|
|
- timmy-data:/app/data
|
|
|
|
|
- ./src:/app/src
|
|
|
|
|
environment:
|
|
|
|
|
OLLAMA_URL: "${OLLAMA_URL:-http://host.docker.internal:11434}"
|
|
|
|
|
extra_hosts:
|
|
|
|
|
- "host.docker.internal:host-gateway"
|
|
|
|
|
networks:
|
|
|
|
|
- timmy-net
|
|
|
|
|
restart: unless-stopped
|
|
|
|
|
profiles:
|
|
|
|
|
- celery
|
|
|
|
|
|
2026-03-02 13:17:38 -05:00
|
|
|
# ── OpenFang — vendored agent runtime sidecar ────────────────────────────
|
2026-02-28 19:27:48 -05:00
|
|
|
openfang:
|
|
|
|
|
build:
|
|
|
|
|
context: .
|
|
|
|
|
dockerfile: docker/Dockerfile.openfang
|
|
|
|
|
image: timmy-openfang:latest
|
|
|
|
|
container_name: timmy-openfang
|
|
|
|
|
profiles:
|
|
|
|
|
- openfang
|
|
|
|
|
environment:
|
|
|
|
|
OLLAMA_URL: "${OLLAMA_URL:-http://host.docker.internal:11434}"
|
|
|
|
|
OPENFANG_DATA_DIR: "/app/data"
|
|
|
|
|
extra_hosts:
|
|
|
|
|
- "host.docker.internal:host-gateway"
|
|
|
|
|
volumes:
|
|
|
|
|
- openfang-data:/app/data
|
|
|
|
|
networks:
|
2026-03-02 13:17:38 -05:00
|
|
|
- timmy-net
|
2026-02-28 19:27:48 -05:00
|
|
|
restart: unless-stopped
|
|
|
|
|
healthcheck:
|
|
|
|
|
test: ["CMD", "curl", "-f", "http://localhost:8080/health"]
|
|
|
|
|
interval: 30s
|
|
|
|
|
timeout: 5s
|
|
|
|
|
retries: 3
|
|
|
|
|
start_period: 15s
|
|
|
|
|
|
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>
2026-03-04 12:00:49 -05:00
|
|
|
# ── Volumes ──────────────────────────────────────────────────────────────────
|
2026-02-22 16:21:32 -05:00
|
|
|
volumes:
|
|
|
|
|
timmy-data:
|
|
|
|
|
driver: local
|
|
|
|
|
driver_opts:
|
|
|
|
|
type: none
|
|
|
|
|
o: bind
|
|
|
|
|
device: "${PWD}/data"
|
2026-02-28 19:27:48 -05:00
|
|
|
openfang-data:
|
|
|
|
|
driver: local
|
2026-02-22 16:21:32 -05:00
|
|
|
|
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>
2026-03-04 12:00:49 -05:00
|
|
|
# ── Internal network ────────────────────────────────────────────────────────
|
2026-02-22 16:21:32 -05:00
|
|
|
networks:
|
2026-03-02 13:17:38 -05:00
|
|
|
timmy-net:
|
2026-02-22 16:21:32 -05:00
|
|
|
driver: bridge
|