Skip to content
Agentmart
Submit a tool

funsearch

FunSearch (Program Search) method skill.

Skill by Optima-CityU

IndexedBSD-3-Clause★ 677
Write a review

Chalk Labs

Need help deploying funsearch?

Chalk Labs sets up agents like this inside real teams: connected to your tools, tested on your data, with a human in the loop where it matters.

Book a call

Install

Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.

npx agentmarket install skill/optima-cityu-funsearch

Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.

Get the weekly diff

The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.

We use your email only for this newsletter. Privacy

About

FunSearch (Program Search) method skill. USE WHEN the user explicitly requests FunSearch / Program Search, or wants search with a programs database that stores and samples from high-scoring programs.

Use cases: design, backend, code-generation

No reviews yet. Installed it? Reviews come from verified installers only. How reviews work

Permissions

What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.

Tools
No tools found
Secrets
None asked for
Install scripts
None found

Network hosts it talks to 1

  • codeload.github.com · found in install command

Files it touches

  • ~/.claude/skills/funsearch

What's inside

Skill name
funsearch
Description
FunSearch (Program Search) method skill. USE WHEN the user explicitly requests FunSearch / Program Search, or wants search with a programs database that stores and samples from high-scoring programs.
License
BSD-3-Clause
Instructions
44 lines in SKILL.md · view on GitHub

Files (2)

  • SKILL.md
  • params.yaml

SKILL.md (first lines)

# FunSearch Skill

> **Paper**: Romera-Paredes et al., "Mathematical discoveries from program search with large language models", Nature 625 (2024).

## 1. Method Essence

FunSearch organizes search using a **ProgramsDatabase**: programs are stored and indexed by evaluation score, with sampling prioritizing high-score buckets for mutation. New programs are evaluated and stored by score, forming a "high-score priority, low-score elimination" evolution. It also uses an **islands mechanism** for diversity: multiple independent sub-populations evolve separately, with periodic exchange.

Core components:
- **Database**: Archive of programs + scores, stratified by score (higher score = higher probability of being sampled as parent)
- **Sampler**: Generates mutation prompts from high-score programs (not from empty prompts)
- **Evaluator**: Independent evaluation, results written back to database

## 2. Recommended Parameters

See `params.yaml` in this directory for the recommended parameter configuration.

### What Happens During Evolution

1. Database initialized with seed programs (or random generation)
2. Each generation:
   - Sample parent from high-score bucket
   - Generate N variants via LLM mutation
   - Evaluate variants independently
   - Store scored variants back to database
   - Optionally: eliminate low-score programs
3. Islands evolve independently, periodically exchanging best programs
4. Database naturally stratifies: top programs dominate sampling

### Common Pitfalls

- Database collapses (all programs similar) → increase island count or mutation diversity
- Too aggressive elimination → lose useful building blocks; increase `population_size`
- No improvement → check if sampling always picks the same parent; increase `samples_per_prompt`

## 4. Acceptance Criteria

- Database stratification visible (programs in different score buckets)
- High-score programs repeatedly used as mutation parents (exploitation)
- Periodic sampling from lower buckets (exploration)
- Clear elimination of consistently low-scoring programs
- Final best program in top database bucket

From Optima-CityU/LLM4AD_Next, BSD-3-Clause.

More from Optima-CityU/LLM4AD_Next

Signals

Stars
677
Forks
44
Open issues
1
Last commit (this folder)
Aug 25, 2026 (2 months ago)
Last release
Sep 29, 2026 (1 month ago)

From GitHub (fetched Oct 24, 2026).

Details

License
BSD-3-Clause
First seen
Oct 24, 2026
Last checked
Oct 24, 2026

More from Optima-CityU

Done for you

Rather not set it up yourself?

Chalk Labs scopes, builds and runs agents for your team: the task audit, the eval harness, the integrations and the weekly ops report. Fixed scope, priced before we start.

See how we build AI agents →Read the case studies

Chalk Labs is a two-founder AI and growth studio. We build AI agents, CRMs and MVPs for Web3 and AI companies, and have shipped 50+ product and token launches.

launches shipped
50+
launches shipped
media placements
500+
media placements
founders on every account
2
founders on every account

Press we've placed: Forbes · CoinDesk · Decrypt · Cointelegraph · The Block

Rahil Jain, Co-founder, Chalk Labs. Ex-Goldman Sachs engineer. You talk to the person who builds it.

Get funsearch running in your business

Tell us what you want to automate. A founder replies within one working day with a plan, not a pitch deck.

Goes to the Chalk Labs founders, not the newsletter. Privacy

Need help deploying funsearch?

CallGet help
Cite this page

funsearch skill. Agent Mart. https://agentmart.dev/skills/optima-cityu-funsearch (last updated 2026-10-24)