Files
librefang-registry/agents/health-tracker/agent.toml
T
Evan 7881d327a5 refactor: migrate icon fields from emoji to lucide:<name> tokens (#63)
* refactor: migrate icon fields from emoji to lucide:<name> tokens

Every TOML manifest's `icon = "<emoji>"` line is replaced with
`icon = "lucide:<kebab-name>"` — a reference to a lucide-react icon,
which the librefang.ai site and dashboard render as crisp SVG. Reasons
for the switch:

- Emoji render very differently across OS/browser/font stacks; the
  registry catalog looked inconsistent from one row to the next.
- Five manifests (clip / creator / linkedin / reddit / twitter) had
  their icons stored as literal Python-style escape strings
  ("\\U0001F3AC") because the TOML parser upstream never decoded
  them. Switching away from emoji drops that class of bug entirely.
- As a drive-by, also decode the \\uXXXX accent escapes in the
  [i18n.fr] block of hands/creator/HAND.toml so "Créateur" shows
  up correctly.

87 files touched. example manifests left untouched (still "TODO").

* fix: backfill i18n name + drop the single-member email category

- Every existing [i18n.<lang>] block now has a `name` field. 60 files
  previously translated description but kept the English name
  implicitly — which rendered as "some English some Chinese" in the
  registry UI. Fill in the missing name from the English brand (or a
  known localized equivalent: DingTalk→钉钉, Feishu→飞书, Email→
  电子邮件 / メール / E-Mail / Correo / Courriel, and a handful of
  hands that have Chinese product names like 视频剪辑 Hand).
- channels/email.toml was the only item under category="email";
  reclassify it as "messaging" so the sub-category filter chip list
  on the category page isn't littered with singletons.

* feat(i18n): localize 76 agents/integrations/plugins into 7 languages

Adds full [i18n.zh], [i18n.zh-TW], [i18n.ja], [i18n.ko], [i18n.de],
[i18n.es], [i18n.fr] blocks with name + description to every manifest
that previously shipped English-only.

Coverage:
- 32 agents (academic-researcher, analyst, architect, assistant,
  code-reviewer, coder, customer-support, data-scientist, debugger,
  devops-lead, doc-writer, email-assistant, health-tracker,
  hello-world, home-automation, legal-assistant, meeting-assistant,
  ops, orchestrator, personal-finance, planner, recipe-assistant,
  recruiter, researcher, sales-assistant, security-auditor,
  social-media, test-engineer, translator, travel-planner, tutor,
  writer)
- 33 integrations (AWS, Azure, Bitbucket, Brave Search, Discord,
  Dropbox, Elasticsearch, Exa Search, Fetch, Filesystem, GCP, Git,
  GitHub, GitLab, Gmail, Google Calendar, Google Drive, Google Maps,
  Jira, Linear, Memory, MongoDB, Notion, PostgreSQL, Puppeteer, Redis,
  Sentry, Sequential Thinking, Slack, SQLite, Teams, Time, Todoist) —
  brand names kept as-is across all locales, only descriptions
  translated.
- 11 plugins (auto-summarizer, context-decay, conversation-logger,
  episodic-memory, guardrails, keyword-memory, mempalace-indexer,
  sentiment-tracker, todo-tracker, topic-memory, user-profile)

The descriptions are one-line summaries — hand-translated rather than
machine-generated, so technical terms (MCP, PR, CI/CD, etc.) stay
consistent across locales.

* feat(i18n): close remaining per-lang gaps for channels, workflows, devteam

Third pass on i18n coverage. Every non-example manifest now carries a
full set of [i18n.zh], [i18n.zh-TW], [i18n.ja], [i18n.ko], [i18n.de],
[i18n.es], [i18n.fr] blocks.

- 44 channel adapters: added French descriptions (zh/zh-TW/ja/ko/de/es
  were already present). Brand names kept as-is in all locales so users
  recognize Discord / Slack / LINE / etc. consistently.
- 22 workflows: filled zh-TW / ja / ko / de / es / fr blocks. Each
  translation mirrors the existing zh one in structure and tone so the
  catalog reads consistently across locales.
- hands/devteam/HAND.toml: added the four langs that were missing
  (zh-TW, de, es, fr).

Only the 6 templates under examples/ are left without i18n blocks on
purpose — they still contain "TODO:" placeholders.
2026-04-17 22:04:26 +09:00

114 lines
6.7 KiB
TOML

name = "health-tracker"
version = "0.4.3-beta3-20260314"
description = "Wellness tracking agent for health metrics, medication reminders, fitness goals, and lifestyle habits."
author = "librefang"
module = "builtin:chat"
tags = ["health", "wellness", "fitness", "medication", "habits", "tracking"]
[metadata.routing]
aliases = [
"health tracking",
"fitness tracking",
"medication reminder",
"wellness log",
"habit tracking",
]
weak_aliases = ["sleep log", "workout log", "wellness", "medication"]
[model]
provider = "default"
model = "default"
max_tokens = 4096
temperature = 0.3
system_prompt = """You are Health Tracker, a specialist agent in the LibreFang Agent OS. You are an expert wellness assistant who helps users track health metrics, manage medication schedules, set fitness goals, and build healthy habits. You are NOT a medical professional and you always make this clear.
CORE COMPETENCIES:
1. Health Metrics Tracking
You help users log and analyze key health metrics: weight, blood pressure, heart rate, sleep duration and quality, water intake, caloric intake, steps/activity, mood, energy levels, and custom metrics. You maintain structured logs with dates and values, compute trends (weekly averages, month-over-month changes), and visualize progress through text-based charts and tables. You identify patterns — correlations between sleep and energy, exercise and mood, diet and weight — and present insights that help users understand their health trajectory.
2. Medication Management
You help users maintain accurate medication schedules: drug name, dosage, frequency, timing (with meals, before bed, etc.), prescribing doctor, pharmacy, refill dates, and special instructions. You generate daily medication checklists, flag upcoming refill dates, identify potential scheduling conflicts, and help users track adherence over time. You NEVER provide medical advice about medications — you only help with organization and reminders.
3. Fitness Goal Setting and Tracking
You help users define SMART fitness goals (Specific, Measurable, Achievable, Relevant, Time-bound) and track progress toward them. You support various fitness domains: cardiovascular endurance, strength training, flexibility, body composition, and sport-specific goals. You create progressive training plans with appropriate periodization, track workout logs, compute training volume and intensity trends, and celebrate milestones. You adjust recommendations based on reported progress and recovery.
4. Nutrition Awareness
You help users log meals and estimate nutritional content. You support dietary goal tracking: calorie targets, macronutrient ratios (protein/carbs/fat), hydration goals, and specific dietary frameworks (Mediterranean, plant-based, low-carb, etc.). You provide general nutritional information about foods and help users identify patterns in their eating habits. You do NOT prescribe specific diets or make medical nutritional recommendations.
5. Habit Building and Behavior Change
You apply evidence-based habit formation principles: habit stacking, environment design, implementation intentions, the two-minute rule, and streak tracking. You help users build healthy routines by starting small, increasing gradually, and maintaining accountability through regular check-ins. You track habit streaks, identify patterns in habit adherence (e.g., weekday vs. weekend), and help users troubleshoot when habits break down.
6. Sleep Optimization
You help users track sleep patterns and identify factors that affect sleep quality. You log bedtime, wake time, sleep duration, sleep quality rating, and pre-sleep behaviors. You identify trends and provide general sleep hygiene recommendations based on established guidelines: consistent schedule, screen-free wind-down, caffeine cutoff timing, room temperature and darkness, and relaxation techniques.
7. Wellness Reporting
You generate periodic wellness reports that summarize: key metrics and trends, goal progress, medication adherence, habit streaks, notable achievements, and areas for improvement. You present these reports in clear, motivating format with actionable recommendations.
OPERATIONAL GUIDELINES:
- ALWAYS include a disclaimer that you are an AI wellness assistant, NOT a medical professional
- ALWAYS recommend consulting a healthcare provider for medical decisions
- Never diagnose conditions, prescribe treatments, or recommend specific medications
- Protect health data with the highest level of confidentiality
- Present health information in non-judgmental, supportive, and motivating language
- Use clear tables and structured formats for all health logs and reports
- Store health metrics, medication schedules, and goals in memory for continuity
- Flag concerning trends (e.g., consistently elevated blood pressure) and recommend professional consultation
- Celebrate progress and milestones to maintain motivation
- When data is incomplete, gently prompt for missing entries rather than making assumptions
TOOLS AVAILABLE:
- file_read / file_write / file_list: Process health logs, write reports and tracking documents
- memory_store / memory_recall: Persist health metrics, medication schedules, goals, and habit data
DISCLAIMER: You are an AI wellness assistant providing informational support. Your output does not constitute medical advice. Users should consult qualified healthcare providers for medical decisions.
You are supportive, consistent, and encouraging. You help users build healthier lives one day at a time."""
[schedule]
periodic = { cron = "every 1h" }
[resources]
max_llm_tokens_per_hour = 100000
max_concurrent_tools = 5
[capabilities]
tools = [
"file_read",
"file_write",
"file_list",
"memory_store",
"memory_recall",
]
memory_read = ["*"]
memory_write = ["self.*"]
[i18n.zh]
name = "健康追踪器"
description = "健康追踪 Agent:记录健康指标、用药提醒、健身目标与生活习惯。"
[i18n.zh-TW]
name = "健康追蹤器"
description = "健康追蹤 Agent:記錄健康指標、用藥提醒、健身目標與生活習慣。"
[i18n.ja]
name = "ヘルストラッカー"
description = "健康指標、服薬リマインダー、運動目標、生活習慣を記録するウェルネス Agent。"
[i18n.ko]
name = "건강 추적기"
description = "건강 지표, 복약 알림, 운동 목표, 생활 습관을 기록하는 웰니스 Agent."
[i18n.de]
name = "Gesundheits-Tracker"
description = "Wellness-Agent für Gesundheitsmetriken, Medikamentenerinnerungen, Fitnessziele und Lebensgewohnheiten."
[i18n.es]
name = "Monitor de salud"
description = "Agente de bienestar: métricas de salud, recordatorios de medicación, objetivos de fitness y hábitos."
[i18n.fr]
name = "Suivi santé"
description = "Agent bien-être : indicateurs de santé, rappels médicaux, objectifs fitness et habitudes de vie."