Context configuration
Configure workflows, tags, environments, repositories, and tools so Incidents, Experiments, and neatlogs AI stay grounded in how your application works.
Incidents and Experiments are only as accurate as the context attached to your project and traces. When neatlogs knows which workflow produced a trace, which environment it ran in, which GitHub repository owns the code, and which tools you connected, investigations cite the right files and comparisons isolate the exact change you want to test.
Engineering & coding agents (SDKs)
Project Admin / Org Admin
Org Admin + each teammate
Project Member / Admin
Incidents
Root-cause citations tied to exact workflows and repos.
Experiments
Clean A vs. B isolation across frozen cases and judges.
neatlogs AI answers
Scoped read access across traces, issues, and code.
The four layers of project context
| Layer | What it configures | Where to set it | Who owns it |
|---|---|---|---|
| 1. Telemetry structure | workflow_name, environment / release tags, session_id, and end_user_id on incoming traces | SDK initialization and span attributes (Workflow name, Tags, Sessions) | Engineering / coding agents during instrumentation |
| 2. Project & workflow boundaries | Separate projects per application or environment, API keys, and active workflows | Settings → Project (Projects and workflows) | Project Admin / Org Admin |
| 3. Code & external tool context | Mapped GitHub repositories (Shared vs. Strict access policy, optional PR writes), Slack/Linear/Jira connections, and personal Tools & MCP accounts | Settings → Organization → Integrations & Settings → Account → Tools & MCP (Integrations, Tools & MCP) | Org Admin (GitHub App / Slack) + each teammate (Tools & MCP) |
| 4. Prompts & quality baselines | Managed prompt versions/labels, saved datasets, and calibrated detections/Evals | improve → prompts, improve → datasets, detections, evals | Project Member / Project Admin |
Dedicated Project Context document (workspace rollout): Workspaces with Project Context enabled also see Settings → Project → Context, where project members can maintain a shared project context document and select repository files directly. If that page is not visible in your workspace yet, configure the four context layers above so Incidents and Experiments already have clean workflow, repository, and tool boundaries.
Set up context so Incidents and Experiments work cleanly
- Give every distinct agent its own
workflow_name. Never mix a support chatbot and an internal batch worker under one workflow name. Both the Incidents board and Experiments filter and group by workflow. See Multiple workflows in one codebase. - Tag every deployment and variant. Attach environment (
production,staging) and version/prompt tags (prompt-v3,model-sonnet) so incidents do not mix staging noise into production, and Evals/Experiments can isolate baseline vs. candidate traffic. See Tags. - Map the right GitHub repositories to the project. Open Settings → Organization → Integrations → GitHub, map only the repositories that belong to the selected project, and choose Shared or Strict access policy. Turn on Allow pull request writes only for repositories where cloud handoffs may open PRs.
- Connect personal read-only tools for investigations. Under Settings → Account → Tools & MCP, connect your own GitHub, Linear, Slack, or Notion accounts so neatlogs AI can look up tickets, runbooks, and threads with your permissions.
- Configure a Slack Team channel for incident updates. Under Settings → Organization → Integrations → Slack, choose a Team channel so incident lifecycle alerts and daily digests reach the owning team.
Humans vs. coding agents: context responsibilities
| Context item | Coding agent (SDK / CLI / MCP) | Human (Dashboard Settings) |
|---|---|---|
workflow_name, tags, sessions, end-user IDs | Adds and validates instrumentation via Agent Skills and neatlogs doctor. | Approves naming conventions and environment separation. |
Project selection (x-project-id / --project) | Discovers projects via neatlogs projects list and passes --project explicitly on every command. | Creates projects and grants project/service-account roles. |
| GitHub repository mapping & PR write policy | Reads mapped repositories during investigations or local fixes. | Installs the GitHub App, maps repos per project, and toggles PR write permissions. |
| Tools & MCP / Slack / Model provider keys | Uses configured providers and read-only tools during chat or evaluations. | Authorizes OAuth connections and stores organization/project AI provider keys. |
