Skip to content
The Latent Daily
The Latent Daily

Sections

News & Industry
Knowledge & Learning
Research & Science
Tools, Software & Models
Developers & Builders
Hardware & Infrastructure
Society, Policy & Ethics
AI in Industries
People & Community
Special Formats

Tag

#Coding

Coding on The Latent Daily: 8 stories, 11 models, 14 prompts and 5 other resources. Latest: Z.ai launches GLM-5.4, a 750B loop transformer for coding.

38 items

Models tagged #Coding

GoogleNov 18, 2026

Gemini 4 Neon

Google's mid-tier Gemini 4 model, adapted from Carbon, for frequent complex coding, analysis and science work. Released November 18, 2026 at $3 / $15 per 1M tokens.

Type
LLMs
Context
1M
Weights
Closed
GoogleNov 12, 2026

Gemini 4 Hydrogen

Google's fast, lower-cost Gemini 4 model for everyday coding and agent tasks, with a 1 million-token context window. It replaces Gemini 3.8 Flash.

Type
LLMs
Context
1M
Weights
Closed
ReflectionOct 16, 2026

Beam

An open-weight 501B mixture-of-experts model from Reflection for coding and agentic tasks, with a 1M-token context window.

Type
Open-Weight
Context
1M
Weights
Open
MetaOct 15, 2026

Muse Spark Open

Meta's open-weight multimodal mixture-of-experts model, trained for agentic coding, with roughly 816B parameters and a 1M-token context.

Type
Open-Weight
Context
1M
Weights
Open
GoogleOct 13, 2026

Gemini 4 Argon

Google's frontier Gemini model for coding, finance, legal, cybersecurity and science tasks, available through the API and on paid Gemini plans.

Type
LLMs
Context
—
Weights
Closed
OpenAISep 29, 2026

GPT-6.1 Sol

OpenAI's upgrade to GPT-6 Sol, offering near-Astra performance for coding, computer use and professional work at one-fifth of Astra's token prices.

Type
LLMs
Context
1.1M
Weights
Closed
AnthropicSep 28, 2026

Claude Sonnet 5.5

Anthropic's mid-tier model, described as the best combination of speed and intelligence, with a 1M-token context and adaptive thinking.

Type
LLMs
Context
1M
Weights
Closed
AnthropicSep 22, 2026

Claude Opus 5.5

Anthropic's model for long-running agentic coding and knowledge work, with a 1M-token context window and adaptive thinking that is always on.

Type
LLMs
Context
1M
Weights
Closed
xAISep 21, 2026

Grok 4.7

xAI's most capable model for coding and knowledge work, built on a larger base model than Grok 4.6 and served at the same price and speed.

Type
LLMs
Context
500K
Weights
Closed
Alibaba QwenNov 12, 2024

Qwen2.5-Coder-32B-Instruct

Alibaba's open-weight 32B coding model, one of the strongest open code models of its generation, released under Apache 2.0.

Type
Code
Context
131K
Weights
Open
Mistral AIMay 29, 2024

Codestral

Mistral AI's first code model: 22 billion parameters trained on 80+ programming languages, with fill-in-the-middle support for completion.

Type
Code
Context
32K
Weights
Open

Prompts tagged #Coding

Codingadvanced

Post-quantum crypto inventory for a codebase

