← 返回
效率工具 Key 中文

segundo

CLI tool for capturing and retrieving thoughts as a second brain. Stores memories as daily markdown journals with optional semantic search. USE FOR: - Captur...
用于捕捉和检索想法的命令行工具,打造你的“第二大脑”。将记忆以每日 Markdown 日志形式存储,支持可选的语义搜索。
sorrycc
效率工具 clawhub v1.0.0 1 版本 100000 Key: 需要
★ 0
Stars
📥 498
下载
💾 9
安装
1
版本
#latest

概述

segundo CLI

A zero-friction second brain CLI. Captures thoughts as daily markdown journals with tags and semantic search. Built with TypeScript, runs on Bun.

Run segundo --help for usage details.

Workflow

  1. Init - Create a brain first with segundo init
  2. Capture - Add thoughts with segundo add "thought"
  3. Retrieve - Search or list memories
NeedCommandWhen
---------
Create brainsegundo initFirst time setup
Capture thoughtsegundo add "thought" [--tag foo]Have something to remember
Searchsegundo search "query"Find a specific memory
List recentsegundo list [--limit N]Browse recent memories
Statssegundo statsSee brain overview

Commands

init

segundo init
segundo init --reindex   # Rebuild embedding index

add

segundo add "read Designing Data-Intensive Applications" --tag book
segundo add "line one\nline two"
segundo add "thought one" "thought two" "thought three"   # batch
echo "thought from pipe" | segundo add                     # stdin
cat notes.txt | segundo add --batch                        # split on blank lines

search

segundo search "restaurant"
segundo search "data" --limit 5 --from 2026-01-01

Uses semantic search when an embedding provider is configured, falls back to text search otherwise.

list

segundo list
segundo list --limit 5
segundo list --tag book
segundo list --from 2026-03-01 --to 2026-03-10

edit

segundo edit <id> "new content"
segundo edit id1 "content1" id2 "content2"   # batch

delete

segundo delete <id>
segundo delete id1 id2 id3

import

segundo import notes.md
segundo import ./notes-dir/ --tag imported
segundo import file.txt --dry-run

export

segundo export
segundo export --format json
segundo export --from 2026-03-01 --to 2026-03-10 --tag book

stats

segundo stats

Shows total memory count, date range, top tags, embedding index size, and brain path.

Tags

Tags go on the last line of an entry. Add via --tag flag or inline:

segundo add "great chapter on consistency\n#book #engineering"
segundo add "lunch spot" --tag food

Filtering

All list/search/export commands support:

  • --tag - filter by tag
  • --from - start date (inclusive)
  • --to - end date (inclusive)
  • --limit - max results

Profiles

segundo --profile work add "quarterly review notes"
segundo --profile personal list
segundo --brain /custom/path list

JSON Output

All commands support --json for structured output:

segundo list --json
segundo add "thought" --json
segundo search "query" --json

Storage

Memories live in ~/.segundo/memories/ as daily markdown files:

~/.segundo/
  config.json
  memories/
    2026-03-10.md
  embeddings/
    index.bin
    meta.json

Semantic Search Setup

Configure in ~/.segundo/config.json:

{
  "embeddings": {
    "provider": "ollama",
    "model": "nomic-embed-text",
    "ollamaUrl": "http://localhost:11434"
  }
}

Supports Ollama (local, free) and OpenAI (cloud, requires openaiApiKey or $OPENAI_API_KEY).

版本历史

共 1 个版本

  • v1.0.0 当前
    2026-03-31 05:06 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

productivity

Weather

steipete
获取当前天气和预报(无需API密钥)
★ 444 📥 226,096
developer-tools

newsnow

sorrycc
命令行工具,从44个平台的66个来源获取热门新闻和热点话题。返回包含标题、URL和元数据的结构化新闻条目。用途:-
★ 11 📥 1,820
productivity

Word / DOCX

ivangdavila
创建、检查和编辑 Microsoft Word 文档及 DOCX 文件,支持样式、编号、修订记录、表格、分节符及兼容性检查等功能。
★ 437 📥 147,155