Skip to content

Turbocharge Claude Code, Cursor, Codex, Gemini & every coding agent: faster, cheaper, with contextual understanding specific to your codebase.

Merge remote-tracking branch 'origin/main' into feat/init-connect

Rushabh Nagda02adea90547f
diff --cc CHANGELOG.md
index 17a002ad,f289bd81..97e55eca
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@@ -1,23 -1,24 +1,42 @@@
# Changelog
+## Unreleased
+
+### Added
+
+- **`trail init --connect <code>`**: the onboarding on app.trailhq.com. The
+ one-time code connects this machine to the workspace (the token goes where
+ `trail login` keeps it), the page ticks off connected, mapped and learned as
+ init runs, and one summary of the repo goes up: what one lookup on the code
+ map saved, the learnings' titles, and teammates' recently pushed branches
+ that change the files you work on. Titles, counts and names only; never
+ code, diffs or session text. `--server` (or `TRAIL_URL`) points it at
+ another Trail.
+- **Workspace brains in your agents**: once connected, `trail mcp` also serves
+ the workspace's `list_brains`, `get_context`, `search_rules` and `get_rules`,
+ passed to the workspace with your token; the repo tools keep working
+ offline. Claude Code gets one user-level `trail` entry that serves just
+ those (`trail mcp --brains`); `trail logout` takes it out.
+
+ ## 0.23.1
+
+ ### Fixed
+
+ - **Learnings reach Claude when it opens the file they're about** (#642). When
+ Claude reads or edits a file, it gets the learnings whose `touches` name that
+ file, at most two, once a session, without calling trail first.
+ - **A learning's `touches` come from what the session did**: files edited, then
+ files named in the learning, then files read. They no longer list whatever
+ untracked files sat in the repo.
+ - **An empty `trail grep` names the git-ignored code it didn't search.**
+ - **Exploratory turns are asked for a learning too**, when trail's answers
+ saved 30k+ tokens of reading.
+ - **`trail init` refuses your home folder**, and outside git it says the
+ learnings stay on this machine.
+ - **The shared hook reads single-quoted learning titles** (#626), as Prettier
+ writes them, so teammates without trail see clean titles. `.trail/hook.cjs`
+ is updated at the next session; commit it once.
+
## 0.23.0
### Changed