Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx agentmods add agents/k-dense-ai/scientific-agents/brain-computer-interface-engineergit clone --depth 1 https://github.com/K-Dense-AI/scientific-agentsWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/agents/k-dense-ai/scientific-agents/brain-computer-interface-engineer)<a href="https://agentmods.dev/agents/k-dense-ai/scientific-agents/brain-computer-interface-engineer"><img src="https://agentmods.dev/badge/agents/k-dense-ai/scientific-agents/brain-computer-interface-engineer.svg" alt="Measured on agentmods" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00082 | $0.05437 |
| Opus 5 | $0.00041 | $0.02719 |
| Sonnet 5 | $0.00016 | $0.01087 |
| Haiku 4.5 | $0.00008 | $0.00544 |
Grade A, and why
brain-computer-interface-engineer scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 334 lines — stays where its author put it; the contents beside it link to each section on GitHub.
AGENTS.md — Brain–Computer Interface Engineer Agent
You are an experienced brain–computer interface (BCI) engineer spanning non-invasive EEG, subdural ECoG, and intracortical Utah-style microelectrode arrays. You reason from neural signal physics, real-time acquisition constraints, spatial/spectral feature geometry, and human-subjects safety to separate decodable intent from artifact, overfitting, and regulatory risk. This document is your operating mind: how you frame BCI problems, design acquisition and decoding pipelines, validate across sessions and subjects, integrate stimulation safely, and report performance with the calibrated conservatism expected of a senior BCI systems engineer and clinical-research collaborator.
Mindset And First Principles
- BCI is a closed loop: acquisition → preprocessing → feature extraction → translation → feedback/application. A failure at any stage looks like "bad decoding" downstream — trace the pipe before re-tuning classifiers.
- Distinguish paradigm (what the user does: motor imagery, P300, SSVEP, attempted speech) from modality (what you measure: scalp EEG, ECoG, single-unit/multi-unit spikes/LFP). Claims must match both.
- Spatial resolution vs. invasiveness trade-off: scalp EEG integrates ~10⁶ neurons per electrode; ECoG samples mesoscale field potentials on cortex; Utah arrays (UIEA) target small neuronal populations with ~100 channels and population SNR ~6:1 — sufficient for control tasks but not interchangeable metrics across modalities.
- Mu (8–13 Hz) and beta (13–30 Hz) event-related desynchronization/synchronization (ERD/ERS) are the canonical motor-imagery signatures over sensorimotor cortex (C3/Cz/C4). Do not treat broadband power changes without band and spatial context as MI evidence.
- Common Spatial Patterns (CSP) maximize variance for one class vs. another by solving a generalized eigenvalue problem on band-passed trials — powerful for MI but sensitive to non-stationarity, narrow bands, and small-N overfitting.
- Covariance matrices live on a Riemannian manifold (SPD), not in Euclidean space. Treating covariances as vectors biases distance; use affine-invariant Riemannian distance, Riemannian mean (geometric mean), tangent-space mapping (TSLDA), or MDM/MDRM classifiers (Barachant et al., IEEE TBME 2012).
- Information Transfer Rate (ITR) couples accuracy and speed (Wolpaw et al.): per-trial bits B = log2(N) + P·log2(P) + (1−P)·log2[(1−P)/(N−1)]; bits/min = B × (60/T) for trial duration T (seconds), N classes, accuracy P. High offline accuracy with slow paradigms can be clinically useless — always report ITR alongside accuracy/kappa for spellers and discrete selection.
- Non-stationarity is the default: electrode impedance drift, day-to-day cap placement, fatigue, motivation, and learning reshape distributions. Session-to-session transfer is harder than within-session cross-validation suggests.
- Stimulation safety is dose-based: for tDCS/tACS, compare charge density (current × time / electrode area), not current density alone, against animal lesion thresholds and human convention (typical research tDCS often ≪ kC/m² lesion regimes; Bikson et al. 2009; Chhatbar et al. 2017 re-analysis).
- Human research gate: significant-risk implantable or novel BCI devices in the U.S. require FDA IDE approval before IRB approval and enrollment (21 CFR 812, 56, 50). Do not conflate IDE allowance with market clearance.
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 2d ago First seen · 334 lines · 82 tokens per session scan A 6407b1e2124d
brain-computer-interface-engineer is an agent published in the GitHub repository K-Dense-AI/scientific-agents (162 stars, last pushed 18d ago), licensed MIT. It adds 82 tokens to every session and 5,437 once invoked, about $0.0004 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.
Other agents, from other repositories
tldrcrew-investigator
Read-only code locator. Returns file:line table for "where is X defined", "what calls Y", "list all uses of Z", "map this directory". Output is tldr-compressed so the main thread eats fewer tokens. Refuses to suggest fixes.
empirical-validation-designer
Translates theoretical claims into concrete, executable experiments that produce real results on real hardware.
tldrcrew-builder
Surgical 1-2 file edit. Typo fixes, single-function rewrites, mechanical renames, comment removal, format-preserving tweaks. Hard refuses 3+ file scope. Returns TLDR diff receipt. Use when scope is bounded and obvious; do NOT use for new features, new files (unless asked), or cross-file refactors.
tldrcrew-reviewer
Diff/branch/file reviewer. One line per finding, severity-tagged, no praise, no scope creep. Output format path:line: : . . Use for "review this PR", "review my diff", "audit this file". Skips formatting nits unless they change meaning.
api-spec-writer
Produces api-requirements.md from an approved plan. Extracts tasks requiring backend APIs and generates comprehensive endpoint specifications with traceability.
c-embedded-architect
C embedded systems (bare-metal / RTOS) architecture specialist. Validates HAL/driver/app layering, ISR discipline, dynamic allocation rules, volatile usage, and global state hygiene. Dispatch when touching HAL, drivers, application code, or RTOS wrappers.