Skip to content

z2z23n0/idea-miner

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

idea-miner

English | Simplified Chinese

Put spare agent tokens to work finding startup and open-source ideas worth building.

idea-miner helps an agent with spare token budget, a quiet automation window, or a standing research slot turn high-imagination AI-era theses into startup and open-source product bets. It starts from thesis generation, sketches AI-focused product/OSS bets, then scans sources to kill, sharpen, or de-risk those bets.

The repo contains two agent skills plus a few helper scripts. The skills define the research workflow, source policy, role contracts, pressure-test rubrics, report format, and local evidence memory format.

What It Produces

  • A Discovery Thesis portfolio across three AI-focused final buckets: ai_oss, ai_product, and ai_prosumer.
  • Product/OSS bet sketches anchored in a clear Idea Spine: product/repo form, target user and task, inputs or permissions, core object, output/state, first-version boundary, and why it is a product or OSS project rather than a prompt, wrapper, checker, or integration recipe.
  • Competitor and substitute checks for serious candidates.
  • Red Team objections, dangerous assumptions, and CEO-style decisions: advance, narrow, pause, or reject.
  • A Chinese report that can be read as a daily or weekly research memo by someone who did not participate in discovery.
  • An independent reader review artifact that checks whether each selected idea can be explained as a concrete product or repo shape.
  • A candidate ledger that records replenish rounds when a bucket is underfilled.
  • Optional local JSONL memory for signals, ideas, competitors, claims, decisions, and evidence edges.
  • Handoff-ready idea dossiers so a later one-line handoff request can package the stored context without repeating source discovery.
  • Optional new-session handoffs in Codex: one idea can be sent to a fresh session, and multiple ideas default to separate fresh sessions.

How It Works

prepare_run
  -> load_history
  -> generate_thesis_portfolio
  -> sketch_product_oss_bets
  -> collect_evidence
  -> normalize_signals
  -> ai_relevance_gate
  -> product_shape_gate
  -> product_oss_promotion_gate
  -> history_relation_gate
  -> hard_gate
  -> critic_review
  -> competitor_check
  -> ceo_decision
  -> replenish_if_underfilled
  -> persist_memory
  -> render_report
  -> independent_reader_review
  -> persist_run_artifacts

The default run is rigorous and thesis-first. Unless the user explicitly asks for a narrow scan, the scout starts by generating AI-era theses and product/OSS bet sketches. Evidence comes later as a brake: it supports, challenges, kills, or sharpens bets; it is not the primary imagination source. Weak candidates are killed before long write-ups, and an underfilled bucket triggers replenish rounds with new thesis seeds, capability shifts, product archetypes, demo moments, repo/product assets, target users, or source modules. The default final set is grouped as up to 3 ai_oss, up to 3 ai_product, and up to 3 ai_prosumer; underfilled buckets stay underfilled rather than being filled with lower-quality ideas. If the runtime provides real sub-agent or multi-agent tools, the same role contracts can be dispatched. The Report Reader should be a separate agent whenever the runtime supports it.

The useful output is the thesis-to-decision chain plus product shape: what bet the run is making, what artifact or product surface would exist, who uses it for which task, what input becomes what output, what the first version does and does not do, what evidence supports or kills it, and why it survived review.

Recurring runs also save per-idea dossiers. Handoff should be a packaging step: read the stored dossier, write a temporary handoff file, and avoid web refreshes unless the user explicitly asks for current status.

Whenever a run, market scan, launch scan, or requested refresh needs web or realtime search, try the Grok search MCP first, preferably mcp__grok_search.grok_web_search for web search. Older runtimes may expose grok_search.grok_ask / mcp__grok_search.grok_ask and require search: "web". If Grok is unavailable, times out, fails, or cannot cover the needed source class, fall back to Codex built-in web/search/browser/GitHub tools and record the fallback in source or coverage notes.

When the host runtime exposes Codex thread/session tools, a handoff can also be delivered directly into new sessions. By default, multiple ideas are handed off to separate sessions; use an explicit "same session" or "combined" instruction when one shared session is desired. Plain new-session handoffs should only make the receiving session confirm the context and wait. They should not start research or implementation unless requested.

Skills

Skill Role
idea-discovery-workflow Runs the research workflow: thesis portfolio, product/OSS bets, source plan, roles, evidence memory, and report format
ai-founder-playbook Judges the ideas: pressure tests, competitor reasoning, commercial/open-source split, and launch support

