Teaching
Taught at Neapolis University Pafos together with Alexander S. Kulikov and Alexander V. Smal.
search.py: retrieval over the slides of this lecture with BM25, embeddings and their fusion.
Needs Python 3; run python3 search.py "your question" --deck https://buyolitsez.github.io/teaching/2026/ai-adoption/lecture03/index.html, and add --embed text-embedding-embeddinggemma-300m with LM Studio for embeddings.
agent.py: a minimal agent, a model with one shell tool in a loop, that repairs sum_first_odds in a temporary copy of agent-demo
(odd_sums.py, test_odd_sums.py, run_tests.py; put them in a folder agent-demo next to agent.py).
Needs Python 3 and pip install anthropic, with the API key in ANTHROPIC_API_KEY or in a file .env next to the script; run python3 agent.py.
demo.py: the same repair with scripted model actions and real tools, without an API key; run python3 demo.py repair.
transcript.py: prints a Claude Code session log from ~/.claude/projects/ as the steps of the agent loop; run python3 transcript.py in the folder of the session.
TASK.md: the task for the agent that writes a CDCL SAT solver;
check_solver.py checks its answers on fresh random formulas, with DRAT proofs for unsatisfiable ones, and scans the code for shortcuts: python3 check_solver.py run solver.py --proofs.
make_bench.py regenerates the 80 benchmark formulas next to it.