gitnexus-debugging
Installation
Review the source and dependencies with a prompt. A package is available to download.
Install with an AI assistant
Copy the prompt so your assistant can review the pinned revision and dependencies first.
View promptHide prompt
Check whether SkillPI Skill Finder is installed for your current agent. If it is missing, install and enable it using the official instructions at https://github.com/Findskills/skillpi. Then use Skill Finder to locate and install "gitnexus-debugging" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-fc75dca4deaada9947913eeef0ef4449f7c0c98e4ce07d1daa34249ea7c1a113. Verify the upstream source and version against https://github.com/ceilf6/FrontAgent before installing. If they do not match, stop and report the mismatch. Report the installed path and source version.
Source and setup
github.com
Setup guidance pending
See the original source for supported tools, dependencies, and permissions.
Installation test pending
Used for debugging and fault localization: for when a user is troubleshooting failures, tracing the source of a problem, or asking why something failed. Examples: “Why did X fail?”, “Where does this error come from?”, “Trace this bug”
Introduction source: third_party · ceilf6 · 0.0.1 Reference
SkillPi interpretation
- Tasks
- Use when the user is debugging a bug, tracing an error, or asking why something fails. Examples: \"Why is X failing?\", \"Where does this error come from?\", \"Trace this bug\
- Audience
- "Why is this function failing?" "Trace where this error comes from" "Who calls this method?" "This endpoint returns 500" Investigating bugs, errors, or unexpected behavior
- Inputs and outputs
- Not specified in the source documentation.
- Software, accounts and paid services
- Not specified in the source documentation.
- Limits and differences
- Not specified in the source documentation.
- Testing
- Not tested
Browse files
Frontmatter
name: gitnexus-debugging
description: "Use when the user is debugging a bug, tracing an error, or asking why something fails. Examples: \"Why is X failing?\", \"Where does this error come from?\", \"Trace this bug\""Debugging with GitNexus
When to Use
- "Why is this function failing?"
- "Trace where this error comes from"
- "Who calls this method?"
- "This endpoint returns 500"
- Investigating bugs, errors, or unexpected behavior
Bind the repository first
A root cause traced in the wrong repository is a wrong root cause.
Call list_repos {} before the first tool call. With one indexed repository,
use the examples below as written. With more than one, pass repo on every
call: an omitted repo normally errors, but under an MCP policy with a
configured default it resolves to that default silently. If you cannot tell
which repository is meant, stop and ask. This matters most for cypher, whose
statement carries no in-band hint of which database it ran against.
list_repos is paginated, so page with offset: pagination.nextOffset until
hasMore is false before concluding a repository is absent.
A stale index describes the code from before your bug, so refresh before trusting a trace, and state the repository and index freshness with the diagnosis.
Workflow
0. list_repos {} → Bind repo
1. query({search_query: "<error or symptom>"}) → Find related execution flows
2. context({name: "<suspect>"}) → See callers/callees/processes
3. READ gitnexus://repo/{name}/process/{name} → Trace execution flow
4. cypher({statement: "MATCH path..."}) → Custom traces if needed
If "Index is stale" → run
node .gitnexus/run.cjs analyzein terminal. Hot-toolstalenessnames which index answered (branch/lastCommit) and how fresh it is (status). Re-analyze only forbehindordiverged—currentis identity,unknownis unmeasurable.
Checklist
- [ ] list_repos {} — bind repo; explicit repo when >1 indexed, ask if ambiguous
- [ ] Understand the symptom (error message, unexpected behavior)
- [ ] query for error text or related code
- [ ] Identify the suspect function from returned processes
- [ ] context to see callers and callees
- [ ] Trace execution flow via process resource if applicable
- [ ] cypher for custom call chain traces if needed
- [ ] Read source files to confirm root cause
- [ ] State the repository and index freshness with the diagnosis
Debugging Patterns
| Symptom | GitNexus Approach |
|---|---|
| Error message | query for error text → context on throw sites |
| Wrong return value | context on the function → trace callees for data flow |
| Intermittent failure | context → look for external calls, async deps |
| Performance issue | context → find symbols with many callers (hot paths) |
| Recent regression | detect_changes to see what your changes affect — pass worktree for a linked worktree |
| "How does A reach B?" | trace between the two symbols — shortest call chain in one call |
Tools
query — find code related to error:
query({search_query: "payment validation error", repo: "my-app"})
→ Processes: CheckoutFlow, ErrorHandling
→ Symbols: validatePayment, handlePaymentError, PaymentException
context — full context for a suspect:
context({name: "validatePayment", repo: "my-app"})
→ Incoming calls: processCheckout, webhookHandler
→ Outgoing calls: verifyCard, fetchRates (external API!)
→ Processes: CheckoutFlow (step 3/7)
cypher — custom call chain traces. Pass repo alongside the statement; the
Cypher text itself names no repository, so the result is unattributable without
it:
MATCH path = (a)-[:CodeRelation {type: 'CALLS'}*1..2]->(b:Function {name: "validatePayment"})
RETURN [n IN nodes(path) | n.name] AS chain
trace — shortest call chain between two symbols ("how does A reach B?"), one call instead of chaining context hops:
trace({ from: "processCheckout", to: "fetchRates", repo: "my-app" })
→ status: ok, hopCount: 3
→ hops: processCheckout → validatePayment → verifyCard → fetchRates
→ edges: CALLS (1.0), CALLS (0.95), CALLS (1.0)
When no path exists, trace reports the furthest reachable node — exactly where the chain breaks (dynamic dispatch, reflection, or an external boundary).
Example: "Payment endpoint returns 500 intermittently"
0. list_repos {}
→ total: 2 (my-app, billing-api) — bind my-app explicitly on every call
1. query({search_query: "payment error handling", repo: "my-app"})
→ Processes: CheckoutFlow, ErrorHandling
→ Symbols: validatePayment, handlePaymentError
2. context({name: "validatePayment", repo: "my-app"})
→ Outgoing calls: verifyCard, fetchRates (external API!)
3. READ gitnexus://repo/my-app/process/CheckoutFlow
→ Step 3: validatePayment → calls fetchRates (external)
4. Root cause: fetchRates calls external API without proper timeout
Repository: my-app Index: current
With a single indexed repository, step 0 returns total: 1 and the repo
argument drops out of every call above.
Version history
-
v2.2.0
GitHub ↗
Original release notes
# FrontAgent v2.2.0 FrontAgent v2.2.0 is a minor release after v2.1.1. It ships the new Electron desktop client, headless non-interactive CLI mode, session resume, lifecycle hooks, declarative permission rules, context zone budgets, the `@frontagent/mcp-web-fetch` adapter, a reproducible SDD ablation evaluation framework, and a set of correctness and security fixes across the CLI entry path, the hallucination guard, and the LLM provider layer. ## Highlights - New Electron desktop client with a typed IPC contract, Task Console + Settings UI, accessibility semantics, and multi-platform zip archives attached to GitHub Releases. - Headless non-interactive CLI mode with a validated JSON output contract exposing artifacts and security denials. - Session resume with schema-validated session records and cross-step file context hydration. - Lifecycle hooks with explicit project-hook opt-in and hardened hook plumbing. - Declarative permission rules and context zone budgets on the core execution path. - Reproducible SDD ablation benchmark: frozen 30-task set, two-arm orchestrator, machine-checkable acceptance, published negative findings with reproduction guide. - Global `fa` bin invocations work again (symlinked entry-path fix), and `hallucinationGuard.checks` is genuinely honored on the executor path without weakening the project-root security boundary. ## Added - **Desktop client**: typed IPC contract + execution reducer, Task Console and Settings renderer (React + Vite), main-process runtime bridge + settings store, IPC-failure degraded states, ARIA live regions and navigation semantics, electron-builder packaging publishing multi-platform zips to GitHub Releases, and desktop documentation. - **Headless CLI**: `--output` validation, artifacts and security denials in the JSON payload, stdout interception during JSON runs, top-level error classification. - **Session resume**: full step schema, order-independent resume unlock, cross-step file context hydration, session records validated on load. - **Lifecycle hooks**: explicit opt-in for project hooks, per-tool outcome observation in postToolUse, log-callback failure isolation. - **Permissions**: declarative permission rules; in-session derived allow rules with literal-wildcard escaping; bare tool rules never derived from always-allow approvals. - **Context**: zone budgets with guaranteed postconditions and a single compaction summary; AGENTS.md project instructions with byte-capped reads. - **MCP**: `@frontagent/mcp-web-fetch` adapter package wired into the agent registry and planner. - **Prompts**: external-knowledge, security-engineering, and code-minimalism disciplines in codegen/planner; security review dimension in the code-quality sub-agent. - **Evaluation**: frozen 30-task ablation set, typecheck-clean fixture project, two-arm orchestrator with resume, acceptance check runner, results report and reproduction guide. - **Docs**: verifiable npm downloads counter with daily refresh. ## Fixed - **CLI entry**: global bin symlinks (`fa` via npm/pnpm/homebrew) no longer exit silently; the direct-entry guard resolves the symlinked argv path. (#396) - **Hallucination guard**: `hallucinationGuard.checks` is honored by `validateFilePath` / `validateCode` on the executor path; project-root containment remains enforced when `fileExistence` is disabled. (#386) - **LLM provider**: AI SDK migrated to the v5 line (clears GHSA-rwvc-j5jr-mgvh); OpenAI provider pinned to Chat Completions for OpenAI-compatible base URLs. - **Planner**: `web_fetch` actions preserved in generated plans. - **Agent**: dependency recovery uses the project package manager. - **Desktop**: default-workspace setting takes effect; telemetry auto-scroll only at bottom; no demo content in TaskComposer; settings saves announced to assistive tech. - **Runtime**: session ids constrained to the sessions dir with atomic writes; real taskId on failed taskComplete hooks; win32 process-tree kill. - **Workflow gates**: workflow-rules test accepts the vars-based self-hosted Repo Guard runner. (#397) ## Changed - **CI**: Repo Guard on a self-hosted Claude Code engine with allowlisted fork actors under `pull_request_target`; catch-all CODEOWNERS; OpenRouter provider order passthrough. - **Dependencies**: ts-morph ^28; AI SDK v5 line. ## Known Issues - `hallucinationGuard.enabled` is still dead config on the agent path; only `checks` is consulted. Tracked in #400. ## Verification - `pnpm quality:precommit` (lint, typecheck, workspace tests, workflow rules) green at release. - CLI symlink invocation verified against the packaged bundle (`fa --version` via a bin symlink). ## Compatibility - CLI package version: `[email protected]`. - VS Code extension version: `[email protected]`. - Node.js requirement: `>=20.0.0`. - VS Code requirement: `^1.120.0`.
-
v2.1.1
GitHub ↗
Original release notes
# FrontAgent v2.1.1 FrontAgent v2.1.1 is a patch release after v2.1.0. It focuses on maintainability, security hardening, workflow reliability, and test coverage across the agent execution path, Filesense, hybrid RAG, memory persistence, runtime MCP handling, and the VS Code webview. ## Highlights - Decomposed the core agent and executor orchestration paths into smaller, focused helpers. - Split Filesense engine responsibilities for helpers, indexing, notes, query, and schema orchestration. - Extracted memory persistence writers and preload/recall helpers. - Extracted semantic search orchestration from the hybrid RAG knowledge-base path. - Hardened VS Code webview nonce generation and split webview renderers. - Restored and hardened local GitNexus contract gates and worktree bootstrap checks. - Expanded focused unit coverage across CLI, runtime MCP, executor, agent, context, Filesense, memory, RAG, and VS Code webview behavior. ## Changed - **Executor orchestration**: Tool-call handling, validation skip handling, progress enforcement, step feedback, and step trace recording now live in focused modules. This keeps execution behavior stable while reducing the size of the central executor implementation. - **Agent orchestration**: Context gathering, facts update flushing, project prescan preparation, task execution setup, and execution callback wiring were extracted from the main FrontAgent flow. - **Context management**: Fact serialization, facts merging, filesystem fact updates, and module dependency graph updates were split out of `ContextManager`. - **Planner phases**: Planner phase helper logic was split into dedicated modules with additional tests. - **Filesense engine**: Engine helper logic, index persistence, notes generation, query result handling, and schema orchestration were separated into focused modules. - **Memory store**: Memory preload/recall behavior and persistence writer behavior were extracted from `MemoryStore`. - **Hybrid RAG**: Semantic search orchestration was extracted from the knowledge-base implementation. - **Runtime MCP**: MCP task invocation setup was split from the runtime MCP server handler path. - **VS Code extension**: Webview body, script, style, and template rendering were decomposed into smaller helpers. - **Code quality subagent**: Prompt policy logic was split into a dedicated helper. - **Tooling**: The temporary GitNexus release-candidate patch was removed and the Biome schema version was aligned. ## Fixed - **VS Code security**: Hardened webview nonce generation. - **Filesense query**: Preserved relative path semantics in query results. - **Filesense notes**: Preserved notes schema path ownership. - **Workflow contracts**: Restored the local GitNexus contract gate. - **Bootstrap checks**: Resolved relative core worktree paths and guarded bootstrap against mismatched worktrees. ## Tests - Added focused CLI command router coverage. - Added runtime MCP contract tests and schema assertion coverage. - Added hybrid RAG knowledge-base coverage. - Added executor tests for validation skipping, progress enforcement, step feedback, tool-call handling, and trace recording. - Added agent tests for context gathering, facts flushing, project prescan preparation, execution callbacks, and task execution setup. - Added ContextManager tests for fact serialization, facts merging, filesystem fact updates, and module dependency graph behavior. - Added Filesense tests for engine helpers, indexing persistence writes, notes generation, query behavior, and schema orchestration. - Added memory tests for preload/recall helpers and persistence writers. - Added VS Code webview tests for body, script, style, and template renderer extraction. - Cleaned Biome warnings in executor, shared utility, and LLM service tests. ## Dependencies - Updated production dependency lockfile entries from the Dependabot production dependency group. ## Compatibility - CLI package version: `[email protected]`. - VS Code extension version: `[email protected]`. - Node.js requirement: `>=20.0.0`. - VS Code requirement: `^1.120.0`.
-
v2.1.0
GitHub ↗
Original release notes
# FrontAgent v2.1.0 FrontAgent v2.1.0 is a minor release after v2.0.0. It adds Open Memory Gateway integration, publishes the OSS Harness workflow assets, expands test coverage across core runtime paths, and tightens CI, dependency, and maintainer workflow checks. ## Highlights - Added opt-in Open Memory Gateway integration for managed long-term memory. - Added OSS Harness assets for contributions, PR review, GitNexus contracts, local hooks, and repository workflow checks. - Expanded focused unit coverage for FrontAgent, Executor, PhaseRunner, ContextManager, LLM service, planner, memory, security, SDD workflow, mcp-filesense, and workflow rules. - Upgraded the development and runtime dependency set, including Biome 2.x, TypeScript 6.x, Vitest 4.x, Playwright 1.60.x, Turbo 2.9.x, AI SDK, MCP SDK, and LangChain-related packages. - Updated CI to run the full quality gate on Node 20 and Node 22 with one aggregate status check. - Packaged the VS Code extension as `frontagent-2.1.0.vsix`. ## Added - **Open Memory Gateway**: FrontAgent can now use an opt-in Gateway adapter to write Gateway-compatible Markdown memories, keep draft and active memories separate, and recall active memories while retaining the existing `.frontagent/memory` fallback path. - **OSS Harness**: Added contributor guidance, workflow documentation, GitNexus knowledge contracts, CODEOWNERS, issue templates, PR template, git hooks, and workflow rule tests. - **Local workflow scripts**: Added `agent:bootstrap`, `quality:predev`, `quality:precommit`, `quality:ci`, `quality:local`, `contract:*`, and `test:workflows`. - **Dependency maintenance**: Added `.env.example` and Dependabot configuration. ## Changed - Extracted `PhaseRunner` from `Executor` and step callback handling from `FrontAgent`. - Split Skill Lab behavior benchmarking, trigger benchmarking, improvement, reporting, and scaffolding into focused modules. - Introduced structured logging and migrated core debug output to shared logger utilities. - Tightened source type safety with stricter `noExplicitAny` coverage. - Raised the VS Code extension engine requirement to `^1.120.0`. ## Fixed - Patched high-severity dependency vulnerabilities through dependency upgrades and pnpm overrides. - Fixed Biome formatting and stricter typing failures introduced by merged test and Skill Lab changes. - Unified Node 20 and Node 22 CI matrix results under a single aggregate CI status. ## Test And CI - Added broad focused unit coverage for core, memory, planner, security, executor, LLM, ContextManager, mcp-filesense, SDD, shared logger, and workflow rules. - Added Contract Guard for PRs targeting `develop`. - Added Repo Guard workflow support for PR, issue, and issue-comment review paths with fork and actor safeguards. - Upgraded GitHub Actions dependencies to `actions/checkout@v6`, `actions/setup-node@v6`, and `pnpm/action-setup@v6`. ## Compatibility - CLI package version: `[email protected]`. - VS Code extension version: `[email protected]`. - Node.js requirement: `>=20.0.0`. - VS Code requirement: `^1.120.0`.
-
v2.0.0
GitHub ↗
Original release notes
## Highlights - **Architecture Refactoring**: All large monolithic source files decomposed into focused, single-responsibility modules - **565 Unit Tests**: Coverage increased from near-zero across the monorepo - **Biome**: Project-wide linter and formatter replacing ad-hoc ESLint configs - **Performance**: Lazy-load ts-morph (~400ms cold-start savings), async file I/O in RAG modules, 2MB bundle reduction - **Type Safety**: Eliminated all `as any` assertions across CLI, shared, and core packages ## Breaking Changes - Internal module paths changed due to refactoring. Public API from each package's `index.ts` remains unchanged. - Minimum Node.js version is now 18+. See [CHANGELOG.md](./CHANGELOG.md) for full details.
-
v1.0.9
GitHub ↗
Original release notes
## Bug Fixes - **mcp-shell**: Enforced the `timeout` parameter that was previously accepted but never used, preventing runaway commands from hanging indefinitely (default 60s with SIGTERM/SIGKILL escalation) - **mcp-shell**: Added a 10MB output size cap to prevent OOM when commands produce excessive stdout/stderr - **shared**: Fixed `matchGlob` to escape regex metacharacters (`.`, `(`, `)`, `[`, `]`, `+`, `{`, `}`) before glob-to-regex conversion — previously `src/utils.ts` would incorrectly match `src/utilsXts` - **shared**: Fixed `deepMerge` to skip `undefined` source values instead of overwriting existing target values - **mcp-file**: Fixed `isRegularFile` and `isDirectory` to return `false` for non-existent paths instead of throwing `ENOENT` ## Improvements - **shared**: Extracted `DEFAULT_LLM_TEMPERATURE` (0.2) and `DEFAULT_LLM_MAX_TOKENS` (4096) as shared constants, fixing inconsistent model behavior between CLI (0.2) and runtime-node (0.7) ## Install ```bash npm install -g [email protected] ``` **Full Changelog**: https://github.com/ceilf6/FrontAgent/compare/v1.0.8...v1.0.9
Only the five most recent versions are shown. View full version history at the source ↗
Current listing version
0.0.1
Safety and assessment details
Quality assessment
Out of 100 · Assessment report from SkillPi LAB.
Highlights
- 提供完整的代码调试工作流,覆盖错误追踪、调用链分析等高频刚需场景
- 工具链设计完善,支持多仓库管理和索引状态检查
Highlights
- 触发词覆盖全面,包含多种调试场景的变体表达
- 边界清晰,不易与其他 Skill 重叠
Highlights
- 工作流步骤清晰,从仓库绑定到根因诊断形成完整闭环
- 包含详细的检查清单和实际示例,便于用户理解和执行
Highlights
- 工具参数设计合理,明确处理多仓库场景
- 覆盖索引过期等关键异常情况,提供刷新机制
The arithmetic mean of the first four original scores, rounded to a whole number.
Static text checks
100 / 100 · skillpi-20261123-no-r3-v1
No current rules matched the text.
This score reflects rule matches in the text and is provided for reference before use. It excludes attachments and runtime behavior.
Permissions and checks before use
Automatically summarized from this main document. Matches may be examples or defensive advice; they are not actual permission declarations. Attachments, external dependencies and runtime behavior are not covered.
These common operations were not identified in the main document. This does not mean no permissions or risks exist.
Security rating and access scope
safe · Static evidence review; not a runtime safety guarantee.
Not specified in the source documentation.
Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.
User discussion
No verified reviews yet.