You are a security engineer helping plan a migration to post-quantum cryptography. Build a cryptography inventory for the code and configuration I provide. System description: [WHAT THE SYSTEM DOES, WHO USES IT, WHERE IT RUNS] Data sensitivity: [WHAT DATA IT PROTECTS AND HOW MANY YEARS IT MUST STAY CONFIDENTIAL] Languages and main crypto libraries: [e.g. "Go with crypto/tls", "Java with Bouncy Castle", "Python with cryptography"] Code and config to review: """ [PASTE FILES, OR A LIST OF FILE PATHS AND SNIPPETS: TLS setup, key generation, signing, JWT handling, certificates, SSH, VPN or database encryption settings] """ Steps: 1. List every place cryptography is used. For each, give: file and line (or config key), the algorithm and key size (RSA-2048, ECDSA P-256, X25519, AES-256-GCM, SHA-256...), its purpose (key exchange, signature, encryption at rest, hashing, password storage) and whether it comes from a standard library or custom code. 2. Classify each use as: QUANTUM-VULNERABLE (RSA, finite-field Diffie-Hellman, elliptic-curve schemes), SIZE-SENSITIVE (symmetric ciphers and hashes, where larger sizes are enough) or NOT AFFECTED. Explain the classification in one line. 3. Rank the quantum-vulnerable uses by risk. Put first anything that protects data which must stay secret for a long time, because encrypted traffic can be recorded now and decrypted later. Signatures on short-lived tokens rank lower. 4. For each high-risk item, suggest a migration path: hybrid key exchange (classical plus ML-KEM) where the library supports it, ML-DSA or SLH-DSA for signatures, and any library upgrade needed. Say "check library support" instead of guessing when you are not sure a version supports it. 5. Flag crypto-agility problems: hard-coded algorithm names, fixed key or signature sizes in database columns or protocols, and custom crypto code that would be hard to swap. 6. End with a table: item, risk (high/medium/low), suggested change, effort (small/medium/large), open questions. Rules: only report what you can see in the material I provided. Do not invent file names, library versions or configuration. If something cannot be determined, write [UNKNOWN] and say what I should check.

Works with: Claude, ChatGPT, Gemini, Any LLM with code access

Codingadvanced

Least-privilege sandbox policy for a coding agent

You are a security engineer who designs sandboxes for AI coding agents. Help me write a least-privilege policy for the agent described below. Assume the agent may make mistakes or try shortcuts, so every permission must be justified by a task. Agent tool and where it runs: [E.G. CODING AGENT IN A LOCAL TERMINAL / CLOUD CONTAINER / CI JOB] Repository or project: [SHORT DESCRIPTION, LANGUAGE, BUILD SYSTEM] Tasks the agent must do: [LIST, E.G. "run unit tests", "install npm packages", "open pull requests"] Tasks the agent must never do: [LIST, E.G. "deploy to production", "read customer data"] Sandbox options available: [E.G. OS SANDBOX, DOCKER, GVISOR, MICROVM, NETWORK PROXY WITH ALLOWLIST] Secrets and credentials that exist in this environment: [LIST WITHOUT VALUES] Produce: 1. Filesystem: paths the agent may read, paths it may write, and paths it must not see. Explain each. 2. Network: a default-deny egress policy plus the smallest allowlist of hosts needed for the listed tasks, with the task each host serves. 3. Credentials: which secrets the agent needs, their minimum scope and lifetime, and which must stay out of the sandbox. 4. Approvals: actions that must stop and ask a human first. 5. Logging and alerts: what to record, and which events should page someone or stop the run. 6. Isolation level: which sandbox option fits, and why a weaker one would not be enough. Rules: - Do not grant any permission that no listed task needs. If a task is ambiguous, ask me instead of guessing. - Mark any setting you are unsure the tool supports as "CHECK DOCS". - End with the three biggest remaining risks and how to test that the policy actually blocks them.

Works with: ChatGPT, Claude, Gemini, Any LLM

Codingintermediate

Dockerfile review for image size, security and build caching

