explaingit

luclasm/luclas

Analysis updated 2026-05-18

1PythonAudience · developerComplexity · 3/5LicenseSetup · moderate

TLDR

A locally-run AI agent that learns from every task, rewrites its own operating rules over time, and adapts specifically to your workflows.

Mindmap

mindmap
  root((Luclas))
    Self-improvement
      Experience memory
      Self-updating policy
      Empty starting state
    Memory
      SQLite long-term store
      Episodic task history
      Semantic search
    Tools
      Shell commands
      Python execution
      Web search
      File operations
    Integrations
      WeCom
      Discord
      WhatsApp
      HTTP API
Click or tap to explore — scroll the page freely

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

What do people build with it?

USE CASE 1

Run a personal AI agent on your machine that learns your specific workflows and improves at your tasks over time.

USE CASE 2

Schedule recurring tasks in natural language and receive results via Discord, WhatsApp, or WeCom.

USE CASE 3

Integrate Luclas into an existing system using its HTTP API to submit tasks and poll for results asynchronously.

USE CASE 4

Inspect and manually edit the agent's self-written operating rules in core.md to correct bad habits before they reinforce.

What is it built with?

PythonSQLiteFastAPIsentence-transformersOpenAI API

How does it compare?

luclasm/luclasa-bissell/unleash-liteabhiinnovates/whatsapp-hr-assistant
Stars111
LanguagePythonPythonPython
Setup difficultymoderatehardhard
Complexity3/54/53/5
Audiencedeveloperresearcherdeveloper

Figures from each repo's GitHub metadata at analysis time.

How do you get it running?

Difficulty · moderate Time to first run · 30min

Requires an OpenAI-compatible API endpoint, configure LUC_LLM_BASE_URL and LUC_LLM_MODEL in .env before first run.

MIT license: use, modify, and distribute freely for any purpose, including commercial use, as long as you keep the copyright notice.

In plain English

Luclas is a Python-based AI agent that you run locally and that improves its behavior over time based on the work you give it. Unlike standard AI assistants that behave the same way every session, Luclas stores what it does and what went right or wrong, and uses that history to inform how it approaches similar tasks in the future. The improvement happens across three mechanisms. The first is experience memory: after every task, a record of what happened is written to a local SQLite database and recalled when similar tasks come up later. The second is a self-updating policy file called core.md, which functions as the agent's operating rules. The agent can rewrite those rules mid-task when it identifies a better approach, and every version of the file is saved so you can compare how the rules evolved. The third is that the database starts completely empty. Everything the agent learns comes from working with you specifically, which means two Luclas instances used for different kinds of work will develop differently. The README is explicit about a specific risk: because the agent writes its own rules, it can develop bad habits that reinforce over time if not corrected. The advice given is to push back explicitly when something goes wrong, read the policy file occasionally, and let the agent fail on real tasks rather than only giving it easy examples. The agent supports a range of tools: it can run shell commands, execute Python code in isolation, read and write files, search the web, and make HTTP requests. Tasks can be scheduled using natural language. It accepts input and delivers results over WeCom, WhatsApp, and Discord, with Telegram and Slack listed as coming. There is also an HTTP API for integrating Luclas into other systems. It connects to any OpenAI-compatible API endpoint, so it works with a local model served by Ollama or similar tools, or with any cloud provider that follows the same format. The project is MIT-licensed.

Copy-paste prompts

Prompt 1
I've installed Luclas and configured it to use a local Ollama model. What should I give it as its first few tasks to help it learn my development workflow effectively?
Prompt 2
My Luclas agent has developed a bad habit of over-explaining things. How do I use the /core history command to see when this started, and how do I correct it?
Prompt 3
Show me how to set up the Luclas HTTP API with an auth key and submit a task that searches the web and returns a summary, then poll for the result.
Prompt 4
I want Luclas to run a daily summary of my project status every morning and send it to Discord. How do I set that up using natural language scheduling?

Frequently asked questions

What is luclas?

A locally-run AI agent that learns from every task, rewrites its own operating rules over time, and adapts specifically to your workflows.

What language is luclas written in?

Mainly Python. The stack also includes Python, SQLite, FastAPI.

What license does luclas use?

MIT license: use, modify, and distribute freely for any purpose, including commercial use, as long as you keep the copyright notice.

How hard is luclas to set up?

Setup difficulty is rated moderate, with roughly 30min to a first successful run.

Who is luclas for?

Mainly developer.

Open on GitHub → Explain another repo

This repo across BitVibe Labs

Scan in gitsafehub Deploy in gitdeployhub luclasm on gitmyhub

Verify against the repo before relying on details.