Secure coding Agent version 1.0.0

AI-Written Code Security Reviewer

Check code written by an AI assistant for the security mistakes they make most: injectable queries, secrets in the source, packages that do not exist and safety steps left as a comment.

Run the agent

No account needed for a few runs a day.

One file or snippet, up to 60,000 characters.

Helps pick the right language. Without it the language is worked out from the code.

Your code is not stored. Replace real keys with placeholders before pasting anyway.

What it checks

  • Reads code in Python, JavaScript and TypeScript, PHP, Go, Java, Ruby and shell, as one snippet, several files or a diff. For a diff it checks only the added lines.
  • Flags queries, commands and pages built from untrusted input, unsafe loading of data, and code that runs text it was given.
  • Flags keys, tokens and passwords written into the source, including keys exposed to the browser.
  • Flags mistakes specific to AI features: model output that is executed, queried or rendered as it arrives, and user text placed inside system instructions.
  • Flags switched-off certificate checks, debug mode, weak hashing, predictable random values and security work left as a comment.
  • Looks up the packages the code imports or installs in npm and PyPI, and reports names that do not exist or appeared very recently.
  • Explains the findings in plain language and writes corrected versions of the flagged lines.

What it does not do

  • It does not run your code or follow data through functions. It matches known risky patterns line by line, so it can miss a problem and can flag a line that is safe in context.
  • It is not a replacement for a full static analyser, dependency audit or human review. Use it as a fast first pass.
  • A result with no findings means none of these checks matched. It is not a guarantee that the code is secure.

How it works

The agent runs these steps in order. The result includes a record of each one, so you can see what ran and what was skipped.

  1. Read the inputSplits it into files, works out each language, and for a diff keeps the added lines. parse
  2. Look for secretsKeys, tokens and passwords in the source. secrets
  3. Check risky patternsInjection, unsafe data handling, access, encryption and settings. patterns
  4. Check AI handlingHow model output and prompts are used. llm
  5. Look up packagesWhether each imported or installed package exists and how new it is. packages
  6. Explain and fixPlain-language summary and corrected lines. explain

Use it from your code or your assistant

Post the input with your API key and the reply is the full result. Get a free key, or read the full API documentation.

Endpoint
POST https://securityelites.com/wp-json/agentic-x/v1/agents/ai-code-reviewer/runs
curl
curl -X POST 'https://securityelites.com/wp-json/agentic-x/v1/agents/ai-code-reviewer/runs' \
  -H 'X-API-Key: YOUR_KEY' \
  -H 'Content-Type: application/json' \
  --data @request.json

Limits

What you getNo accountFree accountPremium
Runs a day25100
AI explanations a day1375
API access with a keyNoYesYes
Package registry lookupsNoYesYes
Saved baselines for change alerts0112
Past runs kept010100

Limits reset at midnight UTC. A run that fails on our side is not counted.

Specification

Machine-readable versions: this agent's schemas as JSON and the OpenAPI specification.

Input fields

Give at least one of code, files or diff.

FieldTypeMeaning
codestringOne file or snippet of source code. Up to 60,000 characters.
filenamestringName of the file "code" came from. Used to pick the language. Up to 120 characters.
languagestringLanguage of "code". Leave out to have it worked out from the file name or the code. One of: python, javascript, php, go, java, ruby, shell, other.
filesarray of objectSeveral files to review together, up to 200,000 characters in total.
files[].pathstringUp to 200 characters.
files[].contentstring
diffstringA unified diff, such as the output of git diff. Only added lines are reviewed. Up to 120,000 characters.
explainbooleanAdd the AI-written summary, fix steps and corrected lines. Uses one AI credit. Default: true.
Result fields
FieldTypeMeaning
run_idstring
agentstring
agent_versionstring
createdstring
verdictobject
verdict.levelstringOne of: high_risk, needs_work, minor_issues, no_issues_found.
verdict.labelstring
verdict.risk_scoreinteger
verdict.countsobject
summarystring
scannedobject
scanned.filesinteger
scanned.linesinteger
scanned.languagesarray of string
findingsarray of object
findings[].idstringStable rule identifier, for example CODE-SQL-BUILT-FROM-INPUT.
findings[].areastringOne of: secrets, injection, llm, auth, data, crypto, config, deps, leftover.
findings[].severitystringOne of: critical, high, medium, low, info.
findings[].titlestring
findings[].detailstring
findings[].evidencestringThe matching lines, with secrets masked.
findings[].fixstring
findings[].refsarray of string
findings[].filestringFile the finding is in. Empty for a single snippet without a name.
findings[].lineintegerFirst matching line. 0 when the finding is not tied to a line.
findings[].linesarray of integerEvery matching line, up to 20.
filesarray of object
files[].pathstring
files[].languagestring
files[].linesinteger
files[].findingsinteger
packagesarray of objectRegistry facts for each package looked up.
aiobject or null
ai.summarystring
ai.stepsarray
ai.snippetsarray of object
ai_statusstringOne of: done, skipped, not_needed, limit, busy, failed.
tracearray of objectEach step the agent took, its status and timing.
limitsobject
noticestring
Finding areas
AreaCovers
secretsSecrets in the code
injectionInjection and code execution
llmAI and model handling
authSign-in, sessions and access
dataFiles and untrusted data
cryptoEncryption and randomness
configUnsafe settings
depsPackages
leftoverUnfinished security work
Severity levels
  • critical: stop and do not use it as it is.
  • high: fix before relying on it.
  • medium: fix soon, or accept the risk knowingly.
  • low: worth tidying.
  • info: a fact to be aware of. It does not affect the verdict.

Questions

Why does AI-written code need its own check?

Assistants produce code that runs and reads well, which makes it easy to accept without the review hand-written code gets. The common faults are consistent: queries built by joining strings, example keys left in place, certificate checks switched off to make an error go away, and notes saying a safety step should be added later.

What is a package that does not exist?

Assistants sometimes import or install a package with a plausible name that was never published. If someone later registers that name with harmful code, everyone who runs the suggested install command gets it. The reviewer checks each name against the public registry before you install anything.

Does it replace my static analyser?

No. It checks one line at a time against known patterns and does not trace how data moves through the program. Keep your analyser and dependency audit. This agent is quick enough to run on every suggestion or pull request before those.

Is my code stored?

No. The code you submit is not stored. The result is stored so you can fetch it again, and the lines quoted as evidence have anything that looks like a secret masked. Only the flagged lines, with secrets masked, are sent to the AI step.

Can I run it on a pull request?

Yes. Send the diff to the API and fail the check when the verdict has high or critical findings. Only added lines are reviewed, so existing code does not block the change.

Which languages are covered?

Python, JavaScript and TypeScript, and PHP have the most checks. Go, Java, Ruby and shell have a smaller set. The secret, AI handling and leftover-work checks apply to any language.

See all Agentic X agents

Know someone who runs AI agents or ships AI-written code? Send them this.
Make it count. Join free to earn XP for what you read and solve, keep a streak, and track your progress.
Join free