The split keeps orchestration and judgment separate. A scheduled run can use idea-discovery-workflow to gather and normalize evidence, then call on ai-founder-playbook when ideas need pressure testing, competitor checks, or market judgment.

Signal Sources

Bucket Examples
AI / platform shifts Model, agent, API, pricing, policy, protocol, and devtool changes
OSS mindshare GitHub trending/new repos, demos, benchmarks, standards, playgrounds, stars/forks
Pain / complaints Reddit and HN threads, GitHub issues, low reviews, workarounds, "I wish there was..."
Product / platform news Official blogs, release notes, changelogs, Show HN, Product Hunt, new agent/devtool features
Competitor gaps Closed source, no self-hosting, expensive pricing, poor docs, complex setup, slow issue response
Open-source ecosystem GitHub topics, trending projects, releases, stars/forks, PRs, tutorials, dependencies
Trend radar AI news sites, builder newsletters, analyst newsletters, curated X/Twitter lists
Trend windows Repeated signals across multiple communities in the last 7-30 days
Reviews / evaluations G2, Capterra, Chrome Web Store, App Store, Product Hunt comments, blog/video reviews
AI product categories Product Hunt, launch pages, pricing pages, docs, user communities, app stores, review sites, comparison pages
AI prosumer behavior creator/founder/researcher/student/indie-developer communities, app stores, extension stores, YouTube demos, Reddit/HN discussions, visible workflows

Default discovery should not begin with standing topic keywords or complaint mining. It should first generate thesis seeds and product/OSS bet sketches, then use sources to support, challenge, kill, or sharpen those bets. Source coverage should match the target bucket, but the default world stays AI-focused rather than drifting into unfamiliar vertical industries. Final ideas should be AI-core or AI-native workflow by default. Non-AI ideas belong in backlog unless the user explicitly asks to widen scope. Trend radar sources such as AI news sites, newsletters, and curated X/Twitter lists are useful for noticing new vocabulary, launch clusters, platform shifts, and timing. They are query generators, not proof: radar-triggered candidates still need confirmation from bucket-native sources such as official docs, pricing/changelog pages, GitHub, HN/Reddit, Product Hunt, app or extension reviews, package/download evidence, or direct competitor pages before final selection. GitHub Actions, CI gates, PR comments, templates, hooks, checklists, and thin wrappers can be integration surfaces, but not the final idea body.

Report Format

The default report includes:

  • Today's selected directions, without ordering the selected ideas against one another, grouped by ai_oss, ai_product, and ai_prosumer.
  • Discovery context and thesis pool.
  • Evidence notes that explain what each source changed in the judgment.
  • History relation and novelty handling: new, update_existing, duplicate_of, revives, merged_from, splits_from, adjacent_to.
  • Final product/OSS ideas written as short product memos anchored on product shape, not story scenes and not a field checklist.
  • An independent reader review that checks whether each selected idea can be explained as a product/repo object with a target user, inputs, outputs, core objects, first-version boundary, and product/OSS body.
  • Rejected or paused candidates.
  • Source appendix.

Quick Start

Install the skills into an agent-readable skills directory and initialize the local evidence store.

For Codex:

git clone git@github.com:z2z23n0/idea-miner.git
cd idea-miner
node scripts/install-local.mjs

For another agent runtime:

node scripts/install-local.mjs \
  --skills-dir=/path/to/skills \
  --data-dir=/path/to/idea-miner-data

Preview actions without changing files:

node scripts/install-local.mjs --dry-run

Overwrite existing local skill copies:

node scripts/install-local.mjs --force

Symlink instead of copying, useful while editing the repo:

node scripts/install-local.mjs --link --force

Scheduled Runs

Use prompts/codex-automation-default.md as a ready-made scheduled-run prompt for Codex, or adapt the same instructions for another agent runtime.

The schedule belongs to the host environment. Keep the prompt focused on the run objective, source preferences, exclusions, and output expectations.

In Codex, configure recurring full discovery runs as cron automations against the workspace, not as heartbeats attached to a long-lived thread. A heartbeat should only be a thin reminder or controller; it should not carry the complete daily discovery context.

Optional customization can be appended from:

prompts/customization-block.md

Customization examples:

focus thesis: agent-readable software, AI coding aftershocks, AI workflow products
exclude: unfamiliar vertical SaaS, crypto, generic SEO
final buckets: up to 3 ai_oss / up to 3 ai_product / up to 3 ai_prosumer
preferred forms: complete AI product / high-star GitHub OSS / AI workflow app / MCP server / Skill / SDK
success signals: AI-core product / AI-native workflow / GitHub stars / real installs / paid SaaS / repeat usage
not final ideas: GitHub Action-only / CI gate / PR comment / thin wrapper

