Tag
OpenCode
2 posts
How I Configure OpenCode: AGENTS.md, Permissions, and More
I’ve been fine-tuning OpenCode’s various configurations for some time now. In this article, I’ll go over my settings. AGENTS.md AGENTS.md is probably the most important part of the configuration. This file serves as the soul and memory of OpenCode, and is permanently preloaded into every OpenCode conversation. Two Prohibitions Initially, I only specified two prohibitions in this file: 1. Any dangerous commands must first be approved by the user; 2. Uploading local personal data, files, etc., to the internet or external services without the user’s consent is strictly prohibited. I believe these two points are most important and should be set first. Since I’ve installed OpenCode on my local machine—which is convenient but also poses security risks—although mainstream AI agents generally handle security quite well these days, explicitly adding these prohibitions should provide even greater assurance. Many people recommend installing personal assistant AI tools like Hermes on a VPS or a dedicated machine, which is indeed safer but also introduces inconvenience and increased costs. I currently don’t feel this is necessary; all my AI agents are installed locally, and I’ve added these two prohibitions to each of them—I haven’t encountered any serious security issues so far.
5 Ways AI Has Actually Saved Me Time on My Computer
Since OpenAI burst onto the scene at the end of 2022, the world seems to have entered the AI era. People’s reactions—ranging from initial disdain for AI to later astonishment at its capabilities and fear that it might replace humans—are all emotional and not entirely rational. AI cannot fundamentally alter the nature of the world; after all, it is ultimately just a man-made product, and nothing created by humans can fundamentally replace what nature has created. But that doesn’t mean it’s useless—it’s actually quite powerful, especially in areas where it excels, particularly in computing. Because it’s essentially a computer program, having a computer handle itself is the perfect fit!