nk

600 posts

nk banner
nk

nk

@nicongdev

building literally nothing, for now

شامل ہوئے Mart 2023
211 فالونگ68 فالوورز
nk ری ٹویٹ کیا
Shu
Shu@shuding·
In case you didn’t know, React didn’t invent RSC, SSR, or Hydration, conceptually: SSR is Express: app.get('/', (req, res) => { res.render('index', { name: 'John' }) }) RSC is Pug: if name == "Bob" button(class="btn") Hello Bob else button(class="btn") My name is #{name} Hydration is jQuery: $('.btn').click(...) That’s why there’s no window in SSR, and you can’t set onClick in RSC, and you have hydration errors in jQuery too (such as a typo of .btn) but with a less fancy name.
English
42
39
699
66K
nk
nk@nicongdev·
@badlogicgames try ancient chinese, further less tokens
English
0
0
0
197
nk
nk@nicongdev·
@Param_eth you know most anthropic employees are from openai right
English
0
0
0
72
Param
Param@Param_eth·
Andrej Karpathy, former OpenAI founding member, is now building his website with Claude Code.
Param tweet media
English
105
92
5.2K
244.2K
nk
nk@nicongdev·
@shadcn i guess they just dont "agentic engineering" much
English
0
0
0
246
shadcn
shadcn@shadcn·
Whoever is working on ui at codex is doing a great job. Shipping fast but you can tell there's care put into it.
English
78
28
2K
107.6K
nk
nk@nicongdev·
@juristr i can tell from the css this image is so ai adopted
English
0
0
0
17
Juri Strumpflohner
Juri Strumpflohner@juristr·
What's your AI adoption level? (according to Steve Yegge)
Juri Strumpflohner tweet media
English
292
90
981
2.2M
马天翼
马天翼@fkysly·
免费给员工提供 Claude Code(必须是 Opus) 使用的团队或者公司,可以在这条推特的评论区留言一波。 帮助大家识别一下有哪些优秀的公司或者团队,走在员工福利的新前沿。
中文
122
21
253
108.8K
nk
nk@nicongdev·
@ctatedev yeah but you can also use nix on macos
English
0
0
0
98
Chris Tate
Chris Tate@ctatedev·
I want Vercel Sandbox, but for my laptop. Wake up to a clean macOS install. Every app freshly installed and configured. Always on the latest version. No leftovers from random tools I tried once. And if I ever need it, one click to start fresh again. 😌
English
19
2
131
13.3K
nk
nk@nicongdev·
@tsoding do it
English
0
0
0
210
nk ری ٹویٹ کیا
𝘁𝗮𝗿𝗲𝘀𝗸𝘆
吃了一下求职瓜,又是早就拉黑的… 这个人老骗子了啊,手法都是一样的,留有余地制造流量。 能转发的不转发,当自己原创发,但也不说死是自己,被抓了就狡辩。 自己看截图吧。
𝘁𝗮𝗿𝗲𝘀𝗸𝘆 tweet media𝘁𝗮𝗿𝗲𝘀𝗸𝘆 tweet media𝘁𝗮𝗿𝗲𝘀𝗸𝘆 tweet media
中文
65
21
273
79.3K
nk
nk@nicongdev·
@istdrc build a monile app
English
1
0
0
136
stdrc
stdrc@istdrc·
Meeting the first paying user of Slock. Dude literally carries his laptop around with the app open, chatting with his agents on Slock anytime, anywhere.
stdrc tweet media
English
6
2
46
5.6K
nk
nk@nicongdev·
apps should provide electron builds and tauri builds and let the users choose themselves
English
0
0
0
45
nk
nk@nicongdev·
@iamsahaj_xyz you obviously are a dev, why not show ppl the cool things you built with v0
English
0
0
0
7
Sahaj
Sahaj@iamsahaj_xyz·
if you're a dev, and you're building a website, and you're not using v0, why? be brutally honest, I'll reply to every piece of feedback and share it internally as well
English
251
2
206
101.8K
nk ری ٹویٹ کیا
stdrc
stdrc@istdrc·
Have you ever tried slock.ai? It's exactly what you are talking about. The basic ideas of software engineering or any kind of serious productive activity are now agents and topics/channels, instead of sessions, projects and files. With Slock I'm now building Slock itself and other things just by talking in channels with all the long-running agents with persistent memory.
English
1
1
11
1.5K
nk ری ٹویٹ کیا
TigerHix
TigerHix@TigerHixTang·
这种似是而非分析头头是道的文章还有 100 多 bookmark 真是让人哭笑不得,别再拿 Claude 装模作样做分析了,学学基本 LLM 原理和 prompting 吧
AlexZ 🦀@blackanger

