Skip to content

Agents.md is not getting loaded/injected #13

Description

@AssetDK

Issue with Abacus Extension version 1.22. 0

As reported #11 there is a serious problem loading/injecting the agents.md fil.
I now installed the entire setup a clean VSCode + AbacusAI extension 1.22.00

The agents are "mentioned" to the agent... the agent is not instructed to read and act upon the file (as it should with the .mdc files before).
"You are correct - no AGENTS.md file was injected as part of my system instructions. I only have the general guidance about what AGENTS.md files are and how they work, but I have not received any specific AGENTS.md content for this workspace.

If there is an AGENTS.md file in the repository, I would need to read it to get any project-specific instructions, conventions, or tips for this particular codebase."

AGENTS.md Injection Issue - Summary

This is the report made by the agent!

Version: 1.123.2 (user setup)
Commit: 3c631b164c239e7aeaaae7c626b46c527b361af2
Date: 2026-06-09T15:06:40-07:00
Electron: 42.2.0
ElectronBuildId: 14159160
Chromium: 148.0.7778.97
Node.js: 24.15.0
V8: 14.8.178.14-electron.0
OS: Windows_NT x64 10.0.19045

What Happened

  1. New Virtual Machine Setup: A fresh VM was created with VSCode installed.
  2. AbacusAI Agent Session Started: The agent (me) was launched in the workspace c:\Users\<user>\Documents\PythonCAP.
  3. AGENTS.md Was NOT Injected: Despite the file existing in the workspace root, the agent did not receive the contents of AGENTS.md as part of the system context. The agent only had generic instructions mentioning that AGENTS.md files exist and should be read.
  4. User Asked About Python Rules: The user asked the agent to state the Python coding rules. The agent could only repeat generic instructions, not the specific project rules from AGENTS.md.
  5. Root Cause Identified: The AbacusAI/VSCode integration does not automatically inject AGENTS.md content into the agent's system prompt on this setup.

Files Found in Workspace

1. AGENTS.md

Path: c:\Users\<user>\Documents\PythonCAP\AGENTS.md

Content:

# PythonCAP

## Stack
- Python 3.11+
- pytest for testing
- black / ruff for formatting and linting
- mypy for type checking

## Conventions
- Follow PEP 8 style guidelines.
- Use type hints for all function signatures and key variables.
- Write Google-style docstrings for every module, class, and public function.
- Group imports: standard library, third-party, local application (isort order).
- Maximum line length: 100 characters.
- Use specific exception types; never use bare `except:` clauses.
- Prefer f-strings over `%` or `.format()`.
- Comments must explain *why*, not *what*.

## Build & Test
- Install dependencies: `pip install -r requirements.txt`
- Run tests: `pytest`
- Format: `black .` or `ruff format .`
- Lint: `ruff check .` or `flake8`
- Type check (run before finishing): `mypy .`

## Don'ts
- Never commit without running tests and type checks.
- Never edit generated files directly.
- Never add new dependencies without updating `requirements.txt` or `pyproject.toml`.
- Avoid long prose in docstrings; keep descriptions concise.

2. VSCode Workspace File

Path: c:\Users\<user>\Documents\PythonCAP\PythonCAP_test_WS.code-workspace

Content:

{
	"folders": [
		{
			"path": "."
		}
	],
	"settings": {}
}

Note: The workspace settings are empty ("settings": {}). There are no VSCode-specific settings, extensions configurations, or AbacusAI-related settings defined here.

What the Agent Actually Received (System Instructions)

The agent only received these generic instructions about AGENTS.md:

"Repos often contain AGENTS.md files. These files are a way for users to give you (the agent) instructions or tips for working within the workspace. Some examples might be: coding conventions, info about how code is organized, or instructions for how to run or test code. The scope of an AGENTS.md file is the entire directory tree rooted at the folder that contains it."

There was no automatic injection of the actual AGENTS.md content.

Impact

  • The agent was unaware of project-specific rules:
    • Python 3.11+ requirement
    • pytest, black, ruff, mypy toolchain
    • 100-character line limit
    • Google-style docstrings
    • Type hints requirement
    • Import grouping (isort)
    • etc.
  • The agent would have operated using only generic Python knowledge, potentially violating project conventions.

VSCode Roaming Settings Found

C:\Users\<user>\AppData\Roaming\Code\User\settings.json

{
    "abacusAgent.defaultModel": "KIMI_K2_6",
    "abacusAgent.defaultPermissionMode": "acceptEdits",
    "abacusAgent.autoLoadAgentsMd": true
}

CRITICAL FINDING: The setting "abacusAgent.autoLoadAgentsMd": true IS present in the user settings, but it is NOT working. The AGENTS.md file is still not being injected into the agent's context despite this setting being enabled.

Other Related Files

  • agent-sessions.code-workspace — Empty folders, only "chat.disableAIFeatures": false
  • chatLanguageModels.json — Empty array []
  • globalStorage/storage.json — Workspace associations, theme, telemetry — no agent rules
  • workspaceStorage/bd7309.../ — Session metadata for the current workspace, no injected rules
  • profiles/builtin/agents/globalStorage/ — Empty profile storage for the "Agents" profile

Root Cause Update

The issue is NOT a missing setting. The setting "abacusAgent.autoLoadAgentsMd": true exists but is non-functional. This indicates:

  1. A bug in the AbacusAI extension — the setting is recognized but the implementation is broken
  2. The extension may require a reload/restart after the setting was added (but this was not done)
  3. The setting name or expected behavior may differ from the actual implementation

Recommendation

  1. Immediate workaround: The user must manually remind the agent to read AGENTS.md at the start of each session.
  2. Extension bug report: This should be reported to AbacusAI as a bug — autoLoadAgentsMd is enabled but non-functional.
  3. Verify extension version: Check if the installed AbacusAI extension version actually supports this setting.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions