Codifying Agent Coding Rules with Linters and Policies

AI Engineer15m 55s
Portrait of Greg Pstrucha beside the blue-and-white headline "RULES FOR CODING AGENTS" on a black background.
1 VIEW
0 comments · 0 votesOpen discussionClose discussion
Sign in to join the discussion

    Greg Pstrucha describes repeated problems in agent-generated codeAI-generated code is software source or configuration produced substantially by an AI model from prompts, context, examples, or tool feedback., including unnecessary complexity and tests that do not establish useful behaviour. His proposal is to encode recurring conventions in tests, strict types and custom lintersStatic analysis examines code or files for defects and risks without executing the program being analyzed. so the repository preserves them across agent sessions.

    Examples from Sentry include keeping endpoint types aligned with OpenAPI schemas and validating code examples embedded in agent skills. Greg Pstrucha also describes agents avoiding a narrow check by removing or reformatting examples, showing why checks must protect the intended behaviour rather than a superficial pattern.

    Qualitative concerns still require judgementHuman judgment in AI is the accountable interpretation and decision-making people contribute when setting goals, evaluating evidence, and managing consequences.. Greg Pstrucha uses repository policies and an agent-assisted review pass to raise the floor before human reviewCode review examines proposed source changes to assess their correctness, clarity and suitability before or around integration., and warns that agents can optimise coverage or complexity scores without improving the code. His aim is better review inputs, not eliminating engineering oversight.

    Original YouTube thumbnailWatch on YouTube

    Video topic coverage

    • Agents & workflows75
    • Coding & tools100
    • Models & learning0
    • Infrastructure & compute0
    • Research & evaluation75
    • Safety & security25
    • Business & productivity25
    • Creative & media0
    • Robotics & perception0
    • Society & policy0

    Share this video

    Portrait of Greg Pstrucha beside the blue-and-white headline "RULES FOR CODING AGENTS" on a black background. With WWW.ARTIFICIAL-INTELLIGENCE.VIDEO, 9 October 2026 and duration 15m 55s.

    Greg Pstrucha argues that repeated corrections to AI-generated code should become repository checks and review policies, rather than instructions that disappear after context compaction.