All guides

Cortex Lenses: explore alternatives before you decide

One skill, two modes: install Cortex, learn why lenses run separately and follow an idea through to its first test. Lab results and limits.

· 11 min

Ask an AI agent how to solve a hard problem. The answer sounds reasonable, but leaves something out. Ask for more ideas and you may get variations on the first solution. In a single conversation, each attempt can anchor on what has already been written. Start with “how do we automate these emails?” and even the alternatives may assume automation is the right choice.

Cortex is a skill for exploring different starting points before committing to a solution. A skill is a set of reusable instructions for an agent environment such as Claude Code, Codex or OpenCode. Cortex applies thinking lenses: short procedures that look for a premise to challenge, a step to remove or another way to frame the problem. It uses agents with separate contexts to limit the influence of previous answers.

Cortex comes out of Danilo's research at DL Frontier Lab. This guide follows a problem through to a testable alternative: choose a mode, install the single cortex skill and try the library example below. The Cortex Lenses repository contains the readable, editable instructions.

Quick, full or the direct answer?

Situation Mode Output and effort
You have an answer and want a second look before committing Quick: “use cortex quick” One extra agent call: a fresh agent applies 3 to 5 lenses without seeing the draft. You keep the complete direct answer, followed by up to three useful alternatives.
The decision matters, or a problem has resisted two attempts Full: “run a full cortex” Each of the 24 core lenses, plus relevant additional lenses, runs in its own agent. Decision-changing claims are checked and ideas developed. You receive every proposal on one page. Expect dozens of calls, minutes and many more tokens, the text processed by the model.
The choice is simple and the answer is sufficient Direct answer Proceed without an exploration that could cost more than the decision warrants.

For a first trial, use Quick on a bounded problem. Move to Full when routes far from your initial answer deserve examination. Both modes belong to the same skill: change the request, not the installation. Actual charges depend on your host and model.

Three design choices behind isolated lenses

Asking several personas to debate in one conversation exposes them all to the preceding reasoning. A fresh agent can receive the problem without the favored solution. It may use the same model: independence refers to context, not guaranteed diversity of expertise or ideas. Quick's lenses share one fresh agent; Full gives each lens its own.

First, preserve a reference answer. In Full, a separate agent with no lenses writes the competent, obvious answer: the baseline. It distinguishes an alternative that changes your decision from one that merely sounds cleverer. Quick preserves the existing direct answer and compares it with the new ideas after generation.

Second, look for the assumption shared by previous attempts. The common-barrier lens reads the baseline and verified failed attempts. It asks what they all take for granted, and which representation would make that constraint cease to hold. This is an explicit exception to the neutral brief: in Full, some lenses that transform the solution also receive the baseline, but never other lenses' answers. In Quick, this lens requires an already independently produced baseline; otherwise another lens is chosen to preserve the draft-free second look.

Third, separate generation from judgment. Full develops ideas before ranking or discarding them: how they would work, their dependencies, available means and breaking points. The page preserves originals, variants and conditions even when it groups related proposals. Then you choose. Only selection, or explicit delegation to choose, starts stress testing: examining objections and weaknesses in the selected ideas.

Install one skill

You need a host that can start separate agents, also called subagents. Cortex is MIT-licensed and consists of instructions and Markdown files. Your host makes the model calls, under its own charges and data rules. Saving the final page on your computer does not make the processing local. Use a problem without confidential material for your first trial.

In a terminal at your project directory, download the repository and copy the complete skills/cortex folder into your host's skills directory. This example installs Cortex for the current Claude Code project:

git clone https://github.com/danilolapegna/cortex-lenses
mkdir -p .claude/skills
cp -r cortex-lenses/skills/cortex .claude/skills/
Host Current project All projects
Claude Code .claude/skills/ ~/.claude/skills/
Codex .agents/skills/ ~/.agents/skills/
OpenCode .opencode/skills/ ~/.config/opencode/skills/

For another destination, replace .claude/skills in both mkdir and cp with the table's path. The destination should have a cortex folder containing SKILL.md, quick.md, full.md, lenses/, checks/ and scripts/. Open a fresh session and use the request in the next section. If the skill is not recognized, check this path and reopen the session.

Python 3.10+ is needed only for optional scripts: check.py validates the shape of edited files; page.py renders a full run as an HTML page. Neither script starts agents or calls a model. You can begin without them.

A library, from the first question to a test

This is an illustrative scene, not an observed result. A library run by two volunteers has numbered shelves and no budget. Readers struggle to find books. The direct answer proposes clearer signs and a shelf map. Before preparing them, the group wants to check whether finding their way around is really the problem.

After installation, write:

