agentleFS
mphaxisemphaxise/gstack-port-for-codex/skills/brain-ops/SKILL.md

brain-ops

Skill4 starsChanged 4 months agoMITView on GitHub

Brain-first local memory workflow for Codex. Use to search, update, cite, or cross-link the local brain before outside research or after new user signal.

The file

We split this skill into the rules it gives an agent

12 rules. About 0 are common, 9 are distinctive, and 3 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈9

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 3

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Use this skill when the user wants memory-grounded work and the local brain/ corpus should influence the response or capture new context.

    line 8
  2. Distinctive:

    Check the local brain first:

    line 23
  3. Distinctive:

    search for the entity, topic, or project

    line 24
  4. Distinctive:

    read the top matching pages before doing outside research

    line 25
  5. Distinctive:

    If the user shared new information, write it back:

    line 26
  6. Very specific:

    create or update the right page under brain/

    line 27
  7. Distinctive:

    add a dated timeline entry

    line 28
  8. Distinctive:

    add backlinks for referenced people, companies, meetings, or concepts

    line 30
  9. Very specific:

    keep inline [Source: ...] citations on any new fact

    line 31
  10. Distinctive:

    Do not claim this is always-on ambient capture.

    line 40
  11. Distinctive:

    Do not use external research before checking the local brain when the task is memory-sensitive.

    line 41
  12. Distinctive:

    Do not invent citations or backlinks just to satisfy formatting.

    line 42

≈ “Common” is an estimate: at least 1 in 5 of the 213,895 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Brain Ops

Use this skill when the user wants memory-grounded work and the local brain/ corpus should influence the response or capture new context.

This port is adapted from garrytan/gbrain at commit 0b47afbf402a4e27a648bb9d131ce584461461ea.

Important Adaptation

Upstream GBrain treats brain ops as an ambient behavior layer. In this repo, the equivalent is an explicit workflow backed by local file operations:

  • python3 scripts/brain_search.py "<query>"
  • python3 scripts/brain_put.py ...
  • python3 scripts/brain_link.py ...
  • python3 scripts/brain_citations.py

Workflow

  1. Check the local brain first:
    • search for the entity, topic, or project
    • read the top matching pages before doing outside research
  2. If the user shared new information, write it back:
    • create or update the right page under brain/
    • add a dated timeline entry
  3. Maintain graph hygiene:
    • add backlinks for referenced people, companies, meetings, or concepts
    • keep inline [Source: ...] citations on any new fact
  4. Answer or continue the task using the retrieved context.

Current Upstream Coverage

Enforce the brain-first loop on inbound and outbound work: read relevant context, enrich or write durable signals, update structured relationships, then answer from refreshed context. Every new durable page must backlink to its source or parent context; cross-source answers must identify which source supports each claim.

Guardrails

  • Do not claim this is always-on ambient capture; run it deliberately.
  • Do not use external research before checking the local brain when the task is memory-sensitive.
  • Do not invent citations or backlinks just to satisfy formatting.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.