Introducing The Sweep: OX’s New Live Security Research Series
Register Now
Breaking: The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Read the Report
Are you exposed? Connect your apps in minutes.
Scan your apps free

keeploop

Latest version: v0.3.4

Overview

Last scanned
27 Nov 2026
Published
27 Nov 2026
PyPI package Publisher: johnha912
1 Stars
0 Forks
6 Versions
606 Downloads
Python Repo language

Scan summary

keeploop was last scanned on 27 Nov 2026 at version 0.3.4. Risk score 0 of 100. High-severity rules fired.

  • Releases: 6 versions; the latest was published on 27 Nov 2026.
  • Findings: 1 rule fired in version 0.3.4 (1 high). The score describes this version only.
  • Downloads: 606 downloads.

Versions

6 versions published
Versions and the rules that fired in each
VersionPublishedStatus
0.3.4 LATEST 27 Nov 2026 1 rule fired
0.3.3 13 Nov 2026 No rules fired
0.3.2 11 Nov 2026 No rules fired
0.3.1 10 Nov 2026 Not shown
0.3.0 10 Nov 2026 Not shown

Rules fired in 0.3.4: 1

Findings

1 High

Findings for v0.3.4. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.

Several suspicious behaviors form a known attack pattern

Several behaviors that are each common on their own, such as reading registry credentials, contacting a variable host or running shell commands, appear together in this package in a combination associated with attacks. The finding message lists the behaviors that were combined.

HIGH
Checking access…

🔒 Create a free account to see all 1 finding with descriptions and instance counts

The score describes 0.3.4; other versions have their own rules, not their own score.

README

The publisher’s own README, as collected from the registry.

keeploop comes in two versions. Which one fits depends on what you can do in the current conversation:

  • A coding agent that can run git and python on the user's own files (terminal or IDE): the full keeploop, described in AGENTS.md. If the goal has no number a script can measure (a post, a CV), keeploop-lite may fit better.
  • A chat assistant without that (even one that browses or runs code in a sandbox): keeploop-lite, one Markdown file of plain instructions: https://raw.githubusercontent.com/johnha912/keeploop/main/lite/KEEPLOOP-LITE.md (Vietnamese: KEEPLOOP-LITE.vi.md, Spanish: KEEPLOOP-LITE.es.md, Brazilian Portuguese: KEEPLOOP-LITE.pt-BR.md, Indonesian: KEEPLOOP-LITE.id.md). It is a skill, not software: there is nothing to install or clone. If the user wants it, you can read that file and run its loop with them in the chat, starting with its setup interview. If you cannot open links, the user can paste the file. With a small context window, or as a search assistant, read lite/KEEPLOOP-LITE-MINI.md instead (the same loop and state block in about 1,600 words). A machine-readable index of these files is llms.txt.

keeploop turns the AI you already use into a small team, with a CEO that works beside you.

  • Easy. Paste one file into a chat app, or one prompt into your coding agent. You talk in plain words; you never learn commands.
  • It asks first, then sizes and staffs the team. The CEO (your AI) asks what "better" means, how to measure it, what score is good enough and what a wrong change would cost you. A draft gets a light loop of a few cycles; work people rely on gets the rigorous one (kl level). Then it names a team for the job: a cheap, fast model proposes, your main model builds, the strongest model checks the real diff in a fresh context. Mistakes become lessons it does not repeat, at every level.
  • Fast. Two commands a cycle in a coding agent (kl next, kl try); one paste each way for a chat AI that cannot see your repo.
  • Saves tokens. With profile: fast the Engineer writes its own card and the ideas you listed need no Analyst call: −33% tokens and −26% time per cycle on our scripted offline mock, with simulated call latency. Tokens there are prompt size (characters / 4); whether a real AI's answers stay as good with the shorter prompts has not been measured.
  • Keeps only real gains. A change is committed only if it beats the best score by more than the evaluation's own measured noise (best + 2σ). Everything else is reset, and the reason is written down (measured).

Works with ChatGPT, Gemini, Claude, Perplexity, Claude Code, Codex, Cursor, Copilot and Gemini CLI. keeploop itself is not an AI: it is a small Python tool that measures and refuses, with no dependencies, no telemetry and no API keys.

Only have a chat app (ChatGPT, Claude, Gemini, no code)? Use keeploop-lite: one file you paste into the chat, the same keep-or-discard loop for a post, a CV or a plan (Tiếng Việt, Español, Português (Brasil), Bahasa Indonesia, example). It is fast by default: say run 3 cycles to try up to five changes in one reply, and save to get the ledger to keep. Short on space (a free plan, Perplexity)? Use KEEPLOOP-LITE-MINI.md. Save either file once as standing instructions (a ChatGPT Project or custom GPT, a Gemini Gem, a Perplexity Space, a Claude Project) instead of pasting it into every chat. Your AI can run code? Use the full version below.

