New:Introducing Socket Scanning for VS Code Marketplace Extensions.Learn more →
Get Started

@awareness.market/opencode-plugin

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@awareness.market/opencode-plugin

OpenCode plugin for Awareness memory — auto-capture sessions + cross-session recall via Awareness cloud or local daemon

latest
Source
npmnpm
Version
0.3.0
Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

@awareness.market/opencode-plugin

LongMemEval R@5 Discord

Persistent cross-session memory for OpenCode via Awareness. Local-first — works offline, no account needed.

Gives OpenCode a long-term memory that survives across sessions — no more forgetting what was built, repeating architectural decisions, or losing track of open TODOs.

What it does

  • Auto-capture — when a session goes idle, the plugin stores a concise summary of the session into Awareness. Enterprise developer activity automatically becomes searchable memory.
  • Awareness tools — registers awareness_init, awareness_recall, awareness_record, awareness_lookup, awareness_task_board, awareness_task, awareness_apply_skill, awareness_mark_skill_used as native opencode tools (no MCP config required).
  • Cloud or local — works against the Awareness cloud (aw_ API key) or a local daemon (npx @awareness-sdk/local start).

Squad mode (multi-agent, cloud)

One memory is the shared brain; the task board is the control plane. A lead agent decomposes work into tasks; any number of workers claim, hand off, and finish them — across machines and IDEs.

  • awareness_task_board — every agent's tasks grouped by status (open / claimed / doing / done / blocked / failed)
  • awareness_task — atomic claim (expect_status CAS), renew, structured handoff, finish, attest (verified_by)
  • awareness_squad_guide — returns when local subagents / multiple sessions stop scaling, plus features, quickstart and pricing, so the agent can make a short in-language recommendation at the right moment
  • Bundled skill skills/squad/SKILL.md — lead + worker playbooks; copy it into .opencode/skills/

Cross-machine squads need cloud mode (billed through your Awareness plan); local mode is single-machine and free. Progress is visible both via awareness_task_board inside HyperCode and on the memory's Task board tab in the browser.

Install

# Global config
# add to ~/.config/opencode/opencode.json:

{
  "plugin": ["@awareness.market/opencode-plugin"]
}

Then configure credentials (see below) and restart opencode.

Configure

{
  "plugin": [
    ["@awareness.market/opencode-plugin", {
      "apiKey": "aw_your-api-key",
      "memoryId": "your-memory-id",
      "baseUrl": "https://awareness.market/api/v1",
      "agentRole": "builder_agent",
      "autoCapture": true,
      "recallLimit": 8
    }]
  ]
}

Or via environment variables (highest priority — good for CI/serverless):

export AWARENESS_API_KEY="aw_..."
export AWARENESS_MEMORY_ID="your-memory-id"
export AWARENESS_BASE_URL="https://awareness.market/api/v1"
export AWARENESS_AGENT_ROLE="builder_agent"

Get your API key and Memory ID from the Awareness Dashboard.

Local (privacy-first, offline, no account)

npx @awareness-sdk/local start

The plugin auto-detects the daemon at http://localhost:37800. Memory stays on your machine. No credentials needed.

One-command setup

When configured with neither credentials nor a reachable daemon, the plugin registers an awareness_setup tool. Ask the agent to "set up memory" and it will start a browser device-auth flow.

Configuration reference

OptionTypeDefaultDescription
apiKeystring""Awareness API key (aw_ prefix)
memoryIdstring""Target memory UUID
baseUrlstringhttps://awareness.market/api/v1Cloud API base URL
agentRolestringbuilder_agentAgent role for scoped recall
autoCapturebooleantrueAuto-store a session summary on idle
recallLimitinteger8Max results for recall
contextGuardbooleantrueWrite a checkpoint to memory before the context window overflows
contextGuardRationumber0.75Fraction of the context window that triggers a checkpoint
contextGuardMinTokensinteger50000Never checkpoint below this absolute token count
contextLimitinteger128000Model context window in tokens (set to your model's limit)

Context Guard (auto context management)

When a session approaches the context window limit, the plugin writes a compact context checkpoint to memory (current objective, decisions, open tasks, files — a few hundred tokens) before compaction. Compaction then produces a structured handoff (raw logs are dropped — they stay retrievable), and the first turn after compaction tells the model to recall the checkpoint instead of re-deriving decisions or re-reading logs.

  • Trigger: contextGuardRatio (default 75%) with a contextGuardMinTokens floor
  • Cooldown: at most one checkpoint per session per 10 minutes
  • Disable: contextGuard: false or AWARENESS_CONTEXT_GUARD=0
  • Works in cloud and local mode; the checkpoint is a normal context_checkpoint memory event

Available tools

ToolDescription
__awareness_workflow__Step-by-step checklist for the memory workflow
awareness_initLoad cross-session project memory and context
awareness_recallSemantic + keyword hybrid recall
awareness_lookupStructured data: tasks, knowledge, risks, timeline
awareness_recordWrite events with optional structured insights
awareness_task_boardSquad board: every agent's tasks grouped by status
awareness_taskAtomic claim / renew / handoff / finish / attest
awareness_squad_guideWhen local subagents / sessions stop scaling + features + quickstart
awareness_apply_skillExecute a learned skill
awareness_mark_skill_usedReport skill outcome (closes the learning loop)

Skills (optional)

The package bundles guided-workflow skills under skills/. Copy them into your project and register:

cp -r node_modules/@awareness.market/opencode-plugin/skills/* .opencode/skills/

Then add "skills": { "paths": [".opencode/skills"] } to opencode.json (see opencode.json.example).

Skills: setup · session-start · recall · save · done · squad.

MCP (optional)

The plugin already registers the tools — but if you prefer the MCP path, see opencode.json.example for a remote-MCP config pointing at https://awareness.market/mcp (cloud) or http://localhost:37800/mcp (local daemon).

What makes Awareness different

  • Hybrid retrieval — BM25 + vector + knowledge-graph 1-hop, fused with RRF. 96.0% R@5 on LongMemEval, zero LLM calls on the retrieval side.
  • Salience-aware extraction — cards self-scored on novelty/durability/specificity; low-signal cards dropped server-side.
  • Project isolation — memory scoped per project/workspace, so work memory doesn't leak into personal memory.
  • Zero-LLM backend — extraction runs on the agent's LLM; the backend is a coordinator + storage layer.
  • One memory, many clients — same memory reachable via OpenCode, Claude Code, OpenClaw, npm/pip SDKs, and a plain MCP server.

License

Apache-2.0

FAQs

Package last updated on 23 Oct 2026

Related posts