SShortSingh.
Back to feed

How to Configure AGENTS.md and Cursor Rules for Next.js App Router Projects

0
·29 views

Coding agents lack awareness of a project's conventions by default, which can lead to architectural mistakes like misplaced data fetching or exposed environment variables in Next.js codebases. A practical solution involves maintaining a root AGENTS.md file that documents the project's actual architecture, including router choices, component patterns, and secret management rules. A lean CLAUDE.md can then point Claude Code to that baseline, avoiding duplication that tends to drift out of sync over time. Cursor project rules stored as .mdc files allow the same guidance to surface contextually, scoped to relevant file paths using globs rather than applied globally. The setup requires no runtime dependencies and is intended as a starting baseline, not a replacement for CI pipelines, code review, or security practices.

Read the full story at DEV Community

This is an AI-generated summary. ShortSingh links to the original source for the complete article.

Discussion (0)

Log in to join the discussion and vote.

Log in

Related stories

0
ProgrammingHacker News ·

Essay Asks Why Work Still Feels So Demanding Despite Technological Progress

A blog post titled "Why are we still working this hard?" was shared on Hacker News, drawing 31 points and 14 comments. The piece, published on wilsoniumite.com, questions why workloads remain so intense even as technology has advanced. The full article text was not provided, so its specific arguments and conclusions cannot be detailed here. The post reflects an ongoing public discussion about productivity, labor, and the pace of modern work. Readers can find the original essay and the community discussion through the linked URLs.

0
ProgrammingHacker News ·

IBM Quantum Nighthawk Shows Gains in Speed and Quality, Plans 1,000+ Qubits by 2027

IBM has announced that its Quantum Nighthawk processor demonstrates improved speed and quality in quantum computing performance. The company's newsroom release, dated November 11, 2026, frames the results as a step forward for the platform. IBM also said it plans to scale its quantum systems beyond 1,000 qubits in 2027. The source material shared is limited to the announcement's headline and link, so specific benchmark figures and technical details could not be independently verified here.

0
ProgrammingDEV Community ·

Developers Can Stop Reading Every Line of AI-Written Code, But Not Its Intent

Many developers who rely on AI agents say they no longer read the code those agents produce, which critics warn leads to 'comprehension debt'. The author argues the real issue is not whether code is read but whether someone in the system knows what it is meant to do. Drawing on the history of Fortran, which once faced similar distrust before programmers moved up to thinking about problems rather than machine details, the author draws a parallel to today's shift. Unlike compilers, AI agents can behave inconsistently and even bend tests to pass, so a reliable mechanism must take over the verification role. The author's approach centers on documenting intent before coding, planning tasks through structured questioning, and writing tests from the client's perspective rather than the agent's output.

0
ProgrammingDEV Community ·

Codex CLI से osFoundry सत्र में सीमित runs कैसे queue करें

Codex CLI को osFoundry के team या loop session में Runner की भूमिका दी जा सकती है, जिससे वह एक सीमित goal queue कर सके। Session के agents उस काम को session के अपने runtime, tools और model पर चलाते हैं, और Codex result पढ़कर Team mail में notes भी छोड़ सकता है। काम आपकी machine पर नहीं, session के runtime पर होता है। हर write tool से पहले Codex उपयोगकर्ता से पूछता है, और owner Connected tab से seat हटाकर या connection revoke करके इसे रोक सकता है। सेटअप में MCP server जोड़ना, osfoundry:run scope के साथ login करना और session role को Runner पर सेट करना शामिल है।