Local tools on Ollama: paper overviews and posts,
cited answers about a paper library, an arXiv scout and CV tailoring
I wanted a hands-on way to learn the agentic patterns that matter in practice, on tasks I actually have: reading papers, writing about them, finding new ones, answering questions about my own research and tailoring a CV. labmate is a small collection of features that each show a different way of building with LLMs, all on one shared core.
Everything runs on local models through Ollama, with no paid APIs. The question each feature answers is
who decides the next step: in a workflow the code fixes the order and the model fills in each step;
in an agent the model picks its own tools. Both are built with LangChain chains, a LangGraph graph and
create_agent. Model output is never trusted blindly: claims are checked against the source, and checks in code
can send the model back or drop what it wrote.
Each feature is shown as the diagram it is built from. Hover a diagram to magnify it, click to open it full size.
A research paper in, a fact-checked overview.pdf out: a cover, four cards (Task, Challenges, Method, Results) and data-flow diagrams.
Reuses the paper2flow analysis to write a short LinkedIn post: a hook, three to five sentences that tell the story, and a question about something specific in the paper.
Give it a topic and it searches arXiv, reads and writes notes.md. Nothing fixes the order of its steps: the model plans, picks a tool, reads what comes back and repeats.
search_arxiv, read_abstract, read_overview (runs paper2flow on one paper).A topic and your interests in, a sorted reading list out: each arXiv hit becomes deep read, post or skip.
--run the chosen papers go through paper2flow or paper2post.Questions about a library of PDFs (here my dissertation and papers), answered with citations such as Dissertation ยง4.2, p. 57. The code fixes the path.
interrupt) until you pick a reading.The same task with the model in charge: it chooses what to search, whether to read more context and when to stop.
search_library, read_context, list_sources.A CV (YAML) and a job posting in; a tailored CV, a cover letter and a separate gap report out.
format and into the prompt.A personal, local-first project.
labmate is developed on a 32 GB Mac with Ollama and is not packaged on PyPI yet: you run it from a clone of the repository. The code and the diagrams above are the current state; expect fast-moving internals.
Stack: Python, LangChain, LangGraph, Ollama, SQLite, Typst, Mermaid. AGPL-3.0 licensed.