You are a DevOps engineer who reviews container builds. Review the Dockerfile below. Application: [LANGUAGE, FRAMEWORK AND WHAT IT DOES, e.g. "Node 22 API with Express"] Where it runs: [e.g. "Kubernetes", "a single VPS with Docker Compose", "a serverless container platform"] Priorities: [e.g. "smaller image first", "fast CI rebuilds", "security hardening"] Constraints: [e.g. "must use our company base image", "needs native build tools for one dependency"] Dockerfile: """ [PASTE DOCKERFILE] """ .dockerignore (if any): """ [PASTE OR WRITE "none"] """ Please: 1. List findings in a table: line, issue, category (size / caching / security / reliability), severity, fix. 2. Check specifically: base image choice and tag pinning, layer order for cache reuse, dev dependencies in the final image, running as root, secrets passed via ARG or ENV or copied files, missing .dockerignore entries, HEALTHCHECK, and signal handling for graceful shutdown. 3. Rewrite the Dockerfile, using a multi-stage build if it helps, with a short comment on each changed line. 4. Give the commands to build it and to compare image size before and after. 5. Note anything you could not verify without seeing the rest of the repository.

Works with: ChatGPT, Claude, Gemini, Any LLM

Codingadvanced

Database schema design review before you migrate

You are a senior database engineer. Review the schema below before it is created in production. Database: [e.g. "PostgreSQL 16", "MySQL 8", "SQLite", "SQL Server"] What the application does: [ONE-PARAGRAPH DESCRIPTION] Expected scale: [ROWS PER TABLE, WRITES PER SECOND, GROWTH] Most important queries: [LIST 3-8 QUERIES IN SQL OR PLAIN ENGLISH] Existing data to migrate: [YES/NO, AND FROM WHERE] Schema: """ [PASTE CREATE TABLE STATEMENTS OR AN ORM MODEL FILE] """ Review in this order and label each finding HIGH, MEDIUM or LOW: 1. Correctness: primary keys, foreign keys, NOT NULL, UNIQUE and CHECK constraints that the business rules require. 2. Modeling: normalization problems, repeated data, many-to-many relationships, soft deletes, history and auditing needs. 3. Data types: money, time zones, text length, enums, IDs. 4. Indexes: which of my queries each index serves; missing and redundant indexes. 5. Naming and consistency. 6. Migration and operations: locking risks, backfills, defaults on large tables. For each finding, give the reason and the corrected DDL. Finish with a revised full schema and a list of questions for me where the right answer depends on business rules you cannot see.

Works with: ChatGPT, Claude, Gemini, Any LLM

Codingintermediate

API reference documentation from your source code

You are a technical writer who documents APIs for developers. Write reference documentation for the code below. API type: [e.g. "REST API in Express", "Python library", "GraphQL resolvers", "CLI commands"] Audience: [e.g. "external developers integrating with us", "internal frontend team"] Output format: [e.g. "Markdown", "OpenAPI 3.1 YAML", "docstrings in Google style"] Conventions we already use: [AUTH METHOD, BASE URL, ERROR FORMAT, NAMING STYLE] Code: """ [PASTE HANDLERS, FUNCTIONS, TYPES OR SCHEMAS] """ For each endpoint or public function, document: 1. Name and one-sentence purpose. 2. Method and path (or signature). 3. Parameters: name, type, required/optional, default, allowed values, description. 4. A realistic request example and a response example. 5. Errors: status codes or exceptions the code can actually raise, and when. 6. Side effects (writes, emails, external calls) and idempotency. Rules: - Document only what the code shows. If behavior is unclear (for example, validation happens elsewhere), write "UNVERIFIED:" and say what to check. - Do not invent endpoints, fields or limits. - End with a "Gaps" list: missing validation, undocumented errors, inconsistent naming.

Works with: ChatGPT, Claude, Gemini, Any LLM

Codingadvanced

Lightweight threat model for a new feature

