916f86725d
feat: RSO observation system, child safety, Discord adapter, Telegram watchdog, email attachments
...
Core agent improvements:
- RSO (Relevance Scoring & Observation) system: interaction_logger, memory_scorer, signal_detector
- Memory access logging (memory_access_log table) for relevance scoring; high-signal turn detection
- Rich conversation storage for notable turns; compact_conversation truncates long user messages
- Task-type classifier (query/action/analysis/creative) for observation tagging
- Nested sub-agent visibility: deep delegations now register against the main agent's manager
Child safety (Gabriel profile):
- child_safety.py: filtering, audit logging, prompt constants for restricted sessions
- .kiro/specs/child-safety-profile: requirements, design, tasks specs
- GABRIEL_BOT_PROPOSAL.md: initial proposal doc
- Reduced context window (10 msgs) and tutor-mode identity for restricted users
Telegram adapter:
- Polling watchdog: auto-restarts updater if polling drops unexpectedly
- get_me() with exponential-backoff retry on NetworkError at startup
- Correct stop() ordering: signal watchdog before cancelling tasks
Email / Gmail:
- send_email: supports file attachments (attachments list param)
- get_email: surfaces attachment metadata in response
Scheduled tasks / weather:
- Remove OpenWeatherMap API calls from morning-weather task; use wttr.in exclusively
- New scheduled tasks and scheduler state persistence
Discord:
- adapters/discord/__init__.py scaffold
- discord-plugin: MCP plugin for Claude Code Discord integration (server.ts, skills, config)
Infrastructure:
- n8n workflow exports (garvis_webhook, content_pipeline variants)
- memory_workspace: context, homelab-repo-updates, weekly observation summaries, error logs
- UCS C240 migration plan doc
- requirements.txt: new deps
- .claude/settings.json, fix_hooks.py: hook/permission tuning
2026-04-23 07:54:01 -06:00
e909cc0044
Add MCP delegation bridge and diagram tools
...
**Features Added**:
1. **Agent Registry (agent_registry.py)**
- Thread-safe global singleton for MCP tool access to Agent instance
- Enables MCP tools to call Agent.delegate() without circular imports
- Registered at bot startup in bot_runner.py
2. **Sub-Agent Manager (sub_agent_manager.py)**
- Watchdog system monitoring sub-agent lifecycle
- Detects hung agents (5min timeout, 30s check interval)
- Auto-cleanup and status tracking
3. **delegate_task MCP Tool (mcp_tools.py)**
- Exposes Agent.delegate() to Claude via MCP protocol
- Enables parallel sub-agent execution via tool calls
- Supports specialist prompts and agent ID caching
4. **Memory Write Locks (memory_system.py)**
- Thread-safe writes to prevent file corruption
- Protects write_memory(), update_soul(), update_user()
5. **Diagram Tools**
- Mermaid MCP server (flowcharts, sequence diagrams, etc.)
- Excalidraw MCP server (hand-drawn style diagrams)
- Config files in config/ directory
6. **Adapter Improvements**
- Enhanced error handling across all adapters
- Unified logging patterns
**Testing**: Ready for parallel sub-agent testing
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com >
2026-03-01 14:34:24 -07:00
a9efdc0a01
feat: Add Loki MCP server scaffold, fix adapter blocking, upgrade model
...
- Scaffold mcp_servers/loki/ with config and async HTTP client
- Fix Slack/Telegram adapters to use non-blocking connections
- Upgrade default model to claude-sonnet-4-6
- Improve Agent SDK message collection for empty ResultMessage cases
- Add Message-ID to email summaries, increase body truncation limit
- Fix .gitignore inline comments that broke sensitive file exclusions
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com >
2026-02-22 21:19:28 -07:00
a99799bf3d
Initial commit: Ajarbot with optimizations
...
Features:
- Multi-platform bot (Slack, Telegram)
- Memory system with SQLite FTS
- Tool use capabilities (file ops, commands)
- Scheduled tasks system
- Dynamic model switching (/sonnet, /haiku)
- Prompt caching for cost optimization
Optimizations:
- Default to Haiku 4.5 (12x cheaper)
- Reduced context: 3 messages, 2 memory results
- Optimized SOUL.md (48% smaller)
- Automatic caching when using Sonnet (90% savings)
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com >
2026-02-13 19:06:28 -07:00