LOCAL-FIRST PYTHON CONTEXT ENGINE · ZERO CODE UPLOAD BY DEFAULT

Stop re-explaining your codebase to AI.

Codasift watches your Python project locally, extracts routes, classes, and conventions via native AST in under 15ms, and keeps your .cursorrules, Claude XML, Copilot instructions, and Markdown context files automatically up to date.

$pip install codasift
Copy
Native Python 3.9–3.13 AST·0 Bytes Code Uploaded (Local by Default)·Free Core: 1 Local Project
Step 1 of 5: 01 Save. You save a Python file in your workspace. Watchdog coalesces the event locally in 1.0s.
codasift watch . --local-ast
● ON-DEVICE AST WATCHING
Test Scenario:
● Semantic diff detected → 4 AI targets atomically synchronized
auth/session_service.py
Python 3.13
1class SessionService:
2 def __init__(self, cache_ttl: int = 3600):
3 self.default_ttl = cache_ttl
4
5 # @router.post('/api/v1/session') [Protected]
6
def create_session(self, user_id: str) -> Session:
7 token = secrets.token_urlsafe(32)
8 expiry = int(time.time()) + ttl
9 return Session(token, user_id, expiry)
Watching for file save...UTF-8 · Local Workspace
CPYTHON AST: 14.2 ms
Scanning Logic...
.cursorrulesLifetime Pro
- def create_session(user_id) [Protected]
- Coding style: snake_case, strict type hints
○ Stale rules from last weekos.replace (atomic)
Awaiting AST gate / export100% On-Device · 0 Bytes Uploaded (Local by Default)
01 / 05

You save a Python file in your workspace. Watchdog coalesces the event locally in 1.0s.

The Context Problem

Why Hand-Written .cursorrules Go Stale

AI coding assistants are only as good as the context you feed them. When your architecture changes, stale instructions cause phantom methods, wrong route guards, and broken imports.

Manual Context ManagementSTALE CONTEXT

Without an On-Device Context Engine

  • Hand-written .cursorrules rot: Every time you rename a method or add an auth guard, your prompt rules fall behind.
  • Context window exhaustion: Copy-pasting entire files burns LLM tokens and drowns models in irrelevant helper functions.
  • Hallucinated signatures: AI models guess camelCase in snake_case repos or miss required [Protected] route dependencies.
  • Wasted AI API budget: Simple formatting and docstring edits re-trigger token-heavy re-indexing.
Result: High hallucination rateManual re-explaining
codasift watch .ALWAYS IN SYNC

With Local-First AST Synchronization

  • Automatic updates on file save: Watchdog detects changes with 1.0s debouncing; CPython parses AST in < 15ms.
  • 0 Tokens on cosmetic edits: ASTNormalizer strips formatting to update AST in RAM with zero AI API calls.
  • Accurate route & auth extraction: Categorizes @router.post endpoints as Public vs Protected automatically.
  • Atomic 4-file exporter: Safely writes .cursorrules, claude_context.xml, Copilot instructions, and codasift_context.md.
Result: Consistent AI context100% On-Device
CODE INTEGRITY0 Bytes Uploaded

Your Code Never Leaves Your Workstation

Uploading proprietary codebases, database models, and internal routes to third-party indexing servers creates security vulnerabilities. Codasift parses everything locally on your CPU via native Python AST (cloud collaboration is strictly opt-in).

0 Bytes
Code Uploaded (Local by Default)
Python 3.9–3.13
TOKEN EFFICIENCYASTNormalizer Gate

Zero AI Tokens on Formatting & Docstrings

Up to 80% of codebase saves are cosmetic: reformatting, adding docstrings, or tweaking comments. Codasift's dual-gate classifier updates the structural map in RAM and skips the AI model entirely.

0 Tokens
Spent on Cosmetic Saves
Python 3.9–3.13
CROSS-TOOL HARMONYCursor · Claude · Copilot

One Live Architecture for Every AI Tool

You might brainstorm in Claude, edit in Cursor, and autocomplete with Copilot. Instead of maintaining three conflicting snapshots, Codasift updates all 4 context files atomically on file save.

< 15ms
Average Single-File AST Parse
Python 3.9–3.13
Real On-Disk Output

The 4 Real Files Codasift Writes to Your Repo

Codasift does not require proprietary editor extensions. It extracts your architecture via native Python AST and atomically writes the exact context files your AI tools already read.

Cursor IDE:Cursor IDE automatically reads .cursorrules in your repository root on every prompt—zero manual copy-pasting required.
Lifetime Pro
.cursorrulesSynthesized from local AST · Fallback secrets redacted
# .cursorrules - Auto-Generated by Codasift (on-device AST)
# Read automatically by Cursor IDE on every prompt

## How to Run & Test
- Run tests: pytest tests/ -v
- Start API: uvicorn main:app --reload --port 8000

## Tech Stack & Conventions
- Python 3.13, FastAPI, Pydantic v2, SQLAlchemy 2.0
- Coding Style: snake_case for functions/vars, PascalCase for classes
- Quotes: double quotes ("...") | Type annotations: required on all signatures

## API Endpoints & Access Control
- POST /api/v1/sessions [Protected] -> SessionService.create_session(user_id: str, ttl: int = 3600)
- POST /api/v1/checkout [Protected] -> initiate_checkout(session: Session, items: list[Item])
- GET /health [Public] -> health_check()

## Recent Semantic Changes
- auth/session.py: Added configurable ttl parameter (default 3600s) to create_session.
1.0s
Debounced Merge Latency
Collapses multi-save loops into a single debounced window.
Watcher Loop · 10 Saves in 400ms
100%
Local Offline Privacy
Zero CLI telemetry & zero code upload by default. Your repository stays 100% on your workstation unless opted into cloud sync.
Air-Gapped · 0 Network Egress
4
Live Context Exporters
Writes .cursorrules, claude_context.xml, Copilot instructions, and codasift_context.md.
Claude · Cursor · Copilot · MD
< 15ms
Native AST Parse Speed
< 15ms per module; ~79ms across 15,000 lines (CPython 3.13 baseline per Terms §07.E).
CPython 3.13 · 15,000 LOC Baseline

* Empirical benchmarks measured in standardized CPython 3.13 test suites across Python codebases up to 15,000 lines (see Terms of Service §01.E & §07.E). Actual execution speed is hardware-dependent. All benchmarks execute 100% locally on-device with zero telemetry.

Loading Feature Architecture...
Loading Licensing Matrix...
Cursor · Claude · Copilot · Markdown● ALL EXPORTERS LIVE

Every. Single. Prompt.

Keep Cursor, Claude, Copilot, and custom agents synchronized with your live Python codebase on save. 100% on-device by default with zero code upload, and instant.

$pip install codasift
Copy
Runs on-device·Zero code upload by default·Free for 1 project