学习一下 /btw 的实现机制。 因为 claude code agent 采用的是经典的 ReAct(Reasoning and Acting)单循环。所以我很好奇这个 /btw 是如何在 单 loop 中优雅实现的。 以下内容是通过结合Piebald-AI 逆向工程项目、OutSight AI 的 MITM 代理分析,以及claude code 官方文档整理而来。 --- /btw 在不破坏 claude code 单 Loop 简洁性的前提下,通过"降级调用"(无工具、单次响应)实现轻量级的侧信道交互。 该功能最早在 2025 年 12 月前后出现在二进制中(约 v2.0.73),经过多版本迭代后于 2026 年 3 月正式完善,现已在官方文档中有明确说明。 根据 Claude Code 官方文档(code.claude.com/docs),/btw 被明确定位为 sub-agent 的"逆运算": /btw is the inverse of a subagent: it sees your full conversation but has no tools, while a subagent has full tools but starts with an empty context. 主 Loop 是"有上下文 + 有工具"的完整 Agent;/btw 和 sub-agent 分别是它在两个维度上的降维投影。 三者形成了一个完整的能力矩阵。 我主要是在想,/btw 实现机制是什么样的,才不会破坏 kv 缓存。 Claude Code 使用一套统一的 `` XML 标签机制来动态修改模型行为。这不是 /btw 独有的,而是一个被约 40 个不同功能共用的基础设施(包括 Plan Mode、文件修改通知、Token 用量提醒等)。 根据 OutSight AI 通过 LiteLLM 代理拦截实际 API 调用的分析,system reminder 是作为 user 角色消息中的额外 text content block 注入的,而不是修改 system prompt。 结合官方文档确认"Claude cannot read files, run commands, or search when answering a side question",工具禁用很可能采用了双重保险策略: API 层: 通过设置 tool_choice: "none" 或省略 tools 数组,从 API 层面彻底阻断工具调用 Prompt 层: System reminder 中明确指示"you have NO tools available",从模型行为层面强化约束 正常情况下 Claude Code 提供 18 个内置工具(Bash、Read、Write、Edit、MultiEdit、Glob、Grep、LS、WebFetch、TodoRead、TodoWrite、Task 等),在 btw 调用中全部被禁用。 /btw 不是在主 loop 中"插队",而是发起了一个独立的 API 调用。主任务继续处理,btw 的调用并行执行。这解释了为什么它能在 Claude 还在工作的时候响应 side question。 /btw 的问答以可关闭的 overlay 形式展示,绝不写入主对话的 messages 数组。这意味着主任务恢复时,对话状态和 btw 之前完全一样,没有任何上下文污染。 由于 btw 调用复用了主对话的完整历史作为上下文,而 system prompt 和前面的对话 turn 都不变,只有最后一条 user message 是新的,因此前缀部分自然命中缓存。额外成本仅为 172 tokens 的 system reminder + 用户问题 + 模型响应。 用户按 Space、Enter 或 Escape 关闭 overlay 并返回主提示符。整个交互在终端的叠加层中完成,不影响底层的主对话流。 由于 btw 的问答完全不写入主对话历史,主任务恢复时发送的 messages 数组和 btw 之前完全一致。因此,主对话的 prompt cache 零损耗。这是整个设计中最优雅的部分。

中文
8
2
65
20.4K