Set up Cursor Cloud development environment - #6
Draft
carenthomas wants to merge 2 commits into
Draft
Conversation
Co-authored-by: cthomas <carenthomas@users.noreply.github.com>
Co-authored-by: cthomas <carenthomas@users.noreply.github.com>
cpacker
requested changes
Jul 27, 2026
cpacker
left a comment
Contributor
There was a problem hiding this comment.
The canonical-contract guidance currently contradicts the implementation and should be corrected before this becomes repository-wide agent guidance:
- Id-less Letta Code rows use ordinal line anchors, not byte anchors.
normalizeTranscript()does enable partial semantics whenbaseByteOffsetis nonzero; it does not simply “stay strict.”- Meta omission for continuation chunks is a canonical-projection rule and should not be conflated with general transcript normalization.
Because future coding agents will treat AGENTS.md as authoritative, these inaccuracies are more harmful than ordinary documentation drift. Please derive this section directly from CANONICAL.md and the current adapter code. Also replace the internal downstream repository name with generic public-safe wording.
👾 Generated with Letta Code
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Sets up the development environment for the
trajectorylibrary (TypeScript core + Python wrapper) in Cursor Cloud and documents durable operating guidance for future agents.Changes
AGENTS.mdwith a## Cursor Cloud specific instructionssection covering the toolchain (Bun 1.3.0, Node 20+, Python 3.10+), the main commands, and non-obvious gotchas (regenerating the vendored Python CLI bundle after TS edits; Deep Agents tests skipping without optional extras).## Canonical-contract work: invariants and review learningssection capturing the chunk-stable identity / per-adapter anchor / partial-continuation invariants fornormalizeToCanonical, plus a process note to red-team invariants with the design authority and self-audit per-adapter before requesting review.Environment setup
The startup update script installs Bun 1.3.0 (if missing) and runs
bun install --frozen-lockfile. No code changes were required — the repo was already working.Verification
bun run check— typecheck + tests + build.PYTHONPATH=python/src python3 -m unittest discover -s python/tests -v— Python parity.