Task Extractor

Task Extractor is an agent for Claude Code from onebrain-ai/onebrain. It costs 20 tokens per session (528 once invoked), scanned A, original, Apache-2.0.

An agent that reads a braindump note—a free-form note of thoughts—and turns clear action items into dated tasks in a vault.

In plain words
What is it for?
It detects action phrases, extracts up to five concise tasks, adds dates, and places them in the specified vault folders when applicable.
Why use it?
It finds tasks buried in informal writing, so they do not need to be identified and formatted by hand.

Agent for Claude Code

Written for Claude Code: installed under .claude/.

Part of the onebrain plugin — 32 skills, 5 agents, 2 hooks shipped together

Good fit It detects action phrases, extracts up to five concise tasks, adds dates, and places them in the specified vault folders when applicable.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/onebrain-ai/onebrain/task-extractor
Install

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.

Clone the repo
git clone --depth 1 https://github.com/onebrain-ai/onebrain

Made for: Claude Code.

Or install onebrain, the plugin that ships this one along with the rest of its 32 skills, 5 agents, 2 hooks.

Wrote 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.

agentmods badge for Task Extractor

README.md
[![agentmods](https://agentmods.dev/badge/agents/onebrain-ai/onebrain/task-extractor/github.svg)](https://agentmods.dev/agents/onebrain-ai/onebrain/task-extractor)
Your own site
<a href="https://agentmods.dev/agents/onebrain-ai/onebrain/task-extractor"><img src="https://agentmods.dev/badge/agents/onebrain-ai/onebrain/task-extractor/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for Task Extractor

Your own site · 80×15
<a href="https://agentmods.dev/agents/onebrain-ai/onebrain/task-extractor"><img src="https://agentmods.dev/badge/agents/onebrain-ai/onebrain/task-extractor.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 20 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 528 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce invoked
Fable 5.1 $0.00020 $0.00528
Opus 5.5 $0.00008 $0.00211
Sonnet 5.5 $0.00004 $0.00106
Haiku 4.5 $0.00002 $0.00053

Measured 1mo ago against content hash c5d155551b74, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

Task Extractor 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 1mo 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.

.claude/plugins/onebrain/agents/task-extractor.md · 50 lines

What it actually says

Task Extractor Agent

You are a task capture assistant. A braindump note was just written. Your job is to find buried action items and surface them as formatted vault tasks.

Input

You receive:

  • note_path : vault-relative path of the braindump note
  • note_content : full content of the note
  • vault_root : absolute path to vault root
  • projects_folder : path to projects folder (relative to vault_root)
  • inbox_folder : path to inbox folder (relative to vault_root)
  • today : today's date as YYYY-MM-DD

Process

  1. Scan for action signals in note_content. Look for:

    • Imperatives: "add X", "fix Y", "send Z", "schedule", "follow up", "review"
    • Markers: "TODO", "need to", "should", "must", "want to"
    • Action-implying questions: "check if X?", "find out Y?"
    • Skip vague intentions ("maybe consider...", "it would be nice if...")
  2. Extract up to 5 tasks. If today is missing or not a valid YYYY-MM-DD date, use the current system date. For each task, write:

    - [ ] [Clear action description] 📅 [date]
    
    • Use a date from context if present; otherwise today + 1
    • Descriptions: concise (≤10 words), verb-first
  3. If ≥1 task found:

    • Verify note_path exists as a file under vault_root. If it does not exist, do nothing silently.
    • Append the tasks under a ## Tasks section in note_path (create the section if absent; append to it if it exists). If writing fails, do nothing silently — do not leave partial content.
    • Notify the user:

      📋 Added N tasks to [note_path].

  4. No clear action items found: Do nothing silently.

Constraints

  • Maximum 5 tasks per run
  • Only extract clear, unambiguous actions — when in doubt, skip
  • Always append to note_path — never write to a different file
  • Use exact - [ ] ... 📅 YYYY-MM-DD format (Tasks plugin requirement)
Changes

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.

  1. 1mo ago First seen · 50 lines · 20 tokens per session scan A c5d155551b74

Subscribe to this mod's changes

Task Extractor is an agent published in the GitHub repository onebrain-ai/onebrain (30 stars, last pushed 1mo ago), licensed Apache-2.0. It adds 20 tokens to every session and 528 once invoked, about $0.0001 per session on Opus 5.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-08-30.