-
Notifications
You must be signed in to change notification settings - Fork 0
AI and Chat
JumpStart Wiki Bot edited this page Aug 8, 2026
·
1 revision
Everything AI-related talks to a local Ollama server. Nothing is sent to cloud LLM APIs.
| Piece | Location |
|---|---|
| HTTP client | internal/ai/ollama.go |
| Bindings |
ai_api.go, ai_commit.go, chat_api.go, codectx_api.go
|
| Retrieval | internal/codectx |
| Persistence | internal/chatstore |
| UI settings |
frontend/src/ai.js (localStorage) |
- Default
http://localhost:11434, override via argument orOLLAMA_HOST - Long HTTP timeout (minutes) for local generation
- Used for: task enrich, freeform chat, commit messages, project descriptions
- Walks the project (skips heavy dirs), chunks source, builds a BM25 index — no embedding model required
- Overview (tree, manifests, scripts) is cheap and often included in prompts
- Search returns top chunks pasted into the system prompt
- Progress events:
codectx:progress,codectx:done - Index is per-project and removed on
DeleteProject
- Path:
~/.jumpstart/chats/<safeProjectID>.json - Kept out of
config.jsonso chat traffic does not rewrite the project file - Cap: 50 sessions per project (oldest dropped)
- Messages may store structured
storiesJSON andsourcesfile paths for UI previews
-
TaskDetailModal — “Fill with AI” →
OllamaEnrichTask -
ChatDock — story assistant; expand to fullscreen;
SendChatMessage -
CommitBox —
OllamaGenerateCommitMessageusinggitopscommit context - ProjectModal — optional AI project description
Analytics may record model_family, param_size, lengths, latency, success — never prompts, replies, paths, or raw model tags. Use TrackModelSelected so Go parses the tag safely.
- Prompt assembly:
internal/codectx/prompt.goand enrich paths inai_api.go - Chunking / walk limits:
chunk.go,walk.go - Keep retrieval local and deterministic unless you intentionally add a new dependency (and document the download UX)