frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Open in hackernews

Why human syntax breaks LLMs (and how to fix agentic coding)

4•aslang•3h ago
Full technical essay with benchmarks & AST breakdowns: https://aslang.dev/blog/why-llms-struggle-with-python-and-rust

Over the past two years, watching coding agents generate code, we kept noticing an identical failure pattern: models spend 32% to 41% of their inference compute trapped in syntax repair loops.

When we investigated the information theory behind this, we realized the problem is not model scale—it is the computational geometry of transformer attention heads when confronted with human-centric grammars: 1. Python's off-side rule: Lexing requires an internal LIFO indentation stack. Closing 3 blocks emits 0 characters. A single whitespace token split silently re-parents AST subtrees. 2. Rust's borrow checker: Validity depends on non-local constraint solving across lifetimes and CFGs. Autoregressive generation is strictly forward causal (O(1) feedforward); it cannot backpropagate lifetime conflicts backward during generation.

We built AgentScript (ASL): an open-source, statically typed language using single-pass S-expressions that compiles directly to native Rust, Go, TypeScript, and WebAssembly (wasm32-wasip1).

Key properties enforced by construction: * Balanced parentheses by grammar: Left-to-right attention heads always know parent scope. * Closed vocabulary (prelude.json): 100% of builtins are type-checked and evaluated; no unmodeled foreign calls. * Sub-millisecond Wasm sandboxing: In-memory WASI preview1 execution in 0.038ms without Docker/microVM spin-up. * Syntax repair collapse: Models spend 46.5% of generated tokens fixing syntax in Rust (our hard baseline) and 34.2% in Python. In AgentScript, repair iterations drop by 98.3% vs Rust baseline (from 4.8 cycles to 0.08), cutting syntax repair waste to just 1.2%.

Our Mission: The Best Harness for Local Development with Small Models While frontier models on cloud clusters partially brute-force messy human grammars, our mission is to build the most effective autonomous harness for local development with small models (SLMs: 3B to 31B like Qwen, Gemma, Llama) running directly on developer machines.

On Apple Silicon or laptops, memory and attention are precious. A single-pass, parenthesis-balanced language combined with resident AST batch RPC eliminates the syntax churn and context rot that derail small models.

Pre-Release Alpha & Active Development: AgentScript is in early pre-release alpha—we do not have a tagged v0.1 release yet and are actively migrating to a 100% self-hosted compiler & WASI runtime. But even at this stage, empirical results inside agent loops are remarkably compelling.

Try It Locally & In Your Agent Skills: We do not offer an in-browser playground—test the real thing directly in realistic agent workflows: 1. CLI toolchain: curl -fsSL https://aslang.dev/install.sh | bash (or clone GenSEAM/asl & cargo build --release) 2. Equip agent skills (Claude Code, Cursor, Antigravity) with AST verification and batch RPC: asl rpc '(:batch (:out "src/main.asl") (:sym "my_func"))'

Terminal-Bench 4.0 Baseline (Macro Results, Not Cherry-Picked): We packaged our baseline submission on Terminal-Bench 4.0 (tested on Gemma 4 31B under strict airgap boundaries): * Macro Pass Rate: 13.5% across all 89 evaluated tasks (12 verified passes / 89 total tasks). * Baseline Comparison: Common harnesses (Claude Code, Codex, CLI loops) score 0.0% on this suite when paired with open-weights models due to subshell state loss, quoting drift, and context blowup. Pure ASL achieves 13.5% on Gemma 31B in airgap. * Token Economy: 77.3% token savings vs standard agent CLI baselines.

Transcripts & submission tarball: https://github.com/GenSEAM/harness Core compiler & runtime repo: https://github.com/GenSEAM/asl

We would love critical feedback from compiler engineers, language designers, and systems builders on the grammar design and agent steering architecture!

Comments

talhaanwar•1h ago
I dont know but the article does not open for me

Ask HN: Are others seeing Google's reCAPTCHA rejecting Firefox users?

185•Animats•4d ago•78 comments

Ask HN: Anyone using dictation with coding agents?

2•TomEleff•1h ago•0 comments

Why human syntax breaks LLMs (and how to fix agentic coding)

4•aslang•3h ago•1 comments

Ask HN: Fable hacked my piano, can I release the results?

291•jmpman•3d ago•157 comments

Ask HN: How do you manage skills files?

305•imadtaieber•1d ago•274 comments

Apparently CodePen 2.0 sends data to their servers as you type

112•maxim-fin•1d ago•59 comments

Ask HN: Would you read a statistics textbook?

106•usernametaken29•2d ago•65 comments

Ask HN: Anyone else feeling uneasy with the latest developments in AI?

13•sensitivekt9q3•12h ago•13 comments

DeepSeek v4.1 Flash is now available for internal beta testing

16•dares2573•8h ago•5 comments

Ask HN: Who is using MCP in production?

196•sukit•5d ago•198 comments

Ask HN: Show your micro-SaaS

20•genekrapivin•1d ago•16 comments

Ask HN: Why were OpenAI, Claude, and Grok simultaneously down?

404•halcdev•5d ago•705 comments

Tell HN: OpenAI brings back 5 hour limit for plus and business standard users

127•spwa4•23h ago•143 comments

Ask HN: Is JavaScript as insecure as ActiveX was at the peak?

2•roschdal•1h ago•2 comments

Ask HN: Any Software Engineers here who enjoy their AI-native dev workflow?

9•pkos98•2d ago•9 comments

Ask HN: 3.5 inch diskette read errors, would a period correct drive do better?

6•rietta•1d ago•5 comments

Ask HN: Connecting Kubernetes dependencies to application telemetry

6•chipfixer•1d ago•2 comments

Ask HN: UK Rescue Rocket Sheds/Houses Information

24•burnt-resistor•1d ago•6 comments

Ask HN: (Why) Was the LLM breakthrough useful for images, audio, etc.?

4•rogerrogerr•1d ago•4 comments

Bun rewrite and FLT formalization had nearly identical resource usage

5•Zsfe510asG•23h ago•1 comments

Tell HN: Both recent GCP outages caused by fiber optic maintenance

19•fastest963•4d ago•1 comments

Tell HN: I want to see the same moon as you

16•UnderABlueMoon•3d ago•15 comments

Is OpenAI silently routing GPT‑6 requests to GPT‑4o?

2•skaiuijing•1d ago•3 comments

Ask HN: How safe are our password managers in face of LLM cyber attacks?

3•muddi900•1d ago•0 comments

Ask HN: Do People Care About Image Optimisation Anymore?

4•CM30•1d ago•1 comments

Ask HN: How do you keep AI coding agents in sync with a changing Figma file?

2•rjvidentia•1d ago•1 comments

tuhat: Home for all your reading

4•8by3•1d ago•0 comments

Ask HN: Why can I use macOS passkeys without biometrics

4•0xnico•1d ago•0 comments

Ask HN: What are you working on?

7•meerita•1d ago•14 comments

Tell HN: Anthropic should make Claude the Author and me the Co-Author

5•xeonax•1d ago•4 comments