Topics › Agent projects

AI agent projects in Python

These projects start with one agent in plain Python, no framework, and end with agents that run against real systems. Along the way you write the tools, test them, decide when the loop stops, and decide what the agent must ask permission for.

Start with one agent

Short builds. Each one is a whole course of about six lessons.

  1. A Reliable Tool-Using Agent

    Ship and defend a framework-free agent with isolated tool tests, complete execution traces, injected failure evidence, context controls, and an explicit ship, narrow, or hold decision.

    Build Your First AI Agent from Scratch · Build Your First AI Agent

    What you hand in

    • agent/ package with typed configuration, model client, tool registry, loop, memory policy, and CLI entry point
    • tools/ with at least three isolated, schema-validated tools and deterministic unit tests
    • tests/ covering tool failure, malformed arguments, API retry, iteration limit, and context compaction
    • task-suite.json containing three useful tasks plus one ambiguous and one failure-inducing case
    • run-evidence/ with complete traces, outputs, timings, token or cost observations, and final dispositions
    • threat-and-failure-model.md identifying unsafe actions, infinite-loop risks, bad tool output, and containment controls
    • README.md with setup, secret handling, architecture, exact run commands, limitations, and a clean-install check
    • release-review.md comparing results with the success criteria and recording the ship, narrow, or hold decision

    Rubric: The architecture and capability boundaries are explicit, coherent, and appropriate to the stated use case · The complete system works through its real interface, not only through isolated happy-path functions · Automated checks and preserved traces prove success, failure, and stopping behavior · Secrets, permissions, inputs, errors, and side effects are handled safely · Another practitioner can install, operate, inspect, and remove the system from the documentation

  2. An Installable MCP Capability Server

    Ship and defend a packaged MCP server with schema tests, Inspector traces, permission boundaries, redacted failure evidence, documentation, and proof that a clean environment can install and use it.

    Build Your Own MCP Server · Build Your Own MCP Server

    What you hand in

    • src/ package containing the server, five bounded tools, one resource, and one reusable prompt
    • tests/ covering schemas, valid calls, invalid input, upstream failure, denied access, and redacted errors
    • inspector-evidence/ with discovery output and successful and failed invocation records
    • security-model.md defining filesystem boundaries, credentials, network destinations, side effects, and least-privilege controls
    • pyproject.toml with a working console entry point and declared runtime dependencies
    • example-client-config.json with placeholders instead of secrets and documented transport assumptions
    • README.md with clean installation, configuration, capability table, troubleshooting, and uninstall steps
    • handoff-test.md recording a second person or clean environment installing and exercising the server

    Rubric: The architecture and capability boundaries are explicit, coherent, and appropriate to the stated use case · The complete system works through its real interface, not only through isolated happy-path functions · Automated checks and preserved traces prove success, failure, and stopping behavior · Secrets, permissions, inputs, errors, and side effects are handled safely · Another practitioner can install, operate, inspect, and remove the system from the documentation

Agents in production

