How lior-gr/ai_agents_lectures works
1. This repository has two major concerns: a tutorial/content track under Lessons/, and a runnable reference application under task_manager/. The lesson material explains the architecture progressively, while task_manager is the concrete example being evolved.
2. The lesson content exists in two forms: Markdown source in Lessons/md_only/ and a generated/static tutorial site in Lessons/tutorial_site/. Lessons/full_tutorial.html appears to be a compiled single-page version. The site layer is a simple static frontend (index.html, per-lesson HTML, style.css, app.js) that presents the written lessons.
3. The task_manager package is the application architecture to diagram. It is a Python app with a small, explicit set of modules: main.py as the entry point, agent.py for the agent loop, ui.py for the user-facing boundary, storage.py for persistence, tools.py for callable operations, mcp_client.py / mcp_server.py for model-context-protocol integration, and skill_router.py for skill selection.
4. The core data flow is likely: user intent enters through the UI, main.py wires the pieces together, agent.py orchestrates the loop, skill_router.py chooses which skills apply, tools.py exposes task operations, and storage.py persists state. The response then returns back through the UI boundary.
5. The architecture is intentionally split between orchestration and capability execution. agent.py handles the control loop, while tools.py and storage.py hold the task-domain mechanics. This separation is important for an architecture diagram because it shows the app is not a monolith; it has a coordinator plus distinct service layers.
6. MCP is used as a decoupling boundary. The presence of both mcp_client.py and mcp_server.py suggests the app can separate the agent from tool execution, with the client side invoking externally exposed capabilities and the server side hosting them. That boundary is central to the “MCP Decoupling” lesson.
7. The skills system is another key subsystem. task_manager/skills/ contains markdown skill documents such as task_planning.md, task_deletion.md, status_reporting.md, output_format.md, and always_on.md. These are not code modules; they are behavior/policy artifacts that guide the agent’s responses and tool use.
8. skill_router.py is the bridge between the agent and those skill documents. Its role is to decide which skill context should be active for a given request, which is why the repo also includes lessons about “bounded model skill routing.” For architecture purposes, treat this as a policy-selection layer between intent parsing and execution.
9. The clarification_log.md file indicates the system records uncertain or ambiguous interactions. That suggests a feedback loop where the agent can defer, ask for more information, or capture unresolved intent before acting on task data.
10. The task_manager/README.md and top-level tutorial materials imply the project is educational as well as functional. The codebase is designed to demonstrate an incremental path: baseline task manager, minimal agent loop, MCP decoupling, skills, and then the UI boundary.
11. The repo also has process/tooling boundaries worth noting: .githooks/ contains git hooks, and the root README calls out Git LFS for media assets. Those are support concerns, not runtime dependencies, but they matter if you are diagramming the project’s build/content workflow rather than just the app.
12. If you are drawing the architecture, the clearest top-level separation is: static lesson content pipeline, Python task-manager runtime, and protocol/policy layers inside the runtime. The runtime itself is organized around four main boundaries: UI, agent orchestration, skill/tool selection, and persistence/external tool access.
Main entry points: agent.py Agent loop · md_only Lesson drafts · main.py Main entry · ui.py UI boundary
Components 17
Lessons
Tutorial source, compiled material, and site presentation for the architecture walkthrough.
- Lesson drafts · Markdown lesson sources that define the tutorial progression.
Lessons/md_only - Tutorial site · Generated static frontend for reading the tutorial lessons.
Lessons/tutorial_site - Full tutorial · Single-page compiled version of the tutorial content.
Lessons/full_tutorial.html - Guidance skill · Instructions that shape the tutorial content and style.
Lessons/tutorial_content_guidance_skill.md - Style notes · Notes for tutorial styling and presentation conventions.
Lessons/tutorial_style_notes_skill.md
Task Manager
Runnable Python application and its control/data boundaries.
- Main entry · Application startup and wiring for the task manager runtime.
task_manager/main.py - UI boundary · User-facing boundary where intent enters and responses return.
task_manager/ui.py - Agent loop · Coordinates the conversational/control loop for the task manager.
task_manager/agent.py - Skill router · Selects which skill context should be active for a request.
task_manager/skill_router.py - Skills · Markdown skill artifacts that shape planning, deletion, status, and output behavior.
task_manager/skills - Tools · Callable task-domain operations exposed to the agent.
task_manager/tools.py - Storage · Persists task state and related application data.
task_manager/storage.py - MCP client · Client-side boundary for invoking externally exposed capabilities.
task_manager/mcp_client.py - MCP server · Server-side boundary that hosts tool access over MCP.
task_manager/mcp_server.py - Clarifications · Records ambiguous or uncertain interactions for later resolution.
task_manager/clarification_log.md
Support
Repository-level documentation and workflow helpers.
- Repo README · Top-level project overview and entry point to the repo narrative.
README.md - Git hooks · Repository automation hooks for local Git events.
.githooks
Connections 19
- Repo README → Lesson drafts: introduces · The repository README points readers toward the tutorial material.
- Repo README → Main entry: introduces · The repository README also frames the runnable task manager example.
- Lesson drafts → Tutorial site: generates · Markdown lesson sources feed the static tutorial site.
- Lesson drafts → Full tutorial: compiles to · The lesson set is compiled into a single-page tutorial artifact.
- Guidance skill → Lesson drafts: shapes · Tutorial guidance influences the authored lesson content.
- Style notes → Tutorial site: shapes · Style notes inform the presentation layer of the tutorial site.
- Main entry → UI boundary: wires · Startup assembles the user-facing boundary.
- Main entry → Agent loop: wires · Startup creates and connects the agent orchestration loop.
- UI boundary → Agent loop: submits intent · User intent passes from the UI boundary into the agent.
- Agent loop → Skill router: selects skills · The agent asks the router which skill context applies.
- Skill router → Skills: activates · The router chooses among the skill documents.
- Agent loop → MCP client: invokes · The agent can call capabilities through the MCP client boundary.
- MCP client → MCP server: requests · Client and server form the decoupled MCP link.
- MCP server → Tools: exposes · The server hosts the task operations as MCP-accessible tools.
- Agent loop → Tools: uses · The orchestration loop ultimately drives task operations.
- Tools → Storage: persists · Task operations read and update application state through storage.
- Agent loop → Storage: reads state · The agent consults persisted task state during the loop.
- Agent loop → Clarifications: records ambiguity · Unclear interactions are captured for later resolution.
- UI boundary → Clarifications: surfaces · The user-facing layer can surface or collect clarifying interactions.