Skip to content

Releases: DanRedelien/codebase-optimization-kit

v1.0.2 - prompt generation update

26 May 08:22

Choose a tag to compare

1.0.2 - 2026-05-26

Local prompt generation update.

  • Added agents prompts to generate one canonical copy-paste prompt per planned discovery task under state/agent-prompts/.
  • Keeps generated prompt files in one managed location and removes stale TASK-*.md files before regenerating them.
  • Directs each discovery agent to write findings into its own state/task-findings/TASK-XXX.jsonl file instead of editing state/findings.jsonl directly.
  • Moved prompt rendering into kit_runtime/prompts.py so kit.py stays a CLI wrapper instead of growing another embedded generator.

v1.0.1 - maintenance update

26 May 08:02

Choose a tag to compare

1.0.1 - 2026-05-26

Local maintenance update.

  • Improved zone splitting for deeper src, lib, app, internal, and test trees without turning filenames such as README.md or __init__.py into zones.
  • Increased agent planning scale to 24 slots and capped normal packing at 3 zones per agent slot.
  • Added QA regression coverage for deep zones, file-like path segments, and large-zone-count agent planning.

v1.0.0

26 May 06:51

Choose a tag to compare

1.0.0 - 2026-05-26

Initial open-source release.

codebase-optimization-kit is a disposable, JSON-first runtime for evidence-backed codebase optimization passes. Install .codebase-optimization-kit/ into a target project, run the local CLI, let agents discover findings, then implement only through approved packets with validation and scope enforcement.

Added

  • Added the installed .codebase-optimization-kit/ runtime template with AGENT.md, kit.py, schemas, policies, JSON templates, and minimal seeded state.
  • Added a standard-library CLI for doctor, census, zones suggest, agents plan, findings, packets, validate, report, contracts candidates, locks, and status.
  • Added an optional safe installer in scripts/init.py that preserves existing kit state, avoids root AGENTS.md, refuses symlink/junction installs, and writes ignore protection to .git/info/exclude for git projects.
  • Added scripts/validate.py as a wrapper around installed runtime validation.
  • Added JSON and JSONL schemas for project state, file records, zones, agent tasks, findings, packets, validations, locks, and metrics.
  • Added generated reports for agent plans, ranked findings, implementation backlog, and final summaries.
  • Added contract-candidate discovery for docs, public exports, routes/handlers, configs, package/build files, and CLI entrypoints.
  • Added bounded baseline audit classification after census/zones, with explicit caps and truncation/evidence-gap reporting.
  • Added compact audit lanes through policies/audit-criteria.json: structural-quality, duplicate-logic, dead-code, dynamic-usage, test-reliability, type-contract-safety, security-risk, dependency-risk, and authority-drift.
  • Added generated audit_queue entries to agent tasks while preserving existing role labels for compatibility.
  • Added category-specific finding evidence validation, including unknown-category rejection unless a project declares custom_finding_categories.
  • Added policy-driven risk floors and packet gates for audit lanes.
  • Added audit process metrics such as critical risks found before packets, blocked packets for missing evidence, duplicate findings suppressed, scan truncation, blockers, evidence completeness, and task count.
  • Added kit_runtime/audit.py and kit_runtime/io.py to keep policy heuristics and runtime IO helpers out of the main CLI file.

Changed

  • Treats generated reports as views over JSON/JSONL state, not source of truth.
  • Keeps AGENT.md short and points agents to commands and machine-readable policy.
  • Uses audit lanes as compact criteria instead of shipping standalone skill markdown files.
  • Maps severity into existing risk_score, finding status, and packet rules instead of adding a separate pass/warn/fail system.
  • Queues security-risk only for security-sensitive path signals such as auth, session, secret, token, credential, permission, crypto, payment, env, and webhook paths.
  • Preserves existing metrics: passing_tests, behavioral_parity, dependency_reduction, duplicate_logic_reduction, dead_code_confidence, complexity_reduction, risk_score, and reversibility.
  • Requires risk 4 packets to carry human approval and blocks risk 5 direct implementation from the kit.
  • Keeps dead-code deletion guarded by structured evidence checks across references, entrypoints, configs, tests/runtime, public contracts, generated/vendor status, and counterevidence.
  • Deduplicates findings by normalized affected files, normalized root cause, and primary lane, with overlapping concerns recorded in related_lanes.
  • Validates audit_queue lanes and finding categories as hard errors instead of silently falling back to broad categories.
  • Keeps baseline scans bounded and incomplete-by-design when caps are hit, recording truncated and evidence gaps.
  • Strengthened QA coverage for runtime contents, bounded task generation, audit queues, missing category evidence, security risk blocking, risk 4 approvals, and packet scope enforcement.

