{"slug": "llm-devise-a-plan", "title": "LLM: Devise a plan", "summary": "A developer's blog post suggests that appending 'Devise a plan' to prompts is sufficient for large language models to plan before editing, eliminating the need for dedicated plan modes in tools like OpenCode and Claude Code. The post includes a sample session where the model outlines a step-by-step plan to expand blog post connections to include tag-based links, demonstrating the approach's effectiveness.", "body_md": "♠ There’s no need for\n[plan](https://opencode.ai/docs/#:~:text=OpenCode%20has%20a%20Plan%20mode%20that%20disables%20its%20ability%20to%20make%20changes%20and%20instead%20suggest%20how%20it%E2%80%99ll%20implement%20the%20feature.)\n[mode](https://code.claude.com/docs/en/common-workflows#plan-before-editing).\n\n[Sandboxing](https://perrotta.dev/2026/02/cco-claude-condom-sandbox/) + prompt\nengineering is enough.\n\nEnd your prompt with\n\nDevise a plan\n\n…and let the 2026 Gen AI models flow by themselves.\n\nHere’a a sample session:\n\n**User**:\n\n```\nsome of my blog posts e.g. https://perrotta.dev/2026/07/anki-archive-a-deck/ have\n\"connections\"\n\nthis is great, but it includes _only_ direct links\n\nI wanted to expand connections to include a couple of posts that share tags too\n\nThey should be visually distinct from direct links (direct links should stand out better)\n\n*Devise a plan*\n```\n\n**Assistant**:\n\n```\n[...]\n\nCurrent Connections graph reads only backlinks and outlinks. Existing related\ndata mixes links, tags, categories, and title words. It cannot guarantee two\ntag-based results.\n\n Plan:\n\n 1. Precompute tag connections\n     - Add tag_related to ci/precompute_links.py.\n     - Select up to two posts with shared tags.\n     - Exclude current post, backlinks, and outlinks.\n     - Rank by shared-tag count, then newest date.\n     - Store post IDs in data/links.json.\n\n 2. Extend mini graph\n     - Read tag_related in layouts/partials/mini-graph.html.\n     - Keep incoming links on left.\n     - Keep outgoing links on right.\n     - Place tag connections below current post.\n     - Use no arrows because tag relationships have no direction.\n     - Include shared tag names in each SVG <title>.\n\n[...]\n\n 6. Verify\n     - Add focused tests for ranking, direct-link exclusion, deduplication, and\n       fewer-than-two matches.\n     - Regenerate data/links.json.\n     - Run hugo.\n     - Inspect /2026/07/anki-archive-a-deck/ on desktop and mobile.\n     - Confirm direct Anki workflow link stands out.\n     - Confirm two non-direct Anki/tag posts appear as muted tag connections.\n     - Confirm posts without tags or direct links still render correctly.\n```\n\n∎\n\n— § —\n\nReply via [email](mailto:serendipity@perrotta.dev?subject=Reply to: LLM: Devise a plan)", "url": "https://wpnews.pro/news/llm-devise-a-plan", "canonical_source": "https://perrotta.dev/2026/08/llm-devise-a-plan/", "published_at": "2026-08-22 11:07:58+00:00", "updated_at": "2026-08-22 11:44:06.483371+00:00", "lang": "en", "topics": ["large-language-models", "ai-tools"], "entities": ["OpenCode", "Claude Code", "perrotta.dev"], "alternates": {"html": "https://wpnews.pro/news/llm-devise-a-plan", "markdown": "https://wpnews.pro/news/llm-devise-a-plan.md", "text": "https://wpnews.pro/news/llm-devise-a-plan.txt", "jsonld": "https://wpnews.pro/news/llm-devise-a-plan.jsonld"}}