Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx agentmods add commands/sapientpants/deepsource-mcp-server/fix-deepsource-issuesgit clone --depth 1 https://github.com/sapientpants/deepsource-mcp-serverWhat it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5 | $0.00000 | $0.02085 |
| Opus 5 | $0.00000 | $0.01043 |
| Sonnet 5 | $0.00000 | $0.00417 |
| Haiku 4.5 | $0.00000 | $0.00209 |
Grade A, and why
fix-deepsource-issues scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 239 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Fix DeepSource Issues
Analyze and fix all open issues reported by DeepSource for this project using the DeepSource MCP server.
Steps
-
Identify Project and Check for Issues
- Use MCP tool
projectsto list available projects - Find the project key matching this repository
- For branch-specific issues: Use
recent_run_issueswith the current branch name - For overall project issues: Use
project_issuesto query all open issues - Note:
recent_run_issuesmay return very large responses - userunsto check issue counts first - If no issues found: Report "✅ No DeepSource issues found!" and exit
- Use MCP tool
-
Get Detailed Issue Analysis
- When working on a specific branch (e.g., for a PR):
- Use
runsto find the latest run for your branch and check issue counts - Use
runwith the run ID to get summary information - Note:
recent_run_issuesresponses can exceed token limits even withfirst: 1 - If API responses are too large, check the DeepSource dashboard directly
- Use
- For main branch or overall project:
- Use
project_issueswith pagination (default branch is main)
- Use
- Use
quality_metricsto understand overall code health - Check
dependency_vulnerabilitiesfor security issues in dependencies
- When working on a specific branch (e.g., for a PR):
-
Analyze Retrieved Issues
- Group by severity: BLOCKER, CRITICAL, MAJOR, MINOR, INFO
- Categorize by analyzer:
- JavaScript/TypeScript: JS-* issues
- Test Coverage: TCV-* issues
- Security: SEC-* issues
- Dependencies: DEP-* issues
- Note issue occurrences (how many times each issue appears)
- Report detailed summary with issue codes and descriptions
-
Create Feature Branch (only if issues exist)
git checkout -b fix/deepsource-issues-$(date +%Y%m%d) -
Fix Issues by Priority
- Start with BLOCKER severity
- Then CRITICAL
- Then MAJOR
- Then MINOR
- Finally INFO
- Group similar issues to fix them together efficiently
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 2d ago First seen · 239 lines · 0 tokens per session scan A 3d735ffd7c3f
fix-deepsource-issues is a command published in the GitHub repository sapientpants/deepsource-mcp-server (7 stars, last pushed 10mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 2,085 tokens. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.
Other commands, from other repositories
flow-nexus-neural
Train and deploy neural networks in distributed sandboxes.
flow-nexus-auth
Flow Nexus authentication and user management.
editorial-review-structure
Structural editor that proposes cuts, reorganization, and simplification while preserving comprehension.
add-tool
Scaffold a new FreeAgent MCP tool (handler + registration + test) following the repo pattern.
OPSX: Archive
Archive a completed change in the experimental workflow.
session-start
Invoke at the BEGINNING of every working session. Token budget: 500–1,500. -->.