Skip to content

sboghossian/forkcast

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

forkcast

A Claude Code skill that gives your todo list a world model.

forkcast demo

Watch the 45-second demo — LeCun's critique → Forkcast's answer.

Yann LeCun is right: LLMs predict tokens, not consequences. So agentic AI built on naive next-token planning is, as he calls it, "a recipe for disaster."

He's right for the physical world. For software project planning the world IS code, commits, configs, conversations — and the LLM's pretraining already encodes the transition function for that domain.

What's missing is the scaffolding: explicit lookahead, branch enumeration, scored outcomes, grounding citations, confidence cascades, and a human-editable artifact.

Forkcast adds that scaffolding to Claude Code.

What it does

You point Claude at a goal. It:

  1. Identifies every meaningful decision point
  2. Forks each one into N candidate branches (default 3)
  3. Simulates each branch forward up to 10 steps
  4. Scores each branch against your weighted objectives
  5. Stops extending branches when cumulative confidence drops below 0.3 (so it doesn't pretend to know what it doesn't)
  6. Spawns an adversarial critic at depth 3 (via /codex challenge) that tries to break each branch's predictions
  7. Emits tasks/forkcast.md — a human-editable markdown decision tree with an embedded mermaid diagram

You read the tree, check boxes to lock branches, edit scores to override the model's ranking, add > Constraint: ... lines that get respected on the next run, and /forkcast --linearize when you're ready to ship.

See examples/forkcast.example.md for the canonical output.

Install

git clone https://github.com/sboghossian/forkcast ~/.claude/skills/forkcast

That's it. Claude Code picks it up automatically. Trigger with:

  • /forkcast (explicit)
  • "fork this plan", "10 steps ahead", "what if we...", "decision tree for..."

How it differs from existing skills

Tool What it does What forkcast adds
/autoplan, /yalla Linear pipelines Branching with simulated lookahead per branch
/goap-plan A* over a fixed skill library Open-ended over project state
/planning-with-files Tracks one plan over time Compares N candidate plans, ranks them
/plan-eng-review Critiques an existing plan Generates and ranks plans before one exists
Manus, Devin Internal scratch The decision tree IS the deliverable

How it answers LeCun

LeCun's critique, restated: LLM agents pretend to have a world model they don't have. They commit to multi-step plans without simulating consequences, scoring outcomes, or surfacing confidence.

Forkcast does not give LLMs a world model. It does the next best thing: makes the absence legible.

  • Every step cites a project artifact it's grounded in (file, commit, memory, prior decision). Ungrounded steps are tagged and capped at 0.5 confidence.
  • Cumulative confidence is the product of step confidences along a path. When it drops below 0.3, the branch terminates with [speculative] instead of pretending.
  • An adversarial critic looks at every chosen branch and tries to break it; flags appear inline.
  • Self-consistency at every fork: each branch is rolled out three times; divergence penalizes the score.

A [speculative] ⚠️ branch is doing exactly what LeCun says LLMs do badly — and the user can see it doing it, and decide.

Full design notes in docs/HALLUCINATION_MITIGATION.md.

Prior art (forkcast borrows liberally)

What forkcast deliberately doesn't do: GOAP / HTN / PDDL (require formal predicates), MCTS (statistical rollouts), JEPA / Ha-Schmidhuber visual world models (unnecessary for text-native task spaces).

Repository

forkcast/
├── SKILL.md                       # the brain — Claude reads this
├── README.md                      # this file
├── examples/
│   └── forkcast.example.md        # canonical output format
├── docs/
│   └── HALLUCINATION_MITIGATION.md
└── scripts/
    └── mermaid.ts                 # regenerate the diagram from edited tree

License

MIT.

Built by

Stephane Boghossian — building HAQQ Legal AI. Forkcast came out of needing a planner I could trust enough to point at client-matter decisions.

About

A Claude Code skill that gives your todo list a world model. Forks every decision, simulates 10 steps ahead, scores branches, emits a human-editable decision tree. The constructive answer to LeCun's world-model critique.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors