惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

J
Java Code Geeks
量子位
腾讯CDC
A
About on SuperTechFans
小众软件
小众软件
Microsoft Azure Blog
Microsoft Azure Blog
T
Tailwind CSS Blog
V
V2EX
B
Blog RSS Feed
H
Hackread – Cybersecurity News, Data Breaches, AI and More
GbyAI
GbyAI
Recent Announcements
Recent Announcements
Microsoft Security Blog
Microsoft Security Blog
博客园 - 叶小钗
罗磊的独立博客
宝玉的分享
宝玉的分享
WordPress大学
WordPress大学
大猫的无限游戏
大猫的无限游戏
IT之家
IT之家
V
Visual Studio Blog
D
DataBreaches.Net
博客园 - 三生石上(FineUI控件)
月光博客
月光博客
有赞技术团队
有赞技术团队

DEV Community

Authentication Security Deep Dive: From Brute Force to Salted Hashing (With Java Examples) Why AI Systems Don’t Fail — They Drift Spilling beans for how i learn for exam😁"Reinforcement Learning Cheat Sheet" I Replaced Chrome with Safari for AI Browser Automation. Here's What Broke (and What Finally Worked) How Python Borrows Other People's Work The $40 Architecture: Processing 1 Billion API Requests with 99.99% Uptime Vibe Coding: A Workflow Guide (From Zero to SaaS) Most webhook security guides protect the wrong side. The scary part is delivery. Headless CMS for TanStack Start: Build a Blog with Cosmic EU Age Verification App "Hacked in 2 Minutes" — What Actually Happened Comfy Cloud’s delete function does not actually remove files Running AI Models on GPU Cloud Servers: A Beginner Guide Event-driven media intelligence with AWS Step Functions and Bedrock I scored 500 AI prompts across 8 quality dimensions — here's what broke How to Call Google Gemini API from Next.js (Free Tier, No Backend Needed) The Portal Protocol: Reclaiming Human Connection in the Age of AI How to Fix Your Team's Scattered Knowledge Problem With a Self-Hosted Forum Intro to tc Cloud Functors: A Graph-First Mental Model for the Modern Cloud Designing Multi-Tenant Backends With Both Ownership and Team Access I Built a Neumorphic CSS Library with 77+ Components — Here's What I Learned PostgreSQL Performance Optimization: Why Connection Pooling Is Critical at Scale Cómo construí un SaaS multi-rubro para gestionar expensas en Argentina con FastAPI + Vue 3 🚀 I Built an Ethical Hacking Scanner Tool – Open Source Project I Replaced /usage and /context in Claude Code With a Single Statusline A Pythonic Way to Handle Emails (IMAP/SMTP) with Auto-Discovery and AI-Ready Design I Collected 8.9 Million Polymarket Price Points — Here's What I Found About How Markets Really Move EcoTrack AI — Carbon Footprint Tracker & Dashboard Everyone's Using AI. No One Agrees How. 5 self-hosted ebook managers worth trying in 2026 Building Your First AI Agent with LangChain: From Chatbot to Autonomous Assistant
Stop pasting context every AI session: one command restor...
massiron · 2026-06-13 · via DEV Community

massiron

The problem

Every AI coding session starts the same: paste the README, paste the architecture doc, paste the last error message, re-explain where you left off. If you switch between Claude Code, Cursor, and Gemini in the same project, every tool starts from zero.

nodestone fixes that. It's a project-level memory engine for AI-assisted development, and it's free.


What it does

nodestone tracks four things across sessions:

  • Decisions — why you chose SQLite over Postgres, or that weird middleware pattern
  • Tasks — what's done, what's next, with dependencies and critical path
  • Drift — when you start implementing something different from what you planned
  • Context — a compressed ~500 token pack that any AI can restore in one command

Install

pip install nodestone

That's it. Python 3.10+.


Quick start

1. Initialize in your project

nodestone init

Creates a .nodestone/ directory in your project root.

2. Save your first decision

nodestone decision add "Use SQLite instead of Postgres" --context "Only 3 users, no need for a server" --impact "Simpler deployment, no Docker needed"

3. Add a task

nodestone task add "Add user authentication" --depends "Set up database schema" --effort 4h

4. Snapshot context for the next session

nodestone pack

Prints a ~500 token context block. Copy it, paste it at the start of your next AI session. Done.

5. Restore on the other side

nodestone restore <fingerprint>

The other agent picks up exactly where you left off — decisions, tasks, file state, everything.


Real example: cross-agent handoff

# Session 1 — Claude Code
$ nodestone decision add "Use FastAPI over Flask" --context "Need async support for WebSockets"
$ nodestone task add "Build WebSocket handler" --effort 3h
$ nodestone pack
> Context fingerprint: ns_X7k2m9 (copied to clipboard)

# Session 2 — Cursor (next day)
$ nodestone restore ns_X7k2m9
> Restored: 3 decisions, 4 tasks, 2 file changes

No pastebin, no markdown file, no "as I mentioned yesterday...".


A note on trade-offs

  • Works best with pack + restore flow. Real-time sync across agents is on the roadmap but not here yet.
  • The scheduler (OR-Tools CP-SAT) is powerful but overkill for hobby projects — you can ignore it entirely.
  • It's new. Documentation is good but the community is small. That said, the core loop (decisions + tasks + pack/restore) is solid.

What's next

  • Fingerprint handoff (done): zero-loss context transfer
  • Drift detection (done): alerts when implementation diverges from plan
  • Plugins/triggers (done): webhooks, MCP tools, CLI hooks on state changes
  • Real-time sync (next): multiple agents sharing context live

Links

If you're switching between AI tools on the same project, give it a try. Feedback and PRs welcome.