Kousigan A

Tag

20 posts

Software Engineering

Posts about Software Engineering by Kousigan A, filed under AI Coding. Each one links the official docs it relies on.

  1. Deep dive13 minAI Coding

    LLM feedback loop: turn production failures into eval cases

    Run an LLM feedback loop: collect user feedback, read failing traces, name failure types, fix one layer, and keep each fixed failure as an eval case.

  2. Deep dive14 minAI Coding

    RAG retrieval: get the right chunk into the top k

    Build RAG retrieval in steps: clean and chunk documents, filter by permission, use hybrid search, rerank, cite the chunk, and test retrieval on its own.

  3. Deep dive10 minAI Coding

    Valid JSON, wrong values: validate LLM structured outputs

    Get reliable JSON from an LLM: structured outputs or strict tool calling, Pydantic validation, refusals and cut-offs, bounded retries and schema versions.

  4. Deep dive12 minAI Coding

    LLM model routing: test on evals, pin it, fall back safely

    Choose an LLM per task with your own eval set, route by task type, classifier or failed check, keep fallbacks on the same contract, and pin versions.

  5. Deep dive13 minAI Coding

    Unit tests miss LLM output that varies: build an eval suite

    Build an eval suite for an LLM feature: real and edge-case inputs, a grader per property, several runs per case, and a rerun on every prompt or model change.

  6. Deep dive9 minAI Coding

    Six engineering decisions to keep human with AI agents

    See which engineering decisions stay human when a coding agent writes the code, how to sort them by reversibility and reach, and what the agent prepares.

  7. Deep dive12 minAI Coding

    Failed attempts burn tokens too: measure LLM cost per task

    Measure AI usage as cost per successful task: what drives the bill, prompt caching, model choice, batch APIs, budgets, and usage commands in five coding agents.

  8. Deep dive10 minAI Coding

    LLM observability: trace every step, prompts off by default

    Trace an LLM feature in production with OpenTelemetry: one trace per request, the fields to record, and the prompts and secrets to keep out.

  9. Deep dive10 minAI Coding

    Threat model an LLM feature before you give it tools

    Threat model an LLM feature: map trust boundaries, run STRIDE, check the OWASP 2025 LLM risks, and keep authorisation in the tools and the data layer.

  10. Deep dive9 minAI Coding

    An AI speed-up claim is a prediction until you measure it

    Check a coding agent's claim that code is faster: a baseline, a realistic workload, a profile, repeated runs, latency percentiles and memory use.

  11. Deep dive11 minAI Coding

    API breaking changes from AI code: guard the contract file

    Guard against API breaking changes in AI-written code: protect the OpenAPI file, diff it on every pull request, test consumers, deprecate before removing.

  12. Deep dive11 minAI Coding

    AI-generated database migrations meet real rows and old code

    How to review a database migration a coding agent wrote: existing rows, old code still running, PostgreSQL locks, and what a rollback cannot bring back.

  13. Deep dive10 minAI Coding

    AI coding agent scope creep: keep the fix, list the cleanup

    Keep a coding agent to the task: state the scope and non-goals, back them with edit settings, spot unrelated edits and split the cleanup off.

  14. Deep dive11 minAI Coding

    Releasing AI-generated code: the agent prepares, you approve

    A release process for AI-assisted software: what a coding agent may prepare, what a person must authorise, and where flags, canaries and rollback fit.

  15. Deep dive12 minAI Coding

    How to review AI-generated code in risk order: seven passes

    Review AI-generated code in risk order: the requirement, the diff, risky areas, callers, tests and side effects, then a slow read where risk is highest.

  16. Deep dive13 minAI Coding

    A checklist the agent can skip: turn it into quality gates

    Turn your definition of done into gates that block: agent hooks, pre-commit, required CI checks and rulesets, and which failures still need a person.

  17. Deep dive10 minAI Coding

    Make a coding agent prove its fix before you accept it

    Get evidence before you accept a coding agent's fix: a reproduction, a failing test that passes after the fix, one hypothesis at a time and a two-attempt limit.

  18. Deep dive11 minAI Coding

    A README can give your coding agent orders you never wrote

    How prompt injection reaches a coding agent through README files, issues, comments, logs and tool output, and how to limit what an injected instruction can do.

  19. Deep dive11 minAI Coding

    "Looks good" isn't evidence: how to verify AI-generated code

    AI-generated code is not done when it compiles. Check the requirement, the diff, tests and static checks, and get a review from outside the model that wrote it.

  20. Deep dive9 minAI Coding

    Don't let your coding agent code first: plan, then approve

    A coding agent workflow with a stop before any code: investigate, plan, approve, implement and verify, plus the plan modes of seven agents.