Daniel Duan's Avatar

Daniel Duan

@duan.ca

SwiftUI @ Apple

265
Followers
59
Following
284
Posts
08.09.2023
Joined
Posts Following

Latest posts by Daniel Duan @duan.ca

I have an idea for agents (can be different models/wrappers) in interactive sessions (where they wait for user updates) to have a meeting. It's ridiculously simple but could be really effective. Have to prototype this tomorrow.

01.03.2026 09:31 πŸ‘ 0 πŸ” 0 πŸ’¬ 0 πŸ“Œ 0

TIL not to touch a lazy var from a bunch of detached tasks the hard way.

28.02.2026 06:20 πŸ‘ 1 πŸ” 0 πŸ’¬ 0 πŸ“Œ 0

Sometimes one sets out to invent, and ended up discovering.

24.02.2026 05:53 πŸ‘ 0 πŸ” 0 πŸ’¬ 0 πŸ“Œ 0

TIL about β€œPrompt framework”. It sounds extremely similar to Design Patterns.

When the tool is insufficient, the pattern (framework) makes up for it.

22.02.2026 03:29 πŸ‘ 0 πŸ” 0 πŸ’¬ 0 πŸ“Œ 0

Trying to reflect on why I was hugely impressed by Claude Codementia early on: it’s my bias towards TUI and its impressive ability to use CLI tools. The good impression faded quickly when I needed to solve real problems.

22.02.2026 03:17 πŸ‘ 0 πŸ” 0 πŸ’¬ 0 πŸ“Œ 0

Are there any solutions for coding agents to chat with each other locally? Maybe through a CLI interface?

21.02.2026 22:42 πŸ‘ 0 πŸ” 0 πŸ’¬ 2 πŸ“Œ 0

asking agents to read code for information feels like map reduce in my brain. I need to come up with questions as quickly as I can, and consolidate the small research reports later.

19.02.2026 07:02 πŸ‘ 0 πŸ” 0 πŸ’¬ 0 πŸ“Œ 0

Stuck using MCPs is a special kind of hell.

18.02.2026 23:16 πŸ‘ 0 πŸ” 0 πŸ’¬ 0 πŸ“Œ 0

I’m experiencing software slop and I’m not happy about it.

18.02.2026 23:12 πŸ‘ 0 πŸ” 0 πŸ’¬ 0 πŸ“Œ 0

1M context window is just another way of saying expensive af.

18.02.2026 05:45 πŸ‘ 0 πŸ” 0 πŸ’¬ 0 πŸ“Œ 0

There isn’t enough hours in a day.

13.02.2026 09:26 πŸ‘ 0 πŸ” 0 πŸ’¬ 0 πŸ“Œ 0

Now instead of sending screenshots I just describe the visual tweak I want and Codex can go launch the app, navigate to where I mentioned, and look at it all by itself.

13.02.2026 09:25 πŸ‘ 0 πŸ” 0 πŸ’¬ 0 πŸ“Œ 0

Asked Codex to learn to do end-to-end macOS app development using screenshots, OSScripts, pynput, etc. After it successfully played with some apps, I now asked it summarize everything it learned along the way to a skill for later use :)

13.02.2026 09:20 πŸ‘ 1 πŸ” 0 πŸ’¬ 0 πŸ“Œ 0

Imagine how good will smith eating spaghetti will be in 100 years.

12.02.2026 03:24 πŸ‘ 0 πŸ” 0 πŸ’¬ 0 πŸ“Œ 0

When people say programming is dead, what they mean is the economic value of rote pattern recognition + repetition is dead.

You can do it for fun and not profit.
You can profit without doing it.
Being good at it still profits you.

Mark my words.

09.02.2026 22:21 πŸ‘ 0 πŸ” 0 πŸ’¬ 0 πŸ“Œ 0

I'm loving this workflow! I have a script that polls changes via the CLI, once it finds a todo item, it feeds its ID along side with a prompt to `codex exec`. The result is I can put todos in the queue and agents come and grab it. They mark the todo as finished as they do.

09.02.2026 05:55 πŸ‘ 0 πŸ” 0 πŸ’¬ 0 πŸ“Œ 0

built a tool to help me work with multiple agents in parallel. I sit in the center coming up with ideas using a GUI and they poll for TODOs and claims them using a CLI. Tool's build and tested. Let's see how this goes!

09.02.2026 04:17 πŸ‘ 0 πŸ” 0 πŸ’¬ 0 πŸ“Œ 1

looked into beads. TBH it seems like an overreaction to Claude Codementia.

09.02.2026 01:46 πŸ‘ 1 πŸ” 0 πŸ’¬ 0 πŸ“Œ 0

I may genuinely need to make a TODO app for local coding agents. It'l have a CLI for agents and a GUI for me πŸ€”

09.02.2026 01:30 πŸ‘ 0 πŸ” 0 πŸ’¬ 0 πŸ“Œ 0

I haven’t heard of those πŸ˜…

09.02.2026 01:19 πŸ‘ 0 πŸ” 0 πŸ’¬ 0 πŸ“Œ 0

I may genuinely need to make a TODO app for local coding agents. It'l have a CLI for agents and a GUI for me πŸ€”

09.02.2026 00:20 πŸ‘ 1 πŸ” 1 πŸ’¬ 1 πŸ“Œ 0

Doing more than 1 tasks at a time with agents still hurts my brain. I'll push through.

08.02.2026 20:09 πŸ‘ 0 πŸ” 0 πŸ’¬ 0 πŸ“Œ 0
Preview
Create 'CodableSupport' trait for embedded by dduan Β· Pull Request #316 Β· dduan/TOMLDecoder Β· GitHub CodableSupport is a trait that's by default enabled. The Codable related APIs are enabled by this trait. When this trait is not enabled, the lower level parsing API remain available, and that p...

Working towards supporting embedded Swift for TOMLDecoder: github.com/dduan/TOMLDe...

07.02.2026 08:42 πŸ‘ 2 πŸ” 0 πŸ’¬ 0 πŸ“Œ 0

An MCP is essentially a spec for a CLI app. Just ask your coding agent to build the CLI app and delete the token burner already :)

04.02.2026 17:04 πŸ‘ 1 πŸ” 0 πŸ’¬ 0 πŸ“Œ 0

Modeling and 3D printing again. This brings me joy.

01.02.2026 07:36 πŸ‘ 0 πŸ” 0 πŸ’¬ 0 πŸ“Œ 0

Update: Swift is now faster in both benchmarks: 23%, 6%

24.01.2026 19:37 πŸ‘ 0 πŸ” 0 πŸ’¬ 0 πŸ“Œ 0

Running codex in a infinite fish shell loop that improves the code repeatedly measured by a benchmark reminds me of my auto character leveling script in World of Warcraft.

Runs 24/7, numbers go up πŸ“ˆ

23.01.2026 06:23 πŸ‘ 0 πŸ” 0 πŸ’¬ 0 πŸ“Œ 0

Code is data. The way we generate data has changed. But LLMs can't generate the data by themselves.

22.01.2026 22:11 πŸ‘ 0 πŸ” 0 πŸ’¬ 0 πŸ“Œ 0

while true; codex exec - < prompt.md; end

22.01.2026 17:45 πŸ‘ 0 πŸ” 0 πŸ’¬ 0 πŸ“Œ 0

Found my old blog on archive.org. I was writing a lot about JavaScripts in 2012. I think I should bring those articles back for fun :)

22.01.2026 07:17 πŸ‘ 0 πŸ” 0 πŸ’¬ 0 πŸ“Œ 0