You are an application security engineer running a threat modeling session with a development team. Feature: [WHAT IT DOES, e.g. "users upload a CSV of contacts that we import into their account"] Architecture: [COMPONENTS AND DATA FLOW, e.g. "React frontend -> REST API (Node) -> S3 bucket -> worker -> Postgres"] Users and roles: [e.g. "anonymous visitors, logged-in users, admins"] Sensitive data involved: [e.g. "email addresses, phone numbers", "payment tokens"] Existing controls: [e.g. "OAuth login, rate limiting at the gateway, WAF"] Compliance or constraints: [e.g. "GDPR", "SOC 2", "none"] Produce: 1. Assets: what an attacker would want (data, access, availability, money). 2. Trust boundaries: where data crosses from less trusted to more trusted components. 3. Threats: a table with columns # | Component | STRIDE category (Spoofing, Tampering, Repudiation, Information disclosure, Denial of service, Elevation of privilege) | Threat | Likelihood (L/M/H) | Impact (L/M/H) | Mitigation. 4. Top 5 mitigations to implement first, phrased as backlog items with acceptance criteria. 5. Security tests to add (unit, integration or manual). 6. Assumptions you made and questions for the team. Rules: base threats on the architecture described. If a threat depends on details I did not give, put it under questions instead of assuming the worst or the best.

Works with: ChatGPT, Claude, Gemini

Codingbeginner

Write a clear git commit message from a diff

Write a git commit message for the diff below. Convention: [e.g. "Conventional Commits (feat:, fix:, refactor:...)", "imperative subject, no prefix", "ticket ID first: PROJ-123"] Why I made this change: [ONE OR TWO SENTENCES, e.g. "users with long names saw the layout break on mobile"] Related ticket or issue: [ID OR "none"] Rules: - Subject line: imperative mood ("Add", "Fix", not "Added"), at most 72 characters, no period at the end. - Blank line, then a body wrapped at 72 characters that explains what changed and why, not a line-by-line list of the diff. - Mention any breaking change, migration or config change in its own line (e.g. "BREAKING CHANGE: ..."). - Do not describe changes that are not in the diff. Do not invent ticket numbers. - If the diff mixes unrelated changes (e.g. a bug fix plus formatting plus a new feature), say so and suggest how to split it into separate commits, with a message for each. Give me the message in a code block so I can copy it. Diff: ``` [PASTE OUTPUT OF git diff --staged] ```

Works with: ChatGPT, Claude, Gemini, GitHub Copilot Chat

Codingadvanced

Convert code between programming languages idiomatically

You are an engineer fluent in both [SOURCE LANGUAGE] and [TARGET LANGUAGE]. Convert the code below. Target environment: [e.g. "TypeScript 5 on Node 22", "Go 1.23", "Rust stable, no unsafe"] Libraries allowed in the target: [e.g. "standard library only", "pandas and numpy", "anything widely used"] Priority: [e.g. "match behavior exactly", "idiomatic and maintainable", "performance"] Steps: 1. Summarize what the source code does, including inputs, outputs, side effects and error cases. 2. Make a mapping table: source construct or library -> target equivalent, with notes. 3. List semantic differences that could change behavior: integer overflow and division, floating point, string encoding and indexing, null/None handling, exceptions vs error values, mutability, concurrency, sorting stability, date and time zones. 4. Write the converted code in idiomatic [TARGET LANGUAGE], not a line-by-line transliteration. Add comments where behavior is intentionally preserved in a non-obvious way. 5. Write tests in the target language that cover normal cases, edge cases and the differences from step 3. 6. List anything you could not convert faithfully and what decision I need to make. Source code: ``` [PASTE CODE] ```

Works with: ChatGPT, Claude, Gemini, GitHub Copilot Chat

Codingintermediate

Regex builder with matching and non-matching test cases

You are an expert in regular expressions. Write a regex for the following task. Regex engine: [e.g. "Python re", "JavaScript", "PCRE", "Java", ".NET", "grep -E", "PostgreSQL"] Task: [WHAT TO MATCH, e.g. "UK postcodes", "ISO 8601 dates", "order IDs like ORD-2026-000123"] Usage: [e.g. "validate a whole form field", "find all occurrences in log lines", "extract the number as a capture group"] Examples that MUST match: [LIST 3-10 EXAMPLES] Examples that must NOT match: [LIST 3-10 EXAMPLES] Please: 1. Restate the rules you will implement, including edge cases I may not have thought of (case, whitespace, leading zeros, Unicode). 2. Give the regex, and a verbose/commented version if the engine supports it. 3. Explain each part token by token. 4. Provide a test table with at least 8 matching and 8 non-matching strings, including tricky ones, and the expected result for each. 5. Provide a short test snippet in [LANGUAGE] that runs every case and prints any failure. 6. Mention performance risks (catastrophic backtracking) and any case a regex cannot reliably handle.

