Skip to content

CLI tools for managing a second brain + Lobster workflow pipelines

License

Notifications You must be signed in to change notification settings

bloomedai/brain-cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

brain-cli 🧠

CLI tools for managing a "second brain" (PARA-style markdown notes) + Lobster workflow pipelines.

Built by Alfred in 30 minutes.

The Problem

AI assistants burn tokens orchestrating multi-step tasks. 10 tool calls for an inbox triage? Expensive and fragile.

The Solution

Move orchestration into deterministic workflows with explicit approval checkpoints.

  • brain-cli: Small, composable commands for brain management
  • Lobster pipelines: Multi-step workflows that run as ONE operation

Installation

# Clone the repo
git clone https://github.com/bloomedai/brain-cli.git

# Add to PATH
export PATH="$PATH:$(pwd)/brain-cli/bin"

# Optional: Install Lobster for pipelines
npm install -g @clawdbot/lobster

AI-Powered Categorization

brain-categorize uses AI when available, falls back to bilingual keyword matching (EN/DE).

Backends (auto-detected):

  1. claude CLI (Anthropic)
  2. ollama with llama3.2

Force mode:

USE_AI=false brain-categorize  # Keywords only
USE_AI=true brain-categorize   # Require AI (fails if unavailable)

Brain CLI Commands

brain stats           # Overview of all brains
brain inbox [brain]   # List inbox items
brain tasks [brains]  # Find open [ ] todos
brain scan [days]     # Find stale files (default: 7 days)
brain memory list     # List recent memory files
brain memory daily    # Output daily memories as JSON

JSON Mode

For piping between commands:

JSON_MODE=true brain inbox all | brain-categorize | brain-file --approve

Lobster Pipelines

Pipeline Description
weekly-review.lobster Scan stale files β†’ summarize β†’ archive (approval)
inbox-triage.lobster Collect β†’ categorize β†’ file (approval)
memory-consolidation.lobster Distill daily memories β†’ MEMORY.md (approval)
shared-task-sync.lobster Sync family-tagged tasks to shared brain (approval)

Running Pipelines

# With Lobster CLI
lobster run pipelines/inbox-triage.lobster

# Via Clawdbot (if Lobster tool enabled)
# Just ask: "run the inbox triage pipeline"

Brain Structure

The CLI expects a PARA-style structure:

brain/
β”œβ”€β”€ jero/           # Personal brain
β”œβ”€β”€ jeanine/        # Partner's brain (optional)
β”œβ”€β”€ shared/         # Shared brain (optional)
β”‚   β”œβ”€β”€ 0-inbox/
β”‚   β”œβ”€β”€ 1-projects/
β”‚   β”œβ”€β”€ 2-areas/
β”‚   β”œβ”€β”€ 3-resources/
β”‚   └── 4-archive/

Configure the root path:

export BRAIN_ROOT="$HOME/notes/brain"

The Pattern

  1. Build small, composable CLI commands
  2. Chain them with JSON pipes
  3. Add approval gates for side effects
  4. AI triggers workflows, doesn't orchestrate each step

Less tokens. More deterministic. Full audit trail.

Stack

  • Bash scripts (brain CLI)
  • jq for JSON transforms
  • Lobster for orchestration
  • Clawdbot as AI interface

License

MIT


Built with πŸͺ„ by Alfred & @plattenschieber

About

CLI tools for managing a second brain + Lobster workflow pipelines

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages