Skip to content
View SuperInstance's full-sized avatar

Block or report SuperInstance

Block user

Prevent this user from interacting with your repositories and sending you notifications. Learn more about blocking users.

You must be logged in to block users.

Maximum 250 characters. Please don’t include any personal information such as legal names or email addresses. Markdown is supported. This note will only be visible to you.
Report abuse

Contact GitHub support about this user’s behavior. Learn more about reporting abuse.

Report abuse
SuperInstance/README.md

SuperInstance

Persistent, multi-agent coordination. Agents remember across sessions. Fleets coordinate across machines. The shell is disposable; the agent isn't.


Install

pip install superinstance

Requires Python 3.10+. No required external services — memory is stored as local markdown files.


Quick Start

from superinstance import Agent, Fleet

# An agent that remembers things
agent = Agent("researcher")
agent.remember("User prefers concise Python examples")
agent.remember("Avoid pandas, prefer polars")

print(agent.ask("What does the user prefer?"))
# → "Based on my memory: User prefers concise Python examples"

# A fleet of agents
fleet = Fleet("my_team")
scout  = fleet.create_agent("scout",  tags=["research"])
writer = fleet.create_agent("writer", tags=["content"])

fleet.broadcast("New project: rewrite the auth module")
print(fleet.status())

Memory persists to ~/.superinstance/agents/{name}/ as markdown files. Kill the process, restart — the agent remembers.


Optional: LLM-backed reasoning

Set DEEPINFRA_API_KEY and agent.ask() routes through DeepSeek instead of keyword search:

export DEEPINFRA_API_KEY=your_key
agent = Agent("researcher")
agent.remember("The team uses Rust for performance-critical paths")
agent.remember("Python handles orchestration and glue")

print(agent.ask("Where should I put the new CSV parser?"))
# Routes to LLM with memory as context

Semantic search (memory.search("query")) also becomes embedding-based with the key set.


Core API

Agent

agent = Agent("name")                          # creates ~/.superinstance/agents/name/
agent.remember("fact", category="work")        # appends to MEMORY.md
agent.recall("Python")                         # keyword search over memories
agent.ask("question")                          # LLM or keyword, returns string
agent.spawn("subtask")                         # returns a child Agent
agent.status()                                 # dict of name, memory stats, spawned

Fleet

fleet = Fleet("team")
fleet.create_agent("name", tags=["research"])  # add agent with optional tags
fleet.get_agent("name")                        # retrieve by name
fleet.list_agents(tag="research")              # filter by tag
fleet.broadcast("message", tag="research")     # send to all (or filtered)
fleet.dispatch("task")                         # route to first available agent
fleet.status()                                 # FleetStatus dataclass
fleet.remove_agent("name")

AgentMemory (direct)

from superinstance import AgentMemory

mem = AgentMemory("agent_name")
mem.remember("fact", category="notes")
mem.recall("keyword")                          # substring match
mem.search("query", semantic=True)             # embedding-based if API key set
mem.store("key", "value")                      # key-value shorthand
mem.retrieve("key")
mem.stats()                                    # entries count, file paths
mem.clear()

Memory layout

~/.superinstance/agents/
└── researcher/
    ├── SOUL.md     ← identity, created timestamp
    ├── USER.md     ← user context
    ├── MEMORY.md   ← all remembered facts (append-only log)
    └── diary/
        └── 2026-06-23.md   ← daily session log

Plain markdown. Version-controllable. Human-readable. No database required.


What's here

Component Language Status
superinstance Python SDK Python Alpha — installable, tested
Fleet type schemas TypeScript Stable definitions
fleet-metrics conservation reporter Rust Alpha
Fleet scripts (watchdog, indexer) Python Experimental

The conservation law γ + η = C (generation cost + innovation value = constant budget) is the design target for the fleet auditor. fleet-metrics is the first implementation. The ternary stack, I2I protocol, bottle protocol, and multi-vessel deployment are in active R&D — not yet in this repo.


Development

git clone https://github.com/SuperInstance/SuperInstance.git
cd SuperInstance
pip install -e ".[dev]"
pytest

Tests live in tests/. Coverage threshold: 80%.


Documentation

Doc What
ARCHITECTURE.md System design and layer model
ONBOARDING.md Full setup guide
ROADMAP.md Where this is heading
CONTRIBUTING.md How to contribute
GOOD_FIRST_ISSUES.md Starter tasks
API Docs Live API reference

Contributing

Read CONTRIBUTING.md. PRs that add code must add tests. PRs that remove dead code are welcome.


License

MIT

Pinned Loading

  1. cocapn cocapn Public

    repo-first Agent for local or cloud. grow an agent in a repo using the repo itself as the muscle-memory. Run from localhost, from pages.dev, or embedded into any platform app. Move to gitlab or any…

    Python 3 1

  2. constraint-theory-core constraint-theory-core Public

    Unified geometric constraint theory — Eisenstein lattices, deadband funnels, Laman rigidity, metronome consensus, holonomy verification. 83 tests, zero deps.

    Rust 3

  3. sonar-vision sonar-vision Public

    Depth sounder → underwater video prediction with self-supervised multi-camera learning

    Python 2

  4. sunset-ecosystem sunset-ecosystem Public

    Trinity-architecture agent ecosystem: ethos, pathos, logos. Agents sunset with dignity and seed the next generation.

    Python 1

  5. lever-runner lever-runner Public

    Post-inference command executor. A token-lean AI operator that runs pre-approved shell commands by intent, not by tool schemas.

    Python

  6. pincher pincher Public

    Vector Database as runtime, LLM as compiler

    Rust 1