this repo has no description
4
fork

Configure Feed

Select the types of activity you want to include in your feed.

๐Ÿ“ Update prompting guidelines with session management and planning improvements

+4 -2
+4 -2
Artificial Intelligence Models.md
··· 49 49 - Use comments to guide the model to do what you want. 50 50 - Describe the problem very clearly and effectively. 51 51 - Divide the problem into smaller problems (functions, classes, ...) and solve them one by one. 52 + - Keep sessions to as few messages as possible. 52 53 - Start with a template you like to bootstrap your project and setup all the necessary toolings and following a manageable project pattern. 53 - - Before coding, make the plan with the model. 54 - - Provide the desired function signatures, API, or docs. 54 + - Before coding, make the plan with the model. You can use the same or a different model to critique the plan and iterate. 55 + - Provide the desired function signatures, API, or docs. Apply the TDD loop and make the model write tests and the code until the tests pass. 55 56 - Prioritize exploration over execution (at first). Iterate towards precision during the brainstorming phase. Start fresh when switching to execution. 56 57 - Many LLMs now have very large context windows, but filling them with irrelevant code or conversation can confuse the model. Above about 25k tokens of context, most models start to become distracted and become less likely to conform to their system prompt. 57 58 - Make the model ask you more questions to refine the ideas. ··· 59 60 - If you want to force some "reasoning", ask something like "[is that a good suggestion?](https://news.ycombinator.com/item?id=42894688)" or "propose a variety of suggestions for the problem at hand and their trade-offs". 60 61 - Add relevant context to the prompt. Context can be external docs, a small pesudocode code example, etc. Adding lots of context can confuse the model, so be careful! 61 62 - [Teach the agents to use tools](https://www.anthropic.com/engineering/claude-code-best-practices). 63 + - Be aware of the "cache" (e.g: never edit files manually during a session) 62 64 63 65 ## Agents 64 66