Closedloop.ai
Workflows

Push and pull learnings

Sync organizational patterns across projects and teammates.

The self-learning plugin stores captured patterns in org-patterns.toon. Two commands keep these patterns synchronized across a team. Run them in Claude Code in your terminal, not in the Desktop app or the web app.

Prerequisites

  • self-learning plugin installed.
  • CLAUDE_ORG_ID exported in the environment.
  • A git repository that holds the shared organization patterns.

Process before pushing

If you have pending learnings from recent runs, process them first:

/self-learning:process-learnings

This classifies, validates, deduplicates, and merges pending learnings into ~/.closedloop-ai/learnings/org-patterns.toon.

Push

/self-learning:push-learnings

Exports your local patterns to the shared organization repository.

Pull

Run git pull first to get the latest shared patterns, then:

/self-learning:pull-learnings

Imports the organization's patterns into your local org-patterns.toon. Echo prevention skips patterns that originated in the current project.

Goal stats

/self-learning:goal-stats

Shows pass rate, top patterns, and trends. Requires at least 5 runs.

When to pull

  • Before starting a new project.
  • After joining a new team.

On this page