Self-Hosted Contextual Bandit in Rust: Syntra & Lycan for Adaptive Decision Systems

Two new open-source projects aim to bring contextual bandit functionality to production systems without a Python ML stack. Lycan is a small graph execution language where strategy nodes are a first-class primitive — you define multiple implementations of the same contract, and the runtime learns weights from outcome feedback. It compiles to a binary graph executed by a Rust runtime with no LLM in the hot path.
Syntra is a self-hosted Docker/API appliance that serves compiled Lycan capsules. Key features:
- Multi-tenant, shadow-mode-first design
- Contextual learning per
contextKey - Persistent filesystem store
- Separated audit, decision, and feedback logs
- MVP YAML authoring layer (no need to write underlying Lisp)
The stated use cases: repeated decisions where the best option depends on context and outcome arrives later — LLM model routing, retry/timeout policy, queue selection, threshold tuning.
Dogfooding against MoEFolio.ai (a public AI stock-debate panel with 30-day market-resolved outcomes) revealed the first surprise: the contextKey schema was collapsing all sectors into unknown because the sector lookup only resolved symbols from one of three input paths. The bandit was nominally 5-dimensional but effectively 2-dimensional, learning a cross-sector average. Fixing the data pipeline, not the algorithm, is most of the work in adaptive systems.
Licensed Apache-2.0, very early stage. The author invites eyes from anyone who's worked on bandits in production.
📖 Read the full source: r/ClaudeAI
👀 See Also

ToolLoop: Open-Source Agent Framework for Claude-Style Tools with Any Model
ToolLoop is an open-source Python framework with 11 tools for file operations, code search, shell access, and sub-agents that works with any LLM through LiteLLM. The 2,700-line framework allows switching models mid-conversation with shared context.

Open-source methodology for agentic AI partnership with Claude
A developer has published a 25,000-word paper and open-sourced templates for building a persistent partnership system with Claude that uses shared memory across sessions, cognitive monitoring, and multi-AI consultation.

Apfel: Free CLI Tool to Access Apple's On-Device LLM on macOS
Apfel v0.6.13 is a Swift 6.3 binary that exposes Apple's built-in LLM as a CLI tool, OpenAI-compatible server, and interactive chat. It runs 100% on-device with no API keys or costs, using the 4,096-token model shipped with macOS 26+ on Apple Silicon Macs.

Brainstorm MCP Server Lets Claude Code Consult Other LLMs for Better Answers
A developer built an MCP server that enables Claude Code to consult with other AI models like GPT-5.2 and DeepSeek before providing answers. The models engage in multi-round debates where they read each other's responses, disagree, and refine positions to converge on better solutions.