Repository navigation
docs: sharpen the agent guide from past agent mistakes - #146
Merged
Merged
Conversation
Add the lessons reviewers kept sending back: renumber decisions and recompute the Cost line after main moves, prove a fix's test fails, name a fix's cause, reuse before copying, and the Windows cfg and lint gaps. Fix the isolated-app rule: KG_SOCKET wins over KG_DATA_DIR, and every thread has it set. Drop stale and generic lines.
# Conflicts: # AGENTS.md
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.
Adds the lessons reviewers kept sending back to AGENTS.md and the crate files:
cfg(windows)builds only in the Windows jobs, a leftover#[cfg]gate moves to the next item, keep shell-free test logic ungated.cargo tis the gate; plaincargo testleaks statics between tests.too_many_linesat 100); each#[allow]/#[expect]counts againstallow_expect.KG_SOCKETwins overKG_DATA_DIRand is set in every thread, so an isolated app must unset or replace it.first_run.rsreadsbook/src/start.md.cli.mdneeds regenerating.wait_until/wait_for_shell; theArc<Mutex>rule is enforced bycrates/ui/clippy.toml.Stale lines removed:
print_stdout"outside kg" (kg is denied too), the long per-tool loading block, and the optional skills list. Root file goes from 114 to 106 lines.