Skip to content
Agentmart
Submit a tool

brain-signal-system

Skill by humanerd-drew

IndexedMIT★ 3
Write a review

Install

Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.

npx agentmarket install skill/humanerd-drew-brain-signal-system

Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.

Get the weekly diff

The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.

We use your email only for this newsletter. Privacy

About

The publisher has not written a description yet.

Use cases: agent-building

No reviews yet. Installed it? Reviews come from verified installers only. How reviews work

Permissions: not checked yet.

What's inside

Skill name
brain-signal-system
Description
None
License
MIT
Instructions
49 lines in SKILL.md · view on GitHub

Agent Skills spec issues

  • invalid YAML frontmatter: Unexpected scalar at node end at line 3, column 29:
  • name: missing
  • description: missing

Files (2)

  • SKILL.md
  • gbrain-mcp-integration.md · references/

SKILL.md (first lines)

# Brain Signal System — {{AGENT_NAME}} Self-Awareness Infrastructure

**Date**: 2026-05-31 (updated 2026-06-11)
**Status**: Operational
**Source**: `agent/brain_signals.py`, `agent/signal_processor.py`, `agent/event_bus.py`, `agent/awareness_reporter.py`, `agent/brain_monitor.py`
**Purpose**: Single source of truth for {{AGENT_NAME}}'s brain signal architecture.

---

## 12. Brain Monitor Fallback Cleanup (2026-06-10)

### Problem

`agent/brain_monitor.py:_deliver()` calls `_deliver_fallback()` when DeliveryRouter fails, writing `monitor/brain_signals_{ts}.md`. DeliveryRouter nearly always fails with `'dict' object has no attribute 'always_log_local'` → **5,123 files** in ~30 days (400MB+). All orphans in Obsidian graph (0 inbound links).

### Fix

```python
# Before (brain_monitor.py:364-367):
except Exception as e:
    logger.warning("DeliveryRouter unavailable, writing to local fallback: %s", e)
    self._deliver_fallback(content)

# After:
except Exception as e:
    logger.warning("DeliveryRouter unavailable (session %s): %s", self.session_id, e)
```

`_deliver_fallback()` retained as dead code (manual use possible) but no longer called.

### Cleanup

```bash
rm ~/.{{AGENT_NAME_LOWER}}/monitor/brain_signals_*.md  # 5,123 files → 0
# Retained: ~/.{{AGENT_NAME_LOWER}}/monitor/brain_signal_log.jsonl (5KB, compressed alternative)
```

### Verification

```bash
ls ~/.{{AGENT_NAME_LOWER}}/monitor/  # should show only brain_signal_log.jsonl
```

### Pitfall

- If DeliveryRouter is ever fixed, the primary delivery path (Discord/Telegram channel) will start working and the fallback won't be needed. The `_deliver_fallback()` method is preserved for manual emergency use.
- Same data exists in `gateway.log` and `brain_signal_log.jsonl` — no information loss.
- The `BrainSignalMonitor` class still works; only the file fallback is removed.

From humanerd-drew/opencode-drewgent, MIT.

More from humanerd-drew/opencode-drewgent

Signals

Stars
3
Forks
8
Open issues
0
Last commit (this folder)
Jul 15, 2026 (3 months ago)

From GitHub (fetched Oct 24, 2026).

Details

License
MIT
First seen
Oct 24, 2026
Last checked
Oct 24, 2026

More from humanerd-drew

Cite this page

brain-signal-system skill. Agent Mart. https://agentmart.dev/skills/humanerd-drew-brain-signal-system (last updated 2026-10-24)