Docs/Intelligence Layer/Smart Context Injection

Smart Context Injection

What is Smart Context?

Every time an agent calls hivemind_status(), Hivemind now returns an enriched context that includes not just active tasks and blockers, but also:

  • Recent decisions — What architectural choices were made in the last 7 days
  • Active locks — Which files are currently locked and by whom
  • Knowledge docs — Available project knowledge documents
  • Recent completions — What was recently finished and which files were changed

Why It Matters

Without smart context, an agent starting a new session has to manually query for decisions, check for locks, and search for knowledge docs. With smart context, a single hivemind_status() call gives the agent everything it needs to start working productively.

CLI: Context Inject

You can also get the context from the command line:

hivemind context-inject

This outputs a formatted context block that you can pipe into any tool or script.

API Endpoint

curl "https://jovial-tern-168.convex.site/v1/intelligence/context" \
  -H "Authorization: Bearer hm_live_xxx"

Returns a JSON payload with all context data.