How goldeneaglex10/codespacecortex works
Codespace Cortex is a multi-service learning platform: a private API gateway fronts tutoring, while a knowledge pipeline ingests tenant-scoped course material and serves retrieval. The tutor builds student context, consults registered tools, and generates pedagogy-checked answers through configurable LLM providers. The graph preserves the gateway’s security and governance concerns and the pipeline’s ingestion and search stages. No README was supplied, and gateway-to-tutor or tutor-to-search runtime wiring is not established by the excerpts, so those links are omitted.
Main entry points: agent.py Tutor agent · ingest.py Ingestion coordinator · main.py Private API · chat.py Chat route
Components 25
API gateway
- Private API
api-service/app/main.py - Chat route
api-service/app/gateway/routers/chat.py - Request security
api-service/app/gateway/dependencies - Response cache
api-service/app/gateway/dependencies/cache.py - Health route
api-service/app/gateway/routers/health.py - Audit and metering
api-service/app/governance
Knowledge pipeline
- Content connector
knowledge-pipeline/connector/base.py - Ingestion coordinator
knowledge-pipeline/pipeline/ingest.py - Content chunker
knowledge-pipeline/pipeline/chunker.py - Embedding providers
knowledge-pipeline/pipeline/embedder_base.py - Tenant vector store
knowledge-pipeline/storage/vector_store.py - Pipeline API
knowledge-pipeline/pipeline/api.py - Tenant-scoped search
knowledge-pipeline/pipeline/search_tool.py
Tutor runtime
- Student context
tutor-service/context_engine/build_context.py - Tutor router
tutor-service/orchestrator/router.py - Tutor agent
tutor-service/agents/agent.py - Tool registry
tutor-service/context_engine/tool_registry.py - Tutor prompts
tutor-service/agents/prompts.py - Pedagogy checks
tutor-service/agents/pedagogy.py - LLM providers
tutor-service/llm/provider.py
Platform state
- Database access
api-service/app/data/db.py - Learning records
api-service/app/data/models
Other components
- Student
- Course content source
- Model providers
Connections 24
- Student → Private API: requests API
api-service/app/main.py - Private API → Chat route: routes chat
api-service/app/main.py - Private API → Health route: routes health
api-service/app/main.py - Private API → Request security: requires API key
api-service/app/main.py - Chat route → Request security: uses dependencies
api-service/app/gateway/routers/chat.py - Chat route → Response cache: uses cache
api-service/app/gateway/routers/chat.py - Chat route → Audit and metering: records activity
- Database access → Learning records: persists records
- Course content source → Content connector: provides content
- Ingestion coordinator → Content connector: fetches items
knowledge-pipeline/pipeline/ingest.py - Ingestion coordinator → Content chunker: chunks content
knowledge-pipeline/pipeline/ingest.py - Ingestion coordinator → Embedding providers: embeds chunks
knowledge-pipeline/pipeline/ingest.py - Ingestion coordinator → Tenant vector store: stores embeddings
knowledge-pipeline/pipeline/ingest.py - Pipeline API → Tenant-scoped search: dispatches search
knowledge-pipeline/pipeline/api.py - Tenant-scoped search → Embedding providers: embeds query
knowledge-pipeline/pipeline/search_tool.py - Tenant-scoped search → Tenant vector store: retrieves matches
knowledge-pipeline/pipeline/search_tool.py - Student → Tutor router: submits question
- Tutor router → Student context: builds context
tutor-service/orchestrator/router.py - Tutor router → Tutor agent: dispatches request
tutor-service/orchestrator/router.py - Tutor agent → Tutor prompts: builds prompt
tutor-service/agents/agent.py - Tutor agent → Pedagogy checks: checks answer
tutor-service/agents/agent.py - Tutor agent → Tool registry: executes tools
tutor-service/agents/agent.py - Tutor agent → LLM providers: requests completion
tutor-service/agents/agent.py - LLM providers → Model providers: calls model API