-
Notifications
You must be signed in to change notification settings - Fork 19
Closed
Labels
bountyenhancementNew feature or requestNew feature or requestinnovativeInnovative/novel approachInnovative/novel approachkernel-featuresKernel-level AI enhancementsKernel-level AI enhancementstier-1Tier 1 priority featureTier 1 priority feature
Description
/dev/llm Virtual Device Interface - FUSE-Based LLM Access
Part of: Kernel-Level AI Enhancements (Tier 1 - User-Space)
Description
FUSE-based virtual device providing file-like interface to LLM operations. Enables shell scripts and any Unix program to use LLMs.
Effort: 2-3 weeks | Bounty: $125
The Solution
# Mount the device
cortex-llm-device mount /mnt/llm
# It is just files!
echo "What is 2+2?" > /mnt/llm/claude/prompt
cat /mnt/llm/claude/response
# Works with any Unix tool
git diff | (echo "Review: $(cat)" > /mnt/llm/claude/prompt && cat /mnt/llm/claude/response)
# Session management
mkdir /mnt/llm/sessions/my-project
echo "Hello" > /mnt/llm/sessions/my-project/prompt
cat /mnt/llm/sessions/my-project/history # Full conversationDirectory Structure
/mnt/llm/
├── claude/ # Claude Sonnet
│ ├── prompt # Write prompts here
│ ├── response # Read responses
│ ├── config # JSON configuration
│ └── metrics # Usage stats
├── sessions/ # Stateful conversations
│ └── <session-name>/
└── status # System status
Features
- FUSE filesystem implementation
- Multiple model endpoints
- Session management via directories
- Configuration via JSON files
- Mock client for testing without API key
- Anthropic API integration
Acceptance Criteria
- Filesystem mounts successfully
- echo/cat workflow produces valid responses
- Sessions maintain conversation context
- Configuration changes take effect
- Works with mock client (no API key)
Files
Complete implementation available:
llm_device.py(~600 lines)test_llm_device.py(~300 lines)README_DEV_LLM.md
Priority
Medium - Innovative UX, demonstrates kernel-level thinking
Metadata
Metadata
Assignees
Labels
bountyenhancementNew feature or requestNew feature or requestinnovativeInnovative/novel approachInnovative/novel approachkernel-featuresKernel-level AI enhancementsKernel-level AI enhancementstier-1Tier 1 priority featureTier 1 priority feature