A volunteer library has numbered shelves, two volunteers and no budget. Readers struggle to find books. We want to help without adding weekly work and while keeping the inventory accurate. Use cortex quick. Preserve the direct answer and look for alternatives. This is an invented scene: do not attribute results to the library.

The agent preserves the direct solution and prepares a neutral brief for the fresh agent: objective, facts, constraints and resources, without the proposal for signs. The lenses might look for a removable step, an assumption to check and a different representation of the search. The useful question becomes: does the reader know which book to find, or only what interests them?

One possible proposal takes this form:

Index by questions rather than shelves · lens: change representation

Before: finding a book requires knowing its location or title. After: start with a reader's question linked to the same shelf ID.

Constraints to preserve: inventory accuracy; no extra weekly work for volunteers.

New operation it enables: finding “something for a ten-year-old who likes comics” without knowing the collection.

Cheapest test: compare time to the right shelf, using ten real questions, with the proposed map and a small question index, both prepared for the trial.

Drop it if: keeping the index current requires weekly work.

The card separates the mechanism from its promise. Linking questions to shelves might help someone who does not know titles; it still needs to demonstrate faster searching without creating upkeep. Relabeling the same map “the reader journey” would enable no new operation.

To investigate this idea, the group would explicitly select it: “Develop the question index and look for ways it could fail.” The review might reveal its weak point: links could become outdated when books move. A testable version would use the shelf IDs already maintained in the inventory, avoiding a second list of locations to update. That alone would not ensure the question links stay accurate: the trial would need to check how they follow inventory updates and how much upkeep they require.

A volunteer would then collect ten questions without personal data, prepare the proposed map and an index limited to the relevant shelves and record times, successful searches and corrections needed with both systems under comparable conditions. A useful improvement without recurring upkeep would justify a larger trial. If the index were slower, inaccurate or needed weekly updates, the group would return to signs. That is where this scene ends: it describes a choice and a test, without inventing an outcome.

If the problem involved several branches or earlier failed attempts, you could ask: “Run a full cortex with the same objective and constraints.” You would receive an independent baseline and the complete set of developed ideas before choosing one to examine. A shortlist of three ideas in chat does not replace the complete page.

What did the Lab measure?

At DL Frontier Lab, twelve new cases were frozen before answers were generated. The comparison used the same model in three conditions: the model alone, generic review with a comparable budget, and Cortex.

On the six hardest, open problems, those Full is designed for, two blind judges preferred Cortex to the model alone 6 times out of 6. Against generic review, Cortex had 4 wins and 2 ties, with no losses. The clearer-decisions experiment presents the method, results and limitations.

The comparison suggests an advantage on those problems under the tested conditions; six cases cannot guarantee the same outcome elsewhere. It does not measure the library index's effect or establish Quick's effectiveness. Full requires more agent work, a cost to weigh against the value of the decision.

Where to stop and what to do next

Isolation limits anchoring within the conversation, but the same model may repeat the same mistakes in separate contexts. An analogy remains a hypothesis: check facts that would change your decision. If evidence is missing, retain the idea as conditional and collect the decisive information before acting.

If your host cannot open separate contexts, Cortex must label its ideas as not independently generated. You can read them, but that run does not demonstrate the method's isolation. If a required lens did not run, Full remains incomplete until it is recovered. The HTML renderer checks the page's structure; it cannot establish that agents worked independently.

You retain the decision and control over authorization: selecting an idea permits no spending, sending or system changes. Start with the library request or a bounded problem of your own. Look for a card that changes the next step and includes a cheap test and a stopping rule. If no alternative improves the choice, keep the direct answer.

FAQ

Is Cortex an AI model?

It is one skill: reusable instructions for Claude Code, Codex and OpenCode. Your host supplies the model and separate agents; the same skill offers Quick and Full modes.

When should I use Quick or Full?

Quick adds one fresh agent with 3–5 lenses to an existing answer. Full uses the 24 core lenses and relevant additional lenses, each in its own agent, for important decisions or resistant problems.

Why isolate the lenses?

A fresh context prevents each attempt from reading and repeating the favored solution. Quick isolates a group of lenses from the draft; Full also separates lenses from one another. The same model can still reproduce the same mistakes.

What results were measured?

On the six hardest, open problems in a DL Frontier Lab experiment, two blind judges preferred Cortex to the model alone 6 times out of 6. Against generic review: 4 wins and 2 ties. The sample is small and does not measure Quick.

What does it cost, and do I need Python?

Model calls and data handling depend on your host. Quick adds one agent call; Full requires dozens. Python 3.10+ is needed only for optional scripts, not the skill instructions.

Is the library a real case? What if separate agents are unavailable?

The library is an illustrative scene with a proposed test and no observed results. If separate agents are unavailable, the skill must label its ideas as not independently generated.