Helper Scripts

scripts/install-local.mjs

Installs both skills into a target skills directory and initializes local runtime data.

node scripts/install-local.mjs --dry-run
node scripts/install-local.mjs --force
node scripts/install-local.mjs --link --force
node scripts/install-local.mjs --skills-dir=/path/to/skills --data-dir=/path/to/data

skills/idea-discovery-workflow/scripts/idea-scout-kit.mjs

Generates a thesis-first scouting plan, thesis seeds, product/OSS bet sketch template, AI relevance and promotion gates, evidence sweep template, history-relation table, and Red Team questions. With explicit topics it treats them as thesis constraints and adds topic-guided evidence queries. It creates a structured plan; it does not browse the web.

node skills/idea-discovery-workflow/scripts/idea-scout-kit.mjs
node skills/idea-discovery-workflow/scripts/idea-scout-kit.mjs "AI coding agents" "MCP"

skills/idea-discovery-workflow/scripts/init-store.mjs

Creates the local JSONL evidence store.

node skills/idea-discovery-workflow/scripts/init-store.mjs

skills/idea-discovery-workflow/scripts/check-run-artifacts.mjs

Checks a completed run for reader clarity and artifact completeness: report sections, per-idea dossiers, product shape, independent reader review, candidate ledger when underfilled, AI relevance, promotion gates, source notes, source-backed claims, competitor reasoning, and first-version boundaries.

node skills/idea-discovery-workflow/scripts/check-run-artifacts.mjs ~/.idea-miner/runs/<run_id>

skills/idea-discovery-workflow/scripts/idea-handoff.mjs

Resolves a stored idea by name or alias and copies its handoff-ready dossier to a temporary handoff file. With --session-prompt, it also writes a prompt that can be passed to a fresh Codex session. It does not browse the web or create sessions by itself; if the receiving session is later asked for a current refresh, it should use Grok search MCP first and fall back to Codex search tools when needed.

node skills/idea-discovery-workflow/scripts/idea-handoff.mjs "Tool-Call Compatibility"
node skills/idea-discovery-workflow/scripts/idea-handoff.mjs --session-prompt --idea "Tool-Call Compatibility"
node skills/idea-discovery-workflow/scripts/idea-handoff.mjs --session-prompt --idea "Idea A" --idea "Idea B"

Runtime Data and Privacy

Runtime data lives outside this repository. Set IDEA_MINER_HOME to choose a store location. The scripts also honor the legacy CODEX_IDEA_DISCOVERY_HOME variable for existing installs. Helper scripts prefer an explicit root, then reuse an existing readable store under ~/.idea-miner or ~/.codex/data/idea-discovery before creating a new empty store. If no existing store is found, the default store is:

~/.idea-miner/

The store is graph-shaped but starts as JSONL:

signals.jsonl
ideas.jsonl
claims.jsonl
competitors.jsonl
decisions.jsonl
edges.jsonl
handoff-events.jsonl
runs/<run_id>/
  run-manifest.json
  report.md
  reader-review.md
  candidate-ledger.jsonl
  source-notes.jsonl
  signal-portfolio.jsonl
  ideas/<idea_id>.json
  ideas/<idea_id>.md
  handoff-index.md

The top-level JSONL files are indexes. The detailed context for each final or resumable paused idea belongs in runs/<run_id>/ideas/<idea_id>.md, with source links, source-to-claim mapping, competitor reasoning, Red Team records, CEO decisions, core thesis, AI relevance, promotion-gate result, demo moment, repo/star assets, and first-version boundaries.

handoff-events.jsonl records delivery events such as "idea X was handed off to Codex thread Y", so later follow-up questions do not have to depend on chat history.

Keep runtime data, automation configs, API keys, edit tokens, private source lists, private idea notes, and private contact targets out of the repository.

Repository Layout

prompts/
  codex-automation-default.md
  customization-block.md
scripts/
  install-local.mjs
skills/
  ai-founder-playbook/
  idea-discovery-workflow/

Notes

This repo stores reusable skill instructions, workflow references, and helper scripts. Private automation configuration, historical idea runs, edit tokens, API keys, and personal signal/backlog data belong in the local runtime store.

About

Put spare agent tokens to work finding AI startup and open-source ideas worth building.

Topics

Resources

License

Contributing

Stars

25 stars

Watchers

1 watching

Forks

Packages

 
 
 

Contributors