Works with: ChatGPT, Claude, Gemini, Any LLM

Codingbeginner

Explain unfamiliar code with a guided walkthrough

I need to understand the code below. I am [YOUR LEVEL, e.g. "a junior developer", "a data analyst who knows some Python", "an experienced Java developer new to Rust"]. Where this code comes from: [e.g. "our billing service", "an open-source library", "a script a former colleague left"] What I need to do with it: [e.g. "fix a bug", "add a feature", "decide whether to reuse it"] Please explain it in this structure: 1. One-paragraph overview: what the code does and why someone would write it. 2. Map: list the main functions, classes or blocks with one line each on their role. 3. Walkthrough: trace what happens step by step for this example input: [EXAMPLE INPUT, or "pick a realistic one"]. 4. Concepts: explain any language features, libraries or patterns I might not know, with a one-line example each. 5. Surprises: anything unusual, risky or easy to misread (side effects, global state, hidden I/O, clever one-liners). 6. Open questions: what you cannot tell from this code alone and where I should look. Rules: describe only what the code actually does. If a function is called but not shown, say that you are inferring its behavior from its name. Code: ``` [PASTE CODE] ```

Works with: ChatGPT, Claude, Gemini, GitHub Copilot Chat

Codingintermediate

Refactor code for readability without changing behavior

You are a senior [LANGUAGE] engineer. Refactor the code below for readability and maintainability. Context: - What the code does: [PURPOSE] - Language and framework version: [e.g. "Python 3.12, Django 5"] - Style guide or linter: [e.g. "PEP 8, ruff defaults"] - Parts that must not change: [e.g. "public function signatures", "log messages parsed by monitoring"] Hard rule: the external behavior must stay identical. Same inputs, same outputs, same side effects, same exceptions. Do not fix bugs silently; if you find one, list it separately. Work in this order: 1. Summarize what the code does in 3-5 bullet points so I can confirm you understood it. 2. List the readability problems you see (naming, long functions, deep nesting, duplication, magic numbers, unclear control flow). 3. Propose a sequence of small refactoring steps, each one safe on its own (e.g. "extract function", "rename variable", "replace nested ifs with early returns"). 4. Show the final refactored code. 5. List any behavior that could change by accident (ordering, floating point, mutability, error types) and the tests I should run or add to confirm nothing changed. 6. Under "Possible bugs found", list issues you noticed but did not fix. Code: ``` [PASTE CODE] ```

Works with: ChatGPT, Claude, Gemini, GitHub Copilot Chat

Codingintermediate

Structured code review with a severity checklist

You are a senior [LANGUAGE] engineer doing a code review. Review the code below. Context: - What the code is supposed to do: [PURPOSE] - Where it runs: [e.g. "public web API", "internal batch script"] - Project conventions: [STYLE GUIDE, FRAMEWORK, VERSION] - Focus areas, if any: [e.g. "security", "performance"] Check the code against this list, in order: 1. Correctness: logic errors, edge cases (empty input, null, large values), off-by-one errors. 2. Security: input validation, injection, secrets in code, unsafe deserialization, permissions. 3. Error handling: failures that are swallowed, unclear error messages, missing cleanup. 4. Performance: unnecessary loops, repeated I/O, N+1 queries, memory growth. 5. Readability: naming, function length, duplicated code, missing comments where logic is non-obvious. 6. Tests: what is untested and which test cases you would add. Output format: - A table: # | Severity (blocker/major/minor/nit) | Line(s) | Issue | Suggested fix - Then up to 3 code snippets showing the most important fixes. - Then "What is good": 2-3 things worth keeping. Rules: only report issues you can point to in the code. If something depends on code you cannot see, list it under "Questions for the author" instead of guessing. Code: ``` [PASTE CODE OR DIFF] ```

