Start here: AI coding agents¶
Teach your coding agent the logging standard, and let it check the logs its code writes. About 5 minutes.
Claude Code¶
In Claude Code:
/plugin marketplace add Ingeniator/logwarden
/plugin install logwarden@logwarden
Restart Claude Code. The plugin adds:
- a skill, used whenever the agent writes code that logs,
- the MCP server, with
check_logs,explain_rule,list_rulesandget_standard, /logwarden:check, which captures the project's logs and checks them.
Then ask for a first result:
/logwarden:check
To start with the essential rules (secrets and personal data, non-JSON lines, required
service fields), add logwarden.toml with profile = "essential" to the project first. The
agent's checks then use it too.
Other agents (Codex, Cursor, Copilot, …)¶
uvx logwarden init --agent
This adds a logwarden section to AGENTS.md with the rules and the commands to check. For
agents that support MCP, add the server:
{"mcpServers": {"logwarden": {"command": "uvx", "args": ["--from", "logwarden[mcp]==0.11.0", "logwarden", "mcp"]}}}
Next¶
-
When
essentialis clean, ask the agent to move the project to the full standard: it runslogwarden init --fromon the captured logs and fixes the fields it lists. -
Run the check in CI too, so the agent's work is checked like everyone else's: GitLab or GitHub.
- More: the integration guide.