AI Coding

AI Coding Workflows: From Completion to Reviewable Delivery

Original OPNFTR content about AI, technology, and practice.

Original content by OPNFTR
AI codingcode reviewtestingsecurity

Put AI inside a controlled loop

Coding assistants are useful for scaffolding, explaining unfamiliar code, adding tests, and proposing refactors. They should not decide production changes or bypass review, dependency scanning, and deployment approval. Put repository rules, run commands, and protected directories in the developer instructions.

A useful loop is:

problem statement -> small generation -> local tests -> human review -> security scan -> merge

Ask the model to make one verifiable change at a time and to list assumptions, files, and test results. A request to rewrite an entire module magnifies context mistakes and hidden regressions.

Verify before trusting

Run type checks, unit tests, and formatters before reading the diff. Review SQL, authorization, filesystem paths, and network requests separately. Passing tests cover the sample set; they do not replace reasoning about edge cases or migrations.

Protect code and credentials

Do not paste private source, production logs, access tokens, or customer data into an unapproved model service. Use ignore files, redaction scripts, and least-privilege proxies. Record model and generation versions so a change can be traced.

Measure delivery quality

Track lead time, rollback rate, defect density, review time, and test coverage instead of generated line count. Automation is valuable only when human quality gates and security checks stay intact.

Sources

See the GitHub Copilot Trust Center, OWASP guidance for generated code, and OpenSSF Scorecard.

Browse all articles
LLM Application SecurityLLM Application Security and Privacy: Boundaries and Lifecyclessecurity · privacy · prompt injectionAI AgentsAI Agents: From Core Concepts to Productionagents · tool calling · workflow
Product Hub Demo · V0.3