Removed

  • Removed the installed markdown-heavy workflow, scoring, role, and language-adapter documents from the default runtime.
  • Removed standalone skill/prose criteria from the shipped runtime in favor of enforced JSON policy.
  • Removed START_HERE.md, runtime README.md, generated report placeholders, adapter folders, and manual status source files from the installed template.
  • Removed empty generated state files from the shipped template except state/project.json; doctor creates runtime state on first run.
  • Removed temporary deep-research cache material from the release surface.

Notes

  • The runtime does not install or require external scanners.
  • Project docs, tests, schemas, and contracts remain authoritative inputs, but contradictions should be recorded as authority-drift findings.
  • Security findings are discovery/blocker signals for escalation; the kit is not a security remediation framework.

v0.2.0

24 May 03:57

Choose a tag to compare

0.2.0 - 2026-05-24

Changed

  • Rebuilt the installed workspace as .codebase-optimization-kit/, a self-contained JSON-first runtime.
  • Replaced the old markdown workflow entrypoint with AGENT.md.
  • Added kit.py, a standard-library CLI for doctor, census, zone suggestion, agent planning, findings, packets, validation, locks, tool detection, contract scanning, test detection, status, and report generation.
  • Added schemas, JSON state files, JSON templates, language adapter JSON, lifecycle/risk/evidence/metrics policies, and editable dead-code and behavioral-parity policy templates.
  • Made generated reports views over JSON state under reports/.
  • Rewrote scripts/init.py as an optional safe copier that preserves state and never touches root AGENTS.md.
  • Rewrote scripts/validate.py to delegate validation to the installed runtime.

Removed

  • Removed the installed markdown-heavy workflow, scoring, role, and language-adapter documents from the default runtime.
  • Removed START_HERE.md and the manual status.md source file from the installed template.

v0.1.0 - Unreleased

24 May 02:51

Choose a tag to compare

v0.1.0 - Unreleased

Added:

  • Initial v0.1.0 release of the temporary .optimization-kit/ audit/refactor workspace.
  • English-only workspace templates for agent startup, safety boundaries, status tracking, safe deletion, and optional AGENTS.md merge guidance.
  • Grouped workflow guidance for discovery, risk and evidence review, implementation, validation, rollback, archive, QA, and review.
  • Core agent safety rules: discovery writes stay inside .optimization-kit/workspace/, implementation writes stay within approved packet scope, and project docs remain the source of truth.
  • Stable finding IDs and lifecycle statuses, including superseded for replaced findings.
  • Manifest template with schema version, migration policy, kit-owned overwrite allowlist, GitHub template metadata, and protected workspace paths.
  • Artifact templates for findings, context packets, implementation packets, final summaries, rollback plans, durable-knowledge promotion proposals, and decision records.
  • Scoring contracts for impact, confidence, risk, priority, and risk policy.
  • Risk 4 explicit human approval rule and Risk 5 RFC/ADR rule.
  • Language adapters for Python, TypeScript/JavaScript, Rust, Go, Java/JVM, and C/C++.
  • Safe installer at scripts/init.py with dry-run, private workspace, GitHub templates, custom target directory, marker-managed .gitignore, and conservative overwrite behavior.
  • Validator at scripts/validate.py for manifest fields, required files, protected artifacts, migration policy, ignore rules, GitHub templates, English text, internal Markdown links, and optional working-tree packet checks.
  • Adoption, update, open-source, MCP roadmap, and removal/archive docs.
  • Separate QA Agent and Review Agent role guidance with advisory v0.1 lock markers.