‹ BackHN Continuity

Thread

Claude Code now reads AGENTS.md if there is no Claude.md

741 points · 285 comments · datadrivenangel

  1. clutter55561 · · focus · HN ↗
    Don’t get too excited, Claude code still won’t detect skills on .agents/skills.
    1. jjordan · · focus · HN ↗
      Don't worry, it's on the roadmap for Q4 2029.
    2. vb-8448 · · focus · HN ↗
      They have AGI, but they don't have $20 of token budget to add a so basic functionality.
      1. bel8 · · focus · HN ↗
        They probably have an explicit instruction in their own CLAUDE.md to not implement that support.
        1. sscaryterry · · focus · HN ↗
          Its the only explanation. I mean, they are not living under a rock...
          1. falcor84 · · focus · HN ↗
            As evidence that they actually are living under a rock, there's still no proper way to mv a workspace and have it retain all its history and config.
            1. yoavsha1 · · focus · HN ↗
              this is seriously nuts. I have so many repos sitting there using old/deprecated/replaced names just because of their idiotic decision to place dir-specific config and memories in ~/.claude
              1. albert_e · · focus · HN ↗
                Should we be able to manually rename those history folders to make the session history show up as --resume options in a new folder?
            2. nextaccountic · · focus · HN ↗
              I suppose you can use claude to build a third party script / cli tool that moves, then edit files on ~/.claude

              They win either way

            3. KetoManx64 · · focus · HN ↗
              I get that it would be nice to have it first party, but they're all just json files that you can just do a bulk awk/sed on. I did this a week ago for about 100 conversations when migrating my convo history to a different username.
          2. vb-8448 · · focus · HN ↗
            I heard some of their employees sent to do some PR in podcasts: they are definitively disconnected from the reality.

            Maybe internally they see really unbelievable things, but my impression is that they pushed so hard on agents that they don't have the grasp of the situation.

        2. oofbey · · focus · HN ↗
          If not a system prompt telling it not to read those files unless explicitly told to.
      2. NiloCK · · focus · HN ↗
        Artificial General Intransigence
      3. perganomoly · · focus · HN ↗
        Seriously, it’s unbelievable. Shows a serious lack of either understanding or empathy for how people use their product.
        1. vb-8448 · · focus · HN ↗
          They just care much more about their user's data.
      4. arendtio · · focus · HN ↗
        Claude isn't that cheap anymore ;-)
    3. nomel · · focus · HN ↗
      A post-checkout git hook can handle this unfortunate situation.

        mkdir -p ~/.githooks
        git config --global core.hooksPath ~/.githooks
      
        cat > ~/.githooks/post-checkout <<'EOF'
        #!/usr/bin/env bash
        if [ -d .agents/skills ] && [ ! -e .claude/skills ]; then
            mkdir -p .claude
            ln -s ../.agents/skills .claude/skills
        fi
        EOF
      
        chmod +x ~/.githooks/post-checkout
      1. ahurmazda · · focus · HN ↗
        Won’t you have to do it recursively for all child directories?
      2. verdverm · · focus · HN ↗
        we shouldn't have to do this on a per-repo basis, Ant can choose to be a reasonable member of the ecosystem or not
        1. nomel · · focus · HN ↗
          Sure, but I have work to do. ;)
      3. springtimesun · · focus · HN ↗
        This is where I landed when a recent(ish) change broke symlinking for rules files. I didn’t like how hacky it was a first, but now I’m glad I did it. The same hook drives specific rules the non-Claudes get per repo.
      4. northbridgedev · · focus · HN ↗

        [dead]

    4. Sugimot0 · · focus · HN ↗
      I honestly hate .agents it's a big XDGBDS offender. Almost every plugin / lazy platform harness tries to use that dir too so I have to do a bunch of hacks to keep my $HOME clean. Also everyone tries to use a .claude .gemini .codex etc. Annoying that all these tools just completely ignore these things, it's literally like litterers you know it'd be terrible if every tool did this, but you still do it anyway
Open on Hacker News to reply ↗

Unofficial Hacker News client; not affiliated with Y Combinator.