How skarnati20/apprentice works
Apprentice is a configurable Common Lisp coding harness. A user starts a chat turn; the selected loop orchestrates model output and tool requests, while enabled anchors preprocess repository context. The README also documents model and loop selection, conversation-history controls, subagents, and file/embedding-related anchor capabilities. Paths below follow the file tree and README feature names; source excerpts were not provided, so links are limited to relationships the README states explicitly.
Main entry points: apprentice.lisp Chat Interface · loop.lisp Coding Loops · anchor.lisp Anchor Abstractions · model.lisp Model Abstractions
Components 15
Chat and State
- Chat Interface
apprentice.lisp - Conversation History
conversations.lisp - Harness State
state.lisp - Prompt Construction
prompts.lisp
Harness Orchestration
- Coding Loops
loop.lisp - Subagents
subagent.lisp - Harness Helpers
helpers.lisp
Repository Context
- Anchor Abstractions
anchor.lisp - Repository Files
file.lisp - Vector Embeddings
embedding.lisp - Text Chunks
chunk.lisp
Model and Tools
- Model Abstractions
model.lisp - Tool Abstractions
tool.lisp
Other components
- User
- LLM Provider
Connections 13
- User → Chat Interface: starts turn
README.md - Chat Interface → Coding Loops: runs turn
README.md - Coding Loops → Model Abstractions: requests response
README.md - Model Abstractions → LLM Provider: sends request
README.md - Coding Loops → Tool Abstractions: handles requests
README.md - Anchor Abstractions → Repository Files: processes files
README.md - Chat Interface → Conversation History: manages turns
README.md - Chat Interface → Harness State: sets harness options
README.md - Anchor Abstractions → Vector Embeddings
- Anchor Abstractions → Text Chunks
- Coding Loops → Prompt Construction
- Subagents → Model Abstractions
- Chat Interface → Harness Helpers