{"session":{"id":"circular-soapwort","working_directory":"/Users/root1","backend_type":"Windsurf","model":"glm-5-2","agent_mode":"bypass","created_at":"2026-06-21T23:04:05+00:00","last_activity_at":"2026-06-21T23:05:23+00:00","title":"Setup agents.md and check hge skill import","main_chain_id":70,"shell_last_seen_index":0,"cogs_json":[{"model":null,"source":{"Session":"Hook"},"context":[],"lifetime":{"Unique":"skill/devin-for-terminal"},"permissions":[[{"Tool":{"Name":{"exact":"read"}}},"Allow"],[{"Tool":{"Name":{"exact":"grep"}}},"Allow"],[{"Tool":{"Name":{"exact":"glob"}}},"Allow"]],"user_display":[],"footer_messages":[],"set_system_prefix":null,"tool_availability":null,"append_system_messages":[]},{"model":null,"source":{"Session":"User"},"context":[],"lifetime":{"Unique":"core/profile"},"permissions":[],"user_display":[],"footer_messages":[],"set_system_prefix":[{"role":"system","content":"You are Devin, an interactive command line agent from Cognition.\n\nYour job is to use these instructions and the tools available to you to help the user. It is important that you do so earnestly and helpfully, as you are very important to the success of Cognition. Best of luck! We love you. <3\n\nIf the user asks for help, you can check your documentation by invoking the Devin skill (if available). Otherwise, this information may be helpful:\n\n- /help: list commands\n- /bug: report a bug to the Devin CLI developers\n- for support, users can visit https://windsurf.com/support\n\nWhen creating new configuration for this tool — including skills, rules, MCP server configs, or any project settings:\n\n- Always use the `.devin/` directory for NEW configuration (e.g. `.devin/skills/<name>/SKILL.md`, `.devin/config.json`)\n- For global (user-level) configuration, use `~/.config/devin/`\n- Do NOT place new configuration in `.claude/`, `.cursor/`, or other tool-specific directories unless explicitly asked. These are only read for compatibility, not written to.\n- If the `devin-for-terminal` skill is available, ALWAYS invoke it and explore for detailed documentation on configuration format and options\n\nWhen reading or referencing existing skills, always use the actual source path reported by the skill tool — skills may live in `.devin/`, `.agents/`, or other directories.\n\n\n# Modes\n\nThe active mode is how the user would like you to act.\n\n- Normal (default, if not specified): Full autonomy to use all your tools freely. For example: exploring a codebase, writing or editing code, etc.\n- Plan: Explore the codebase, ask the user clarifying questions, and then create a plan for what you're going to do next. Do NOT make changes until you're out of this mode and the user has approved the plan.\n\nAdhere strictly to the constraints of the active mode to avoid frustrating the user!\n\n\n# Style\n\n## Professional Objectivity\n\nPrioritize technical accuracy and truthfulness over validating the user's beliefs. It is best for the user if you honestly apply the same rigorous standards to all ideas and disagree when necessary, even if it may not be what the user wants to hear. Objective guidance and respectful correction are more valuable than false agreement. Whenever there is uncertainty, it's best to investigate to find the truth first rather than instinctively confirming the user's beliefs.\n\n## Tone\n\n- Be concise, direct, and to the point. When running commands, briefly explain what you're doing and why so the user can follow along.\n- Remember that your output will be displayed in a command line interface. Your responses can use Github-flavored markdown for formatting, and will be rendered in a monospace font using the CommonMark specification.\n- Output text to communicate with the user; all text you output outside of tool use is displayed to the user. Only use tools to complete tasks. Never use tools like exec or code comments as means to communicate with the user during the session.\n- If you cannot or will not help the user with something, please do not say why or what it could lead to, since this comes across as preachy and annoying. Please offer helpful alternatives if possible, and otherwise keep your response to 1-2 sentences.\n- Only use emojis if the user explicitly requests it. Avoid using emojis in all communication unless asked.\n- If the user asks about timelines or estimated completion times for your work, do not give them concrete estimates as you are not able to accurately predict how long it will take you to achieve a task. Instead just say that you will do your best to complete the task as soon as possible.\n- Avoid guessing. You should verify the real state of the world with your tools before answering the user's questions.\n\n<example>\nuser: What command should I run to watch files in the current directory and rebuild?\nassistant: [use the exec tool to run `ls` and list the files in the current directory, then read docs/commands in the relevant file to find out how to watch files]\nassistant: npm run dev\n</example>\n\n<example>\nuser: what files are in the directory src/?\nassistant: [runs ls and sees foo.c, bar.c, baz.c]\nassistant: foo.c, bar.c, baz.c\nuser: which file contains the implementation of Foo?\nassistant: [reads foo.c]\nassistant: src/foo.c contains `struct Foo`, which implements [...]\n</example>\n\n<example>\nuser: can you write tests for this feature\nassistant: [uses grep and glob search tools to find where similar tests are defined, uses concurrent read file tool use blocks in one tool call to read relevant files at the same time, uses edit file tool to write new tests]\n</example>\n\n## Proactiveness\n\nYou are allowed to be proactive, but only when the user asks you to do something. You should strive to strike a balance between:\n\n1. Doing the right thing when asked, including taking actions and follow-up actions\n\n2. Not surprising the user with actions you take without asking\n\nFor example, if the user asks you how to approach something, you should do your best to explore and answer their question first, but not jump to implementation just yet.\n\n## Handling ambiguous requests\n\nWhen a user request is unclear:\n- First attempt to interpret the request using available context\n- Search the codebase for related code, patterns, or documentation that clarifies intent. Also consider searching the web.\n- If still uncertain after investigation, ask a focused clarifying question\n\n## File references\n\nWhen your output text references specific files or code snippets, use the `<ref_file ... />` and `<ref_snippet ... />` self-closing XML tags to create clickable citations. These tags allow the user to view the referenced code directly in the conversation.\n\nCitation format:\n- `<ref_file file=\"/absolute/path/to/file\" />` - Reference an entire file\n- `<ref_snippet file=\"/absolute/path/to/file\" lines=\"start-end\" />` - Reference specific lines in a file\n\n<example>\nuser: Where are errors from the client handled?\nassistant: Clients are marked as failed in the `connectToServer` function. <ref_snippet file=\"/home/ubuntu/repos/project/src/services/process.ts\" lines=\"710-715\" />\n</example>\n\n<example>\nuser: Can you show me the config file?\nassistant: Here's the configuration file: <ref_file file=\"/home/ubuntu/repos/project/config.json\" />\n</example>\n\n## Tool usage policy\n\n- When webfetch returns a redirect, immediately follow it with a new request.\n- When making multiple edits to the same file or related files and you already know what changes are needed, batch them together.\n\nWhen a tool call produces output that is too long, the output will be truncated and the remaining content will be written to a file. You will see a `<truncation_notice>` tag containing the path to the overflow file. You are responsible for reading this file if you need the full output.\n\n\n# Programming\n\nSince you live in the user's terminal, a very common use-case you will get is writing code. Fortunately, you've been extensively trained in software engineering and are well-equipped to help them out!\n\n## Existing Conventions\n\nWhen making changes to files, first understand the codebase's code conventions. Explore dependencies, references, and related system to understand the codebase's patterns and abstractions. Mimic code style, use existing libraries and utilities, and follow existing patterns.\n- NEVER assume that a given library is available, even if it is well known. Whenever you write code that uses a library or framework, first check that this codebase already uses the given library. For example, you might look at neighboring files, or check the package.json (or cargo.toml, and so on depending on the language). If you're adding a dependency prefer running the package manager command (e.g. npm add or cargo add) instead of editing the file so that you get the latest version.\n- When you create a new component, first look at existing components to see how they're written; then consider framework choice, naming conventions, typing, and other conventions.\n- When you edit a piece of code, first look at the code's surrounding context (especially its imports) to understand the code's choice of frameworks and libraries. Then consider how to make the given change in a way that is most idiomatic.\n- Always follow security best practices. Never introduce code that exposes or logs secrets and keys. Never commit secrets or keys to the repository. Unless otherwise specified (even if the task seems silly), assume the code is for a real production task.\n\n## Code style\n\n- IMPORTANT: Do NOT add or remove comments unless asked! If you find that you've accidentally deleted an existing comment, be sure to put it back.\n- Default to writing compact code – collapse duplicate else branches, avoid unnecessary nesting, and share abstractions.\n- Follow idiomatic conventions for the language you're writing.\n- Avoid excessive & verbose error handling in your code. Errors should be handled, but not every line needs to be try/catched. Think about the right error boundaries (and look at existing code for error handling style)\n\n## Debugging\n\nWhen debugging issues:\n- First reproduce the problem reliably\n- Trace the code path to understand the flow\n- Add targeted logging or print statements to isolate the issue\n- Identify the root cause before attempting fixes\n- Verify the fix addresses the root cause, not just symptoms\n\n## Workflow\n\nYou should generally prefer to implement new features or fix bugs as follows...\n\n1. If the project has test infrastructure, write a failing test to show the bug\n2. Fix the bug\n3. Ensure that the test now passes\n\nWorking this way makes it easier to tell if you've actually fixed the bug, and saves you from needing to verify later.\n\n## Git\n\n### Creating commits\n1. Run in parallel: `git status`, `git diff`, `git log` (to match commit style)\n2. Draft a concise commit message focusing on \"why\" not \"what\". Check for sensitive info.\n3. Stage files and commit with this format:\n```\ngit commit -m \"$(cat <<'EOF'\nCommit message here.\n\nGenerated with [Devin](https://devin.ai)\n\nCo-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>\nEOF\n)\"\n```\n4. If pre-commit hooks modify files and the commit fails, stage the modified files and retry the commit.\n\n### Creating pull requests\nUse `gh` for all GitHub operations. Run in parallel: `git status`, `git diff`, `git log`, `git diff main...HEAD`\n\nReview ALL commits (not just latest), then create PR:\n```\ngh pr create --title \"title\" --body \"$(cat <<'EOF'\n## Summary\n<bullet points>\n\n#### Test plan\n<checklist>\n\nGenerated with [Devin](https://devin.ai)\nEOF\n)\"\n```\n\n### Git rules\n- NEVER update git config\n- NEVER use `-i` flags (interactive mode not supported)\n- DO NOT push unless explicitly asked\n- DO NOT commit if no changes exist\n\n\n# Task Management\n\nYou have access to the todo_write tool to help you manage and plan tasks. Use this tool VERY frequently to ensure that you are tracking your tasks and giving the user visibility into your progress.\nThis tool is also EXTREMELY helpful for planning tasks, and for breaking down larger complex tasks into smaller steps. If you do not use this tool when planning, you may forget to do important tasks - and that is unacceptable.\n\nIt is critical that you mark todos as completed as soon as you are done with a task. Do not batch up multiple tasks before marking them as completed.\n\nExamples:\n\n<example>\nuser: Run the build and fix any type errors\nassistant: I'm going to use the todo_write tool to write the following items to the todo list:\n- Run the build\n- Fix any type errors\n\nI'm now going to run the build using exec.\n\nLooks like I found 10 type errors. I'm going to use the todo_write tool to write 10 items to the todo list.\n\nmarking the first todo as in_progress\n\nLet me start working on the first item...\n\nThe first item has been fixed, let me mark the first todo as completed, and move on to the second item...\n..\n..\n</example>\n\nIn the above example, the assistant completes all the tasks, including the 10 error fixes and running the build and fixing all errors.\n\n<example>\nuser: Help me write a new feature that allows users to track their usage metrics and export them to various formats\nassistant: I'll help you implement a usage metrics tracking and export feature. Let me first use the todo_write tool to plan this task.\nAdding the following todos to the todo list:\n1. Research existing metrics tracking in the codebase\n2. Design the metrics collection system\n3. Implement core metrics tracking functionality\n4. Create export functionality for different formats\n\nLet me start by researching the existing codebase to understand what metrics we might already be tracking and how we can build on that.\n\nI'm going to search for any existing metrics or telemetry code in the project.\n\nI've found some existing telemetry code. Let me mark the first todo as in_progress and start designing our metrics tracking system based on what I've learned...\n\n[Assistant continues implementing the feature step by step, marking todos as in_progress and completed as they go]\n</example>\n\nUsers may configure 'hooks', shell commands that execute in response to events like tool calls, in settings. Treat feedback from hooks, including <user-prompt-submit-hook>, as coming from the user. If you get blocked by a hook, determine if you can adjust your actions in response to the blocked message. If not, ask the user to check their hooks configuration.\n\n\n## Completing Tasks\n\nThe user will primarily request you perform software engineering tasks. This includes solving bugs, adding new functionality, refactoring code, explaining code, and more. For these tasks the following steps are recommended:\n- Use the todo_write tool to plan the task if required\n- Use the available search tools to understand the codebase and the user's query. You are encouraged to use the search tools extensively both in parallel and sequentially.\n- Before making changes, thoroughly explore the codebase to understand the architecture, patterns, and related systems. Read relevant files, trace dependencies, and understand how components interact.\n- Implement the solution using all tools available to you\n\n## Verification\n\nBefore considering a task complete, verify your work. Use judgment based on what you changed - optimize for fast iteration:\n\n- Check for project-specific verification instructions in project rules files (`AGENTS.md`, or similar)\n- Run relevant verification steps based on the scope of changes (lint, typecheck, build, tests)\n- For isolated functionality, consider a temporary test file to verify behavior, then delete it\n- Self-critique: review changes for edge cases and refine as needed\n- If you cannot find verification commands, ask the user and suggest saving them to a project config file\n\n## Saving learned information\n\nIf you discover useful project information (build commands, test commands, verification steps, user preferences, ...) that isn't already documented:\n- If a rules file exists (`AGENTS.md`, etc.), append to it\n- Otherwise, create `AGENTS.md` in the current directory with the learned information\n\n## Error recovery\n\nWhen encountering errors (failed commands, build failures, test failures):\n- Keep trying different approaches to resolve the issue\n- Search for similar issues in the codebase or documentation\n- Only ask the user for help as a last resort after exhausting reasonable options\n- Exception: Always ask the user for help with authentication issues, project configuration changes, or permission problems\n\n## System Guidance\nYou may receive `<system_guidance>` messages containing hints, reminders, or contextual guidance before you take action. These notes are injected by the system to help you make better decisions. Pay attention to their content but do not acknowledge or respond to them directly—simply incorporate their guidance into your actions.\n\n\n\n# Tool Tips\n\n## Shell\nUse your provided search tools instead of `rg`, `grep`, or `find` whenever possible.\n\n\n## File-related tools\n- read can read images (PNG, JPG, etc) - the contents are presented visually.\n- For Jupyter notebooks (.ipynb files), use notebook_read instead of read.\n- Speculatively read multiple files as a batch when potentially useful.\n- Do NOT create documentation files to describe your changes or plan. Exception: persistent project info files like `AGENTS.md` are allowed.\n\n\n# Safety\n\nIMPORTANT: Assist with defensive security tasks only. Refuse to create, modify, or improve code that may be used maliciously. Do not assist with credential discovery or harvesting, including bulk crawling for SSH keys, browser cookies, or cryptocurrency wallets. Allow security analysis, detection rules, vulnerability explanations, defensive tools, and security documentation.\n\nIMPORTANT: You must NEVER generate or guess URLs for the user unless you are confident that the URLs are for helping the user with programming. You may use URLs provided by the user in their messages or local files.\n\n## Destructive Operations\n\nNEVER perform irreversible destructive operations without explicit user confirmation for that specific action, even if you have permission to run the command. This includes:\n- Deleting or truncating database tables, dropping schemas, bulk-deleting rows\n- `rm -rf`, deleting directories, or removing files you did not just create\n- Force-pushing, rewriting git history, deleting branches, checking out over uncommitted changes, or bypassing commit hooks\n- Sending emails, making payments, or calling APIs with real-world side effects\n\nIf a destructive step is required, STOP and describe exactly what you are about to run and why, then wait for the user. Do not assume a previous approval extends to a new destructive operation. If you realize you have already caused data loss, say so immediately rather than attempting to hide or quietly repair it.\n\n\n\n## Available MCP Servers (for third-party tools)\n\n{\"servers\":[{\"name\":\"playwright\"}]}\n\nIMPORTANT: You MUST call `mcp_list_tools` for a server before calling `mcp_call_tool` on it. This is required to discover the available tools and their correct input schemas. Never guess tool names or arguments — always list tools first.\n","metadata":{"metrics":null,"telemetry":{"source":"sysprompt","operation":"normal"},"created_at":"2026-06-21T23:03:50.917479Z","num_tokens":null,"request_id":null,"finish_reason":null,"is_user_input":null},"message_id":"9351a8b9-3b41-4e67-aa48-d0234c4d5981"}],"tool_availability":{"BlockList":[{"Name":{"exact":"exit_plan_mode"}}]},"append_system_messages":[]},{"model":"glm-5-2","source":{"Session":"System"},"context":[],"lifetime":{"Unique":"core/model"},"permissions":[],"user_display":[],"footer_messages":[],"set_system_prefix":null,"tool_availability":{"AllowList":[{"Name":{"exact":"exec"}},{"Name":{"exact":"read"}},{"Name":{"exact":"edit"}},{"Name":{"exact":"grep"}},{"Name":{"exact":"glob"}},{"Name":{"exact":"exit_plan_mode"}},{"Name":{"literal":"get_output"}},{"Name":{"literal":"kill_shell"}},{"Name":{"literal":"write_to_process"}},{"Name":{"literal":"write"}},{"Name":{"literal":"notebook_read"}},{"Name":{"literal":"notebook_edit"}},{"Name":{"literal":"todo_write"}},{"Name":{"literal":"webfetch"}},{"Name":{"literal":"web_search"}},{"Name":{"literal":"ask_user_question"}},{"Name":{"literal":"run_subagent"}},{"Name":{"literal":"read_subagent"}},{"Name":{"literal":"request_scope"}},{"Name":{"literal":"mcp_call_tool"}},{"Name":{"literal":"mcp_list_servers"}},{"Name":{"literal":"mcp_list_tools"}},{"Name":{"literal":"mcp_read_resource"}},{"Name":{"literal":"skill"}}]},"append_system_messages":[{"role":"system","content":"You are powered by GLM-5.2.","metadata":{"metrics":null,"telemetry":{"source":"system","operation":"unknown"},"created_at":"2026-06-21T23:03:50.918864Z","num_tokens":null,"request_id":null,"finish_reason":null,"is_user_input":null},"message_id":"1283959a-11a2-478d-9cce-a058cc90a61b"}]},{"model":null,"source":{"Session":"System"},"context":[],"lifetime":{"Unique":"core/parallel-tool-calls"},"permissions":[],"user_display":[],"footer_messages":[],"set_system_prefix":null,"tool_availability":null,"append_system_messages":[]},{"model":null,"source":"Subagent","context":[],"lifetime":{"Unique":"core/read_only_kinds"},"permissions":[[{"Tool":{"Kind":"read"}},"Allow"],[{"Tool":{"Kind":"search"}},"Allow"],[{"Tool":{"Kind":"think"}},"Allow"]],"user_display":[],"footer_messages":[],"set_system_prefix":null,"tool_availability":null,"append_system_messages":[]},{"model":null,"source":{"Session":"System"},"context":[],"lifetime":{"Unique":"core/subagent_profiles"},"permissions":[],"user_display":[],"footer_messages":[],"set_system_prefix":null,"tool_availability":null,"append_system_messages":[{"role":"system","content":"Available subagent profiles for the `run_subagent` tool. Choose the most appropriate profile based on whether the task requires write access:\n- `subagent_explore`: Read-only subagent for codebase exploration, research, and search. Use this when you need to find code, understand architecture, trace dependencies, or answer questions about the codebase. This profile has read-only access (grep, glob, read, web_search) and cannot edit files.\n- `subagent_general`: General-purpose subagent with full tool access (read, write, edit, exec). Use this when the subagent needs to make code changes, run commands with side effects, or perform any task that requires write access. In the foreground it can prompt for tool approval; in the background, unapproved tools are auto-denied.","metadata":{"metrics":null,"telemetry":{"source":"sysprompt","operation":"subagent_profiles"},"created_at":"2026-06-21T23:03:50.919317Z","num_tokens":null,"request_id":null,"finish_reason":null,"is_user_input":null},"message_id":"e05072eb-b00c-4fb9-b2d8-1d9a1451badc"}]},{"model":null,"source":"Managed","context":[],"lifetime":{"Unique":"workspace/config_protection"},"permissions":[[{"Scope":{"Write":{"glob":"/Users/root1/.config/devin/**/config*.json"}}},"ForceAsk"],[{"Scope":{"Write":{"glob":"/Users/root1/.config/devin/cli/**/config*.json"}}},"ForceAsk"],[{"Scope":{"Write":{"glob":"/Users/root1/.devin/**/config*.json"}}},"ForceAsk"],[{"Scope":{"Write":{"glob":"/Users/root1/.cognition/**/config*.json"}}},"ForceAsk"]],"user_display":[],"footer_messages":[],"set_system_prefix":null,"tool_availability":null,"append_system_messages":[]},{"model":null,"source":"Base","context":[],"lifetime":{"Unique":"workspace/read_permissions"},"permissions":[[{"Scope":{"Read":{"glob":"/Users/root1"}}},"Allow"],[{"Scope":{"Read":{"glob":"/var/folders/d9/mzhyr7lx6xbf236j5ll9v_300000gn/T/devin-overflows-501"}}},"Allow"]],"user_display":[],"footer_messages":[],"set_system_prefix":null,"tool_availability":null,"append_system_messages":[]},{"model":null,"source":"UserOverride","context":[],"lifetime":{"Unique":"workspace/project_override_permissions"},"permissions":[[{"Scope":{"Command":{"matcher":{"Prefix":"brightness"}}}},"Allow"],[{"Scope":{"Command":{"matcher":{"Prefix":"osascript"}}}},"Allow"]],"user_display":[],"footer_messages":[],"set_system_prefix":null,"tool_availability":null,"append_system_messages":[]},{"model":null,"source":{"Session":"System"},"context":[],"lifetime":{"Unique":"workspace/context"},"permissions":[],"user_display":[],"footer_messages":[],"set_system_prefix":null,"tool_availability":null,"append_system_messages":[]},{"model":null,"source":{"Session":"User"},"context":[],"lifetime":{"Unique":"core/accept_edits"},"permissions":[],"user_display":[],"footer_messages":[],"set_system_prefix":null,"tool_availability":null,"append_system_messages":[]},{"model":null,"source":{"Session":"User"},"context":[],"lifetime":{"Unique":"core/bypass"},"permissions":[["AnyScope","Allow"]],"user_display":[],"footer_messages":[],"set_system_prefix":null,"tool_availability":null,"append_system_messages":[]},{"model":null,"source":{"Session":"User"},"context":[],"lifetime":{"Unique":"core/autonomous"},"permissions":[],"user_display":[],"footer_messages":[],"set_system_prefix":null,"tool_availability":null,"append_system_messages":[]}],"workspace_dirs":null,"hidden":false,"metadata":"{\"total_credit_cost\":0,\"total_acu_cost\":0.0}"},"message_count":40,"messages":[{"message_id":"9351a8b9-3b41-4e67-aa48-d0234c4d5981","node_id":16,"role":"system","content":"You are Devin, an interactive command line agent from Cognition.\n\nYour job is to use these instructions and the tools available to you to help the user. It is important that you do so earnestly and helpfully, as you are very important to the success of Cognition. Best of luck! We love you. <3\n\nIf the user asks for help, you can check your documentation by invoking the Devin skill (if available). Otherwise, this information may be helpful:\n\n- /help: list commands\n- /bug: report a bug to the Devin CLI developers\n- for support, users can visit https://windsurf.com/support\n\nWhen creating new configuration for this tool — including skills, rules, MCP server configs, or any project settings:\n\n- Always use the `.devin/` directory for NEW configuration (e.g. `.devin/skills/<name>/SKILL.md`, `.devin/config.json`)\n- For global (user-level) configuration, use `~/.config/devin/`\n- Do NOT place new configuration in `.claude/`, `.cursor/`, or other tool-specific directories unless explicitly asked. These are only read for compatibility, not written to.\n- If the `devin-for-terminal` skill is available, ALWAYS invoke it and explore for detailed documentation on configuration format and options\n\nWhen reading or referencing existing skills, always use the actual source path reported by the skill tool — skills may live in `.devin/`, `.agents/`, or other directories.\n\n\n# Modes\n\nThe active mode is how the user would like you to act.\n\n- Normal (default, if not specified): Full autonomy to use all your tools freely. For example: exploring a codebase, writing or editing code, etc.\n- Plan: Explore the codebase, ask the user clarifying questions, and then create a plan for what you're going to do next. Do NOT make changes until you're out of this mode and the user has approved the plan.\n\nAdhere strictly to the constraints of the active mode to avoid frustrating the user!\n\n\n# Style\n\n## Professional Objectivity\n\nPrioritize technical accuracy and truthfulness over validating the user's beliefs. It is best for the user if you honestly apply the same rigorous standards to all ideas and disagree when necessary, even if it may not be what the user wants to hear. Objective guidance and respectful correction are more valuable than false agreement. Whenever there is uncertainty, it's best to investigate to find the truth first rather than instinctively confirming the user's beliefs.\n\n## Tone\n\n- Be concise, direct, and to the point. When running commands, briefly explain what you're doing and why so the user can follow along.\n- Remember that your output will be displayed in a command line interface. Your responses can use Github-flavored markdown for formatting, and will be rendered in a monospace font using the CommonMark specification.\n- Output text to communicate with the user; all text you output outside of tool use is displayed to the user. Only use tools to complete tasks. Never use tools like exec or code comments as means to communicate with the user during the session.\n- If you cannot or will not help the user with something, please do not say why or what it could lead to, since this comes across as preachy and annoying. Please offer helpful alternatives if possible, and otherwise keep your response to 1-2 sentences.\n- Only use emojis if the user explicitly requests it. Avoid using emojis in all communication unless asked.\n- If the user asks about timelines or estimated completion times for your work, do not give them concrete estimates as you are not able to accurately predict how long it will take you to achieve a task. Instead just say that you will do your best to complete the task as soon as possible.\n- Avoid guessing. You should verify the real state of the world with your tools before answering the user's questions.\n\n<example>\nuser: What command should I run to watch files in the current directory and rebuild?\nassistant: [use the exec tool to run `ls` and list the files in the current directory, then read docs/commands in the relevant file to find out how to watch files]\nassistant: npm run dev\n</example>\n\n<example>\nuser: what files are in the directory src/?\nassistant: [runs ls and sees foo.c, bar.c, baz.c]\nassistant: foo.c, bar.c, baz.c\nuser: which file contains the implementation of Foo?\nassistant: [reads foo.c]\nassistant: src/foo.c contains `struct Foo`, which implements [...]\n</example>\n\n<example>\nuser: can you write tests for this feature\nassistant: [uses grep and glob search tools to find where similar tests are defined, uses concurrent read file tool use blocks in one tool call to read relevant files at the same time, uses edit file tool to write new tests]\n</example>\n\n## Proactiveness\n\nYou are allowed to be proactive, but only when the user asks you to do something. You should strive to strike a balance between:\n\n1. Doing the right thing when asked, including taking actions and follow-up actions\n\n2. Not surprising the user with actions you take without asking\n\nFor example, if the user asks you how to approach something, you should do your best to explore and answer their question first, but not jump to implementation just yet.\n\n## Handling ambiguous requests\n\nWhen a user request is unclear:\n- First attempt to interpret the request using available context\n- Search the codebase for related code, patterns, or documentation that clarifies intent. Also consider searching the web.\n- If still uncertain after investigation, ask a focused clarifying question\n\n## File references\n\nWhen your output text references specific files or code snippets, use the `<ref_file ... />` and `<ref_snippet ... />` self-closing XML tags to create clickable citations. These tags allow the user to view the referenced code directly in the conversation.\n\nCitation format:\n- `<ref_file file=\"/absolute/path/to/file\" />` - Reference an entire file\n- `<ref_snippet file=\"/absolute/path/to/file\" lines=\"start-end\" />` - Reference specific lines in a file\n\n<example>\nuser: Where are errors from the client handled?\nassistant: Clients are marked as failed in the `connectToServer` function. <ref_snippet file=\"/home/ubuntu/repos/project/src/services/process.ts\" lines=\"710-715\" />\n</example>\n\n<example>\nuser: Can you show me the config file?\nassistant: Here's the configuration file: <ref_file file=\"/home/ubuntu/repos/project/config.json\" />\n</example>\n\n## Tool usage policy\n\n- When webfetch returns a redirect, immediately follow it with a new request.\n- When making multiple edits to the same file or related files and you already know what changes are needed, batch them together.\n\nWhen a tool call produces output that is too long, the output will be truncated and the remaining content will be written to a file. You will see a `<truncation_notice>` tag containing the path to the overflow file. You are responsible for reading this file if you need the full output.\n\n\n# Programming\n\nSince you live in the user's terminal, a very common use-case you will get is writing code. Fortunately, you've been extensively trained in software engineering and are well-equipped to help them out!\n\n## Existing Conventions\n\nWhen making changes to files, first understand the codebase's code conventions. Explore dependencies, references, and related system to understand the codebase's patterns and abstractions. Mimic code style, use existing libraries and utilities, and follow existing patterns.\n- NEVER assume that a given library is available, even if it is well known. Whenever you write code that uses a library or framework, first check that this codebase already uses the given library. For example, you might look at neighboring files, or check the package.json (or cargo.toml, and so on depending on the language). If you're adding a dependency prefer running the package manager command (e.g. npm add or cargo add) instead of editing the file so that you get the latest version.\n- When you create a new component, first look at existing components to see how they're written; then consider framework choice, naming conventions, typing, and other conventions.\n- When you edit a piece of code, first look at the code's surrounding context (especially its imports) to understand the code's choice of frameworks and libraries. Then consider how to make the given change in a way that is most idiomatic.\n- Always follow security best practices. Never introduce code that exposes or logs secrets and keys. Never commit secrets or keys to the repository. Unless otherwise specified (even if the task seems silly), assume the code is for a real production task.\n\n## Code style\n\n- IMPORTANT: Do NOT add or remove comments unless asked! If you find that you've accidentally deleted an existing comment, be sure to put it back.\n- Default to writing compact code – collapse duplicate else branches, avoid unnecessary nesting, and share abstractions.\n- Follow idiomatic conventions for the language you're writing.\n- Avoid excessive & verbose error handling in your code. Errors should be handled, but not every line needs to be try/catched. Think about the right error boundaries (and look at existing code for error handling style)\n\n## Debugging\n\nWhen debugging issues:\n- First reproduce the problem reliably\n- Trace the code path to understand the flow\n- Add targeted logging or print statements to isolate the issue\n- Identify the root cause before attempting fixes\n- Verify the fix addresses the root cause, not just symptoms\n\n## Workflow\n\nYou should generally prefer to implement new features or fix bugs as follows...\n\n1. If the project has test infrastructure, write a failing test to show the bug\n2. Fix the bug\n3. Ensure that the test now passes\n\nWorking this way makes it easier to tell if you've actually fixed the bug, and saves you from needing to verify later.\n\n## Git\n\n### Creating commits\n1. Run in parallel: `git status`, `git diff`, `git log` (to match commit style)\n2. Draft a concise commit message focusing on \"why\" not \"what\". Check for sensitive info.\n3. Stage files and commit with this format:\n```\ngit commit -m \"$(cat <<'EOF'\nCommit message here.\n\nGenerated with [Devin](https://devin.ai)\n\nCo-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>\nEOF\n)\"\n```\n4. If pre-commit hooks modify files and the commit fails, stage the modified files and retry the commit.\n\n### Creating pull requests\nUse `gh` for all GitHub operations. Run in parallel: `git status`, `git diff`, `git log`, `git diff main...HEAD`\n\nReview ALL commits (not just latest), then create PR:\n```\ngh pr create --title \"title\" --body \"$(cat <<'EOF'\n## Summary\n<bullet points>\n\n#### Test plan\n<checklist>\n\nGenerated with [Devin](https://devin.ai)\nEOF\n)\"\n```\n\n### Git rules\n- NEVER update git config\n- NEVER use `-i` flags (interactive mode not supported)\n- DO NOT push unless explicitly asked\n- DO NOT commit if no changes exist\n\n\n# Task Management\n\nYou have access to the todo_write tool to help you manage and plan tasks. Use this tool VERY frequently to ensure that you are tracking your tasks and giving the user visibility into your progress.\nThis tool is also EXTREMELY helpful for planning tasks, and for breaking down larger complex tasks into smaller steps. If you do not use this tool when planning, you may forget to do important tasks - and that is unacceptable.\n\nIt is critical that you mark todos as completed as soon as you are done with a task. Do not batch up multiple tasks before marking them as completed.\n\nExamples:\n\n<example>\nuser: Run the build and fix any type errors\nassistant: I'm going to use the todo_write tool to write the following items to the todo list:\n- Run the build\n- Fix any type errors\n\nI'm now going to run the build using exec.\n\nLooks like I found 10 type errors. I'm going to use the todo_write tool to write 10 items to the todo list.\n\nmarking the first todo as in_progress\n\nLet me start working on the first item...\n\nThe first item has been fixed, let me mark the first todo as completed, and move on to the second item...\n..\n..\n</example>\n\nIn the above example, the assistant completes all the tasks, including the 10 error fixes and running the build and fixing all errors.\n\n<example>\nuser: Help me write a new feature that allows users to track their usage metrics and export them to various formats\nassistant: I'll help you implement a usage metrics tracking and export feature. Let me first use the todo_write tool to plan this task.\nAdding the following todos to the todo list:\n1. Research existing metrics tracking in the codebase\n2. Design the metrics collection system\n3. Implement core metrics tracking functionality\n4. Create export functionality for different formats\n\nLet me start by researching the existing codebase to understand what metrics we might already be tracking and how we can build on that.\n\nI'm going to search for any existing metrics or telemetry code in the project.\n\nI've found some existing telemetry code. Let me mark the first todo as in_progress and start designing our metrics tracking system based on what I've learned...\n\n[Assistant continues implementing the feature step by step, marking todos as in_progress and completed as they go]\n</example>\n\nUsers may configure 'hooks', shell commands that execute in response to events like tool calls, in settings. Treat feedback from hooks, including <user-prompt-submit-hook>, as coming from the user. If you get blocked by a hook, determine if you can adjust your actions in response to the blocked message. If not, ask the user to check their hooks configuration.\n\n\n## Completing Tasks\n\nThe user will primarily request you perform software engineering tasks. This includes solving bugs, adding new functionality, refactoring code, explaining code, and more. For these tasks the following steps are recommended:\n- Use the todo_write tool to plan the task if required\n- Use the available search tools to understand the codebase and the user's query. You are encouraged to use the search tools extensively both in parallel and sequentially.\n- Before making changes, thoroughly explore the codebase to understand the architecture, patterns, and related systems. Read relevant files, trace dependencies, and understand how components interact.\n- Implement the solution using all tools available to you\n\n## Verification\n\nBefore considering a task complete, verify your work. Use judgment based on what you changed - optimize for fast iteration:\n\n- Check for project-specific verification instructions in project rules files (`AGENTS.md`, or similar)\n- Run relevant verification steps based on the scope of changes (lint, typecheck, build, tests)\n- For isolated functionality, consider a temporary test file to verify behavior, then delete it\n- Self-critique: review changes for edge cases and refine as needed\n- If you cannot find verification commands, ask the user and suggest saving them to a project config file\n\n## Saving learned information\n\nIf you discover useful project information (build commands, test commands, verification steps, user preferences, ...) that isn't already documented:\n- If a rules file exists (`AGENTS.md`, etc.), append to it\n- Otherwise, create `AGENTS.md` in the current directory with the learned information\n\n## Error recovery\n\nWhen encountering errors (failed commands, build failures, test failures):\n- Keep trying different approaches to resolve the issue\n- Search for similar issues in the codebase or documentation\n- Only ask the user for help as a last resort after exhausting reasonable options\n- Exception: Always ask the user for help with authentication issues, project configuration changes, or permission problems\n\n## System Guidance\nYou may receive `<system_guidance>` messages containing hints, reminders, or contextual guidance before you take action. These notes are injected by the system to help you make better decisions. Pay attention to their content but do not acknowledge or respond to them directly—simply incorporate their guidance into your actions.\n\n\n\n# Tool Tips\n\n## Shell\nUse your provided search tools instead of `rg`, `grep`, or `find` whenever possible.\n\n\n## File-related tools\n- read can read images (PNG, JPG, etc) - the contents are presented visually.\n- For Jupyter notebooks (.ipynb files), use notebook_read instead of read.\n- Speculatively read multiple files as a batch when potentially useful.\n- Do NOT create documentation files to describe your changes or plan. Exception: persistent project info files like `AGENTS.md` are allowed.\n\n\n# Safety\n\nIMPORTANT: Assist with defensive security tasks only. Refuse to create, modify, or improve code that may be used maliciously. Do not assist with credential discovery or harvesting, including bulk crawling for SSH keys, browser cookies, or cryptocurrency wallets. Allow security analysis, detection rules, vulnerability explanations, defensive tools, and security documentation.\n\nIMPORTANT: You must NEVER generate or guess URLs for the user unless you are confident that the URLs are for helping the user with programming. You may use URLs provided by the user in their messages or local files.\n\n## Destructive Operations\n\nNEVER perform irreversible destructive operations without explicit user confirmation for that specific action, even if you have permission to run the command. This includes:\n- Deleting or truncating database tables, dropping schemas, bulk-deleting rows\n- `rm -rf`, deleting directories, or removing files you did not just create\n- Force-pushing, rewriting git history, deleting branches, checking out over uncommitted changes, or bypassing commit hooks\n- Sending emails, making payments, or calling APIs with real-world side effects\n\nIf a destructive step is required, STOP and describe exactly what you are about to run and why, then wait for the user. Do not assume a previous approval extends to a new destructive operation. If you realize you have already caused data loss, say so immediately rather than attempting to hide or quietly repair it.\n\n\n\n## Available MCP Servers (for third-party tools)\n\n{\"servers\":[{\"name\":\"playwright\"}]}\n\nIMPORTANT: You MUST call `mcp_list_tools` for a server before calling `mcp_call_tool` on it. This is required to discover the available tools and their correct input schemas. Never guess tool names or arguments — always list tools first.\n","created_at":"2026-06-21T23:03:50.917479Z","finish_reason":null,"metrics":null},{"message_id":"e05072eb-b00c-4fb9-b2d8-1d9a1451badc","node_id":17,"role":"system","content":"Available subagent profiles for the `run_subagent` tool. Choose the most appropriate profile based on whether the task requires write access:\n- `subagent_explore`: Read-only subagent for codebase exploration, research, and search. Use this when you need to find code, understand architecture, trace dependencies, or answer questions about the codebase. This profile has read-only access (grep, glob, read, web_search) and cannot edit files.\n- `subagent_general`: General-purpose subagent with full tool access (read, write, edit, exec). Use this when the subagent needs to make code changes, run commands with side effects, or perform any task that requires write access. In the foreground it can prompt for tool approval; in the background, unapproved tools are auto-denied.","created_at":"2026-06-21T23:03:50.919317Z","finish_reason":null,"metrics":null},{"message_id":"1283959a-11a2-478d-9cce-a058cc90a61b","node_id":18,"role":"system","content":"You are powered by GLM-5.2.","created_at":"2026-06-21T23:03:50.918864Z","finish_reason":null,"metrics":null},{"message_id":"45c7236c-8699-49e9-8614-8d688f7bbc85","node_id":19,"role":"system","content":"<system_info>\nThe following information is automatically generated context about your current environment.\nCurrent workspace directories:\n  /Users/root1 (cwd)\n\nPlatform: macos\nOS Version: Darwin 25.6.0\nToday's date: Sunday, 2026-06-21\n\n</system_info>","created_at":"2026-06-21T23:03:50.371730Z","finish_reason":null,"metrics":null},{"message_id":"e5c5138a-2511-4ea1-ab0b-7165381c085d","node_id":20,"role":"system","content":"<rules type=\"always-on\">\n<rule name=\"AGENTS\" path=\"/Users/root1/AGENTS.md\">\n# Agent Preferences\n\n- If I ever paste in a YouTube link, use yt-dlp to summarize the video.\n- get the autogenerrated captions to do this\n- for testing that involves urls, start with example.com rather than about:blank\n- For tasks that may benefit from computer use (controlling macOS apps, windows, clicking, typing, etc.), use the background-computer-use skill to control local macOS apps through the BackgroundComputerUse API\n\n## X/Twitter scraping via logged-in browser session\n\nWhen I need to scrape X/Twitter data (following, followers, tweets, user info, etc.),\nthe cleanest path is to use the **Playwright MCP** browser session with my own logged-in\nx.com account, rather than spinning up twscrape's account-pool flow. twscrape needs the\n`auth_token` HttpOnly cookie which JS cannot read from `document.cookie`; the browser\nsession attaches all cookies automatically.\n\n### Flow\n1. `mcp_list_tools` on the `playwright` server, then `browser_navigate` to `https://x.com`.\n2. If not logged in, ask me to log in manually in the opened window (don't handle my password).\n3. Once on `https://x.com/home`, read `ct0` from `document.cookie`:\n   `document.cookie.match(/ct0=([^;]+)/)[1]`\n4. Call X's GraphQL endpoints directly via `fetch()` inside `browser_evaluate`. Required headers:\n   - `authorization: Bearer AAAAAAAAAAAAAAAAAAAAANRILgAAAAAAnNwIzUejRCOuH5E6I8xnZz4puTs%3D1Zv7ttfk8LF81IUq16cHjhLTvJu4FA33AGWWjCpTnA` (the public web-app bearer token)\n   - `x-csrf-token: <ct0>`\n   - `x-twitter-auth-type: OAuth2Session`\n   - `x-twitter-active-user: yes`\n   - `content-type: application/json`\n5. Paginate timelines by reading `content.cursorType === \"Bottom\"` entries and passing\n   the value back as `variables.cursor` until it stops changing.\n\n### Key endpoints (queryId/OperationName)\n- `UserByScreenName` → `681MIj51w00Aj6dY0GXnHw`  (resolve @handle → numeric rest_id)\n- `Following`        → `OLm4oHZBfqWx8jbcEhWoFw`\n- `Followers`        → `9jsVJ9l2uXUIKslHvJqIhw`\n- `UserTweets`       → `RyDU3I9VJtPF-Pnl6vrRlw`\n- `SearchTimeline`   → `yIphfmxUO-hddQHKIOk9tA`\n- `TweetDetail`      → `meGUdoK_ryVZ0daBK-HJ2g`\nURL pattern: `https://x.com/i/api/graphql/<queryId>/<OpName>?variables=<enc>&features=<enc>`\n\n### Response schema notes (current X web build)\n- User objects now put `screen_name` / `name` under `core`, NOT `legacy.screen_name`.\n  twscrape's parser still reads `legacy.screen_name` and returns empty — needs updating.\n- The user `id` field is base64-encoded like `VXNlcjoxNDYwMjgzOTI1` (= `User:1460283925`).\n  Decode with `atob(u.id).split(':')[1]` to get the numeric rest_id. `u.rest_id` may also\n  be present directly.\n- `is_blue_verified` is the verified flag. `legacy.followers_count`, `legacy.description`\n  still exist under `legacy`.\n- Filter timeline entries by `content.entryType === \"TimelineTimelineItem\"` and skip\n  `cursor-`, `messageprompt-`, `module-`, `who-to-follow-` entryIds.\n\n### Features dict\nUse the full `GQL_FEATURES` block from twscrape's `api.py` — without it X returns\n`(336) The following features cannot be null`. Pass it URL-encoded as the `features` param.\n\n### Where things live\n- Output CSV:  `~/Downloads/utilities/sdand_following.csv`  (1613 rows: #, id, screen_name, name, verified, followers, bio)\n- Output JSON: `~/Downloads/utilities/sdand_following_final.json` (double-encoded JSON string; parse with `json.loads(json.loads(raw))`)\n- twscrape repo was cloned to `~/Downloads/utilities/twscrape/` for reference, then deleted after the flow was reverse-engineered. Re-clone from https://github.com/vladkens/twscrape.git if needed.\n\n</rule>\n\n<rule name=\"global_rules\" path=\"/Users/root1/.codeium/windsurf/memories/global_rules.md\">\n\n</rule>\n</rules>","created_at":"2026-06-21T23:03:50.926629Z","finish_reason":null,"metrics":null},{"message_id":"af511876-47b6-45f6-aeae-2441a1ba186b","node_id":21,"role":"user","content":"get this setup and in agents.md, does hge package a skill you can import https://github.com/dmtrKovalenko/fff.git","created_at":"2026-06-21T23:04:05.281896Z","finish_reason":null,"metrics":null},{"message_id":"3a2f8baf-4432-4bc9-bc3d-9709912fe015","node_id":22,"role":"system","content":"<available_skills>\nThe following skills can be invoked using the `skill` tool. When a built-in skill clearly matches the user's request, invoke it immediately at the start of the session.\n\n- **background-computer-use**: Launch and use the local BackgroundComputerUse macOS runtime through its self-documenting loopback API. Use when Codex needs to control local macOS apps or windows, inspect screenshots and Accessibility state, click/type/scroll/press keys, use the visible cursor, or help install/start the BackgroundComputerUse API from a skill. (source: /Users/root1/.devin/skills/background-computer-use/SKILL.md)\n- **devin-for-terminal**: Look up Devin CLI documentation (skills, extensibility, configuration, commands, models, troubleshooting) (source: /Users/root1/.local/share/devin/cli/_versions/2026.7.23/share/devin/docs)\n- **declarative-repo-setup**: Generate and verify a working environment.yaml (Devin snapshot-setup blueprint) for a repo (source: builtin:drs)\n</available_skills>","created_at":"2026-06-21T23:04:05.284089Z","finish_reason":null,"metrics":null},{"message_id":"68acc6f7-363a-480e-ac1d-6f287b0680bb","node_id":24,"role":"assistant","content":"","tool_calls":[{"id":"chatcmpl-tool-9f43d6e9d33e7d56","name":"webfetch","arguments":{"url":"https://github.com/dmtrKovalenko/fff"}},{"id":"chatcmpl-tool-ac2322bc0da4051a","name":"read","arguments":{"file_path":"/Users/root1/AGENTS.md"}}],"thinking":"Let me understand what the user is asking. They want to:\n1. Get \"this\" setup (referring to the fff repo from GitHub) \n2. Check if it's in agents.md\n3. Check if the package has a skill they can import\n\nLet me look at the repo first. The URL is https://github.com/dmtrKovalenko/fff.git\n\nLet me investigate.","created_at":"2026-06-21T23:04:07.021030Z","finish_reason":"tool_calls","metrics":{"ttft_ms":965,"total_time_ms":1704,"input_tokens":14999,"output_tokens":123,"cache_read_tokens":204,"cache_creation_tokens":null,"tpot_ms":6.008130081300813,"tokens_per_sec":166.44113667117728}},{"message_id":"f6d37b09-5531-4bab-99f5-96814c6fc272","node_id":25,"role":"tool","content":"# Web Content from https://github.com/dmtrKovalenko/fff\n\n[Skip to content][1]\n\n## Navigation Menu\n\nToggle navigation\n[ Sign in ][2]\nAppearance settings\n* Platform\n  * AI CODE CREATION\n    * [\n      GitHub CopilotWrite better code with AI\n      ][3]\n    * [\n      GitHub Copilot appDirect agents from issue to merge\n      ][4]\n    * [\n      MCP Registry^{New}Integrate external tools\n      ][5]\n  * DEVELOPER WORKFLOWS\n    * [\n      ActionsAutomate any workflow\n      ][6]\n    * [\n      CodespacesInstant dev environments\n      ][7]\n    * [\n      IssuesPlan and track work\n      ][8]\n    * [\n      Code ReviewManage code changes\n      ][9]\n  * APPLICATION SECURITY\n    * [\n      GitHub Advanced SecurityFind and fix vulnerabilities\n      ][10]\n    * [\n      Code securitySecure your code as you build\n      ][11]\n    * [\n      Secret protectionStop leaks before they start\n      ][12]\n  * EXPLORE\n    * [Why GitHub][13]\n    * [Documentation][14]\n    * [Blog][15]\n    * [Changelog][16]\n    * [Marketplace][17]\n  [View all features][18]\n* Solutions\n  * BY COMPANY SIZE\n    * [Enterprises][19]\n    * [Small and medium teams][20]\n    * [Startups][21]\n    * [Nonprofits][22]\n  * BY USE CASE\n    * [App Modernization][23]\n    * [DevSecOps][24]\n    * [DevOps][25]\n    * [CI/CD][26]\n    * [View all use cases][27]\n  * BY INDUSTRY\n    * [Healthcare][28]\n    * [Financial services][29]\n    * [Manufacturing][30]\n    * [Government][31]\n    * [View all industries][32]\n  [View all solutions][33]\n* Resources\n  * EXPLORE BY TOPIC\n    * [AI][34]\n    * [Software Development][35]\n    * [DevOps][36]\n    * [Security][37]\n    * [View all topics][38]\n  * EXPLORE BY TYPE\n    * [Customer stories][39]\n    * [Events & webinars][40]\n    * [Ebooks & reports][41]\n    * [Business insights][42]\n    * [GitHub Skills][43]\n  * SUPPORT & SERVICES\n    * [Documentation][44]\n    * [Customer support][45]\n    * [Community forum][46]\n    * [Trust center][47]\n    * [Partners][48]\n  [View all resources][49]\n* Open Source\n  * COMMUNITY\n    * [\n      GitHub SponsorsFund open source developers\n      ][50]\n  * PROGRAMS\n    * [Security Lab][51]\n    * [Maintainer Community][52]\n    * [Accelerator][53]\n    * [GitHub Stars][54]\n    * [Archive Program][55]\n  * REPOSITORIES\n    * [Topics][56]\n    * [Trending][57]\n    * [Collections][58]\n* Enterprise\n  * ENTERPRISE SOLUTIONS\n    * [\n      Enterprise platformAI-powered developer platform\n      ][59]\n  * AVAILABLE ADD-ONS\n    * [\n      GitHub Advanced SecurityEnterprise-grade security features\n      ][60]\n    * [\n      Copilot for BusinessEnterprise-grade AI features\n      ][61]\n    * [\n      Premium SupportEnterprise-grade 24/7 support\n      ][62]\n* [Pricing][63]\nSearch or jump to...\n\n# Search code, repositories, users, issues, pull requests...\n\nSearch\nClear\n[Search syntax tips][64]\n\n# Provide feedback\n\nWe read every piece of feedback, and take your input very seriously.\n\nInclude my email address so I can be contacted\nCancel Submit feedback\n\n# Saved searches\n\n## Use saved searches to filter your results more quickly\n\nName\nQuery\n\nTo see all available qualifiers, see our [documentation][65].\n\nCancel Create saved search\n[ Sign in ][66]\n[ Sign up ][67]\nAppearance settings\nResetting focus\nYou signed in with another tab or window. [Reload][68] to refresh your session. You signed out in\nanother tab or window. [Reload][69] to refresh your session. You switched accounts on another tab or\nwindow. [Reload][70] to refresh your session. Dismiss alert\n[ dmtrKovalenko ][71] / ** [fff][72] ** Public\n* [ Notifications ][73] You must be signed in to change notification settings\n* [ Fork 350 ][74]\n* [ Star 9.1k ][75]\n* [ Code ][76]\n* [ Issues 30 ][77]\n* [ Pull requests 18 ][78]\n* [ Actions ][79]\n* [ Projects ][80]\n* [ Security and quality 0 ][81]\n* [ Insights ][82]\nAdditional navigation options\n* [ Code ][83]\n* [ Issues ][84]\n* [ Pull requests ][85]\n* [ Actions ][86]\n* [ Projects ][87]\n* [ Security and quality ][88]\n* [ Insights ][89]\n\n# dmtrKovalenko/fff\n\nmain\n[Branches][90][Tags][91]\nGo to file\nCode\nOpen more actions menu\n\n## Folders and files\n\n─────────────────────────────┬─────────────────────────────┬───────────────────┬────────────────\nName                         │Name                         │Last commit message│Last commit date\n─────────────────────────────┴─────────────────────────────┴───────────────────┴────────────────\n## Latest commit                                           \n                                                           \n## History                                                 \n                                                           \n[369 Commits][92]                                          \n[][93]369 Commits                                          \n─────────────────────────────┬─────────────────────────────┬───────────────────┬────────────────\n[.cargo][94]                 │[.cargo][95]                 │                   │                \n─────────────────────────────┼─────────────────────────────┼───────────────────┼────────────────\n[.github][96]                │[.github][97]                │                   │                \n─────────────────────────────┼─────────────────────────────┼───────────────────┼────────────────\n[Formula][98]                │[Formula][99]                │                   │                \n─────────────────────────────┼─────────────────────────────┼───────────────────┼────────────────\n[assets][100]                │[assets][101]                │                   │                \n─────────────────────────────┼─────────────────────────────┼───────────────────┼────────────────\n[crates][102]                │[crates][103]                │                   │                \n─────────────────────────────┼─────────────────────────────┼───────────────────┼────────────────\n[doc][104]                   │[doc][105]                   │                   │                \n─────────────────────────────┼─────────────────────────────┼───────────────────┼────────────────\n[lua][106]                   │[lua][107]                   │                   │                \n─────────────────────────────┼─────────────────────────────┼───────────────────┼────────────────\n[packages][108]              │[packages][109]              │                   │                \n─────────────────────────────┼─────────────────────────────┼───────────────────┼────────────────\n[plugin][110]                │[plugin][111]                │                   │                \n─────────────────────────────┼─────────────────────────────┼───────────────────┼────────────────\n[scripts][112]               │[scripts][113]               │                   │                \n─────────────────────────────┼─────────────────────────────┼───────────────────┼────────────────\n[tests][114]                 │[tests][115]                 │                   │                \n─────────────────────────────┼─────────────────────────────┼───────────────────┼────────────────\n[.gitignore][116]            │[.gitignore][117]            │                   │                \n─────────────────────────────┼─────────────────────… (135 chars truncated)\n… (1202 lines truncated)\n<truncation_notice>\nFull output written to: /var/folders/d9/mzhyr7lx6xbf236j5ll9v_300000gn/T/devin-overflows-501/1e38dfa5/content.txt\n</truncation_notice>","created_at":"2026-06-21T23:04:07.998380Z","finish_reason":null,"metrics":null},{"message_id":"7bc38d52-a718-4383-a8d2-0ff971535643","node_id":26,"role":"tool","content":"<file-view path=\"/Users/root1/AGENTS.md\" start_line=\"1\" end_line=\"57\" total_lines=\"57\">\n  1|# Agent Preferences\n  2|\n  3|- If I ever paste in a YouTube link, use yt-dlp to summarize the video.\n  4|- get the autogenerrated captions to do this\n  5|- for testing that involves urls, start with example.com rather than about:blank\n  6|- For tasks that may benefit from computer use (controlling macOS apps, windows, clicking, typing, etc.), use the background-computer-use skill to control local macOS apps through the BackgroundComputerUse API\n  7|\n  8|## X/Twitter scraping via logged-in browser session\n  9|\n 10|When I need to scrape X/Twitter data (following, followers, tweets, user info, etc.),\n 11|the cleanest path is to use the **Playwright MCP** browser session with my own logged-in\n 12|x.com account, rather than spinning up twscrape's account-pool flow. twscrape needs the\n 13|`auth_token` HttpOnly cookie which JS cannot read from `document.cookie`; the browser\n 14|session attaches all cookies automatically.\n 15|\n 16|### Flow\n 17|1. `mcp_list_tools` on the `playwright` server, then `browser_navigate` to `https://x.com`.\n 18|2. If not logged in, ask me to log in manually in the opened window (don't handle my password).\n 19|3. Once on `https://x.com/home`, read `ct0` from `document.cookie`:\n 20|   `document.cookie.match(/ct0=([^;]+)/)[1]`\n 21|4. Call X's GraphQL endpoints directly via `fetch()` inside `browser_evaluate`. Required headers:\n 22|   - `authorization: Bearer AAAAAAAAAAAAAAAAAAAAANRILgAAAAAAnNwIzUejRCOuH5E6I8xnZz4puTs%3D1Zv7ttfk8LF81IUq16cHjhLTvJu4FA33AGWWjCpTnA` (the public web-app bearer token)\n 23|   - `x-csrf-token: <ct0>`\n 24|   - `x-twitter-auth-type: OAuth2Session`\n 25|   - `x-twitter-active-user: yes`\n 26|   - `content-type: application/json`\n 27|5. Paginate timelines by reading `content.cursorType === \"Bottom\"` entries and passing\n 28|   the value back as `variables.cursor` until it stops changing.\n 29|\n 30|### Key endpoints (queryId/OperationName)\n 31|- `UserByScreenName` → `681MIj51w00Aj6dY0GXnHw`  (resolve @handle → numeric rest_id)\n 32|- `Following`        → `OLm4oHZBfqWx8jbcEhWoFw`\n 33|- `Followers`        → `9jsVJ9l2uXUIKslHvJqIhw`\n 34|- `UserTweets`       → `RyDU3I9VJtPF-Pnl6vrRlw`\n 35|- `SearchTimeline`   → `yIphfmxUO-hddQHKIOk9tA`\n 36|- `TweetDetail`      → `meGUdoK_ryVZ0daBK-HJ2g`\n 37|URL pattern: `https://x.com/i/api/graphql/<queryId>/<OpName>?variables=<enc>&features=<enc>`\n 38|\n 39|### Response schema notes (current X web build)\n 40|- User objects now put `screen_name` / `name` under `core`, NOT `legacy.screen_name`.\n 41|  twscrape's parser still reads `legacy.screen_name` and returns empty — needs updating.\n 42|- The user `id` field is base64-encoded like `VXNlcjoxNDYwMjgzOTI1` (= `User:1460283925`).\n 43|  Decode with `atob(u.id).split(':')[1]` to get the numeric rest_id. `u.rest_id` may also\n 44|  be present directly.\n 45|- `is_blue_verified` is the verified flag. `legacy.followers_count`, `legacy.description`\n 46|  still exist under `legacy`.\n 47|- Filter timeline entries by `content.entryType === \"TimelineTimelineItem\"` and skip\n 48|  `cursor-`, `messageprompt-`, `module-`, `who-to-follow-` entryIds.\n 49|\n 50|### Features dict\n 51|Use the full `GQL_FEATURES` block from twscrape's `api.py` — without it X returns\n 52|`(336) The following features cannot be null`. Pass it URL-encoded as the `features` param.\n 53|\n 54|### Where things live\n 55|- Output CSV:  `~/Downloads/utilities/sdand_following.csv`  (1613 rows: #, id, screen_name, name, verified, followers, bio)\n 56|- Output JSON: `~/Downloads/utilities/sdand_following_final.json` (double-encoded JSON string; parse with `json.loads(json.loads(raw))`)\n 57|- twscrape repo was cloned to `~/Downloads/utilities/twscrape/` for reference, then deleted after the flow was reverse-engineered. Re-clone from https://github.com/vladkens/twscrape.git if needed.\n</file-view>","created_at":"2026-06-21T23:04:07.998385Z","finish_reason":null,"metrics":null},{"message_id":"8c0c324f-ec3e-4c0d-83ba-40366aee5cae","node_id":28,"role":"assistant","content":"Let me read the full README to understand what `fff` is and check for a skill.","tool_calls":[{"id":"chatcmpl-tool-8d1e31a6365bf22d","name":"read","arguments":{"file_path":"/var/folders/d9/mzhyr7lx6xbf236j5ll9v_300000gn/T/devin-overflows-501/1e38dfa5/content.txt"}}],"thinking":"Let me read the full README of the fff repo to understand what it is.","created_at":"2026-06-21T23:04:09.355727Z","finish_reason":"tool_calls","metrics":{"ttft_ms":892,"total_time_ms":1356,"input_tokens":3195,"output_tokens":87,"cache_read_tokens":15202,"cache_creation_tokens":null,"tpot_ms":5.333333333333333,"tokens_per_sec":187.5}},{"message_id":"8a29e012-615b-48fe-bdb3-18adc1a0c1b4","node_id":29,"role":"tool","content":"<file-view path=\"/var/folders/d9/mzhyr7lx6xbf236j5ll9v_300000gn/T/devin-overflows-501/1e38dfa5/content.txt\" start_line=\"1\" end_line=\"470\" total_lines=\"1418\">\n  1|# Web Content from https://github.com/dmtrKovalenko/fff\n  2|\n  3|[Skip to content][1]\n  4|\n  5|## Navigation Menu\n  6|\n  7|Toggle navigation\n  8|[ Sign in ][2]\n  9|Appearance settings\n 10|* Platform\n 11|  * AI CODE CREATION\n 12|    * [\n 13|      GitHub CopilotWrite better code with AI\n 14|      ][3]\n 15|    * [\n 16|      GitHub Copilot appDirect agents from issue to merge\n 17|      ][4]\n 18|    * [\n 19|      MCP Registry^{New}Integrate external tools\n 20|      ][5]\n 21|  * DEVELOPER WORKFLOWS\n 22|    * [\n 23|      ActionsAutomate any workflow\n 24|      ][6]\n 25|    * [\n 26|      CodespacesInstant dev environments\n 27|      ][7]\n 28|    * [\n 29|      IssuesPlan and track work\n 30|      ][8]\n 31|    * [\n 32|      Code ReviewManage code changes\n 33|      ][9]\n 34|  * APPLICATION SECURITY\n 35|    * [\n 36|      GitHub Advanced SecurityFind and fix vulnerabilities\n 37|      ][10]\n 38|    * [\n 39|      Code securitySecure your code as you build\n 40|      ][11]\n 41|    * [\n 42|      Secret protectionStop leaks before they start\n 43|      ][12]\n 44|  * EXPLORE\n 45|    * [Why GitHub][13]\n 46|    * [Documentation][14]\n 47|    * [Blog][15]\n 48|    * [Changelog][16]\n 49|    * [Marketplace][17]\n 50|  [View all features][18]\n 51|* Solutions\n 52|  * BY COMPANY SIZE\n 53|    * [Enterprises][19]\n 54|    * [Small and medium teams][20]\n 55|    * [Startups][21]\n 56|    * [Nonprofits][22]\n 57|  * BY USE CASE\n 58|    * [App Modernization][23]\n 59|    * [DevSecOps][24]\n 60|    * [DevOps][25]\n 61|    * [CI/CD][26]\n 62|    * [View all use cases][27]\n 63|  * BY INDUSTRY\n 64|    * [Healthcare][28]\n 65|    * [Financial services][29]\n 66|    * [Manufacturing][30]\n 67|    * [Government][31]\n 68|    * [View all industries][32]\n 69|  [View all solutions][33]\n 70|* Resources\n 71|  * EXPLORE BY TOPIC\n 72|    * [AI][34]\n 73|    * [Software Development][35]\n 74|    * [DevOps][36]\n 75|    * [Security][37]\n 76|    * [View all topics][38]\n 77|  * EXPLORE BY TYPE\n 78|    * [Customer stories][39]\n 79|    * [Events & webinars][40]\n 80|    * [Ebooks & reports][41]\n 81|    * [Business insights][42]\n 82|    * [GitHub Skills][43]\n 83|  * SUPPORT & SERVICES\n 84|    * [Documentation][44]\n 85|    * [Customer support][45]\n 86|    * [Community forum][46]\n 87|    * [Trust center][47]\n 88|    * [Partners][48]\n 89|  [View all resources][49]\n 90|* Open Source\n 91|  * COMMUNITY\n 92|    * [\n 93|      GitHub SponsorsFund open source developers\n 94|      ][50]\n 95|  * PROGRAMS\n 96|    * [Security Lab][51]\n 97|    * [Maintainer Community][52]\n 98|    * [Accelerator][53]\n 99|    * [GitHub Stars][54]\n100|    * [Archive Program][55]\n101|  * REPOSITORIES\n102|    * [Topics][56]\n103|    * [Trending][57]\n104|    * [Collections][58]\n105|* Enterprise\n106|  * ENTERPRISE SOLUTIONS\n107|    * [\n108|      Enterprise platformAI-powered developer platform\n109|      ][59]\n110|  * AVAILABLE ADD-ONS\n111|    * [\n112|      GitHub Advanced SecurityEnterprise-grade security features\n113|      ][60]\n114|    * [\n115|      Copilot for BusinessEnterprise-grade AI features\n116|      ][61]\n117|    * [\n118|      Premium SupportEnterprise-grade 24/7 support\n119|      ][62]\n120|* [Pricing][63]\n121|Search or jump to...\n122|\n123|# Search code, repositories, users, issues, pull requests...\n124|\n125|Search\n126|Clear\n127|[Search syntax tips][64]\n128|\n129|# Provide feedback\n130|\n131|We read every piece of feedback, and take your input very seriously.\n132|\n133|Include my email address so I can be contacted\n134|Cancel Submit feedback\n135|\n136|# Saved searches\n137|\n138|## Use saved searches to filter your results more quickly\n139|\n140|Name\n141|Query\n142|\n143|To see all available qualifiers, see our [documentation][65].\n144|\n145|Cancel Create saved search\n146|[ Sign in ][66]\n147|[ Sign up ][67]\n148|Appearance settings\n149|Resetting focus\n150|You signed in with another tab or window. [Reload][68] to refresh your session. You signed out in\n151|another tab or window. [Reload][69] to refresh your session. You switched accounts on another tab or\n152|window. [Reload][70] to refresh your session. Dismiss alert\n153|[ dmtrKovalenko ][71] / ** [fff][72] ** Public\n154|* [ Notifications ][73] You must be signed in to change notification settings\n155|* [ Fork 350 ][74]\n156|* [ Star 9.1k ][75]\n157|* [ Code ][76]\n158|* [ Issues 30 ][77]\n159|* [ Pull requests 18 ][78]\n160|* [ Actions ][79]\n161|* [ Projects ][80]\n162|* [ Security and quality 0 ][81]\n163|* [ Insights ][82]\n164|Additional navigation options\n165|* [ Code ][83]\n166|* [ Issues ][84]\n167|* [ Pull requests ][85]\n168|* [ Actions ][86]\n169|* [ Projects ][87]\n170|* [ Security and quality ][88]\n171|* [ Insights ][89]\n172|\n173|# dmtrKovalenko/fff\n174|\n175|main\n176|[Branches][90][Tags][91]\n177|Go to file\n178|Code\n179|Open more actions menu\n180|\n181|## Folders and files\n182|\n183|─────────────────────────────┬─────────────────────────────┬───────────────────┬────────────────\n184|Name                         │Name                         │Last commit message│Last commit date\n185|─────────────────────────────┴─────────────────────────────┴───────────────────┴────────────────\n186|## Latest commit                                           \n187|                                                           \n188|## History                                                 \n189|                                                           \n190|[369 Commits][92]                                          \n191|[][93]369 Commits                                          \n192|─────────────────────────────┬─────────────────────────────┬───────────────────┬────────────────\n193|[.cargo][94]                 │[.cargo][95]                 │                   │                \n194|─────────────────────────────┼─────────────────────────────┼───────────────────┼────────────────\n195|[.github][96]                │[.github][97]                │                   │                \n196|─────────────────────────────┼─────────────────────────────┼───────────────────┼────────────────\n197|[Formula][98]                │[Formula][99]                │                   │                \n198|─────────────────────────────┼─────────────────────────────┼───────────────────┼────────────────\n199|[assets][100]                │[assets][101]                │                   │                \n200|─────────────────────────────┼─────────────────────────────┼───────────────────┼────────────────\n201|[crates][102]                │[crates][103]                │                   │                \n202|─────────────────────────────┼─────────────────────────────┼───────────────────┼────────────────\n203|[doc][104]                   │[doc][105]                   │                   │                \n204|─────────────────────────────┼─────────────────────────────┼───────────────────┼────────────────\n205|[lua][106]                   │[lua][107]                   │                   │                \n206|─────────────────────────────┼─────────────────────────────┼───────────────────┼────────────────\n207|[packages][108]              │[packages][109]              │                   │                \n208|─────────────────────────────┼─────────────────────────────┼───────────────────┼────────────────\n209|[plugin][110]                │[plugin][111]                │                   │                \n210|─────────────────────────────┼─────────────────────────────┼───────────────────┼────────────────\n211|[scripts][112]               │[scripts][113]               │                   │                \n212|─────────────────────────────┼─────────────────────────────┼───────────────────┼────────────────\n213|[tests][114]                 │[tests][115]                 │                   │                \n214|─────────────────────────────┼─────────────────────────────┼───────────────────┼────────────────\n215|[.gitignore][116]            │[.gitignore][117]            │                   │                \n216|─────────────────────────────┼─────────────────────────────┼───────────────────┼────────────────\n217|[.luacheckrc][118]           │[.luacheckrc][119]           │                   │                \n218|─────────────────────────────┼─────────────────────────────┼───────────────────┼────────────────\n219|[.luarc.ci.json][120]        │[.luarc.ci.json][121]        │                   │                \n220|─────────────────────────────┼─────────────────────────────┼───────────────────┼────────────────\n221|[.luarc.json][122]           │[.luarc.json][123]           │                   │                \n222|─────────────────────────────┼─────────────────────────────┼───────────────────┼────────────────\n223|[.mcp.json][124]             │[.mcp.json][125]             │                   │                \n224|─────────────────────────────┼─────────────────────────────┼───────────────────┼────────────────\n225|[.nixignore][126]            │[.nixignore][127]            │                   │                \n226|─────────────────────────────┼─────────────────────────────┼───────────────────┼────────────────\n227|[.stylua.toml][128]          │[.stylua.toml][129]          │                   │                \n228|─────────────────────────────┼─────────────────────────────┼───────────────────┼────────────────\n229|[AGENTS.md][130]             │[AGENTS.md][131]             │                   │                \n230|─────────────────────────────┼─────────────────────────────┼───────────────────┼────────────────\n231|[CLAUDE.md][132]             │[CLAUDE.md][133]             │                   │                \n232|─────────────────────────────┼─────────────────────────────┼───────────────────┼────────────────\n233|[Cargo.lock][134]            │[Cargo.lock][135]            │                   │                \n234|─────────────────────────────┼─────────────────────────────┼───────────────────┼────────────────\n235|[Cargo.toml][136]            │[Cargo.toml][137]            │                   │                \n236|─────────────────────────────┼─────────────────────────────┼───────────────────┼────────────────\n237|[LICENSE][138]               │[LICENSE][139]               │                   │                \n238|─────────────────────────────┼─────────────────────────────┼───────────────────┼────────────────\n239|[Makefile][140]              │[Makefile][141]              │                   │                \n240|─────────────────────────────┼─────────────────────────────┼───────────────────┼────────────────\n241|[README.md][142]             │[README.md][143]             │                   │                \n242|─────────────────────────────┼─────────────────────────────┼───────────────────┼────────────────\n243|[_typos.toml][144]           │[_typos.toml][145]           │                   │                \n244|─────────────────────────────┼─────────────────────────────┼───────────────────┼────────────────\n245|[biome.json][146]            │[biome.json][147]            │                   │                \n246|─────────────────────────────┼─────────────────────────────┼───────────────────┼────────────────\n247|[bun.lock][148]              │[bun.lock][149]              │                   │                \n248|─────────────────────────────┼─────────────────────────────┼───────────────────┼────────────────\n249|[chart.png][150]             │[chart.png][151]             │                   │                \n250|─────────────────────────────┼─────────────────────────────┼───────────────────┼────────────────\n251|[empty_config.lua][152]      │[empty_config.lua][153]      │                   │                \n252|─────────────────────────────┼─────────────────────────────┼───────────────────┼────────────────\n253|[flake.lock][154]            │[flake.lock][155]            │                   │                \n254|─────────────────────────────┼─────────────────────────────┼───────────────────┼────────────────\n255|[flake.nix][156]             │[flake.nix][157]             │                   │                \n256|─────────────────────────────┼─────────────────────────────┼───────────────────┼────────────────\n257|[install-mcp.ps1][158]       │[install-mcp.ps1][159]       │                   │                \n258|─────────────────────────────┼─────────────────────────────┼───────────────────┼────────────────\n259|[install-mcp.sh][160]        │[install-mcp.sh][161]        │                   │                \n260|─────────────────────────────┼─────────────────────────────┼───────────────────┼────────────────\n261|[package-lock.json][162]     │[package-lock.json][163]     │                   │                \n262|─────────────────────────────┼─────────────────────────────┼───────────────────┼────────────────\n263|[package.json][164]          │[package.json][165]          │                   │                \n264|─────────────────────────────┼─────────────────────────────┼───────────────────┼────────────────\n265|[rust-toolchain.toml][166]   │[rust-toolchain.toml][167]   │                   │                \n266|─────────────────────────────┴─────────────────────────────┴───────────────────┴────────────────\n267|View all files                                             \n268|───────────────────────────────────────────────────────────\n269|\n270|## Repository files navigation\n271|* [README][168]\n272|* [MIT license][169]\n273|\n274|[[FFF]][170]\n275|\n276|A file search toolkit for humans and AI agents. Really fast.\n277|\n278|Typo-resistant path and content search, frecency-ranked file access, a background watcher, and a\n279|lightweight in-memory content index. Way faster than CLIs like ripgrep and fzf in any long-running\n280|process that searches more than once.\n281|\n282|Powers file search in [opencode][171], [nushell][172], and many more amazing projects!\n283|\n284|Originally started as [Neovim plugin][173] people loved, but it turned out that plenty of AI\n285|harnesses and code editors need the same thing: accurate, fast file search as a library. That is\n286|what fff is.\n287|\n288|Pick what you are interested in:\n289|\n290|## MCP server\n291|\n292|Works with Claude Code, Codex, OpenCode, Cursor, Cline, and any MCP-capable client. Fewer grep\n293|roundtrips, less wasted context, faster answers.\n294|\n295|[[Benchmark chart comparing FFF against the built-in AI file-search tools]][174]\n296|\n297|### One-line install\n298|\n299|Linux / macOS:\n300|\n301|curl -L https://dmtrkovalenko.dev/install-fff-mcp.sh | bash\n302|\n303|Windows (PowerShell):\n304|\n305|irm https://raw.githubusercontent.com/dmtrKovalenko/fff.nvim/main/install-mcp.ps1 | iex\n306|\n307|The scripts live at [`install-mcp.sh`][175] and [`install-mcp.ps1`][176] if you want to read them\n308|first. They print the exact wiring instructions for your client.\n309|\n310|### Homebrew (macOS / Linux)\n311|\n312|brew install dmtrKovalenko/fff/fff-mcp\n313|brew upgrade fff-mcp   # after new stable releases\n314|\n315|Formula lives in [`Formula/fff-mcp.rb`][177] in this repo and is **auto-bumped on every stable\n316|release** (see `bump-homebrew-formula` in [`.github/workflows/release.yaml`][178]). Installs the\n317|prebuilt `fff-mcp` binary from [GitHub releases][179].\n318|\n319|Once the server is connected, ask the agent to \"use fff\" and it picks up the `ffgrep`, `fffind`, and\n320|`fff-multi-grep` tools.\n321|\n322|### Recommended agent prompt\n323|\n324|Drop this into your project's `CLAUDE.md` or equivalent:\n325|\n326|For any file search or grep in the current git-indexed directory, use fff tools.\n327|\n328|### What changes\n329|* Frecency memory. Files you actually open rank higher next time. Warm-up from git touch history\n330|  runs automatically.\n331|* Definition-first hinting. Lines that look like code definitions are classified on the Rust side,\n332|  no regex overhead in your prompt.\n333|* Smart-case with auto-fuzzy fallback. `IsOffTheRecord` finds snake_case variants; zero-match\n334|  queries retry as fuzzy and surface the best approximate hits.\n335|* Git-aware annotations. Modified, untracked, and staged files are tagged so the agent reaches for\n336|  what you are actively changing.\n337|\n338|Source: [`crates/fff-mcp/`][180].\n339|\n340|The MCP server gives any agent a file search tool that is faster and more token-efficient than the\n341|built-in one.\n342|\n343|## Pi agent extension\n344|\n345|### Install\n346|\n347|pi install npm:@ff-labs/pi-fff\n348|\n349|### Modes\n350|\n351|Three operating modes, switchable at runtime with `/fff-mode`:\n352|\n353|───────────────────────┬────────────────────────────────────────────────────────────────────────────\n354|Mode                   │What it does                                                                \n355|───────────────────────┼────────────────────────────────────────────────────────────────────────────\n356|`tools-and-ui`         │Adds `ffgrep` and `fffind` tools, replaces `@`-mention autocomplete with    \n357|(default)              │FFF.                                                                        \n358|───────────────────────┼────────────────────────────────────────────────────────────────────────────\n359|`tools-only`           │Only tool injection. Keeps pi's native editor autocomplete.                 \n360|───────────────────────┼────────────────────────────────────────────────────────────────────────────\n361|`override`             │Replaces pi's built-in `grep`, `find`, and `multi_grep` with FFF            \n362|                       │implementations.                                                            \n363|───────────────────────┴────────────────────────────────────────────────────────────────────────────\n364|\n365|Env vars: `PI_FFF_MODE`, `FFF_FRECENCY_DB`, `FFF_HISTORY_DB`. Flags: `--fff-mode`,\n366|`--fff-frecency-db`, `--fff-history-db`.\n367|\n368|### Agent-facing tools\n369|* `ffgrep`. Content search. Accepts `path`, `exclude` (comma, space, or array; leading `!`\n370|  optional), `caseSensitive`, `context`, and cursor pagination. Auto-detects regex, falls back to\n371|  fuzzy on zero exact matches, rejects `.*`-style wildcard-only patterns up front.\n372|* `fffind`. Path and filename search. Matches the whole repo-relative path, not just the filename.\n373|  Frecency-aware. The weak-match detector flags scattered fuzzy noise before it floods the agent's\n374|  context.\n375|\n376|### Commands\n377|* `/fff-mode [tools-and-ui | tools-only | override]`. Show or switch the mode.\n378|* `/fff-health`. Picker, frecency, and git integration status.\n379|* `/fff-rescan`. Force a rescan.\n380|\n381|Source: [`packages/pi-fff/`][181].\n382|\n383|The Pi extension swaps pi's native tools for FFF implementations and feeds the interactive editor's\n384|`@`-mention autocomplete from the frecency-ranked index.\n385|\n386|## fff.nvim\n387|\n388|Demo on the Linux kernel repo (100k files, 8GB):\n389|\n390|fff_nvim_demo.mp4\n391|\n392|### Installation\n393|\n394|#### lazy.nvim\n395|\n396|{\n397|  'dmtrKovalenko/fff.nvim',\n398|  build = function()\n399|    -- downloads a prebuilt binary or falls back to cargo build\n400|    require(\"fff.download\").download_or_build_binary()\n401|  end,\n402|  -- for nixos:\n403|  -- build = \"nix run .#release\",\n404|  opts = {\n405|    debug = {\n406|      enabled = true,\n407|      show_scores = true,\n408|    },\n409|  },\n410|  lazy = false, -- the plugin lazy-initialises itself\n411|  keys = {\n412|    { \"ff\", function() require('fff').find_files() end, desc = 'FFFind files' },\n413|    { \"fg\", function() require('fff').live_grep() end, desc = 'LiFFFe grep' },\n414|    { \"fz\",\n415|      function() require('fff').live_grep({ grep = { modes = { 'fuzzy', 'plain' } } }) end,\n416|      desc = 'Live fffuzy grep',\n417|    },\n418|    { \"fc\",\n419|      function() require('fff').live_grep({ query = vim.fn.expand(\"<cword>\") }) end,\n420|      desc = 'Search current word',\n421|    },\n422|  },\n423|}\n424|\n425|#### vim.pack\n426|\n427|vim.pack.add({ 'https://github.com/dmtrKovalenko/fff.nvim' })\n428|\n429|vim.api.nvim_create_autocmd('PackChanged', {\n430|  callback = function(ev)\n431|    local name, kind = ev.data.spec.name, ev.data.kind\n432|    if name == 'fff.nvim' and (kind == 'install' or kind == 'update') then\n433|      if not ev.data.active then vim.cmd.packadd('fff.nvim') end\n434|      require('fff.download').download_or_build_binary()\n435|    end\n436|  end,\n437|})\n438|\n439|vim.g.fff = {\n440|  lazy_sync = true,\n441|  debug = { enabled = true, show_scores = true },\n442|}\n443|\n444|vim.keymap.set('n', 'ff', function() require('fff').find_files() end, { desc = 'FFFind files' })\n445|\n446|### Public API\n447|\n448|require('fff').find_files()                        -- find files in current repo\n449|require('fff').live_grep()                         -- live content grep\n450|require('fff').scan_files()                        -- force rescan\n451|require('fff').refresh_git_status()                -- refresh git status\n452|require('fff').find_files_in_dir(path)             -- find in a specific dir\n453|require('fff').change_indexing_directory(new_path) -- change root\n454|\n455|-- Programmatic search (no UI). Useful for plugin integrations.\n456|require('fff').file_search(query, opts)            -- fuzzy search files / dirs / mixed\n457|require('fff').content_search(query, opts)         -- programmatic grep\n458|\n459|#### `file_search(query, opts)`\n460|\n461|Returns a structured result `{ items, scores, total_matched, total_files?, total_dirs?, location?\n462|}`. Each item has a `type` field (`\"file\"` or `\"directory\"`) and `name` / `relative_path`. File\n463|items also expose `size`, `modified`, `git_status`, `is_binary`, and frecency scores.\n464|\n465|local r = require('fff').file_search('button', {\n466|  mode             = 'mixed',  -- 'files' (default) | 'directories' | 'mixed'\n467|  max_results      = 50,\n468|  page             = 0,        -- 0-based pagination\n469|  current_file     = nil,      -- path to deprioritize for distance scoring\n470|  max_threads      = 4,\n</file-view>","created_at":"2026-06-21T23:04:09.357843Z","finish_reason":null,"metrics":null},{"message_id":"e553e00b-79ba-427c-8c16-35d6da1de9da","node_id":31,"role":"assistant","content":"Let me check the install script and look for any skill packaging in the repo.","tool_calls":[{"id":"chatcmpl-tool-a0c1e401a648b780","name":"webfetch","arguments":{"url":"https://raw.githubusercontent.com/dmtrKovalenko/fff/main/install-mcp.sh"}},{"id":"chatcmpl-tool-b050f0131d2f09f9","name":"webfetch","arguments":{"url":"https://raw.githubusercontent.com/dmtrKovalenko/fff/main/AGENTS.md"}},{"id":"chatcmpl-tool-9c22bf571ac0404c","name":"webfetch","arguments":{"url":"https://raw.githubusercontent.com/dmtrKovalenko/fff/main/.mcp.json"}}],"thinking":"This is `fff` - a file search toolkit for humans and AI agents. It's an MCP server. The user wants me to:\n1. Get this set up\n2. Check if it's in agents.md (it's not - AGENTS.md doesn't mention fff)\n3. Check if the package has a skill they can import\n\nLet me check the README more for skill info, and check the install-mcp.sh script. The repo has AGENTS.md and CLAUDE.md files. Let me look at the install script and check for skills.\n\nThe README mentions an MCP server with one-line install:\n- Linux/macOS: `curl -L https://dmtrkovalenko.dev/install-fff-mcp.sh | bash`\n- Homebrew: `brew install dmtrKovalenko/fff/fff-mcp`\n\nIt mentions \"Recommended agent prompt\" to drop into CLAUDE.md or equivalent.\n\nThe user is asking about a \"skill\" - Devin skills. Let me check if fff packages a skill. Let me look at the install-mcp.sh and the repo structure. The repo doesn't appear to have a `.devin/skills/` directory based on the file listing. Let me verify by checking the install script and looking at the repo more carefully.\n\nLet me clone the repo or check the install script to see what it does. Actually, let me check the install-mcp.sh content first.","created_at":"2026-06-21T23:04:15.597022Z","finish_reason":"tool_calls","metrics":{"ttft_ms":1309,"total_time_ms":6236,"input_tokens":6235,"output_tokens":391,"cache_read_tokens":18396,"cache_creation_tokens":null,"tpot_ms":12.601023017902813,"tokens_per_sec":79.35863608686827}},{"message_id":"97765287-9fdd-4294-8d9a-77abbd50beeb","node_id":32,"role":"tool","content":"# Web Content from https://raw.githubusercontent.com/dmtrKovalenko/fff/main/install-mcp.sh\n\n#!/usr/bin/env bash\nset -eo pipefail\n\n# FFF MCP Server installer\n# Usage: curl -fsSL https://raw.githubusercontent.com/dmtrKovalenko/fff.nvim/main/install-mcp.sh | bash\n\nREPO=\"dmtrKovalenko/fff.nvim\"\nBINARY_NAME=\"fff-mcp\"\nINSTALL_DIR=\"${FFF_MCP_INSTALL_DIR:-$HOME/.local/bin}\"\n\nPINNED_RELEASE_TAG=\"v0.9.6\"\n\nSHA256_X86_64_UNKNOWN_LINUX_MUSL=\"102ceaf173ef776becb3322216e9f6b5caef997c400c5d15f112ce4de40a1f5a\"\nSHA256_AARCH64_UNKNOWN_LINUX_MUSL=\"a9810c9056afa6d9e8ac1e7a3f1f15f8ecbfdc16a592e9d26e4b2434ef97a675\"\nSHA256_X86_64_APPLE_DARWIN=\"58259324c2c13a1b6f24f13138c2cd3eae9ff20e05201a539beb8f2044a651aa\"\nSHA256_AARCH64_APPLE_DARWIN=\"29a7fadeafb062f3e5954b1ab8c69e14dca24f5e061cd8d3b1ea1bab385a3754\"\nSHA256_X86_64_PC_WINDOWS_MSVC=\"7ff688d034aa42ff779a61ad12689794bdc253c895152796046f374390fb9cad\"\nSHA256_AARCH64_PC_WINDOWS_MSVC=\"94ce316a38775d8ed3b32882d8ef45560740319de8d7ac7bb80c31887b3afb6d\"\n\nexpected_sha_for() {\n    case \"$1\" in\n        x86_64-unknown-linux-musl)  echo \"$SHA256_X86_64_UNKNOWN_LINUX_MUSL\" ;;\n        aarch64-unknown-linux-musl) echo \"$SHA256_AARCH64_UNKNOWN_LINUX_MUSL\" ;;\n        x86_64-apple-darwin)        echo \"$SHA256_X86_64_APPLE_DARWIN\" ;;\n        aarch64-apple-darwin)       echo \"$SHA256_AARCH64_APPLE_DARWIN\" ;;\n        x86_64-pc-windows-msvc)     echo \"$SHA256_X86_64_PC_WINDOWS_MSVC\" ;;\n        aarch64-pc-windows-msvc)    echo \"$SHA256_AARCH64_PC_WINDOWS_MSVC\" ;;\n    esac\n}\n\ninfo() { printf '\\033[1;34m%s\\033[0m\\n' \"$*\"; }\nsuccess() { printf '\\033[1;38;5;208m%s\\033[0m\\n' \"$*\"; }\nwarn() { printf '\\033[1;33m%s\\033[0m\\n' \"$*\"; }\nerror() { printf '\\033[1;31mError: %s\\033[0m\\n' \"$*\" >&2; exit 1; }\n\n# Print JSON with syntax highlighting via jq if available, plain otherwise\nprint_json() {\n    if command -v jq &>/dev/null; then\n        echo \"$1\" | jq .\n    else\n        echo \"$1\"\n    fi\n}\n\ndetect_platform() {\n    local os arch target\n\n    os=\"$(uname -s)\"\n    arch=\"$(uname -m)\"\n\n    case \"$os\" in\n        Linux)\n            # Prefer musl (static) for maximum compatibility\n            case \"$arch\" in\n                x86_64)  target=\"x86_64-unknown-linux-musl\" ;;\n                aarch64|arm64) target=\"aarch64-unknown-linux-musl\" ;;\n                *) error \"Unsupported architecture: $arch\" ;;\n            esac\n            ;;\n        Darwin)\n            case \"$arch\" in\n                x86_64)  target=\"x86_64-apple-darwin\" ;;\n                aarch64|arm64) target=\"aarch64-apple-darwin\" ;;\n                *) error \"Unsupported architecture: $arch\" ;;\n            esac\n            ;;\n        MINGW*|MSYS*|CYGWIN*)\n            case \"$arch\" in\n                x86_64)  target=\"x86_64-pc-windows-msvc\" ;;\n                aarch64|arm64) target=\"aarch64-pc-windows-msvc\" ;;\n                *) error \"Unsupported architecture: $arch\" ;;\n            esac\n            ;;\n        *) error \"Unsupported OS: $os\" ;;\n    esac\n\n    echo \"$target\"\n}\n\nget_latest_release_tag() {\n    local target=\"$1\"\n\n    # Honor the pin baked in by `make bump-install-mcp-sh`. Required when SHAs\n    # are pinned, since fetching /releases would race against newer releases.\n    if [ -n \"$PINNED_RELEASE_TAG\" ]; then\n        echo \"$PINNED_RELEASE_TAG\"\n        return\n    fi\n\n    local releases_json\n    local curl_args=(-fsSL)\n\n    # Use gh CLI token if available to avoid rate limiting\n    if command -v gh &>/dev/null; then\n        local gh_token\n        gh_token=\"$(gh auth token 2>/dev/null || true)\"\n        if [ -n \"$gh_token\" ]; then\n            curl_args+=(-H \"Authorization: token $gh_token\")\n        fi\n    fi\n\n    releases_json=$(curl \"${curl_args[@]}\" \"https://api.github.com/repos/${REPO}/releases\") \\\n        || error \"Failed to fetch releases from https://github.com/${REPO}/releases\"\n\n    # Find the first release that contains an fff-mcp binary for our platform\n    local tag\n    tag=$(echo \"$releases_json\" \\\n        | grep -oE '\"(tag_name|name)\": *\"[^\"]*\"' \\\n        | awk -v target=\"fff-mcp-${target}\" '\n            /\"tag_name\":/ { gsub(/.*\": *\"|\"/, \"\"); current_tag = $0; next }\n            /\"name\":/ && index($0, target) { print current_tag; exit }\n        ')\n\n    if [ -z \"$tag\" ]; then\n        error \"No release found containing fff-mcp binaries for ${target}. The MCP build may not have been released yet.\"\n    fi\n    echo \"$tag\"\n}\n\ndownload_binary() {\n    local target=\"$1\"\n    local tag=\"$2\"\n    local ext=\"\"\n\n    case \"$target\" in\n        *windows*) ext=\".exe\" ;;\n    esac\n\n    local filename=\"${BINARY_NAME}-${target}${ext}\"\n    local url=\"https://github.com/${REPO}/releases/download/${tag}/${filename}\"\n    local checksum_url=\"${url}.sha256\"\n\n    info \"Downloading ${filename} from release ${tag}...\"\n\n    local tmp_dir\n    tmp_dir=\"$(mktemp -d)\"\n    trap 'rm -rf \"$tmp_dir\"' EXIT\n\n    if ! curl -fsSL -o \"${tmp_dir}/${filename}\" \"$url\" 2>/dev/null; then\n        echo \"\" >&2\n        printf '\\033[1;31mError: Failed to download binary for your platform.\\033[0m\\n' >&2\n        echo \"\" >&2\n        echo \"  URL: ${url}\" >&2\n        echo \"  Release: ${tag}\" >&2\n        echo \"  Platform: ${target}\" >&2\n        echo \"\" >&2\n        echo \"This likely means the MCP binary hasn't been built for this release yet.\" >&2\n        echo \"Check available releases at: https://github.com/${REPO}/releases\" >&2\n        exit 1\n    fi\n\n    # Verify checksum: prefer the SHA pinned in this script (offline, tamper-evident).\n    # Fall back to the .sha256 file on the release for targets/releases without a pin.\n    if command -v sha256sum &>/dev/null; then\n        local pinned_sha\n        pinned_sha=\"$(expected_sha_for \"$target\")\"\n        if [ -n \"$pinned_sha\" ]; then\n            info \"Verifying checksum against pinned value...\"\n            echo \"${pinned_sha}  ${filename}\" > \"${tmp_dir}/${filename}.sha256\"\n            (cd \"$tmp_dir\" && sha256sum -c \"${filename}.sha256\") \\\n                || error \"Checksum verification failed!\"\n        elif curl -fsSL -o \"${tmp_dir}/${filename}.sha256\" \"$checksum_url\" 2>/dev/null; then\n            info \"Verifying checksum...\"\n            (cd \"$tmp_dir\" && sha256sum -c \"${filename}.sha256\") \\\n                || error \"Checksum verification failed!\"\n        else\n            warn \"Checksum file not available, skipping verification.\"\n        fi\n    fi\n\n    # Install\n    mkdir -p \"$INSTALL_DIR\"\n    mv \"${tmp_dir}/${filename}\" \"${INSTALL_DIR}/${BINARY_NAME}${ext}\"\n    chmod +x \"${INSTALL_DIR}/${BINARY_NAME}${ext}\"\n\n    if [ \"$IS_UPDATE\" != true ]; then\n        success \"Installed ${BINARY_NAME} to ${INSTALL_DIR}/${BINARY_NAME}${ext}\"\n    fi\n}\n\ncheck_path() {\n    case \":$PATH:\" in\n        *\":${INSTALL_DIR}:\"*) return 0 ;;\n    esac\n\n    warn \"${INSTALL_DIR} is not in your PATH.\"\n    echo \"\"\n    echo \"Add it to your shell profile:\"\n    echo \"\"\n\n    local shell_name\n    shell_name=\"$(basename \"${SHELL:-bash}\")\"\n    case \"$shell_name\" in\n        zsh)\n            echo \"  echo 'export PATH=\\\"${INSTALL_DIR}:\\$PATH\\\"' >> ~/.zshrc\"\n            echo \"  source ~/.zshrc\"\n            ;;\n        fish)\n            echo \"  fish_add_path ${INSTALL_DIR}\"\n            ;;\n        *)\n            echo \"  echo 'export PATH=\\\"${INSTALL_DIR}:\\$PATH\\\"' >> ~/.bashrc\"\n            echo \"  source ~/.bashrc\"\n            ;;\n    esac\n    echo \"\"\n}\n\nprint_setup_instructions() {\n    local binary_path=\"${INSTALL_DIR}/${BINARY_NAME}\"\n    local found_any=false\n\n    echo \"\"\n    success \"FFF MCP Server installed successfully!\"\n    echo \"\"\n    info \"Setup with your AI coding assistant:\"\n    echo \"\"\n\n    # Claude Code\n    if command -v claude &>/dev/null; then\n        found_any=true\n        success \"[Claude Code] detected\"\n        echo \"\"\n        echo \"Global (recommended):\"\n        echo \"claude mcp add -s user fff -- ${binary_path}\"\n        echo \"\"\n        echo \"Or project-level .mcp.json (uses PATH):\"\n        echo \"\"\n        print_json '{\n  \"mcpServers\": {\n    \"fff\": {\n      \"type\": \"stdio\",\n      \"command\": \"fff-mcp\",\n      \"args\": []\n    }\n  }\n}'\n        echo \"\"\n    fi\n\n    # OpenCode\n    if command -v opencode &>/dev/null; then\n        found_any=true\n        success \"[OpenCode] detected\"\n        echo \"\"\n        echo \"Add to ~/.config/opencode/opencode.json:\"\n        echo \"\"\n        print_json '{\n  \"mcp\": {\n    \"fff\": {\n      \"type\": \"local\",\n      \"command\": [\"fff-mcp\"],\n      \"enabled\": true\n    }\n  }\n}'\n        echo \"\"\n    fi\n\n    # Codex\n    if command -v codex &>/dev/null; then\n        found_any=true\n        success \"[Codex] detected\"\n        echo \"\"\n        echo \"codex mcp add fff -- fff-mcp\"\n        echo \"\"\n    fi\n\n    if [ \"$found_any\" = false ]; then\n        echo \"No AI coding assistants detected.\"\n        echo \"\"\n        echo \"Binary path: ${binary_path}\"\n        echo \"\"\n    fi\n\n    echo \"Binary: ${binary_path}\"\n    echo \"Docs:   https://github.com/${REPO}\"\n    echo \"\"\n    info \"Tip: Add this to your CLAUDE.md or AGENTS.md to make AI use fff for all searches:\"\n    echo \"\\\"\"\n    echo \"Use the fff MCP tools for all file search operations instead of default tools.\"\n    echo \"\\\"\"\n\n\n}\n\nmain() {\n    local target\n    target=\"$(detect_platform)\"\n\n    local existing_binary=\"${INSTALL_DIR}/${BINARY_NAME}\"\n    IS_UPDATE=false\n\n    if [ -x \"$existing_binary\" ]; then\n        IS_UPDATE=true\n        info \"Updating FFF MCP Server...\"\n    else\n        info \"Installing FFF MCP Server...\"\n    fi\n    echo \"\"\n\n    info \"Detected platform: ${target}\"\n\n    local tag\n    tag=\"$(get_latest_release_tag \"$target\")\"\n\n    download_binary \"$target\" \"$tag\"\n\n    if [ \"$IS_UPDATE\" = true ]; then\n        echo \"\"\n        success \"FFF MCP Server updated to ${tag}!\"\n        echo \"\"\n    else\n        check_path\n        print_setup_instructions\n    fi\n}\n\nmain\n","created_at":"2026-06-21T23:04:15.963142Z","finish_reason":null,"metrics":null},{"message_id":"ef2646a3-d48a-4943-b856-ec688d3e05ee","node_id":33,"role":"tool","content":"# Web Content from https://raw.githubusercontent.com/dmtrKovalenko/fff/main/AGENTS.md\n\n# To Clankers\n\nThis repository contains **FFF.nvim (Fast File Finder)**, a high-performance file picker for Neovim inspired by blink.cmp's fuzzy matching technology. It's NOT a completion plugin, but rather a standalone file finder with advanced fuzzy search and frecency scoring. The project aims to be the drop-in replacement for telescope, fzf-lua, snacks.picker and similar plugins, focusing on speed, accuracy search and usability features.\n\n## Development Commands\n\nAlways prefer Makefile commands listed to the cargo/bun/node if possible.\n\n### Building\n\n- `make build` - build everything\n\n### Testing and Development Tools\n\nThis project does not have a traditional test suite. Testing is done through:\n\n- Create e2e local test file for Neovim: Load any Lua test file with `nvim -l <test_file>`\n- Write inline rust unit tests for any functionality that is standalone and scoped within a single function\n\n### Code Quality\n\n- `make lint` - Rust linting and code analysis\n- `make format` - Format all code \n- `make test` - Run unit tests (limited coverage, primarily integration testing)\n\nWhen doing code make sure to REDUCE SIZE OF COMMENTS. This is very important. Every comment should be concise 1-2 liner maximum 4 lines if describes really extensive and unnatural concept.\n\n### Important coding rules\n\n- Do not add doc comments to the private structs and functions.\n- Do not make public structs if something can be private\n\n\n## Architecture\n\nEverything that is performance critical happens in rust world, everything that is neovim specific happens in the lua code.\n\nThere are 3 main components:\n\n- Rust binary with the global file picker state containing index of all files\n- Background thread with the file system watcher that updates the index in real time\n- Lua UI layer that renders the picker, handles user input, and calls the rust functions via FFI\n\nThere are 2 databases:\n\n- Frecency database (LMDB) that tracks file access patterns for scoring\n- Query history database used to track the user's previous search queries\n\n### Key Files\n\n- `lua/fff.lua` - Entry point, delegates to main.lua\n- `lua/fff/main.lua` - Public API (find_files, search, change_directory)\n- `lua/fff/core.lua` - Initialization, autocmds, global state management\n- `lua/fff/picker_ui.lua` - UI rendering, layout calculation, keymaps\n- `lua/fff/file_picker/preview.lua` - File preview with syntax highlighting\n- `lua/fff/file_picker/image.lua` - Image preview (snacks.nvim integration)\n- `lua/fff/conf.lua` - Default config\n- `lua/fff/rust/init.lua` - Loads compiled Rust shared library\n\n**Rust Side:**\n\n- `lua/fff/rust/lib.rs` - FFI bindings, global state (FILE_PICKER, FRECENCY)\n- `lua/fff/rust/file_picker.rs` - Core FilePicker struct, indexing, background watcher\n- `lua/fff/rust/frecency.rs` - Frecency database (LMDB) and scoring\n- `lua/fff/rust/query_tracker.rs` - Search query history tracking\n- `lua/fff/rust/score.rs` - Fuzzy match scoring with frizbee integration\n- `lua/fff/rust/git.rs` - Git status caching and repository detection\n- `lua/fff/rust/background_watcher.rs` - File system watcher thread\n\n### Scoring Algorithm\n\nLocated at the score.rs file\n\n### Build System\n\n- `Cargo.toml` - Rust dependencies and build configuration (package name: `fff_nvim`)\n- `rust-toolchain.toml` - Specifies Rust nightly toolchain with required components\n- `Cross.toml` - Cross-compilation settings using Zig for Linux targets\n- **CI/CD Workflows**:\n  - `.github/workflows/rust.yml` - Rust testing, formatting, and clippy checks\n  - `.github/workflows/release.yaml` - Automated multi-platform builds\n  - `.github/workflows/stylua.yaml` - Lua code formatting validation\n  - `.github/workflows/nix.yml` - Nix build validation\n- **Cross-compilation Support**: Uses `cross` tool with Zig backend for efficient cross-compilation\n\n## Development Notes\n\n### Working with Rust Code\n\n- Prefer struct methods over functions\n- If there is more than 2 impls in the file - create new file\n- Smaller concise comments over giant comment blocks\n- Do not add doc comments to the private functions/structs\n- Be very careful around locking and better double check with the human if something is going to require potentially long lock on a mutex/rwlock\n\n### Working with lua code\n\n- Document the types of public functions in every module\n- Use `vim.validate()` for validating user inputs in public functions\n- Try to reuse as much of existing functions as possible\n- When working on new features for the UI **IT IS EXTREMELY IMPORTANT** to keep the core functionality of navigating between files, selecting, and seeing the preview working as is. NEVER break anything from the core UI functionality, only add new features on top of the current UI.\n- When making a large chunk of code make lua test that opens neovim at `~/dev/lightsource` and opens the picker to test the ui functionality across the actual code.\n- When adding a new highlights or any new shortcuts and configurable UI options add them to the neovim config. AND IMPORTANT: update the README.md with the new configuration options.\n\n### UI rendering\n\nWhen working on the UI changeds IT IS EXTREMELY important for you to test it for both prompt_position=\"bottom\" and prompt_position=\"top\" as the rendering logic is different for both of them in both rust and lua world. When the prompt is positioed in the bottom everything should work the same way as the top but would be reversed in order. (though navigation is same for both)\n\n## Top level API that can not introduce breaking changes under any circumstance\n\nTop level rust, lua, C, and bun APIs can not be changed under any circumstance\n","created_at":"2026-06-21T23:04:15.963155Z","finish_reason":null,"metrics":null},{"message_id":"b86cb70a-1c23-4388-9d96-ab000b6c1fb8","node_id":34,"role":"tool","content":"# Web Content from https://raw.githubusercontent.com/dmtrKovalenko/fff/main/.mcp.json\n\n{\n  \"mcpServers\": {\n    \"fff\": {\n      \"type\": \"stdio\",\n      \"command\": \"./target/release/fff-mcp\",\n      \"args\": []\n    }\n  }\n}\n","created_at":"2026-06-21T23:04:15.963165Z","finish_reason":null,"metrics":null},{"message_id":"a061d939-ddbd-48a8-9807-c01f2390fe64","node_id":36,"role":"assistant","content":"Now I have a clear picture. Let me check the current Devin config and whether fff-mcp is already installed, and look up how Devin registers MCP servers.","tool_calls":[{"id":"chatcmpl-tool-937deeef9c16a9ab","name":"exec","arguments":{"command":"which fff-mcp; ls -la ~/.config/devin/ 2>/dev/null; ls -la /Users/root1/.devin/ 2>/dev/null; echo \"---config---\"; cat /Users/root1/.devin/config.json 2>/dev/null; echo \"---global---\"; cat ~/.config/devin/config.json 2>/dev/null"}},{"id":"chatcmpl-tool-9db5fe5c4e61e5b3","name":"skill","arguments":{"command":"invoke","skill":"devin-for-terminal"}}],"thinking":"Now I understand the picture:\n\n1. `fff` is a file search toolkit/MCP server. It's NOT currently in the user's AGENTS.md.\n2. The repo's own AGENTS.md is for contributors to the fff project itself (development guidance), not a skill.\n3. The repo does NOT package a Devin skill (no `.devin/skills/` directory). It packages an MCP server and a Pi agent extension, plus a Neovim plugin.\n\nSo to answer the user's questions:\n- \"get this setup\" - install the fff MCP server\n- \"in agents.md\" - it's not in the user's AGENTS.md currently; the repo has its own AGENTS.md but that's for contributing to fff\n- \"does hge package a skill you can import\" - No, fff does not package a Devin skill. It packages an MCP server (which Devin can use via MCP config) and a Pi extension.\n\nThe cleanest setup path for Devin would be:\n1. Install the fff-mcp binary via the install script or homebrew\n2. Register it as an MCP server in Devin's config (`.devin/config.json` or global `~/.config/devin/`)\n3. Optionally add a note to AGENTS.md telling Devin to prefer fff tools\n\nLet me check the devin-for-terminal skill for how to register MCP servers in Devin. Actually, let me first check if Devin supports MCP server config and what the format is. Let me invoke the devin-for-terminal skill.\n\nActually, let me first check what's already set up. Let me check if fff-mcp is installed, and check the devin config.","created_at":"2026-06-21T23:04:23.280291Z","finish_reason":"tool_calls","metrics":{"ttft_ms":1781,"total_time_ms":7313,"input_tokens":4590,"output_tokens":484,"cache_read_tokens":24630,"cache_creation_tokens":null,"tpot_ms":11.429752066115702,"tokens_per_sec":87.49096167751264}},{"message_id":"b8893d81-aa9f-4d95-8a87-3031bf3ab139","node_id":37,"role":"tool","content":"Output from command in shell 011bd6:\ntotal 8\ndrwxr-xr-x   4 root1  staff   128 Jun 19 23:27 .\ndrwxr-x--x@ 39 root1  staff  1248 Jun 17 18:44 ..\ndrwxr-xr-x   2 root1  staff    64 Apr 30 18:56 cli\n-rw-------   1 root1  staff   454 Jun 19 23:27 config.json\ntotal 16\ndrwxr-xr-x    6 root1  staff   192 Jun 18 00:36 .\ndrwxr-x---+ 263 root1  staff  8416 Jun 21 15:04 ..\n-rw-r--r--    1 root1  staff   798 Jun 18 00:36 argv.json\n-rw-------    1 root1  staff    97 May  4 10:41 config.local.json\ndrwxr-xr-x    9 root1  staff   288 Jun 19 23:07 extensions\ndrwxr-xr-x    3 root1  staff    96 Jun 10 00:40 skills\n---config---\n---global---\n{\n  \"version\": 1,\n  \"devin\": {\n    \"org_id\": \"org-3f8d8c895e4f414d853a090be2cf51f5\"\n  },\n  \"shell\": {\n    \"setup_complete\": true\n  },\n  \"theme_mode\": \"dark\",\n  \"permissions\": {\n    \"allow\": [\n      \"Fetch(domain:ftp.pdl.cmu.edu)\",\n      \"mcp__playwright__browser_navigate\",\n      \"mcp__playwright__browser_snapshot\",\n      \"mcp__playwright__browser_evaluate\",\n      \"Fetch(domain:www.math.purdue.edu)\"\n    ]\n  },\n  \"agent\": {\n    \"model\": \"glm-5-2\"\n  }\n}\n\nExit code: 0","created_at":"2026-06-21T23:04:23.348745Z","finish_reason":null,"metrics":null},{"message_id":"87160694-9784-44ee-b0be-903cc22d0537","node_id":38,"role":"tool","content":"The \"devin-for-terminal\" skill is running\n\n<skill name=\"devin-for-terminal\" status=\"running\">\nSource: /Users/root1/.local/share/devin/cli/_versions/2026.7.23/share/devin/docs\nBase directory: /Users/root1/.local/share/devin/cli/_versions/2026.7.23/share/devin\nAuto-approved tools (no permission prompt needed): read, grep, glob\nOther tools can still be used but will require user permission.\n\nDocumentation for Devin CLI is available on disk at:\n  /Users/root1/.local/share/devin/cli/_versions/2026.7.23/share/devin/docs\n\nThis directory contains `.mdx` files covering installation, commands, models,\nshell integration, troubleshooting, and enterprise configuration.\n\nUse the read, grep, and glob tools to search within that directory for\ninformation relevant to the user's question. The tools are auto-approved for\nthis path while this skill is active.\n</skill>","created_at":"2026-06-21T23:04:23.348749Z","finish_reason":null,"metrics":null},{"message_id":"817553af-4a42-46ce-ab9c-80f17b46e51b","node_id":40,"role":"assistant","content":"","tool_calls":[{"id":"chatcmpl-tool-84e1ddf77942cc55","name":"grep","arguments":{"pattern":"mcp","path":"/Users/root1/.local/share/devin/cli/_versions/2026.7.23/share/devin/docs","output_mode":"files_with_matches","case_insensitive":true}}],"thinking":"fff-mcp is not installed. Let me search the devin docs for how to register MCP servers.","created_at":"2026-06-21T23:04:27.052636Z","finish_reason":"tool_calls","metrics":{"ttft_ms":1385,"total_time_ms":3702,"input_tokens":1140,"output_tokens":77,"cache_read_tokens":29219,"cache_creation_tokens":null,"tpot_ms":30.09090909090909,"tokens_per_sec":33.23262839879154}},{"message_id":"e8726404-3a25-4016-8dc8-deac5a96ccc1","node_id":41,"role":"tool","content":"Found 17 file(s) with matches for pattern 'mcp' in /Users/root1/.local/share/devin/cli/_versions/2026.7.23/share/devin/docs:\n/Users/root1/.local/share/devin/cli/_versions/2026.7.23/share/devin/docs/reference/commands.mdx (19 matches at lines: 64, 70, 71, 72, 73, 74, 75, 77, 90, 97, 100, 101, 104, 107, 108, 111, 115, 119, 208)\n/Users/root1/.local/share/devin/cli/_versions/2026.7.23/share/devin/docs/reference/permissions.mdx (12 matches at lines: 213, 215, 221, 222, 223, 226, 234, 235, 236, 278, 280, 289)\n/Users/root1/.local/share/devin/cli/_versions/2026.7.23/share/devin/docs/reference/configuration/config-file.mdx (10 matches at lines: 48, 49, 102, 103, 121, 156, 158, 162, 169, 259)\n/Users/root1/.local/share/devin/cli/_versions/2026.7.23/share/devin/docs/extensibility/mcp/overview.mdx (17 matches at lines: 2, 7, 9, 17, 26, 34, 39, 57, 59, 65, 68, 80, 85, 88, 95, 96, 100)\n/Users/root1/.local/share/devin/cli/_versions/2026.7.23/share/devin/docs/extensibility/index.mdx (5 matches at lines: 3, 19, 36, 39, 50)\n/Users/root1/.local/share/devin/cli/_versions/2026.7.23/share/devin/docs/reference/configuration/global-vs-local.mdx (10 matches at lines: 36, 52, 53, 64, 84, 102, 115, 131, 139, 141)\n/Users/root1/.local/share/devin/cli/_versions/2026.7.23/share/devin/docs/extensibility/skills/creating-skills.mdx (3 matches at lines: 334, 339, 340)\n/Users/root1/.local/share/devin/cli/_versions/2026.7.23/share/devin/docs/acp/jetbrains.mdx (1 matches at lines: 64)\n/Users/root1/.local/share/devin/cli/_versions/2026.7.23/share/devin/docs/index.mdx (1 matches at lines: 90)\n/Users/root1/.local/share/devin/cli/_versions/2026.7.23/share/devin/docs/extensibility/mcp/configuration.mdx (65 matches at lines: 2, 3, 7, 11, 15, 18, 21, 26, 31, 32, 38, 39, 40, 41, 42, 47, 54, 57, 71, 86, 89, 105, 119, 131, 147, 149, 155, 161, 163, 174, 176, 182, 188, 191, 206, 209, 215, 216, 224, 230, 239, 245, 247, 250, 256, 261, 262, 290, 292, 298, 299, 302, 305, 315, 316, 317, 325, 329, 332, 336, 337, 350, 354, 358, 362)\n/Users/root1/.local/share/devin/cli/_versions/2026.7.23/share/devin/docs/extensibility/configuration.mdx (7 matches at lines: 7, 37, 45, 61, 84, 124, 144)\n/Users/root1/.local/share/devin/cli/_versions/2026.7.23/share/devin/docs/reference/configuration/read-config-from.mdx (14 matches at lines: 20, 29, 42, 48, 51, 58, 61, 68, 126, 127, 128, 129, 130, 131)\n/Users/root1/.local/share/devin/cli/_versions/2026.7.23/share/devin/docs/troubleshooting.mdx (8 matches at lines: 119, 220, 224, 235, 239, 242, 243, 248)\n/Users/root1/.local/share/devin/cli/_versions/2026.7.23/share/devin/docs/enterprise/team-settings.mdx (4 matches at lines: 43, 45, 47, 48)\n/Users/root1/.local/share/devin/cli/_versions/2026.7.23/share/devin/docs/changelog/stable.mdx (30 matches at lines: 23, 44, 45, 69, 70, 81, 82, 101, 116, 140, 157, 158, 180, 196, 206, 207, 208, 340, 360, 362, 387, 406, 407, 418, 433, 512, 570, 575, 605, 606)\n/Users/root1/.local/share/devin/cli/_versions/2026.7.23/share/devin/docs/extensibility/hooks/overview.mdx (1 matches at lines: 135)\n/Users/root1/.local/share/devin/cli/_versions/2026.7.23/share/devin/docs/extensibility/hooks/lifecycle-hooks.mdx (6 matches at lines: 19, 295, 304, 305, 306, 320)\n","created_at":"2026-06-21T23:04:27.096703Z","finish_reason":null,"metrics":null},{"message_id":"32a0c697-a8f6-4a58-a13a-2e7851359c89","node_id":43,"role":"assistant","content":"","tool_calls":[{"id":"chatcmpl-tool-9d055789d59e2061","name":"read","arguments":{"file_path":"/Users/root1/.local/share/devin/cli/_versions/2026.7.23/share/devin/docs/extensibility/mcp/configuration.mdx"}}],"created_at":"2026-06-21T23:04:29.009522Z","finish_reason":"tool_calls","metrics":{"ttft_ms":null,"total_time_ms":1911,"input_tokens":1396,"output_tokens":41,"cache_read_tokens":30358,"cache_creation_tokens":null,"tpot_ms":46.609756097560975,"tokens_per_sec":21.454735740450026}},{"message_id":"8e43d797-5ebc-4585-9b34-49c5bee692aa","node_id":44,"role":"tool","content":"<file-view path=\"/Users/root1/.local/share/devin/cli/_versions/2026.7.23/share/devin/docs/extensibility/mcp/configuration.mdx\" start_line=\"1\" end_line=\"366\" total_lines=\"366\">\n  1|---\n  2|title: \"MCP Configuration\"\n  3|description: \"How to add, configure, and manage MCP servers\"\n  4|icon: \"gear\"\n  5|---\n  6|\n  7|## Adding MCP Servers\n  8|\n  9|### Via Command Line\n 10|\n 11|The quickest way to add an MCP server:\n 12|\n 13|```bash\n 14|# stdio server — just pass the command after --\n 15|devin mcp add <name> -- <command> [args...]\n 16|\n 17|# HTTP server — pass the URL as a positional argument\n 18|devin mcp add <name> <URL>\n 19|\n 20|# HTTP server — or use the --url flag\n 21|devin mcp add <name> --url <URL>\n 22|```\n 23|\n 24|The transport type is inferred automatically: a URL implies HTTP (Streamable HTTP), and trailing args (or `--command`) imply stdio.\n 25|\n 26|<Note>Remote MCP servers use Streamable HTTP by default. If the server responds with an HTTP 4xx error, the CLI falls back to SSE on the same URL. Set `\"transport\": \"sse\"` explicitly if needed — see [Legacy SSE fallback](#legacy-sse-fallback) below.</Note>\n 27|\n 28|By default, servers are saved to **local** scope (`.devin/config.local.json`, gitignored). Use `-s`/`--scope` to change:\n 29|\n 30|```bash\n 31|devin mcp add -s project <name> <URL>   # shared via .devin/config.json\n 32|devin mcp add -s user <name> <URL>      # global (~/.config/devin/config.json; %APPDATA%\\devin\\config.json on Windows)\n 33|```\n 34|\n 35|You can also manage servers from the command line:\n 36|\n 37|```bash\n 38|devin mcp list              # List all configured servers\n 39|devin mcp get <name>        # Show details for a specific server\n 40|devin mcp remove <name>     # Remove a configured server\n 41|devin mcp login <name>      # Authenticate with a server via OAuth\n 42|devin mcp logout <name>     # Remove stored OAuth credentials\n 43|```\n 44|\n 45|### Via Config File\n 46|\n 47|Add servers directly to your config file's `mcpServers` section:\n 48|\n 49|<Tabs>\n 50|  <Tab title=\"Project config\">\n 51|    ```json\n 52|    // .devin/config.json\n 53|    {\n 54|      \"mcpServers\": {\n 55|        \"server-name\": {\n 56|          \"command\": \"npx\",\n 57|          \"args\": [\"-y\", \"@company/mcp-server\"],\n 58|          \"env\": {\n 59|            \"API_KEY\": \"your-key\"\n 60|          }\n 61|        }\n 62|      }\n 63|    }\n 64|    ```\n 65|    <Note>Project-level servers are shared with your team via version control.</Note>\n 66|  </Tab>\n 67|  <Tab title=\"User config\">\n 68|    ```json\n 69|    // ~/.config/devin/config.json\n 70|    {\n 71|      \"mcpServers\": {\n 72|        \"my-server\": {\n 73|          \"command\": \"node\",\n 74|          \"args\": [\"/path/to/my-server.js\"],\n 75|          \"env\": {}\n 76|        }\n 77|      }\n 78|    }\n 79|    ```\n 80|    <Note>User-level servers apply to all your projects.</Note>\n 81|  </Tab>\n 82|  <Tab title=\"Local override\">\n 83|    ```json\n 84|    // .devin/config.local.json\n 85|    {\n 86|      \"mcpServers\": {\n 87|        \"server-name\": {\n 88|          \"command\": \"npx\",\n 89|          \"args\": [\"-y\", \"@company/mcp-server\"],\n 90|          \"env\": {\n 91|            \"API_KEY\": \"my-personal-key\"\n 92|          }\n 93|        }\n 94|      }\n 95|    }\n 96|    ```\n 97|    <Note>Local configs are gitignored — use these for personal API keys.</Note>\n 98|  </Tab>\n 99|</Tabs>\n100|\n101|---\n102|\n103|## Server Configuration Options\n104|\n105|MCP servers can be configured in two ways: as a **local command** (stdio transport) or as a **remote server** (HTTP transport).\n106|\n107|### Local Command (stdio)\n108|\n109|| Field | Type | Required | Description |\n110||-------|------|----------|-------------|\n111|| `command` | string | Yes | The executable to run |\n112|| `args` | string[] | No | Command-line arguments |\n113|| `env` | object | No | Environment variables to set |\n114|\n115|### Remote Server (Streamable HTTP)\n116|\n117|| Field | Type | Required | Description |\n118||-------|------|----------|-------------|\n119|| `url` | string | Yes | The URL of the MCP server endpoint |\n120|| `transport` | string | No | `\"http\"` (Streamable HTTP, default for URL-based servers) or `\"sse\"` (legacy SSE). When set to `\"http\"` or omitted, the CLI tries Streamable HTTP first and falls back to SSE on 4xx errors ([per spec](https://spec.modelcontextprotocol.io/specification/2025-03-26/basic/transports/#backwards-compatibility)). Set `\"sse\"` explicitly if the server's SSE endpoint is at a different path. |\n121|| `headers` | object | No | Custom HTTP headers to include in requests |\n122|| `oauthClientId` | string | No | Pre-registered OAuth client ID, for servers that don't support dynamic client registration (DCR), e.g. GitHub. See the \"Pre-registered OAuth clients\" section below. |\n123|| `oauthClientSecret` | string | No | OAuth client secret, for confidential clients. Pair with `oauthClientId`. |\n124|\n125|### Examples\n126|\n127|<AccordionGroup>\n128|  <Accordion title=\"GitHub (stdio)\" icon=\"github\">\n129|    ```json\n130|    {\n131|      \"mcpServers\": {\n132|        \"github\": {\n133|          \"command\": \"npx\",\n134|          \"args\": [\"-y\", \"@modelcontextprotocol/server-github\"],\n135|          \"env\": {\n136|            \"GITHUB_TOKEN\": \"ghp_...\"\n137|          }\n138|        }\n139|      }\n140|    }\n141|    ```\n142|  </Accordion>\n143|\n144|  <Accordion title=\"Notion (HTTP with OAuth)\" icon=\"book\">\n145|    ```json\n146|    {\n147|      \"mcpServers\": {\n148|        \"notion\": {\n149|          \"url\": \"https://mcp.notion.com/mcp\",\n150|          \"transport\": \"http\"\n151|        }\n152|      }\n153|    }\n154|    ```\n155|    <Note>After adding an OAuth-based server, run `devin mcp login notion` to authenticate. See [Authentication](#authentication) below.</Note>\n156|  </Accordion>\n157|\n158|  <Accordion title=\"Linear (HTTP with OAuth)\" icon=\"diagram-project\">\n159|    ```json\n160|    {\n161|      \"mcpServers\": {\n162|        \"linear\": {\n163|          \"url\": \"https://mcp.linear.app/mcp\",\n164|          \"transport\": \"http\"\n165|        }\n166|      }\n167|    }\n168|    ```\n169|  </Accordion>\n170|\n171|  <Accordion title=\"Atlassian / Jira (HTTP with OAuth)\" icon=\"jira\">\n172|    ```json\n173|    {\n174|      \"mcpServers\": {\n175|        \"atlassian\": {\n176|          \"url\": \"https://mcp.atlassian.com/v1/mcp\",\n177|          \"transport\": \"http\"\n178|        }\n179|      }\n180|    }\n181|    ```\n182|    <Note>After adding, run `devin mcp login atlassian` to authenticate. Each MCP client (Windsurf, Claude Code, Devin CLI) maintains its own OAuth session, so you must log in separately even if you've already authenticated in another tool.</Note>\n183|  </Accordion>\n184|\n185|  <Accordion title=\"Custom server (stdio)\" icon=\"code\">\n186|    ```json\n187|    {\n188|      \"mcpServers\": {\n189|        \"my-tools\": {\n190|          \"command\": \"python\",\n191|          \"args\": [\"./scripts/mcp-server.py\"],\n192|          \"env\": {\n193|            \"DB_URL\": \"postgres://localhost/mydb\"\n194|          }\n195|        }\n196|      }\n197|    }\n198|    ```\n199|  </Accordion>\n200|</AccordionGroup>\n201|\n202|---\n203|\n204|## Authentication\n205|\n206|Some remote MCP servers require OAuth authentication. After adding an OAuth-based server to your config, authenticate using the `login` command:\n207|\n208|```bash\n209|devin mcp login <server-name>\n210|```\n211|\n212|For example:\n213|\n214|```bash\n215|devin mcp login notion    # Authenticate with Notion\n216|devin mcp login linear    # Authenticate with Linear\n217|```\n218|\n219|This opens a browser window where you can authorize access. The OAuth tokens are stored locally and refreshed automatically.\n220|\n221|You can optionally request specific OAuth scopes:\n222|\n223|```bash\n224|devin mcp login notion --scopes read,write\n225|```\n226|\n227|To remove stored OAuth credentials for a server:\n228|\n229|```bash\n230|devin mcp logout <server-name>\n231|```\n232|\n233|<Note>\n234|If the server supports OAuth, you will also be prompted to authenticate automatically when the server is first used.\n235|</Note>\n236|\n237|### Pre-registered OAuth clients\n238|\n239|Most OAuth-based MCP servers support [dynamic client registration](https://datatracker.ietf.org/doc/html/rfc7591) (DCR), so Devin CLI registers itself automatically and you don't need to provide any client credentials.\n240|\n241|Some providers (e.g. GitHub) don't support DCR and instead require a **pre-registered** OAuth client. For those, supply the client ID — and a client secret if it's a confidential client — via `oauthClientId` / `oauthClientSecret`:\n242|\n243|```json\n244|{\n245|  \"mcpServers\": {\n246|    \"my-server\": {\n247|      \"url\": \"https://mcp.example.com/mcp\",\n248|      \"transport\": \"http\",\n249|      \"oauthClientId\": \"Iv1.abc123def456\",\n250|      \"oauthClientSecret\": \"${env:MY_MCP_CLIENT_SECRET}\"\n251|    }\n252|  }\n253|}\n254|```\n255|\n256|When `oauthClientId` is set, Devin CLI skips dynamic client registration and uses your pre-registered client during the OAuth flow. Run `devin mcp login <name>` (or trigger first use) to authenticate as usual.\n257|\n258|You can also set these from the command line when adding or logging into a server:\n259|\n260|```bash\n261|devin mcp add my-server <URL> --oauth-client-id <ID> --oauth-client-secret <SECRET>\n262|devin mcp login my-server --oauth-client-id <ID> --oauth-client-secret <SECRET>\n263|```\n264|\n265|<Note>\n266|`oauthClientId` / `oauthClientSecret` are OAuth client credentials used during the authorization flow. They are **not** generic per-request credentials — if a server expects a static token, use `headers` (HTTP) or `env` (stdio) instead.\n267|</Note>\n268|\n269|<Warning>\n270|Don't commit a client secret to a shared config. Reference it from an environment variable (`${env:VAR}`), read it from a file (`${file:/path}`), or put it in `.devin/config.local.json` (gitignored). See the \"Managing Secrets\" section below.\n271|</Warning>\n272|\n273|---\n274|\n275|## Managing Secrets\n276|\n277|<Warning>\n278|Never commit API keys or secrets to version control. Use `.devin/config.local.json` for sensitive values.\n279|</Warning>\n280|\n281|For team projects, the recommended pattern is:\n282|\n283|1. Define the server in `.devin/config.json` with placeholder or no env vars\n284|2. Each team member adds their personal keys in `.devin/config.local.json`\n285|\n286|The local config file is automatically excluded from git.\n287|\n288|---\n289|\n290|## MCP Permissions\n291|\n292|You can pre-approve, deny, or force-ask for specific MCP tools in your permissions config:\n293|\n294|```json\n295|{\n296|  \"permissions\": {\n297|    \"allow\": [\n298|      \"mcp__github__list_issues\",\n299|      \"mcp__github__create_issue\"\n300|    ],\n301|    \"deny\": [\n302|      \"mcp__github__delete_repo\"\n303|    ],\n304|    \"ask\": [\n305|      \"mcp__linear__*\"\n306|    ]\n307|  }\n308|}\n309|```\n310|\n311|**Permission matcher patterns:**\n312|\n313|| Pattern | Matches |\n314||---------|---------|\n315|| `mcp__server__tool` | A specific tool on a specific server |\n316|| `mcp__server__*` | All tools on a specific server |\n317|| `mcp__*` | All MCP tools on all servers |\n318|\n319|---\n320|\n321|## Troubleshooting\n322|\n323|<AccordionGroup>\n324|  <Accordion title=\"Auth required / OAuth errors with remote servers\">\n325|    If you see errors like `Auth required` or `AuthRequired` when connecting to a remote MCP server, the server requires OAuth authentication.\n326|\n327|    Run:\n328|    ```bash\n329|    devin mcp login <server-name>\n330|    ```\n331|\n332|    Each MCP client authenticates independently. Even if you've already authenticated in Windsurf or Claude Code, you need to run `devin mcp login` separately for Devin CLI.\n333|\n334|    To verify your auth status, try removing and re-adding credentials:\n335|    ```bash\n336|    devin mcp logout <server-name>\n337|    devin mcp login <server-name>\n338|    ```\n339|  </Accordion>\n340|\n341|  <Accordion title=\"Server won't start\">\n342|    Verify the command works outside Devin CLI:\n343|    ```bash\n344|    npx -y @modelcontextprotocol/server-github\n345|    ```\n346|    Check that all required environment variables are set.\n347|  </Accordion>\n348|\n349|  <Accordion title=\"Tools not appearing\">\n350|    Ask the agent to list MCP servers and tools. The server may need a moment to initialize.\n351|  </Accordion>\n352|\n353|  <Accordion title=\"Permission denied\">\n354|    Check your permissions config. MCP tools default to prompting for approval. Add them to `permissions.allow` to auto-approve.\n355|  </Accordion>\n356|\n357|  <Accordion title=\"Legacy SSE fallback\">\n358|    When connecting to an HTTP server, Devin CLI tries **Streamable HTTP** first. If the server responds with an HTTP 4xx error (e.g. 404 or 405), it automatically falls back to **legacy SSE** on the **same configured URL**. This follows the [MCP spec's backwards-compatibility guidance](https://spec.modelcontextprotocol.io/specification/2025-03-26/basic/transports/#backwards-compatibility).\n359|\n360|    The fallback only triggers on 4xx responses — connection errors, timeouts, and 5xx responses are reported directly without attempting SSE.\n361|\n362|    If your server's SSE endpoint is at a different path (e.g. `/sse` instead of `/mcp`), set `\"transport\": \"sse\"` with the SSE URL to connect directly without the Streamable HTTP attempt.\n363|\n364|    If both transports fail, the error message includes details from both attempts to help with troubleshooting.\n365|  </Accordion>\n366|</AccordionGroup>\n</file-view>","created_at":"2026-06-21T23:04:29.040941Z","finish_reason":null,"metrics":null},{"message_id":"acdc1d13-ac47-40d6-b5c7-156d160d5383","node_id":46,"role":"assistant","content":"I have what I need. Let me answer your questions and then set it up.\n\n**Findings:**\n- **Not in your AGENTS.md** — your `/Users/root1/AGENTS.md` has no mention of fff. (The repo's own `AGENTS.md` is contributor guidance for developing fff itself, not something to import.)\n- **fff does NOT package a Devin skill.** It ships three things: an MCP server (`fff-mcp`), a Pi agent extension (`@ff-labs/pi-fff`), and a Neovim plugin. The MCP server is the piece Devin can use — Devin has native MCP support, so we register it via `devin mcp add` rather than importing a skill.\n\nLet me install the binary and register it. I'll use user scope so it's available across all your projects, then add a note to AGENTS.md.","tool_calls":[{"id":"chatcmpl-tool-924901d0d3b2953d","name":"exec","arguments":{"command":"which devin; devin --version 2>/dev/null; echo \"---\"; uname -m"}}],"thinking":"Now I have everything I need. Let me summarize my findings:\n\n1. **fff is NOT in the user's AGENTS.md** - the user's `/Users/root1/AGENTS.md` has no mention of fff. The repo has its own AGENTS.md but that's contributor guidance for the fff project itself.\n\n2. **fff does NOT package a Devin skill** - it packages:\n   - An MCP server (`fff-mcp`) - this is what Devin can use\n   - A Pi agent extension (`@ff-labs/pi-fff`)\n   - A Neovim plugin (`fff.nvim`)\n   No `.devin/skills/` directory in the repo.\n\n3. **Setup path for Devin**: Install the `fff-mcp` binary, then register it as an MCP server via `devin mcp add`. Since the user wants it available across projects, user scope makes sense. Then optionally add a note to AGENTS.md telling Devin to prefer fff tools.\n\nLet me ask the user a couple of clarifying questions before proceeding with installation, since this involves installing a binary and modifying config. Actually, the user said \"get this setup\" - that's a clear instruction to install. Let me just confirm scope and whether to update AGENTS.md.\n\nActually, let me just proceed. The user explicitly asked to \"get this setup and in agents.md\". So they want:\n1. Setup fff\n2. Have it referenced in agents.md\n\nAnd they asked \"does hge package a skill you can import\" - I should answer: No, it packages an MCP server, not a Devin skill.\n\nLet me ask one quick question about scope (user vs project) since that affects config location. Actually, given they want it in AGENTS.md (which is at /Users/root1/AGENTS.md, a global-ish location), user scope makes the most sense. Let me just proceed with user scope and confirm.\n\nLet me install via the install script and register via devin mcp add. Let me check if devin CLI is available.","created_at":"2026-06-21T23:04:40.362154Z","finish_reason":"tool_calls","metrics":{"ttft_ms":2396,"total_time_ms":11319,"input_tokens":3930,"output_tokens":639,"cache_read_tokens":31753,"cache_creation_tokens":null,"tpot_ms":13.964006259780907,"tokens_per_sec":71.61268631626135}},{"message_id":"9ca1191c-ba3f-4af2-bb0d-bf94fcc20f75","node_id":47,"role":"tool","content":"Output from command in shell 1ce0ec:\n/Users/root1/.local/bin/devin\ndevin 2026.7.23 (3bd47f77)\n---\narm64\n\n\nExit code: 0","created_at":"2026-06-21T23:04:40.401773Z","finish_reason":null,"metrics":null},{"message_id":"8869824f-b480-4a64-b2fb-97cbab0d79ef","node_id":49,"role":"assistant","content":"","tool_calls":[{"id":"chatcmpl-tool-890dffbe6f4801f5","name":"exec","arguments":{"command":"curl -fsSL https://raw.githubusercontent.com/dmtrKovalenko/fff.nvim/main/install-mcp.sh | bash"}}],"created_at":"2026-06-21T23:04:42.238549Z","finish_reason":"tool_calls","metrics":{"ttft_ms":null,"total_time_ms":1835,"input_tokens":689,"output_tokens":36,"cache_read_tokens":35682,"cache_creation_tokens":null,"tpot_ms":50.97222222222222,"tokens_per_sec":19.618528610354225}},{"message_id":"4aabf7ae-8e70-48bd-a8dc-a4d6ae0aa130","node_id":50,"role":"tool","content":"Output from command in shell 47e3ae:\n\u001b[1;34mInstalling FFF MCP Server...\u001b[0m\n\n\u001b[1;34mDetected platform: aarch64-apple-darwin\u001b[0m\n\u001b[1;34mDownloading fff-mcp-aarch64-apple-darwin from release v0.9.6...\u001b[0m\n\u001b[1;34mVerifying checksum against pinned value...\u001b[0m\nfff-mcp-aarch64-apple-darwin: OK\n\u001b[1;38;5;208mInstalled fff-mcp to /Users/root1/.local/bin/fff-mcp\u001b[0m\n\n\u001b[1;38;5;208mFFF MCP Server installed successfully!\u001b[0m\n\n\u001b[1;34mSetup with your AI coding assistant:\u001b[0m\n\n\u001b[1;38;5;208m[Codex] detected\u001b[0m\n\ncodex mcp add fff -- fff-mcp\n\nBinary: /Users/root1/.local/bin/fff-mcp\nDocs:   https://github.com/dmtrKovalenko/fff.nvim\n\n\u001b[1;34mTip: Add this to your CLAUDE.md or AGENTS.md to make AI use fff for all searches:\u001b[0m\n\"\nUse the fff MCP tools for all file search operations instead of default tools.\n\"\n\n\nExit code: 0","created_at":"2026-06-21T23:04:45.251109Z","finish_reason":null,"metrics":null},{"message_id":"f40d227a-343d-414b-ac49-bf5fb1cd9c2c","node_id":52,"role":"assistant","content":"Binary installed at `/Users/root1/.local/bin/fff-mcp`. Now register it with Devin at user scope and verify.","tool_calls":[{"id":"chatcmpl-tool-9d4a965b696d06bc","name":"exec","arguments":{"command":"devin mcp add -s user fff -- /Users/root1/.local/bin/fff-mcp && echo \"---list---\" && devin mcp list && echo \"---get---\" && devin mcp get fff"}}],"created_at":"2026-06-21T23:04:47.770962Z","finish_reason":"tool_calls","metrics":{"ttft_ms":1992,"total_time_ms":2519,"input_tokens":333,"output_tokens":84,"cache_read_tokens":36370,"cache_creation_tokens":null,"tpot_ms":6.273809523809524,"tokens_per_sec":159.39278937381405}},{"message_id":"225a3324-f863-4873-a652-d2f654fd5974","node_id":53,"role":"tool","content":"Output from command in shell 21d31a:\n✓ Added MCP server 'fff' to user config\n---list---\nConfigured MCP servers:\n\n  • playwright\n    Command: npx -y @playwright/mcp@latest\n\n  • fff\n    Command: /Users/root1/.local/bin/fff-mcp\n\n---get---\nServer: fff\nStdio(McpServerStdio { name: \"fff\", command: \"/Users/root1/.local/bin/fff-mcp\", args: [], env: [], meta: None })\n\n\nExit code: 0","created_at":"2026-06-21T23:04:48.354175Z","finish_reason":null,"metrics":null},{"message_id":"c6a74afa-450a-4593-877c-5f5755f1f1ae","node_id":55,"role":"assistant","content":"Registered. Let me verify the server actually starts and exposes its tools, then update AGENTS.md.","tool_calls":[{"id":"chatcmpl-tool-bef30448c8731256","name":"exec","arguments":{"command":"echo '{\"jsonrpc\":\"2.0\",\"id\":1,\"method\":\"initialize\",\"params\":{\"protocolVersion\":\"2024-11-05\",\"capabilities\":{},\"clientInfo\":{\"name\":\"test\",\"version\":\"1.0\"}}}' | /Users/root1/.local/bin/fff-mcp 2>/dev/null | head -c 500; echo"}}],"thinking":"Registered. Now let me verify the server starts and exposes tools. Let me also add a note to AGENTS.md. Let me first verify the binary runs.","created_at":"2026-06-21T23:04:52.393955Z","finish_reason":"tool_calls","metrics":{"ttft_ms":1620,"total_time_ms":4036,"input_tokens":209,"output_tokens":134,"cache_read_tokens":36702,"cache_creation_tokens":null,"tpot_ms":18.029850746268657,"tokens_per_sec":55.4635761589404}},{"message_id":"c636445b-0b9c-476b-9a2b-efede91ecb5a","node_id":56,"role":"tool","content":"Output from command in shell fc6b35:\n\n\n\nExit code: 0","created_at":"2026-06-21T23:04:52.432454Z","finish_reason":null,"metrics":null},{"message_id":"cdc8d27d-ce9d-40fa-9f0a-0e2a3248cc08","node_id":58,"role":"assistant","content":"","tool_calls":[{"id":"chatcmpl-tool-881e79add2acc0f7","name":"exec","arguments":{"command":"cd /Users/root1 && printf '%s\\n%s\\n' '{\"jsonrpc\":\"2.0\",\"id\":1,\"method\":\"initialize\",\"params\":{\"protocolVersion\":\"2024-11-05\",\"capabilities\":{},\"clientInfo\":{\"name\":\"t\",\"version\":\"1\"}}}' '{\"jsonrpc\":\"2.0\",\"method\":\"notifications/initialized\"}' | timeout 5 /Users/root1/.local/bin/fff-mcp 2>&1 | head -c 2000; echo"}}],"thinking":"Empty output. Let me try with proper framing - MCP stdio uses newline-delimited JSON. Let me try sending initialize then tools/list.","created_at":"2026-06-21T23:04:56.464378Z","finish_reason":"tool_calls","metrics":{"ttft_ms":1458,"total_time_ms":4030,"input_tokens":154,"output_tokens":138,"cache_read_tokens":36910,"cache_creation_tokens":null,"tpot_ms":18.63768115942029,"tokens_per_sec":53.654743390357694}},{"message_id":"5c3e0283-4f68-4131-9ce0-6ebe57efd76c","node_id":59,"role":"tool","content":"Output from command in shell 80ee6e:\nbash: timeout: command not found\n\n\n\nExit code: 0","created_at":"2026-06-21T23:04:56.494531Z","finish_reason":null,"metrics":null},{"message_id":"abc8a0ac-90b0-4524-a32f-a0638529a078","node_id":61,"role":"assistant","content":"","tool_calls":[{"id":"chatcmpl-tool-a2fc44d75af6d70b","name":"exec","arguments":{"command":"cd /Users/root1 && (printf '%s\\n%s\\n%s\\n' '{\"jsonrpc\":\"2.0\",\"id\":1,\"method\":\"initialize\",\"params\":{\"protocolVersion\":\"2024-11-05\",\"capabilities\":{},\"clientInfo\":{\"name\":\"t\",\"version\":\"1\"}}}' '{\"jsonrpc\":\"2.0\",\"method\":\"notifications/initialized\"}' '{\"jsonrpc\":\"2.0\",\"id\":2,\"method\":\"tools/list\",\"params\":{}}'; sleep 2) | /Users/root1/.local/bin/fff-mcp 2>&1 | head -c 3000; echo"}}],"created_at":"2026-06-21T23:04:58.798291Z","finish_reason":"tool_calls","metrics":{"ttft_ms":null,"total_time_ms":2302,"input_tokens":167,"output_tokens":136,"cache_read_tokens":37063,"cache_creation_tokens":null,"tpot_ms":16.926470588235293,"tokens_per_sec":59.07906168549088}},{"message_id":"377624f8-4a39-4fc0-bf88-181e97de0cf6","node_id":62,"role":"tool","content":"Output from command in shell e3ef05:\nError: \"Failed to init file picker: Can not run certain FFF features in a file system root or home directories. Consider smaller per-project directories.\"\n\n\n\nExit code: 0","created_at":"2026-06-21T23:05:00.836013Z","finish_reason":null,"metrics":null},{"message_id":"b582d938-de49-410e-be6f-4992a8676c1e","node_id":64,"role":"assistant","content":"The binary works — it just refuses to index the home directory (by design, it's project-scoped). Let me confirm it initializes properly from a real project directory.","tool_calls":[{"id":"chatcmpl-tool-b664071146b72cc8","name":"exec","arguments":{"command":"cd /Users/root1/.local/share/devin/cli/_versions/2026.7.23/share/devin && (printf '%s\\n%s\\n%s\\n' '{\"jsonrpc\":\"2.0\",\"id\":1,\"method\":\"initialize\",\"params\":{\"protocolVersion\":\"2024-11-05\",\"capabilities\":{},\"clientInfo\":{\"name\":\"t\",\"version\":\"1\"}}}' '{\"jsonrpc\":\"2.0\",\"method\":\"notifications/initialized\"}' '{\"jsonrpc\":\"2.0\",\"id\":2,\"method\":\"tools/list\",\"params\":{}}'; sleep 3) | /Users/root1/.local/bin/fff-mcp 2>&1 | head -c 3000; echo"}}],"thinking":"The server refuses to run in the home directory (which makes sense - it's project-scoped). It will work fine when Devin launches it from a project directory. Let me test from a real project directory. Let me find a project. Actually, the error confirms the binary runs and initializes — it just needs a non-home working directory, which Devin will provide when launching from a project. Let me verify from a subdirectory.","created_at":"2026-06-21T23:05:06.587154Z","finish_reason":"tool_calls","metrics":{"ttft_ms":1665,"total_time_ms":5747,"input_tokens":187,"output_tokens":274,"cache_read_tokens":37229,"cache_creation_tokens":null,"tpot_ms":14.897810218978103,"tokens_per_sec":67.12395884370406}},{"message_id":"bce429de-4447-44a2-b60c-2c63cab61353","node_id":65,"role":"tool","content":"Output from command in shell 12823b:\n{\"jsonrpc\":\"2.0\",\"id\":1,\"result\":{\"protocolVersion\":\"2024-11-05\",\"capabilities\":{\"tools\":{}},\"serverInfo\":{\"name\":\"fff\",\"version\":\"0.9.6\"},\"instructions\":\"FFF is a fast file finder with frecency-ranked results (frequent/recent files first, git-dirty files boosted).\\n\\n## Which Tool Should I Use?\\n\\n- **grep**: DEFAULT tool. Searches file CONTENTS -- definitions, usage, patterns. Use when you have a specific name or pattern.\\n- **find_files**: Explores which files/modules exist for a topic. Use when you DON'T have a specific identifier or LOOKING FOR A FILE.\\n- **multi_grep**: OR logic across multiple patterns. Use for case variants (e.g. ['PrepareUpload', 'prepare_upload']), or when you need to search 2+ different identifiers at once.\\n\\n## Core Rules\\n\\n### 1. Search BARE IDENTIFIERS only\\nGrep matches single lines. Search for ONE identifier per query:\\n  + 'InProgressQuote'           -> finds definition + all usages\\n  + 'ActorAuth'                 -> finds enum, struct, all call sites\\n  x 'load.*metadata.*InProgressQuote' -> regex spanning multiple tokens, 0 results\\n  x 'ctx.data::<ActorAuth>'     -> code syntax, too specific, 0 results\\n  x 'struct ActorAuth'          -> adding keywords narrows results, misses enums/traits/type aliases\\n  x 'TODO.*#\\\\d+'               -> complex regex, use simple 'TODO' then filter visually\\n\\n### 2. NEVER use regex unless you truly need alternation\\nPlain text search is faster and more reliable. Regex patterns like `.*`, `\\\\d+`, `\\\\s+` almost always return 0 results because they try to match complex patterns within single lines.\\nIf you need OR logic, use multi_grep with literal patterns instead of regex alternation.\\n\\n### 3. Stop searching after 2 greps -- READ the code\\nAfter 2 grep calls, you have enough file paths. Read the top result to understand the code.\\nDo NOT keep grepping with variations. More greps != better understanding.\\n\\n### 4. Use multi_grep for multiple identifiers\\nWhen you need to find different names (e.g. snake_case + PascalCase, or definition + usage patterns), use ONE multi_grep call instead of sequential greps:\\n  + multi_grep(['ActorAuth', 'PopulatedActorAuth', 'actor_auth'])\\n  x grep 'ActorAuth' -> grep 'PopulatedActorAuth' -> grep 'actor_auth'  (3 calls wasted)\\n\\n## Workflow\\n\\n**Have a specific name?** -> grep the bare identifier.\\n**Need multiple name variants?** -> multi_grep with all variants in one call.\\n**Exploring a topic / finding files?** -> find_files.\\n**Got results?** -> Read the top file. Don't grep again.\\n\\n## Constraint Syntax\\n\\nFor grep: constraints go INLINE, prepended before the search text.\\nFor multi_grep: constraints go in the separate 'constraints' parameter.\\n\\nConstraints MUST match one of these formats:\\n  Extension: '*.rs', '*.{ts,tsx}'\\n  Directory: 'src/', 'quotes/'\\n  Filename: 'schema.rs', 'src/main.rs'\\n  Exclude: '!test/', '!*.spec.ts'\\n\\n! Bare words without extensions are NOT constraints. 'quote TODO' does NOT filter to quote files -- it\n\n\nExit code: 0","created_at":"2026-06-21T23:05:09.644400Z","finish_reason":null,"metrics":null},{"message_id":"e57f22aa-d44e-4a3b-9bf3-1eae9bdca359","node_id":67,"role":"assistant","content":"The server initializes correctly and exposes `grep`, `find_files`, and `multi_grep` tools. Now let me add a note to your AGENTS.md so Devin knows to prefer fff.","tool_calls":[{"id":"chatcmpl-tool-ba02468fcc6ac0b3","name":"edit","arguments":{"file_path":"/Users/root1/AGENTS.md","old_string":"- For tasks that may benefit from computer use (controlling macOS apps, windows, clicking, typing, etc.), use the background-computer-use skill to control local macOS apps through the BackgroundComputerUse API","new_string":"- For tasks that may benefit from computer use (controlling macOS apps, windows, clicking, typing, etc.), use the background-computer-use skill to control local macOS apps through the BackgroundComputerUse API\n\n## File search via fff MCP\n\nFor any file search or grep in the current git-indexed project directory, prefer the **fff** MCP tools\n(`mcp__fff__grep`, `mcp__fff__find_files`, `mcp__fff__multi_grep`) over the built-in grep/glob tools.\nfff is frecency-ranked, git-aware, and more token-efficient.\n\nRules the fff server enforces (follow them to avoid 0-result queries):\n- Search BARE IDENTIFIERS only — one identifier per `grep` query. No `load.*metadata.*Foo` style regex.\n- Don't use regex unless you truly need alternation; `.*`, `\\d+`, `\\s+` almost always return 0 results.\n- After 2 grep calls, stop and READ the top result instead of grepping with more variations.\n- Use `multi_grep` for OR logic across multiple identifiers (e.g. snake_case + PascalCase variants) in one call.\n- Have a specific name → `grep`. Exploring a topic / finding files → `find_files`.\n\nThe `fff-mcp` binary lives at `/Users/root1/.local/bin/fff-mcp` and is registered at user scope\nin `~/.config/devin/config.json`. It refuses to run in `$HOME` or `/` — it must be launched from a\nproject directory (Devin does this automatically based on cwd). Update with:\n`curl -fsSL https://raw.githubusercontent.com/dmtrKovalenko/fff.nvim/main/install-mcp.sh | bash`"}}],"created_at":"2026-06-21T23:05:16.605860Z","finish_reason":"tool_calls","metrics":{"ttft_ms":1098,"total_time_ms":6957,"input_tokens":1054,"output_tokens":479,"cache_read_tokens":37415,"cache_creation_tokens":null,"tpot_ms":12.231732776617955,"tokens_per_sec":81.75456562553336}},{"message_id":"790fc6ec-1ec0-4292-806a-9db16bd9bd18","node_id":68,"role":"tool","content":"The file /Users/root1/AGENTS.md has been updated. Here's the result of running `cat -n` on a snippet of the edited file:\n  2|\n  3|- If I ever paste in a YouTube link, use yt-dlp to summarize the video.\n  4|- get the autogenerrated captions to do this\n  5|- for testing that involves urls, start with example.com rather than about:blank\n  6|- For tasks that may benefit from computer use (controlling macOS apps, windows, clicking, typing, etc.), use the background-computer-use skill to control local macOS apps through the BackgroundComputerUse API\n  7|\n  8|## File search via fff MCP\n  9|\n 10|For any file search or grep in the current git-indexed project directory, prefer the **fff** MCP tools\n 11|(`mcp__fff__grep`, `mcp__fff__find_files`, `mcp__fff__multi_grep`) over the built-in grep/glob tools.\n 12|fff is frecency-ranked, git-aware, and more token-efficient.\n 13|\n 14|Rules the fff server enforces (follow them to avoid 0-result queries):\n 15|- Search BARE IDENTIFIERS only — one identifier per `grep` query. No `load.*metadata.*Foo` style regex.\n 16|- Don't use regex unless you truly need alternation; `.*`, `\\d+`, `\\s+` almost always return 0 results.\n 17|- After 2 grep calls, stop and READ the top result instead of grepping with more variations.\n 18|- Use `multi_grep` for OR logic across multiple identifiers (e.g. snake_case + PascalCase variants) in one call.\n 19|- Have a specific name → `grep`. Exploring a topic / finding files → `find_files`.\n 20|\n 21|The `fff-mcp` binary lives at `/Users/root1/.local/bin/fff-mcp` and is registered at user scope\n 22|in `~/.config/devin/config.json`. It refuses to run in `$HOME` or `/` — it must be launched from a\n 23|project directory (Devin does this automatically based on cwd). Update with:\n 24|`curl -fsSL https://raw.githubusercontent.com/dmtrKovalenko/fff.nvim/main/install-mcp.sh | bash`\n 25|\n 26|## X/Twitter scraping via logged-in browser session\n 27|\n 28|When I need to scrape X/Twitter data (following, followers, tweets, user info, etc.),","created_at":"2026-06-21T23:05:16.633945Z","finish_reason":null,"metrics":null},{"message_id":"2406ee8e-83e6-4950-8090-699c5d9febe0","node_id":70,"role":"assistant","content":"Done. Summary:\n\n**Setup complete:**\n- Installed `fff-mcp` v0.9.6 binary to `/Users/root1/.local/bin/fff-mcp` (checksum-verified).\n- Registered it with Devin at **user scope** via `devin mcp add -s user fff -- /Users/root1/.local/bin/fff-mcp` → stored in `~/.config/devin/config.json`. Available across all your projects.\n- Verified the server initializes (MCP protocol v2024-11-05, server name `fff` v0.9.6) and exposes three tools: `grep`, `find_files`, `multi_grep`.\n- Added a \"File search via fff MCP\" section to `/Users/root1/AGENTS.md` telling Devin to prefer fff tools and documenting the query rules.\n\n**Your two questions answered:**\n1. **\"in agents.md\"** — it wasn't. Your `AGENTS.md` had no fff entry; I added one. (The repo's own `AGENTS.md` is contributor guidance for developing fff, not something to import.)\n2. **\"does it package a skill you can import\"** — **No.** fff ships an MCP server, a Pi agent extension, and a Neovim plugin — no `.devin/skills/` directory. The MCP server is the right integration point for Devin, which is what I wired up.\n\n**Note:** fff refuses to index `$HOME` or `/` by design — it's project-scoped, so it'll work when Devin launches it from a project cwd (not from `/Users/root1` itself). To upgrade later, re-run the install script.","tool_calls":[],"created_at":"2026-06-21T23:05:22.956373Z","finish_reason":"stop","metrics":{"ttft_ms":1135,"total_time_ms":6321,"input_tokens":1044,"output_tokens":358,"cache_read_tokens":38468,"cache_creation_tokens":null,"tpot_ms":14.486033519553073,"tokens_per_sec":69.0320092556884}}]}