What do you want to do?
3 use cases
-
Run a continuing brain that learns from live rewards
Compose a System 1 brain and feed it observations and measured rewards in one ongoing stream.
- REPO
muellerberndt/cadence - Research
- Intermediate
View prompt
Using the Python package cadence-net (repo muellerberndt/cadence), write a loop that drives Brain.compose(inputs=4, actions=2, arousal=True) through live() calls on the toy environment at <environment file>. Expected output: a printed log of actions, rewards and last_settlement values for 200 steps. Verify that each call after the first passes the reward of the previous action.
- REPO
-
Preview a brain's responses without altering live memory
Use imagination to inspect possible responses while the live trace and pending feedback stay unchanged.
- REPO
muellerberndt/cadence - Research
- Intermediate
View prompt
Using the Python package cadence-net (repo muellerberndt/cadence), compose a brain with inputs=4 and actions=2, run live() for 50 steps, then call imagine() on <observation sequence> and print each phase's qualified flag. Expected output: the qualified flags and the live action taken afterward. Verify that the live action sequence matches a control run that skips imagine().
- REPO
-
Test whether System 2 observers help a task
Build a System 1 brain and a recursive brain with observers, then compare them on the same task.
- REPO
muellerberndt/cadence - Research
- Advanced
View prompt
Using the Python package cadence-net (repo muellerberndt/cadence), run Brain.compose with and without observers=(8,) on the environment at <task file> using live() for 500 steps each. Expected output: two reward-by-step series and a summary of their averages. Verify that both brains receive identical observations and rewards at each step.
- REPO
Quick start with Cadence
- Check you have what it needs: Python 3.11 or newer; NumPy installed through pip; A toy environment or task that can supply an observation and a measured reward after each action.
- Open muellerberndt/cadence on GitHub and read the README and license.
python -m pip install cadence-net==0.84.3- Create a Python file that runs
brain = Brain.compose(inputs=4, actions=2, arousal=True)fromcadence. - Call
action = brain.live(observation)with one observation row, execute the action in your environment, and measure the reward. - Call
action = brain.live(next_observation, reward=reward)for each following step, passing the reward of the preceding action.
These steps come from our top use case, Run a continuing brain that learns from live rewards, which also has a copy-paste agent prompt.
Use this in your AI agent
Ask your agent
Using the Deduped MCP, get the setup steps for muellerberndt/cadence
Add Deduped to Claude Code once
claude mcp add --transport http deduped https://dedupedai.com/mcp
Every Monday: the 5 hottest repos and exactly how to use them. Free, one email a week, unsubscribe anytime.
Get them freeAbout this repo
- Who it is forResearchers and Python developers who want a continuing learning agent to test acquisition, retention and recovery over a long run of experience.
- Why it is hot596 stars, launched 63 days ago
- LanguagePython
- Sourcegithub.com/muellerberndt/cadence · Back to Hot repos
Requirements
- Python 3.11 or newer
- NumPy installed through pip
- A toy environment or task that can supply an observation and a measured reward after each action
Add this badge to your README
Maintain Cadence? Show readers where to find these use cases.
Markdown
[](https://dedupedai.com/use-cases/muellerberndt-cadence/?utm_source=github&utm_medium=badge&utm_campaign=muellerberndt-cadence)
HTML
<a href="https://dedupedai.com/use-cases/muellerberndt-cadence/?utm_source=github&utm_medium=badge&utm_campaign=muellerberndt-cadence"><img src="https://dedupedai.com/badge/muellerberndt/cadence.svg" alt="Use cases on Deduped" height="20"></a>
A static image, no tracking script. About the badge
Questions about Cadence
What is Cadence?
Cadence is a Python library for building simulated animal-like brains that keep learning from live experience, with an optional self-observing System 2. It is an open-source project on GitHub: https://github.com/muellerberndt/cadence.
How do I use Cadence?
python -m pip install cadence-net==0.84.3; then create a Python file that runs brain = Brain.compose(inputs=4, actions=2, arousal=True) from cadence; call action = brain.live(observation) with one observation row, execute the action in your environment, and measure the reward. The use cases on this page give the full steps and a copy-paste agent prompt for each job.
Who is Cadence for?
Researchers and Python developers who want a continuing learning agent to test acquisition, retention and recovery over a long run of experience.
What can I do with Cadence?
3 use cases so far, for example: Run a continuing brain that learns from live rewards; Preview a brain's responses without altering live memory; Test whether System 2 observers help a task. Each has steps and a copy-paste agent prompt.
What do I need to run Cadence?
Python 3.11 or newer; NumPy installed through pip; A toy environment or task that can supply an observation and a measured reward after each action.
What are alternatives to Cadence?
Other hot AI repos in Research: Deep Tutor, Local Deep Research, Project Nomad, Nanochat, We Knora.
Is Cadence safe to run?
Deduped does not own, audit or vouch for it. Read the README and license, run it on your own systems first and review every command before you run it.