-
Notifications
You must be signed in to change notification settings - Fork 1
v0.2.1
Released: 2026-02 Theme: AI memory is not truth. Fetch docs. Match versions. Cache what you fetch.
AI produces confident wrong code on version-specific library syntax because it pattern-matches from training data. v0.2.1 formalizes a trust hierarchy for documentation, requires version detection before coding, and caches fetched snippets under .kasidit/knowledge/<stack>-<version>-<topic>.md for reuse.
Observed pattern: ask AI to use Laravel 5.x feature; AI produces Laravel 10 syntax confidently. Same for Vue 2 vs 3, Django 3.x vs 4.x, React class vs hooks. AI memory is latest-biased and cannot reliably answer "what syntax does version X use?". Fix: stop trusting memory for version-specific code.
Ranked high → low:
- Project source code (local, actual) — truth for this codebase
- Official docs at the exact version used in the project
- Official docs latest
- Framework/library source on GitHub (release tag matching project)
- Release notes / changelogs
- ❌ Stack Overflow, Medium, blogs — only to find keywords to search docs
- ❌ AI memory for version-specific syntax — assume wrong
Every decision about library usage cites its position in this hierarchy.
- New library or framework in the project
- Version number is specific and not latest (Laravel 5.x, Vue 2, PHP 7.4)
- Error message references a function/class not yet verified this session
- User asks about config, options, flags, env variables
- Deprecation suspected
- Pure language syntax (
for,if,map) - Well-known universal APIs (HTTP status codes,
Math.floor) - Already verified in this session
Before writing any code depending on a library version, detect it:
| Stack | Check |
|---|---|
| Composer |
composer.json + composer show <pkg>
|
| npm |
package.json + npm ls <pkg>
|
| Python |
requirements.txt / pyproject.toml + pip show <pkg>
|
| Go | go.mod |
| Cargo |
Cargo.toml + Cargo.lock
|
| Ruby | Gemfile.lock |
Generated code must match the actual version in the project, not latest.
-
In-project source first — grep
vendor/ornode_modules/before web - Official docs site — one query, one fetch, record URL
- GitHub source at project's version tag
- Changelog / releases for "when did X change"
Save fetched snippets to .kasidit/knowledge/<stack>-<version>-<topic>.md:
- URL fetched, date, version
- The specific snippet/behavior confirmed
- Not the whole page — only what was needed
Next session, before fetching again, check this cache first.
- Laravel:
laravel.com/docs/<version> - Vue:
vuejs.org(v3) orv2.vuejs.org - React:
react.devorlegacy.reactjs.org - Django:
docs.djangoproject.com/en/<version> - Node:
nodejs.org/docs/latest-v<major>.x/api/ - PHP:
php.net/manual/<lang>/function.<n>.php - Go:
pkg.go.dev/<module> - Python:
docs.python.org/<version>/library/<module>.html - MDN:
developer.mozilla.org
- Added: trust hierarchy
- Added: version detection step before coding
-
Added:
.kasidit/knowledge/cache convention - Added: fetch-order discipline
None. New rules apply to future missions.
No action. On the next mission touching a versioned library, the agent will detect version, fetch docs, and cache the result under .kasidit/knowledge/.
Repo • Discussions • Issues • Changelog • Security • Contributing • MIT • © Kasidit Wansudon
Kasidit
Core
- Commands
- Kasi-Mode 🔥 v0.10
- Backend-Hooks 🔥 v0.10
- Model Tiers
- Gravity Pattern
- Multi-Agent-Orchestration
- Claude Design Integration
- UI Override Mode
- FAQ
Version History
- Version History — overview
- v0.13.0 — thClaws (Consolidated) 🦞
- v0.12.0 — thClaws Runtime Support 🦞
- v0.11.0 — Backend + Bridge + Runbook 🚀
- v0.10.0 — Mode + Backend Hooks
- v0.9.2 — Gravity
- v0.9.1 — Master Orchestrator
- v0.9.0 — Claude Design
- v0.8.0 — Tier Cascade
- v0.7.4 — SWE-bench
- v0.3.0 — Tier adaptation
- v0.2.1 — Docs protocol
- v0.2.0 — UI Override
- v0.1.0 — Core
Concepts
Commands
- Kasi-Init
- Kasi-Review
- Kasi-Security
- Kasi-Fix
- Kasi-Ui
- Kasi-Cascade
- Kasi-Multi
- Kasi-Scaffold
- Kasi-Docs
- Kasi-Status
- Kasi-Promote
- Kasi-Pull
- Kasi-Sync
- Kasi-Search
- Kasi-Wiki-Sync
Agents
- Agent-Architect-Planner
- Agent-Audit-Specialist 🔥 v0.10
- Agent-Bug-Hunter
- Agent-Deep-Researcher
- Agent-Legacy-Specialist
- Agent-Migration-Specialist
- Agent-Refactor-Surgeon
- Agent-Test-Writer
Deprecated v0.10 (stubs → audit-specialist --focus=..., removed in v0.11)
-
Agent-Code-Reviewer →
--focus=quality -
Agent-Security-Auditor →
--focus=security -
Agent-Perf-Profiler →
--focus=perf