thtsfiles

package module
v0.1.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 11, 2026 License: Apache-2.0 Imports: 1 Imported by: 0

README

thts - Thoughts, Plans, and Dreams

A CLI for managing developer notes separately from code repositories while keeping them accessible in every project.

How It Works

Your notes live in a central thoughts repo (e.g., ~/thoughts/). When you run thts init in a project, it creates symlinks so notes appear locally:

~/src/myproject/thoughts/     # Symlinks (git-ignored)
├── {user}/   →  ~/thoughts/repos/myproject/{user}/
├── shared/   →  ~/thoughts/repos/myproject/shared/
└── global/   →  ~/thoughts/global/

Editing thoughts/{user}/notes.md in your project actually edits the file in your central thoughts repo. Changes sync automatically on commits.

Why thts?

thts stores thoughts, plans, dreams, research, etc. in one central repo and links it to existing repos so that they can be shared across projects and with teams without versioning them in every repo independently.

  • Access notes in every project
    • "thoughts" appear as a local thoughts/ directory via symlinks in each enabled repo/project
  • Never lose context
    • Notes sync to a central git repo and can be queried from anywhere
  • Share with a team
    • By design notes can be given a personal, project, or team scope
  • Automatic LLM integration
    • Claude will automatically, if configured use thts to keep track of research, notes, plans, etc.

[!INFO] thts is a Go reimplementation of the thoughts subcommand from HumanLayer's CLI (humanlayer). See Compatibility with HumanLayer for more information.

Quick Start

# First-time setup (once per machine)
thts setup

# Initialize in any git repo
cd ~/src/myproject
thts init

# Start writing
echo "# Architecture Notes" > thoughts/$user/architecture.md

# Sync with central remote repo
#  - If integrated with Claude, Claude will be instructed to do so automatically
thts sync -m "Added architecture notes"

Commands

Command Description
thts setup First-time configuration
thts init [--profile <name>] Initialize thoughts in current repo
thts sync [-m <message>] Sync thoughts to central repo
thts status Show thoughts status
thts uninit Remove thoughts from current repo
thts config [--edit] View/edit configuration
thts profile create <name> Create a profile
thts profile list List profiles
thts profile show <name> Show profile details
thts profile delete <name> Delete a profile
thts claude init Install Claude Code integration
thts claude uninit Remove Claude Code integration

Documentation

Claude Code Integration

thts integrates with Claude Code to give AI assistants awareness of your thoughts directory:

thts claude init              # Install integration files
thts claude init -i           # Interactive mode (select files/options)
thts claude uninit            # Remove integration (run thts claude uninit --help for options)

This installs:

  • /thts-integrate - Skill to activate thoughts/ awareness for current task
  • /thts-handoff - Create session handoff documents
  • /thts-resume - Resume from handoff documents
  • Specialized agents for searching/analyzing thoughts

See User Guide for integration options.

Attribution

This project is inspired by and based on the thoughts subcommand from HumanLayer by the HumanLayer Authors.

The original implementation provided the design, directory structure, and config format that thts replicates for compatibility. Thanks to the HumanLayer team for creating and open-sourcing this workflow.

Compatibility with HumanLayer

thts is a Go reimplementation of HumanLayer's humanlayer thoughts subcommand. You can switch between them freely - they use the same:

  • Config file format (~/.config/humanlayer/humanlayer.json)
  • Directory structure (~/thoughts/repos/<project>/)
  • Symlink layout in projects
  • Git hooks

This means:

  • Use thts on machines where you prefer a standalone binary
  • Use humanlayer thoughts where you already have HumanLayer installed
  • Team members can use whichever tool they prefer
  • Your notes work with both tools simultaneously

See the Compatibility Guide for details.

License

Apache License 2.0 - see LICENSE for details.

Documentation

Overview

Package thtsfiles provides embedded Claude Code integration files for thts. This package exists at the repo root to enable go:embed access to instructions/, skills/, commands/, and agents/ directories.

Index

Constants

This section is empty.

Variables

View Source
var Agents embed.FS

Agents contains embedded agent markdown files.

View Source
var Commands embed.FS

Commands contains embedded command markdown files.

View Source
var DefaultSettingsJSON = `{
  "permissions": {
    "allow": []
  },
  "enableAllProjectMcpServers": false
}
`

DefaultSettingsJSON provides a default settings.json template.

View Source
var Instructions embed.FS

Instructions contains embedded instruction markdown files.

View Source
var Skills embed.FS

Skills contains embedded skill markdown files.

Functions

This section is empty.

Types

This section is empty.

Directories

Path Synopsis
cmd
thts command
internal
cmd
fs
git
ui
Package ui provides consistent terminal output styling for the thts CLI.
Package ui provides consistent terminal output styling for the thts CLI.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL