Repository navigation
Slice 4: tyto open, brief, find, and action feedback - #8
Merged
Merged
Conversation
One command now shows everything about a page, for any model: - core (pure): assembleBrief/renderBrief — failed Fetch/XHR requests with a redacted body snippet, uncaught errors, console errors and warnings, API calls, cookie names and lifetimes (never values), storage key counts, outline, up to 40 interactive refs, main text — scoped to the current page by log offsets. Plus findLines (whole-page text search), afterAction (navigation, requests, errors, console since an action), normalizeRefs (e12 → @E12), and the agent-browser JSON mappers. New LogMarks port, fake, and file adapter. - cli: `tyto open`, `tyto brief [--json]`, `tyto find`, and click/fill/ type/press/select/check/uncheck/hover/scroll/dblclick with an AFTER report; `--session` picks the agent's agent-browser session. Found live: passing a different AGENT_BROWSER_DEFAULT_TIMEOUT to one command makes agent-browser restart that session's browser (Edge fell back to its new-tab page). Browse commands now never pass env overrides; a test pins that. Live: open+brief 1.6 s cold / 0.35 s warm (143 tokens, root cause shown), click+AFTER 0.3 s with the TypeError and source line, find on Wikipedia 0.16 s. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
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.
Stacked on #7. Spec sentences are in
docs/IMPLEMENTATION.md§4 Slice 4.What
Core (pure)
assembleBrief/renderBrief. The brief covers:It's scoped to the current page by log offsets, because agent-browser's
errors --cleardoesn't clear.findLines: whole-page text search.afterAction: what changed after an action.normalizeRefs:e12→@e12.Mappers from agent-browser's JSON output.
New
LogMarksport, with a fake and a file adapter (~/.tyto/marks, 0600).CLI
tyto open <url>,tyto brief [--json],tyto find <words>.click,fill,type,press,select,check,uncheck,hover,scroll,dblclick) that print an AFTER report.--sessionpicks the agent's agent-browser session (default$AGENT_BROWSER_SESSIONordefault).Found and fixed live
Passing a different
AGENT_BROWSER_DEFAULT_TIMEOUTto a single command makes agent-browser restart that session's browser; Edge came back on its new-tab page. Browse commands now never pass env overrides, and a test pins that. Replays are unaffected: they always pass the same settings.Tests
npm run check: 10 files, 95 tests, typecheck clean, gitleaks clean.npm run test:live: 5 passed. The live brief tests use a throwaway agent-browser config, so they never touch saved logins.Manual end to end, through Edge:
tyto openon the planted-bug page/api/items500database timeoutplus the console error), 143 tokenstyto click #savetyto findon Wikipedia🤖 Generated with Claude Code