# Blinka Python Code Signal

> Blinka Python Code Signal is a paid API for AI agents from blinka-machine-mouths.netlify.app, paid per call via x402, $0.005/call, status unknown (last checked 2026-10-10).

Performs static pattern-based bug and security analysis on Python source code without executing it, returning a confidence-scored signal with primary issue details.

## Facts

- Endpoint: POST https://blinka-machine-mouths.netlify.app/code-signal?utm_source=zero.xyz
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-10
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/blinka-python-code-signal-560b8ab9
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_EFLKE0NBxwM6dBPVrVIBk

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability blinka-python-code-signal-560b8ab9 -d '<json body>'
```

Example prompt: Can you run a quick static bug and security signal on this Python code — it's supposed to parse incoming webhook payloads and queue them — and tell me the primary issue, severity, and whether it passed the static check?

## When to prefer this

Choose this endpoint when you need a fast, cheap, stateless first-pass bug and security signal on Python code without executing it — ideal for CI gates, pre-commit hooks, or triage before investing in a full code review. Prefer this over full linters or execution-based tools when safety (no execution), speed, and cost are priorities, and when Python is the target language.

## Known failure modes

- Code exceeds 16,000 character limit — request rejected
- Unsupported language submitted (only Python accepted) — validation error
- Malformed JSON input — 400 error
- Empty or missing code field — error response
- Service unavailable or payment failure via x402 — no analysis returned

## How this service works

Bounded stateless machine services plus public procurement discovery. No private Mika memory or arbitrary tool execution.

## Output

Returns a JSON object with ok status, service name, executed flag (always false), language, retained flag (always false), a confidence score (0-1), total issue count, a primary_issue object with line number, type, severity, description, and suggestion, a needs_full_review boolean, and a passed_static_signal boolean.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "code": {
   "type": "string",
   "description": "Python source for a fast static bug/security signal. Max 16,000 characters; never executed."
  },
  "intent": {
   "type": "string",
   "description": "What the code should do. Max 1,800 characters."
  },
  "language": {
   "enum": [
    "python"
   ],
   "type": "string"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "ok": true,
  "scope": "static-pattern-signal-only",
  "service": "blinka-python-code-signal",
  "executed": false,
  "language": "python",
  "retained": false,
  "confidence": 0.97,
  "issue_count": 1,
  "primary_issue": {
   "line": 1,
   "type": "bug",
   "severity": "high",
   "suggestion": "Use None as the default and allocate a new container inside the function.",
   "description": "Mutable default argument is shared across calls and can accumulate state unexpectedly."
  },
  "needs_full_review": true,
  "passed_static_signal": false
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/blinka-python-code-signal-560b8ab9/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from blinka-machine-mouths.netlify.app](https://www.zero.xyz/host/blinka-machine-mouths.netlify.app/llms.txt)
