How limitcantcode/jaison-core works
J.A.I.son is a configurable AI companion server. Its principal workflow accepts application requests through the REST/WebSocket server, schedules work in JAIson, builds prompt context, and uses configurable speech, language, embedding, and filter operations; results and events are exposed to clients. MCP tools extend that workflow, while process management supports reusable local services. The README documents these capabilities, but sampled source does not expose every request or operation-stage call, so unsampled links are omitted or marked unverified.
Main entry points: manager.py Operation manager · jaison.py Job orchestrator · app_server.py REST and WebSocket · main.py CLI entry
Components 23
Server entry
- CLI entry
src/main.py - REST and WebSocket
src/utils/server/app_server.py
Conversation workflow
- Job orchestrator
src/utils/jaison.py - Prompt builder
src/utils/prompter/prompter.py - Conversation messages
src/utils/prompter/message.py - Context metadata
src/utils/prompter/context.py
Operation pipeline
- Operation manager
src/utils/operations/manager.py - Speech recognition
src/utils/operations/stt - Text generation
src/utils/operations/t2t - Speech synthesis
src/utils/operations/tts - Audio filters
src/utils/operations/filter_audio - Text filters
src/utils/operations/filter_text - Embedding operations
src/utils/operations/embedding
Extensions and processes
- MCP manager
src/utils/mcp/manager.py - Process manager
src/utils/processes/manager.py - KoboldCPP process
src/utils/processes/processes/koboldcpp.py
Configuration and events
- Configuration
src/utils/config.py - CLI arguments
src/utils/args.py - Event broadcaster
src/utils/helpers/observer.py - Logging
src/utils/logging.py
Other components
- Client application
- AI service providers
- MCP servers
Connections 27
- Client application → REST and WebSocket: sends requests
- CLI entry → REST and WebSocket: starts
src/main.py - CLI entry → CLI arguments: reads options
src/main.py - CLI entry → Logging: configures
src/main.py - REST and WebSocket → Job orchestrator: routes work
src/utils/server/app_server.py - REST and WebSocket → Configuration: reads settings
src/utils/server/app_server.py - REST and WebSocket → Event broadcaster: subscribes events
src/utils/server/app_server.py - Job orchestrator → Prompt builder: configures prompts
src/utils/jaison.py - Prompt builder → Conversation messages: builds with
src/utils/prompter/prompter.py - Conversation messages → Context metadata: uses metadata
src/utils/prompter/message.py - Job orchestrator → Operation manager: dispatches operations
src/utils/jaison.py - Operation manager → Speech recognition: loads by role
src/utils/operations/manager.py - Operation manager → Text generation: loads by role
src/utils/operations/manager.py - Operation manager → Speech synthesis: loads by role
src/utils/operations/manager.py - Operation manager → Audio filters: loads by role
src/utils/operations/manager.py - Operation manager → Text filters: loads by role
src/utils/operations/manager.py - Operation manager → Embedding operations: loads by role
src/utils/operations/manager.py - Operation manager → Configuration: loads configuration
src/utils/operations/manager.py - Job orchestrator → MCP manager: uses MCP
src/utils/jaison.py - MCP manager → Operation manager: requests generation
src/utils/mcp/manager.py - MCP manager → MCP servers: starts sessions
src/utils/mcp/manager.py - Process manager → KoboldCPP process: loads process
src/utils/processes/manager.py - Text generation → Process manager: links local process
src/utils/operations/t2t/kobold.py - Speech recognition → AI service providers: uses configured services
- Text generation → AI service providers: uses configured services
- Speech synthesis → AI service providers: uses configured services
- Job orchestrator → Event broadcaster: broadcasts events
src/utils/jaison.py