35 karma · joined Jul 31, 2016 (10y ago) · 38 submissions
comment 2mo ago · link · parent
> Do you keep improving them over time?
In my global AGENTS.md I have a note to agents to explain any frustrations they had doing a task, and to suggest any skill/tool/AGENTS.md improvements. I am trying to keep AGENTS.md files small but still finding the balance.
comment 1y ago · link · parent
{
"servers": {
"context7": {
"command": "npx",
"args": [
"-y",
"@upstash/context7-mcp"
],
"type": "stdio"
},
"fetch": {
"command": "uvx",
"args": [
"mcp-server-fetch"
],
"type": "stdio"
},
"git": {
"command": "uvx",
"args": [
"mcp-server-git"
],
"type": "stdio"
},
"playwright": {
"command": "npx",
"args": [
"@playwright/mcp@latest"
],
"type": "stdio"
},
"brave-search": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-brave-search"
],
"env": {
"BRAVE_API_KEY": "${input:brave-api-key}"
},
"type": "stdio"
}
},
"inputs": [
{
"type": "promptString",
"id": "brave-api-key",
"description": "Brave Data for AI API Key",
"password": true
}
]
}
The Sonnet 4 agent usually defaults to using `fetch` for getting webpages, but I've seen it sometimes try playwright on it's own. It seems the brave-search MCP server is deprecated now, so actually it's probably not the best option as a search MCP (you also need to sign up for an API key), right now it works well though!comment 1y ago · link · parent
I found o1-pro unbelievably good for coding, but when o3-pro was released, I saw the response length in ChatGPT was gimped severely compared to o1-pro, so didn't find it all that useful - it couldn't output long enough responses. I actually cancelled my ChatGPT subscription as it seemed like such a downgrade, though I'll probably try using again via OpenAI's API at some point, so long as the response length isn't capped. I'm tempted to try out Grok 4 Heavy.
comment 1y ago · link · parent
Refactoring duplicate code into a helper function should be achievable with current agents. To replace existing code with an external crate , you could try giving the agent access to a browser (e.g. playwright-mcp), and instructing it to browse the crate docs. For anything that involves using APIs that may be past the knowledge cutoff for the agent's model, it's definitely worthwhile to have some MCP tools on hand that'll let it browse for up-to-date info - the brave-search and context7 MCPs are good.
comment 1y ago · link · parent
It's good to consider the financial impact seriously in balance with everything else - not only the income you won't earn, but also how that would have compounded across your lifetime.
To address your point about recruiter emails, I still get them. So long as you can provide value to a business at the end of your break it's not necessarily an issue, though you might have to work harder to demonstrate that - I think especially for the soft skills you'd otherwise be using day-to-day in a workplace as opposed to when you're just doing your own thing.
comment 1y ago · link · parent
Remote: yes (can work hybrid or full time on-site if there is an office in London)
Willing to relocate: no
Technologies: Rust, Go, Kubernetes, AWS, Terraform, Python, React, Java
Résumé/CV: https://www.linkedin.com/in/jameshiew/
Email: james@hiew.net
GitHub: https://github.com/jameshiew
Website: https://james.hiew.net
---
5+ years software development experience, mostly working on backend systems at fintechs. Seeking an IC role using the Rust programming language (and other tech as well!)
My previous experience ranges from working in cross-functional teams at larger corps, to being the sole fullstack developer for a startup. Some of the more interesting things I've worked on: an event-driven scheduling service (think dkron), core protocol logic for a blockchain validator in Rust, and complex SQL models for financial pipelines.
Let's talk if I sound like a fit for your engineering team or project: james@hiew.net
comment 3y ago · link · parent
13.
Ask HN: Would you attend an event in virtual reality?
1 points · by jameshiew · 3y ago · 1 comment
comment 3y ago · link · parent
Another one is using Heroku (~$7pcm) over Vercel (~$20pcm) for deploying a simple website/CMS for a business (and therefore not eligible for Vercel's free hobby tier). I initially wanted to use Vercel but Heroku is actually fantastic if you're developing solo and don't need all the bells and whistles Vercel provides.
comment 3y ago · link · parent
comment 3y ago · link · parent
Of course, there are exceptions to this. I'm also explicitly excluding here employers who outsource the technical challenge to a third party like leetcode.
comment 3y ago · link · parent
[1]: https://www.parc.com/blog/half-human-half-computer-meet-the-...
comment 3y ago · link · parent
comment 4y ago · link · parent
comment 5y ago · link · parent
comment 5y ago · link · parent
The first runtime I tried was Corretto 17 which crashed on me, and I had to delete some `idea.jdk` file somewhere or other to get IntelliJ to start up again. That file seems to contain which JVM to use when starting IntelliJ, I use Toolbox as well (on Ubuntu).
[1]: https://www.jetbrains.com/help/idea/switching-boot-jdk.html
24.
Ask HN: How do you improve the performance of IntelliJ IDEs?
14 points · by jameshiew · 5y ago · 7 comments
comment 5y ago · link · parent
# Writing a good docstring
This is an example of writing a really good docstring that follows a best practice for the given language. Attention is paid to detailing things like
* parameter and return types (if applicable)
* any errors that might be raised or returned, depending on the language
I received the following code:
```{{{language}}}
{{{snippet}}}
```
The code with a really good docstring added is below:
```{{{language}}}
If you wanted a docstring in a particular format, you could add some specific examples as context to your prompt to get even better results.comment 5y ago · link · parent
It's also decent at doing tasks that would be easy for a beginner programmer but perhaps tedious. Like you can give it a function for generating random colors and a task like "expand the variable names in this function to be better", and it will change variable names like `r`, `g` and `b` to `red`, `green` and `blue`. Hardly amazing, and the latency of the API means it's not actually that useful in practice (yet), but with the right prompt it can do some impressive things, and I expect it to get much better in the near future. Pulling magic strings out of functions into constants and adding typehints to Python functions are other simple tasks I've found it OK for.
comment 5y ago · link · parent
Currently it only works with OpenAI so you'd need an API key to use it, but the plugin is (over)engineered so that adding a backend for something more open like GPT-Neo should be doable. OpenAI Codex is used by default but other OpenAI engines can be used as well.
28.
Show HN: Neovim plugin for using OpenAI Codex(github.com ↗)
4 points · by jameshiew · 5y ago · 1 comment
comment 5y ago · link · parent