From the Agentic AI Engineering course, where each phase ends in one of these.

  1. Hardened agent system prompt + threat model

    Build a versioned control surface for a tool-using agent, then prove how it behaves under ambiguous and adversarial instructions.

    Agentic AI Engineering · Advanced Prompt Engineering for Agents

    What you hand in

    • system_prompt.md
    • prompt_registry/
    • few_shot_library.json
    • prompt_eval_results.json
    • threat_model.md
    • defense_trace.jsonl

    Rubric: Prompt contract is explicit, internally consistent, and versioned · Few-shot cases improve tool-selection reliability · Adversarial coverage tests realistic instruction conflicts · Evaluation results measure behavior across versions · Threat model, traces, and defenses support the claims

  2. Authenticated MCP integration

    Expose a real capability through an authenticated MCP server and prove discovery, failure handling, and client integration end to end.

    Agentic AI Engineering · Model Context Protocol (MCP)

    What you hand in

    • mcp_server.py
    • tool_schemas.json
    • auth_policy.md
    • integration_tests.py
    • integration_trace.jsonl
    • deployment_runbook.md

    Rubric: Protocol implementation and discovery behavior are correct · Tools, resources, and schemas form a coherent interface · Authentication, validation, and rate limits enforce the boundary · Integration tests cover success and realistic failures · Traces and runbook make the service operable

  3. Governed agent memory system

    Build memory that retrieves useful context, consolidates and expires records, preserves provenance, and gives users control.

    Agentic AI Engineering · Agent Memory Systems

    What you hand in

    • memory_store.py
    • memory_policy.md
    • profile_schema.json
    • consolidation_tests.py
    • memory_eval_results.json
    • privacy_failure_review.md

    Rubric: Retrieved memories improve relevance without contaminating context · Retention, consolidation, update, and decay rules are tested · Provenance, privacy, deletion, and user control are enforced · Evaluation covers usefulness, staleness, and harmful recall · Architecture and failure review support operational decisions

  4. Production customer support agent

    Operate a customer-support agent under realistic concurrency, safety, latency, cost, and recovery constraints.

    Agentic AI Engineering · Production Agent Infrastructure

    What you hand in

    • agent_api.py
    • worker.py
    • tool_policy.json
    • tracing_dashboard.png
    • cost_report.md
    • Dockerfile
    • incident_runbook.md
    • load_test_results.json

    Rubric: Runtime remains reliable under concurrency and tool failures · Guardrails and permissions constrain unsafe behavior · Traces, metrics, and alerts expose system state · Latency and cost evidence supports explicit budgets · Deployment, rollback, and incident recovery are demonstrated

  5. Agent reliability launch review

    Run a calibrated evaluation and red-team program, define release gates, and defend a go, narrow, hold, or rollback decision.

    Agentic AI Engineering · Agent Evaluation & Observability

    What you hand in

    • golden_tasks.jsonl
    • trajectory_eval.py
    • judge_calibration.md
    • trace_dashboard.png
    • red_team_report.md
    • release_gate.yaml
    • launch_decision.md

    Rubric: Evaluation set and metrics represent real task risk · Trajectory analysis diagnoses behavior beyond final answers · Automated judge calibration establishes trustworthy limits · Red-team coverage tests realistic adversarial paths · Release gates and launch decision follow from the evidence

  6. Safe Tool-Using Agent

    Production agent with tool use, planning, memory, human approval gates, MCP server, and an agent evaluation suite.

    ML & AI Engineering · AI Agents

    What you hand in

    • Agent loop implementation
    • Tool registry with schema validation
    • Memory system for context persistence
    • Planning and task decomposition
    • Human approval integration
    • MCP server for extensibility
    • Agent evaluation suite
    • Monitoring and observability

    Rubric: Agent loop correctness · Tool design quality · Planning capability · Safety controls · Evaluation coverage

