brain-first

Check memory and session history before external API calls.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/0x-wzw/necroswarm --skill brain-first
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: brain-first
Source: https://github.com/0x-wzw/necroswarm/tree/main/skills/brain-first
Command: npx skills add https://github.com/0x-wzw/necroswarm --skill brain-first

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

Brain-first prevents redundant external API calls by checking memory and session history before making external requests.

Core Features & Use Cases

  • Checks memory first, then session history, before falling back to web_search or other external calls
  • Includes executable brain_check.py to probe local knowledge sources
  • Supports fast, cost-aware decision-making in agent orchestration workflows

Quick Start

Run the brain_check.py script to determine whether a query exists in memory or sessions before performing any external search.

Frequently Asked Questions about brain-first

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I prevent redundant web_search API calls in agent orchestration?

To prevent redundant web_search API calls in agent orchestration, check local memory and session history first before making external requests. Brain-first enforces this workflow by probing cached knowledge sources to ensure external calls are only used as a fallback.

What is the best way to use session history for fast agent responses?

Using session history for fast agent responses involves querying recent interactions prior to invoking external APIs. Brain-first intercepts orchestration tasks to probe session data, ensuring cost-aware decisions and rapid responses by relying on cached knowledge.

How do I check local memory before triggering external API requests?

To check local memory before triggering external API requests, run the executable brain_check.py script. It probes memory and session history to determine if a query exists locally, establishing a clear external-call fallback only when local sources are insufficient.

Does brain-first enforce a fixed workflow for memory lookups and external calls?

Yes, brain-first enforces a fixed workflow for memory lookups and external calls. It strictly checks memory first, then session history, and only falls back to external API usage if local knowledge sources are insufficient to resolve the query.

When should I not use local memory caching for agent orchestration?

You should not rely solely on local memory caching when recent session history or cached knowledge is insufficient to resolve a complex query. In such cases, the fixed workflow triggers a clear external-call fallback to fetch fresh data from web_search or APIs.