explaingit

edm115/thoughts

Analysis updated 2026-05-18

1JavaScriptAudience · developerComplexity · 2/5Setup · easy

TLDR

THOUGHTS is a memory system for AI coding agents that captures non-obvious project knowledge, failed approaches, constraints, tradeoffs, in a THOUGHTS.md file so context survives session ends and agent handoffs.

Mindmap

mindmap
  root((repo))
    What it does
      Saves agent session knowledge
      Maintains THOUGHTS.md file
      Survives context compaction
    How it works
      Portable agent skill
      Optional Codex plugin
      Write gate filters entries
    Commands
      append adds entries
      init scans repository
      cleanup removes stale facts
    Use cases
      Long coding sessions
      Agent handoff between tools
      Prevent repeated mistakes
    Tech stack
      JavaScript
      Codex plugin system
      Markdown file storage
    Audience
      AI coding agent users
      Dev teams using AI assistants

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

What do people build with it?

USE CASE 1

Keep a shared memory file so a new AI agent avoids repeating failed approaches from a previous session.

USE CASE 2

Hand off an ongoing coding project between different AI tools without losing hard-won context.

USE CASE 3

Auto-scan a repo on first use to build an initial knowledge scratchpad of verified facts.

USE CASE 4

Periodically clean up stale notes and merge duplicate entries in a project's memory file.

What is it built with?

JavaScriptCodex pluginMarkdown

How does it compare?

edm115/thoughts0xmukesh/docusaurus-tutorial1tsmejp/palworld-docker-wine
Stars111
LanguageJavaScriptJavaScriptJavaScript
Last pushed2021-12-27
MaintenanceDormant
Setup difficultyeasyeasymoderate
Complexity2/52/54/5
Audiencedeveloperdeveloperops devops

Figures from each repo's GitHub metadata at analysis time.

How do you get it running?

Difficulty · easy Time to first run · 5min

Drop-in skill with an optional Codex plugin, works with a simple THOUGHTS.md file at the repo root, no external infrastructure needed.

In plain English

THOUGHTS is a memory system for AI coding agents. When an AI assistant works on a long coding session, it picks up useful details: failed approaches, hidden constraints, unresolved risks, implementation tradeoffs. These details rarely make it into formal documentation, but they are too valuable to lose. If the session ends, the context gets compacted, or a different agent takes over, all of that knowledge disappears. THOUGHTS solves this by maintaining a selective file called THOUGHTS.md, which acts as a searchable scratchpad for non-obvious project knowledge. The project has two layers. The first is a portable agent skill that decides what deserves to be written down and supports explicit maintenance commands. The second is an optional plugin for Codex, which is an AI coding tool. The plugin watches lifecycle signals and asks the main model to run the skill after high-value turns or after compaction. The plugin itself never writes to the thoughts file, only the main agent does that. Not everything gets saved. A piece of information passes the write gate only when a capable agent starting a fresh thread would otherwise make a worse decision or repeat costly work. Good entries capture a durable constraint and why it matters. Routine actions, status narration, simple answers, and facts already present in documentation or code are excluded. The project does not store hidden chain-of-thought reasoning. The skill supports four commands: append, which reads the existing file and adds or refines an entry, init, which scans the repository to create an initial scratchpad from verified facts, and cleanup, which removes obsolete facts, merges duplicates, and compresses wording while protecting user-authored notes. A clean no-op, where nothing qualifies for writing, is a valid result. The file location follows strict rules. The skill reuses an existing THOUGHTS.md at the repository root or an established documentation directory. If multiple candidates exist, it stops and never merges or chooses silently. Only the main orchestrator edits the file during ordinary work, while subagents can return candidate entries for the parent to review. The full README is longer than what was shown.

Copy-paste prompts

Prompt 1
Set up THOUGHTS for my repo: run init to scan the codebase and create an initial THOUGHTS.md with verified facts, then append any non-obvious constraints I should know about.
Prompt 2
After this coding session, use the THOUGHTS append command to save any failed approaches or hidden constraints that a fresh agent would need to avoid repeating.
Prompt 3
Run the THOUGHTS cleanup command on my THOUGHTS.md to remove obsolete facts, merge duplicates, and compress wording while keeping my manually authored notes intact.
Prompt 4
Install the THOUGHTS Codex plugin so it watches my coding sessions and automatically triggers the skill after high-value turns and after context compaction.
Prompt 5
Check my THOUGHTS.md file and tell me if a clean no-op is the right call, nothing currently qualifies for writing because all knowledge is already in docs or code.

Frequently asked questions

What is thoughts?

THOUGHTS is a memory system for AI coding agents that captures non-obvious project knowledge, failed approaches, constraints, tradeoffs, in a THOUGHTS.md file so context survives session ends and agent handoffs.

What language is thoughts written in?

Mainly JavaScript. The stack also includes JavaScript, Codex plugin, Markdown.

How hard is thoughts to set up?

Setup difficulty is rated easy, with roughly 5min to a first successful run.

Who is thoughts for?

Mainly developer.

Open on GitHub → Explain another repo

This repo across BitVibe Labs

Verify against the repo before relying on details.