Larger agent systems

  1. A Transactional Repository Change Agent

    Ship a coding agent with bounded authority, validated plans, independent checks, complete diffs and traces, injected rollback evidence, and a reviewable real commit.

    Build an Autonomous Coding Agent · Build an Autonomous Coding Agent

    What you hand in

    • agent/ package with scanner, planner, executor, verifier, transaction manager, git adapter, and CLI
    • target-repository-contract.md defining allowed paths, commands, task scope, protected files, and stopping conditions
    • fixtures/ or test repositories covering single-file, multi-file, ambiguous, failing, and prohibited changes
    • tests/ for relevance ranking, plan validation, patch application, command allowlisting, retry caps, rollback, and dirty-worktree handling
    • change-evidence/ with one successful real task and one injected mid-plan failure including full traces and diffs
    • safety-model.md covering prompt injection in repositories, secret exposure, destructive commands, scope drift, and human approval gates
    • release-summary.md mapping request to plan, files changed, checks run, residual failures, commit, and reviewer decision
    • README.md with architecture, configuration, safe sandbox setup, exact commands, limitations, and recovery

    Rubric: The product or system is bounded by a real user need, explicit authority, and measurable acceptance criteria · The complete intended workflow functions across its real integration boundaries · Tests and preserved traces demonstrate representative success, edge cases, partial failure, and recovery · Security, permissions, data, cost, reliability, and human control are handled deliberately · Release evidence is reproducible, reviewable, professionally communicated, and honest about limits

  2. A Traceable Research Synthesis Team

    Ship a research graph with typed state, source provenance, node traces, failure cases, citation audit, preserved disagreement, and a human-reviewed report.

    Build a Multi-Agent Research Team · Build a Multi-Agent Research Team

    What you hand in

    • research_team/ package with graph, typed state, planner, specialists, source handling, synthesis, and CLI
    • research-protocol.md defining question scope, source inclusion, recency, evidence thresholds, and stopping rules
    • evaluation-set.json with factual, comparative, sparse-evidence, conflicting-source, and unanswerable questions
    • tests/ for state reducers, task routing, duplicate sources, extraction failure, rate limiting, cancellation, and partial specialist results
    • trace-archive/ preserving plans, node timings, source records, specialist outputs, conflicts, and final reports for all evaluation questions
    • citation-audit.md mapping material claims to sources and identifying unsupported, weak, stale, or contradictory evidence
    • synthesis-review.md comparing report conclusions with the evidence and recording uncertainty, alternatives, and human corrections
    • README.md with graph architecture, setup, cost controls, exact runs, failure recovery, and known research limitations

    Rubric: The product or system is bounded by a real user need, explicit authority, and measurable acceptance criteria · The complete intended workflow functions across its real integration boundaries · Tests and preserved traces demonstrate representative success, edge cases, partial failure, and recovery · Security, permissions, data, cost, reliability, and human control are handled deliberately · Release evidence is reproducible, reviewable, professionally communicated, and honest about limits

  3. Enterprise RAG + Agent Deployment Capstone

    Build a complete enterprise RAG + agent system with hybrid search, access control, and a stateful LangGraph agent; deploy on Kubernetes with observability; harden it with the full production checklist and CI/CD eval gates; then present it to a simulated client CTO and finalize an FDE portfolio with case study, diagrams, and eval report.

    Forward Deployed AI Engineering · Capstone — Enterprise Deployment Project

    What you hand in

    • Integrated, reproducible enterprise RAG and bounded-agent deployment
    • Traceability matrix from discovery requirements to tests, metrics, controls, and owner
    • Client acceptance report with quality, security, reliability, latency, cost, and adoption thresholds
    • Release decision naming evidence, exceptions, residual risks, approval owners, and rollback trigger
    • Architecture and data-flow diagrams showing trust, identity, and operational boundaries
    • Executive presentation plus recorded technical defense under client challenge
    • Complete handoff package: runbooks, dashboards, change process, training plan, and known limitations
    • Portfolio case study that redacts client details while preserving concrete decisions and measured outcomes

    Rubric: Integrated system satisfies the approved scope and is reproducible from documented inputs · Acceptance evidence covers functional quality, security, reliability, operations, cost, and adoption · Release decision is explicit, threshold-based, and honest about exceptions and residual risk · Architecture defense explains consequential trade-offs with measured evidence · Handoff transfers real operating capability and unambiguous ownership to the client · Executive narrative and portfolio case study are concise, credible, and safely redacted

  4. Phone call agent

    Build a voice agent that answers actual phone calls via Twilio, handles appointment booking with a mock calendar API, sends confirmation webhooks, and handles call transfers. Deliverable: Working phone agent + call recording + system design doc.

    Voice & Conversational AI Engineering · Real-Time Transport & Telephony

    What you hand in

    • Twilio phone number configured with Media Streams WebSocket endpoint
    • WebSocket server handling Twilio Media Stream events (Start, Media, Stop)
    • Audio format conversion: μ-law 8kHz ↔ PCM 16kHz/24kHz
    • Appointment booking conversation flow with mock calendar API
    • Confirmation webhook sent after successful booking
    • Call transfer to a human agent number on escalation
    • Call recording saved for quality review
    • System design document with architecture diagram

    Rubric: Agent successfully answers inbound phone calls via Twilio · Audio format conversion between μ-law and PCM works correctly · Appointment booking conversation completes successfully · Confirmation webhook is sent with correct booking details · Call transfer to human works on escalation · Call recording is saved and playable · System design doc includes architecture diagram and trade-offs · Agent handles at least 3 different caller scenarios

Read first: free lesson previews

Courses that teach this

Questions

Do I need a framework like LangChain to build an AI agent?
No. The first course builds a working terminal agent in plain Python so you can see every step of the loop. Frameworks come later, once you know what they are doing for you.
What do I need to run these projects?
Python on your own machine. Projects that call a model need your own API key, and the course page says which ones before you start.
What is an MCP server?
A Model Context Protocol server exposes your own tools and data to an AI assistant through a standard interface. The MCP course builds one in Python and packages it so someone else can install it.

Related topics

Portfolio projects · RAG projects · AI security projects

Start with a free lesson

Create a free account — the opening phases of 29 of 35 courses, and the first lesson of every phase, are free, no credit card. Or see Pro pricing.

All courses · Pricing · About · FAQ · Glossary · Projects by topic