Skip to content

fix: daemon bugs, MCP onboarding, and provider defaults#54

Merged
keeganthomp merged 1 commit intomainfrom
fix/daemon-bugs-and-mcp-onboarding
Apr 9, 2026
Merged

fix: daemon bugs, MCP onboarding, and provider defaults#54
keeganthomp merged 1 commit intomainfrom
fix/daemon-bugs-and-mcp-onboarding

Conversation

@keeganthomp
Copy link
Copy Markdown
Owner

Summary

  • Fix 3 daemon bugs: auto-compile was completely broken (missing provider/config args), inbox files dropped while daemon off were silently ignored, HTTP POST /ingest accepted missing content field writing "undefined"
  • Overhaul MCP onboarding: default to anthropic instead of ollama, rewrite CLAUDE.md as LLM-first guide, enhance kib_status with setup instructions, mark all tool descriptions with API key requirements, make NoProviderError provider-aware
  • Add daemon docs to root/CLI/core READMEs
  • Add 19 new tests (449 → 468)

Test plan

  • bun run check — lint clean
  • bun test — 468 pass, 0 fail
  • Manual: daemon foreground with inbox drop, HTTP endpoints, folder watchers
  • Manual: daemon lifecycle (--daemon, --status, --stop, double start)
  • Manual: auto-compile triggers correctly with provider fix
  • Manual: kib init without API key shows warning + anthropic default
  • Manual: NoProviderError shows provider-specific message
  • Manual: generated CLAUDE.md is LLM-friendly onboarding guide

🤖 Generated with Claude Code

Daemon fixes:
- Fix auto-compile: was calling compileVault(root) missing provider/config args
- Fix inbox offline drop: files added while daemon off are now enqueued on startup
- Fix HTTP POST /ingest: validate required content field (was writing "undefined")

MCP onboarding:
- Default provider: anthropic instead of ollama (most users, actionable error)
- Rewrite CLAUDE.md template as LLM onboarding guide with tool availability
- Enhance kib_status: returns availableNow/requiresProvider/setupInstructions
- Mark all MCP tool descriptions with API key requirements
- NoProviderError now provider-aware ("No Anthropic API key found...")
- Init output warns when API key not set with setup instructions

Docs:
- Add Watch Daemon section to root and CLI READMEs
- Add Daemon module to core README table

Tests:
- Add 19 new tests (449 → 468): queue edge cases, scheduler failure recovery,
  HTTP validation, inbox seeding, slug generation

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@vercel
Copy link
Copy Markdown

vercel Bot commented Apr 9, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
kib Ready Ready Preview, Comment Apr 9, 2026 9:03pm

Request Review

@keeganthomp keeganthomp merged commit 88fb66f into main Apr 9, 2026
3 checks passed
@keeganthomp keeganthomp deleted the fix/daemon-bugs-and-mcp-onboarding branch April 9, 2026 21:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant