How suzuki-no-suke/dullahan works
Project Type and Purpose
• The README explains that DuLLahan is a headless working assistant framework. It’s designed to provide backend services (exposed over Uvicorn on port 7878) for working assistant tasks, while also offering multiple frontend clients built with various Svelte methodologies.
• The framework integrates multiple bot implementations that appear to leverage various LLM (large language model) APIs (e.g., OpenAI, Claude, Gemini, Perplexity) and includes helper components for prompts parsing/rendering and web retrieval.
Analyzing the File Structure
• Back-End Core:
• Main entry points: main.py (launches the Uvicorn server) and README instructions that expose an API.
• The “botfirm” directory houses the core logic for interfacing with LLM APIs. It includes submodules for LLM calls (under botfirm/helper/llm_call) and for managing prompt workflows (botfirm/helper/prompts). There are versioned bot implementations in botfirm/v1 (e.g., CommandBook, Echobot, PreResearcher, etc.).
• The “src” folder contains modules for bot management (bots_manag) and for defining data models and ORM logic. This separation points to a layer for business logic and persistent data (chat histories, messages, chatbots, etc.).
• The “tools” directory shows utilities for database setup, bot registration, and system updates.
• Testing directories (tests, test_firm, test_once) suggest that the project is well-organized for both unit and integration tests.
• Front-End Clients:
• The “frontend” directory contains several sub-projects – all are built using Svelte (with variations like Svelte Flowbite, Mobilefirst, Onepage, Skeleton, Tailwind, Two-page, and SvelteKit). They are likely different styles or variations intended for different UI/UX approaches.
• These frontends are structured with their own package.json, configuration (e.g., tailwind.config, svelte.config.js, vite.config.ts), and routing (typically handling chat sessions, bot selection, and history).
• Documentation:
Final Suggestions for the Principal Software Engineer
• Drill down into the backend by breaking it into logical modules (as outlined above) using nested components.