Quick start

(a) Hand it to your AI. If it can run commands, paste this and fill in the last line:

Clone https://github.com/johnha912/keeploop next to my project (not inside it),
run `python prepare.py` in the clone, then read its AGENTS.md and act as the CEO
it describes. What I want better: <for example "make my test suite faster">

You never type kl and there are no flags to learn. The first time, your AI asks in plain words what "better" means and how to measure it, then proposes an evaluate.py (a small script that prints that number) for you to approve before anything changes. In Claude Code, /keeploop 3 inside the clone runs three cycles.

To improve everyday work (a post, a CV, a plan), use keeploop-lite: no clone, no commands.

To improve a code project from a chat app, paste the whole of BOOTSTRAP.md into a new chat instead. One round trip per cycle: python kl.py handoff prints one packet for the chat (the goal, the scores, the files), the AI replies with a card and the changed files, and python kl.py apply reply.md checks, evaluates and keeps or discards it.

  1. Clone this repo into its own folder, outside the user's project, and run python prepare.py there. Run every command from the clone's root.
  2. Read AGENTS.md. It is the complete procedure: roles, the exact python kl.py commands, and the hard rules.
  3. If evaluate.py is still the demo, do not start the loop. Ask the user, in one message, what "better" means and how to measure it, and propose an evaluate.py (it gets the workspace path and prints one number, higher is better).
  4. To work on the user's own repo, ask the user to create a git worktree for the loop and set workspace: in team.yaml to it; the steps are in docs/GUIDE.md. You may draft team.yaml, program.md and evaluate.py for the user, but only the user edits them.
  5. Never commit by hand: only python kl.py keep commits. For any progress claim, paste python kl.py report verbatim.
  6. The fast path, two commands a cycle: python kl.py next (one brief), write the card and make the change, then python kl.py try card.md (gates, evaluation, keep or discard; it says when an Auditor verdict is needed).

(b) Try it offline. Needs Python 3.10+ and git; no AI, no API key, a few seconds.

git clone https://github.com/johnha912/keeploop.git && cd keeploop
python prepare.py
python run.py --mock --iterations 5
cycle 3: discard  metric=0.942  best=0.992000  tokens=2820
cycle 4: crash  metric=None  best=0.992000  tokens=3510  lesson=L-001
run complete: 3 keeps, 1 discards, 1 crashes, 1 lessons, 17259 tokens. Best metric: 1.000000

The mock is a scripted stand-in for a real AI. It shows how the loop works, not how good a real model is. Every keep is a real commit: git -C .keeploop/workspace log --oneline.

(c) Install it as a command. kl without a clone, from PyPI:

pipx install keeploop      # or: pip install keeploop (in a venv of its own)
mkdir my-loop && cd my-loop
kl init                    # copies AGENTS.md, program.md, team.yaml, packs/, .claude/ here
kl begin                   # the demo baseline

kl init puts the files you edit in your own folder and never overwrites one. Then open the folder in your AI as in (a), and follow AGENTS.md to point it at your repo. kl run is the headless mode. Keep the clone if you want to read or change keeploop itself.

One command from your own repo instead, with an evaluate.py written for you:

cd my-repo
kl quickstart tests        # or: command | prompt | buildtime (writes ../my-repo-keeploop)
cd ../my-repo-keeploop
kl doctor                  # runs evaluate.py 5 times: how noisy is it, what gain can it see?
kl begin

Started in a chat with keeploop-lite? kl import-lite ledger.md continues the session in the CLI. Its best version becomes the workspace, and its scorecard becomes an evaluate.py.

(d) Share a run. kl report --html run.html turns the ledger into one page, with no model call. The page has a summary line and a chart: kept changes filled, discarded hollow, the running best and its noise band. Example: the proof run's chart.

Examples

Example Field What happened Link
Proof run Noisy eval, naive vs keeploop Same 20 proposals, 25 seeds: 2.76 vs 0.44 kept changes with no true gain; the price is 2.64 vs 1.28 true gains discarded Read
Offline demo Toy config 3 keeps, 1 discard, 1 crash that became lesson L-001; no AI Transcript
Marketing research Consumer insight report 1 real cycle: 0.970000 to 1.000000, audit APPROVED, kept Read
Prompt optimization AI/LLM prompt 8 headless cycles, 2 kept, 6 discarded (a 0.915 refused on re-run). Dev 0.873333 to 0.900000; holdout 0.835 to 0.855 Read

