{"id":11,"date":"2026-09-04T19:38:55","date_gmt":"2026-09-04T19:38:55","guid":{"rendered":"https:\/\/demos.canvaswp.com\/ai-coding\/docs\/"},"modified":"2026-09-05T22:46:50","modified_gmt":"2026-09-05T22:46:50","slug":"docs","status":"publish","type":"page","link":"https:\/\/demos.canvaswp.com\/ai-coding\/docs\/","title":{"rendered":"Documentation"},"content":{"rendered":"<section class=\"section my-0 dark cp-band\" id=\"quickstart\"><div class=\"container\"><div class=\"row g-5 align-items-start\"><div class=\"col-lg-5\"><span class=\"cp-eyebrow\">\/\/ QUICKSTART<\/span><h2 class=\"cp-h2\">Talk to the assistant from your own code<\/h2><p class=\"cp-lead\">Everything the editor plugins do is available over a small HTTP interface, so a build script, a bot or an internal tool can ask the same questions your editor asks.<\/p><p class=\"cp-body\">Create a key from the account screen, keep it out of the repository, and send it as a bearer token.<\/p><\/div><div class=\"col-lg-7\"><pre class=\"code-highlight p-3 rounded\"><code class=\"language-python\">from codepilot import Client\n\nclient = Client(api_key=os.environ[&quot;CODEPILOT_KEY&quot;])\n\nsuggestion = client.complete(\n    path=&quot;services\/recommendations.py&quot;,\n    prefix=open(&quot;services\/recommendations.py&quot;).read(),\n    max_tokens=120,\n)\n\nprint(suggestion.text, suggestion.confidence)<\/code><\/pre><\/div><\/div><\/div><\/section><section class=\"section my-0 dark cp-band-deep\" id=\"guides\"><div class=\"container\"><div class=\"cp-section-head\"><span class=\"cp-eyebrow\">\/\/ GUIDES<\/span><h2 class=\"cp-h2\">Start with a capability<\/h2><p class=\"cp-lead\">Each capability has its own page: what it does, how it decides, and where it stops.<\/p><\/div><div class=\"row g-4\"><div class=\"col-lg-6\"><a class=\"cp-cap-row\" href=\"https:\/\/demos.canvaswp.com\/ai-coding\/capability\/multi-language-completion\/\"><span class=\"cp-cap-row-icon\"><i class=\"fa-solid fa-code\"><\/i><\/span><span class=\"cp-cap-row-body\"><span class=\"cp-cap-row-label\">LANGUAGES<\/span><span class=\"cp-cap-row-title\">40+ Languages<\/span><span class=\"cp-cap-row-text\">Full context-aware completion for Python, TypeScript, Rust, Go, Java, C++, Ruby, PHP, Swift and 30+ more. No config needed.<\/span><\/span><\/a><\/div><div class=\"col-lg-6\"><a class=\"cp-cap-row\" href=\"https:\/\/demos.canvaswp.com\/ai-coding\/capability\/ide-plugins\/\"><span class=\"cp-cap-row-icon\"><i class=\"fa-solid fa-puzzle-piece\"><\/i><\/span><span class=\"cp-cap-row-body\"><span class=\"cp-cap-row-label\">EDITORS<\/span><span class=\"cp-cap-row-title\">VS Code &#038; JetBrains Plugins<\/span><span class=\"cp-cap-row-text\">Native IDE integration: zero latency suggestions, project-wide context indexing, inline diff previews.<\/span><\/span><\/a><\/div><div class=\"col-lg-6\"><a class=\"cp-cap-row\" href=\"https:\/\/demos.canvaswp.com\/ai-coding\/capability\/bug-detection\/\"><span class=\"cp-cap-row-icon\"><i class=\"fa-solid fa-magnifying-glass\"><\/i><\/span><span class=\"cp-cap-row-body\"><span class=\"cp-cap-row-label\">ANALYSIS<\/span><span class=\"cp-cap-row-title\">Bug Detection<\/span><span class=\"cp-cap-row-text\">Static analysis powered by LLM reasoning. Spots null-pointer risks, logic errors, and security vulnerabilities before you commit.<\/span><\/span><\/a><\/div><div class=\"col-lg-6\"><a class=\"cp-cap-row\" href=\"https:\/\/demos.canvaswp.com\/ai-coding\/capability\/code-review\/\"><span class=\"cp-cap-row-icon\"><i class=\"fa-solid fa-rotate-left\"><\/i><\/span><span class=\"cp-cap-row-body\"><span class=\"cp-cap-row-label\">REVIEW<\/span><span class=\"cp-cap-row-title\">Code Review<\/span><span class=\"cp-cap-row-text\">Automated PR review comments. Flags style violations, complexity hotspots, and missing edge cases with fix suggestions.<\/span><\/span><\/a><\/div><div class=\"col-lg-6\"><a class=\"cp-cap-row\" href=\"https:\/\/demos.canvaswp.com\/ai-coding\/capability\/doc-generation\/\"><span class=\"cp-cap-row-icon\"><i class=\"fa-solid fa-file-lines\"><\/i><\/span><span class=\"cp-cap-row-body\"><span class=\"cp-cap-row-label\">DOCS<\/span><span class=\"cp-cap-row-title\">Doc Generation<\/span><span class=\"cp-cap-row-text\">Auto-generate JSDoc, docstrings, and README sections from your code, context-aware rather than boilerplate.<\/span><\/span><\/a><\/div><div class=\"col-lg-6\"><a class=\"cp-cap-row\" href=\"https:\/\/demos.canvaswp.com\/ai-coding\/capability\/instant-refactoring\/\"><span class=\"cp-cap-row-icon\"><i class=\"fa-solid fa-bolt\"><\/i><\/span><span class=\"cp-cap-row-body\"><span class=\"cp-cap-row-label\">REFACTOR<\/span><span class=\"cp-cap-row-title\">Instant Refactoring<\/span><span class=\"cp-cap-row-text\">Select any block and CodePilot rewrites it cleaner, faster, or in a different pattern. One shortcut, zero rework.<\/span><\/span><\/a><\/div><\/div><\/div><\/section><section class=\"section my-0 dark cp-band\" id=\"api-reference\"><div class=\"container\"><div class=\"cp-section-head\"><span class=\"cp-eyebrow\">\/\/ API REFERENCE<\/span><h2 class=\"cp-h2\">Six endpoints, no surprises<\/h2><p class=\"cp-lead\">Every endpoint takes and returns JSON, is versioned in the path, and is rate limited per key.<\/p><\/div><div class=\"row justify-content-center\"><div class=\"col-lg-10\"><table class=\"cp-table\"><thead><tr><th>Endpoint<\/th><th>What it does<\/th><\/tr><\/thead><tbody><tr><td>POST \/v1\/complete<\/td><td>Return a ranked completion for a cursor position with the surrounding file as context.<\/td><\/tr><tr><td>POST \/v1\/review<\/td><td>Review a diff and return comments as suggestion blocks.<\/td><\/tr><tr><td>POST \/v1\/document<\/td><td>Generate a doc comment for one symbol in the conventions the file already uses.<\/td><\/tr><tr><td>POST \/v1\/refactor<\/td><td>Rewrite a selection against a named goal and return it as a diff.<\/td><\/tr><tr><td>GET \/v1\/index\/status<\/td><td>Report how far the workspace index has progressed.<\/td><\/tr><tr><td>GET \/v1\/usage<\/td><td>Return this month&#8217;s completion count for the calling key.<\/td><\/tr><\/tbody><\/table><p class=\"cp-body mt-4\">Written something with the interface? The engineering blog carries the longer walkthroughs.<\/p><a href=\"https:\/\/demos.canvaswp.com\/ai-coding\/blog\/\" class=\"cp-back-link\">Read the engineering blog<\/a><\/div><\/div><\/div><\/section>","protected":false},"excerpt":{"rendered":"<p>CodePilot documentation: a quickstart for the HTTP interface, a guide per capability, and the endpoint reference.<\/p>\n","protected":false},"author":56,"featured_media":0,"parent":0,"menu_order":3,"comment_status":"closed","ping_status":"closed","template":"page-canvas","meta":{"footnotes":""},"class_list":["post-11","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/demos.canvaswp.com\/ai-coding\/wp-json\/wp\/v2\/pages\/11","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/demos.canvaswp.com\/ai-coding\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/demos.canvaswp.com\/ai-coding\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/demos.canvaswp.com\/ai-coding\/wp-json\/wp\/v2\/users\/56"}],"replies":[{"embeddable":true,"href":"https:\/\/demos.canvaswp.com\/ai-coding\/wp-json\/wp\/v2\/comments?post=11"}],"version-history":[{"count":0,"href":"https:\/\/demos.canvaswp.com\/ai-coding\/wp-json\/wp\/v2\/pages\/11\/revisions"}],"wp:attachment":[{"href":"https:\/\/demos.canvaswp.com\/ai-coding\/wp-json\/wp\/v2\/media?parent=11"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}