~/Learning

A learning routine: the agent studies open source repos before building anything.

Before building, learning

For an agent to be efficient, the first thing is to onboard it: teach it the project, the patterns, the limits. Without that, every session starts from zero. The agent discovers the structure, finds the commands, learns the conventions, and the next session does it all again.

That is why the first task given to Hermes, the lab's agent, was just that: learn. Not build, not integrate, not automate. Learn.

The idea in one sentence: the filesystem is the context, .md contracts are the instructions and daily diffs are the fuel.

The structure

Knowledge is split into folders with instructive .md files. Each tracked open source repo gets its own namespace, and AGENTS.md is the hook: the agent reads that file and knows what to do, with no outside context.

~/learning/AGENTS.mdREADME.mdupdate_repos.pystrix_learning/repo/ + AGENTS.mdHOW_TO_USE.mdLEARNING.mdsim_learning/repo/ + AGENTS.mdHOW_TO_USE.mdLEARNING.md~/LEARNING.mddaily digest, outside the folder
Each repo has its own AGENTS.md. Some go deep: Sim's has 548 lines, with one AGENTS.md per module.
FileRole
AGENTS.mdThe contract. Instructions the agent follows without asking: at the root, the daily routine (pull, diff, summary); inside each repo, build, architecture and conventions.
README.mdThe index. A table with every tracked repo, link, priority and a one-line description.
update_repos.pyThe engine. Runs git pull in each repo and returns JSON with new commits, changed files and diffs.
HOW_TO_USE.mdOptional guide, when a repo is complex enough to deserve a summary beyond its AGENTS.md.
LEARNING.mdStudy notes for that repo, piling up over time.
~/LEARNING.mdThe daily digest, on purpose outside the folder: everything that changed, in one place.

The daily routine

The agent does not study for the sake of it. Learning has an output: patterns become skills, skills become tools, and the tools speed up the next project.

Cronor commandupdate_repos.pypull + diffs as JSONAgent analyzeswhat changed~/LEARNING.mdReusable pattern?noyesExtracts a skillexecutable contractskills-blackholeagent toolbox
The digest is the visible product: it is where you can ask "what changed in Paperclip this week?".

Contract and pre-mapping

What makes the system work is the contract. The root AGENTS.md is an executable instruction, not documentation: it says which repos to update, how to read the diffs and when to generate skills.

That creates pre-mapping: before you need a subject, the map is already there. The daily diff is not passive study, it is continuous indexing.

Without learningthe repo shows up in a projectdiscover structure, commands, conventionsWith learningdaily diffs, already indexedthe agent already knows: cost near zero

The first skill

The routine worked, but it was manual: every time I wanted to run the update, I had to explain what to do. The way out was to turn the learning system itself into a Hermes skill. Now a command, or a mention in the middle of a conversation, is enough: the agent loads the contract, runs the script, analyzes the diffs, writes the digest and extracts skills when it finds patterns.

  1. Adding a repo: /learning <repo_url> creates the _learning folder, clones, updates the README and writes the first digest entry.
  2. Daily routine: runs update_repos.py and summarizes in ~/LEARNING.md what changes usage or contribution, in about 50 lines per repo at most.
  3. Extraction: for each repo with a relevant change, it classifies the knowledge (architecture, API, operational workflow, troubleshooting) and writes a contract with Goal, Scope, Triggers, Inputs, Procedure, Outputs and Review gate.
  4. Publishing: when a study session produces three or more skills on the same topic, they go to skills-blackhole in the blueprint format.

The learning system became the first skill because it was the first repeatable task, and because it stands for the central premise: the agent learns before it builds. The next step is ~/Projects, and the contract format is in the Agentic Workflow Blueprint.

References