Set up any example as a sandbox with kl init --example <name> <new short folder> (installed kl) or python tools/make_sandbox.py examples/<name> <new short folder> (clone) (details).

Why trust the keeps

keeploop is the first installable tool found in our scan of autoresearch-style loops (November 2026) that turns evaluation noise into a commit law: a change is kept only if it beats the best score by more than the evaluation's own measured noise (best + 2σ), with the falsification rule fixed in advance and a fresh-context Auditor reading the real diff. Evaluation noise is not our discovery; research has discussed it before. What is new is a tool that turns it into the rule that decides every commit.

What that buys, measured. We ran a naive keep-if-better loop and keeploop on the same 20 proposals and the same noisy evaluation, a random 1,000 of 10,000 dev cases per call. A 5,000-case holdout scored the result, and the loop never saw it. Each was run on 25 seeds fixed before the run (docs/proof/PROOF.md, python tools/proof_run.py):

mean over 25 seeds naive keeploop
changes kept with no true gain 2.76 0.44
how far the loop's own score overstated the holdout +0.017 +0.005
changes discarded despite a true gain 1.28 2.64
holdout gain, median / mean +0.130 / +0.129 +0.135 / +0.107

The price is real. keeploop throws away some true gains that land inside the noise. On 9 of the 25 seeds its holdout ended lower than the naive loop's, including seed 1, the run fixed before the sweep as the headline. kl doctor measures your evaluation's noise before you start, and tells you when to reduce it.

Why keeploop

An agent saying "done" is not a measurement.

The usual way With keeploop
The model that wrote the change also says it is fine A fresh session or a different vendor audits the real diff; the maker never checks its own work
"Looks good to me" Only kl keep commits. It re-runs the evaluation itself, and the number must beat the best by more than the evaluation's own noise, or the change is reset
A fluent answer passes for a correct one Every change starts as a written hypothesis card with a measurable rule that would reject it, fixed before the evaluation runs
An agent quietly edits the tests or leaks a key Code gates, not prompts, stop it: protected paths, a secret scan, banned slop patterns, diff size and a content-hash fence
A great score that does not generalize An optional holdout score the agents never see, with a warning when its gain lags the main score

Also in the guide: lessons so a mistake is not repeated, a trend scout, and one AGENTS.md that Codex, Cursor, Copilot and others read.

How it works

Built on Andrej Karpathy's autoresearch idea: a fixed metric, a keep-or-discard rule, and git as the memory of what worked.

flowchart LR
    A[Analyst<br/>writes one card] --> E[Engineer<br/>makes the change]
    E --> G{Code gates<br/>fence · protected<br/>secrets · size}
    G -- pass --> V[evaluate.py<br/>one number]
    V --> U[Auditor<br/>fresh eyes,<br/>real diff]
    U --> C{beats best<br/>+ noise?}
    C -- yes --> K[git commit]
    C -- no --> D[git reset]
    G -- fail --> L[(lesson)]
    D -. why .-> L
    L -. read next time .-> A

An Analyst writes one card, an Engineer makes exactly that change, code gates and evaluate.py check it, and a fresh Auditor reads the diff. Only kl keep commits. The full cycle, the critic round, lessons, the trend scout and speed tuning are in the guide.

Your own work: packs

A pack gives the team the craft rules and review checklist for one field.

Pack For Status
software code Ready
ui-design UI/UX Experimental
marketing-content marketing copy Experimental
marketing-research consumer insight reports Experimental
prompt-engineering LLM system prompts Experimental

OX Radar and Response Center

Find threats in your stack.

OX Radar can check high-priority threats, like critical package CVEs, against your context.

Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.

Where it’s listed

The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).

  • pypi-releases keeploop

References

The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.

Powered by Read the latest findings

Scan your whole stack

Group 1261154050 1
Group 1261154050
 

From OX Research Newsroom

Vulnerability Insights

OpenSSH Password Authentication Bypass on Alpine Linux (*sshole) – CVE-2026-123158

Cry2Wolf: How to Tell a Real Bug from a Nothingburger
AI & VibeSec

Cry2Wolf: Not Every Branded Bug Deserves a Fire Drill

Copy of Template Design OX Blog (2)
Research

NGINX2Root: Five Critical NGINX Flaws Expose Web Servers to Remote Code Execution

Frame 2085668439 (1)
Group 1261154229