Skip to main content

Cogitus — a fast, searchable terminal workspace for capturing and evolving programming ideas.

Project description

Cogitus

[!NOTE]

Cogitus is currently in MVP/alpha stage. Core workflows are available, and interfaces may continue to evolve in subsequent releases.

Cogitus — a fast, searchable terminal workspace for capturing and evolving programming ideas.

Cogitus is a Python-based TUI (Terminal User Interface) built with Textual. It is designed specifically for developers who want a structured, keyboard-driven way to capture, explore, and refine programming ideas without leaving the terminal. This is not a generic note-taking app and not a task manager. Cogitus is focused on structured idea capture, iteration, and discovery.

cogitus1


Goals

  • Fast, local-first idea capture
  • Fully keyboard-driven workflow
  • Searchable and structured storage
  • Minimal, distraction-free UI
  • Designed specifically for programming and technical concepts

Core Concepts

Cogitus treats ideas as structured entities rather than loose notes. Each idea can include:

  • Title
  • Body/description (Markdown-friendly text - edit in markdown, display rendered using Textual/Rich native functionality)
  • Tags
  • Group (ideas are organized under groups in the left tree view)
  • Timestamps (created/updated)

Future versions may introduce:

  • Idea linking (relationships between ideas)
  • Graph views
  • Scoring or priority signals
  • AI-assisted idea expansion

Architecture

  • UI: Built with Textual
  • Database: SQLite (local file, WAL mode)
  • Data Access: sqliter-py
  • Package Management: uv (not pip)

The project intentionally separates:

  • Textual UI layer (screens and widgets)
  • Repository/service layer for database access
  • Schema and migration management

Cogitus is also a real-world validation project for sqliter-py.


Current Functionality

Functionality available in the current MVP includes:

  • Create new ideas
  • Edit existing ideas
  • List ideas in a grouped tree view
  • Arrange ideas into groups (with bulk idea move to the default group on group delete)
  • Tag ideas
  • Advanced search with SQLite FTS5 text search plus inline operators (tag:, group:, and, or)
  • View idea details
  • Copy & Paste support
  • CLI commands for scripting (list, export, delete)

[!NOTE]

items in bold are in the current HEAD but not yet in the pypi release. They will be included in the next release, but you can always install from the repo to get the latest features.


Target Users

  • Solo developers
  • Indie hackers
  • Open-source maintainers
  • Engineers who think in terminals

If you sketch ideas in README files, TODO lists, or scattered Markdown files across projects, Cogitus aims to centralize that thinking into a structured, searchable workspace.


Installation

The recommended way to install this is as a global tool, either using uv (best) or pipx:

uv tool install cogitus

You can always install globally using pip if you don't want to use any of those 2 tools:

pip install cogitus

Usage

cogitus

Key Shortcuts (Main Screen)

  • n: New idea
  • e: Edit selected idea
  • r: Rename selected idea or group
  • d: Delete selected idea
  • g: New group
  • Shift+G: Delete selected group
  • /: Focus search
  • y: Copy selected idea body
  • ?: Show help
  • q: Quit

Clipboard Support

Cogitus uses two clipboard strategies for maximum compatibility:

  • OSC 52 (primary) — works in most modern terminals (Ghostty, iTerm2, Kitty, Alacritty, WezTerm, Windows Terminal) and through tmux/SSH
  • pyperclip (fallback) — uses system tools like xclip, xsel, or pbcopy for terminals that don't support OSC 52 (e.g. Gnome Terminal, macOS Terminal)

tmux users: You need set-clipboard enabled in your ~/.tmux.conf for OSC 52 to pass through:

set -g set-clipboard on

Linux users without OSC 52 support: Install xclip or xsel for the pyperclip fallback to work:

sudo apt-get install xclip   # Debian/Ubuntu
sudo pacman -S xclip          # Arch
sudo dnf install xclip        # Fedora

y copy is context-sensitive: In the editor, y copies the current selection. In rendered Markdown view, y copies selected text when detected; otherwise it copies the full idea body. In some terminals/cases, Textual may not detect rendered-view selection and will fall back to full-body copy.


Development

This project uses:

  • uv for dependency and environment management
  • SQLite for local storage
  • Textual for UI
  • Standard formatting and linting tools defined in the repository

License

Cogitus is licensed under the MIT License. See LICENSE.txt.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

cogitus-0.7.0.tar.gz (47.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

cogitus-0.7.0-py3-none-any.whl (61.4 kB view details)

Uploaded Python 3

File details

Details for the file cogitus-0.7.0.tar.gz.

File metadata

  • Download URL: cogitus-0.7.0.tar.gz
  • Upload date:
  • Size: 47.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.12 {"installer":{"name":"uv","version":"0.10.12","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for cogitus-0.7.0.tar.gz
Algorithm Hash digest
SHA256 c6682dac7f917de896d772c2e806f6279be5be9b90390966baf873418cec9789
MD5 3de130e2fae870cffe305d3874085532
BLAKE2b-256 d83e5cb1402200e79de182b713f887b11ae0e7587d07ea688f8742a4c3f19ec5

See more details on using hashes here.

File details

Details for the file cogitus-0.7.0-py3-none-any.whl.

File metadata

  • Download URL: cogitus-0.7.0-py3-none-any.whl
  • Upload date:
  • Size: 61.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.12 {"installer":{"name":"uv","version":"0.10.12","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for cogitus-0.7.0-py3-none-any.whl
Algorithm Hash digest
SHA256 04f4d7c690c38803086da700779dcf87126495c30b198eaba2dc9a15ac871490
MD5 4838bc81133e77b6454de46e2f7b3a5a
BLAKE2b-256 316894eda8f8a6c06c4a3c958ecb522d50699be2b5f58626688ce61ee2242eb3

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page