惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Y
Y Combinator Blog
B
Blog
S
SegmentFault 最新的问题
Vercel News
Vercel News
博客园 - 聂微东
宝玉的分享
宝玉的分享
C
Check Point Blog
有赞技术团队
有赞技术团队
IT之家
IT之家
V
V2EX
爱范儿
爱范儿
GbyAI
GbyAI
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
Microsoft Azure Blog
Microsoft Azure Blog
P
Proofpoint News Feed
博客园 - 司徒正美
博客园_首页
Last Week in AI
Last Week in AI
博客园 - 叶小钗
量子位
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
F
Fortinet All Blogs
腾讯CDC
J
Java Code Geeks

Hacker News - Newest: "AI"

AI can't read an investor deck AI as an attorney? Student uses ChatGPT, Gemini to sue UW over alleged racial discrimination Hacking MCP Servers in AI Systems – The Rug Pull: Tool Changes After Approval GitHub - MeepCastana/KubeezCut: Free Web based video editor Can AI judge journalism? A Thiel-backed startup says yes, even if it risks chilling whistleblowers Coming soon: 10 Things That Matter in AI Right Now DARPA built an AI to fact-check enemy weapons claims What explains heterogeneity in AI adoption? When AI Meets Muscle: Context-Aware Electrical Stimulation Promises a New Way to Guide Human Movements - Department of Computer Science AI Changed How We Build. It Did Not Change What Matters. Linux rules on using AI-generated code - Copilot is OK, but humans must take 'full responsibility for the… Meta spins up AI version of Mark Zuckerberg to engage with employees Code Mode: Let Your AI Write Programs, Not Just Call Tools | TanStack Blog GitHub - Delavalom/graft: Go framework for building AI agents. Type-safe tools, multi-provider (OpenAI, Anthropic, Gemini, Bedrock), zero vendor SDKs. India's TCS tops estimates, says new AI models did not dent services demand Gen Z's fading AI hype Strong feeling: we are in a folded AI reality GitHub - machinarii/total-recall-catalog: A reference catalog of latest knowledge retrieval, memory & RAG systems GitHub - mensfeld/code-on-incus: Give each AI agent its own isolated machine with root, Docker, and systemd. Active defense detects and stops threats automatically.. Quantization, LoRA, and the 8% Problem: Benchmarking Local LLMs for Production AI Iran war: We spoke to the man making Lego-style AI videos that experts say are powerful propaganda Powell, Bessent discussed Anthropic's Mythos AI cyber threat with major U.S. banks GitHub - immartian/bellamem: Persistent belief-graph memory for AI agents. Retrieves decisive context by importance — not recency, not RAG, not /compact. recursive-mode: The Repo-Native Operating System for AI Engineering After the attack on Sam Altman's home, will AI CEO's go on the offensive? The biggest advance in AI since the LLM Opus 4.6 vs GPT 5.4 One Prompt Unity World Generation Test “AI polls” are fake polls Client Challenge Can AI be a 'child of God'? Inside Anthropic's meeting with Christian leaders
GitHub - gangtao/AgentPitch: An LLM-powered soccer simula...
gangtao · 2026-05-04 · via Hacker News - Newest: "AI"

CI Release Docker Image Python

An LLM-powered soccer simulation where every player on the field is an AI agent. Each player's decision logic is generated by a large language model and evolves between matches based on prior performance.

Live match view with event feed

Documentation

Doc Description
Design & Architecture System layers, data flow, sandbox internals, and key design decisions
Matches Running and replaying individual matches
Strategies Creating, editing, and managing player strategies
Arena Head-to-head match with strategy evolution
Cup Single-elimination tournament setup and bracket view
League Round-robin league setup, matchdays, and standings
Config Match configuration, field settings, and LLM providers

How it works

Each player runs a decide(game_state, player_state, history) callback that you or an LLM writes in Python, JavaScript, or Rust. Before every match the Code Generation Pipeline asks an LLM to produce a strategy; after the match the Post-Match Evolution Pipeline feeds the match log back to the LLM so strategies improve over time. All generated code executes inside language-specific sandboxes — no arbitrary host access.

Config (YAML/API)
  → Code Generation Pipeline  (LLM writes decide() code)
  → Sandbox                   (compile + cache the callback)
  → Tick Engine               (runs ticks until match ends)
      each tick: build snapshot → Sandbox.execute() → Action
               → ActionResolutionEngine
               → PlayerMovementSystem / BallPhysicsSystem
               → MatchLog records tick
  → Post-Match Evolution Pipeline  (LLM evolves strategy from match log)

Requirements

  • Python 3.11+
  • API key for at least one supported LLM provider (OpenAI, Anthropic, Gemini, DeepSeek, OpenRouter, or a local Ollama instance)

Installation

# Install with all sandbox backends (JS via QuickJS, WASM via Wasmtime)
make install          # pip install -e '.[all]'

# Python-only (no JS or Rust strategies)
pip install -e .

Quickstart

# 1. Install
make install

# 2. Start the browser UI on http://localhost:8765
make serve

Open http://localhost:8765 in your browser. Go to Config → Providers, select your LLM provider, and enter your API key. The key is stored locally in data/.secrets.json and never leaves your machine.

Supported providers: OpenAI, Anthropic, Gemini, DeepSeek, OpenRouter, or a local Ollama instance (no key required).

CLI commands

Command Description
agent-pitch serve Start the FastAPI server + browser UI (port 8765)
agent-pitch run Execute a season of matches
agent-pitch generate-strategy Generate one strategy via LLM
agent-pitch cup-run Run a cup tournament
agent-pitch league-run Run a league tournament

Make targets

make install              # install locally with all sandboxes
make test                 # run the test suite
make test-cov             # run tests with coverage (≥80% required)
make serve                # start server on port 8765

make docker-build         # build via docker compose
make docker-up            # run via docker compose (port 8765)
make docker-down          # stop compose container
make docker-image         # build standalone image agent-pitch:latest
make docker-run           # run standalone image with ./data volume mapped

Supported LLM providers

Edit data/llm-providers.yaml to select your provider and model:

Provider Notes
OpenAI OPENAI_API_KEY
Anthropic ANTHROPIC_API_KEY
Gemini GEMINI_API_KEY
DeepSeek OpenAI-compatible, DEEPSEEK_API_KEY
OpenRouter OpenAI-compatible, OPENROUTER_API_KEY
Ollama Local, no key required

Strategy languages

Extension Sandbox Extra dependency
.py RestrictedPython always available
.js QuickJS pip install -e '.[js]'
.rs Wasmtime (compiles Rust → WASM) pip install -e '.[wasm]'

Docker

# Build and run with docker compose
make docker-build && make docker-up

# Or build and run a standalone image
make docker-image && make docker-run

The container maps ./data as a volume so strategies and configuration persist between runs.

Contributing

See CONTRIBUTING.md for setup, testing, and pull request guidelines.

License

Apache 2.0 — see LICENSE.