Works with: ChatGPT, Claude, Gemini, GitHub Copilot Chat

Codingadvanced

Debugging assistant: reproduce, hypothesize, test

You are an experienced debugging partner. Do not jump to a fix. Help me find the root cause first. The problem: - Expected behaviour: [WHAT SHOULD HAPPEN] - Actual behaviour: [WHAT HAPPENS INSTEAD] - Error message or stack trace: [PASTE EXACTLY, OR "none"] - When it started / what changed recently: [e.g. "after upgrading library X to 2.0"] - Environment: [LANGUAGE, VERSION, OS, FRAMEWORK, DATABASE] - What I have already tried: [LIST] Relevant code: ``` [PASTE THE SMALLEST CODE THAT SHOWS THE PROBLEM] ``` Work through these steps and label each one: 1. Reproduce: describe the minimal steps or test case that should trigger the bug. Say what information is missing to reproduce it. 2. Hypotheses: list 3-5 possible root causes, ranked from most to least likely, with the evidence for and against each. 3. Tests: for each hypothesis, give the smallest experiment that would confirm or rule it out (a log line, an assertion, a one-line change, a command). 4. Next step: tell me which single test to run first and why. Only after I report the results, propose a fix and explain how to verify it and how to prevent a regression. If you are unsure about how a library behaves in my version, say so instead of assuming.

Works with: ChatGPT, Claude, Gemini, Any LLM

Codingintermediate

Unit test generator with edge cases

You are a test engineer who writes small, readable, deterministic unit tests. Language and test framework: [e.g. "Python 3.12 with pytest", "TypeScript with Vitest", "Java 21 with JUnit 5"] What the code should do (the specification): [DESCRIBE INTENDED BEHAVIOUR, INCLUDING ERROR CASES] Dependencies to mock, if any: [e.g. "the database client", "the HTTP call to the payment API", "the current time"] Code under test: ``` [PASTE FUNCTION OR CLASS] ``` Steps: 1. List the behaviours to test as a checklist, grouped into: normal cases, boundary and edge cases (empty, zero, negative, very large, unicode, None/null), invalid input and errors. 2. Point out any behaviour where the code and the specification disagree, or where the specification is silent. Do not "fix" the code; list these as questions. 3. Write the tests: - one behaviour per test, with a descriptive name (e.g. test_returns_zero_for_empty_cart) - Arrange / Act / Assert structure - use parameterized tests where several inputs check the same rule - no network, no real clock, no random values without a fixed seed 4. Say which tests you expect to FAIL with the current code and why. Use only the standard features of [FRAMEWORK] and any libraries already imported in the code.

Works with: ChatGPT, Claude, Gemini, GitHub Copilot Chat

Benchmarks tagged #Coding

View all
Benchmarks

Aider Polyglot

225 hard Exercism coding exercises in C++, Go, Java, JavaScript, Python and Rust, used by the open-source tool Aider to test how well models edit code.

Benchmarks

HumanEval

OpenAI's set of 164 hand-written Python programming problems checked by unit tests, which introduced the pass@k metric and became the first standard coding benchmark for LLMs.

Benchmarks

LiveCodeBench

A continuously updated coding benchmark built from new LeetCode, AtCoder and Codeforces contest problems, dated so models can be tested on problems released after their training.

A human-validated set of 500 real GitHub issues from popular Python projects; an AI system must edit the codebase so the project's hidden tests pass.

Benchmarks

Terminal-Bench

A benchmark of hard, realistic tasks that AI agents must complete in a Linux command line, each in its own container and checked by tests. Now in version 4.1.