Skip to content

Comments

More refinements to agent documents#6147

Merged
jasnell merged 4 commits intomainfrom
jasnell/agent-refinements-2
Feb 24, 2026
Merged

More refinements to agent documents#6147
jasnell merged 4 commits intomainfrom
jasnell/agent-refinements-2

Conversation

@jasnell
Copy link
Collaborator

@jasnell jasnell commented Feb 24, 2026

Restructuring streams and jsg README.md files to make them more agent friendly.

Move relevant tutorial content into docs, keeping the streams/README.md and jsg/README.md documents more focused and structured in a way that helps the AI agent more effectively digest them.

For tasks like /review or use of the architect agent, these changes should end up reducing token use for these files by up to 90%.

Builds on: #6130

@jasnell jasnell requested review from danlapid and elithrar February 24, 2026 01:15
@jasnell jasnell requested review from a team as code owners February 24, 2026 01:15
@ask-bonk

This comment was marked as resolved.

@jasnell jasnell requested a review from anonrig February 24, 2026 04:07
Base automatically changed from jasnell/agent-refinements to main February 24, 2026 04:35
The original version was too dense in prose and wasted
tokens on narrative and tutorial content that most people
won't actually read. This version reworks the structure
to be more terse and reference-like, with paths that
better budget tokens and point to the relevant files.
By splitting the content up across multiple files and
reducing the prose in the README/AGENTS.md files, we
can make it easier for agents to find the information
needed more efficiently (using fewer tokens) and without
needing to burn through the context budget
* handles magic numbers
* useful annotations (like KJ_LIFETIME_BOUND)
* clarification on treating error changes as breaking changes
@jasnell jasnell force-pushed the jasnell/agent-refinements-2 branch from ed9b34d to 471dbd4 Compare February 24, 2026 17:36
@jasnell jasnell enabled auto-merge February 24, 2026 17:56
@jasnell jasnell merged commit 8719dcd into main Feb 24, 2026
20 checks passed
@jasnell jasnell deleted the jasnell/agent-refinements-2 branch February 24, 2026 18:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants