Big News: Socket raises $60M Series C at a $1B valuation to secure software supply chains for AI-driven development.Announcement
Sign In

@macrodata/opencode

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@macrodata/opencode

Stateful agent tools for OpenCode. Learns who you are, remembers what you're working on, schedules tasks, maintains itself.

latest
Source
npmnpm
Version
0.2.1
Version published
Weekly downloads
18
-28%
Maintainers
1
Weekly downloads
 
Created
Source

Macrodata

Macrodata

Give Claude Code and OpenCode persistent, self-maintaining memory and autonomous scheduling.

This is experimental software. Use at your own risk.

  • Layered memory - identity, journal, topics, semantic search across sessions
  • Scheduling and autonomy - recurring background tasks, reminders, morning prep, self-maintenance
  • Memory distillation - consolidates learnings into structured knowledge
  • Dream time - overnight reflection, pattern recognition, self-improvement
  • Uses your existing tools – no new APIs or third-party skills needed, but if you have them, it can use them.
  • No security nightmares - runs with your existing security rules. No external APIs or third-party skills.
  • Local-only - all memories stored as markdown and JSON you can read and edit.

What It Does

Learns and remembers who you are, what you're working on, and how you like to work. Analyzes your past conversations to build context. Puts working memory into every session so you never start from scratch.

Working Memory

Every session starts with context injection - your identity, current projects, daily focus, and recent activity. The agent knows who you are and what you're doing before you type anything.

State files track what matters right now:

  • identity.md - how the agent should behave with you
  • human.md - who you are, your preferences, your projects
  • today.md - daily focus and priorities
  • workspace.md - current project context
  • topics - working knowledge the agent has built up

Journals

Observations, decisions, and learnings get logged to a searchable journal. Semantic search finds relevant context across all your history - journal entries, entity files, and past conversations.

Conversation Analysis

Indexes your past Claude Code and OpenCode sessions. When you're stuck on something similar to before, it finds and retrieves the relevant context from previous conversations.

Distillation

Periodically consolidates scattered learnings into structured knowledge. Patterns noticed across conversations become permanent understanding in your state files.

Dream Time

Scheduled reflection that runs while you're away. Reviews recent activity, notices patterns, updates state files, and prepares for tomorrow. Researches best practices. The agent maintains itself.

Security

Some autonomous agent systems run their own shell, execute third-party skills, and expose APIs - creating prompt injection vectors, credential leaks, and remote code execution risks.

Macrodata runs inside Claude Code's existing permission model. It uses only the tools you've already installed and approved. No external APIs, no third-party skill downloads, no new attack surface. Scheduled tasks run through the same Claude Code instance with the same permissions you've already granted.

The daemon is a simple cron runner that spawns Claude Code when reminders fire. All state is local markdown files. Nothing phones home.

Requirements

  • This will likely only work on macOS and Linux systems. It may work with WSL on Windows, but this is untested.
  • Requires Bun.

Installation

Claude Code

/plugin marketplace add ascorbic/macrodata
/plugin install macrodata@macrodata

OpenCode

~/.config/opencode/opencode.json:

{
  "plugin": ["@macrodata/opencode"]
}

Launch the app and ask to set up Macrodata.

Inspiration

The layered memory architecture is inspired by Letta, and particularly the Void bot by Cameron Pfiffer. The ambient compute and dream time concepts are inspired by Strix by Tim Kellogg. I first explored these ideas in my Acme agent, that I built in December 2025, and which continues to run and evolve on my Mac Mini. Acme built Innie, my first work agent, and Macrodata is these tools and ideas made available as a plugin for Claude Code and OpenCode.

License

MIT

Keywords

opencode

FAQs

Package last updated on 15 Feb 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts